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
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
595 ac_unique_file
="main.c"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
634 enable_option_checking
=no
635 ac_subst_vars
='LTLIBOBJS
649 HAVE_NATIVE_GCORE_HOST
739 READLINE_DOC_SOURCE_INCLUDES
740 READLINE_TEXI_INCFLAG
759 HAVE_NATIVE_GCORE_TARGET
764 ENABLE_BFD_64_BIT_FALSE
765 ENABLE_BFD_64_BIT_TRUE
835 INSTALL_STRIP_PROGRAM
865 MAINTAINER_MODE_FALSE
894 program_transform_name
905 ac_subst_files
='nat_makefile_frag'
907 enable_option_checking
908 enable_maintainer_mode
923 with_libxxhash_prefix
930 with_separate_debug_dir
931 with_additional_debug_dirs
933 with_relocated_sources
935 with_auto_load_safe_path
959 enable_source_highlight
962 with_system_gdbinit_dir
964 enable_build_warnings
965 enable_gdb_build_warnings
976 with_libbabeltrace_prefix
977 with_libbabeltrace_type
981 ac_precious_vars
='build_alias
1010 ac_subdirs_all
='testsuite
1013 # Initialize some variables set by options.
1015 ac_init_version
=false
1016 ac_unrecognized_opts
=
1017 ac_unrecognized_sep
=
1018 # The variables have the same names as the options, with
1019 # dashes changed to underlines.
1020 cache_file
=/dev
/null
1027 program_transform_name
=s
,x
,x
,
1035 # Installation directory options.
1036 # These are left unexpanded so users can "make install exec_prefix=/foo"
1037 # and all the variables that are supposed to be based on exec_prefix
1038 # by default will actually change.
1039 # Use braces instead of parens because sh, perl, etc. also accept them.
1040 # (The list follows the same order as the GNU Coding Standards.)
1041 bindir
='${exec_prefix}/bin'
1042 sbindir
='${exec_prefix}/sbin'
1043 libexecdir
='${exec_prefix}/libexec'
1044 datarootdir
='${prefix}/share'
1045 datadir
='${datarootdir}'
1046 sysconfdir
='${prefix}/etc'
1047 sharedstatedir
='${prefix}/com'
1048 localstatedir
='${prefix}/var'
1049 includedir
='${prefix}/include'
1050 oldincludedir
='/usr/include'
1051 docdir
='${datarootdir}/doc/${PACKAGE}'
1052 infodir
='${datarootdir}/info'
1057 libdir
='${exec_prefix}/lib'
1058 localedir
='${datarootdir}/locale'
1059 mandir
='${datarootdir}/man'
1065 # If the previous option needs an argument, assign it.
1066 if test -n "$ac_prev"; then
1067 eval $ac_prev=\
$ac_option
1073 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1078 # Accept the important Cygnus configure options, so we can diagnose typos.
1080 case $ac_dashdash$ac_option in
1084 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1086 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1087 bindir
=$ac_optarg ;;
1089 -build |
--build |
--buil |
--bui |
--bu)
1090 ac_prev
=build_alias
;;
1091 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1092 build_alias
=$ac_optarg ;;
1094 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1095 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1096 ac_prev
=cache_file
;;
1097 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1098 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1099 cache_file
=$ac_optarg ;;
1101 --config-cache |
-C)
1102 cache_file
=config.cache
;;
1104 -datadir |
--datadir |
--datadi |
--datad)
1106 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1107 datadir
=$ac_optarg ;;
1109 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1110 |
--dataroo |
--dataro |
--datar)
1111 ac_prev
=datarootdir
;;
1112 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1113 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1114 datarootdir
=$ac_optarg ;;
1116 -disable-* |
--disable-*)
1117 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1120 as_fn_error $?
"invalid feature name: $ac_useropt"
1121 ac_useropt_orig
=$ac_useropt
1122 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "enable_
$ac_useropt"
1127 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1128 ac_unrecognized_sep
=', ';;
1130 eval enable_
$ac_useropt=no
;;
1132 -docdir |
--docdir |
--docdi |
--doc |
--do)
1134 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1135 docdir
=$ac_optarg ;;
1137 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1139 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1140 dvidir
=$ac_optarg ;;
1142 -enable-* |
--enable-*)
1143 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1146 as_fn_error $?
"invalid feature name: $ac_useropt"
1147 ac_useropt_orig
=$ac_useropt
1148 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "enable_
$ac_useropt"
1153 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1154 ac_unrecognized_sep
=', ';;
1156 eval enable_
$ac_useropt=\
$ac_optarg ;;
1158 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1159 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1160 |
--exec |
--exe |
--ex)
1161 ac_prev
=exec_prefix
;;
1162 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1163 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1164 |
--exec=* |
--exe=* |
--ex=*)
1165 exec_prefix
=$ac_optarg ;;
1167 -gas |
--gas |
--ga |
--g)
1168 # Obsolete; use --with-gas.
1171 -help |
--help |
--hel |
--he |
-h)
1172 ac_init_help
=long
;;
1173 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1174 ac_init_help
=recursive
;;
1175 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1176 ac_init_help
=short
;;
1178 -host |
--host |
--hos |
--ho)
1179 ac_prev
=host_alias
;;
1180 -host=* |
--host=* |
--hos=* |
--ho=*)
1181 host_alias
=$ac_optarg ;;
1183 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1185 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1187 htmldir
=$ac_optarg ;;
1189 -includedir |
--includedir |
--includedi |
--included |
--include \
1190 |
--includ |
--inclu |
--incl |
--inc)
1191 ac_prev
=includedir
;;
1192 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1193 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1194 includedir
=$ac_optarg ;;
1196 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1198 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1199 infodir
=$ac_optarg ;;
1201 -libdir |
--libdir |
--libdi |
--libd)
1203 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1204 libdir
=$ac_optarg ;;
1206 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1207 |
--libexe |
--libex |
--libe)
1208 ac_prev
=libexecdir
;;
1209 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1210 |
--libexe=* |
--libex=* |
--libe=*)
1211 libexecdir
=$ac_optarg ;;
1213 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1214 ac_prev
=localedir
;;
1215 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1216 localedir
=$ac_optarg ;;
1218 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1219 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1220 ac_prev
=localstatedir
;;
1221 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1222 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1223 localstatedir
=$ac_optarg ;;
1225 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1227 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1228 mandir
=$ac_optarg ;;
1230 -nfp |
--nfp |
--nf)
1231 # Obsolete; use --without-fp.
1234 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1235 |
--no-cr |
--no-c |
-n)
1238 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1239 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1242 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1243 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1244 |
--oldin |
--oldi |
--old |
--ol |
--o)
1245 ac_prev
=oldincludedir
;;
1246 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1247 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1248 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1249 oldincludedir
=$ac_optarg ;;
1251 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1253 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1254 prefix
=$ac_optarg ;;
1256 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1257 |
--program-pre |
--program-pr |
--program-p)
1258 ac_prev
=program_prefix
;;
1259 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1260 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1261 program_prefix
=$ac_optarg ;;
1263 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1264 |
--program-suf |
--program-su |
--program-s)
1265 ac_prev
=program_suffix
;;
1266 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1267 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1268 program_suffix
=$ac_optarg ;;
1270 -program-transform-name |
--program-transform-name \
1271 |
--program-transform-nam |
--program-transform-na \
1272 |
--program-transform-n |
--program-transform- \
1273 |
--program-transform |
--program-transfor \
1274 |
--program-transfo |
--program-transf \
1275 |
--program-trans |
--program-tran \
1276 |
--progr-tra |
--program-tr |
--program-t)
1277 ac_prev
=program_transform_name
;;
1278 -program-transform-name=* |
--program-transform-name=* \
1279 |
--program-transform-nam=* |
--program-transform-na=* \
1280 |
--program-transform-n=* |
--program-transform-=* \
1281 |
--program-transform=* |
--program-transfor=* \
1282 |
--program-transfo=* |
--program-transf=* \
1283 |
--program-trans=* |
--program-tran=* \
1284 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1285 program_transform_name
=$ac_optarg ;;
1287 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1289 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1290 pdfdir
=$ac_optarg ;;
1292 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1294 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1297 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1298 |
-silent |
--silent |
--silen |
--sile |
--sil)
1301 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1303 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1305 sbindir
=$ac_optarg ;;
1307 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1308 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1309 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1311 ac_prev
=sharedstatedir
;;
1312 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1313 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1314 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1316 sharedstatedir
=$ac_optarg ;;
1318 -site |
--site |
--sit)
1320 -site=* |
--site=* |
--sit=*)
1323 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1325 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1326 srcdir
=$ac_optarg ;;
1328 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1329 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1330 ac_prev
=sysconfdir
;;
1331 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1332 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1333 sysconfdir
=$ac_optarg ;;
1335 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1336 ac_prev
=target_alias
;;
1337 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1338 target_alias
=$ac_optarg ;;
1340 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1343 -version |
--version |
--versio |
--versi |
--vers |
-V)
1344 ac_init_version
=: ;;
1347 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1350 as_fn_error $?
"invalid package name: $ac_useropt"
1351 ac_useropt_orig
=$ac_useropt
1352 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1357 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1358 ac_unrecognized_sep
=', ';;
1360 eval with_
$ac_useropt=\
$ac_optarg ;;
1362 -without-* |
--without-*)
1363 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1364 # Reject names that are not valid shell variable names.
1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1366 as_fn_error $?
"invalid package name: $ac_useropt"
1367 ac_useropt_orig
=$ac_useropt
1368 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1373 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1374 ac_unrecognized_sep
=', ';;
1376 eval with_
$ac_useropt=no
;;
1379 # Obsolete; use --with-x.
1382 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1383 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1384 ac_prev
=x_includes
;;
1385 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1386 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1387 x_includes
=$ac_optarg ;;
1389 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1390 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1391 ac_prev
=x_libraries
;;
1392 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1393 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1394 x_libraries
=$ac_optarg ;;
1396 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1397 Try \`$0 --help' for more information"
1401 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1402 # Reject names that are not valid shell variable names.
1403 case $ac_envvar in #(
1404 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1405 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1407 eval $ac_envvar=\
$ac_optarg
1408 export $ac_envvar ;;
1411 # FIXME: should be removed in autoconf 3.0.
1412 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1413 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1414 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1415 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1421 if test -n "$ac_prev"; then
1422 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1423 as_fn_error $?
"missing argument to $ac_option"
1426 if test -n "$ac_unrecognized_opts"; then
1427 case $enable_option_checking in
1429 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1430 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1434 # Check all directory arguments for consistency.
1435 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1436 datadir sysconfdir sharedstatedir localstatedir includedir \
1437 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1438 libdir localedir mandir
1440 eval ac_val
=\$
$ac_var
1441 # Remove trailing slashes.
1444 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1445 eval $ac_var=\
$ac_val;;
1447 # Be sure to have absolute directory names.
1449 [\\/$
]* | ?
:[\\/]* ) continue;;
1450 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1452 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1455 # There might be people who depend on the old broken behavior: `$host'
1456 # used to hold the argument of --host etc.
1457 # FIXME: To remove some day.
1460 target
=$target_alias
1462 # FIXME: To remove some day.
1463 if test "x$host_alias" != x
; then
1464 if test "x$build_alias" = x
; then
1465 cross_compiling
=maybe
1466 elif test "x$build_alias" != "x$host_alias"; then
1472 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1474 test "$silent" = yes && exec 6>/dev
/null
1477 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di
=`ls -di .` &&
1479 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1480 as_fn_error $?
"working directory cannot be determined"
1481 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1482 as_fn_error $?
"pwd does not report name of working directory"
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487 ac_srcdir_defaulted
=yes
1488 # Try the directory containing this script, then the parent directory.
1489 ac_confdir
=`$as_dirname -- "$as_myself" ||
1490 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491 X"$as_myself" : 'X\(//\)[^/]' \| \
1492 X"$as_myself" : 'X\(//\)$' \| \
1493 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1494 $as_echo X"$as_myself" |
1495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1517 ac_srcdir_defaulted
=no
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1521 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1523 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1525 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1527 # When building in place, set srcdir=.
1528 if test "$ac_abs_confdir" = "$ac_pwd"; then
1531 # Remove unnecessary trailing slashes from srcdir.
1532 # Double slashes in file names in object file debugging info
1533 # mess up M-x gdb in Emacs.
1535 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1537 for ac_var
in $ac_precious_vars; do
1538 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1539 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1540 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1541 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1545 # Report the --help message.
1547 if test "$ac_init_help" = "long"; then
1548 # Omit some internal or obsolete options to make the list less imposing.
1549 # This message is too long to be a string in the A/UX 3.1 sh.
1551 \`configure' configures this package to adapt to many kinds of systems.
1553 Usage: $0 [OPTION]... [VAR=VALUE]...
1555 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1556 VAR=VALUE. See below for descriptions of some of the useful variables.
1558 Defaults for the options are specified in brackets.
1561 -h, --help display this help and exit
1562 --help=short display options specific to this package
1563 --help=recursive display the short help of all the included packages
1564 -V, --version display version information and exit
1565 -q, --quiet, --silent do not print \`checking ...' messages
1566 --cache-file=FILE cache test results in FILE [disabled]
1567 -C, --config-cache alias for \`--cache-file=config.cache'
1568 -n, --no-create do not create output files
1569 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1571 Installation directories:
1572 --prefix=PREFIX install architecture-independent files in PREFIX
1573 [$ac_default_prefix]
1574 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1577 By default, \`make install' will install all the files in
1578 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1579 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1580 for instance \`--prefix=\$HOME'.
1582 For better control, use the options below.
1584 Fine tuning of the installation directories:
1585 --bindir=DIR user executables [EPREFIX/bin]
1586 --sbindir=DIR system admin executables [EPREFIX/sbin]
1587 --libexecdir=DIR program executables [EPREFIX/libexec]
1588 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1589 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1590 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1591 --libdir=DIR object code libraries [EPREFIX/lib]
1592 --includedir=DIR C header files [PREFIX/include]
1593 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1594 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1595 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1596 --infodir=DIR info documentation [DATAROOTDIR/info]
1597 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1598 --mandir=DIR man documentation [DATAROOTDIR/man]
1599 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1600 --htmldir=DIR html documentation [DOCDIR]
1601 --dvidir=DIR dvi documentation [DOCDIR]
1602 --pdfdir=DIR pdf documentation [DOCDIR]
1603 --psdir=DIR ps documentation [DOCDIR]
1609 --program-prefix=PREFIX prepend PREFIX to installed program names
1610 --program-suffix=SUFFIX append SUFFIX to installed program names
1611 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1614 --x-includes=DIR X include files are
in DIR
1615 --x-libraries=DIR X library files are
in DIR
1618 --build=BUILD configure
for building on BUILD
[guessed
]
1619 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1620 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1624 if test -n "$ac_init_help"; then
1629 --disable-option-checking ignore unrecognized
--enable/--with options
1630 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1631 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1632 --enable-maintainer-mode
1633 enable make rules and dependencies not useful
(and
1634 sometimes confusing
) to the casual installer
1635 --enable-plugins Enable support
for plugins
1636 --disable-largefile omit support
for large files
1637 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1638 --enable-static[=PKGS
] build static libraries
[default
=yes]
1639 --enable-fast-install[=PKGS
]
1640 optimize
for fast installation
[default
=yes]
1641 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1642 --enable-threading include support
for parallel processing of data
1644 --disable-rpath do not hardcode runtime library paths
1645 --disable-nls do not use Native Language Support
1646 --enable-targets=TARGETS
1647 alternative target configurations
1648 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1649 --enable-tui enable full-screen terminal user interface
(TUI
)
1650 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1651 --enable-profiling enable profiling of GDB
1652 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1653 --enable-source-highlight
1654 enable source-highlight
for source listings
1655 --enable-werror treat compile warnings as errors
1656 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1657 --enable-gdb-build-warnings
1658 enable GDB specific build-time compiler warnings
if
1660 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1661 --enable-sim link gdb with simulator
1662 --enable-libbacktrace use libbacktrace to
write a backtrace after a fatal
1664 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1665 --enable-unit-tests Enable the inclusion of unit tests when compiling
1669 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1670 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1671 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1673 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1674 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1675 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1676 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1677 --without-libipt-prefix don
't search for libipt in includedir and libdir
1678 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1679 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1680 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1681 --without-libxxhash-prefix don't search
for libxxhash
in includedir and libdir
1682 --with-libxxhash-type=TYPE
type of library to search
for (auto
/static
/shared
)
1683 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1684 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1685 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1686 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1687 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1688 --with-libintl-type=TYPE
type of library to search
for (auto
/static
/shared
)
1689 --with-separate-debug-dir=PATH
1690 look for global separate debug info
in this path
1692 --with-additional-debug-dirs=PATHs
1693 colon-separated list of additional directories to
1694 search
for separate debug info
1695 --with-gdb-datadir=PATH
look for global separate data files
in this path
1697 --with-relocated-sources=PATH
1698 automatically relocate this path
for source files
1699 --with-auto-load-dir=PATH
1700 directories from
which to load auto-loaded scripts
1701 [$debugdir:$datadir/auto-load
]
1702 --with-auto-load-safe-path=PATH
1703 directories safe to hold auto-loaded files
1704 [--with-auto-load-dir]
1705 --without-auto-load-safe-path
1706 do not restrict auto-loaded files locations
1707 --with-amd-dbgapi support
for the amd-dbgapi target
(yes / no
/ auto
)
1708 --with-debuginfod Enable debuginfo lookups with debuginfod
1710 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1711 --with-curses use the curses library instead of the termcap
1713 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1714 --with-bugurl=URL Direct users to URL to report a bug
1715 --with-system-zlib use installed libz
1716 --with-zstd support zstd compressed debug sections
1718 --with-iconv-bin=PATH specify where to
find the
iconv program
1719 --with-system-readline use installed readline library
1720 --with-jit-reader-dir=PATH
1721 directory to load the JIT readers from
1722 --with-expat include expat support
(auto
/yes
/no
)
1723 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1724 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1725 --with-libexpat-type=TYPE type of library to search for (auto/static/shared)
1726 --with-python[=PYTHON] include python support
1727 (auto/yes/no/<python-program>)
1728 --with-python-libdir[=DIR]
1729 search for python's libraries
in DIR
1730 --with-guile[=GUILE
] include guile support
1731 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1732 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1733 --with-system-gdbinit=PATH
1734 automatically load a system-wide gdbinit
file
1735 --with-system-gdbinit-dir=PATH
1736 automatically load system-wide gdbinit files from
1738 --with-lzma support lzma compression
(auto
/yes
/no
)
1739 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1740 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1741 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1742 --with-tcl directory containing tcl configuration (tclConfig.sh)
1743 --with-tk directory containing tk configuration (tkConfig.sh)
1744 --with-x use the X Window System
1745 --with-babeltrace include babeltrace support (auto/yes/no)
1746 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1747 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1748 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1750 Some influential environment variables
:
1751 CC C compiler
command
1752 CFLAGS C compiler flags
1753 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1754 nonstandard directory
<lib dir
>
1755 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1756 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1757 you have headers
in a nonstandard directory
<include dir
>
1758 CXX C
++ compiler
command
1759 CXXFLAGS C
++ compiler flags
1761 CXXCPP C
++ preprocessor
1762 PKG_CONFIG path to pkg-config utility
1764 directories to add to pkg-config
's search path
1766 path overriding pkg-config's built-in search path
1767 MAKEINFO Parent configure detects
if it is of sufficient version.
1769 Parameters
for MAKEINFO.
1771 C compiler flags
for AMD_DBGAPI
, overriding pkg-config
1773 linker flags
for AMD_DBGAPI
, overriding pkg-config
1775 C compiler flags
for DEBUGINFOD
, overriding pkg-config
1777 linker flags
for DEBUGINFOD
, overriding pkg-config
1778 YACC The
`Yet Another Compiler Compiler' implementation to use.
1779 Defaults to the first program found out of: `bison
-y', `byacc',
1781 YFLAGS The list of arguments that will be passed by default to $YACC.
1782 This script will default YFLAGS to the empty string to avoid a
1783 default value of `-d' given by some make applications.
1784 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1785 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1786 GMPLIBS How to link GMP
1787 GMPINC How to find GMP include files
1788 XMKMF Path to xmkmf, Makefile generator for X Window System
1790 Use these variables to override the choices made by `configure' or to
help
1791 it to
find libraries and programs with nonstandard names
/locations.
1793 Report bugs to the package provider.
1798 if test "$ac_init_help" = "recursive"; then
1799 # If there are subdirs, report their specific --help.
1800 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1801 test -d "$ac_dir" ||
1802 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1807 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1809 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1810 # A ".." for each directory in $ac_dir_suffix.
1811 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1812 case $ac_top_builddir_sub in
1813 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1814 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1817 ac_abs_top_builddir
=$ac_pwd
1818 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1819 # for backward compatibility:
1820 ac_top_builddir
=$ac_top_build_prefix
1823 .
) # We are building in place.
1825 ac_top_srcdir
=$ac_top_builddir_sub
1826 ac_abs_top_srcdir
=$ac_pwd ;;
1827 [\\/]* | ?
:[\\/]* ) # Absolute name.
1828 ac_srcdir
=$srcdir$ac_dir_suffix;
1829 ac_top_srcdir
=$srcdir
1830 ac_abs_top_srcdir
=$srcdir ;;
1832 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1833 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1834 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1836 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1838 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1839 # Check for guested configure.
1840 if test -f "$ac_srcdir/configure.gnu"; then
1842 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1843 elif test -f "$ac_srcdir/configure"; then
1845 $SHELL "$ac_srcdir/configure" --help=recursive
1847 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1849 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1853 test -n "$ac_init_help" && exit $ac_status
1854 if $ac_init_version; then
1857 generated by GNU Autoconf
2.69
1859 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1860 This configure
script is free software
; the Free Software Foundation
1861 gives unlimited permission to copy
, distribute and modify it.
1866 ## ------------------------ ##
1867 ## Autoconf initialization. ##
1868 ## ------------------------ ##
1870 # ac_fn_c_try_compile LINENO
1871 # --------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_compile
()
1875 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1876 rm -f conftest.
$ac_objext
1877 if { { ac_try
="$ac_compile"
1879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.$ac_objext; then :
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1906 } # ac_fn_c_try_compile
1908 # ac_fn_cxx_try_compile LINENO
1909 # ----------------------------
1910 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_compile ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 rm -f conftest.$ac_objext
1915 if { { ac_try="$ac_compile"
1917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1918 *) ac_try_echo
=$ac_try;;
1920 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_compile") 2>conftest.err
1924 if test -s conftest.err
; then
1925 grep -v '^ *+' conftest.err
>conftest.er1
1926 cat conftest.er1
>&5
1927 mv -f conftest.er1 conftest.err
1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; } && {
1931 test -z "$ac_cxx_werror_flag" ||
1932 test ! -s conftest.err
1933 } && test -s conftest.
$ac_objext; then :
1936 $as_echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.
$ac_ext >&5
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 as_fn_set_status
$ac_retval
1944 } # ac_fn_cxx_try_compile
1946 # ac_fn_c_try_cpp LINENO
1947 # ----------------------
1948 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1951 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1952 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } > conftest.i && {
1968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status $ac_retval
1983 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1984 # -------------------------------------------------------
1985 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1986 # the include files in INCLUDES and setting the cache variable VAR
1988 ac_fn_c_check_header_mongrel ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 if eval \${$3+:} false; then :
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995 $as_echo_n "(cached) " >&6
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2001 # Is the header compilable?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2003 $as_echo_n "checking $2 usability... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010 ac_header_compiler=yes
2012 ac_header_compiler=no
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2016 $as_echo "$ac_header_compiler" >&6; }
2018 # Is the header present?
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2020 $as_echo_n "checking $2 presence... " >&6; }
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2025 if ac_fn_c_try_cpp "$LINENO"; then :
2026 ac_header_preproc=yes
2028 ac_header_preproc=no
2030 rm -f conftest.err conftest.i conftest.$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2032 $as_echo "$ac_header_preproc" >&6; }
2034 # So? What about this header?
2035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2038 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2044 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2046 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2048 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2050 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2052 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2060 eval "$3=\$ac_header_compiler"
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 } # ac_fn_c_check_header_mongrel
2070 # ac_fn_c_try_run LINENO
2071 # ----------------------
2072 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2073 # that executables *can* be run.
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 if { { ac_try="$ac_link"
2079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2080 *) ac_try_echo
=$ac_try;;
2082 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_link") 2>&5
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2088 { { case "(($ac_try" in
2089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093 $as_echo "$ac_try_echo"; } >&5
2094 (eval "$ac_try") 2>&5
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; }; }; then :
2100 $as_echo "$as_me: program exited with status $ac_status" >&5
2101 $as_echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2104 ac_retval=$ac_status
2106 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 as_fn_set_status $ac_retval
2112 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2113 # -------------------------------------------------------
2114 # Tests whether HEADER exists and can be compiled using the include files in
2115 # INCLUDES, setting the cache variable VAR accordingly.
2116 ac_fn_c_check_header_compile ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if eval \${$3+:} false; then :
2122 $as_echo_n "(cached) " >&6
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2129 if ac_fn_c_try_compile "$LINENO"; then :
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 } # ac_fn_c_check_header_compile
2143 # ac_fn_c_try_link LINENO
2144 # -----------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded.
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 rm -f conftest.$ac_objext conftest$ac_exeext
2150 if { { ac_try="$ac_link"
2152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2153 *) ac_try_echo
=$ac_try;;
2155 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_link") 2>conftest.err
2159 if test -s conftest.err
; then
2160 grep -v '^ *+' conftest.err
>conftest.er1
2161 cat conftest.er1
>&5
2162 mv -f conftest.er1 conftest.err
2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165 test $ac_status = 0; } && {
2166 test -z "$ac_c_werror_flag" ||
2167 test ! -s conftest.err
2168 } && test -s conftest
$ac_exeext && {
2169 test "$cross_compiling" = yes ||
2170 test -x conftest
$ac_exeext
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.
$ac_ext >&5
2179 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2180 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2181 # interfere with the next link command; also delete a directory that is
2182 # left behind by Apple's compiler. We do this before executing the actions.
2183 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185 as_fn_set_status
$ac_retval
2187 } # ac_fn_c_try_link
2189 # ac_fn_c_check_func LINENO FUNC VAR
2190 # ----------------------------------
2191 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2192 ac_fn_c_check_func
()
2194 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if eval \
${$3+:} false
; then :
2198 $as_echo_n "(cached) " >&6
2200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2204 #define $2 innocuous_$2
2206 /* System header to define __stub macros and hopefully few prototypes,
2207 which can conflict with char $2 (); below.
2208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2209 <limits.h> exists even on freestanding compilers. */
2212 # include <limits.h>
2214 # include <assert.h>
2219 /* Override any GCC internal prototype to avoid an error.
2220 Use char because int might match the return type of a GCC
2221 builtin and then its argument prototype would still apply. */
2226 /* The GNU C library defines this for functions which it implements
2227 to always fail with ENOSYS. Some functions are actually named
2228 something starting with __ and the normal name is an alias. */
2229 #if defined __stub_$2 || defined __stub___$2
2241 if ac_fn_c_try_link
"$LINENO"; then :
2246 rm -f core conftest.err conftest.
$ac_objext \
2247 conftest
$ac_exeext conftest.
$ac_ext
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 } # ac_fn_c_check_func
2256 # ac_fn_cxx_try_cpp LINENO
2257 # ------------------------
2258 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2259 ac_fn_cxx_try_cpp
()
2261 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2262 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268 $as_echo "$ac_try_echo"; } >&5
2269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2271 if test -s conftest.err; then
2272 grep -v '^ *+' conftest.err >conftest.er1
2273 cat conftest.er1 >&5
2274 mv -f conftest.er1 conftest.err
2276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277 test $ac_status = 0; } > conftest.i && {
2278 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2279 test ! -s conftest.err
2283 $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 as_fn_set_status $ac_retval
2291 } # ac_fn_cxx_try_cpp
2293 # ac_fn_cxx_try_link LINENO
2294 # -------------------------
2295 # Try to link conftest.$ac_ext, and return whether this succeeded.
2296 ac_fn_cxx_try_link ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 rm -f conftest.$ac_objext conftest$ac_exeext
2300 if { { ac_try="$ac_link"
2302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2303 *) ac_try_echo
=$ac_try;;
2305 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_link") 2>conftest.err
2309 if test -s conftest.err
; then
2310 grep -v '^ *+' conftest.err
>conftest.er1
2311 cat conftest.er1
>&5
2312 mv -f conftest.er1 conftest.err
2314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2315 test $ac_status = 0; } && {
2316 test -z "$ac_cxx_werror_flag" ||
2317 test ! -s conftest.err
2318 } && test -s conftest
$ac_exeext && {
2319 test "$cross_compiling" = yes ||
2320 test -x conftest
$ac_exeext
2324 $as_echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.
$ac_ext >&5
2329 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2330 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2331 # interfere with the next link command; also delete a directory that is
2332 # left behind by Apple's compiler. We do this before executing the actions.
2333 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335 as_fn_set_status
$ac_retval
2337 } # ac_fn_cxx_try_link
2339 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2340 # -------------------------------------------
2341 # Tests whether TYPE exists after having included INCLUDES, setting cache
2342 # variable VAR accordingly.
2343 ac_fn_c_check_type
()
2345 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347 $as_echo_n "checking for $2... " >&6; }
2348 if eval \
${$3+:} false
; then :
2349 $as_echo_n "(cached) " >&6
2352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2364 if ac_fn_c_try_compile
"$LINENO"; then :
2365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2377 if ac_fn_c_try_compile
"$LINENO"; then :
2382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2391 } # ac_fn_c_check_type
2393 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2394 # ---------------------------------------------
2395 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2397 ac_fn_c_check_decl
()
2399 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2400 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2401 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2403 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2404 if eval \
${$3+:} false
; then :
2405 $as_echo_n "(cached) " >&6
2407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2413 #ifndef $as_decl_name
2415 (void) $as_decl_use;
2417 (void) $as_decl_name;
2425 if ac_fn_c_try_compile
"$LINENO"; then :
2430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2434 $as_echo "$ac_res" >&6; }
2435 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437 } # ac_fn_c_check_decl
2439 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2440 # ----------------------------------------------------
2441 # Tries to find if the field MEMBER exists in type AGGR, after including
2442 # INCLUDES, setting cache variable VAR accordingly.
2443 ac_fn_c_check_member
()
2445 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2447 $as_echo_n "checking for $2.$3... " >&6; }
2448 if eval \
${$4+:} false
; then :
2449 $as_echo_n "(cached) " >&6
2451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2464 if ac_fn_c_try_compile
"$LINENO"; then :
2467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2474 if (sizeof ac_aggr.$3)
2480 if ac_fn_c_try_compile
"$LINENO"; then :
2485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494 } # ac_fn_c_check_member
2496 # ac_fn_cxx_check_func LINENO FUNC VAR
2497 # ------------------------------------
2498 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2499 ac_fn_cxx_check_func
()
2501 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2503 $as_echo_n "checking for $2... " >&6; }
2504 if eval \
${$3+:} false
; then :
2505 $as_echo_n "(cached) " >&6
2507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2511 #define $2 innocuous_$2
2513 /* System header to define __stub macros and hopefully few prototypes,
2514 which can conflict with char $2 (); below.
2515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2516 <limits.h> exists even on freestanding compilers. */
2519 # include <limits.h>
2521 # include <assert.h>
2526 /* Override any GCC internal prototype to avoid an error.
2527 Use char because int might match the return type of a GCC
2528 builtin and then its argument prototype would still apply. */
2533 /* The GNU C library defines this for functions which it implements
2534 to always fail with ENOSYS. Some functions are actually named
2535 something starting with __ and the normal name is an alias. */
2536 #if defined __stub_$2 || defined __stub___$2
2548 if ac_fn_cxx_try_link
"$LINENO"; then :
2553 rm -f core conftest.err conftest.
$ac_objext \
2554 conftest
$ac_exeext conftest.
$ac_ext
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2558 $as_echo "$ac_res" >&6; }
2559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2561 } # ac_fn_cxx_check_func
2563 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2564 # --------------------------------------------
2565 # Tries to find the compile-time value of EXPR in a program that includes
2566 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2568 ac_fn_c_compute_int
()
2570 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2571 if test "$cross_compiling" = yes; then
2572 # Depending upon the size, compute the lo and hi bounds.
2573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2579 static int test_array [1 - 2 * !(($2) >= 0)];
2581 return test_array [0];
2587 if ac_fn_c_try_compile
"$LINENO"; then :
2590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2596 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2598 return test_array [0];
2604 if ac_fn_c_try_compile
"$LINENO"; then :
2605 ac_hi
=$ac_mid; break
2607 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2608 if test $ac_lo -le $ac_mid; then
2612 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2623 static int test_array [1 - 2 * !(($2) < 0)];
2625 return test_array [0];
2631 if ac_fn_c_try_compile
"$LINENO"; then :
2634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2640 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2642 return test_array [0];
2648 if ac_fn_c_try_compile
"$LINENO"; then :
2649 ac_lo
=$ac_mid; break
2651 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2652 if test $ac_mid -le $ac_hi; then
2656 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2666 # Binary search between lo and hi bounds.
2667 while test "x$ac_lo" != "x$ac_hi"; do
2668 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2675 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2677 return test_array [0];
2683 if ac_fn_c_try_compile
"$LINENO"; then :
2686 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2691 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2698 static long int longval () { return $2; }
2699 static unsigned long int ulongval () { return $2; }
2706 FILE *f = fopen ("conftest.val", "w");
2711 long int i = longval ();
2714 fprintf (f, "%ld", i);
2718 unsigned long int i = ulongval ();
2721 fprintf (f, "%lu", i);
2723 /* Do not output a trailing newline, as this causes \r\n confusion
2724 on some platforms. */
2725 return ferror (f) || fclose (f) != 0;
2731 if ac_fn_c_try_run
"$LINENO"; then :
2732 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2736 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2737 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2742 as_fn_set_status
$ac_retval
2744 } # ac_fn_c_compute_int
2745 cat >config.log
<<_ACEOF
2746 This file contains any messages produced by compilers while
2747 running configure, to aid debugging if configure makes a mistake.
2749 It was created by $as_me, which was
2750 generated by GNU Autoconf 2.69. Invocation command line was
2762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2774 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir
=.
2786 $as_echo "PATH: $as_dir"
2802 # Keep a trace of the command line.
2803 # Strip out --no-create and --no-recursion so they do not pile up.
2804 # Strip out --silent because we don't want to record it for future runs.
2805 # Also quote any args containing shell meta-characters.
2806 # Make two passes to allow for proper duplicate-argument suppression.
2810 ac_must_keep_next
=false
2816 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2817 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2818 |
-silent |
--silent |
--silen |
--sile |
--sil)
2821 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2824 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2826 as_fn_append ac_configure_args1
" '$ac_arg'"
2827 if test $ac_must_keep_next = true
; then
2828 ac_must_keep_next
=false
# Got value, back to normal.
2831 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2832 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2833 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2834 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2835 case "$ac_configure_args0 " in
2836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2839 -* ) ac_must_keep_next
=true
;;
2842 as_fn_append ac_configure_args
" '$ac_arg'"
2847 { ac_configure_args0
=; unset ac_configure_args0
;}
2848 { ac_configure_args1
=; unset ac_configure_args1
;}
2850 # When interrupted or exit'd, cleanup temporary files, and complete
2851 # config.log. We remove comments because anyway the quotes in there
2852 # would cause problems or look ugly.
2853 # WARNING: Use '\'' to represent an apostrophe within the trap.
2854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2855 trap 'exit_status=$?
2856 # Save into config.log some information that might help in debugging.
2860 $as_echo "## ---------------- ##
2861 ## Cache variables. ##
2862 ## ---------------- ##"
2864 # The following way of writing the cache mishandles newlines in values,
2866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2867 eval ac_val=\$$ac_var
2871 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2875 _ | IFS | as_nl) ;; #(
2876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2877 *) { eval $ac_var=; unset $ac_var;} ;;
2882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2883 *${as_nl}ac_space=\ *)
2885 "s/'\''/'\''\\\\'\'''\''/g;
2886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2896 $as_echo "## ----------------- ##
2897 ## Output variables. ##
2898 ## ----------------- ##"
2900 for ac_var in $ac_subst_vars
2902 eval ac_val=\$$ac_var
2904 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2906 $as_echo "$ac_var='\''$ac_val'\''"
2910 if test -n "$ac_subst_files"; then
2911 $as_echo "## ------------------- ##
2912 ## File substitutions. ##
2913 ## ------------------- ##"
2915 for ac_var
in $ac_subst_files
2917 eval ac_val
=\$
$ac_var
2919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2921 $as_echo "$ac_var='\''$ac_val'\''"
2926 if test -s confdefs.h; then
2927 $as_echo "## ----------- ##
2934 test "$ac_signal" != 0 &&
2935 $as_echo "$as_me: caught signal $ac_signal"
2936 $as_echo "$as_me: exit $exit_status"
2938 rm -f core *.core core.conftest.* &&
2939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2942 for ac_signal
in 1 2 13 15; do
2943 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2948 rm -f -r conftest
* confdefs.h
2950 $as_echo "/* confdefs.h */" > confdefs.h
2952 # Predefined preprocessor variables.
2954 cat >>confdefs.h
<<_ACEOF
2955 #define PACKAGE_NAME "$PACKAGE_NAME"
2958 cat >>confdefs.h
<<_ACEOF
2959 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2962 cat >>confdefs.h
<<_ACEOF
2963 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2966 cat >>confdefs.h
<<_ACEOF
2967 #define PACKAGE_STRING "$PACKAGE_STRING"
2970 cat >>confdefs.h
<<_ACEOF
2971 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2974 cat >>confdefs.h
<<_ACEOF
2975 #define PACKAGE_URL "$PACKAGE_URL"
2979 # Let the site file select an alternate cache file if it wants to.
2980 # Prefer an explicitly selected file to automatically selected ones.
2983 if test -n "$CONFIG_SITE"; then
2984 # We do not want a PATH search for config.site.
2985 case $CONFIG_SITE in #((
2986 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2987 */*) ac_site_file1
=$CONFIG_SITE;;
2988 *) ac_site_file1
=.
/$CONFIG_SITE;;
2990 elif test "x$prefix" != xNONE
; then
2991 ac_site_file1
=$prefix/share
/config.site
2992 ac_site_file2
=$prefix/etc
/config.site
2994 ac_site_file1
=$ac_default_prefix/share
/config.site
2995 ac_site_file2
=$ac_default_prefix/etc
/config.site
2997 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2999 test "x$ac_site_file" = xNONE
&& continue
3000 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3003 sed 's/^/| /' "$ac_site_file" >&5
3005 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 as_fn_error $?
"failed to load site script $ac_site_file
3008 See \`config.log' for more details" "$LINENO" 5; }
3012 if test -r "$cache_file"; then
3013 # Some versions of bash will fail to source /dev/null (special files
3014 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3015 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3017 $as_echo "$as_me: loading cache $cache_file" >&6;}
3019 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3020 *) .
"./$cache_file";;
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3025 $as_echo "$as_me: creating cache $cache_file" >&6;}
3029 as_fn_append ac_header_list
" stdlib.h"
3030 as_fn_append ac_header_list
" unistd.h"
3031 as_fn_append ac_header_list
" sys/param.h"
3032 gt_needs
="$gt_needs "
3033 # Check that the precious variables saved in the cache have kept the same
3035 ac_cache_corrupted
=false
3036 for ac_var
in $ac_precious_vars; do
3037 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3038 eval ac_new_set
=\
$ac_env_${ac_var}_set
3039 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3040 eval ac_new_val
=\
$ac_env_${ac_var}_value
3041 case $ac_old_set,$ac_new_set in
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3044 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3045 ac_cache_corrupted
=: ;;
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3048 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3049 ac_cache_corrupted
=: ;;
3052 if test "x$ac_old_val" != "x$ac_new_val"; then
3053 # differences in whitespace do not lead to failure.
3054 ac_old_val_w
=`echo x $ac_old_val`
3055 ac_new_val_w
=`echo x $ac_new_val`
3056 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3058 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3059 ac_cache_corrupted
=:
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3062 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3063 eval $ac_var=\
$ac_old_val
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3066 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3068 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3071 # Pass precious variables to config.status.
3072 if test "$ac_new_set" = set; then
3074 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3075 *) ac_arg
=$ac_var=$ac_new_val ;;
3077 case " $ac_configure_args " in
3078 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3079 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3083 if $ac_cache_corrupted; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3087 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3088 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3090 ## -------------------- ##
3091 ## Main body of script. ##
3092 ## -------------------- ##
3095 ac_cpp
='$CPP $CPPFLAGS'
3096 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3106 ac_config_headers
="$ac_config_headers config.h:config.in"
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3110 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3111 # Check whether --enable-maintainer-mode was given.
3112 if test "${enable_maintainer_mode+set}" = set; then :
3113 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3115 USE_MAINTAINER_MODE
=no
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3119 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3120 if test $USE_MAINTAINER_MODE = yes; then
3121 MAINTAINER_MODE_TRUE
=
3122 MAINTAINER_MODE_FALSE
='#'
3124 MAINTAINER_MODE_TRUE
='#'
3125 MAINTAINER_MODE_FALSE
=
3128 MAINT
=$MAINTAINER_MODE_TRUE
3133 ac_cpp
='$CPP $CPPFLAGS'
3134 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3139 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_CC+:} false
; then :
3143 $as_echo_n "(cached) " >&6
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC
="$CC" # Let the user override the test.
3148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir
=.
3153 for ac_exec_ext
in '' $ac_executable_extensions; do
3154 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3176 if test -z "$ac_cv_prog_CC"; then
3178 # Extract the first word of "gcc", so it can be a program name with args.
3179 set dummy gcc
; ac_word
=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3183 $as_echo_n "(cached) " >&6
3185 if test -n "$ac_ct_CC"; then
3186 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3192 test -z "$as_dir" && as_dir
=.
3193 for ac_exec_ext
in '' $ac_executable_extensions; do
3194 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_ac_ct_CC
="gcc"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3206 if test -n "$ac_ct_CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208 $as_echo "$ac_ct_CC" >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3214 if test "x$ac_ct_CC" = x
; then
3217 case $cross_compiling:$ac_tool_warned in
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned
=yes ;;
3229 if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3232 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_CC+:} false
; then :
3236 $as_echo_n "(cached) " >&6
3238 if test -n "$CC"; then
3239 ac_cv_prog_CC
="$CC" # Let the user override the test.
3241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3245 test -z "$as_dir" && as_dir
=.
3246 for ac_exec_ext
in '' $ac_executable_extensions; do
3247 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3270 if test -z "$CC"; then
3271 # Extract the first word of "cc", so it can be a program name with args.
3272 set dummy cc
; ac_word
=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false
; then :
3276 $as_echo_n "(cached) " >&6
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC
="$CC" # Let the user override the test.
3282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3286 test -z "$as_dir" && as_dir
=.
3287 for ac_exec_ext
in '' $ac_executable_extensions; do
3288 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3290 ac_prog_rejected
=yes
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 if test $ac_prog_rejected = yes; then
3302 # We found a bogon in the path, so make sure we never use it.
3303 set dummy
$ac_cv_prog_CC
3305 if test $# != 0; then
3306 # We chose a different compiler from the bogus one.
3307 # However, it has the same basename, so the bogon will be chosen
3308 # first if we set CC to just the basename; use the full file name.
3310 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3316 if test -n "$CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3326 if test -z "$CC"; then
3327 if test -n "$ac_tool_prefix"; then
3328 for ac_prog
in cl.exe
3330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3331 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_CC+:} false
; then :
3335 $as_echo_n "(cached) " >&6
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC
="$CC" # Let the user override the test.
3340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir
=.
3345 for ac_exec_ext
in '' $ac_executable_extensions; do
3346 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3367 test -n "$CC" && break
3370 if test -z "$CC"; then
3372 for ac_prog
in cl.exe
3374 # Extract the first word of "$ac_prog", so it can be a program name with args.
3375 set dummy
$ac_prog; ac_word
=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3379 $as_echo_n "(cached) " >&6
3381 if test -n "$ac_ct_CC"; then
3382 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir
=.
3389 for ac_exec_ext
in '' $ac_executable_extensions; do
3390 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_ac_ct_CC
="$ac_prog"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3411 test -n "$ac_ct_CC" && break
3414 if test "x$ac_ct_CC" = x
; then
3417 case $cross_compiling:$ac_tool_warned in
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421 ac_tool_warned
=yes ;;
3430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $?
"no acceptable C compiler found in \$PATH
3433 See \`config.log' for more details" "$LINENO" 5; }
3435 # Provide some information about the compiler.
3436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439 for ac_option
in --version -v -V -qversion; do
3440 { { ac_try
="$ac_compiler $ac_option >&5"
3442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3449 if test -s conftest.err; then
3451 ... rest of stderr output deleted ...
3452 10q' conftest.err >conftest.er1
3453 cat conftest.er1 >&5
3455 rm -f conftest.er1 conftest.err
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3471 ac_clean_files_save=$ac_clean_files
3472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3473 # Try to create an executable without -o first, disregard a.out.
3474 # It will help us diagnose broken compilers, and finding out an intuition
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3477 $as_echo_n "checking whether the C compiler works... " >&6; }
3478 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3480 # The possible output files:
3481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3484 for ac_file in $ac_files
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3493 if { { ac_try="$ac_link_default"
3495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3496 *) ac_try_echo
=$ac_try;;
3498 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_link_default") 2>&5
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; then :
3504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3506 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3507 # so that the user can short-circuit this test for compilers unknown to
3509 for ac_file
in $ac_files ''
3511 test -f "$ac_file" ||
continue
3513 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3516 # We found the default executable, but exeext='' is most
3520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3522 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524 # We set ac_cv_exeext here because the later test for it is not
3525 # safe: cross compilers may not add the suffix if given an `-o'
3526 # argument, so we may need to know it at that point already.
3527 # Even if this section looks crufty: it has the advantage of
3534 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3539 if test -z "$ac_file"; then :
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.
$ac_ext >&5
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error
77 "C compiler cannot create executables
3548 See \`config.log' for more details" "$LINENO" 5; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3554 $as_echo_n "checking for C compiler default output file name... " >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 ac_exeext
=$ac_cv_exeext
3559 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3560 ac_clean_files
=$ac_clean_files_save
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3562 $as_echo_n "checking for suffix of executables... " >&6; }
3563 if { { ac_try
="$ac_link"
3565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_link") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; then :
3574 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3575 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3576 # work properly (i.e., refer to `conftest.exe'), while it won't with
3578 for ac_file
in conftest.exe conftest conftest.
*; do
3579 test -f "$ac_file" ||
continue
3581 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3582 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3591 See \`config.log' for more details" "$LINENO" 5; }
3593 rm -f conftest conftest
$ac_cv_exeext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3595 $as_echo "$ac_cv_exeext" >&6; }
3597 rm -f conftest.
$ac_ext
3598 EXEEXT
=$ac_cv_exeext
3600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3606 FILE *f = fopen ("conftest.out", "w");
3607 return ferror (f) || fclose (f) != 0;
3613 ac_clean_files
="$ac_clean_files conftest.out"
3614 # Check that the compiler produces executables we can run. If not, either
3615 # the compiler is broken, or we cross compile.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3617 $as_echo_n "checking whether we are cross compiling... " >&6; }
3618 if test "$cross_compiling" != yes; then
3619 { { ac_try
="$ac_link"
3621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_link") 2>&5
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }
3630 if { ac_try='./conftest$ac_cv_exeext'
3631 { { case "(($ac_try" in
3632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3633 *) ac_try_echo
=$ac_try;;
3635 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_try") 2>&5
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }; }; then
3643 if test "$cross_compiling" = maybe
; then
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $?
"cannot run C compiled programs.
3649 If you meant to cross compile, use \`--host'.
3650 See \`config.log' for more details" "$LINENO" 5; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3655 $as_echo "$cross_compiling" >&6; }
3657 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3658 ac_clean_files
=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660 $as_echo_n "checking for suffix of object files... " >&6; }
3661 if ${ac_cv_objext+:} false
; then :
3662 $as_echo_n "(cached) " >&6
3664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3675 rm -f conftest.o conftest.obj
3676 if { { ac_try
="$ac_compile"
3678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_compile") 2>&5
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; then :
3687 for ac_file in conftest.o conftest.obj conftest.*; do
3688 test -f "$ac_file" || continue;
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3702 See \
`config.log' for more details" "$LINENO" 5; }
3704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707 $as_echo "$ac_cv_objext" >&6; }
3708 OBJEXT=$ac_cv_objext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712 if ${ac_cv_c_compiler_gnu+:} false; then :
3713 $as_echo_n "(cached) " >&6
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3729 if ac_fn_c_try_compile "$LINENO"; then :
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if ${ac_cv_prog_cc_g+:} false; then :
3750 $as_echo_n "(cached) " >&6
3752 ac_save_c_werror_flag=$ac_c_werror_flag
3753 ac_c_werror_flag=yes
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3767 if ac_fn_c_try_compile "$LINENO"; then :
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3782 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_c_werror_flag=$ac_save_c_werror_flag
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3798 if ac_fn_c_try_compile "$LINENO"; then :
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then
3819 if test "$GCC" = yes; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if ${ac_cv_prog_cc_c89+:} false; then :
3828 $as_echo_n "(cached) " >&6
3830 ac_cv_prog_cc_c89=no
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3838 struct buf { int x; };
3839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3840 static char *e (p, i)
3846 static char *f (char * (*g) (char **, int), char **p, ...)
3851 s = g (p, va_arg (v,int));
3856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3857 function prototypes and stuff, but not '\xHH' hex character constants.
3858 These don't provoke an error unfortunately, instead are silently treated
3859 as 'x'. The following induces an error, until -std is added to get
3860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3861 array size at least. It's necessary to write '\x00'==0 to get something
3862 that's true only with -std. */
3863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3866 inside strings and character constants. */
3868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3870 int test (int i, double x);
3871 struct s1 {int (*f) (int a);};
3872 struct s2 {int (*f) (double a);};
3873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3887 CC="$ac_save_CC $ac_arg"
3888 if ac_fn_c_try_compile "$LINENO"; then :
3889 ac_cv_prog_cc_c89=$ac_arg
3891 rm -f core conftest.err conftest.$ac_objext
3892 test "x$ac_cv_prog_cc_c89" != "xno" && break
3894 rm -f conftest.$ac_ext
3899 case "x$ac_cv_prog_cc_c89" in
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3902 $as_echo "none needed" >&6; } ;;
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3905 $as_echo "unsupported" >&6; } ;;
3907 CC="$CC $ac_cv_prog_cc_c89"
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3911 if test "x$ac_cv_prog_cc_c89" != xno; then :
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 ac_cpp='$CXXCPP $CPPFLAGS'
3923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3926 if test -z "$CXX"; then
3927 if test -n "$CCC"; then
3930 if test -n "$ac_tool_prefix"; then
3931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if ${ac_cv_prog_CXX+:} false; then :
3938 $as_echo_n "(cached) " >&6
3940 if test -n "$CXX"; then
3941 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 if test -n "$CXX"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3963 $as_echo "$CXX" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3970 test -n "$CXX" && break
3973 if test -z "$CXX"; then
3975 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3977 # Extract the first word of "$ac_prog", so it can be a program name with args.
3978 set dummy $ac_prog; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3982 $as_echo_n "(cached) " >&6
3984 if test -n "$ac_ct_CXX"; then
3985 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_ac_ct_CXX="$ac_prog"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4005 if test -n "$ac_ct_CXX"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4007 $as_echo "$ac_ct_CXX" >&6; }
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4014 test -n "$ac_ct_CXX" && break
4017 if test "x$ac_ct_CXX" = x; then
4020 case $cross_compiling:$ac_tool_warned in
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4024 ac_tool_warned=yes ;;
4032 # Provide some information about the compiler.
4033 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4036 for ac_option in --version -v -V -qversion; do
4037 { { ac_try="$ac_compiler $ac_option >&5"
4039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4040 *) ac_try_echo
=$ac_try;;
4042 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4046 if test -s conftest.err
; then
4048 ... rest of stderr output deleted ...
4049 10q' conftest.err
>conftest.er1
4050 cat conftest.er1
>&5
4052 rm -f conftest.er1 conftest.err
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4058 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4059 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4060 $as_echo_n "(cached) " >&6
4062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4076 if ac_fn_cxx_try_compile
"$LINENO"; then :
4081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4082 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4086 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4087 if test $ac_compiler_gnu = yes; then
4092 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4093 ac_save_CXXFLAGS
=$CXXFLAGS
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4095 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4096 if ${ac_cv_prog_cxx_g+:} false
; then :
4097 $as_echo_n "(cached) " >&6
4099 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4100 ac_cxx_werror_flag
=yes
4103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4114 if ac_fn_cxx_try_compile
"$LINENO"; then :
4115 ac_cv_prog_cxx_g
=yes
4118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4129 if ac_fn_cxx_try_compile
"$LINENO"; then :
4132 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4145 if ac_fn_cxx_try_compile
"$LINENO"; then :
4146 ac_cv_prog_cxx_g
=yes
4148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4153 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4156 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4157 if test "$ac_test_CXXFLAGS" = set; then
4158 CXXFLAGS
=$ac_save_CXXFLAGS
4159 elif test $ac_cv_prog_cxx_g = yes; then
4160 if test "$GXX" = yes; then
4166 if test "$GXX" = yes; then
4173 ac_cpp
='$CPP $CPPFLAGS'
4174 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4181 ac_cpp
='$CPP $CPPFLAGS'
4182 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4186 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4187 # On Suns, sometimes $CPP names a directory.
4188 if test -n "$CPP" && test -d "$CPP"; then
4191 if test -z "$CPP"; then
4192 if ${ac_cv_prog_CPP+:} false
; then :
4193 $as_echo_n "(cached) " >&6
4195 # Double quotes because CPP needs to be expanded
4196 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4199 for ac_c_preproc_warn_flag
in '' yes
4201 # Use a header file that comes with gcc, so configuring glibc
4202 # with a fresh cross-compiler works.
4203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4204 # <limits.h> exists even on freestanding compilers.
4205 # On the NeXT, cc -E runs the code through the compiler's parser,
4206 # not just through cpp. "Syntax error" is here to catch this case.
4207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4210 # include <limits.h>
4212 # include <assert.h>
4216 if ac_fn_c_try_cpp
"$LINENO"; then :
4219 # Broken: fails on valid input.
4222 rm -f conftest.err conftest.i conftest.
$ac_ext
4224 # OK, works on sane cases. Now check whether nonexistent headers
4225 # can be detected and how.
4226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #include <ac_nonexistent.h>
4230 if ac_fn_c_try_cpp
"$LINENO"; then :
4231 # Broken: success on invalid input.
4234 # Passes both tests.
4238 rm -f conftest.err conftest.i conftest.
$ac_ext
4241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242 rm -f conftest.i conftest.err conftest.
$ac_ext
4243 if $ac_preproc_ok; then :
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4256 $as_echo "$CPP" >&6; }
4258 for ac_c_preproc_warn_flag
in '' yes
4260 # Use a header file that comes with gcc, so configuring glibc
4261 # with a fresh cross-compiler works.
4262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4263 # <limits.h> exists even on freestanding compilers.
4264 # On the NeXT, cc -E runs the code through the compiler's parser,
4265 # not just through cpp. "Syntax error" is here to catch this case.
4266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4269 # include <limits.h>
4271 # include <assert.h>
4275 if ac_fn_c_try_cpp
"$LINENO"; then :
4278 # Broken: fails on valid input.
4281 rm -f conftest.err conftest.i conftest.
$ac_ext
4283 # OK, works on sane cases. Now check whether nonexistent headers
4284 # can be detected and how.
4285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287 #include <ac_nonexistent.h>
4289 if ac_fn_c_try_cpp
"$LINENO"; then :
4290 # Broken: success on invalid input.
4293 # Passes both tests.
4297 rm -f conftest.err conftest.i conftest.
$ac_ext
4300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4301 rm -f conftest.i conftest.err conftest.
$ac_ext
4302 if $ac_preproc_ok; then :
4305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4307 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4308 See \`config.log' for more details" "$LINENO" 5; }
4312 ac_cpp
='$CPP $CPPFLAGS'
4313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4319 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4320 if ${ac_cv_path_GREP+:} false
; then :
4321 $as_echo_n "(cached) " >&6
4323 if test -z "$GREP"; then
4324 ac_path_GREP_found
=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4327 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4330 test -z "$as_dir" && as_dir
=.
4331 for ac_prog
in grep ggrep
; do
4332 for ac_exec_ext
in '' $ac_executable_extensions; do
4333 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4334 as_fn_executable_p
"$ac_path_GREP" ||
continue
4335 # Check for GNU ac_path_GREP and select it if it is found.
4336 # Check for GNU $ac_path_GREP
4337 case `"$ac_path_GREP" --version 2>&1` in
4339 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4342 $as_echo_n 0123456789 >"conftest.in"
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'GREP' >> "conftest.nl"
4349 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4350 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4351 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4352 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_GREP
="$ac_path_GREP"
4355 ac_path_GREP_max
=$ac_count
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4360 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4363 $ac_path_GREP_found && break 3
4368 if test -z "$ac_cv_path_GREP"; then
4369 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4372 ac_cv_path_GREP
=$GREP
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4377 $as_echo "$ac_cv_path_GREP" >&6; }
4378 GREP
="$ac_cv_path_GREP"
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4382 $as_echo_n "checking for egrep... " >&6; }
4383 if ${ac_cv_path_EGREP+:} false
; then :
4384 $as_echo_n "(cached) " >&6
4386 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4387 then ac_cv_path_EGREP
="$GREP -E"
4389 if test -z "$EGREP"; then
4390 ac_path_EGREP_found
=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4393 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4396 test -z "$as_dir" && as_dir
=.
4397 for ac_prog
in egrep; do
4398 for ac_exec_ext
in '' $ac_executable_extensions; do
4399 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4400 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4401 # Check for GNU ac_path_EGREP and select it if it is found.
4402 # Check for GNU $ac_path_EGREP
4403 case `"$ac_path_EGREP" --version 2>&1` in
4405 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4408 $as_echo_n 0123456789 >"conftest.in"
4411 cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 mv "conftest.tmp" "conftest.in"
4413 cp "conftest.in" "conftest.nl"
4414 $as_echo 'EGREP' >> "conftest.nl"
4415 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4416 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4417 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4418 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4419 # Best one so far, save it but keep looking for a better one
4420 ac_cv_path_EGREP
="$ac_path_EGREP"
4421 ac_path_EGREP_max
=$ac_count
4423 # 10*(2^10) chars as input seems more than enough
4424 test $ac_count -gt 10 && break
4426 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4429 $ac_path_EGREP_found && break 3
4434 if test -z "$ac_cv_path_EGREP"; then
4435 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4438 ac_cv_path_EGREP
=$EGREP
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4444 $as_echo "$ac_cv_path_EGREP" >&6; }
4445 EGREP
="$ac_cv_path_EGREP"
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4449 $as_echo_n "checking for ANSI C header files... " >&6; }
4450 if ${ac_cv_header_stdc+:} false
; then :
4451 $as_echo_n "(cached) " >&6
4453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4468 if ac_fn_c_try_compile
"$LINENO"; then :
4469 ac_cv_header_stdc
=yes
4471 ac_cv_header_stdc
=no
4473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4475 if test $ac_cv_header_stdc = yes; then
4476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4483 $EGREP "memchr" >/dev
/null
2>&1; then :
4486 ac_cv_header_stdc
=no
4492 if test $ac_cv_header_stdc = yes; then
4493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4500 $EGREP "free" >/dev
/null
2>&1; then :
4503 ac_cv_header_stdc
=no
4509 if test $ac_cv_header_stdc = yes; then
4510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4511 if test "$cross_compiling" = yes; then :
4514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4518 #if ((' ' & 0x0FF) == 0x020)
4519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4522 # define ISLOWER(c) \
4523 (('a' <= (c) && (c) <= 'i') \
4524 || ('j' <= (c) && (c) <= 'r') \
4525 || ('s' <= (c) && (c) <= 'z'))
4526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4534 for (i = 0; i < 256; i++)
4535 if (XOR (islower (i), ISLOWER (i))
4536 || toupper (i) != TOUPPER (i))
4541 if ac_fn_c_try_run
"$LINENO"; then :
4544 ac_cv_header_stdc
=no
4546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4553 $as_echo "$ac_cv_header_stdc" >&6; }
4554 if test $ac_cv_header_stdc = yes; then
4556 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4560 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4561 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4562 inttypes.h stdint.h unistd.h
4564 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4565 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4567 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4568 cat >>confdefs.h
<<_ACEOF
4569 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4579 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4586 if test "$MINIX" = yes; then
4588 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4591 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4594 $as_echo "#define _MINIX 1" >>confdefs.h
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4600 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4601 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4602 $as_echo_n "(cached) " >&6
4604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4607 # define __EXTENSIONS__ 1
4608 $ac_includes_default
4617 if ac_fn_c_try_compile
"$LINENO"; then :
4618 ac_cv_safe_to_define___extensions__
=yes
4620 ac_cv_safe_to_define___extensions__
=no
4622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4625 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4626 test $ac_cv_safe_to_define___extensions__ = yes &&
4627 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4629 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4631 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4633 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4635 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4639 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4640 if test -f "$ac_dir/install-sh"; then
4642 ac_install_sh
="$ac_aux_dir/install-sh -c"
4644 elif test -f "$ac_dir/install.sh"; then
4646 ac_install_sh
="$ac_aux_dir/install.sh -c"
4648 elif test -f "$ac_dir/shtool"; then
4650 ac_install_sh
="$ac_aux_dir/shtool install -c"
4654 if test -z "$ac_aux_dir"; then
4655 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4658 # These three variables are undocumented and unsupported,
4659 # and are intended to be withdrawn in a future Autoconf release.
4660 # They can cause serious problems if a builder's source tree is in a directory
4661 # whose full name contains unusual characters.
4662 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4663 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4664 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4667 # Make sure we can run config.sub.
4668 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4669 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4672 $as_echo_n "checking build system type... " >&6; }
4673 if ${ac_cv_build+:} false
; then :
4674 $as_echo_n "(cached) " >&6
4676 ac_build_alias
=$build_alias
4677 test "x$ac_build_alias" = x
&&
4678 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4679 test "x$ac_build_alias" = x
&&
4680 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4681 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4682 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4686 $as_echo "$ac_cv_build" >&6; }
4687 case $ac_cv_build in
4689 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4692 ac_save_IFS
=$IFS; IFS
='-'
4698 # Remember, the first character of IFS is used to create $*,
4699 # except with old shells:
4702 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4706 $as_echo_n "checking host system type... " >&6; }
4707 if ${ac_cv_host+:} false
; then :
4708 $as_echo_n "(cached) " >&6
4710 if test "x$host_alias" = x
; then
4711 ac_cv_host
=$ac_cv_build
4713 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4714 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4719 $as_echo "$ac_cv_host" >&6; }
4722 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4725 ac_save_IFS
=$IFS; IFS
='-'
4731 # Remember, the first character of IFS is used to create $*,
4732 # except with old shells:
4735 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4739 $as_echo_n "checking target system type... " >&6; }
4740 if ${ac_cv_target+:} false
; then :
4741 $as_echo_n "(cached) " >&6
4743 if test "x$target_alias" = x
; then
4744 ac_cv_target
=$ac_cv_host
4746 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4747 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4752 $as_echo "$ac_cv_target" >&6; }
4753 case $ac_cv_target in
4755 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4757 target
=$ac_cv_target
4758 ac_save_IFS
=$IFS; IFS
='-'
4764 # Remember, the first character of IFS is used to create $*,
4765 # except with old shells:
4768 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4771 # The aliases save the names the user supplied, while $host etc.
4772 # will get canonicalized.
4773 test -n "$target_alias" &&
4774 test "$program_prefix$program_suffix$program_transform_name" = \
4776 program_prefix
=${target_alias}-
4778 # The tests for host and target for $enable_largefile require
4783 # As the $enable_largefile decision depends on --enable-plugins we must set it
4784 # even in directories otherwise not depending on the $plugins option.
4788 for ac_header
in dlfcn.h
4790 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4792 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4793 cat >>confdefs.h
<<_ACEOF
4794 #define HAVE_DLFCN_H 1
4801 for ac_header
in windows.h
4803 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4805 if test "x$ac_cv_header_windows_h" = xyes
; then :
4806 cat >>confdefs.h
<<_ACEOF
4807 #define HAVE_WINDOWS_H 1
4815 # Check whether --enable-plugins was given.
4816 if test "${enable_plugins+set}" = set; then :
4817 enableval
=$enable_plugins; case "${enableval}" in
4820 if test "$maybe_plugins" != "yes" ; then
4821 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4825 plugins
=$maybe_plugins
4829 if test "$plugins" = "yes"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4831 $as_echo_n "checking for library containing dlsym... " >&6; }
4832 if ${ac_cv_search_dlsym+:} false
; then :
4833 $as_echo_n "(cached) " >&6
4835 ac_func_search_save_LIBS
=$LIBS
4836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4839 /* Override any GCC internal prototype to avoid an error.
4840 Use char because int might match the return type of a GCC
4841 builtin and then its argument prototype would still apply. */
4854 for ac_lib
in '' dl
; do
4855 if test -z "$ac_lib"; then
4856 ac_res
="none required"
4859 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4861 if ac_fn_c_try_link
"$LINENO"; then :
4862 ac_cv_search_dlsym
=$ac_res
4864 rm -f core conftest.err conftest.
$ac_objext \
4866 if ${ac_cv_search_dlsym+:} false
; then :
4870 if ${ac_cv_search_dlsym+:} false
; then :
4873 ac_cv_search_dlsym
=no
4876 LIBS
=$ac_func_search_save_LIBS
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4879 $as_echo "$ac_cv_search_dlsym" >&6; }
4880 ac_res
=$ac_cv_search_dlsym
4881 if test "$ac_res" != no
; then :
4882 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4890 sparc-
*-solaris*|i?
86-*-solaris*)
4891 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4892 # were mutually exclusive until Solaris 11.3. Without procfs support,
4893 # the bfd/ elf module cannot provide certain routines such as
4894 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4895 # explicitly requested large-file support through the
4896 # --enable-largefile switch, disable large-file support in favor of
4899 # Check if <sys/procfs.h> is incompatible with large-file support.
4900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 #define _FILE_OFFSET_BITS 64
4903 #define _STRUCTURED_PROC 1
4904 #include <sys/procfs.h>
4913 if ac_fn_c_try_compile
"$LINENO"; then :
4914 acx_cv_procfs_lfs
=yes
4916 acx_cv_procfs_lfs
=no
4918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4920 # Forcefully disable large-file support only if necessary, gdb is in
4922 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4923 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4924 : ${enable_largefile="no"}
4925 if test "$plugins" = yes; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4927 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4928 $as_echo "$as_me: WARNING:
4929 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4934 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4935 # benefit of g++ 9+ which predefines it on Solaris.
4936 if test "$enable_largefile" = no
; then
4937 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4943 # Check whether --enable-largefile was given.
4944 if test "${enable_largefile+set}" = set; then :
4945 enableval
=$enable_largefile;
4948 if test "$enable_largefile" != no
; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4951 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4952 if ${ac_cv_sys_largefile_CC+:} false
; then :
4953 $as_echo_n "(cached) " >&6
4955 ac_cv_sys_largefile_CC
=no
4956 if test "$GCC" != yes; then
4959 # IRIX 6.2 and later do not support large files by default,
4960 # so use the C compiler's -n32 option if that helps.
4961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 #include <sys/types.h>
4964 /* Check that off_t can represent 2**63 - 1 correctly.
4965 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4966 since some C++ compilers masquerading as C compilers
4967 incorrectly reject 9223372036854775807. */
4968 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4969 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4970 && LARGE_OFF_T % 2147483647 == 1)
4980 if ac_fn_c_try_compile
"$LINENO"; then :
4983 rm -f core conftest.err conftest.
$ac_objext
4985 if ac_fn_c_try_compile
"$LINENO"; then :
4986 ac_cv_sys_largefile_CC
=' -n32'; break
4988 rm -f core conftest.err conftest.
$ac_objext
4992 rm -f conftest.
$ac_ext
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4996 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4997 if test "$ac_cv_sys_largefile_CC" != no
; then
4998 CC
=$CC$ac_cv_sys_largefile_CC
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5002 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5003 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5004 $as_echo_n "(cached) " >&6
5007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5009 #include <sys/types.h>
5010 /* Check that off_t can represent 2**63 - 1 correctly.
5011 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5012 since some C++ compilers masquerading as C compilers
5013 incorrectly reject 9223372036854775807. */
5014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5016 && LARGE_OFF_T % 2147483647 == 1)
5026 if ac_fn_c_try_compile
"$LINENO"; then :
5027 ac_cv_sys_file_offset_bits
=no
; break
5029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032 #define _FILE_OFFSET_BITS 64
5033 #include <sys/types.h>
5034 /* Check that off_t can represent 2**63 - 1 correctly.
5035 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5036 since some C++ compilers masquerading as C compilers
5037 incorrectly reject 9223372036854775807. */
5038 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5039 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5040 && LARGE_OFF_T % 2147483647 == 1)
5050 if ac_fn_c_try_compile
"$LINENO"; then :
5051 ac_cv_sys_file_offset_bits
=64; break
5053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5054 ac_cv_sys_file_offset_bits
=unknown
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5059 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5060 case $ac_cv_sys_file_offset_bits in #(
5063 cat >>confdefs.h
<<_ACEOF
5064 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5069 if test $ac_cv_sys_file_offset_bits = unknown
; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5071 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5072 if ${ac_cv_sys_large_files+:} false
; then :
5073 $as_echo_n "(cached) " >&6
5076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 #include <sys/types.h>
5079 /* Check that off_t can represent 2**63 - 1 correctly.
5080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5081 since some C++ compilers masquerading as C compilers
5082 incorrectly reject 9223372036854775807. */
5083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5085 && LARGE_OFF_T % 2147483647 == 1)
5095 if ac_fn_c_try_compile
"$LINENO"; then :
5096 ac_cv_sys_large_files
=no
; break
5098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5101 #define _LARGE_FILES 1
5102 #include <sys/types.h>
5103 /* Check that off_t can represent 2**63 - 1 correctly.
5104 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5105 since some C++ compilers masquerading as C compilers
5106 incorrectly reject 9223372036854775807. */
5107 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5108 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5109 && LARGE_OFF_T % 2147483647 == 1)
5119 if ac_fn_c_try_compile
"$LINENO"; then :
5120 ac_cv_sys_large_files
=1; break
5122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5123 ac_cv_sys_large_files
=unknown
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5128 $as_echo "$ac_cv_sys_large_files" >&6; }
5129 case $ac_cv_sys_large_files in #(
5132 cat >>confdefs.h
<<_ACEOF
5133 #define _LARGE_FILES $ac_cv_sys_large_files
5144 # Expand $ac_aux_dir to an absolute path.
5145 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5147 if test x
"${install_sh+set}" != xset
; then
5150 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5152 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5156 # Installed binaries are usually stripped using 'strip' when the user
5157 # run "make install-strip". However 'strip' might not be the right
5158 # tool to use in cross-compilation environments, therefore Automake
5159 # will honor the 'STRIP' environment variable to overrule this program.
5160 if test "$cross_compiling" != no
; then
5161 if test -n "$ac_tool_prefix"; then
5162 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5163 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if ${ac_cv_prog_STRIP+:} false
; then :
5167 $as_echo_n "(cached) " >&6
5169 if test -n "$STRIP"; then
5170 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir
=.
5177 for ac_exec_ext
in '' $ac_executable_extensions; do
5178 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 STRIP
=$ac_cv_prog_STRIP
5190 if test -n "$STRIP"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5192 $as_echo "$STRIP" >&6; }
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5200 if test -z "$ac_cv_prog_STRIP"; then
5202 # Extract the first word of "strip", so it can be a program name with args.
5203 set dummy strip
; ac_word
=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5207 $as_echo_n "(cached) " >&6
5209 if test -n "$ac_ct_STRIP"; then
5210 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5216 test -z "$as_dir" && as_dir
=.
5217 for ac_exec_ext
in '' $ac_executable_extensions; do
5218 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5219 ac_cv_prog_ac_ct_STRIP
="strip"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5230 if test -n "$ac_ct_STRIP"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5232 $as_echo "$ac_ct_STRIP" >&6; }
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5238 if test "x$ac_ct_STRIP" = x
; then
5241 case $cross_compiling:$ac_tool_warned in
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245 ac_tool_warned
=yes ;;
5250 STRIP
="$ac_cv_prog_STRIP"
5254 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5258 for ac_dir
in ..
"$srcdir"/..
; do
5259 if test -f "$ac_dir/install-sh"; then
5261 ac_install_sh
="$ac_aux_dir/install-sh -c"
5263 elif test -f "$ac_dir/install.sh"; then
5265 ac_install_sh
="$ac_aux_dir/install.sh -c"
5267 elif test -f "$ac_dir/shtool"; then
5269 ac_install_sh
="$ac_aux_dir/shtool install -c"
5273 if test -z "$ac_aux_dir"; then
5274 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5277 # These three variables are undocumented and unsupported,
5278 # and are intended to be withdrawn in a future Autoconf release.
5279 # They can cause serious problems if a builder's source tree is in a directory
5280 # whose full name contains unusual characters.
5281 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5282 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5283 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5287 # Set build, build_cpu, build_vendor and build_os.
5290 # Set host, host_cpu, host_vendor, and host_os.
5293 # Set target, target_cpu, target_vendor, and target_os.
5296 case ${build_alias} in
5297 "") build_noncanonical
=${build} ;;
5298 *) build_noncanonical
=${build_alias} ;;
5301 case ${host_alias} in
5302 "") host_noncanonical
=${build_noncanonical} ;;
5303 *) host_noncanonical
=${host_alias} ;;
5306 case ${target_alias} in
5307 "") target_noncanonical
=${host_noncanonical} ;;
5308 *) target_noncanonical
=${target_alias} ;;
5314 test "$program_prefix" != NONE
&&
5315 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5316 # Use a double $ so make ignores it.
5317 test "$program_suffix" != NONE
&&
5318 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5319 # Double any \ or $.
5320 # By default was `s,x,x', remove it if useless.
5321 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5322 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5325 # We require libtool to link with the in-tree libtool libraries
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5330 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5335 macro_version
='2.2.7a'
5336 macro_revision
='1.3134'
5350 ltmain
="$ac_aux_dir/ltmain.sh"
5352 # Backslashify metacharacters that are still active within
5353 # double-quoted strings.
5354 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5356 # Same as above, but do not quote variable references.
5357 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5359 # Sed substitution to delay expansion of an escaped shell variable in a
5360 # double_quote_subst'ed string.
5361 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5363 # Sed substitution to delay expansion of an escaped single quote.
5364 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5366 # Sed substitution to avoid accidental globbing in evaled expressions
5367 no_glob_subst
='s/\*/\\\*/g'
5369 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5370 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5371 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5374 $as_echo_n "checking how to print strings... " >&6; }
5375 # Test print first, because it will be a builtin if present.
5376 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5377 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5379 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5382 # Use this function as a fallback that always works.
5383 func_fallback_echo ()
5385 eval 'cat <<_LTECHO_EOF
5389 ECHO='func_fallback_echo
'
5392 # func_echo_all arg...
5393 # Invoke $ECHO with all args, space-separated.
5400 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5401 $as_echo "printf" >&6; } ;;
5402 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5403 $as_echo "print -r" >&6; } ;;
5404 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5405 $as_echo "cat" >&6; } ;;
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5422 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5423 if ${ac_cv_path_SED+:} false; then :
5424 $as_echo_n "(cached) " >&6
5426 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5427 for ac_i in 1 2 3 4 5 6 7; do
5428 ac_script="$ac_script$as_nl$ac_script"
5430 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5431 { ac_script=; unset ac_script;}
5432 if test -z "$SED"; then
5433 ac_path_SED_found=false
5434 # Loop through the user's path and
test for each of PROGNAME-LIST
5435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5439 test -z "$as_dir" && as_dir
=.
5440 for ac_prog
in sed gsed
; do
5441 for ac_exec_ext
in '' $ac_executable_extensions; do
5442 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5443 as_fn_executable_p
"$ac_path_SED" ||
continue
5444 # Check for GNU ac_path_SED and select it if it is found.
5445 # Check for GNU $ac_path_SED
5446 case `"$ac_path_SED" --version 2>&1` in
5448 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5451 $as_echo_n 0123456789 >"conftest.in"
5454 cat "conftest.in" "conftest.in" >"conftest.tmp"
5455 mv "conftest.tmp" "conftest.in"
5456 cp "conftest.in" "conftest.nl"
5457 $as_echo '' >> "conftest.nl"
5458 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5459 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5460 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5461 if test $ac_count -gt ${ac_path_SED_max-0}; then
5462 # Best one so far, save it but keep looking for a better one
5463 ac_cv_path_SED
="$ac_path_SED"
5464 ac_path_SED_max
=$ac_count
5466 # 10*(2^10) chars as input seems more than enough
5467 test $ac_count -gt 10 && break
5469 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5472 $ac_path_SED_found && break 3
5477 if test -z "$ac_cv_path_SED"; then
5478 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5486 $as_echo "$ac_cv_path_SED" >&6; }
5487 SED
="$ac_cv_path_SED"
5490 test -z "$SED" && SED
=sed
5491 Xsed
="$SED -e 1s/^X//"
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5504 $as_echo_n "checking for fgrep... " >&6; }
5505 if ${ac_cv_path_FGREP+:} false
; then :
5506 $as_echo_n "(cached) " >&6
5508 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5509 then ac_cv_path_FGREP
="$GREP -F"
5511 if test -z "$FGREP"; then
5512 ac_path_FGREP_found
=false
5513 # Loop through the user's path and test for each of PROGNAME-LIST
5514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5515 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5518 test -z "$as_dir" && as_dir
=.
5519 for ac_prog
in fgrep
; do
5520 for ac_exec_ext
in '' $ac_executable_extensions; do
5521 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5522 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5523 # Check for GNU ac_path_FGREP and select it if it is found.
5524 # Check for GNU $ac_path_FGREP
5525 case `"$ac_path_FGREP" --version 2>&1` in
5527 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5530 $as_echo_n 0123456789 >"conftest.in"
5533 cat "conftest.in" "conftest.in" >"conftest.tmp"
5534 mv "conftest.tmp" "conftest.in"
5535 cp "conftest.in" "conftest.nl"
5536 $as_echo 'FGREP' >> "conftest.nl"
5537 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5538 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5539 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5540 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5541 # Best one so far, save it but keep looking for a better one
5542 ac_cv_path_FGREP
="$ac_path_FGREP"
5543 ac_path_FGREP_max
=$ac_count
5545 # 10*(2^10) chars as input seems more than enough
5546 test $ac_count -gt 10 && break
5548 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5551 $ac_path_FGREP_found && break 3
5556 if test -z "$ac_cv_path_FGREP"; then
5557 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5560 ac_cv_path_FGREP
=$FGREP
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5566 $as_echo "$ac_cv_path_FGREP" >&6; }
5567 FGREP
="$ac_cv_path_FGREP"
5570 test -z "$GREP" && GREP
=grep
5590 # Check whether --with-gnu-ld was given.
5591 if test "${with_gnu_ld+set}" = set; then :
5592 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5598 if test "$GCC" = yes; then
5599 # Check if gcc -print-prog-name=ld gives a path.
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5601 $as_echo_n "checking for ld used by $CC... " >&6; }
5604 # gcc leaves a trailing carriage return which upsets mingw
5605 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5607 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5610 # Accept absolute paths.
5612 re_direlt
='/[^/][^/]*/\.\./'
5613 # Canonicalize the pathname of ld
5614 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5615 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5616 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5618 test -z "$LD" && LD
="$ac_prog"
5621 # If it fails, then pretend we aren't using GCC.
5625 # If it is relative, then search for the first ld in PATH.
5629 elif test "$with_gnu_ld" = yes; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5631 $as_echo_n "checking for GNU ld... " >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5634 $as_echo_n "checking for non-GNU ld... " >&6; }
5636 if ${lt_cv_path_LD+:} false
; then :
5637 $as_echo_n "(cached) " >&6
5639 if test -z "$LD"; then
5640 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5641 for ac_dir
in $PATH; do
5643 test -z "$ac_dir" && ac_dir
=.
5644 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5645 lt_cv_path_LD
="$ac_dir/$ac_prog"
5646 # Check to see if the program is GNU ld. I'd rather use --version,
5647 # but apparently some variants of GNU ld only accept -v.
5648 # Break only if it was the GNU/non-GNU ld that we prefer.
5649 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5650 *GNU
* |
*'with BFD'*)
5651 test "$with_gnu_ld" != no
&& break
5654 test "$with_gnu_ld" != yes && break
5661 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5666 if test -n "$LD"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5668 $as_echo "$LD" >&6; }
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5673 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5675 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5676 if ${lt_cv_prog_gnu_ld+:} false
; then :
5677 $as_echo_n "(cached) " >&6
5679 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5680 case `$LD -v 2>&1 </dev/null` in
5681 *GNU
* |
*'with BFD'*)
5682 lt_cv_prog_gnu_ld
=yes
5685 lt_cv_prog_gnu_ld
=no
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5690 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5691 with_gnu_ld
=$lt_cv_prog_gnu_ld
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5702 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5703 if ${lt_cv_path_NM+:} false
; then :
5704 $as_echo_n "(cached) " >&6
5706 if test -n "$NM"; then
5707 # Let the user override the nm to test.
5708 lt_nm_to_check
="$NM"
5710 lt_nm_to_check
="${ac_tool_prefix}nm"
5711 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5712 lt_nm_to_check
="$lt_nm_to_check nm"
5715 for lt_tmp_nm
in "$lt_nm_to_check"; do
5716 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5717 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5719 test -z "$ac_dir" && ac_dir
=.
5720 # Strip out any user-provided options from the nm to test twice,
5721 # the first time to test to see if nm (rather than its options) has
5722 # an explicit path, the second time to yield a file which can be
5724 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5725 case "$tmp_nm_path" in
5726 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
5727 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
5729 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5730 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
5731 # Check to see if the nm accepts a BSD-compat flag.
5732 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5733 # nm: unknown option "B" ignored
5734 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5735 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
5739 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5741 lt_cv_path_NM
="$tmp_nm -p"
5745 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5746 continue # so that we can try to find one that supports BSD flags
5755 : ${lt_cv_path_NM=no}
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5758 $as_echo "$lt_cv_path_NM" >&6; }
5759 if test "$lt_cv_path_NM" != "no"; then
5762 # Didn't find any BSD compatible name lister, look for dumpbin.
5763 if test -n "$DUMPBIN"; then :
5764 # Let the user override the test.
5766 if test -n "$ac_tool_prefix"; then
5767 for ac_prog
in dumpbin
"link -dump"
5769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5770 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 $as_echo_n "checking for $ac_word... " >&6; }
5773 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5774 $as_echo_n "(cached) " >&6
5776 if test -n "$DUMPBIN"; then
5777 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5783 test -z "$as_dir" && as_dir
=.
5784 for ac_exec_ext
in '' $ac_executable_extensions; do
5785 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5786 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 DUMPBIN
=$ac_cv_prog_DUMPBIN
5797 if test -n "$DUMPBIN"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5799 $as_echo "$DUMPBIN" >&6; }
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5806 test -n "$DUMPBIN" && break
5809 if test -z "$DUMPBIN"; then
5810 ac_ct_DUMPBIN
=$DUMPBIN
5811 for ac_prog
in dumpbin
"link -dump"
5813 # Extract the first word of "$ac_prog", so it can be a program name with args.
5814 set dummy
$ac_prog; ac_word
=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5818 $as_echo_n "(cached) " >&6
5820 if test -n "$ac_ct_DUMPBIN"; then
5821 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5827 test -z "$as_dir" && as_dir
=.
5828 for ac_exec_ext
in '' $ac_executable_extensions; do
5829 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5841 if test -n "$ac_ct_DUMPBIN"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5843 $as_echo "$ac_ct_DUMPBIN" >&6; }
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5850 test -n "$ac_ct_DUMPBIN" && break
5853 if test "x$ac_ct_DUMPBIN" = x
; then
5856 case $cross_compiling:$ac_tool_warned in
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5860 ac_tool_warned
=yes ;;
5862 DUMPBIN
=$ac_ct_DUMPBIN
5866 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5868 DUMPBIN
="$DUMPBIN -symbols"
5876 if test "$DUMPBIN" != ":"; then
5880 test -z "$NM" && NM
=nm
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5888 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5889 if ${lt_cv_nm_interface+:} false
; then :
5890 $as_echo_n "(cached) " >&6
5892 lt_cv_nm_interface
="BSD nm"
5893 echo "int some_variable = 0;" > conftest.
$ac_ext
5894 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5895 (eval "$ac_compile" 2>conftest.err
)
5896 cat conftest.err
>&5
5897 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5898 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5899 cat conftest.err
>&5
5900 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5901 cat conftest.out
>&5
5902 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5903 lt_cv_nm_interface
="MS dumpbin"
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5908 $as_echo "$lt_cv_nm_interface" >&6; }
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5911 $as_echo_n "checking whether ln -s works... " >&6; }
5913 if test "$LN_S" = "ln -s"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5915 $as_echo "yes" >&6; }
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5918 $as_echo "no, using $LN_S" >&6; }
5921 # find the maximum length of command line arguments
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5923 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5924 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5925 $as_echo_n "(cached) " >&6
5932 # On DJGPP, this test can blow up pretty badly due to problems in libc
5933 # (any single argument exceeding 2000 bytes causes a buffer overrun
5934 # during glob expansion). Even if it were fixed, the result of this
5935 # check would be larger than it should be.
5936 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5940 # Under GNU Hurd, this test is not required because there is
5941 # no limit to the length of command line arguments.
5942 # Libtool will interpret -1 as no limit whatsoever
5943 lt_cv_sys_max_cmd_len
=-1;
5946 cygwin
* | mingw
* | cegcc
*)
5947 # On Win9x/ME, this test blows up -- it succeeds, but takes
5948 # about 5 minutes as the teststring grows exponentially.
5949 # Worse, since 9x/ME are not pre-emptively multitasking,
5950 # you end up with a "frozen" computer, even though with patience
5951 # the test eventually succeeds (with a max line length of 256k).
5952 # Instead, let's just punt: use the minimum linelength reported by
5953 # all of the supported platforms: 8192 (on NT/2K/XP).
5954 lt_cv_sys_max_cmd_len
=8192;
5958 # On MiNT this can take a long time and run out of memory.
5959 lt_cv_sys_max_cmd_len
=8192;
5963 # On AmigaOS with pdksh, this test takes hours, literally.
5964 # So we just punt and use a minimum line length of 8192.
5965 lt_cv_sys_max_cmd_len
=8192;
5968 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5969 # This has been around since 386BSD, at least. Likely further.
5970 if test -x /sbin
/sysctl
; then
5971 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5972 elif test -x /usr
/sbin
/sysctl
; then
5973 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5975 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5977 # And add a safety zone
5978 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5979 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5983 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5984 lt_cv_sys_max_cmd_len
=196608
5988 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5989 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5990 # nice to cause kernel panics so lets avoid the loop below.
5991 # First set a reasonable default.
5992 lt_cv_sys_max_cmd_len
=16384
5994 if test -x /sbin
/sysconfig
; then
5995 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5996 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6001 lt_cv_sys_max_cmd_len
=102400
6003 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6004 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6005 if test -n "$kargmax"; then
6006 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6008 lt_cv_sys_max_cmd_len
=32768
6012 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6013 if test -n "$lt_cv_sys_max_cmd_len"; then
6014 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6015 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6017 # Make teststring a little bigger before we do anything with it.
6018 # a 1K string should be a reasonable start.
6019 for i
in 1 2 3 4 5 6 7 8 ; do
6020 teststring
=$teststring$teststring
6022 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6023 # If test is not a shell built-in, we'll probably end up computing a
6024 # maximum length that is only half of the actual maximum length, but
6026 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6027 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6028 test $i != 17 # 1/2 MB should be enough
6031 teststring
=$teststring$teststring
6033 # Only check the string length outside the loop.
6034 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6036 # Add a significant safety factor because C++ compilers can tack on
6037 # massive amounts of additional arguments before passing them to the
6038 # linker. It appears as though 1/2 is a usable value.
6039 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6046 if test -n $lt_cv_sys_max_cmd_len ; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6048 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6051 $as_echo "none" >&6; }
6053 max_cmd_len
=$lt_cv_sys_max_cmd_len
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6065 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6066 # Try some XSI features
6069 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6071 && eval 'test $(( 1 + 1 )) -eq 2 \
6072 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6075 $as_echo "$xsi_shell" >&6; }
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6079 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6081 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6083 && lt_shell_append=yes
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6085 $as_echo "$lt_shell_append" >&6; }
6088 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6098 # test EBCDIC or ASCII
6099 case `echo X|tr X '\101'` in
6100 A) # ASCII based system
6101 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6102 lt_SP2NL='tr \040 \012'
6103 lt_NL2SP='tr \015\012 \040\040'
6105 *) # EBCDIC based system
6106 lt_SP2NL='tr \100 \n'
6107 lt_NL2SP='tr \r\n \100\100'
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6120 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6121 if ${lt_cv_ld_reload_flag+:} false; then :
6122 $as_echo_n "(cached
) " >&6
6124 lt_cv_ld_reload_flag='-r'
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6127 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6128 reload_flag=$lt_cv_ld_reload_flag
6129 case $reload_flag in
6131 *) reload_flag=" $reload_flag" ;;
6133 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6136 if test "$GCC" = yes; then
6137 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6139 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6152 if test -n "$ac_tool_prefix"; then
6153 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6154 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6156 $as_echo_n "checking
for $ac_word...
" >&6; }
6157 if ${ac_cv_prog_OBJDUMP+:} false; then :
6158 $as_echo_n "(cached
) " >&6
6160 if test -n "$OBJDUMP"; then
6161 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6180 OBJDUMP=$ac_cv_prog_OBJDUMP
6181 if test -n "$OBJDUMP"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6183 $as_echo "$OBJDUMP" >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6186 $as_echo "no
" >&6; }
6191 if test -z "$ac_cv_prog_OBJDUMP"; then
6192 ac_ct_OBJDUMP=$OBJDUMP
6193 # Extract the first word of "objdump
", so it can be a program name with args.
6194 set dummy objdump; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6196 $as_echo_n "checking
for $ac_word...
" >&6; }
6197 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6198 $as_echo_n "(cached
) " >&6
6200 if test -n "$ac_ct_OBJDUMP"; then
6201 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6220 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6221 if test -n "$ac_ct_OBJDUMP"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6223 $as_echo "$ac_ct_OBJDUMP" >&6; }
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6226 $as_echo "no
" >&6; }
6229 if test "x
$ac_ct_OBJDUMP" = x; then
6232 case $cross_compiling:$ac_tool_warned in
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6235 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6236 ac_tool_warned=yes ;;
6238 OBJDUMP=$ac_ct_OBJDUMP
6241 OBJDUMP="$ac_cv_prog_OBJDUMP"
6244 test -z "$OBJDUMP" && OBJDUMP=objdump
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6255 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6256 if ${lt_cv_deplibs_check_method+:} false; then :
6257 $as_echo_n "(cached
) " >&6
6259 lt_cv_file_magic_cmd='$MAGIC_CMD'
6260 lt_cv_file_magic_test_file=
6261 lt_cv_deplibs_check_method='unknown'
6262 # Need to set the preceding variable on all platforms that support
6263 # interlibrary dependencies.
6264 # 'none' -- dependencies not supported.
6265 # `unknown' -- same as none, but documents that we really don't know.
6266 # 'pass_all' -- all dependencies passed with no checks.
6267 # 'test_compile' -- check by making test program.
6268 # 'file_magic [[regex]]' -- check by looking for files in library path
6269 # which responds to the $file_magic_cmd with a given extended regex.
6270 # If you have `file' or equivalent on your system and you're not sure
6271 # whether `pass_all' will *always* work, you probably want this one.
6275 lt_cv_deplibs_check_method=pass_all
6279 lt_cv_deplibs_check_method=pass_all
6283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6284 lt_cv_file_magic_cmd='/usr/bin/file -L'
6285 lt_cv_file_magic_test_file=/shlib/libc.so
6289 # func_win32_libid is a shell function defined in ltmain.sh
6290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6291 lt_cv_file_magic_cmd='func_win32_libid'
6295 # Base MSYS/MinGW do not provide the 'file' command needed by
6296 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6297 # unless we find 'file', for example because we are cross-compiling.
6298 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6299 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6301 lt_cv_file_magic_cmd='func_win32_libid'
6303 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6304 lt_cv_file_magic_cmd='$OBJDUMP -f'
6309 # use the weaker test based on 'objdump'. See mingw*.
6310 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6311 lt_cv_file_magic_cmd='$OBJDUMP -f'
6314 darwin* | rhapsody*)
6315 lt_cv_deplibs_check_method=pass_all
6318 freebsd* | dragonfly*)
6319 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6322 # Not sure whether the presence of OpenBSD here was a mistake.
6323 # Let's accept both of them until this is cleared up.
6324 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6325 lt_cv_file_magic_cmd=/usr/bin/file
6326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6330 lt_cv_deplibs_check_method=pass_all
6335 lt_cv_deplibs_check_method=pass_all
6339 lt_cv_deplibs_check_method=pass_all
6342 hpux10.20* | hpux11*)
6343 lt_cv_file_magic_cmd=/usr/bin/file
6346 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6347 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6351 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6354 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6355 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6361 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6365 irix5* | irix6* | nonstopux*)
6367 *-32|*"-32 ") libmagic=32-bit;;
6368 *-n32|*"-n32 ") libmagic=N32;;
6369 *-64|*"-64 ") libmagic=64-bit;;
6370 *) libmagic=never-match;;
6372 lt_cv_deplibs_check_method=pass_all
6375 # This must be Linux ELF.
6376 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6377 lt_cv_deplibs_check_method=pass_all
6381 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6390 lt_cv_file_magic_cmd=/usr/bin/file
6391 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6395 lt_cv_deplibs_check_method=pass_all
6399 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6406 osf3* | osf4* | osf5*)
6407 lt_cv_deplibs_check_method=pass_all
6411 lt_cv_deplibs_check_method=pass_all
6415 lt_cv_deplibs_check_method=pass_all
6418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6419 lt_cv_deplibs_check_method=pass_all
6423 case $host_vendor in
6425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6426 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6429 lt_cv_deplibs_check_method=pass_all
6432 lt_cv_file_magic_cmd='/bin/file'
6433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6436 lt_cv_file_magic_cmd='/bin/file'
6437 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6438 lt_cv_file_magic_test_file=/lib/libc.so
6441 lt_cv_deplibs_check_method=pass_all
6444 lt_cv_deplibs_check_method=pass_all
6450 lt_cv_deplibs_check_method=pass_all
6453 # Assume VxWorks cross toolchains are built on Linux, possibly
6454 # as canadian for Windows hosts.
6455 lt_cv_deplibs_check_method=pass_all
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6461 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6462 file_magic_cmd=$lt_cv_file_magic_cmd
6463 deplibs_check_method=$lt_cv_deplibs_check_method
6464 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6478 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
6479 for plugin in $plugin_names; do
6480 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6481 if test x$plugin_so = x$plugin; then
6482 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6484 if test x$plugin_so != x$plugin; then
6485 plugin_option="--plugin $plugin_so"
6490 if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}ar; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6494 $as_echo_n "checking
for $ac_word...
" >&6; }
6495 if ${ac_cv_prog_AR+:} false; then :
6496 $as_echo_n "(cached
) " >&6
6498 if test -n "$AR"; then
6499 ac_cv_prog_AR="$AR" # Let the user override the test.
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508 ac_cv_prog_AR="${ac_tool_prefix}ar"
6509 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6519 if test -n "$AR"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6521 $as_echo "$AR" >&6; }
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6524 $as_echo "no
" >&6; }
6529 if test -z "$ac_cv_prog_AR"; then
6531 # Extract the first word of "ar", so it can be a program name with args.
6532 set dummy ar; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6534 $as_echo_n "checking
for $ac_word...
" >&6; }
6535 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6536 $as_echo_n "(cached
) " >&6
6538 if test -n "$ac_ct_AR"; then
6539 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_ac_ct_AR="ar"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6558 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6559 if test -n "$ac_ct_AR"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6561 $as_echo "$ac_ct_AR" >&6; }
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6564 $as_echo "no
" >&6; }
6567 if test "x
$ac_ct_AR" = x; then
6570 case $cross_compiling:$ac_tool_warned in
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6573 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6574 ac_tool_warned=yes ;;
6582 test -z "$AR" && AR=ar
6583 if test -n "$plugin_option"; then
6584 if $AR --help 2>&1 | grep -q "\
--plugin"; then
6586 $AR $plugin_option rc conftest.a conftest.c
6587 if test "$?
" != 0; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
6589 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
6591 AR="$AR $plugin_option"
6596 test -z "$AR_FLAGS" && AR_FLAGS=cru
6608 if test -n "$ac_tool_prefix"; then
6609 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}strip; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6612 $as_echo_n "checking
for $ac_word...
" >&6; }
6613 if ${ac_cv_prog_STRIP+:} false; then :
6614 $as_echo_n "(cached
) " >&6
6616 if test -n "$STRIP"; then
6617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6636 STRIP=$ac_cv_prog_STRIP
6637 if test -n "$STRIP"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6639 $as_echo "$STRIP" >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6642 $as_echo "no
" >&6; }
6647 if test -z "$ac_cv_prog_STRIP"; then
6649 # Extract the first word of "strip
", so it can be a program name with args.
6650 set dummy strip; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6652 $as_echo_n "checking
for $ac_word...
" >&6; }
6653 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6654 $as_echo_n "(cached
) " >&6
6656 if test -n "$ac_ct_STRIP"; then
6657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666 ac_cv_prog_ac_ct_STRIP="strip
"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6677 if test -n "$ac_ct_STRIP"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6679 $as_echo "$ac_ct_STRIP" >&6; }
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6682 $as_echo "no
" >&6; }
6685 if test "x
$ac_ct_STRIP" = x; then
6688 case $cross_compiling:$ac_tool_warned in
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6691 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6692 ac_tool_warned=yes ;;
6697 STRIP="$ac_cv_prog_STRIP"
6700 test -z "$STRIP" && STRIP=:
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6711 $as_echo_n "checking
for $ac_word...
" >&6; }
6712 if ${ac_cv_prog_RANLIB+:} false; then :
6713 $as_echo_n "(cached
) " >&6
6715 if test -n "$RANLIB"; then
6716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6735 RANLIB=$ac_cv_prog_RANLIB
6736 if test -n "$RANLIB"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6738 $as_echo "$RANLIB" >&6; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6741 $as_echo "no
" >&6; }
6746 if test -z "$ac_cv_prog_RANLIB"; then
6747 ac_ct_RANLIB=$RANLIB
6748 # Extract the first word of "ranlib
", so it can be a program name with args.
6749 set dummy ranlib; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6751 $as_echo_n "checking
for $ac_word...
" >&6; }
6752 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6753 $as_echo_n "(cached
) " >&6
6755 if test -n "$ac_ct_RANLIB"; then
6756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6776 if test -n "$ac_ct_RANLIB"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6778 $as_echo "$ac_ct_RANLIB" >&6; }
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6781 $as_echo "no
" >&6; }
6784 if test "x
$ac_ct_RANLIB" = x; then
6787 case $cross_compiling:$ac_tool_warned in
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6790 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6791 ac_tool_warned=yes ;;
6793 RANLIB=$ac_ct_RANLIB
6796 RANLIB="$ac_cv_prog_RANLIB"
6799 test -z "$RANLIB" && RANLIB=:
6800 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6801 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
6802 RANLIB="$RANLIB $plugin_option"
6811 # Determine commands to create old-style static archives.
6812 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6813 old_postinstall_cmds='chmod 644 $oldlib'
6814 old_postuninstall_cmds=
6816 if test -n "$RANLIB"; then
6819 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6822 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6825 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6830 lock_old_archive_extraction=yes ;;
6832 lock_old_archive_extraction=no ;;
6855 for ac_prog in gawk mawk nawk awk
6857 # Extract the first word of "$ac_prog", so it can be a program name with args.
6858 set dummy $ac_prog; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6860 $as_echo_n "checking
for $ac_word...
" >&6; }
6861 if ${ac_cv_prog_AWK+:} false; then :
6862 $as_echo_n "(cached
) " >&6
6864 if test -n "$AWK"; then
6865 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_AWK="$ac_prog"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6885 if test -n "$AWK"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AWK" >&5
6887 $as_echo "$AWK" >&6; }
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6890 $as_echo "no
" >&6; }
6894 test -n "$AWK" && break
6915 # If no C compiler was specified, use CC.
6918 # If no C compiler flags were specified, use CFLAGS.
6919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6921 # Allow CC to be a program name with arguments.
6925 # Check for command to grab the raw symbol name followed by C symbol from nm.
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6927 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6928 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6929 $as_echo_n "(cached
) " >&6
6932 # These are sane defaults that work on at least a few old systems.
6933 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6935 # Character class describing NM global symbol codes.
6936 symcode='[BCDEGRST]'
6938 # Regexp to match symbols that can be accessed directly from C.
6939 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6941 # Define system-specific variables.
6946 cygwin* | mingw* | pw32* | cegcc*)
6947 symcode='[ABCDGISTW]'
6950 if test "$host_cpu" = ia64; then
6951 symcode='[ABCDEGRST]'
6955 symcode='[BCDEGRST]'
6958 symcode='[BCDEGQRST]'
6969 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6977 # If we're using GNU nm, then use its standard symbol codes.
6978 case `$NM -V 2>&1` in
6979 *GNU* | *'with BFD'*)
6980 symcode='[ABCDGIRSTW]' ;;
6983 # Transform an extracted symbol line into a proper C declaration.
6984 # Some systems (esp. on ia64) link data and code symbols differently,
6985 # so use this general approach.
6986 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6988 # Transform an extracted symbol line into symbol name and symbol address
6989 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6990 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6992 # Handle CRLF in mingw tool chain
6996 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7000 # Try without a prefix underscore, then with it.
7001 for ac_symprfx in "" "_
"; do
7003 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7004 symxfrm="\\1 $ac_symprfx\\2 \\2"
7006 # Write the raw and C identifiers.
7007 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7008 # Fake it for dumpbin and say T for any non-static function
7009 # and D for any global variable.
7010 # Also find C++ and __fastcall symbols from MSVC++,
7011 # which start with @ or ?.
7012 lt_cv_sys_global_symbol_pipe="$AWK '"\
7013 " {last_section=section; section=\$ 3};"\
7014 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7015 " \$ 0!~/External *\|/{next};"\
7016 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7017 " {if(hide[section]) next};"\
7018 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7019 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7020 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7021 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7022 " ' prfx
=^
$ac_symprfx"
7024 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7027 # Check to see that the pipe works correctly.
7031 cat > conftest.$ac_ext <<_LT_EOF
7036 void nm_test_func(void);
7037 void nm_test_func(void){}
7041 int main(){nm_test_var='a';nm_test_func();return(0);}
7044 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045 (eval $ac_compile) 2>&5
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7048 test $ac_status = 0; }; then
7049 # Now try to grab the symbols.
7051 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7052 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7054 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7055 test $ac_status = 0; } && test -s "$nlist"; then
7056 # Try sorting and uniquifying the output.
7057 if sort "$nlist" | uniq > "$nlist"T; then
7058 mv -f "$nlist"T "$nlist"
7063 # Make sure that we snagged all the symbols we need.
7064 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7065 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7066 cat <<_LT_EOF > conftest.$ac_ext
7072 # Now generate the symbol file.
7073 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7075 cat <<_LT_EOF >> conftest.$ac_ext
7077 /* The mapping between symbol names and symbols. */
7082 lt__PROGRAM__LTX_preloaded_symbols[] =
7084 { "@PROGRAM@
", (void *) 0 },
7086 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7087 cat <<\_LT_EOF >> conftest.$ac_ext
7091 /* This works around a problem in FreeBSD linker */
7092 #ifdef FREEBSD_WORKAROUND
7093 static const void *lt_preloaded_setup() {
7094 return lt__PROGRAM__LTX_preloaded_symbols;
7102 # Now try linking the two files.
7103 mv conftest.$ac_objext conftstm.$ac_objext
7104 lt_save_LIBS="$LIBS"
7105 lt_save_CFLAGS="$CFLAGS"
7106 LIBS="conftstm.
$ac_objext"
7107 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7108 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7109 (eval $ac_link) 2>&5
7111 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7112 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7115 LIBS="$lt_save_LIBS"
7116 CFLAGS="$lt_save_CFLAGS"
7118 echo "cannot
find nm_test_func
in $nlist" >&5
7121 echo "cannot
find nm_test_var
in $nlist" >&5
7124 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7127 echo "$progname: failed program was
:" >&5
7128 cat conftest.$ac_ext >&5
7130 rm -rf conftest* conftst*
7132 # Do not use the global_symbol_pipe unless it works.
7133 if test "$pipe_works" = yes; then
7136 lt_cv_sys_global_symbol_pipe=
7142 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7143 lt_cv_sys_global_symbol_to_cdecl=
7145 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7147 $as_echo "failed
" >&6; }
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7150 $as_echo "ok
" >&6; }
7174 # Check whether --enable-libtool-lock was given.
7175 if test "${enable_libtool_lock+set}" = set; then :
7176 enableval=$enable_libtool_lock;
7179 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7181 # Some flags need to be propagated to the compiler or linker for good
7185 # Find out which ABI we are using.
7186 echo 'int i;' > conftest.$ac_ext
7187 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7188 (eval $ac_compile) 2>&5
7190 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7191 test $ac_status = 0; }; then
7192 case `/usr/bin/file conftest.$ac_objext` in
7204 # Find out which ABI we are using.
7205 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7206 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207 (eval $ac_compile) 2>&5
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7210 test $ac_status = 0; }; then
7211 if test "$lt_cv_prog_gnu_ld" = yes; then
7212 case `/usr/bin/file conftest.$ac_objext` in
7214 LD="${LD-ld} -melf32bsmip"
7217 LD="${LD-ld} -melf32bmipn32"
7220 LD="${LD-ld} -melf64bmip"
7224 case `/usr/bin/file conftest.$ac_objext` in
7240 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7241 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7242 # Find out which ABI we are using.
7243 echo 'int i;' > conftest.$ac_ext
7244 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7245 (eval $ac_compile) 2>&5
7247 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7248 test $ac_status = 0; }; then
7249 case `/usr/bin/file conftest.o` in
7252 x86_64-*kfreebsd*-gnu)
7253 LD="${LD-ld} -m elf_i386_fbsd
"
7256 case `/usr/bin/file conftest.o` in
7258 LD="${LD-ld} -m elf32_x86_64
"
7261 LD="${LD-ld} -m elf_i386
"
7265 powerpc64le-*linux*)
7266 LD="${LD-ld} -m elf32lppclinux
"
7269 LD="${LD-ld} -m elf32ppclinux
"
7272 LD="${LD-ld} -m elf_s390
"
7275 LD="${LD-ld} -m elf32_sparc
"
7281 x86_64-*kfreebsd*-gnu)
7282 LD="${LD-ld} -m elf_x86_64_fbsd
"
7285 LD="${LD-ld} -m elf_x86_64
"
7288 LD="${LD-ld} -m elf64lppc
"
7291 LD="${LD-ld} -m elf64ppc
"
7293 s390*-*linux*|s390*-*tpf*)
7294 LD="${LD-ld} -m elf64_s390
"
7297 LD="${LD-ld} -m elf64_sparc
"
7307 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7308 SAVE_CFLAGS="$CFLAGS"
7309 CFLAGS="$CFLAGS -belf"
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7311 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7312 if ${lt_cv_cc_needs_belf+:} false; then :
7313 $as_echo_n "(cached
) " >&6
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7332 if ac_fn_c_try_link "$LINENO"; then :
7333 lt_cv_cc_needs_belf=yes
7335 lt_cv_cc_needs_belf=no
7337 rm -f core conftest.err conftest.$ac_objext \
7338 conftest$ac_exeext conftest.$ac_ext
7340 ac_cpp='$CPP $CPPFLAGS'
7341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7347 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7348 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7349 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7350 CFLAGS="$SAVE_CFLAGS"
7354 # Find out which ABI we are using.
7355 echo 'int i;' > conftest.$ac_ext
7356 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357 (eval $ac_compile) 2>&5
7359 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7360 test $ac_status = 0; }; then
7361 case `/usr/bin/file conftest.o` in
7363 case $lt_cv_prog_gnu_ld in
7364 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7366 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7378 need_locks="$enable_libtool_lock"
7382 rhapsody* | darwin*)
7383 if test -n "$ac_tool_prefix"; then
7384 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7385 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7387 $as_echo_n "checking
for $ac_word...
" >&6; }
7388 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7389 $as_echo_n "(cached
) " >&6
7391 if test -n "$DSYMUTIL"; then
7392 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7411 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7412 if test -n "$DSYMUTIL"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7414 $as_echo "$DSYMUTIL" >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7417 $as_echo "no
" >&6; }
7422 if test -z "$ac_cv_prog_DSYMUTIL"; then
7423 ac_ct_DSYMUTIL=$DSYMUTIL
7424 # Extract the first word of "dsymutil
", so it can be a program name with args.
7425 set dummy dsymutil; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7427 $as_echo_n "checking
for $ac_word...
" >&6; }
7428 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7429 $as_echo_n "(cached
) " >&6
7431 if test -n "$ac_ct_DSYMUTIL"; then
7432 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7451 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7452 if test -n "$ac_ct_DSYMUTIL"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7454 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7457 $as_echo "no
" >&6; }
7460 if test "x
$ac_ct_DSYMUTIL" = x; then
7463 case $cross_compiling:$ac_tool_warned in
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7466 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7467 ac_tool_warned=yes ;;
7469 DSYMUTIL=$ac_ct_DSYMUTIL
7472 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7475 if test -n "$ac_tool_prefix"; then
7476 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7479 $as_echo_n "checking
for $ac_word...
" >&6; }
7480 if ${ac_cv_prog_NMEDIT+:} false; then :
7481 $as_echo_n "(cached
) " >&6
7483 if test -n "$NMEDIT"; then
7484 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7503 NMEDIT=$ac_cv_prog_NMEDIT
7504 if test -n "$NMEDIT"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7506 $as_echo "$NMEDIT" >&6; }
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7509 $as_echo "no
" >&6; }
7514 if test -z "$ac_cv_prog_NMEDIT"; then
7515 ac_ct_NMEDIT=$NMEDIT
7516 # Extract the first word of "nmedit
", so it can be a program name with args.
7517 set dummy nmedit; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7519 $as_echo_n "checking
for $ac_word...
" >&6; }
7520 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7521 $as_echo_n "(cached
) " >&6
7523 if test -n "$ac_ct_NMEDIT"; then
7524 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7543 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7544 if test -n "$ac_ct_NMEDIT"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7546 $as_echo "$ac_ct_NMEDIT" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7549 $as_echo "no
" >&6; }
7552 if test "x
$ac_ct_NMEDIT" = x; then
7555 case $cross_compiling:$ac_tool_warned in
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7558 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7559 ac_tool_warned=yes ;;
7561 NMEDIT=$ac_ct_NMEDIT
7564 NMEDIT="$ac_cv_prog_NMEDIT"
7567 if test -n "$ac_tool_prefix"; then
7568 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7571 $as_echo_n "checking
for $ac_word...
" >&6; }
7572 if ${ac_cv_prog_LIPO+:} false; then :
7573 $as_echo_n "(cached
) " >&6
7575 if test -n "$LIPO"; then
7576 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7595 LIPO=$ac_cv_prog_LIPO
7596 if test -n "$LIPO"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7598 $as_echo "$LIPO" >&6; }
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7601 $as_echo "no
" >&6; }
7606 if test -z "$ac_cv_prog_LIPO"; then
7608 # Extract the first word of "lipo
", so it can be a program name with args.
7609 set dummy lipo; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7611 $as_echo_n "checking
for $ac_word...
" >&6; }
7612 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7613 $as_echo_n "(cached
) " >&6
7615 if test -n "$ac_ct_LIPO"; then
7616 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_ac_ct_LIPO="lipo
"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7635 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7636 if test -n "$ac_ct_LIPO"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7638 $as_echo "$ac_ct_LIPO" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7641 $as_echo "no
" >&6; }
7644 if test "x
$ac_ct_LIPO" = x; then
7647 case $cross_compiling:$ac_tool_warned in
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7650 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7651 ac_tool_warned=yes ;;
7656 LIPO="$ac_cv_prog_LIPO"
7659 if test -n "$ac_tool_prefix"; then
7660 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}otool; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7663 $as_echo_n "checking
for $ac_word...
" >&6; }
7664 if ${ac_cv_prog_OTOOL+:} false; then :
7665 $as_echo_n "(cached
) " >&6
7667 if test -n "$OTOOL"; then
7668 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7687 OTOOL=$ac_cv_prog_OTOOL
7688 if test -n "$OTOOL"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7690 $as_echo "$OTOOL" >&6; }
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7693 $as_echo "no
" >&6; }
7698 if test -z "$ac_cv_prog_OTOOL"; then
7700 # Extract the first word of "otool
", so it can be a program name with args.
7701 set dummy otool; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7703 $as_echo_n "checking
for $ac_word...
" >&6; }
7704 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7705 $as_echo_n "(cached
) " >&6
7707 if test -n "$ac_ct_OTOOL"; then
7708 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_ac_ct_OTOOL="otool
"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7727 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7728 if test -n "$ac_ct_OTOOL"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7730 $as_echo "$ac_ct_OTOOL" >&6; }
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7733 $as_echo "no
" >&6; }
7736 if test "x
$ac_ct_OTOOL" = x; then
7739 case $cross_compiling:$ac_tool_warned in
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7742 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7743 ac_tool_warned=yes ;;
7748 OTOOL="$ac_cv_prog_OTOOL"
7751 if test -n "$ac_tool_prefix"; then
7752 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7755 $as_echo_n "checking
for $ac_word...
" >&6; }
7756 if ${ac_cv_prog_OTOOL64+:} false; then :
7757 $as_echo_n "(cached
) " >&6
7759 if test -n "$OTOOL64"; then
7760 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7779 OTOOL64=$ac_cv_prog_OTOOL64
7780 if test -n "$OTOOL64"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7782 $as_echo "$OTOOL64" >&6; }
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7785 $as_echo "no
" >&6; }
7790 if test -z "$ac_cv_prog_OTOOL64"; then
7791 ac_ct_OTOOL64=$OTOOL64
7792 # Extract the first word of "otool64
", so it can be a program name with args.
7793 set dummy otool64; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7795 $as_echo_n "checking
for $ac_word...
" >&6; }
7796 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7797 $as_echo_n "(cached
) " >&6
7799 if test -n "$ac_ct_OTOOL64"; then
7800 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7819 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7820 if test -n "$ac_ct_OTOOL64"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7822 $as_echo "$ac_ct_OTOOL64" >&6; }
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7825 $as_echo "no
" >&6; }
7828 if test "x
$ac_ct_OTOOL64" = x; then
7831 case $cross_compiling:$ac_tool_warned in
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7834 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7835 ac_tool_warned=yes ;;
7837 OTOOL64=$ac_ct_OTOOL64
7840 OTOOL64="$ac_cv_prog_OTOOL64"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7870 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7871 if ${lt_cv_apple_cc_single_mod+:} false; then :
7872 $as_echo_n "(cached
) " >&6
7874 lt_cv_apple_cc_single_mod=no
7875 if test -z "${LT_MULTI_MODULE}"; then
7876 # By default we will add the -single_module flag. You can override
7877 # by either setting the environment variable LT_MULTI_MODULE
7878 # non-empty at configure time, or by adding -multi_module to the
7880 rm -rf libconftest.dylib*
7881 echo "int foo
(void
){return 1;}" > conftest.c
7882 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7883 -dynamiclib -Wl,-single_module conftest.c
" >&5
7884 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7885 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7887 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7888 lt_cv_apple_cc_single_mod=yes
7890 cat conftest.err >&5
7892 rm -rf libconftest.dylib*
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7897 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7899 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7900 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7901 $as_echo_n "(cached
) " >&6
7903 lt_cv_ld_exported_symbols_list=no
7904 save_LDFLAGS=$LDFLAGS
7905 echo "_main
" > conftest.sym
7906 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7918 if ac_fn_c_try_link "$LINENO"; then :
7919 lt_cv_ld_exported_symbols_list=yes
7921 lt_cv_ld_exported_symbols_list=no
7923 rm -f core conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925 LDFLAGS="$save_LDFLAGS"
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7929 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7931 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7932 if ${lt_cv_ld_force_load+:} false; then :
7933 $as_echo_n "(cached
) " >&6
7935 lt_cv_ld_force_load=no
7936 cat > conftest.c << _LT_EOF
7937 int forced_loaded() { return 2;}
7939 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7940 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7941 echo "$AR cru libconftest.a conftest.o
" >&5
7942 $AR cru libconftest.a conftest.o 2>&5
7943 cat > conftest.c << _LT_EOF
7944 int main() { return 0;}
7946 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7947 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7949 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7950 lt_cv_ld_force_load=yes
7952 cat conftest.err >&5
7954 rm -f conftest.err libconftest.a conftest conftest.c
7955 rm -rf conftest.dSYM
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7959 $as_echo "$lt_cv_ld_force_load" >&6; }
7960 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7961 # build without first building modern cctools / linker.
7962 case $host_cpu-$host_os in
7963 *-rhapsody* | *-darwin1.[012])
7964 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7966 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7968 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7969 # deployment target is forced to an earlier version.
7970 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7971 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7974 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7981 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7982 _lt_dar_single_mod='$single_module'
7984 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7985 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7987 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7989 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7990 _lt_dsymutil='~$DSYMUTIL $lib || :'
7997 for ac_header in dlfcn.h
7999 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8001 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8002 cat >>confdefs.h <<_ACEOF
8003 #define HAVE_DLFCN_H 1
8025 # Check whether --enable-shared was given.
8026 if test "${enable_shared+set}" = set; then :
8027 enableval=$enable_shared; p=${PACKAGE-default}
8029 yes) enable_shared=yes ;;
8030 no) enable_shared=no ;;
8033 # Look at the argument we got. We use all the common list separators.
8034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8035 for pkg in $enableval; do
8037 if test "X
$pkg" = "X
$p"; then
8056 # Check whether --enable-static was given.
8057 if test "${enable_static+set}" = set; then :
8058 enableval=$enable_static; p=${PACKAGE-default}
8060 yes) enable_static=yes ;;
8061 no) enable_static=no ;;
8064 # Look at the argument we got. We use all the common list separators.
8065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8066 for pkg in $enableval; do
8068 if test "X
$pkg" = "X
$p"; then
8088 # Check whether --with-pic was given.
8089 if test "${with_pic+set}" = set; then :
8090 withval=$with_pic; pic_mode="$withval"
8096 test -z "$pic_mode" && pic_mode=default
8104 # Check whether --enable-fast-install was given.
8105 if test "${enable_fast_install+set}" = set; then :
8106 enableval=$enable_fast_install; p=${PACKAGE-default}
8108 yes) enable_fast_install=yes ;;
8109 no) enable_fast_install=no ;;
8111 enable_fast_install=no
8112 # Look at the argument we got. We use all the common list separators.
8113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114 for pkg in $enableval; do
8116 if test "X
$pkg" = "X
$p"; then
8117 enable_fast_install=yes
8124 enable_fast_install=yes
8137 # This can be used to rebuild libtool when needed
8138 LIBTOOL_DEPS="$ltmain"
8140 # Always use our own libtool.
8141 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8168 test -z "$LN_S" && LN_S="ln -s"
8183 if test -n "${ZSH_VERSION+set}" ; then
8184 setopt NO_GLOB_SUBST
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8188 $as_echo_n "checking
for objdir...
" >&6; }
8189 if ${lt_cv_objdir+:} false; then :
8190 $as_echo_n "(cached
) " >&6
8192 rm -f .libs 2>/dev/null
8193 mkdir .libs 2>/dev/null
8194 if test -d .libs; then
8197 # MS-DOS does not allow filenames that begin with a dot.
8200 rmdir .libs 2>/dev/null
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8203 $as_echo "$lt_cv_objdir" >&6; }
8204 objdir=$lt_cv_objdir
8210 cat >>confdefs.h <<_ACEOF
8211 #define LT_OBJDIR "$lt_cv_objdir/"
8219 # AIX sometimes has problems with the GCC collect2 program. For some
8220 # reason, if we set the COLLECT_NAMES environment variable, the problems
8221 # vanish in a puff of smoke.
8222 if test "X
${COLLECT_NAMES+set}" != Xset; then
8224 export COLLECT_NAMES
8231 can_build_shared=yes
8233 # All known linkers require a `.a' archive for static linking (except MSVC,
8234 # which needs '.lib').
8237 with_gnu_ld="$lt_cv_prog_gnu_ld"
8240 old_CFLAGS="$CFLAGS"
8242 # Set sane defaults for various variables
8243 test -z "$CC" && CC=cc
8244 test -z "$LTCC" && LTCC=$CC
8245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246 test -z "$LD" && LD=ld
8247 test -z "$ac_objext" && ac_objext=o
8249 for cc_temp in $compiler""; do
8251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8257 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8260 # Only perform the check for file, if the check method requires it
8261 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8262 case $deplibs_check_method in
8264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8266 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8267 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8268 $as_echo_n "(cached
) " >&6
8272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8275 lt_save_MAGIC_CMD="$MAGIC_CMD"
8276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8278 for ac_dir in $ac_dummy; do
8280 test -z "$ac_dir" && ac_dir=.
8281 if test -f $ac_dir/${ac_tool_prefix}file; then
8282 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283 if test -n "$file_magic_test_file"; then
8284 case $deplibs_check_method in
8286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289 $EGREP "$file_magic_regex" > /dev/null; then
8294 *** Warning: the command libtool uses to detect shared libraries,
8295 *** $file_magic_cmd, produces output that libtool cannot recognize.
8296 *** The result is that libtool may fail to recognize shared libraries
8297 *** as such. This will affect the creation of libtool libraries that
8298 *** depend on shared libraries, but programs linked with such libtool
8299 *** libraries will work regardless of this problem. Nevertheless, you
8300 *** may want to report the problem to your system manager and/or to
8301 *** bug-libtool@gnu.org
8311 MAGIC_CMD="$lt_save_MAGIC_CMD"
8316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317 if test -n "$MAGIC_CMD"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8319 $as_echo "$MAGIC_CMD" >&6; }
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8322 $as_echo "no
" >&6; }
8329 if test -z "$lt_cv_path_MAGIC_CMD"; then
8330 if test -n "$ac_tool_prefix"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8332 $as_echo_n "checking
for file...
" >&6; }
8333 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334 $as_echo_n "(cached
) " >&6
8338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8341 lt_save_MAGIC_CMD="$MAGIC_CMD"
8342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8344 for ac_dir in $ac_dummy; do
8346 test -z "$ac_dir" && ac_dir=.
8347 if test -f $ac_dir/file; then
8348 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8349 if test -n "$file_magic_test_file"; then
8350 case $deplibs_check_method in
8352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355 $EGREP "$file_magic_regex" > /dev/null; then
8360 *** Warning: the command libtool uses to detect shared libraries,
8361 *** $file_magic_cmd, produces output that libtool cannot recognize.
8362 *** The result is that libtool may fail to recognize shared libraries
8363 *** as such. This will affect the creation of libtool libraries that
8364 *** depend on shared libraries, but programs linked with such libtool
8365 *** libraries will work regardless of this problem. Nevertheless, you
8366 *** may want to report the problem to your system manager and/or to
8367 *** bug-libtool@gnu.org
8377 MAGIC_CMD="$lt_save_MAGIC_CMD"
8382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383 if test -n "$MAGIC_CMD"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8385 $as_echo "$MAGIC_CMD" >&6; }
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8388 $as_echo "no
" >&6; }
8401 # Use C for the default configuration in the libtool script
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8411 # Source file extension for C test sources.
8414 # Object file extension for compiled C test sources.
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable
= 0;"
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}'
8430 # If no C compiler was specified, use CC.
8433 # If no C compiler flags were specified, use CFLAGS.
8434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8436 # Allow CC to be a program name with arguments.
8439 # Save the default compiler, since it gets overwritten when the other
8440 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8441 compiler_DEFAULT=$CC
8443 # save warnings/boilerplate of simple test code
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447 _lt_compiler_boilerplate=`cat conftest.err`
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453 _lt_linker_boilerplate=`cat conftest.err`
8458 ## There is no encapsulation within the following macros, do not change
8459 ## the running order or otherwise move them around unless you know exactly
8460 ## what you are doing...
8461 if test -n "$compiler"; then
8463 lt_prog_compiler_no_builtin_flag=
8465 if test "$GCC" = yes; then
8466 case $cc_basename in
8468 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8470 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8474 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8475 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8476 $as_echo_n "(cached
) " >&6
8478 lt_cv_prog_compiler_rtti_exceptions=no
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481 lt_compiler_flag="-fno-rtti -fno-exceptions"
8482 # Insert the option either (1) after the last *FLAGS variable, or
8483 # (2) before a word containing "conftest.
", or (3) at the end.
8484 # Note that $ac_compile itself does not contain backslashes and begins
8485 # with a dollar sign (not a hyphen), so the echo should work correctly.
8486 # The option is referenced via a variable to avoid confusing sed.
8487 lt_compile=`echo "$ac_compile" | $SED \
8488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490 -e 's:$: $lt_compiler_flag:'`
8491 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8492 (eval "$lt_compile" 2>conftest.err)
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8496 if (exit $ac_status) && test -s "$ac_outfile"; then
8497 # The compiler can only warn and ignore the option if not recognized
8498 # So say no if there are warnings other than the usual output.
8499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8502 lt_cv_prog_compiler_rtti_exceptions=yes
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8509 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8511 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8512 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8524 lt_prog_compiler_wl=
8525 lt_prog_compiler_pic=
8526 lt_prog_compiler_static=
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8529 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8531 if test "$GCC" = yes; then
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_static='-static'
8537 # All AIX code is PIC.
8538 if test "$host_cpu" = ia64; then
8539 # AIX 5 now supports IA64 processor
8540 lt_prog_compiler_static='-Bstatic'
8542 lt_prog_compiler_pic='-fPIC'
8548 # see comment about AmigaOS4 .so support
8549 lt_prog_compiler_pic='-fPIC'
8552 # FIXME: we need at least 68020 code to build shared libraries, but
8553 # adding the `-m68020' flag to GCC prevents building anything better,
8555 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8560 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8561 # PIC is the default for these OSes.
8564 mingw* | cygwin* | pw32* | os2* | cegcc*)
8565 # This hack is so that the source file can tell whether it is being
8566 # built for inclusion in a dll (and should export symbols for example).
8567 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8568 # (--disable-auto-import) libraries
8569 lt_prog_compiler_pic='-DDLL_EXPORT'
8572 darwin* | rhapsody*)
8573 # PIC is the default on this platform
8574 # Common symbols not allowed in MH_DYLIB files
8575 lt_prog_compiler_pic='-fno-common'
8579 # PIC is the default for Haiku.
8580 # The "-static" flag exists, but is broken.
8581 lt_prog_compiler_static=
8585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8587 # sets the default TLS model and affects inlining.
8593 lt_prog_compiler_pic='-fPIC'
8599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8600 # Instead, we relocate shared libraries at runtime.
8604 # Just because we use GCC doesn't mean we suddenly get shared libraries
8605 # on systems that don't support them.
8606 lt_prog_compiler_can_build_shared=no
8611 # QNX uses GNU C++, but need to define -shared option too, otherwise
8613 lt_prog_compiler_pic='-fPIC -shared'
8617 if test -d /usr/nec; then
8618 lt_prog_compiler_pic=-Kconform_pic
8623 lt_prog_compiler_pic='-fPIC'
8627 case $cc_basename in
8628 nvcc*) # Cuda Compiler Driver 2.2
8629 lt_prog_compiler_wl='-Xlinker '
8630 lt_prog_compiler_pic='-Xcompiler -fPIC'
8634 # PORTME Check for flag to pass linker flags through the system compiler.
8637 lt_prog_compiler_wl='-Wl,'
8638 if test "$host_cpu" = ia64; then
8639 # AIX 5 now supports IA64 processor
8640 lt_prog_compiler_static='-Bstatic'
8642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8646 mingw* | cygwin* | pw32* | os2* | cegcc*)
8647 # This hack is so that the source file can tell whether it is being
8648 # built for inclusion in a dll (and should export symbols for example).
8649 lt_prog_compiler_pic='-DDLL_EXPORT'
8652 hpux9* | hpux10* | hpux11*)
8653 lt_prog_compiler_wl='-Wl,'
8654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8661 lt_prog_compiler_pic='+Z'
8664 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8665 lt_prog_compiler_static='${wl}-a ${wl}archive'
8668 irix5* | irix6* | nonstopux*)
8669 lt_prog_compiler_wl='-Wl,'
8670 # PIC (with -KPIC) is the default.
8671 lt_prog_compiler_static='-non_shared'
8674 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8675 case $cc_basename in
8676 # old Intel for x86_64 which still supported -KPIC.
8678 lt_prog_compiler_wl='-Wl,'
8679 lt_prog_compiler_pic='-KPIC'
8680 lt_prog_compiler_static='-static'
8682 # icc used to be incompatible with GCC.
8683 # ICC 10 doesn't accept -KPIC any more.
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-fPIC'
8687 lt_prog_compiler_static='-static'
8689 # Lahey Fortran 8.1.
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_pic='--shared'
8693 lt_prog_compiler_static='--static'
8695 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8696 # Portland Group compilers (*not* the Pentium gcc compiler,
8697 # which looks to be a dead project)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='-fpic'
8700 lt_prog_compiler_static='-Bstatic'
8703 lt_prog_compiler_wl='-Wl,'
8704 # All Alpha code is PIC.
8705 lt_prog_compiler_static='-non_shared'
8707 xl* | bgxl* | bgf* | mpixl*)
8708 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8709 lt_prog_compiler_wl='-Wl,'
8710 lt_prog_compiler_pic='-qpic'
8711 lt_prog_compiler_static='-qstaticlink'
8714 case `$CC -V 2>&1 | sed 5q` in
8715 *Sun\ F* | *Sun*Fortran*)
8716 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8717 lt_prog_compiler_pic='-KPIC'
8718 lt_prog_compiler_static='-Bstatic'
8719 lt_prog_compiler_wl=''
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_wl='-Wl,'
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-Bstatic'
8738 # QNX uses GNU C++, but need to define -shared option too, otherwise
8740 lt_prog_compiler_pic='-fPIC -shared'
8743 osf3* | osf4* | osf5*)
8744 lt_prog_compiler_wl='-Wl,'
8745 # All OSF/1 code is PIC.
8746 lt_prog_compiler_static='-non_shared'
8750 lt_prog_compiler_static='-non_shared'
8754 lt_prog_compiler_pic='-KPIC'
8755 lt_prog_compiler_static='-Bstatic'
8756 case $cc_basename in
8758 lt_prog_compiler_wl='-Qoption ld ';;
8760 lt_prog_compiler_wl='-Wl,';;
8765 lt_prog_compiler_wl='-Qoption ld '
8766 lt_prog_compiler_pic='-PIC'
8767 lt_prog_compiler_static='-Bstatic'
8770 sysv4 | sysv4.2uw2* | sysv4.3*)
8771 lt_prog_compiler_wl='-Wl,'
8772 lt_prog_compiler_pic='-KPIC'
8773 lt_prog_compiler_static='-Bstatic'
8777 if test -d /usr/nec ;then
8778 lt_prog_compiler_pic='-Kconform_pic'
8779 lt_prog_compiler_static='-Bstatic'
8783 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8784 lt_prog_compiler_wl='-Wl,'
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_can_build_shared=no
8795 lt_prog_compiler_pic='-pic'
8796 lt_prog_compiler_static='-Bstatic'
8800 lt_prog_compiler_can_build_shared=no
8806 # For platforms which do not support PIC, -DPIC is meaningless:
8808 lt_prog_compiler_pic=
8811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
8815 $as_echo "$lt_prog_compiler_pic" >&6; }
8823 # Check to make sure the PIC flag actually works.
8825 if test -n "$lt_prog_compiler_pic"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8827 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
8828 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8829 $as_echo_n "(cached
) " >&6
8831 lt_cv_prog_compiler_pic_works=no
8832 ac_outfile=conftest.$ac_objext
8833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8834 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8835 # Insert the option either (1) after the last *FLAGS variable, or
8836 # (2) before a word containing "conftest.
", or (3) at the end.
8837 # Note that $ac_compile itself does not contain backslashes and begins
8838 # with a dollar sign (not a hyphen), so the echo should work correctly.
8839 # The option is referenced via a variable to avoid confusing sed.
8840 lt_compile=`echo "$ac_compile" | $SED \
8841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8843 -e 's:$: $lt_compiler_flag:'`
8844 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8845 (eval "$lt_compile" 2>conftest.err)
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8849 if (exit $ac_status) && test -s "$ac_outfile"; then
8850 # The compiler can only warn and ignore the option if not recognized
8851 # So say no if there are warnings other than the usual output.
8852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8855 lt_cv_prog_compiler_pic_works=yes
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
8862 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8864 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8865 case $lt_prog_compiler_pic in
8867 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8870 lt_prog_compiler_pic=
8871 lt_prog_compiler_can_build_shared=no
8882 # Check to make sure the static flag actually works.
8884 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
8886 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
8887 if ${lt_cv_prog_compiler_static_works+:} false; then :
8888 $as_echo_n "(cached
) " >&6
8890 lt_cv_prog_compiler_static_works=no
8891 save_LDFLAGS="$LDFLAGS"
8892 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8893 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8895 # The linker can only warn and ignore the option if not recognized
8896 # So say no if there are warnings
8897 if test -s conftest.err; then
8898 # Append any errors to the config.log.
8899 cat conftest.err 1>&5
8900 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8902 if diff conftest.exp conftest.er2 >/dev/null; then
8903 lt_cv_prog_compiler_static_works=yes
8906 lt_cv_prog_compiler_static_works=yes
8910 LDFLAGS="$save_LDFLAGS"
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
8914 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8916 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8919 lt_prog_compiler_static=
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8929 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8930 if ${lt_cv_prog_compiler_c_o+:} false; then :
8931 $as_echo_n "(cached
) " >&6
8933 lt_cv_prog_compiler_c_o=no
8934 $RM -r conftest 2>/dev/null
8938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8940 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8941 # Insert the option either (1) after the last *FLAGS variable, or
8942 # (2) before a word containing "conftest.
", or (3) at the end.
8943 # Note that $ac_compile itself does not contain backslashes and begins
8944 # with a dollar sign (not a hyphen), so the echo should work correctly.
8945 lt_compile=`echo "$ac_compile" | $SED \
8946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948 -e 's:$: $lt_compiler_flag:'`
8949 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8950 (eval "$lt_compile" 2>out/conftest.err)
8952 cat out/conftest.err >&5
8953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8956 # The compiler can only warn and ignore the option if not recognized
8957 # So say no if there are warnings
8958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8961 lt_cv_prog_compiler_c_o=yes
8966 # SGI C++ compiler will create directory out/ii_files/ for
8967 # template instantiation
8968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8969 $RM out/* && rmdir out
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
8976 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8984 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8985 if ${lt_cv_prog_compiler_c_o+:} false; then :
8986 $as_echo_n "(cached
) " >&6
8988 lt_cv_prog_compiler_c_o=no
8989 $RM -r conftest 2>/dev/null
8993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8995 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8996 # Insert the option either (1) after the last *FLAGS variable, or
8997 # (2) before a word containing "conftest.
", or (3) at the end.
8998 # Note that $ac_compile itself does not contain backslashes and begins
8999 # with a dollar sign (not a hyphen), so the echo should work correctly.
9000 lt_compile=`echo "$ac_compile" | $SED \
9001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9003 -e 's:$: $lt_compiler_flag:'`
9004 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9005 (eval "$lt_compile" 2>out/conftest.err)
9007 cat out/conftest.err >&5
9008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9011 # The compiler can only warn and ignore the option if not recognized
9012 # So say no if there are warnings
9013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9016 lt_cv_prog_compiler_c_o=yes
9021 # SGI C++ compiler will create directory out/ii_files/ for
9022 # template instantiation
9023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9024 $RM out/* && rmdir out
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9036 hard_links="nottested
"
9037 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9038 # do not overwrite the value of need_locks provided by the user
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9040 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9045 ln conftest.a conftest.b 2>&5 || hard_links=no
9046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9048 $as_echo "$hard_links" >&6; }
9049 if test "$hard_links" = no; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9051 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9064 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9067 allow_undefined_flag=
9068 always_export_symbols=no
9070 archive_expsym_cmds=
9071 compiler_needs_object=no
9072 enable_shared_with_static_runtimes=no
9073 export_dynamic_flag_spec=
9074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9075 hardcode_automatic=no
9077 hardcode_direct_absolute=no
9078 hardcode_libdir_flag_spec=
9079 hardcode_libdir_flag_spec_ld=
9080 hardcode_libdir_separator=
9082 hardcode_shlibpath_var=unsupported
9084 link_all_deplibs=unknown
9087 old_archive_from_new_cmds=
9088 old_archive_from_expsyms_cmds=
9089 thread_safe_flag_spec=
9090 whole_archive_flag_spec=
9091 # include_expsyms should be a list of space-separated symbols to be *always*
9092 # included in the symbol list
9094 # exclude_expsyms can be an extended regexp of symbols to exclude
9095 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9096 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9097 # as well as any symbol that contains `d'.
9098 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9099 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9100 # platforms (ab)use it in PIC code, but their linkers get confused if
9101 # the symbol is explicitly referenced. Since portable code cannot
9102 # rely on this symbol name, it's probably fine to never include it in
9103 # preloaded symbol tables.
9104 # Exclude shared library initialization/finalization symbols.
9105 extract_expsyms_cmds=
9108 cygwin* | mingw* | pw32* | cegcc*)
9109 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9110 # When not using gcc, we currently assume that we are using
9111 # Microsoft Visual C++.
9112 if test "$GCC" != yes; then
9117 # we just hope/assume this is gcc and not c89 (= MSVC++)
9127 # On some targets, GNU ld is compatible enough with the native linker
9128 # that we're better off using the native interface for both.
9129 lt_use_gnu_ld_interface=no
9130 if test "$with_gnu_ld" = yes; then
9133 # The AIX port of GNU ld has always aspired to compatibility
9134 # with the native linker. However, as the warning in the GNU ld
9135 # block says, versions before 2.19.5* couldn't really create working
9136 # shared libraries, regardless of the interface used.
9137 case `$LD -v 2>&1` in
9138 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9139 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9140 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9142 lt_use_gnu_ld_interface=yes
9147 lt_use_gnu_ld_interface=yes
9152 if test "$lt_use_gnu_ld_interface" = yes; then
9153 # If archive_cmds runs LD, not CC, wlarc should be empty
9156 # Set some defaults for GNU ld with shared library support. These
9157 # are reset later if shared libraries are not supported. Putting them
9158 # here allows them to be overridden if necessary.
9159 runpath_var=LD_RUN_PATH
9160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161 export_dynamic_flag_spec='${wl}--export-dynamic'
9162 # ancient GNU ld didn't support --whole-archive et. al.
9163 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9164 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9166 whole_archive_flag_spec=
9168 supports_anon_versioning=no
9169 case `$LD -v 2>&1` in
9170 *GNU\ gold*) supports_anon_versioning=yes ;;
9171 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9172 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9173 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9174 *\ 2.11.*) ;; # other 2.11 versions
9175 *) supports_anon_versioning=yes ;;
9178 # See if GNU ld supports shared libraries.
9181 # On AIX/PPC, the GNU linker is very broken
9182 if test "$host_cpu" != ia64; then
9186 *** Warning: the GNU linker, at least up to release 2.19, is reported
9187 *** to be unable to reliably create shared libraries on AIX.
9188 *** Therefore, libtool is disabling shared libraries support. If you
9189 *** really care for shared libraries, you may want to install binutils
9190 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9191 *** You will then need to restart the configuration process.
9200 # see comment about AmigaOS4 .so support
9201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202 archive_expsym_cmds=''
9205 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9206 hardcode_libdir_flag_spec
='-L$libdir'
9207 hardcode_minus_L
=yes
9213 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9214 allow_undefined_flag
=unsupported
9215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9216 # support --undefined. This deserves some investigation. FIXME
9217 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223 cygwin
* | mingw
* | pw32
* | cegcc
*)
9224 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9225 # as there is no search path for DLLs.
9226 hardcode_libdir_flag_spec
='-L$libdir'
9227 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9228 allow_undefined_flag
=unsupported
9229 always_export_symbols
=no
9230 enable_shared_with_static_runtimes
=yes
9231 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9233 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9234 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9235 # If the export-symbols file already is a .def file (1st line
9236 # is EXPORTS), use it as is; otherwise, prepend...
9237 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9238 cp $export_symbols $output_objdir/$soname.def;
9240 echo EXPORTS > $output_objdir/$soname.def;
9241 cat $export_symbols >> $output_objdir/$soname.def;
9243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9250 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 link_all_deplibs
=yes
9256 hardcode_shlibpath_var
=no
9257 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9258 export_dynamic_flag_spec
='${wl}-E'
9259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9260 # Instead, shared libraries are loaded at an image base (0x10000000 by
9261 # default) and relocated if they conflict, which is a slow very memory
9262 # consuming and fragmenting process. To avoid this, we pick a random,
9263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9265 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9266 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9269 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9271 if test "$host_os" = linux-dietlibc
; then
9272 case $cc_basename in
9273 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9276 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9277 && test "$tmp_diet" = no
9279 tmp_addflag
=' $pic_flag'
9280 tmp_sharedflag
='-shared'
9281 case $cc_basename,$host_cpu in
9282 pgcc
*) # Portland Group C compiler
9283 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9284 tmp_addflag
=' $pic_flag'
9286 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9287 # Portland Group f77 and f90 compilers
9288 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9289 tmp_addflag
=' $pic_flag -Mnomain' ;;
9290 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9291 tmp_addflag
=' -i_dynamic' ;;
9292 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9293 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9294 ifc
* | ifort
*) # Intel Fortran compiler
9295 tmp_addflag
=' -nofor_main' ;;
9296 lf95
*) # Lahey Fortran 8.1
9297 whole_archive_flag_spec
=
9298 tmp_sharedflag
='--shared' ;;
9299 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9300 tmp_sharedflag
='-qmkshrobj'
9302 nvcc
*) # Cuda Compiler Driver 2.2
9303 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9304 compiler_needs_object
=yes
9307 case `$CC -V 2>&1 | sed 5q` in
9308 *Sun\ C
*) # Sun C 5.9
9309 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9310 compiler_needs_object
=yes
9311 tmp_sharedflag
='-G' ;;
9312 *Sun\ F
*) # Sun Fortran 8.3
9313 tmp_sharedflag
='-G' ;;
9315 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 if test "x$supports_anon_versioning" = xyes
; then
9318 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9320 echo "local: *; };" >> $output_objdir/$libname.ver~
9321 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9324 case $cc_basename in
9325 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9326 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9327 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9328 hardcode_libdir_flag_spec
=
9329 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9330 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9331 if test "x$supports_anon_versioning" = xyes
; then
9332 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334 echo "local: *; };" >> $output_objdir/$libname.ver~
9335 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9345 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9346 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9349 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9359 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9360 *** create shared libraries on Solaris systems. Therefore, libtool
9361 *** is disabling shared libraries support. We urge you to upgrade GNU
9362 *** binutils to release 2.9.1 or newer. Another option is to modify
9363 *** your PATH or compiler configuration so that the native linker is
9364 *** used, and then restart.
9367 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9368 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9375 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9376 case `$LD -v 2>&1` in
9377 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9381 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9382 *** reliably create shared libraries on SCO systems. Therefore, libtool
9383 *** is disabling shared libraries support. We urge you to upgrade GNU
9384 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9385 *** your PATH or compiler configuration so that the native linker is
9386 *** used, and then restart.
9391 # For security reasons, it is highly recommended that you always
9392 # use absolute paths for naming shared libraries, and exclude the
9393 # DT_RUNPATH tag from executables and libraries. But doing so
9394 # requires that you compile everything twice, which is a pain.
9395 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9396 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9397 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9407 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_shlibpath_var
=no
9414 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9415 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9423 if test "$ld_shlibs" = no
; then
9425 hardcode_libdir_flag_spec
=
9426 export_dynamic_flag_spec
=
9427 whole_archive_flag_spec
=
9430 # PORTME fill in a description of your system's linker (not GNU ld)
9433 allow_undefined_flag
=unsupported
9434 always_export_symbols
=yes
9435 archive_expsym_cmds
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9436 # Note: this linker hardcodes the directories in LIBPATH if there
9437 # are no directories specified by -L.
9438 hardcode_minus_L
=yes
9439 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9440 # Neither direct hardcoding nor static linking is supported with a
9442 hardcode_direct
=unsupported
9447 if test "$host_cpu" = ia64
; then
9448 # On IA64, the linker does run time linking by default, so we don't
9449 # have to do anything special.
9450 aix_use_runtimelinking
=no
9451 exp_sym_flag
='-Bexport'
9454 # If we're using GNU nm, then we don't want the "-C" option.
9455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9456 # Also, AIX nm treats weak defined symbols like other global
9457 # defined symbols, whereas GNU nm marks them as "W".
9458 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9459 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9461 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9463 aix_use_runtimelinking
=no
9465 # Test if we are trying to use run time linking or normal
9466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9467 # need to do runtime linking.
9468 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9469 for ld_flag
in $LDFLAGS; do
9470 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9471 aix_use_runtimelinking
=yes
9478 exp_sym_flag
='-bexport'
9479 no_entry_flag
='-bnoentry'
9482 # When large executables or shared objects are built, AIX ld can
9483 # have problems creating the table of contents. If linking a library
9484 # or program results in "error TOC overflow" add -mminimal-toc to
9485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9490 hardcode_direct_absolute
=yes
9491 hardcode_libdir_separator
=':'
9492 link_all_deplibs
=yes
9493 file_list_spec
='${wl}-f,'
9495 if test "$GCC" = yes; then
9496 case $host_os in aix4.
[012]|aix4.
[012].
*)
9497 # We only want to do this on AIX 4.2 and lower, the check
9498 # below for broken collect2 doesn't work under 4.3+
9499 collect2name
=`${CC} -print-prog-name=collect2`
9500 if test -f "$collect2name" &&
9501 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9503 # We have reworked collect2
9506 # We have old collect2
9507 hardcode_direct
=unsupported
9508 # It fails to find uninstalled libraries when the uninstalled
9509 # path is not listed in the libpath. Setting hardcode_minus_L
9510 # to unsupported forces relinking
9511 hardcode_minus_L
=yes
9512 hardcode_libdir_flag_spec
='-L$libdir'
9513 hardcode_libdir_separator
=
9517 shared_flag
='-shared'
9518 if test "$aix_use_runtimelinking" = yes; then
9519 shared_flag
="$shared_flag "'${wl}-G'
9523 if test "$host_cpu" = ia64
; then
9524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9525 # chokes on -Wl,-G. The following line is correct:
9528 if test "$aix_use_runtimelinking" = yes; then
9529 shared_flag
='${wl}-G'
9531 shared_flag
='${wl}-bM:SRE'
9536 export_dynamic_flag_spec
='${wl}-bexpall'
9537 # It seems that -bexpall does not export symbols beginning with
9538 # underscore (_), so it is better to generate a list of symbols to export.
9539 always_export_symbols
=yes
9540 if test "$aix_use_runtimelinking" = yes; then
9541 # Warning - without using the other runtime loading flags (-brtl),
9542 # -berok will link without error, but may produce a broken library.
9543 allow_undefined_flag
='-berok'
9544 # Determine the default libpath from the value encoded in an
9546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9557 if ac_fn_c_try_link
"$LINENO"; then :
9559 lt_aix_libpath_sed
='
9560 /Import File Strings/,/^$/ {
9566 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9567 # Check for a 64-bit object if we didn't find anything.
9568 if test -z "$aix_libpath"; then
9569 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9572 rm -f core conftest.err conftest.
$ac_objext \
9573 conftest
$ac_exeext conftest.
$ac_ext
9574 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9576 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9577 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9579 if test "$host_cpu" = ia64
; then
9580 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9581 allow_undefined_flag
="-z nodefs"
9582 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9584 # Determine the default libpath from the value encoded in an
9586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9597 if ac_fn_c_try_link
"$LINENO"; then :
9599 lt_aix_libpath_sed
='
9600 /Import File Strings/,/^$/ {
9606 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9607 # Check for a 64-bit object if we didn't find anything.
9608 if test -z "$aix_libpath"; then
9609 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9612 rm -f core conftest.err conftest.
$ac_objext \
9613 conftest
$ac_exeext conftest.
$ac_ext
9614 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9616 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9617 # Warning - without using the other run time loading flags,
9618 # -berok will link without error, but may produce a broken library.
9619 no_undefined_flag
=' ${wl}-bernotok'
9620 allow_undefined_flag
=' ${wl}-berok'
9621 if test "$with_gnu_ld" = yes; then
9622 # We only use this code for GNU lds that support --whole-archive.
9623 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9625 # Exported symbols can be pulled into shared objects from archives
9626 whole_archive_flag_spec
='$convenience'
9628 archive_cmds_need_lc
=yes
9629 # This is similar to how AIX traditionally builds its shared libraries.
9630 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9638 # see comment about AmigaOS4 .so support
9639 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9640 archive_expsym_cmds
=''
9643 archive_cmds
='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9644 hardcode_libdir_flag_spec
='-L$libdir'
9645 hardcode_minus_L
=yes
9651 export_dynamic_flag_spec
=-rdynamic
9654 cygwin
* | mingw
* | pw32
* | cegcc
*)
9655 # When not using gcc, we currently assume that we are using
9656 # Microsoft Visual C++.
9657 # hardcode_libdir_flag_spec is actually meaningless, as there is
9658 # no search path for DLLs.
9659 hardcode_libdir_flag_spec
=' '
9660 allow_undefined_flag
=unsupported
9661 # Tell ltmain to make .lib files, not .a files.
9663 # Tell ltmain to make .dll files, not .so files.
9665 # FIXME: Setting linknames here is a bad hack.
9666 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9667 # The linker will automatically build a .lib file if we build a DLL.
9668 old_archive_from_new_cmds
='true'
9669 # FIXME: Should let the user specify the lib program.
9670 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9671 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9672 enable_shared_with_static_runtimes
=yes
9675 darwin
* | rhapsody
*)
9678 archive_cmds_need_lc
=no
9680 hardcode_automatic
=yes
9681 hardcode_shlibpath_var
=unsupported
9682 if test "$lt_cv_ld_force_load" = "yes"; then
9683 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9685 whole_archive_flag_spec
=''
9687 link_all_deplibs
=yes
9688 allow_undefined_flag
="$_lt_dar_allow_undefined"
9689 case $cc_basename in
9690 ifort
*) _lt_dar_can_shared
=yes ;;
9691 *) _lt_dar_can_shared
=$GCC ;;
9693 if test "$_lt_dar_can_shared" = "yes"; then
9694 output_verbose_link_cmd
=func_echo_all
9695 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9696 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9697 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9698 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9707 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_libdir_flag_spec
='-L$libdir'
9709 hardcode_shlibpath_var
=no
9712 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9713 # support. Future versions do this automatically, but an explicit c++rt0.o
9714 # does not break anything, and helps significantly (at the cost of a little
9717 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9718 hardcode_libdir_flag_spec
='-R$libdir'
9720 hardcode_shlibpath_var
=no
9723 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9725 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9727 hardcode_minus_L
=yes
9728 hardcode_shlibpath_var
=no
9731 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9732 freebsd
* | dragonfly
*)
9733 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9734 hardcode_libdir_flag_spec
='-R$libdir'
9736 hardcode_shlibpath_var
=no
9740 if test "$GCC" = yes; then
9741 archive_cmds
='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9743 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9745 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9746 hardcode_libdir_separator
=:
9749 # hardcode_minus_L: Not really in the search PATH,
9750 # but as the default location of the library.
9751 hardcode_minus_L
=yes
9752 export_dynamic_flag_spec
='${wl}-E'
9756 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9757 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9759 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9761 if test "$with_gnu_ld" = no
; then
9762 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9763 hardcode_libdir_flag_spec_ld
='+b $libdir'
9764 hardcode_libdir_separator
=:
9766 hardcode_direct_absolute
=yes
9767 export_dynamic_flag_spec
='${wl}-E'
9768 # hardcode_minus_L: Not really in the search PATH,
9769 # but as the default location of the library.
9770 hardcode_minus_L
=yes
9775 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9778 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9790 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9793 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9797 # Older versions of the 11.00 compiler do not understand -b yet
9798 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9800 $as_echo_n "checking if $CC understands -b... " >&6; }
9801 if ${lt_cv_prog_compiler__b+:} false
; then :
9802 $as_echo_n "(cached) " >&6
9804 lt_cv_prog_compiler__b
=no
9805 save_LDFLAGS
="$LDFLAGS"
9806 LDFLAGS
="$LDFLAGS -b"
9807 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9808 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9809 # The linker can only warn and ignore the option if not recognized
9810 # So say no if there are warnings
9811 if test -s conftest.err
; then
9812 # Append any errors to the config.log.
9813 cat conftest.err
1>&5
9814 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9815 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9816 if diff conftest.exp conftest.er2
>/dev
/null
; then
9817 lt_cv_prog_compiler__b
=yes
9820 lt_cv_prog_compiler__b
=yes
9824 LDFLAGS
="$save_LDFLAGS"
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9828 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9830 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9831 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9833 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9839 if test "$with_gnu_ld" = no
; then
9840 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9841 hardcode_libdir_separator
=:
9846 hardcode_shlibpath_var
=no
9850 hardcode_direct_absolute
=yes
9851 export_dynamic_flag_spec
='${wl}-E'
9853 # hardcode_minus_L: Not really in the search PATH,
9854 # but as the default location of the library.
9855 hardcode_minus_L
=yes
9861 irix5
* | irix6
* | nonstopux
*)
9862 if test "$GCC" = yes; then
9863 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9864 # Try to use the -exported_symbol ld option, if it does not
9865 # work, assume that -exports_file does not work either and
9866 # implicitly export all symbols.
9867 save_LDFLAGS
="$LDFLAGS"
9868 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9873 if ac_fn_c_try_link
"$LINENO"; then :
9874 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9877 rm -f core conftest.err conftest.
$ac_objext \
9878 conftest
$ac_exeext conftest.
$ac_ext
9879 LDFLAGS
="$save_LDFLAGS"
9881 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9882 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9884 archive_cmds_need_lc
='no'
9885 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9886 hardcode_libdir_separator
=:
9888 link_all_deplibs
=yes
9892 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9893 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9895 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9897 hardcode_libdir_flag_spec
='-R$libdir'
9899 hardcode_shlibpath_var
=no
9903 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9906 hardcode_libdir_separator
=:
9907 hardcode_shlibpath_var
=no
9914 if test -f /usr
/libexec
/ld.so
; then
9916 hardcode_shlibpath_var
=no
9917 hardcode_direct_absolute
=yes
9918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9919 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9920 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9921 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9922 export_dynamic_flag_spec
='${wl}-E'
9925 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9926 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9927 hardcode_libdir_flag_spec
='-R$libdir'
9930 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9931 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9941 hardcode_libdir_flag_spec
='-L$libdir'
9942 hardcode_minus_L
=yes
9943 allow_undefined_flag
=unsupported
9944 archive_cmds
='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9945 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9949 if test "$GCC" = yes; then
9950 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9951 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9953 allow_undefined_flag
=' -expect_unresolved \*'
9954 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9956 archive_cmds_need_lc
='no'
9957 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9958 hardcode_libdir_separator
=:
9961 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9962 if test "$GCC" = yes; then
9963 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9964 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9965 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9967 allow_undefined_flag
=' -expect_unresolved \*'
9968 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9969 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9970 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9972 # Both c and cxx compiler support -rpath directly
9973 hardcode_libdir_flag_spec
='-rpath $libdir'
9975 archive_cmds_need_lc
='no'
9976 hardcode_libdir_separator
=:
9980 no_undefined_flag
=' -z defs'
9981 if test "$GCC" = yes; then
9983 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9985 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9987 case `$CC -V 2>&1` in
9990 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9992 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9996 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9998 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10002 hardcode_libdir_flag_spec
='-R$libdir'
10003 hardcode_shlibpath_var
=no
10005 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10007 # The compiler driver will combine and reorder linker options,
10008 # but understands `-z linker_flag'. GCC discards it without `$wl',
10009 # but is careful enough not to reorder.
10010 # Supported since Solaris 2.6 (maybe 2.5.1?)
10011 if test "$GCC" = yes; then
10012 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10014 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10018 link_all_deplibs
=yes
10022 if test "x$host_vendor" = xsequent
; then
10023 # Use $CC to link under sequent, because it throws in some extra .o
10024 # files that make .init and .fini sections work.
10025 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10029 hardcode_libdir_flag_spec
='-L$libdir'
10030 hardcode_direct
=yes
10031 hardcode_minus_L
=yes
10032 hardcode_shlibpath_var
=no
10036 case $host_vendor in
10038 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_direct
=yes # is this really true???
10042 ## LD is ld it makes a PLAMLIB
10043 ## CC just makes a GrossModule.
10044 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10045 reload_cmds
='$CC -r -o $output$reload_objs'
10049 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10053 runpath_var
='LD_RUN_PATH'
10054 hardcode_shlibpath_var
=no
10058 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_shlibpath_var
=no
10060 export_dynamic_flag_spec
='-Bexport'
10064 if test -d /usr
/nec
; then
10065 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_shlibpath_var
=no
10067 runpath_var
=LD_RUN_PATH
10068 hardcode_runpath_var
=yes
10073 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10074 no_undefined_flag
='${wl}-z,text'
10075 archive_cmds_need_lc
=no
10076 hardcode_shlibpath_var
=no
10077 runpath_var
='LD_RUN_PATH'
10079 if test "$GCC" = yes; then
10080 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 sysv5
* | sco3.2v5
* | sco5v6
*)
10089 # Note: We can NOT use -z defs as we might desire, because we do not
10090 # link with -lc, and that would cause any symbols used from libc to
10091 # always be unresolved, which means just about no library would
10092 # ever link correctly. If we're not using GNU ld we use -z text
10093 # though, which does catch some bad symbols but isn't as heavy-handed
10095 no_undefined_flag
='${wl}-z,text'
10096 allow_undefined_flag
='${wl}-z,nodefs'
10097 archive_cmds_need_lc
=no
10098 hardcode_shlibpath_var
=no
10099 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10100 hardcode_libdir_separator
=':'
10101 link_all_deplibs
=yes
10102 export_dynamic_flag_spec
='${wl}-Bexport'
10103 runpath_var
='LD_RUN_PATH'
10105 if test "$GCC" = yes; then
10106 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116 hardcode_libdir_flag_spec
='-L$libdir'
10117 hardcode_shlibpath_var
=no
10125 if test x
$host_vendor = xsni
; then
10127 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10128 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10135 $as_echo "$ld_shlibs" >&6; }
10136 test "$ld_shlibs" = no
&& can_build_shared
=no
10138 with_gnu_ld
=$with_gnu_ld
10155 # Do we need to explicitly link libc?
10157 case "x$archive_cmds_need_lc" in
10159 # Assume -lc should be added
10160 archive_cmds_need_lc
=yes
10162 if test "$enable_shared" = yes && test "$GCC" = yes; then
10163 case $archive_cmds in
10165 # FIXME: we may have to deal with multi-command sequences.
10168 # Test whether the compiler implicitly links with -lc since on some
10169 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10170 # to ld, don't add -lc before -lgcc.
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10172 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10173 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10174 $as_echo_n "(cached) " >&6
10177 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10180 (eval $ac_compile) 2>&5
10182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10183 test $ac_status = 0; } 2>conftest.err
; then
10186 libobjs
=conftest.
$ac_objext
10188 wl
=$lt_prog_compiler_wl
10189 pic_flag
=$lt_prog_compiler_pic
10195 lt_save_allow_undefined_flag
=$allow_undefined_flag
10196 allow_undefined_flag
=
10197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10198 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10201 test $ac_status = 0; }
10203 lt_cv_archive_cmds_need_lc
=no
10205 lt_cv_archive_cmds_need_lc
=yes
10207 allow_undefined_flag
=$lt_save_allow_undefined_flag
10209 cat conftest.err
1>&5
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10215 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10216 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10380 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10382 if test "$GCC" = yes; then
10384 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10385 *) lt_awk_arg
="/^libraries:/" ;;
10388 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10389 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10391 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10392 case $lt_search_path_spec in
10394 # if the path contains ";" then we assume it to be the separator
10395 # otherwise default to the standard path separator (i.e. ":") - it is
10396 # assumed that no part of a normal pathname contains ";" but that should
10397 # okay in the real world where ";" in dirpaths is itself problematic.
10398 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10401 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10404 # Ok, now we have the path, separated by spaces, we can step through it
10405 # and add multilib dir if necessary.
10406 lt_tmp_lt_search_path_spec
=
10407 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10408 for lt_sys_path
in $lt_search_path_spec; do
10409 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10410 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10412 test -d "$lt_sys_path" && \
10413 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10416 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10417 BEGIN {RS=" "; FS="/|\n";} {
10420 for (lt_i = NF; lt_i > 0; lt_i--) {
10421 if ($lt_i != "" && $lt_i != ".") {
10422 if ($lt_i == "..") {
10425 if (lt_count == 0) {
10426 lt_foo="/" $lt_i lt_foo;
10433 if (lt_foo != "") { lt_freq[lt_foo]++; }
10434 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10436 # AWK program above erroneously prepends '/' to C:/dos/paths
10439 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10440 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10442 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10444 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10446 library_names_spec
=
10447 libname_spec
='lib$name'
10451 postuninstall_cmds
=
10455 shlibpath_overrides_runpath
=unknown
10457 dynamic_linker
="$host_os ld.so"
10458 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10459 need_lib_prefix
=unknown
10460 hardcode_into_libs
=no
10462 # when you set need_version to no, make sure it does not cause -set_version
10463 # flags to be left without arguments
10464 need_version
=unknown
10469 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10470 shlibpath_var
=LIBPATH
10472 # AIX 3 has no versioning support, so we append a major version to the name.
10473 soname_spec
='${libname}${release}${shared_ext}$major'
10480 hardcode_into_libs
=yes
10481 if test "$host_cpu" = ia64
; then
10482 # AIX 5 supports IA64
10483 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10484 shlibpath_var
=LD_LIBRARY_PATH
10486 # With GCC up to 2.95.x, collect2 would create an import file
10487 # for dependence libraries. The import file would start with
10488 # the line `#! .'. This would cause the generated library to
10489 # depend on `.', always an invalid library. This was fixed in
10490 # development snapshots of GCC prior to 3.0.
10492 aix4 | aix4.
[01] | aix4.
[01].
*)
10493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10495 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10498 can_build_shared
=no
10502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10503 # soname into executable. Probably we can add versioning support to
10504 # collect2, so additional links can be useful in future.
10505 if test "$aix_use_runtimelinking" = yes; then
10506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10507 # instead of lib<name>.a to let people know that these are not
10508 # typical AIX shared libraries.
10509 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511 # We preserve .a as extension for shared libraries through AIX4.2
10512 # and later when we are not doing run time linking.
10513 library_names_spec
='${libname}${release}.a $libname.a'
10514 soname_spec
='${libname}${release}${shared_ext}$major'
10516 shlibpath_var
=LIBPATH
10523 # Since July 2007 AmigaOS4 officially supports .so libraries.
10524 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 library_names_spec
='$libname.ixlibrary $libname.a'
10529 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10530 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10536 library_names_spec
='${libname}${shared_ext}'
10537 dynamic_linker
="$host_os ld.so"
10538 shlibpath_var
=LIBRARY_PATH
10544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 soname_spec
='${libname}${release}${shared_ext}$major'
10546 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10547 shlibpath_var
=LD_LIBRARY_PATH
10548 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10549 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10550 # the default ld.so.conf also contains /usr/contrib/lib and
10551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10552 # libtool to hard-code these into programs
10555 cygwin
* | mingw
* | pw32
* | cegcc
*)
10556 version_type
=windows
10561 case $GCC,$host_os in
10562 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10563 library_names_spec
='$libname.dll.a'
10564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10565 postinstall_cmds
='base_file=`basename \${file}`~
10566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10567 dldir=$destdir/`dirname \$dlpath`~
10568 test -d \$dldir || mkdir -p \$dldir~
10569 $install_prog $dir/$dlname \$dldir/$dlname~
10570 chmod a+x \$dldir/$dlname~
10571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10574 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10575 dlpath=$dir/\$dldll~
10577 shlibpath_overrides_runpath
=yes
10581 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10582 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10584 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10587 # MinGW DLLs use traditional 'lib' prefix
10588 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10591 # pw32 DLLs use 'pw' prefix rather than 'lib'
10592 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10598 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10601 dynamic_linker
='Win32 ld.exe'
10602 # FIXME: first we should search . and the directory the executable is in
10606 darwin
* | rhapsody
*)
10607 dynamic_linker
="$host_os dyld"
10608 version_type
=darwin
10611 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10612 soname_spec
='${libname}${release}${major}$shared_ext'
10613 shlibpath_overrides_runpath
=yes
10614 shlibpath_var
=DYLD_LIBRARY_PATH
10615 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10617 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10618 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10626 soname_spec
='${libname}${release}${shared_ext}$major'
10627 shlibpath_var
=LD_LIBRARY_PATH
10630 freebsd
* | dragonfly
*)
10631 # DragonFly does not have aout. When/if they implement a new
10632 # versioning mechanism, adjust this.
10633 if test -x /usr
/bin
/objformat
; then
10634 objformat
=`/usr/bin/objformat`
10637 freebsd
[23].
*) objformat
=aout
;;
10638 *) objformat
=elf
;;
10641 version_type
=freebsd-
$objformat
10642 case $version_type in
10644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10649 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10653 shlibpath_var
=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath
=yes
10658 freebsd3.
[01]* | freebsdelf3.
[01]*)
10659 shlibpath_overrides_runpath
=yes
10660 hardcode_into_libs
=yes
10662 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10663 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10664 shlibpath_overrides_runpath
=no
10665 hardcode_into_libs
=yes
10667 *) # from 4.6 on, and DragonFly
10668 shlibpath_overrides_runpath
=yes
10669 hardcode_into_libs
=yes
10678 dynamic_linker
="$host_os runtime_loader"
10679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10680 soname_spec
='${libname}${release}${shared_ext}$major'
10681 shlibpath_var
=LIBRARY_PATH
10682 shlibpath_overrides_runpath
=yes
10683 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10684 hardcode_into_libs
=yes
10687 hpux9
* | hpux10
* | hpux11
*)
10688 # Give a soname corresponding to the major version so that dld.sl refuses to
10689 # link against other versions.
10696 hardcode_into_libs
=yes
10697 dynamic_linker
="$host_os dld.so"
10698 shlibpath_var
=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec
='${libname}${release}${shared_ext}$major'
10702 if test "X$HPUX_IA64_MODE" = X32
; then
10703 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10705 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10707 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10711 hardcode_into_libs
=yes
10712 dynamic_linker
="$host_os dld.sl"
10713 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10714 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec
='${libname}${release}${shared_ext}$major'
10717 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10718 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10722 dynamic_linker
="$host_os dld.sl"
10723 shlibpath_var
=SHLIB_PATH
10724 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10725 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726 soname_spec
='${libname}${release}${shared_ext}$major'
10729 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10730 postinstall_cmds
='chmod 555 $lib'
10731 # or fails outright, so override atomically:
10732 install_override_mode
=555
10739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10740 soname_spec
='${libname}${release}${shared_ext}$major'
10741 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10742 shlibpath_var
=LD_LIBRARY_PATH
10743 shlibpath_overrides_runpath
=no
10744 hardcode_into_libs
=yes
10747 irix5
* | irix6
* | nonstopux
*)
10749 nonstopux
*) version_type
=nonstopux
;;
10751 if test "$lt_cv_prog_gnu_ld" = yes; then
10759 soname_spec
='${libname}${release}${shared_ext}$major'
10760 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10762 irix5
* | nonstopux
*)
10763 libsuff
= shlibsuff
=
10766 case $LD in # libtool.m4 will add one of these switches to LD
10767 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10768 libsuff
= shlibsuff
= libmagic
=32-bit;;
10769 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10770 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10771 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10772 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10773 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10777 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10778 shlibpath_overrides_runpath
=no
10779 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10780 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10781 hardcode_into_libs
=yes
10784 # No shared lib support for Linux oldld, aout, or coff.
10785 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10789 # This must be Linux ELF.
10791 # uclinux* changes (here and below) have been submitted to the libtool
10792 # project, but have not yet been accepted: they are GCC-local changes
10793 # for the time being. (See
10794 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10795 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
10799 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 soname_spec
='${libname}${release}${shared_ext}$major'
10801 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10802 shlibpath_var
=LD_LIBRARY_PATH
10803 shlibpath_overrides_runpath
=no
10805 # Some binutils ld are patched to set DT_RUNPATH
10806 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10807 $as_echo_n "(cached) " >&6
10809 lt_cv_shlibpath_overrides_runpath
=no
10810 save_LDFLAGS
=$LDFLAGS
10811 save_libdir
=$libdir
10812 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10813 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10825 if ac_fn_c_try_link
"$LINENO"; then :
10826 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10827 lt_cv_shlibpath_overrides_runpath
=yes
10830 rm -f core conftest.err conftest.
$ac_objext \
10831 conftest
$ac_exeext conftest.
$ac_ext
10832 LDFLAGS
=$save_LDFLAGS
10833 libdir
=$save_libdir
10837 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10839 # This implies no fast_install, which is unacceptable.
10840 # Some rework will be needed to allow for fast_install
10841 # before this can be enabled.
10842 hardcode_into_libs
=yes
10844 # Append ld.so.conf contents to the search path
10845 if test -f /etc
/ld.so.conf
; then
10846 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10847 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10850 # We used to test for /lib/ld.so.1 and disable shared libraries on
10851 # powerpc, because MkLinux only supported shared libraries with the
10852 # GNU dynamic linker. Since this was broken with cross compilers,
10853 # most powerpc-linux boxes support dynamic linking these days and
10854 # people can always --disable-shared, the test was removed, and we
10855 # assume the GNU/Linux dynamic linker is in use.
10856 dynamic_linker
='GNU/Linux ld.so'
10863 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10864 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10865 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10866 dynamic_linker
='NetBSD (a.out) ld.so'
10868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10869 soname_spec
='${libname}${release}${shared_ext}$major'
10870 dynamic_linker
='NetBSD ld.elf_so'
10872 shlibpath_var
=LD_LIBRARY_PATH
10873 shlibpath_overrides_runpath
=yes
10874 hardcode_into_libs
=yes
10879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 shlibpath_var
=LD_LIBRARY_PATH
10881 shlibpath_overrides_runpath
=yes
10888 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec
='${libname}${release}${shared_ext}$major'
10890 shlibpath_var
=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath
=no
10892 hardcode_into_libs
=yes
10893 dynamic_linker
='ldqnx.so'
10898 sys_lib_dlsearch_path_spec
="/usr/lib"
10900 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10902 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10903 *) need_version
=no
;;
10905 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10906 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10907 shlibpath_var
=LD_LIBRARY_PATH
10908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10910 openbsd2.
[89] | openbsd2.
[89].
*)
10911 shlibpath_overrides_runpath
=no
10914 shlibpath_overrides_runpath
=yes
10918 shlibpath_overrides_runpath
=yes
10923 libname_spec
='$name'
10926 library_names_spec
='$libname${shared_ext} $libname.a'
10927 dynamic_linker
='OS/2 ld.exe'
10928 shlibpath_var
=LIBPATH
10931 osf3
* | osf4
* | osf5
*)
10935 soname_spec
='${libname}${release}${shared_ext}$major'
10936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 shlibpath_var
=LD_LIBRARY_PATH
10938 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10939 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 soname_spec
='${libname}${release}${shared_ext}$major'
10952 shlibpath_var
=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath
=yes
10954 hardcode_into_libs
=yes
10955 # ldd complains unless libraries are executable
10956 postinstall_cmds
='chmod +x $lib'
10961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10962 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10963 shlibpath_var
=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath
=yes
10965 if test "$with_gnu_ld" = yes; then
10973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 soname_spec
='${libname}${release}${shared_ext}$major'
10975 shlibpath_var
=LD_LIBRARY_PATH
10976 case $host_vendor in
10978 shlibpath_overrides_runpath
=no
10980 runpath_var
=LD_RUN_PATH
10988 shlibpath_overrides_runpath
=no
10989 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10995 if test -d /usr
/nec
;then
10997 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10998 soname_spec
='$libname${shared_ext}.$major'
10999 shlibpath_var
=LD_LIBRARY_PATH
11003 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11004 version_type
=freebsd-elf
11007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11008 soname_spec
='${libname}${release}${shared_ext}$major'
11009 shlibpath_var
=LD_LIBRARY_PATH
11010 shlibpath_overrides_runpath
=yes
11011 hardcode_into_libs
=yes
11012 if test "$with_gnu_ld" = yes; then
11013 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11015 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11018 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11022 sys_lib_dlsearch_path_spec
='/usr/lib'
11026 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 shlibpath_var
=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath
=no
11033 hardcode_into_libs
=yes
11038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039 soname_spec
='${libname}${release}${shared_ext}$major'
11040 shlibpath_var
=LD_LIBRARY_PATH
11043 # Shared libraries for VwWorks, >= 7 only at this stage
11044 # and (fpic) still incompatible with "large" code models
11045 # in a few configurations. Only for RTP mode in any case,
11046 # and upon explicit request at configure time.
11049 case ${with_multisubdir}-${enable_shared} in
11056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec
='${libname}${release}${shared_ext}$major'
11058 dynamic_linker
="$host_os module_loader"
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11067 $as_echo "$dynamic_linker" >&6; }
11068 test "$dynamic_linker" = no
&& can_build_shared
=no
11070 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11071 if test "$GCC" = yes; then
11072 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11075 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11076 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11078 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11079 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11174 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11176 if test -n "$hardcode_libdir_flag_spec" ||
11177 test -n "$runpath_var" ||
11178 test "X$hardcode_automatic" = "Xyes" ; then
11180 # We can hardcode non-existent directories.
11181 if test "$hardcode_direct" != no
&&
11182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11183 # have to relink, otherwise we might link with an installed library
11184 # when we should be linking with a yet-to-be-installed one
11185 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11186 test "$hardcode_minus_L" != no
; then
11187 # Linking always hardcodes the temporary library directory.
11188 hardcode_action
=relink
11190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11191 hardcode_action
=immediate
11194 # We cannot hardcode anything, or else we can only hardcode existing
11196 hardcode_action
=unsupported
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11199 $as_echo "$hardcode_action" >&6; }
11201 if test "$hardcode_action" = relink ||
11202 test "$inherit_rpath" = yes; then
11203 # Fast installation is not supported
11204 enable_fast_install
=no
11205 elif test "$shlibpath_overrides_runpath" = yes ||
11206 test "$enable_shared" = no
; then
11207 # Fast installation is not necessary
11208 enable_fast_install
=needless
11216 if test "x$enable_dlopen" != xyes
; then
11217 enable_dlopen
=unknown
11218 enable_dlopen_self
=unknown
11219 enable_dlopen_self_static
=unknown
11226 lt_cv_dlopen
="load_add_on"
11228 lt_cv_dlopen_self
=yes
11231 mingw
* | pw32
* | cegcc
*)
11232 lt_cv_dlopen
="LoadLibrary"
11237 lt_cv_dlopen
="dlopen"
11242 # if libdl is installed we need to link against it
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11244 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11245 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11246 $as_echo_n "(cached) " >&6
11248 ac_check_lib_save_LIBS
=$LIBS
11250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11253 /* Override any GCC internal prototype to avoid an error.
11254 Use char because int might match the return type of a GCC
11255 builtin and then its argument prototype would still apply. */
11268 if ac_fn_c_try_link
"$LINENO"; then :
11269 ac_cv_lib_dl_dlopen
=yes
11271 ac_cv_lib_dl_dlopen
=no
11273 rm -f core conftest.err conftest.
$ac_objext \
11274 conftest
$ac_exeext conftest.
$ac_ext
11275 LIBS
=$ac_check_lib_save_LIBS
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11278 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11279 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11280 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11283 lt_cv_dlopen
="dyld"
11285 lt_cv_dlopen_self
=yes
11292 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11293 if test "x$ac_cv_func_shl_load" = xyes
; then :
11294 lt_cv_dlopen
="shl_load"
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11297 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11298 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11299 $as_echo_n "(cached) " >&6
11301 ac_check_lib_save_LIBS
=$LIBS
11303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11316 return shl_load ();
11321 if ac_fn_c_try_link
"$LINENO"; then :
11322 ac_cv_lib_dld_shl_load
=yes
11324 ac_cv_lib_dld_shl_load
=no
11326 rm -f core conftest.err conftest.
$ac_objext \
11327 conftest
$ac_exeext conftest.
$ac_ext
11328 LIBS
=$ac_check_lib_save_LIBS
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11331 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11332 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11333 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11335 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11336 if test "x$ac_cv_func_dlopen" = xyes
; then :
11337 lt_cv_dlopen
="dlopen"
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11340 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11341 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11342 $as_echo_n "(cached) " >&6
11344 ac_check_lib_save_LIBS
=$LIBS
11346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11349 /* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11364 if ac_fn_c_try_link
"$LINENO"; then :
11365 ac_cv_lib_dl_dlopen
=yes
11367 ac_cv_lib_dl_dlopen
=no
11369 rm -f core conftest.err conftest.
$ac_objext \
11370 conftest
$ac_exeext conftest.
$ac_ext
11371 LIBS
=$ac_check_lib_save_LIBS
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11375 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11376 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11379 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11380 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11381 $as_echo_n "(cached) " >&6
11383 ac_check_lib_save_LIBS
=$LIBS
11384 LIBS
="-lsvld $LIBS"
11385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11403 if ac_fn_c_try_link
"$LINENO"; then :
11404 ac_cv_lib_svld_dlopen
=yes
11406 ac_cv_lib_svld_dlopen
=no
11408 rm -f core conftest.err conftest.
$ac_objext \
11409 conftest
$ac_exeext conftest.
$ac_ext
11410 LIBS
=$ac_check_lib_save_LIBS
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11413 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11414 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11415 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11418 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11419 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11420 $as_echo_n "(cached) " >&6
11422 ac_check_lib_save_LIBS
=$LIBS
11424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11427 /* Override any GCC internal prototype to avoid an error.
11428 Use char because int might match the return type of a GCC
11429 builtin and then its argument prototype would still apply. */
11437 return dld_link ();
11442 if ac_fn_c_try_link
"$LINENO"; then :
11443 ac_cv_lib_dld_dld_link
=yes
11445 ac_cv_lib_dld_dld_link
=no
11447 rm -f core conftest.err conftest.
$ac_objext \
11448 conftest
$ac_exeext conftest.
$ac_ext
11449 LIBS
=$ac_check_lib_save_LIBS
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11452 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11453 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11454 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11475 if test "x$lt_cv_dlopen" != xno
; then
11481 case $lt_cv_dlopen in
11483 save_CPPFLAGS
="$CPPFLAGS"
11484 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11486 save_LDFLAGS
="$LDFLAGS"
11487 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11490 LIBS
="$lt_cv_dlopen_libs $LIBS"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11493 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11494 if ${lt_cv_dlopen_self+:} false
; then :
11495 $as_echo_n "(cached) " >&6
11497 if test "$cross_compiling" = yes; then :
11498 lt_cv_dlopen_self
=cross
11500 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11501 lt_status
=$lt_dlunknown
11502 cat > conftest.
$ac_ext <<_LT_EOF
11503 #line 11503 "configure"
11504 #include "confdefs.h"
11513 # define LT_DLGLOBAL RTLD_GLOBAL
11516 # define LT_DLGLOBAL DL_GLOBAL
11518 # define LT_DLGLOBAL 0
11522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11523 find out it does not work in some platform. */
11524 #ifndef LT_DLLAZY_OR_NOW
11526 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11529 # define LT_DLLAZY_OR_NOW DL_LAZY
11532 # define LT_DLLAZY_OR_NOW RTLD_NOW
11535 # define LT_DLLAZY_OR_NOW DL_NOW
11537 # define LT_DLLAZY_OR_NOW 0
11544 /* When -fvisbility=hidden is used, assume the code has been annotated
11545 correspondingly for the symbols needed. */
11546 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11547 void fnord () __attribute__((visibility("default")));
11550 void fnord () { int i=42; }
11553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11554 int status = $lt_dlunknown;
11558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11561 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11562 else puts (dlerror ());
11564 /* dlclose (self); */
11572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11573 (eval $ac_link) 2>&5
11575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11576 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11577 (.
/conftest
; exit; ) >&5 2>/dev
/null
11579 case x
$lt_status in
11580 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11581 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11582 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11585 # compilation failed
11586 lt_cv_dlopen_self
=no
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11594 $as_echo "$lt_cv_dlopen_self" >&6; }
11596 if test "x$lt_cv_dlopen_self" = xyes
; then
11597 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11599 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11600 if ${lt_cv_dlopen_self_static+:} false
; then :
11601 $as_echo_n "(cached) " >&6
11603 if test "$cross_compiling" = yes; then :
11604 lt_cv_dlopen_self_static
=cross
11606 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11607 lt_status
=$lt_dlunknown
11608 cat > conftest.
$ac_ext <<_LT_EOF
11609 #line 11609 "configure"
11610 #include "confdefs.h"
11619 # define LT_DLGLOBAL RTLD_GLOBAL
11622 # define LT_DLGLOBAL DL_GLOBAL
11624 # define LT_DLGLOBAL 0
11628 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11629 find out it does not work in some platform. */
11630 #ifndef LT_DLLAZY_OR_NOW
11632 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11635 # define LT_DLLAZY_OR_NOW DL_LAZY
11638 # define LT_DLLAZY_OR_NOW RTLD_NOW
11641 # define LT_DLLAZY_OR_NOW DL_NOW
11643 # define LT_DLLAZY_OR_NOW 0
11650 /* When -fvisbility=hidden is used, assume the code has been annotated
11651 correspondingly for the symbols needed. */
11652 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11653 void fnord () __attribute__((visibility("default")));
11656 void fnord () { int i=42; }
11659 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11660 int status = $lt_dlunknown;
11664 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11667 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11668 else puts (dlerror ());
11670 /* dlclose (self); */
11678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11679 (eval $ac_link) 2>&5
11681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11682 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11683 (.
/conftest
; exit; ) >&5 2>/dev
/null
11685 case x
$lt_status in
11686 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11687 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11688 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11691 # compilation failed
11692 lt_cv_dlopen_self_static
=no
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11700 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11703 CPPFLAGS
="$save_CPPFLAGS"
11704 LDFLAGS
="$save_LDFLAGS"
11709 case $lt_cv_dlopen_self in
11710 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11711 *) enable_dlopen_self
=unknown
;;
11714 case $lt_cv_dlopen_self_static in
11715 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11716 *) enable_dlopen_self_static
=unknown
;;
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11739 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11740 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11741 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11742 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11744 $as_echo "yes" >&6; }
11746 # FIXME - insert some real tests, host_os isn't really good enough
11749 if test -n "$STRIP" ; then
11750 striplib
="$STRIP -x"
11751 old_striplib
="$STRIP -S"
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753 $as_echo "yes" >&6; }
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761 $as_echo "no" >&6; }
11777 # Report which library types will actually be built
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11779 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11781 $as_echo "$can_build_shared" >&6; }
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11784 $as_echo_n "checking whether to build shared libraries... " >&6; }
11785 test "$can_build_shared" = "no" && enable_shared
=no
11787 # On AIX, shared libraries and static libraries use the same namespace, and
11788 # are all built from PIC.
11791 test "$enable_shared" = yes && enable_static
=no
11792 if test -n "$RANLIB"; then
11793 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11794 postinstall_cmds
='$RANLIB $lib'
11799 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11800 test "$enable_shared" = yes && enable_static
=no
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11805 $as_echo "$enable_shared" >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11808 $as_echo_n "checking whether to build static libraries... " >&6; }
11809 # Make sure either enable_shared or enable_static is yes.
11810 test "$enable_shared" = yes || enable_static
=yes
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11812 $as_echo "$enable_static" >&6; }
11819 ac_cpp
='$CPP $CPPFLAGS'
11820 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11821 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11822 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11826 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11827 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11828 (test "X$CXX" != "Xg++"))) ; then
11830 ac_cpp
='$CXXCPP $CPPFLAGS'
11831 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11835 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11836 if test -z "$CXXCPP"; then
11837 if ${ac_cv_prog_CXXCPP+:} false
; then :
11838 $as_echo_n "(cached) " >&6
11840 # Double quotes because CXXCPP needs to be expanded
11841 for CXXCPP
in "$CXX -E" "/lib/cpp"
11843 ac_preproc_ok
=false
11844 for ac_cxx_preproc_warn_flag
in '' yes
11846 # Use a header file that comes with gcc, so configuring glibc
11847 # with a fresh cross-compiler works.
11848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11849 # <limits.h> exists even on freestanding compilers.
11850 # On the NeXT, cc -E runs the code through the compiler's parser,
11851 # not just through cpp. "Syntax error" is here to catch this case.
11852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11855 # include <limits.h>
11857 # include <assert.h>
11861 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11864 # Broken: fails on valid input.
11867 rm -f conftest.err conftest.i conftest.
$ac_ext
11869 # OK, works on sane cases. Now check whether nonexistent headers
11870 # can be detected and how.
11871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873 #include <ac_nonexistent.h>
11875 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11876 # Broken: success on invalid input.
11879 # Passes both tests.
11883 rm -f conftest.err conftest.i conftest.
$ac_ext
11886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11887 rm -f conftest.i conftest.err conftest.
$ac_ext
11888 if $ac_preproc_ok; then :
11893 ac_cv_prog_CXXCPP
=$CXXCPP
11896 CXXCPP
=$ac_cv_prog_CXXCPP
11898 ac_cv_prog_CXXCPP
=$CXXCPP
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11901 $as_echo "$CXXCPP" >&6; }
11902 ac_preproc_ok
=false
11903 for ac_cxx_preproc_warn_flag
in '' yes
11905 # Use a header file that comes with gcc, so configuring glibc
11906 # with a fresh cross-compiler works.
11907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11908 # <limits.h> exists even on freestanding compilers.
11909 # On the NeXT, cc -E runs the code through the compiler's parser,
11910 # not just through cpp. "Syntax error" is here to catch this case.
11911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h. */
11914 # include <limits.h>
11916 # include <assert.h>
11920 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11923 # Broken: fails on valid input.
11926 rm -f conftest.err conftest.i conftest.
$ac_ext
11928 # OK, works on sane cases. Now check whether nonexistent headers
11929 # can be detected and how.
11930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include <ac_nonexistent.h>
11934 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11935 # Broken: success on invalid input.
11938 # Passes both tests.
11942 rm -f conftest.err conftest.i conftest.
$ac_ext
11945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11946 rm -f conftest.i conftest.err conftest.
$ac_ext
11947 if $ac_preproc_ok; then :
11950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11952 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
11953 See \`config.log' for more details" "$LINENO" 5; }
11957 ac_cpp
='$CPP $CPPFLAGS'
11958 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11959 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11960 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11963 _lt_caught_CXX_error
=yes
11967 ac_cpp
='$CXXCPP $CPPFLAGS'
11968 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11969 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11970 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11972 archive_cmds_need_lc_CXX
=no
11973 allow_undefined_flag_CXX
=
11974 always_export_symbols_CXX
=no
11975 archive_expsym_cmds_CXX
=
11976 compiler_needs_object_CXX
=no
11977 export_dynamic_flag_spec_CXX
=
11978 hardcode_direct_CXX
=no
11979 hardcode_direct_absolute_CXX
=no
11980 hardcode_libdir_flag_spec_CXX
=
11981 hardcode_libdir_flag_spec_ld_CXX
=
11982 hardcode_libdir_separator_CXX
=
11983 hardcode_minus_L_CXX
=no
11984 hardcode_shlibpath_var_CXX
=unsupported
11985 hardcode_automatic_CXX
=no
11986 inherit_rpath_CXX
=no
11988 module_expsym_cmds_CXX
=
11989 link_all_deplibs_CXX
=unknown
11990 old_archive_cmds_CXX
=$old_archive_cmds
11991 reload_flag_CXX
=$reload_flag
11992 reload_cmds_CXX
=$reload_cmds
11993 no_undefined_flag_CXX
=
11994 whole_archive_flag_spec_CXX
=
11995 enable_shared_with_static_runtimes_CXX
=no
11997 # Source file extension for C++ test sources.
12000 # Object file extension for compiled C++ test sources.
12004 # No sense in running all these tests if we already determined that
12005 # the CXX compiler isn't working. Some variables (like enable_shared)
12006 # are currently assumed to apply to all compilers on this platform,
12007 # and will be corrupted by setting them based on a non-working compiler.
12008 if test "$_lt_caught_CXX_error" != yes; then
12009 # Code to be used in simple compile tests
12010 lt_simple_compile_test_code
="int some_variable = 0;"
12012 # Code to be used in simple link tests
12013 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
12015 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12022 # If no C compiler was specified, use CC.
12025 # If no C compiler flags were specified, use CFLAGS.
12026 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12028 # Allow CC to be a program name with arguments.
12032 # save warnings/boilerplate of simple test code
12033 ac_outfile
=conftest.
$ac_objext
12034 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12035 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12036 _lt_compiler_boilerplate
=`cat conftest.err`
12039 ac_outfile
=conftest.
$ac_objext
12040 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12041 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12042 _lt_linker_boilerplate
=`cat conftest.err`
12046 # Allow CC to be a program name with arguments.
12051 lt_save_with_gnu_ld
=$with_gnu_ld
12052 lt_save_path_LD
=$lt_cv_path_LD
12053 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12054 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12056 $as_unset lt_cv_prog_gnu_ld
12058 if test -n "${lt_cv_path_LDCXX+set}"; then
12059 lt_cv_path_LD
=$lt_cv_path_LDCXX
12061 $as_unset lt_cv_path_LD
12063 test -z "${LDCXX+set}" || LD
=$LDCXX
12067 for cc_temp
in $compiler""; do
12069 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12070 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12075 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12078 if test -n "$compiler"; then
12079 # We don't want -fno-exception when compiling C++ code, so set the
12080 # no_builtin_flag separately
12081 if test "$GXX" = yes; then
12082 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12084 lt_prog_compiler_no_builtin_flag_CXX
=
12087 if test "$GXX" = yes; then
12088 # Set up default GNU C++ configuration
12092 # Check whether --with-gnu-ld was given.
12093 if test "${with_gnu_ld+set}" = set; then :
12094 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12100 if test "$GCC" = yes; then
12101 # Check if gcc -print-prog-name=ld gives a path.
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12103 $as_echo_n "checking for ld used by $CC... " >&6; }
12106 # gcc leaves a trailing carriage return which upsets mingw
12107 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12109 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12112 # Accept absolute paths.
12114 re_direlt
='/[^/][^/]*/\.\./'
12115 # Canonicalize the pathname of ld
12116 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12117 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12118 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12120 test -z "$LD" && LD
="$ac_prog"
12123 # If it fails, then pretend we aren't using GCC.
12127 # If it is relative, then search for the first ld in PATH.
12128 with_gnu_ld
=unknown
12131 elif test "$with_gnu_ld" = yes; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12133 $as_echo_n "checking for GNU ld... " >&6; }
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12136 $as_echo_n "checking for non-GNU ld... " >&6; }
12138 if ${lt_cv_path_LD+:} false
; then :
12139 $as_echo_n "(cached) " >&6
12141 if test -z "$LD"; then
12142 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12143 for ac_dir
in $PATH; do
12145 test -z "$ac_dir" && ac_dir
=.
12146 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12147 lt_cv_path_LD
="$ac_dir/$ac_prog"
12148 # Check to see if the program is GNU ld. I'd rather use --version,
12149 # but apparently some variants of GNU ld only accept -v.
12150 # Break only if it was the GNU/non-GNU ld that we prefer.
12151 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12152 *GNU
* |
*'with BFD'*)
12153 test "$with_gnu_ld" != no
&& break
12156 test "$with_gnu_ld" != yes && break
12163 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12167 LD
="$lt_cv_path_LD"
12168 if test -n "$LD"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12170 $as_echo "$LD" >&6; }
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173 $as_echo "no" >&6; }
12175 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12177 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12178 if ${lt_cv_prog_gnu_ld+:} false
; then :
12179 $as_echo_n "(cached) " >&6
12181 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12182 case `$LD -v 2>&1 </dev/null` in
12183 *GNU
* |
*'with BFD'*)
12184 lt_cv_prog_gnu_ld
=yes
12187 lt_cv_prog_gnu_ld
=no
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12192 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12193 with_gnu_ld
=$lt_cv_prog_gnu_ld
12201 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12202 # archiving commands below assume that GNU ld is being used.
12203 if test "$with_gnu_ld" = yes; then
12204 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12205 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12207 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12208 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12210 # If archive_cmds runs LD, not CC, wlarc should be empty
12211 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12212 # investigate it a little bit more. (MM)
12215 # ancient GNU ld didn't support --whole-archive et. al.
12216 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12217 $GREP 'no-whole-archive' > /dev
/null
; then
12218 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12220 whole_archive_flag_spec_CXX
=
12226 # A generic and very simple default shared library creation
12227 # command for GNU C++ for the case where it uses the native
12228 # linker, instead of GNU ld. If possible, this setting should
12229 # overridden to take advantage of the native linker features on
12230 # the platform it is being used on.
12231 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12234 # Commands to make compiler produce verbose output that lists
12235 # what "hidden" libraries, object files and flags are used when
12236 # linking a shared library.
12237 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12245 # PORTME: fill in a description of your system's C++ link characteristics
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12247 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12251 # FIXME: insert proper C++ library support
12255 if test "$host_cpu" = ia64
; then
12256 # On IA64, the linker does run time linking by default, so we don't
12257 # have to do anything special.
12258 aix_use_runtimelinking
=no
12259 exp_sym_flag
='-Bexport'
12262 aix_use_runtimelinking
=no
12264 # Test if we are trying to use run time linking or normal
12265 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12266 # need to do runtime linking.
12267 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12268 for ld_flag
in $LDFLAGS; do
12271 aix_use_runtimelinking
=yes
12279 exp_sym_flag
='-bexport'
12280 no_entry_flag
='-bnoentry'
12283 # When large executables or shared objects are built, AIX ld can
12284 # have problems creating the table of contents. If linking a library
12285 # or program results in "error TOC overflow" add -mminimal-toc to
12286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12289 archive_cmds_CXX
=''
12290 hardcode_direct_CXX
=yes
12291 hardcode_direct_absolute_CXX
=yes
12292 hardcode_libdir_separator_CXX
=':'
12293 link_all_deplibs_CXX
=yes
12294 file_list_spec_CXX
='${wl}-f,'
12296 if test "$GXX" = yes; then
12297 case $host_os in aix4.
[012]|aix4.
[012].
*)
12298 # We only want to do this on AIX 4.2 and lower, the check
12299 # below for broken collect2 doesn't work under 4.3+
12300 collect2name
=`${CC} -print-prog-name=collect2`
12301 if test -f "$collect2name" &&
12302 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12304 # We have reworked collect2
12307 # We have old collect2
12308 hardcode_direct_CXX
=unsupported
12309 # It fails to find uninstalled libraries when the uninstalled
12310 # path is not listed in the libpath. Setting hardcode_minus_L
12311 # to unsupported forces relinking
12312 hardcode_minus_L_CXX
=yes
12313 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12314 hardcode_libdir_separator_CXX
=
12317 shared_flag
='-shared'
12318 if test "$aix_use_runtimelinking" = yes; then
12319 shared_flag
="$shared_flag "'${wl}-G'
12323 if test "$host_cpu" = ia64
; then
12324 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12325 # chokes on -Wl,-G. The following line is correct:
12328 if test "$aix_use_runtimelinking" = yes; then
12329 shared_flag
='${wl}-G'
12331 shared_flag
='${wl}-bM:SRE'
12336 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12337 # It seems that -bexpall does not export symbols beginning with
12338 # underscore (_), so it is better to generate a list of symbols to
12340 always_export_symbols_CXX
=yes
12341 if test "$aix_use_runtimelinking" = yes; then
12342 # Warning - without using the other runtime loading flags (-brtl),
12343 # -berok will link without error, but may produce a broken library.
12344 allow_undefined_flag_CXX
='-berok'
12345 # Determine the default libpath from the value encoded in an empty
12347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12358 if ac_fn_cxx_try_link
"$LINENO"; then :
12360 lt_aix_libpath_sed
='
12361 /Import File Strings/,/^$/ {
12367 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12368 # Check for a 64-bit object if we didn't find anything.
12369 if test -z "$aix_libpath"; then
12370 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12373 rm -f core conftest.err conftest.
$ac_objext \
12374 conftest
$ac_exeext conftest.
$ac_ext
12375 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12377 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12379 archive_expsym_cmds_CXX
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12381 if test "$host_cpu" = ia64
; then
12382 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12383 allow_undefined_flag_CXX
="-z nodefs"
12384 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12386 # Determine the default libpath from the value encoded in an
12387 # empty executable.
12388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12399 if ac_fn_cxx_try_link
"$LINENO"; then :
12401 lt_aix_libpath_sed
='
12402 /Import File Strings/,/^$/ {
12408 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12409 # Check for a 64-bit object if we didn't find anything.
12410 if test -z "$aix_libpath"; then
12411 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12414 rm -f core conftest.err conftest.
$ac_objext \
12415 conftest
$ac_exeext conftest.
$ac_ext
12416 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12418 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12419 # Warning - without using the other run time loading flags,
12420 # -berok will link without error, but may produce a broken library.
12421 no_undefined_flag_CXX
=' ${wl}-bernotok'
12422 allow_undefined_flag_CXX
=' ${wl}-berok'
12423 if test "$with_gnu_ld" = yes; then
12424 # We only use this code for GNU lds that support --whole-archive.
12425 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12427 # Exported symbols can be pulled into shared objects from archives
12428 whole_archive_flag_spec_CXX
='$convenience'
12430 archive_cmds_need_lc_CXX
=yes
12431 # This is similar to how AIX traditionally builds its shared
12433 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12439 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12440 allow_undefined_flag_CXX
=unsupported
12441 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12442 # support --undefined. This deserves some investigation. FIXME
12443 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12450 case $cc_basename in
12452 # FIXME: insert proper C++ library support
12458 cygwin
* | mingw
* | pw32
* | cegcc
*)
12459 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12460 # as there is no search path for DLLs.
12461 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12462 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12463 allow_undefined_flag_CXX
=unsupported
12464 always_export_symbols_CXX
=no
12465 enable_shared_with_static_runtimes_CXX
=yes
12467 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12468 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12469 # If the export-symbols file already is a .def file (1st line
12470 # is EXPORTS), use it as is; otherwise, prepend...
12471 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12472 cp $export_symbols $output_objdir/$soname.def;
12474 echo EXPORTS > $output_objdir/$soname.def;
12475 cat $export_symbols >> $output_objdir/$soname.def;
12477 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12482 darwin
* | rhapsody
*)
12485 archive_cmds_need_lc_CXX
=no
12486 hardcode_direct_CXX
=no
12487 hardcode_automatic_CXX
=yes
12488 hardcode_shlibpath_var_CXX
=unsupported
12489 if test "$lt_cv_ld_force_load" = "yes"; then
12490 whole_archive_flag_spec_CXX
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12492 whole_archive_flag_spec_CXX
=''
12494 link_all_deplibs_CXX
=yes
12495 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
12496 case $cc_basename in
12497 ifort
*) _lt_dar_can_shared
=yes ;;
12498 *) _lt_dar_can_shared
=$GCC ;;
12500 if test "$_lt_dar_can_shared" = "yes"; then
12501 output_verbose_link_cmd
=func_echo_all
12502 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12503 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12504 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12505 module_expsym_cmds_CXX
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12506 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12507 archive_cmds_CXX
="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12508 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12518 case $cc_basename in
12520 # FIXME: insert proper C++ library support
12524 # Green Hills C++ Compiler
12525 # FIXME: insert proper C++ library support
12529 # FIXME: insert proper C++ library support
12536 # C++ shared libraries reported to be fairly broken before
12542 archive_cmds_need_lc_CXX
=no
12545 freebsd
* | dragonfly
*)
12546 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12555 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12556 link_all_deplibs_CXX
=yes
12560 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12561 hardcode_libdir_separator_CXX
=:
12562 export_dynamic_flag_spec_CXX
='${wl}-E'
12563 hardcode_direct_CXX
=yes
12564 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12565 # but as the default
12566 # location of the library.
12568 case $cc_basename in
12570 # FIXME: insert proper C++ library support
12574 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12575 # Commands to make compiler produce verbose output that lists
12576 # what "hidden" libraries, object files and flags are used when
12577 # linking a shared library.
12579 # There doesn't appear to be a way to prevent this compiler from
12580 # explicitly linking system object files so we need to strip them
12581 # from the output so that they don't get included in the library
12583 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12586 if test "$GXX" = yes; then
12587 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12589 # FIXME: insert proper C++ library support
12597 if test $with_gnu_ld = no
; then
12598 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12599 hardcode_libdir_separator_CXX
=:
12605 export_dynamic_flag_spec_CXX
='${wl}-E'
12611 hardcode_direct_CXX
=no
12612 hardcode_shlibpath_var_CXX
=no
12615 hardcode_direct_CXX
=yes
12616 hardcode_direct_absolute_CXX
=yes
12617 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12618 # but as the default
12619 # location of the library.
12623 case $cc_basename in
12625 # FIXME: insert proper C++ library support
12631 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12634 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12637 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12640 # Commands to make compiler produce verbose output that lists
12641 # what "hidden" libraries, object files and flags are used when
12642 # linking a shared library.
12644 # There doesn't appear to be a way to prevent this compiler from
12645 # explicitly linking system object files so we need to strip them
12646 # from the output so that they don't get included in the library
12648 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12651 if test "$GXX" = yes; then
12652 if test $with_gnu_ld = no
; then
12655 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12658 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12661 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12666 # FIXME: insert proper C++ library support
12674 hardcode_direct_CXX
=no
12675 hardcode_shlibpath_var_CXX
=no
12676 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12677 export_dynamic_flag_spec_CXX
='${wl}-E'
12678 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12679 # Instead, shared libraries are loaded at an image base (0x10000000 by
12680 # default) and relocated if they conflict, which is a slow very memory
12681 # consuming and fragmenting process. To avoid this, we pick a random,
12682 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12683 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12684 archive_cmds_CXX
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12685 archive_expsym_cmds_CXX
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12688 case $cc_basename in
12691 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12693 # Archives containing C++ object files must be created using
12694 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12695 # necessary to make sure instantiated templates are included
12697 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
12700 if test "$GXX" = yes; then
12701 if test "$with_gnu_ld" = no
; then
12702 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12704 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12707 link_all_deplibs_CXX
=yes
12710 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12711 hardcode_libdir_separator_CXX
=:
12712 inherit_rpath_CXX
=yes
12715 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12716 case $cc_basename in
12718 # Kuck and Associates, Inc. (KAI) C++ Compiler
12720 # KCC will only create a shared library if the output file
12721 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12722 # to its proper name (with version) after linking.
12723 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12724 archive_expsym_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12725 # Commands to make compiler produce verbose output that lists
12726 # what "hidden" libraries, object files and flags are used when
12727 # linking a shared library.
12729 # There doesn't appear to be a way to prevent this compiler from
12730 # explicitly linking system object files so we need to strip them
12731 # from the output so that they don't get included in the library
12733 output_verbose_link_cmd
='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12735 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12736 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12738 # Archives containing C++ object files must be created using
12739 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12740 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12745 # version 8.0 and above of icpc choke on multiply defined symbols
12746 # if we add $predep_objects and $postdep_objects, however 7.1 and
12747 # earlier do not add the objects themselves.
12748 case `$CC -V 2>&1` in
12750 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12751 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12753 *) # Version 8.0 or newer
12756 ia64
*) tmp_idyn
=' -i_dynamic';;
12758 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12759 archive_expsym_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12762 archive_cmds_need_lc_CXX
=no
12763 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12764 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12765 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12768 # Portland Group C++ compiler
12770 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
12771 prelink_cmds_CXX
='tpldir=Template.dir~
12773 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12774 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12775 old_archive_cmds_CXX
='tpldir=Template.dir~
12777 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12778 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12780 archive_cmds_CXX
='tpldir=Template.dir~
12782 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12783 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12784 archive_expsym_cmds_CXX
='tpldir=Template.dir~
12786 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12787 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12789 *) # Version 6 and above use weak symbols
12790 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12791 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12795 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
12796 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12797 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12801 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12802 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12804 runpath_var
=LD_RUN_PATH
12805 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12806 hardcode_libdir_separator_CXX
=:
12808 # Commands to make compiler produce verbose output that lists
12809 # what "hidden" libraries, object files and flags are used when
12810 # linking a shared library.
12812 # There doesn't appear to be a way to prevent this compiler from
12813 # explicitly linking system object files so we need to strip them
12814 # from the output so that they don't get included in the library
12816 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12818 xl
* | mpixl
* | bgxl
*)
12819 # IBM XL 8.0 on PPC, with GNU ld
12820 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12821 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12822 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823 if test "x$supports_anon_versioning" = xyes
; then
12824 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
12825 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12826 echo "local: *; };" >> $output_objdir/$libname.ver~
12827 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12831 case `$CC -V 2>&1 | sed 5q` in
12834 no_undefined_flag_CXX
=' -zdefs'
12835 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12836 archive_expsym_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12837 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12838 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12839 compiler_needs_object_CXX
=yes
12841 # Not sure whether something based on
12842 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12844 output_verbose_link_cmd
='func_echo_all'
12846 # Archives containing C++ object files must be created using
12847 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12848 # necessary to make sure instantiated templates are included
12850 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12858 # FIXME: insert proper C++ library support
12863 # FIXME: insert proper C++ library support
12868 case $cc_basename in
12870 # FIXME: insert proper C++ library support
12874 # FIXME: insert proper C++ library support
12881 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12882 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12884 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12885 hardcode_direct_CXX
=yes
12886 hardcode_shlibpath_var_CXX
=no
12888 # Workaround some broken pre-1.5 toolchains
12889 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12897 # C++ shared libraries are fairly broken
12902 if test -f /usr
/libexec
/ld.so
; then
12903 hardcode_direct_CXX
=yes
12904 hardcode_shlibpath_var_CXX
=no
12905 hardcode_direct_absolute_CXX
=yes
12906 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12907 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12909 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12910 export_dynamic_flag_spec_CXX
='${wl}-E'
12911 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12913 output_verbose_link_cmd
=func_echo_all
12919 osf3
* | osf4
* | osf5
*)
12920 case $cc_basename in
12922 # Kuck and Associates, Inc. (KAI) C++ Compiler
12924 # KCC will only create a shared library if the output file
12925 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12926 # to its proper name (with version) after linking.
12927 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12929 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12930 hardcode_libdir_separator_CXX
=:
12932 # Archives containing C++ object files must be created using
12933 # the KAI C++ compiler.
12935 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
12936 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
12940 # Rational C++ 2.4.1
12941 # FIXME: insert proper C++ library support
12947 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12948 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12949 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12952 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12953 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12954 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12955 echo "-hidden">> $lib.exp~
12956 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12958 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12962 hardcode_libdir_separator_CXX
=:
12964 # Commands to make compiler produce verbose output that lists
12965 # what "hidden" libraries, object files and flags are used when
12966 # linking a shared library.
12968 # There doesn't appear to be a way to prevent this compiler from
12969 # explicitly linking system object files so we need to strip them
12970 # from the output so that they don't get included in the library
12972 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12975 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12976 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12979 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12982 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12986 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12987 hardcode_libdir_separator_CXX
=:
12989 # Commands to make compiler produce verbose output that lists
12990 # what "hidden" libraries, object files and flags are used when
12991 # linking a shared library.
12992 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12995 # FIXME: insert proper C++ library support
13003 # FIXME: insert proper C++ library support
13008 case $cc_basename in
13011 # FIXME: insert proper C++ library support
13016 # FIXME: insert proper C++ library support
13020 # FIXME: insert proper C++ library support
13027 case $cc_basename in
13029 # Sun C++ 4.2, 5.x and Centerline C++
13030 archive_cmds_need_lc_CXX
=yes
13031 no_undefined_flag_CXX
=' -zdefs'
13032 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13033 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13034 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13036 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13037 hardcode_shlibpath_var_CXX
=no
13039 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13041 # The compiler driver will combine and reorder linker options,
13042 # but understands `-z linker_flag'.
13043 # Supported since Solaris 2.6 (maybe 2.5.1?)
13044 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13047 link_all_deplibs_CXX
=yes
13049 output_verbose_link_cmd
='func_echo_all'
13051 # Archives containing C++ object files must be created using
13052 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13053 # necessary to make sure instantiated templates are included
13055 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13058 # Green Hills C++ Compiler
13059 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13061 # The C++ compiler must be used to create the archive.
13062 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13065 # GNU C++ compiler with Solaris linker
13066 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13067 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13068 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13069 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13070 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13071 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13073 # Commands to make compiler produce verbose output that lists
13074 # what "hidden" libraries, object files and flags are used when
13075 # linking a shared library.
13076 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13078 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13080 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13081 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13082 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13084 # Commands to make compiler produce verbose output that lists
13085 # what "hidden" libraries, object files and flags are used when
13086 # linking a shared library.
13087 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13090 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13092 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13094 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13102 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13103 no_undefined_flag_CXX
='${wl}-z,text'
13104 archive_cmds_need_lc_CXX
=no
13105 hardcode_shlibpath_var_CXX
=no
13106 runpath_var
='LD_RUN_PATH'
13108 case $cc_basename in
13110 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13111 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13114 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13115 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13120 sysv5
* | sco3.2v5
* | sco5v6
*)
13121 # Note: We can NOT use -z defs as we might desire, because we do not
13122 # link with -lc, and that would cause any symbols used from libc to
13123 # always be unresolved, which means just about no library would
13124 # ever link correctly. If we're not using GNU ld we use -z text
13125 # though, which does catch some bad symbols but isn't as heavy-handed
13127 no_undefined_flag_CXX
='${wl}-z,text'
13128 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13129 archive_cmds_need_lc_CXX
=no
13130 hardcode_shlibpath_var_CXX
=no
13131 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13132 hardcode_libdir_separator_CXX
=':'
13133 link_all_deplibs_CXX
=yes
13134 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13135 runpath_var
='LD_RUN_PATH'
13137 case $cc_basename in
13139 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13140 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13141 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13142 '"$old_archive_cmds_CXX"
13143 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13144 '"$reload_cmds_CXX"
13147 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13148 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13154 case $cc_basename in
13156 # NonStop-UX NCC 3.20
13157 # FIXME: insert proper C++ library support
13161 # FIXME: insert proper C++ library support
13168 # For VxWorks ports, we assume the use of a GNU linker with
13169 # standard elf conventions.
13174 # FIXME: insert proper C++ library support
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13180 $as_echo "$ld_shlibs_CXX" >&6; }
13181 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13187 ## There is no encapsulation within the following macros, do not change
13188 ## the running order or otherwise move them around unless you know exactly
13189 ## what you are doing...
13190 # Dependencies to place before and after the object being linked:
13191 predep_objects_CXX
=
13192 postdep_objects_CXX
=
13195 compiler_lib_search_path_CXX
=
13197 cat > conftest.
$ac_ext <<_LT_EOF
13201 Foo (void) { a = 0; }
13207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13208 (eval $ac_compile) 2>&5
13210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13211 test $ac_status = 0; }; then
13212 # Parse the compiler output and extract the necessary
13213 # objects, libraries and library flags.
13215 # Sentinel used to keep track of whether or not we are before
13216 # the conftest object file.
13217 pre_test_object_deps_done
=no
13219 for p
in `eval "$output_verbose_link_cmd"`; do
13223 # Some compilers place space between "-{L,R}" and the path.
13224 # Remove the space.
13225 if test $p = "-L" ||
13226 test $p = "-R"; then
13233 if test "$pre_test_object_deps_done" = no
; then
13236 # Internal compiler library paths should come after those
13237 # provided the user. The postdeps already come after the
13238 # user supplied libs so there is no need to process them.
13239 if test -z "$compiler_lib_search_path_CXX"; then
13240 compiler_lib_search_path_CXX
="${prev}${p}"
13242 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13245 # The "-l" case would never come before the object being
13246 # linked, so don't bother handling this case.
13249 if test -z "$postdeps_CXX"; then
13250 postdeps_CXX
="${prev}${p}"
13252 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13258 # This assumes that the test object file only shows up
13259 # once in the compiler output.
13260 if test "$p" = "conftest.$objext"; then
13261 pre_test_object_deps_done
=yes
13265 if test "$pre_test_object_deps_done" = no
; then
13266 if test -z "$predep_objects_CXX"; then
13267 predep_objects_CXX
="$p"
13269 predep_objects_CXX
="$predep_objects_CXX $p"
13272 if test -z "$postdep_objects_CXX"; then
13273 postdep_objects_CXX
="$p"
13275 postdep_objects_CXX
="$postdep_objects_CXX $p"
13280 *) ;; # Ignore the rest.
13288 echo "libtool.m4: error: problem compiling CXX test program"
13291 $RM -f confest.
$objext
13293 # PORTME: override above test on systems where it is broken
13296 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13297 # hack all around it, let's just trust "g++" to DTRT.
13298 predep_objects_CXX
=
13299 postdep_objects_CXX
=
13304 case `$CC -V 2>&1 | sed 5q` in
13308 # The more standards-conforming stlport4 library is
13309 # incompatible with the Cstd library. Avoid specifying
13310 # it if it's in CXXFLAGS. Ignore libCrun as
13311 # -library=stlport4 depends on it.
13312 case " $CXX $CXXFLAGS " in
13313 *" -library=stlport4 "*)
13314 solaris_use_stlport4
=yes
13318 if test "$solaris_use_stlport4" != yes; then
13319 postdeps_CXX
='-library=Cstd -library=Crun'
13326 case $cc_basename in
13328 # The more standards-conforming stlport4 library is
13329 # incompatible with the Cstd library. Avoid specifying
13330 # it if it's in CXXFLAGS. Ignore libCrun as
13331 # -library=stlport4 depends on it.
13332 case " $CXX $CXXFLAGS " in
13333 *" -library=stlport4 "*)
13334 solaris_use_stlport4
=yes
13338 # Adding this requires a known-good setup of shared libraries for
13339 # Sun compiler versions before 5.6, else PIC objects from an old
13340 # archive will be linked into the output, leading to subtle bugs.
13341 if test "$solaris_use_stlport4" != yes; then
13342 postdeps_CXX
='-library=Cstd -library=Crun'
13350 case " $postdeps_CXX " in
13351 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13353 compiler_lib_search_dirs_CXX
=
13354 if test -n "${compiler_lib_search_path_CXX}"; then
13355 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13388 lt_prog_compiler_wl_CXX
=
13389 lt_prog_compiler_pic_CXX
=
13390 lt_prog_compiler_static_CXX
=
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13393 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13395 # C++ specific cases for pic, static, wl, etc.
13396 if test "$GXX" = yes; then
13397 lt_prog_compiler_wl_CXX
='-Wl,'
13398 lt_prog_compiler_static_CXX
='-static'
13402 # All AIX code is PIC.
13403 if test "$host_cpu" = ia64
; then
13404 # AIX 5 now supports IA64 processor
13405 lt_prog_compiler_static_CXX
='-Bstatic'
13407 lt_prog_compiler_pic_CXX
='-fPIC'
13413 # see comment about AmigaOS4 .so support
13414 lt_prog_compiler_pic_CXX
='-fPIC'
13417 # FIXME: we need at least 68020 code to build shared libraries, but
13418 # adding the `-m68020' flag to GCC prevents building anything better,
13420 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13425 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13426 # PIC is the default for these OSes.
13428 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13429 # This hack is so that the source file can tell whether it is being
13430 # built for inclusion in a dll (and should export symbols for example).
13431 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13432 # (--disable-auto-import) libraries
13433 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13435 darwin
* | rhapsody
*)
13436 # PIC is the default on this platform
13437 # Common symbols not allowed in MH_DYLIB files
13438 lt_prog_compiler_pic_CXX
='-fno-common'
13441 # DJGPP does not support shared libraries at all
13442 lt_prog_compiler_pic_CXX
=
13445 # PIC is the default for Haiku.
13446 # The "-static" flag exists, but is broken.
13447 lt_prog_compiler_static_CXX
=
13450 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13451 # Instead, we relocate shared libraries at runtime.
13454 if test -d /usr
/nec
; then
13455 lt_prog_compiler_pic_CXX
=-Kconform_pic
13459 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13460 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13461 # sets the default TLS model and affects inlining.
13466 lt_prog_compiler_pic_CXX
='-fPIC'
13471 # QNX uses GNU C++, but need to define -shared option too, otherwise
13472 # it will coredump.
13473 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13476 lt_prog_compiler_pic_CXX
='-fPIC'
13482 # All AIX code is PIC.
13483 if test "$host_cpu" = ia64
; then
13484 # AIX 5 now supports IA64 processor
13485 lt_prog_compiler_static_CXX
='-Bstatic'
13487 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13491 case $cc_basename in
13493 # Green Hills C++ Compiler
13494 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13499 case $cc_basename in
13501 lt_prog_compiler_pic_CXX
='-KPIC'
13504 # Green Hills C++ Compiler
13505 lt_prog_compiler_pic_CXX
='-pic'
13511 freebsd
* | dragonfly
*)
13512 # FreeBSD uses GNU C++
13514 hpux9
* | hpux10
* | hpux11
*)
13515 case $cc_basename in
13517 lt_prog_compiler_wl_CXX
='-Wl,'
13518 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13519 if test "$host_cpu" != ia64
; then
13520 lt_prog_compiler_pic_CXX
='+Z'
13524 lt_prog_compiler_wl_CXX
='-Wl,'
13525 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13531 lt_prog_compiler_pic_CXX
='+Z'
13540 # This is c89, which is MS Visual C++ (no shared libs)
13541 # Anyone wants to do a port?
13543 irix5
* | irix6
* | nonstopux
*)
13544 case $cc_basename in
13546 lt_prog_compiler_wl_CXX
='-Wl,'
13547 lt_prog_compiler_static_CXX
='-non_shared'
13548 # CC pic flag -KPIC is the default.
13554 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13555 case $cc_basename in
13558 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13559 lt_prog_compiler_pic_CXX
='-fPIC'
13562 # old Intel C++ for x86_64 which still supported -KPIC.
13563 lt_prog_compiler_wl_CXX
='-Wl,'
13564 lt_prog_compiler_pic_CXX
='-KPIC'
13565 lt_prog_compiler_static_CXX
='-static'
13568 # Intel C++, used to be incompatible with GCC.
13569 # ICC 10 doesn't accept -KPIC any more.
13570 lt_prog_compiler_wl_CXX
='-Wl,'
13571 lt_prog_compiler_pic_CXX
='-fPIC'
13572 lt_prog_compiler_static_CXX
='-static'
13575 # Portland Group C++ compiler
13576 lt_prog_compiler_wl_CXX
='-Wl,'
13577 lt_prog_compiler_pic_CXX
='-fpic'
13578 lt_prog_compiler_static_CXX
='-Bstatic'
13582 # Make sure the PIC flag is empty. It appears that all Alpha
13583 # Linux and Compaq Tru64 Unix objects are PIC.
13584 lt_prog_compiler_pic_CXX
=
13585 lt_prog_compiler_static_CXX
='-non_shared'
13587 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
13588 # IBM XL 8.0, 9.0 on PPC and BlueGene
13589 lt_prog_compiler_wl_CXX
='-Wl,'
13590 lt_prog_compiler_pic_CXX
='-qpic'
13591 lt_prog_compiler_static_CXX
='-qstaticlink'
13594 case `$CC -V 2>&1 | sed 5q` in
13597 lt_prog_compiler_pic_CXX
='-KPIC'
13598 lt_prog_compiler_static_CXX
='-Bstatic'
13599 lt_prog_compiler_wl_CXX
='-Qoption ld '
13610 case $cc_basename in
13612 lt_prog_compiler_pic_CXX
='-W c,exportall'
13621 # QNX uses GNU C++, but need to define -shared option too, otherwise
13622 # it will coredump.
13623 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13625 osf3
* | osf4
* | osf5
*)
13626 case $cc_basename in
13628 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13631 # Rational C++ 2.4.1
13632 lt_prog_compiler_pic_CXX
='-pic'
13635 # Digital/Compaq C++
13636 lt_prog_compiler_wl_CXX
='-Wl,'
13637 # Make sure the PIC flag is empty. It appears that all Alpha
13638 # Linux and Compaq Tru64 Unix objects are PIC.
13639 lt_prog_compiler_pic_CXX
=
13640 lt_prog_compiler_static_CXX
='-non_shared'
13649 case $cc_basename in
13651 # Sun C++ 4.2, 5.x and Centerline C++
13652 lt_prog_compiler_pic_CXX
='-KPIC'
13653 lt_prog_compiler_static_CXX
='-Bstatic'
13654 lt_prog_compiler_wl_CXX
='-Qoption ld '
13657 # Green Hills C++ Compiler
13658 lt_prog_compiler_pic_CXX
='-PIC'
13665 case $cc_basename in
13668 lt_prog_compiler_pic_CXX
='-pic'
13669 lt_prog_compiler_static_CXX
='-Bstatic'
13673 lt_prog_compiler_pic_CXX
='-pic'
13679 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13680 case $cc_basename in
13682 lt_prog_compiler_wl_CXX
='-Wl,'
13683 lt_prog_compiler_pic_CXX
='-KPIC'
13684 lt_prog_compiler_static_CXX
='-Bstatic'
13689 case $cc_basename in
13691 # NonStop-UX NCC 3.20
13692 lt_prog_compiler_pic_CXX
='-KPIC'
13701 lt_prog_compiler_can_build_shared_CXX
=no
13707 # For platforms which do not support PIC, -DPIC is meaningless:
13709 lt_prog_compiler_pic_CXX
=
13712 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13716 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13721 # Check to make sure the PIC flag actually works.
13723 if test -n "$lt_prog_compiler_pic_CXX"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13725 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13726 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
13727 $as_echo_n "(cached) " >&6
13729 lt_cv_prog_compiler_pic_works_CXX
=no
13730 ac_outfile
=conftest.
$ac_objext
13731 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13732 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13733 # Insert the option either (1) after the last *FLAGS variable, or
13734 # (2) before a word containing "conftest.", or (3) at the end.
13735 # Note that $ac_compile itself does not contain backslashes and begins
13736 # with a dollar sign (not a hyphen), so the echo should work correctly.
13737 # The option is referenced via a variable to avoid confusing sed.
13738 lt_compile
=`echo "$ac_compile" | $SED \
13739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13741 -e 's:$: $lt_compiler_flag:'`
13742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13743 (eval "$lt_compile" 2>conftest.err
)
13745 cat conftest.err
>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 if (exit $ac_status) && test -s "$ac_outfile"; then
13748 # The compiler can only warn and ignore the option if not recognized
13749 # So say no if there are warnings other than the usual output.
13750 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
13751 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13752 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13753 lt_cv_prog_compiler_pic_works_CXX
=yes
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13760 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13762 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
13763 case $lt_prog_compiler_pic_CXX in
13765 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13768 lt_prog_compiler_pic_CXX
=
13769 lt_prog_compiler_can_build_shared_CXX
=no
13777 # Check to make sure the static flag actually works.
13779 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13781 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13782 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
13783 $as_echo_n "(cached) " >&6
13785 lt_cv_prog_compiler_static_works_CXX
=no
13786 save_LDFLAGS
="$LDFLAGS"
13787 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13788 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13789 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13790 # The linker can only warn and ignore the option if not recognized
13791 # So say no if there are warnings
13792 if test -s conftest.err
; then
13793 # Append any errors to the config.log.
13794 cat conftest.err
1>&5
13795 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
13796 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13797 if diff conftest.exp conftest.er2
>/dev
/null
; then
13798 lt_cv_prog_compiler_static_works_CXX
=yes
13801 lt_cv_prog_compiler_static_works_CXX
=yes
13805 LDFLAGS
="$save_LDFLAGS"
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13809 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13811 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
13814 lt_prog_compiler_static_CXX
=
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13822 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13823 $as_echo_n "(cached) " >&6
13825 lt_cv_prog_compiler_c_o_CXX
=no
13826 $RM -r conftest
2>/dev
/null
13830 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13832 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13833 # Insert the option either (1) after the last *FLAGS variable, or
13834 # (2) before a word containing "conftest.", or (3) at the end.
13835 # Note that $ac_compile itself does not contain backslashes and begins
13836 # with a dollar sign (not a hyphen), so the echo should work correctly.
13837 lt_compile
=`echo "$ac_compile" | $SED \
13838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13840 -e 's:$: $lt_compiler_flag:'`
13841 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13842 (eval "$lt_compile" 2>out
/conftest.err
)
13844 cat out
/conftest.err
>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13848 # The compiler can only warn and ignore the option if not recognized
13849 # So say no if there are warnings
13850 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13851 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13852 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13853 lt_cv_prog_compiler_c_o_CXX
=yes
13858 # SGI C++ compiler will create directory out/ii_files/ for
13859 # template instantiation
13860 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13861 $RM out
/* && rmdir out
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13868 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13874 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13875 $as_echo_n "(cached) " >&6
13877 lt_cv_prog_compiler_c_o_CXX
=no
13878 $RM -r conftest
2>/dev
/null
13882 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13884 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13885 # Insert the option either (1) after the last *FLAGS variable, or
13886 # (2) before a word containing "conftest.", or (3) at the end.
13887 # Note that $ac_compile itself does not contain backslashes and begins
13888 # with a dollar sign (not a hyphen), so the echo should work correctly.
13889 lt_compile
=`echo "$ac_compile" | $SED \
13890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13892 -e 's:$: $lt_compiler_flag:'`
13893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13894 (eval "$lt_compile" 2>out
/conftest.err
)
13896 cat out
/conftest.err
>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13900 # The compiler can only warn and ignore the option if not recognized
13901 # So say no if there are warnings
13902 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13903 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13904 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13905 lt_cv_prog_compiler_c_o_CXX
=yes
13910 # SGI C++ compiler will create directory out/ii_files/ for
13911 # template instantiation
13912 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13913 $RM out
/* && rmdir out
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13920 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13925 hard_links
="nottested"
13926 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
13927 # do not overwrite the value of need_locks provided by the user
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13929 $as_echo_n "checking if we can lock with hard links... " >&6; }
13932 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13934 ln conftest.a conftest.b
2>&5 || hard_links
=no
13935 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13937 $as_echo "$hard_links" >&6; }
13938 if test "$hard_links" = no
; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13940 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13950 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13952 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13955 # If we're using GNU nm, then we don't want the "-C" option.
13956 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13957 # Also, AIX nm treats weak defined symbols like other global defined
13958 # symbols, whereas GNU nm marks them as "W".
13959 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13960 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13962 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13966 export_symbols_cmds_CXX
="$ltdll_cmds"
13968 cygwin
* | mingw
* | cegcc
*)
13969 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13972 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13975 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13978 $as_echo "$ld_shlibs_CXX" >&6; }
13979 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13981 with_gnu_ld_CXX
=$with_gnu_ld
13989 # Do we need to explicitly link libc?
13991 case "x$archive_cmds_need_lc_CXX" in
13993 # Assume -lc should be added
13994 archive_cmds_need_lc_CXX
=yes
13996 if test "$enable_shared" = yes && test "$GCC" = yes; then
13997 case $archive_cmds_CXX in
13999 # FIXME: we may have to deal with multi-command sequences.
14002 # Test whether the compiler implicitly links with -lc since on some
14003 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14004 # to ld, don't add -lc before -lgcc.
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14006 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14007 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
14008 $as_echo_n "(cached) " >&6
14011 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14014 (eval $ac_compile) 2>&5
14016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14017 test $ac_status = 0; } 2>conftest.err
; then
14020 libobjs
=conftest.
$ac_objext
14022 wl
=$lt_prog_compiler_wl_CXX
14023 pic_flag
=$lt_prog_compiler_pic_CXX
14029 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14030 allow_undefined_flag_CXX
=
14031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14032 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035 test $ac_status = 0; }
14037 lt_cv_archive_cmds_need_lc_CXX
=no
14039 lt_cv_archive_cmds_need_lc_CXX
=yes
14041 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14043 cat conftest.err
1>&5
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14049 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14050 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14121 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14123 library_names_spec
=
14124 libname_spec
='lib$name'
14128 postuninstall_cmds
=
14132 shlibpath_overrides_runpath
=unknown
14134 dynamic_linker
="$host_os ld.so"
14135 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14136 need_lib_prefix
=unknown
14137 hardcode_into_libs
=no
14139 # when you set need_version to no, make sure it does not cause -set_version
14140 # flags to be left without arguments
14141 need_version
=unknown
14146 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14147 shlibpath_var
=LIBPATH
14149 # AIX 3 has no versioning support, so we append a major version to the name.
14150 soname_spec
='${libname}${release}${shared_ext}$major'
14157 hardcode_into_libs
=yes
14158 if test "$host_cpu" = ia64
; then
14159 # AIX 5 supports IA64
14160 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14161 shlibpath_var
=LD_LIBRARY_PATH
14163 # With GCC up to 2.95.x, collect2 would create an import file
14164 # for dependence libraries. The import file would start with
14165 # the line `#! .'. This would cause the generated library to
14166 # depend on `.', always an invalid library. This was fixed in
14167 # development snapshots of GCC prior to 3.0.
14169 aix4 | aix4.
[01] | aix4.
[01].
*)
14170 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14172 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14175 can_build_shared
=no
14179 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14180 # soname into executable. Probably we can add versioning support to
14181 # collect2, so additional links can be useful in future.
14182 if test "$aix_use_runtimelinking" = yes; then
14183 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14184 # instead of lib<name>.a to let people know that these are not
14185 # typical AIX shared libraries.
14186 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188 # We preserve .a as extension for shared libraries through AIX4.2
14189 # and later when we are not doing run time linking.
14190 library_names_spec
='${libname}${release}.a $libname.a'
14191 soname_spec
='${libname}${release}${shared_ext}$major'
14193 shlibpath_var
=LIBPATH
14200 # Since July 2007 AmigaOS4 officially supports .so libraries.
14201 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14205 library_names_spec
='$libname.ixlibrary $libname.a'
14206 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14207 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14213 library_names_spec
='${libname}${shared_ext}'
14214 dynamic_linker
="$host_os ld.so"
14215 shlibpath_var
=LIBRARY_PATH
14221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14222 soname_spec
='${libname}${release}${shared_ext}$major'
14223 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14224 shlibpath_var
=LD_LIBRARY_PATH
14225 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14226 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14227 # the default ld.so.conf also contains /usr/contrib/lib and
14228 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14229 # libtool to hard-code these into programs
14232 cygwin
* | mingw
* | pw32
* | cegcc
*)
14233 version_type
=windows
14238 case $GCC,$host_os in
14239 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14240 library_names_spec
='$libname.dll.a'
14241 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14242 postinstall_cmds
='base_file=`basename \${file}`~
14243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14244 dldir=$destdir/`dirname \$dlpath`~
14245 test -d \$dldir || mkdir -p \$dldir~
14246 $install_prog $dir/$dlname \$dldir/$dlname~
14247 chmod a+x \$dldir/$dlname~
14248 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14249 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14251 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14252 dlpath=$dir/\$dldll~
14254 shlibpath_overrides_runpath
=yes
14258 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14259 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14263 # MinGW DLLs use traditional 'lib' prefix
14264 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14267 # pw32 DLLs use 'pw' prefix rather than 'lib'
14268 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14274 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14277 dynamic_linker
='Win32 ld.exe'
14278 # FIXME: first we should search . and the directory the executable is in
14282 darwin
* | rhapsody
*)
14283 dynamic_linker
="$host_os dyld"
14284 version_type
=darwin
14287 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14288 soname_spec
='${libname}${release}${major}$shared_ext'
14289 shlibpath_overrides_runpath
=yes
14290 shlibpath_var
=DYLD_LIBRARY_PATH
14291 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14293 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14301 soname_spec
='${libname}${release}${shared_ext}$major'
14302 shlibpath_var
=LD_LIBRARY_PATH
14305 freebsd
* | dragonfly
*)
14306 # DragonFly does not have aout. When/if they implement a new
14307 # versioning mechanism, adjust this.
14308 if test -x /usr
/bin
/objformat
; then
14309 objformat
=`/usr/bin/objformat`
14312 freebsd
[23].
*) objformat
=aout
;;
14313 *) objformat
=elf
;;
14316 version_type
=freebsd-
$objformat
14317 case $version_type in
14319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14324 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14328 shlibpath_var
=LD_LIBRARY_PATH
14331 shlibpath_overrides_runpath
=yes
14333 freebsd3.
[01]* | freebsdelf3.
[01]*)
14334 shlibpath_overrides_runpath
=yes
14335 hardcode_into_libs
=yes
14337 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14338 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14339 shlibpath_overrides_runpath
=no
14340 hardcode_into_libs
=yes
14342 *) # from 4.6 on, and DragonFly
14343 shlibpath_overrides_runpath
=yes
14344 hardcode_into_libs
=yes
14353 dynamic_linker
="$host_os runtime_loader"
14354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14355 soname_spec
='${libname}${release}${shared_ext}$major'
14356 shlibpath_var
=LIBRARY_PATH
14357 shlibpath_overrides_runpath
=yes
14358 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14359 hardcode_into_libs
=yes
14362 hpux9
* | hpux10
* | hpux11
*)
14363 # Give a soname corresponding to the major version so that dld.sl refuses to
14364 # link against other versions.
14371 hardcode_into_libs
=yes
14372 dynamic_linker
="$host_os dld.so"
14373 shlibpath_var
=LD_LIBRARY_PATH
14374 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14376 soname_spec
='${libname}${release}${shared_ext}$major'
14377 if test "X$HPUX_IA64_MODE" = X32
; then
14378 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14380 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14382 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14386 hardcode_into_libs
=yes
14387 dynamic_linker
="$host_os dld.sl"
14388 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14389 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391 soname_spec
='${libname}${release}${shared_ext}$major'
14392 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14393 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14397 dynamic_linker
="$host_os dld.sl"
14398 shlibpath_var
=SHLIB_PATH
14399 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14400 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401 soname_spec
='${libname}${release}${shared_ext}$major'
14404 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14405 postinstall_cmds
='chmod 555 $lib'
14406 # or fails outright, so override atomically:
14407 install_override_mode
=555
14414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14415 soname_spec
='${libname}${release}${shared_ext}$major'
14416 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14417 shlibpath_var
=LD_LIBRARY_PATH
14418 shlibpath_overrides_runpath
=no
14419 hardcode_into_libs
=yes
14422 irix5
* | irix6
* | nonstopux
*)
14424 nonstopux
*) version_type
=nonstopux
;;
14426 if test "$lt_cv_prog_gnu_ld" = yes; then
14434 soname_spec
='${libname}${release}${shared_ext}$major'
14435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14437 irix5
* | nonstopux
*)
14438 libsuff
= shlibsuff
=
14441 case $LD in # libtool.m4 will add one of these switches to LD
14442 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14443 libsuff
= shlibsuff
= libmagic
=32-bit;;
14444 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14445 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14446 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14447 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14448 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14452 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14453 shlibpath_overrides_runpath
=no
14454 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14455 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14456 hardcode_into_libs
=yes
14459 # No shared lib support for Linux oldld, aout, or coff.
14460 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14464 # This must be Linux ELF.
14466 # uclinux* changes (here and below) have been submitted to the libtool
14467 # project, but have not yet been accepted: they are GCC-local changes
14468 # for the time being. (See
14469 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14470 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
14474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475 soname_spec
='${libname}${release}${shared_ext}$major'
14476 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14477 shlibpath_var
=LD_LIBRARY_PATH
14478 shlibpath_overrides_runpath
=no
14480 # Some binutils ld are patched to set DT_RUNPATH
14481 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14482 $as_echo_n "(cached) " >&6
14484 lt_cv_shlibpath_overrides_runpath
=no
14485 save_LDFLAGS
=$LDFLAGS
14486 save_libdir
=$libdir
14487 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14488 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14500 if ac_fn_cxx_try_link
"$LINENO"; then :
14501 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14502 lt_cv_shlibpath_overrides_runpath
=yes
14505 rm -f core conftest.err conftest.
$ac_objext \
14506 conftest
$ac_exeext conftest.
$ac_ext
14507 LDFLAGS
=$save_LDFLAGS
14508 libdir
=$save_libdir
14512 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14514 # This implies no fast_install, which is unacceptable.
14515 # Some rework will be needed to allow for fast_install
14516 # before this can be enabled.
14517 hardcode_into_libs
=yes
14519 # Append ld.so.conf contents to the search path
14520 if test -f /etc
/ld.so.conf
; then
14521 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14522 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14525 # We used to test for /lib/ld.so.1 and disable shared libraries on
14526 # powerpc, because MkLinux only supported shared libraries with the
14527 # GNU dynamic linker. Since this was broken with cross compilers,
14528 # most powerpc-linux boxes support dynamic linking these days and
14529 # people can always --disable-shared, the test was removed, and we
14530 # assume the GNU/Linux dynamic linker is in use.
14531 dynamic_linker
='GNU/Linux ld.so'
14538 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14539 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14540 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14541 dynamic_linker
='NetBSD (a.out) ld.so'
14543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14544 soname_spec
='${libname}${release}${shared_ext}$major'
14545 dynamic_linker
='NetBSD ld.elf_so'
14547 shlibpath_var
=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath
=yes
14549 hardcode_into_libs
=yes
14554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555 shlibpath_var
=LD_LIBRARY_PATH
14556 shlibpath_overrides_runpath
=yes
14563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564 soname_spec
='${libname}${release}${shared_ext}$major'
14565 shlibpath_var
=LD_LIBRARY_PATH
14566 shlibpath_overrides_runpath
=no
14567 hardcode_into_libs
=yes
14568 dynamic_linker
='ldqnx.so'
14573 sys_lib_dlsearch_path_spec
="/usr/lib"
14575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14577 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14578 *) need_version
=no
;;
14580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14581 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14582 shlibpath_var
=LD_LIBRARY_PATH
14583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14585 openbsd2.
[89] | openbsd2.
[89].
*)
14586 shlibpath_overrides_runpath
=no
14589 shlibpath_overrides_runpath
=yes
14593 shlibpath_overrides_runpath
=yes
14598 libname_spec
='$name'
14601 library_names_spec
='$libname${shared_ext} $libname.a'
14602 dynamic_linker
='OS/2 ld.exe'
14603 shlibpath_var
=LIBPATH
14606 osf3
* | osf4
* | osf5
*)
14610 soname_spec
='${libname}${release}${shared_ext}$major'
14611 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612 shlibpath_var
=LD_LIBRARY_PATH
14613 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14614 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 soname_spec
='${libname}${release}${shared_ext}$major'
14627 shlibpath_var
=LD_LIBRARY_PATH
14628 shlibpath_overrides_runpath
=yes
14629 hardcode_into_libs
=yes
14630 # ldd complains unless libraries are executable
14631 postinstall_cmds
='chmod +x $lib'
14636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14637 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14638 shlibpath_var
=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath
=yes
14640 if test "$with_gnu_ld" = yes; then
14648 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649 soname_spec
='${libname}${release}${shared_ext}$major'
14650 shlibpath_var
=LD_LIBRARY_PATH
14651 case $host_vendor in
14653 shlibpath_overrides_runpath
=no
14655 runpath_var
=LD_RUN_PATH
14663 shlibpath_overrides_runpath
=no
14664 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14670 if test -d /usr
/nec
;then
14672 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14673 soname_spec
='$libname${shared_ext}.$major'
14674 shlibpath_var
=LD_LIBRARY_PATH
14678 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14679 version_type
=freebsd-elf
14682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14683 soname_spec
='${libname}${release}${shared_ext}$major'
14684 shlibpath_var
=LD_LIBRARY_PATH
14685 shlibpath_overrides_runpath
=yes
14686 hardcode_into_libs
=yes
14687 if test "$with_gnu_ld" = yes; then
14688 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14690 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14693 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14697 sys_lib_dlsearch_path_spec
='/usr/lib'
14701 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14705 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706 shlibpath_var
=LD_LIBRARY_PATH
14707 shlibpath_overrides_runpath
=no
14708 hardcode_into_libs
=yes
14713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714 soname_spec
='${libname}${release}${shared_ext}$major'
14715 shlibpath_var
=LD_LIBRARY_PATH
14718 # Shared libraries for VwWorks, >= 7 only at this stage
14719 # and (fpic) still incompatible with "large" code models
14720 # in a few configurations. Only for RTP mode in any case,
14721 # and upon explicit request at configure time.
14724 case ${with_multisubdir}-${enable_shared} in
14731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732 soname_spec
='${libname}${release}${shared_ext}$major'
14733 dynamic_linker
="$host_os module_loader"
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14742 $as_echo "$dynamic_linker" >&6; }
14743 test "$dynamic_linker" = no
&& can_build_shared
=no
14745 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14746 if test "$GCC" = yes; then
14747 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14750 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14751 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14753 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14754 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14795 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14796 hardcode_action_CXX
=
14797 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14798 test -n "$runpath_var_CXX" ||
14799 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14801 # We can hardcode non-existent directories.
14802 if test "$hardcode_direct_CXX" != no
&&
14803 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14804 # have to relink, otherwise we might link with an installed library
14805 # when we should be linking with a yet-to-be-installed one
14806 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14807 test "$hardcode_minus_L_CXX" != no
; then
14808 # Linking always hardcodes the temporary library directory.
14809 hardcode_action_CXX
=relink
14811 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14812 hardcode_action_CXX
=immediate
14815 # We cannot hardcode anything, or else we can only hardcode existing
14817 hardcode_action_CXX
=unsupported
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14820 $as_echo "$hardcode_action_CXX" >&6; }
14822 if test "$hardcode_action_CXX" = relink ||
14823 test "$inherit_rpath_CXX" = yes; then
14824 # Fast installation is not supported
14825 enable_fast_install
=no
14826 elif test "$shlibpath_overrides_runpath" = yes ||
14827 test "$enable_shared" = no
; then
14828 # Fast installation is not necessary
14829 enable_fast_install
=needless
14838 fi # test -n "$compiler"
14844 with_gnu_ld
=$lt_save_with_gnu_ld
14845 lt_cv_path_LDCXX
=$lt_cv_path_LD
14846 lt_cv_path_LD
=$lt_save_path_LD
14847 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14848 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14849 fi # test "$_lt_caught_CXX_error" != yes
14852 ac_cpp
='$CPP $CPPFLAGS'
14853 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14854 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14855 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14869 ac_config_commands
="$ac_config_commands libtool"
14874 # Only expand once:
14877 # ... and we need it soon, since it is used by some of the
14878 # link tests in the configure script.
14879 : ${CONFIG_LT=./config.lt}
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14881 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
14883 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14885 # Generated by $as_me.
14886 # Run this file to recreate a libtool stub with the current configuration.
14887 SHELL=\${CONFIG_SHELL-$SHELL}
14890 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail
=1
14891 ## -------------------- ##
14892 ## M4sh Initialization. ##
14893 ## -------------------- ##
14895 # Be more Bourne compatible
14896 DUALCASE
=1; export DUALCASE
# for MKS sh
14897 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14900 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14901 # is contrary to our usage. Disable this feature.
14902 alias -g '${1+"$@"}'='"$@"'
14903 setopt NO_GLOB_SUBST
14905 case `(set -o) 2>/dev/null` in #(
14917 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14918 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14921 # Prefer a ksh shell builtin over an external printf program on Solaris,
14922 # but without wasting forks for bash or zsh.
14923 if test -z "$BASH_VERSION$ZSH_VERSION" \
14924 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14925 as_echo='print
-r --'
14926 as_echo_n='print
-rn --'
14927 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14928 as_echo='printf %s
\n'
14929 as_echo_n='printf %s
'
14931 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14932 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14933 as_echo_n='/usr
/ucb
/echo -n'
14935 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14936 as_echo_n_body='eval
14940 expr "X$arg" : "X\\(.*\\)$as_nl";
14941 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14943 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14945 export as_echo_n_body
14946 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14948 export as_echo_body
14949 as_echo='sh
-c $as_echo_body as_echo
'
14952 # The user is always right.
14953 if test "${PATH_SEPARATOR+set}" != set; then
14955 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14956 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14963 # We need space, tab and new line, in precisely that order. Quoting is
14964 # there to prevent editors from complaining about space-tab.
14965 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14966 # splitting by setting IFS to empty value.)
14969 # Find who we are. Look in the path if we contain no directory separator.
14972 *[\\/]* ) as_myself=$0 ;;
14973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14974 for as_dir in $PATH
14977 test -z "$as_dir" && as_dir=.
14978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14984 # We did not find ourselves, most probably we were run as `sh COMMAND'
14985 # in which case we are not to be found in the path.
14986 if test "x$as_myself" = x
; then
14989 if test ! -f "$as_myself"; then
14990 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14994 # Unset variables that we do not need and which cause bugs (e.g. in
14995 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14996 # suppresses any "Segmentation fault" message there. '((' could
14997 # trigger a bug in pdksh 5.2.14.
14998 for as_var
in BASH_ENV ENV MAIL MAILPATH
14999 do eval test x\
${$as_var+set} = xset \
15000 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15013 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15016 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15017 # ----------------------------------------
15018 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15019 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15020 # script with STATUS, using 1 if that was 0.
15023 as_status
=$1; test $as_status -eq 0 && as_status
=1
15025 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15026 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15028 $as_echo "$as_me: error: $2" >&2
15029 as_fn_exit
$as_status
15033 # as_fn_set_status STATUS
15034 # -----------------------
15035 # Set $? to STATUS, without forking.
15036 as_fn_set_status
()
15039 } # as_fn_set_status
15041 # as_fn_exit STATUS
15042 # -----------------
15043 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15047 as_fn_set_status
$1
15053 # Portably unset VAR.
15056 { eval $1=; unset $1;}
15058 as_unset
=as_fn_unset
15059 # as_fn_append VAR VALUE
15060 # ----------------------
15061 # Append the text in VALUE to the end of the definition contained in VAR. Take
15062 # advantage of any shell optimizations that allow amortized linear growth over
15063 # repeated appends, instead of the typical quadratic growth present in naive
15065 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15066 eval 'as_fn_append ()
15077 # as_fn_arith ARG...
15078 # ------------------
15079 # Perform arithmetic evaluation on the ARGs, and store the result in the
15080 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15081 # must be portable across $(()) and expr.
15082 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15083 eval 'as_fn_arith ()
15090 as_val
=`expr "$@" || test $? -eq 1`
15095 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15096 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15102 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15103 as_basename
=basename
15108 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15114 as_me
=`$as_basename -- "$0" ||
15115 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15116 X"$0" : 'X\(//\)$' \| \
15117 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15119 sed '/^.*\/\([^/][^/]*\)\/*$/{
15133 # Avoid depending upon Character Ranges.
15134 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15135 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15136 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15137 as_cr_digits
='0123456789'
15138 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15140 ECHO_C
= ECHO_N
= ECHO_T
=
15141 case `echo -n x` in #(((((
15143 case `echo 'xy\c'` in
15144 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15146 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15153 rm -f conf$$ conf$$.exe conf$$.
file
15154 if test -d conf$$.dir
; then
15155 rm -f conf$$.dir
/conf$$.
file
15158 mkdir conf$$.dir
2>/dev
/null
15160 if (echo >conf$$.
file) 2>/dev
/null
; then
15161 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15163 # ... but there are two gotchas:
15164 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15165 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15166 # In both cases, we have to default to `cp -pR'.
15167 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15169 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15177 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15178 rmdir conf$$.dir
2>/dev
/null
15183 # Create "$as_dir" as a directory, including parents if necessary.
15188 -*) as_dir
=.
/$as_dir;;
15190 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15194 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15195 *) as_qdir
=$as_dir;;
15197 as_dirs
="'$as_qdir' $as_dirs"
15198 as_dir
=`$as_dirname -- "$as_dir" ||
15199 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15200 X"$as_dir" : 'X\(//\)[^/]' \| \
15201 X"$as_dir" : 'X\(//\)$' \| \
15202 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15203 $as_echo X"$as_dir" |
15204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15208 /^X\(\/\/\)[^/].*/{
15221 test -d "$as_dir" && break
15223 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15224 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15228 if mkdir
-p .
2>/dev
/null
; then
15229 as_mkdir_p
='mkdir -p "$as_dir"'
15231 test -d .
/-p && rmdir .
/-p
15236 # as_fn_executable_p FILE
15237 # -----------------------
15238 # Test if FILE is an executable regular file.
15239 as_fn_executable_p
()
15241 test -f "$1" && test -x "$1"
15242 } # as_fn_executable_p
15243 as_test_x
='test -x'
15244 as_executable_p
=as_fn_executable_p
15246 # Sed expression to map a string onto a valid CPP name.
15247 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15249 # Sed expression to map a string onto a valid variable name.
15250 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15254 ## --------------------------------- ##
15255 ## Main body of "$CONFIG_LT" script. ##
15256 ## --------------------------------- ##
15258 test $as_write_fail = 0 && chmod +x
"$CONFIG_LT"
15260 cat >>"$CONFIG_LT" <<\_LTEOF
15265 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15266 ## Running $as_me. ##
15271 \`$as_me' creates a local libtool stub from the current configuration,
15272 for use in further configure time tests before the real libtool is
15275 Usage: $0 [OPTIONS]
15277 -h, --help print this help, then exit
15278 -V, --version print version number, then exit
15279 -q, --quiet do not print progress messages
15280 -d, --debug don't remove temporary files
15282 Report bugs to <bug-libtool@gnu.org>."
15286 configured by $0, generated by GNU Autoconf 2.69.
15288 Copyright (C) 2009 Free Software Foundation, Inc.
15289 This config.lt script is free software; the Free Software Foundation
15290 gives unlimited permision to copy, distribute and modify it."
15295 --version |
--v* |
-V )
15296 echo "$lt_cl_version"; exit 0 ;;
15297 --help |
--h* |
-h )
15298 echo "$lt_cl_help"; exit 0 ;;
15299 --debug |
--d* |
-d )
15301 --quiet |
--q* |
--silent |
--s* |
-q )
15304 -*) as_fn_error $?
"unrecognized option: $1
15305 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15307 *) as_fn_error $?
"unrecognized argument: $1
15308 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15313 if $lt_cl_silent; then
15318 cat >>"$CONFIG_LT" <<_LTEOF
15321 # The HP-UX ksh and POSIX shell print the target directory to stdout
15322 # if CDPATH is set.
15323 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15325 sed_quote_subst='$sed_quote_subst'
15326 double_quote_subst='$double_quote_subst'
15327 delay_variable_subst='$delay_variable_subst'
15328 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15329 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15330 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15331 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15332 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15333 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15334 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15335 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15336 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15337 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15338 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15339 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15340 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15341 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15342 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15343 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15344 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15345 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15346 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15347 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15348 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15349 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15350 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15351 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15352 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15353 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15354 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15355 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15356 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15357 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15358 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15359 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15360 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15361 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15362 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15363 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15364 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15365 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15366 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15367 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15368 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15369 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15370 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15371 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15372 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15373 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15374 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15375 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15376 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15377 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15378 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15379 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15380 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15381 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15382 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15383 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15384 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15385 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15386 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15387 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15388 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15389 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15390 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15391 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15392 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15393 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15394 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15395 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15396 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15397 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15398 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15399 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15400 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15401 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15402 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15403 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15404 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15405 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15406 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15407 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15408 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15409 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15410 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15411 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15412 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15413 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15414 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15415 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15416 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15417 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15418 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15419 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15420 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15421 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15422 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15423 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15424 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15425 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15426 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15427 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15428 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15429 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15430 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15431 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15432 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15433 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15434 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15435 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15436 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15437 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15438 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15439 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15440 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15441 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15442 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15443 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15444 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15445 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15446 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15447 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15448 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15449 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15450 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15451 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15452 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15453 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15454 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15455 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15456 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15457 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15458 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15459 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15460 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15461 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15462 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15463 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15464 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15465 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15466 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15467 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15468 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15469 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15470 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15471 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15472 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15473 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15474 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15475 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15476 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15477 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15478 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15479 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15480 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15481 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15482 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15483 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15484 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15485 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15486 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15487 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15488 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15489 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15490 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15491 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15492 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15493 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15494 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15495 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15496 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15497 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15498 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15499 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15500 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15501 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15502 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15505 LTCFLAGS='$LTCFLAGS'
15506 compiler='$compiler_DEFAULT'
15508 # A function that is used when there is no print builtin or printf.
15509 func_fallback_echo ()
15511 eval 'cat <<_LTECHO_EOF
15516 # Quote evaled strings.
15530 deplibs_check_method \
15539 lt_cv_sys_global_symbol_pipe \
15540 lt_cv_sys_global_symbol_to_cdecl \
15541 lt_cv_sys_global_symbol_to_c_name_address \
15542 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15543 lt_prog_compiler_no_builtin_flag \
15544 lt_prog_compiler_wl \
15545 lt_prog_compiler_pic \
15546 lt_prog_compiler_static \
15547 lt_cv_prog_compiler_c_o \
15555 export_dynamic_flag_spec \
15556 whole_archive_flag_spec \
15557 compiler_needs_object \
15559 allow_undefined_flag \
15560 no_undefined_flag \
15561 hardcode_libdir_flag_spec \
15562 hardcode_libdir_flag_spec_ld \
15563 hardcode_libdir_separator \
15568 variables_saved_for_relink \
15570 library_names_spec \
15572 install_override_mode \
15576 compiler_lib_search_dirs \
15581 compiler_lib_search_path \
15585 lt_prog_compiler_no_builtin_flag_CXX \
15586 lt_prog_compiler_wl_CXX \
15587 lt_prog_compiler_pic_CXX \
15588 lt_prog_compiler_static_CXX \
15589 lt_cv_prog_compiler_c_o_CXX \
15590 export_dynamic_flag_spec_CXX \
15591 whole_archive_flag_spec_CXX \
15592 compiler_needs_object_CXX \
15594 allow_undefined_flag_CXX \
15595 no_undefined_flag_CXX \
15596 hardcode_libdir_flag_spec_CXX \
15597 hardcode_libdir_flag_spec_ld_CXX \
15598 hardcode_libdir_separator_CXX \
15599 fix_srcfile_path_CXX \
15600 exclude_expsyms_CXX \
15601 include_expsyms_CXX \
15602 file_list_spec_CXX \
15603 compiler_lib_search_dirs_CXX \
15604 predep_objects_CXX \
15605 postdep_objects_CXX \
15608 compiler_lib_search_path_CXX; do
15609 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15610 *[\\\\\\\`\\"\\\$]*)
15611 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15614 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15619 # Double-quote double-evaled strings.
15620 for var in reload_cmds \
15621 old_postinstall_cmds \
15622 old_postuninstall_cmds \
15624 extract_expsyms_cmds \
15625 old_archive_from_new_cmds \
15626 old_archive_from_expsyms_cmds \
15628 archive_expsym_cmds \
15630 module_expsym_cmds \
15631 export_symbols_cmds \
15634 postuninstall_cmds \
15636 sys_lib_search_path_spec \
15637 sys_lib_dlsearch_path_spec \
15639 old_archive_cmds_CXX \
15640 old_archive_from_new_cmds_CXX \
15641 old_archive_from_expsyms_cmds_CXX \
15643 archive_expsym_cmds_CXX \
15645 module_expsym_cmds_CXX \
15646 export_symbols_cmds_CXX \
15647 prelink_cmds_CXX; do
15648 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15649 *[\\\\\\\`\\"\\\$]*)
15650 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15653 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15658 ac_aux_dir='$ac_aux_dir'
15659 xsi_shell='$xsi_shell'
15660 lt_shell_append='$lt_shell_append'
15662 # See if we are running on zsh, and set the options which allow our
15663 # commands through without removal of \ escapes INIT.
15664 if test -n "\${ZSH_VERSION+set}" ; then
15665 setopt NO_GLOB_SUBST
15671 TIMESTAMP='$TIMESTAMP'
15681 cat >>"$CONFIG_LT" <<\_LTEOF
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15683 $as_echo "$as_me: creating $ofile" >&6;}
15686 # See if we are running on zsh, and set the options which allow our
15687 # commands through without removal of \ escapes.
15688 if test -n "${ZSH_VERSION+set}" ; then
15689 setopt NO_GLOB_SUBST
15692 cfgfile
="${ofile}T"
15693 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15696 cat <<_LT_EOF >> "$cfgfile"
15699 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15700 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15702 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15704 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15705 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15706 # Written by Gordon Matzigkeit, 1996
15708 # This file is part of GNU Libtool.
15710 # GNU Libtool is free software; you can redistribute it and/or
15711 # modify it under the terms of the GNU General Public License as
15712 # published by the Free Software Foundation; either version 2 of
15713 # the License, or (at your option) any later version.
15715 # As a special exception to the GNU General Public License,
15716 # if you distribute this file as part of a program or library that
15717 # is built using GNU Libtool, you may include this file under the
15718 # same distribution terms that you use for the rest of that program.
15720 # GNU Libtool is distributed in the hope that it will be useful,
15721 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15722 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15723 # GNU General Public License for more details.
15725 # You should have received a copy of the GNU General Public License
15726 # along with GNU Libtool; see the file COPYING. If not, a copy
15727 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15728 # obtained by writing to the Free Software Foundation, Inc.,
15729 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15732 # The names of the tagged configurations supported by this script.
15733 available_tags="CXX "
15735 # ### BEGIN LIBTOOL CONFIG
15737 # Which release of libtool.m4 was used?
15738 macro_version=$macro_version
15739 macro_revision=$macro_revision
15741 # Whether or not to build shared libraries.
15742 build_libtool_libs=$enable_shared
15744 # Whether or not to build static libraries.
15745 build_old_libs=$enable_static
15747 # What type of objects to build.
15750 # Whether or not to optimize for fast installation.
15751 fast_install=$enable_fast_install
15753 # Shell to use when invoking shell scripts.
15756 # An echo program that protects backslashes.
15760 host_alias=$host_alias
15764 # The build system.
15765 build_alias=$build_alias
15769 # A sed program that does not truncate output.
15772 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15773 Xsed="\$SED -e 1s/^X//"
15775 # A grep program that handles long lines.
15781 # A literal string matcher.
15784 # A BSD- or MS-compatible name lister.
15787 # Whether we need soft or hard links.
15790 # What is the maximum length of a command?
15791 max_cmd_len=$max_cmd_len
15793 # Object file suffix (normally "o").
15796 # Executable file suffix (normally "").
15799 # whether the shell understands "unset".
15802 # turn spaces into newlines.
15805 # turn newlines into spaces.
15808 # An object symbol dumper.
15809 OBJDUMP=$lt_OBJDUMP
15811 # Method to check whether dependent libraries are shared objects.
15812 deplibs_check_method=$lt_deplibs_check_method
15814 # Command to use when deplibs_check_method == "file_magic".
15815 file_magic_cmd=$lt_file_magic_cmd
15819 AR_FLAGS=$lt_AR_FLAGS
15821 # A symbol stripping program.
15824 # Commands used to install an old-style archive.
15826 old_postinstall_cmds=$lt_old_postinstall_cmds
15827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15829 # Whether to use a lock for old archive extraction.
15830 lock_old_archive_extraction=$lock_old_archive_extraction
15835 # LTCC compiler flags.
15836 LTCFLAGS=$lt_CFLAGS
15838 # Take the output of nm and produce a listing of raw symbols and C names.
15839 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15841 # Transform the output of nm in a proper C declaration.
15842 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15844 # Transform the output of nm in a C name address pair.
15845 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15847 # Transform the output of nm in a C name address pair when lib prefix is needed.
15848 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15850 # The name of the directory that contains temporary libtool files.
15853 # Used to examine libraries when file_magic_cmd begins with "file".
15854 MAGIC_CMD=$MAGIC_CMD
15856 # Must we lock files when doing compilation?
15857 need_locks=$lt_need_locks
15859 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15860 DSYMUTIL=$lt_DSYMUTIL
15862 # Tool to change global to local symbols on Mac OS X.
15865 # Tool to manipulate fat objects and archives on Mac OS X.
15868 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15871 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15872 OTOOL64=$lt_OTOOL64
15874 # Old archive suffix (normally "a").
15877 # Shared library suffix (normally ".so").
15878 shrext_cmds=$lt_shrext_cmds
15880 # The commands to extract the exported symbol list from a shared archive.
15881 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15883 # Variables whose values should be saved in libtool wrapper scripts and
15884 # restored at link time.
15885 variables_saved_for_relink=$lt_variables_saved_for_relink
15887 # Do we need the "lib" prefix for modules?
15888 need_lib_prefix=$need_lib_prefix
15890 # Do we need a version for libraries?
15891 need_version=$need_version
15893 # Library versioning type.
15894 version_type=$version_type
15896 # Shared library runtime path variable.
15897 runpath_var=$runpath_var
15899 # Shared library path variable.
15900 shlibpath_var=$shlibpath_var
15902 # Is shlibpath searched before the hard-coded library search path?
15903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15905 # Format of library name prefix.
15906 libname_spec=$lt_libname_spec
15908 # List of archive names. First name is the real one, the rest are links.
15909 # The last name is the one that the linker finds with -lNAME
15910 library_names_spec=$lt_library_names_spec
15912 # The coded name of the library, if different from the real name.
15913 soname_spec=$lt_soname_spec
15915 # Permission mode override for installation of shared libraries.
15916 install_override_mode=$lt_install_override_mode
15918 # Command to use after installation of a shared archive.
15919 postinstall_cmds=$lt_postinstall_cmds
15921 # Command to use after uninstallation of a shared archive.
15922 postuninstall_cmds=$lt_postuninstall_cmds
15924 # Commands used to finish a libtool library installation in a directory.
15925 finish_cmds=$lt_finish_cmds
15927 # As "finish_cmds", except a single script fragment to be evaled but
15929 finish_eval=$lt_finish_eval
15931 # Whether we should hardcode library paths into libraries.
15932 hardcode_into_libs=$hardcode_into_libs
15934 # Compile-time system search path for libraries.
15935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15937 # Run-time system search path for libraries.
15938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15940 # Whether dlopen is supported.
15941 dlopen_support=$enable_dlopen
15943 # Whether dlopen of programs is supported.
15944 dlopen_self=$enable_dlopen_self
15946 # Whether dlopen of statically linked programs is supported.
15947 dlopen_self_static=$enable_dlopen_self_static
15949 # Commands to strip libraries.
15950 old_striplib=$lt_old_striplib
15951 striplib=$lt_striplib
15954 # The linker used to build libraries.
15957 # How to create reloadable object files.
15958 reload_flag=$lt_reload_flag
15959 reload_cmds=$lt_reload_cmds
15961 # Commands used to build an old-style archive.
15962 old_archive_cmds=$lt_old_archive_cmds
15964 # A language specific compiler.
15967 # Is the compiler the GNU compiler?
15970 # Compiler flag to turn off builtin functions.
15971 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15973 # How to pass a linker flag through the compiler.
15974 wl=$lt_lt_prog_compiler_wl
15976 # Additional compiler flags for building library objects.
15977 pic_flag=$lt_lt_prog_compiler_pic
15979 # Compiler flag to prevent dynamic linking.
15980 link_static_flag=$lt_lt_prog_compiler_static
15982 # Does compiler simultaneously support -c and -o options?
15983 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15985 # Whether or not to add -lc for building shared libraries.
15986 build_libtool_need_lc=$archive_cmds_need_lc
15988 # Whether or not to disallow shared libs when runtime libs are static.
15989 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15991 # Compiler flag to allow reflexive dlopens.
15992 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15994 # Compiler flag to generate shared objects directly from archives.
15995 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15997 # Whether the compiler copes with passing no objects directly.
15998 compiler_needs_object=$lt_compiler_needs_object
16000 # Create an old-style archive from a shared archive.
16001 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16003 # Create a temporary old-style archive to link instead of a shared archive.
16004 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16006 # Commands used to build a shared archive.
16007 archive_cmds=$lt_archive_cmds
16008 archive_expsym_cmds=$lt_archive_expsym_cmds
16010 # Commands used to build a loadable module if different from building
16011 # a shared archive.
16012 module_cmds=$lt_module_cmds
16013 module_expsym_cmds=$lt_module_expsym_cmds
16015 # Whether we are building with GNU ld or not.
16016 with_gnu_ld=$lt_with_gnu_ld
16018 # Flag that allows shared libraries with undefined symbols to be built.
16019 allow_undefined_flag=$lt_allow_undefined_flag
16021 # Flag that enforces no undefined symbols.
16022 no_undefined_flag=$lt_no_undefined_flag
16024 # Flag to hardcode \$libdir into a binary during linking.
16025 # This must work even if \$libdir does not exist
16026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16028 # If ld is used when linking, flag to hardcode \$libdir into a binary
16029 # during linking. This must work even if \$libdir does not exist.
16030 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16032 # Whether we need a single "-rpath" flag with a separated argument.
16033 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16035 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16036 # DIR into the resulting binary.
16037 hardcode_direct=$hardcode_direct
16039 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16040 # DIR into the resulting binary and the resulting library dependency is
16041 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16042 # library is relocated.
16043 hardcode_direct_absolute=$hardcode_direct_absolute
16045 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16046 # into the resulting binary.
16047 hardcode_minus_L=$hardcode_minus_L
16049 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16050 # into the resulting binary.
16051 hardcode_shlibpath_var=$hardcode_shlibpath_var
16053 # Set to "yes" if building a shared library automatically hardcodes DIR
16054 # into the library and all subsequent libraries and executables linked
16056 hardcode_automatic=$hardcode_automatic
16058 # Set to yes if linker adds runtime paths of dependent libraries
16059 # to runtime path list.
16060 inherit_rpath=$inherit_rpath
16062 # Whether libtool must link a program against all its dependency libraries.
16063 link_all_deplibs=$link_all_deplibs
16065 # Fix the shell variable \$srcfile for the compiler.
16066 fix_srcfile_path=$lt_fix_srcfile_path
16068 # Set to "yes" if exported symbols are required.
16069 always_export_symbols=$always_export_symbols
16071 # The commands to list exported symbols.
16072 export_symbols_cmds=$lt_export_symbols_cmds
16074 # Symbols that should not be listed in the preloaded symbols.
16075 exclude_expsyms=$lt_exclude_expsyms
16077 # Symbols that must always be exported.
16078 include_expsyms=$lt_include_expsyms
16080 # Commands necessary for linking programs (against libraries) with templates.
16081 prelink_cmds=$lt_prelink_cmds
16083 # Specify filename containing input files.
16084 file_list_spec=$lt_file_list_spec
16086 # How to hardcode a shared library path into an executable.
16087 hardcode_action=$hardcode_action
16089 # The directories searched by this compiler when creating a shared library.
16090 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16092 # Dependencies to place before and after the objects being linked to
16093 # create a shared library.
16094 predep_objects=$lt_predep_objects
16095 postdep_objects=$lt_postdep_objects
16096 predeps=$lt_predeps
16097 postdeps=$lt_postdeps
16099 # The library search path used internally by the compiler when linking
16100 # a shared library.
16101 compiler_lib_search_path=$lt_compiler_lib_search_path
16103 # ### END LIBTOOL CONFIG
16109 cat <<\_LT_EOF
>> "$cfgfile"
16110 # AIX sometimes has problems with the GCC collect2 program. For some
16111 # reason, if we set the COLLECT_NAMES environment variable, the problems
16112 # vanish in a puff of smoke.
16113 if test "X${COLLECT_NAMES+set}" != Xset
; then
16115 export COLLECT_NAMES
16122 ltmain
="$ac_aux_dir/ltmain.sh"
16125 # We use sed instead of cat because bash on DJGPP gets confused if
16126 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16127 # text mode, it properly converts lines to CR/LF. This bash problem
16128 # is reportedly fixed, but why not run on old versions too?
16129 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16130 ||
(rm -f "$cfgfile"; exit 1)
16134 cat << \_LT_EOF
>> "$cfgfile"
16136 # func_dirname file append nondir_replacement
16137 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16138 # otherwise set result to NONDIR_REPLACEMENT.
16142 */*) func_dirname_result
="${1%/*}${2}" ;;
16143 * ) func_dirname_result
="${3}" ;;
16147 # func_basename file
16150 func_basename_result
="${1##*/}"
16153 # func_dirname_and_basename file append nondir_replacement
16154 # perform func_basename and func_dirname in a single function
16156 # dirname: Compute the dirname of FILE. If nonempty,
16157 # add APPEND to the result, otherwise set result
16158 # to NONDIR_REPLACEMENT.
16159 # value returned in "$func_dirname_result"
16160 # basename: Compute filename of FILE.
16161 # value retuned in "$func_basename_result"
16162 # Implementation must be kept synchronized with func_dirname
16163 # and func_basename. For efficiency, we do not delegate to
16164 # those functions but instead duplicate the functionality here.
16165 func_dirname_and_basename
()
16168 */*) func_dirname_result
="${1%/*}${2}" ;;
16169 * ) func_dirname_result
="${3}" ;;
16171 func_basename_result
="${1##*/}"
16174 # func_stripname prefix suffix name
16175 # strip PREFIX and SUFFIX off of NAME.
16176 # PREFIX and SUFFIX must not contain globbing or regex special
16177 # characters, hashes, percent signs, but SUFFIX may contain a leading
16178 # dot (in which case that matches only a dot).
16181 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16182 # positional parameters, so assign one to ordinary parameter first.
16183 func_stripname_result
=${3}
16184 func_stripname_result
=${func_stripname_result#"${1}"}
16185 func_stripname_result
=${func_stripname_result%"${2}"}
16191 func_opt_split_opt
=${1%%=*}
16192 func_opt_split_arg
=${1#*=}
16199 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
16200 *) func_lo2o_result
=${1} ;;
16204 # func_xform libobj-or-source
16207 func_xform_result
=${1%.*}.lo
16210 # func_arith arithmetic-term...
16213 func_arith_result
=$
(( $
* ))
16217 # STRING may not start with a hyphen.
16220 func_len_result
=${#1}
16225 *) # Bourne compatible functions.
16226 cat << \_LT_EOF
>> "$cfgfile"
16228 # func_dirname file append nondir_replacement
16229 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16230 # otherwise set result to NONDIR_REPLACEMENT.
16233 # Extract subdirectory from the argument.
16234 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
16235 if test "X$func_dirname_result" = "X${1}"; then
16236 func_dirname_result
="${3}"
16238 func_dirname_result
="$func_dirname_result${2}"
16242 # func_basename file
16245 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
16249 # func_stripname prefix suffix name
16250 # strip PREFIX and SUFFIX off of NAME.
16251 # PREFIX and SUFFIX must not contain globbing or regex special
16252 # characters, hashes, percent signs, but SUFFIX may contain a leading
16253 # dot (in which case that matches only a dot).
16254 # func_strip_suffix prefix name
16258 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16259 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16264 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
16265 my_sed_long_arg
='1s/^-[^=]*=//'
16270 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16271 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16277 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
16280 # func_xform libobj-or-source
16283 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16286 # func_arith arithmetic-term...
16289 func_arith_result
=`expr "$@"`
16293 # STRING may not start with a hyphen.
16296 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16302 case $lt_shell_append in
16304 cat << \_LT_EOF
>> "$cfgfile"
16306 # func_append var value
16307 # Append VALUE to the end of shell variable VAR.
16315 cat << \_LT_EOF
>> "$cfgfile"
16317 # func_append var value
16318 # Append VALUE to the end of shell variable VAR.
16329 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16330 ||
(rm -f "$cfgfile"; exit 1)
16332 mv -f "$cfgfile" "$ofile" ||
16333 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16337 cat <<_LT_EOF >> "$ofile"
16339 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16341 # The linker used to build libraries.
16344 # How to create reloadable object files.
16345 reload_flag=$lt_reload_flag_CXX
16346 reload_cmds=$lt_reload_cmds_CXX
16348 # Commands used to build an old-style archive.
16349 old_archive_cmds=$lt_old_archive_cmds_CXX
16351 # A language specific compiler.
16352 CC=$lt_compiler_CXX
16354 # Is the compiler the GNU compiler?
16357 # Compiler flag to turn off builtin functions.
16358 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16360 # How to pass a linker flag through the compiler.
16361 wl=$lt_lt_prog_compiler_wl_CXX
16363 # Additional compiler flags for building library objects.
16364 pic_flag=$lt_lt_prog_compiler_pic_CXX
16366 # Compiler flag to prevent dynamic linking.
16367 link_static_flag=$lt_lt_prog_compiler_static_CXX
16369 # Does compiler simultaneously support -c and -o options?
16370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16372 # Whether or not to add -lc for building shared libraries.
16373 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16375 # Whether or not to disallow shared libs when runtime libs are static.
16376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16378 # Compiler flag to allow reflexive dlopens.
16379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16381 # Compiler flag to generate shared objects directly from archives.
16382 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16384 # Whether the compiler copes with passing no objects directly.
16385 compiler_needs_object=$lt_compiler_needs_object_CXX
16387 # Create an old-style archive from a shared archive.
16388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16390 # Create a temporary old-style archive to link instead of a shared archive.
16391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16393 # Commands used to build a shared archive.
16394 archive_cmds=$lt_archive_cmds_CXX
16395 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16397 # Commands used to build a loadable module if different from building
16398 # a shared archive.
16399 module_cmds=$lt_module_cmds_CXX
16400 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16402 # Whether we are building with GNU ld or not.
16403 with_gnu_ld=$lt_with_gnu_ld_CXX
16405 # Flag that allows shared libraries with undefined symbols to be built.
16406 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16408 # Flag that enforces no undefined symbols.
16409 no_undefined_flag=$lt_no_undefined_flag_CXX
16411 # Flag to hardcode \$libdir into a binary during linking.
16412 # This must work even if \$libdir does not exist
16413 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16415 # If ld is used when linking, flag to hardcode \$libdir into a binary
16416 # during linking. This must work even if \$libdir does not exist.
16417 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16419 # Whether we need a single "-rpath" flag with a separated argument.
16420 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16422 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16423 # DIR into the resulting binary.
16424 hardcode_direct=$hardcode_direct_CXX
16426 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16427 # DIR into the resulting binary and the resulting library dependency is
16428 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16429 # library is relocated.
16430 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16432 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16433 # into the resulting binary.
16434 hardcode_minus_L=$hardcode_minus_L_CXX
16436 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16437 # into the resulting binary.
16438 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16440 # Set to "yes" if building a shared library automatically hardcodes DIR
16441 # into the library and all subsequent libraries and executables linked
16443 hardcode_automatic=$hardcode_automatic_CXX
16445 # Set to yes if linker adds runtime paths of dependent libraries
16446 # to runtime path list.
16447 inherit_rpath=$inherit_rpath_CXX
16449 # Whether libtool must link a program against all its dependency libraries.
16450 link_all_deplibs=$link_all_deplibs_CXX
16452 # Fix the shell variable \$srcfile for the compiler.
16453 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16455 # Set to "yes" if exported symbols are required.
16456 always_export_symbols=$always_export_symbols_CXX
16458 # The commands to list exported symbols.
16459 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16461 # Symbols that should not be listed in the preloaded symbols.
16462 exclude_expsyms=$lt_exclude_expsyms_CXX
16464 # Symbols that must always be exported.
16465 include_expsyms=$lt_include_expsyms_CXX
16467 # Commands necessary for linking programs (against libraries) with templates.
16468 prelink_cmds=$lt_prelink_cmds_CXX
16470 # Specify filename containing input files.
16471 file_list_spec=$lt_file_list_spec_CXX
16473 # How to hardcode a shared library path into an executable.
16474 hardcode_action=$hardcode_action_CXX
16476 # The directories searched by this compiler when creating a shared library.
16477 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16479 # Dependencies to place before and after the objects being linked to
16480 # create a shared library.
16481 predep_objects=$lt_predep_objects_CXX
16482 postdep_objects=$lt_postdep_objects_CXX
16483 predeps=$lt_predeps_CXX
16484 postdeps=$lt_postdeps_CXX
16486 # The library search path used internally by the compiler when linking
16487 # a shared library.
16488 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16490 # ### END LIBTOOL TAG CONFIG: CXX
16496 chmod +x
"$CONFIG_LT"
16498 # configure is writing to config.log, but config.lt does its own redirection,
16499 # appending to config.log, which fails on DOS, as config.log is still kept
16500 # open by configure. Here we exec the FD to /dev/null, effectively closing
16501 # config.log, so it can be properly (re)opened and appended to by config.lt.
16503 test "$silent" = yes &&
16504 lt_config_lt_args
="$lt_config_lt_args --quiet"
16506 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success
=false
16508 $lt_cl_success || as_fn_exit
1
16511 # We require a C++17 compiler. Check if one is available, and if
16512 # necessary, set CXX_DIALECT to some -std=xxx switch.
16513 ax_cxx_compile_alternatives
="17 1z" ax_cxx_compile_cxx17_required
=true
16515 ac_cpp
='$CXXCPP $CPPFLAGS'
16516 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16517 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16518 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
16523 $as_echo_n "checking whether $CXX supports C++17 features by default... " >&6; }
16524 if ${ax_cv_cxx_compile_cxx17+:} false
; then :
16525 $as_echo_n "(cached) " >&6
16527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16528 /* end confdefs.h. */
16531 // If the compiler admits that it is not ready for C++11, why torture it?
16532 // Hopefully, this will speed up the test.
16534 #ifndef __cplusplus
16536 #error "This is not a C++ compiler"
16538 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
16539 // only set it correctly if /Zc:__cplusplus is specified as well as a
16540 // /std:c++NN switch:
16541 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
16542 #elif __cplusplus < 201103L && !defined _MSC_VER
16544 #error "This is not a C++11 compiler"
16551 namespace test_static_assert
16554 template <typename T>
16557 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16562 namespace test_final_override
16568 virtual void f() {}
16571 struct Derived : public Base
16573 virtual ~Derived() override {}
16574 virtual void f() override {}
16579 namespace test_double_right_angle_brackets
16582 template < typename T >
16585 typedef check<void> single_type;
16586 typedef check<check<void>> double_type;
16587 typedef check<check<check<void>>> triple_type;
16588 typedef check<check<check<check<void>>>> quadruple_type;
16592 namespace test_decltype
16605 namespace test_type_deduction
16608 template < typename T1, typename T2 >
16611 static const bool value = false;
16614 template < typename T >
16615 struct is_same<T, T>
16617 static const bool value = true;
16620 template < typename T1, typename T2 >
16622 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16628 test(const int c, volatile int v)
16630 static_assert(is_same<int, decltype(0)>::value == true, "");
16631 static_assert(is_same<int, decltype(c)>::value == false, "");
16632 static_assert(is_same<int, decltype(v)>::value == false, "");
16635 auto sumi = ac + av + 'x';
16636 auto sumf = ac + av + 1.0;
16637 static_assert(is_same<int, decltype(ac)>::value == true, "");
16638 static_assert(is_same<int, decltype(av)>::value == true, "");
16639 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16640 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16641 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16642 return (sumf > 0.0) ? sumi : add(c, v);
16647 namespace test_noexcept
16650 int f() { return 0; }
16651 int g() noexcept { return 0; }
16653 static_assert(noexcept(f()) == false, "");
16654 static_assert(noexcept(g()) == true, "");
16658 namespace test_constexpr
16661 template < typename CharT >
16662 unsigned long constexpr
16663 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16665 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16668 template < typename CharT >
16669 unsigned long constexpr
16670 strlen_c(const CharT *const s) noexcept
16672 return strlen_c_r(s, 0UL);
16675 static_assert(strlen_c("") == 0UL, "");
16676 static_assert(strlen_c("1") == 1UL, "");
16677 static_assert(strlen_c("example") == 7UL, "");
16678 static_assert(strlen_c("another\0example") == 7UL, "");
16682 namespace test_rvalue_references
16688 static constexpr int value = N;
16691 answer<1> f(int&) { return answer<1>(); }
16692 answer<2> f(const int&) { return answer<2>(); }
16693 answer<3> f(int&&) { return answer<3>(); }
16700 static_assert(decltype(f(i))::value == 1, "");
16701 static_assert(decltype(f(c))::value == 2, "");
16702 static_assert(decltype(f(0))::value == 3, "");
16707 namespace test_uniform_initialization
16712 static const int zero {};
16713 static const int one {1};
16716 static_assert(test::zero == 0, "");
16717 static_assert(test::one == 1, "");
16721 namespace test_lambdas
16727 auto lambda1 = [](){};
16728 auto lambda2 = lambda1;
16736 auto a = [](int i, int j){ return i + j; }(1, 2);
16737 auto b = []() -> int { return '0'; }();
16738 auto c = [=](){ return a + b; }();
16739 auto d = [&](){ return c; }();
16740 auto e = [a, &b](int x) mutable {
16741 const auto identity = [](int y){ return y; };
16742 for (auto i = 0; i < a; ++i)
16744 return x + identity(a + b);
16746 return a + b + c + d + e;
16752 const auto nullary = [](){ return 0; };
16753 const auto unary = [](int x){ return x; };
16754 using nullary_t = decltype(nullary);
16755 using unary_t = decltype(unary);
16756 const auto higher1st = [](nullary_t f){ return f(); };
16757 const auto higher2nd = [unary](nullary_t f1){
16758 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16760 return higher1st(nullary) + higher2nd(nullary)(unary);
16765 namespace test_variadic_templates
16771 template <int N0, int... N1toN>
16772 struct sum<N0, N1toN...>
16774 static constexpr auto value = N0 + sum<N1toN...>::value;
16780 static constexpr auto value = 0;
16783 static_assert(sum<>::value == 0, "");
16784 static_assert(sum<1>::value == 1, "");
16785 static_assert(sum<23>::value == 23, "");
16786 static_assert(sum<1, 2>::value == 3, "");
16787 static_assert(sum<5, 5, 11>::value == 21, "");
16788 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16792 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16793 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16794 // because of this.
16795 namespace test_template_alias_sfinae
16800 template<typename T>
16801 using member = typename T::member_type;
16803 template<typename T>
16806 template<typename T>
16807 void func(member<T>*) {}
16811 void test() { func<foo>(0); }
16815 } // namespace cxx11
16817 #endif // __cplusplus >= 201103L
16822 // If the compiler admits that it is not ready for C++14, why torture it?
16823 // Hopefully, this will speed up the test.
16825 #ifndef __cplusplus
16827 #error "This is not a C++ compiler"
16829 #elif __cplusplus < 201402L && !defined _MSC_VER
16831 #error "This is not a C++14 compiler"
16838 namespace test_polymorphic_lambdas
16844 const auto lambda = [](auto&&... args){
16845 const auto istiny = [](auto x){
16846 return (sizeof(x) == 1UL) ? 1 : 0;
16848 const int aretiny[] = { istiny(args)... };
16851 return lambda(1, 1L, 1.0f, '1');
16856 namespace test_binary_literals
16859 constexpr auto ivii = 0b0000000000101010;
16860 static_assert(ivii == 42, "wrong value");
16864 namespace test_generalized_constexpr
16867 template < typename CharT >
16868 constexpr unsigned long
16869 strlen_c(const CharT *const s) noexcept
16872 for (auto p = s; *p; ++p)
16877 static_assert(strlen_c("") == 0UL, "");
16878 static_assert(strlen_c("x") == 1UL, "");
16879 static_assert(strlen_c("test") == 4UL, "");
16880 static_assert(strlen_c("another\0test") == 7UL, "");
16884 namespace test_lambda_init_capture
16891 const auto lambda1 = [a = x](int b){ return a + b; };
16892 const auto lambda2 = [a = lambda1(x)](){ return a; };
16898 namespace test_digit_separators
16901 constexpr auto ten_million = 100'000'000;
16902 static_assert(ten_million == 100000000, "");
16906 namespace test_return_type_deduction
16909 auto f(int& x) { return x; }
16910 decltype(auto) g(int& x) { return x; }
16912 template < typename T1, typename T2 >
16915 static constexpr auto value = false;
16918 template < typename T >
16919 struct is_same<T, T>
16921 static constexpr auto value = true;
16928 static_assert(is_same<int, decltype(f(x))>::value, "");
16929 static_assert(is_same<int&, decltype(g(x))>::value, "");
16935 } // namespace cxx14
16937 #endif // __cplusplus >= 201402L
16942 // If the compiler admits that it is not ready for C++17, why torture it?
16943 // Hopefully, this will speed up the test.
16945 #ifndef __cplusplus
16947 #error "This is not a C++ compiler"
16949 #elif __cplusplus < 201703L && !defined _MSC_VER
16951 #error "This is not a C++17 compiler"
16955 #include <initializer_list>
16957 #include <type_traits>
16962 namespace test_constexpr_lambdas
16965 constexpr int foo = [](){return 42;}();
16969 namespace test::nested_namespace::definitions
16974 namespace test_fold_expression
16977 template<typename... Args>
16978 int multiply(Args... args)
16980 return (args * ... * 1);
16983 template<typename... Args>
16984 bool all(Args... args)
16986 return (args && ...);
16991 namespace test_extended_static_assert
16994 static_assert (true);
16998 namespace test_auto_brace_init_list
17004 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
17005 static_assert(std::is_same<int, decltype(bar)>::value);
17008 namespace test_typename_in_template_template_parameter
17011 template<template<typename> typename X> struct D;
17015 namespace test_fallthrough_nodiscard_maybe_unused_attributes
17023 [[nodiscard]] int f2()
17025 [[maybe_unused]] auto unused = f1();
17040 namespace test_extended_aggregate_initialization
17056 struct derived : base1, base2
17061 derived d1 {{1, 2}, {}, 4}; // full initialization
17062 derived d2 {{}, {}, 4}; // value-initialized bases
17066 namespace test_general_range_based_for_loop
17078 const int& operator* () const
17095 bool operator== (const iter& i, const sentinel& s)
17100 bool operator!= (const iter& i, const sentinel& s)
17112 sentinel end() const
17124 [[maybe_unused]] auto v = i;
17130 namespace test_lambda_capture_asterisk_this_by_value
17147 namespace test_enum_class_construction
17150 enum class byte : unsigned char
17157 namespace test_constexpr_if
17160 template <bool cond>
17175 namespace test_selection_statement_with_initializer
17185 if (auto i = f(); i > 0)
17190 switch (auto i = f(); i + 4)
17202 namespace test_template_argument_deduction_for_class_templates
17205 template <typename T1, typename T2>
17208 pair (T1 p1, T2 p2)
17219 [[maybe_unused]] auto p = pair{13, 42u};
17224 namespace test_non_type_auto_template_parameters
17236 namespace test_structured_bindings
17239 int arr[2] = { 1, 2 };
17240 std::pair<int, int> pr = { 1, 2 };
17242 auto f1() -> int(&)[2]
17247 auto f2() -> std::pair<int, int>&
17255 volatile double y1;
17263 auto [ x1, y1 ] = f1();
17264 auto& [ xr1, yr1 ] = f1();
17265 auto [ x2, y2 ] = f2();
17266 auto& [ xr2, yr2 ] = f2();
17267 const auto [ x3, y3 ] = f3();
17271 namespace test_exception_spec_type_system
17277 void g1() noexcept;
17280 template<typename T>
17284 template<typename T1, typename T2>
17288 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
17292 namespace test_inline_variables
17295 template<class T> void f(T)
17298 template<class T> inline T g(T)
17303 template<> inline void f<>(int)
17306 template<> int g<>(int)
17313 } // namespace cxx17
17315 #endif // __cplusplus < 201703L && !defined _MSC_VER
17320 if ac_fn_cxx_try_compile
"$LINENO"; then :
17321 ax_cv_cxx_compile_cxx17
=yes
17323 ax_cv_cxx_compile_cxx17
=no
17325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
17328 $as_echo "$ax_cv_cxx_compile_cxx17" >&6; }
17329 if test x
$ax_cv_cxx_compile_cxx17 = xyes
; then
17333 if test x
$ac_success = xno
; then
17334 for alternative
in ${ax_cxx_compile_alternatives}; do
17335 switch
="-std=gnu++${alternative}"
17336 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
17338 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
17339 if eval \
${$cachevar+:} false
; then :
17340 $as_echo_n "(cached) " >&6
17344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17348 // If the compiler admits that it is not ready for C++11, why torture it?
17349 // Hopefully, this will speed up the test.
17351 #ifndef __cplusplus
17353 #error "This is not a C++ compiler"
17355 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
17356 // only set it correctly if /Zc:__cplusplus is specified as well as a
17357 // /std:c++NN switch:
17358 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
17359 #elif __cplusplus < 201103L && !defined _MSC_VER
17361 #error "This is not a C++11 compiler"
17368 namespace test_static_assert
17371 template <typename T>
17374 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17379 namespace test_final_override
17385 virtual void f() {}
17388 struct Derived : public Base
17390 virtual ~Derived() override {}
17391 virtual void f() override {}
17396 namespace test_double_right_angle_brackets
17399 template < typename T >
17402 typedef check<void> single_type;
17403 typedef check<check<void>> double_type;
17404 typedef check<check<check<void>>> triple_type;
17405 typedef check<check<check<check<void>>>> quadruple_type;
17409 namespace test_decltype
17422 namespace test_type_deduction
17425 template < typename T1, typename T2 >
17428 static const bool value = false;
17431 template < typename T >
17432 struct is_same<T, T>
17434 static const bool value = true;
17437 template < typename T1, typename T2 >
17439 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17445 test(const int c, volatile int v)
17447 static_assert(is_same<int, decltype(0)>::value == true, "");
17448 static_assert(is_same<int, decltype(c)>::value == false, "");
17449 static_assert(is_same<int, decltype(v)>::value == false, "");
17452 auto sumi = ac + av + 'x';
17453 auto sumf = ac + av + 1.0;
17454 static_assert(is_same<int, decltype(ac)>::value == true, "");
17455 static_assert(is_same<int, decltype(av)>::value == true, "");
17456 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17457 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17458 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17459 return (sumf > 0.0) ? sumi : add(c, v);
17464 namespace test_noexcept
17467 int f() { return 0; }
17468 int g() noexcept { return 0; }
17470 static_assert(noexcept(f()) == false, "");
17471 static_assert(noexcept(g()) == true, "");
17475 namespace test_constexpr
17478 template < typename CharT >
17479 unsigned long constexpr
17480 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17482 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17485 template < typename CharT >
17486 unsigned long constexpr
17487 strlen_c(const CharT *const s) noexcept
17489 return strlen_c_r(s, 0UL);
17492 static_assert(strlen_c("") == 0UL, "");
17493 static_assert(strlen_c("1") == 1UL, "");
17494 static_assert(strlen_c("example") == 7UL, "");
17495 static_assert(strlen_c("another\0example") == 7UL, "");
17499 namespace test_rvalue_references
17505 static constexpr int value = N;
17508 answer<1> f(int&) { return answer<1>(); }
17509 answer<2> f(const int&) { return answer<2>(); }
17510 answer<3> f(int&&) { return answer<3>(); }
17517 static_assert(decltype(f(i))::value == 1, "");
17518 static_assert(decltype(f(c))::value == 2, "");
17519 static_assert(decltype(f(0))::value == 3, "");
17524 namespace test_uniform_initialization
17529 static const int zero {};
17530 static const int one {1};
17533 static_assert(test::zero == 0, "");
17534 static_assert(test::one == 1, "");
17538 namespace test_lambdas
17544 auto lambda1 = [](){};
17545 auto lambda2 = lambda1;
17553 auto a = [](int i, int j){ return i + j; }(1, 2);
17554 auto b = []() -> int { return '0'; }();
17555 auto c = [=](){ return a + b; }();
17556 auto d = [&](){ return c; }();
17557 auto e = [a, &b](int x) mutable {
17558 const auto identity = [](int y){ return y; };
17559 for (auto i = 0; i < a; ++i)
17561 return x + identity(a + b);
17563 return a + b + c + d + e;
17569 const auto nullary = [](){ return 0; };
17570 const auto unary = [](int x){ return x; };
17571 using nullary_t = decltype(nullary);
17572 using unary_t = decltype(unary);
17573 const auto higher1st = [](nullary_t f){ return f(); };
17574 const auto higher2nd = [unary](nullary_t f1){
17575 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17577 return higher1st(nullary) + higher2nd(nullary)(unary);
17582 namespace test_variadic_templates
17588 template <int N0, int... N1toN>
17589 struct sum<N0, N1toN...>
17591 static constexpr auto value = N0 + sum<N1toN...>::value;
17597 static constexpr auto value = 0;
17600 static_assert(sum<>::value == 0, "");
17601 static_assert(sum<1>::value == 1, "");
17602 static_assert(sum<23>::value == 23, "");
17603 static_assert(sum<1, 2>::value == 3, "");
17604 static_assert(sum<5, 5, 11>::value == 21, "");
17605 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17609 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17610 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17611 // because of this.
17612 namespace test_template_alias_sfinae
17617 template<typename T>
17618 using member = typename T::member_type;
17620 template<typename T>
17623 template<typename T>
17624 void func(member<T>*) {}
17628 void test() { func<foo>(0); }
17632 } // namespace cxx11
17634 #endif // __cplusplus >= 201103L
17639 // If the compiler admits that it is not ready for C++14, why torture it?
17640 // Hopefully, this will speed up the test.
17642 #ifndef __cplusplus
17644 #error "This is not a C++ compiler"
17646 #elif __cplusplus < 201402L && !defined _MSC_VER
17648 #error "This is not a C++14 compiler"
17655 namespace test_polymorphic_lambdas
17661 const auto lambda = [](auto&&... args){
17662 const auto istiny = [](auto x){
17663 return (sizeof(x) == 1UL) ? 1 : 0;
17665 const int aretiny[] = { istiny(args)... };
17668 return lambda(1, 1L, 1.0f, '1');
17673 namespace test_binary_literals
17676 constexpr auto ivii = 0b0000000000101010;
17677 static_assert(ivii == 42, "wrong value");
17681 namespace test_generalized_constexpr
17684 template < typename CharT >
17685 constexpr unsigned long
17686 strlen_c(const CharT *const s) noexcept
17689 for (auto p = s; *p; ++p)
17694 static_assert(strlen_c("") == 0UL, "");
17695 static_assert(strlen_c("x") == 1UL, "");
17696 static_assert(strlen_c("test") == 4UL, "");
17697 static_assert(strlen_c("another\0test") == 7UL, "");
17701 namespace test_lambda_init_capture
17708 const auto lambda1 = [a = x](int b){ return a + b; };
17709 const auto lambda2 = [a = lambda1(x)](){ return a; };
17715 namespace test_digit_separators
17718 constexpr auto ten_million = 100'000'000;
17719 static_assert(ten_million == 100000000, "");
17723 namespace test_return_type_deduction
17726 auto f(int& x) { return x; }
17727 decltype(auto) g(int& x) { return x; }
17729 template < typename T1, typename T2 >
17732 static constexpr auto value = false;
17735 template < typename T >
17736 struct is_same<T, T>
17738 static constexpr auto value = true;
17745 static_assert(is_same<int, decltype(f(x))>::value, "");
17746 static_assert(is_same<int&, decltype(g(x))>::value, "");
17752 } // namespace cxx14
17754 #endif // __cplusplus >= 201402L
17759 // If the compiler admits that it is not ready for C++17, why torture it?
17760 // Hopefully, this will speed up the test.
17762 #ifndef __cplusplus
17764 #error "This is not a C++ compiler"
17766 #elif __cplusplus < 201703L && !defined _MSC_VER
17768 #error "This is not a C++17 compiler"
17772 #include <initializer_list>
17774 #include <type_traits>
17779 namespace test_constexpr_lambdas
17782 constexpr int foo = [](){return 42;}();
17786 namespace test::nested_namespace::definitions
17791 namespace test_fold_expression
17794 template<typename... Args>
17795 int multiply(Args... args)
17797 return (args * ... * 1);
17800 template<typename... Args>
17801 bool all(Args... args)
17803 return (args && ...);
17808 namespace test_extended_static_assert
17811 static_assert (true);
17815 namespace test_auto_brace_init_list
17821 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
17822 static_assert(std::is_same<int, decltype(bar)>::value);
17825 namespace test_typename_in_template_template_parameter
17828 template<template<typename> typename X> struct D;
17832 namespace test_fallthrough_nodiscard_maybe_unused_attributes
17840 [[nodiscard]] int f2()
17842 [[maybe_unused]] auto unused = f1();
17857 namespace test_extended_aggregate_initialization
17873 struct derived : base1, base2
17878 derived d1 {{1, 2}, {}, 4}; // full initialization
17879 derived d2 {{}, {}, 4}; // value-initialized bases
17883 namespace test_general_range_based_for_loop
17895 const int& operator* () const
17912 bool operator== (const iter& i, const sentinel& s)
17917 bool operator!= (const iter& i, const sentinel& s)
17929 sentinel end() const
17941 [[maybe_unused]] auto v = i;
17947 namespace test_lambda_capture_asterisk_this_by_value
17964 namespace test_enum_class_construction
17967 enum class byte : unsigned char
17974 namespace test_constexpr_if
17977 template <bool cond>
17992 namespace test_selection_statement_with_initializer
18002 if (auto i = f(); i > 0)
18007 switch (auto i = f(); i + 4)
18019 namespace test_template_argument_deduction_for_class_templates
18022 template <typename T1, typename T2>
18025 pair (T1 p1, T2 p2)
18036 [[maybe_unused]] auto p = pair{13, 42u};
18041 namespace test_non_type_auto_template_parameters
18053 namespace test_structured_bindings
18056 int arr[2] = { 1, 2 };
18057 std::pair<int, int> pr = { 1, 2 };
18059 auto f1() -> int(&)[2]
18064 auto f2() -> std::pair<int, int>&
18072 volatile double y1;
18080 auto [ x1, y1 ] = f1();
18081 auto& [ xr1, yr1 ] = f1();
18082 auto [ x2, y2 ] = f2();
18083 auto& [ xr2, yr2 ] = f2();
18084 const auto [ x3, y3 ] = f3();
18088 namespace test_exception_spec_type_system
18094 void g1() noexcept;
18097 template<typename T>
18101 template<typename T1, typename T2>
18105 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
18109 namespace test_inline_variables
18112 template<class T> void f(T)
18115 template<class T> inline T g(T)
18120 template<> inline void f<>(int)
18123 template<> int g<>(int)
18130 } // namespace cxx17
18132 #endif // __cplusplus < 201703L && !defined _MSC_VER
18137 if ac_fn_cxx_try_compile
"$LINENO"; then :
18142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18145 eval ac_res
=\$
$cachevar
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18147 $as_echo "$ac_res" >&6; }
18148 if eval test x\$
$cachevar = xyes
; then
18149 CXX_DIALECT
="$switch"
18151 if test -n "$CXXCPP" ; then
18152 CXXCPP
="$CXXCPP $switch"
18160 if test x
$ac_success = xno
; then
18161 for alternative
in ${ax_cxx_compile_alternatives}; do
18162 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
18163 if test x"$switch" = xMSVC; then
18164 switch=-std:c++${alternative}
18165 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_
${switch}_MSVC
" | $as_tr_sh`
18167 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_
$switch" | $as_tr_sh`
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++17 features with
$switch" >&5
18170 $as_echo_n "checking whether
$CXX supports C
++17 features with
$switch...
" >&6; }
18171 if eval \${$cachevar+:} false; then :
18172 $as_echo_n "(cached
) " >&6
18176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h. */
18180 // If the compiler admits that it is not ready for C++11, why torture it?
18181 // Hopefully, this will speed up the test.
18183 #ifndef __cplusplus
18185 #error "This is not a C
++ compiler
"
18187 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
18188 // only set it correctly if /Zc:__cplusplus is specified as well as a
18189 // /std:c++NN switch:
18190 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
18191 #elif __cplusplus < 201103L && !defined _MSC_VER
18193 #error "This is not a C
++11 compiler
"
18200 namespace test_static_assert
18203 template <typename T>
18206 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
18211 namespace test_final_override
18217 virtual void f() {}
18220 struct Derived : public Base
18222 virtual ~Derived() override {}
18223 virtual void f() override {}
18228 namespace test_double_right_angle_brackets
18231 template < typename T >
18234 typedef check<void> single_type;
18235 typedef check<check<void>> double_type;
18236 typedef check<check<check<void>>> triple_type;
18237 typedef check<check<check<check<void>>>> quadruple_type;
18241 namespace test_decltype
18254 namespace test_type_deduction
18257 template < typename T1, typename T2 >
18260 static const bool value = false;
18263 template < typename T >
18264 struct is_same<T, T>
18266 static const bool value = true;
18269 template < typename T1, typename T2 >
18271 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18277 test(const int c, volatile int v)
18279 static_assert(is_same<int, decltype(0)>::value == true, "");
18280 static_assert(is_same<int, decltype(c)>::value == false, "");
18281 static_assert(is_same<int, decltype(v)>::value == false, "");
18284 auto sumi = ac + av + 'x';
18285 auto sumf = ac + av + 1.0;
18286 static_assert(is_same<int, decltype(ac)>::value == true, "");
18287 static_assert(is_same<int, decltype(av)>::value == true, "");
18288 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18289 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18290 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18291 return (sumf > 0.0) ? sumi : add(c, v);
18296 namespace test_noexcept
18299 int f() { return 0; }
18300 int g() noexcept { return 0; }
18302 static_assert(noexcept(f()) == false, "");
18303 static_assert(noexcept(g()) == true, "");
18307 namespace test_constexpr
18310 template < typename CharT >
18311 unsigned long constexpr
18312 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18314 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18317 template < typename CharT >
18318 unsigned long constexpr
18319 strlen_c(const CharT *const s) noexcept
18321 return strlen_c_r(s, 0UL);
18324 static_assert(strlen_c("") == 0UL, "");
18325 static_assert(strlen_c("1") == 1UL, "");
18326 static_assert(strlen_c("example
") == 7UL, "");
18327 static_assert(strlen_c("another\
0example
") == 7UL, "");
18331 namespace test_rvalue_references
18337 static constexpr int value = N;
18340 answer<1> f(int&) { return answer<1>(); }
18341 answer<2> f(const int&) { return answer<2>(); }
18342 answer<3> f(int&&) { return answer<3>(); }
18349 static_assert(decltype(f(i))::value == 1, "");
18350 static_assert(decltype(f(c))::value == 2, "");
18351 static_assert(decltype(f(0))::value == 3, "");
18356 namespace test_uniform_initialization
18361 static const int zero {};
18362 static const int one {1};
18365 static_assert(test::zero == 0, "");
18366 static_assert(test::one == 1, "");
18370 namespace test_lambdas
18376 auto lambda1 = [](){};
18377 auto lambda2 = lambda1;
18385 auto a = [](int i, int j){ return i + j; }(1, 2);
18386 auto b = []() -> int { return '0'; }();
18387 auto c = [=](){ return a + b; }();
18388 auto d = [&](){ return c; }();
18389 auto e = [a, &b](int x) mutable {
18390 const auto identity = [](int y){ return y; };
18391 for (auto i = 0; i < a; ++i)
18393 return x + identity(a + b);
18395 return a + b + c + d + e;
18401 const auto nullary = [](){ return 0; };
18402 const auto unary = [](int x){ return x; };
18403 using nullary_t = decltype(nullary);
18404 using unary_t = decltype(unary);
18405 const auto higher1st = [](nullary_t f){ return f(); };
18406 const auto higher2nd = [unary](nullary_t f1){
18407 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18409 return higher1st(nullary) + higher2nd(nullary)(unary);
18414 namespace test_variadic_templates
18420 template <int N0, int... N1toN>
18421 struct sum<N0, N1toN...>
18423 static constexpr auto value = N0 + sum<N1toN...>::value;
18429 static constexpr auto value = 0;
18432 static_assert(sum<>::value == 0, "");
18433 static_assert(sum<1>::value == 1, "");
18434 static_assert(sum<23>::value == 23, "");
18435 static_assert(sum<1, 2>::value == 3, "");
18436 static_assert(sum<5, 5, 11>::value == 21, "");
18437 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18441 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18442 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18443 // because of this.
18444 namespace test_template_alias_sfinae
18449 template<typename T>
18450 using member = typename T::member_type;
18452 template<typename T>
18455 template<typename T>
18456 void func(member<T>*) {}
18460 void test() { func<foo>(0); }
18464 } // namespace cxx11
18466 #endif // __cplusplus >= 201103L
18471 // If the compiler admits that it is not ready for C++14, why torture it?
18472 // Hopefully, this will speed up the test.
18474 #ifndef __cplusplus
18476 #error "This is not a C
++ compiler
"
18478 #elif __cplusplus < 201402L && !defined _MSC_VER
18480 #error "This is not a C
++14 compiler
"
18487 namespace test_polymorphic_lambdas
18493 const auto lambda = [](auto&&... args){
18494 const auto istiny = [](auto x){
18495 return (sizeof(x) == 1UL) ? 1 : 0;
18497 const int aretiny[] = { istiny(args)... };
18500 return lambda(1, 1L, 1.0f, '1');
18505 namespace test_binary_literals
18508 constexpr auto ivii = 0b0000000000101010;
18509 static_assert(ivii == 42, "wrong value
");
18513 namespace test_generalized_constexpr
18516 template < typename CharT >
18517 constexpr unsigned long
18518 strlen_c(const CharT *const s) noexcept
18521 for (auto p = s; *p; ++p)
18526 static_assert(strlen_c("") == 0UL, "");
18527 static_assert(strlen_c("x
") == 1UL, "");
18528 static_assert(strlen_c("test") == 4UL, "");
18529 static_assert(strlen_c("another\
0test") == 7UL, "");
18533 namespace test_lambda_init_capture
18540 const auto lambda1 = [a = x](int b){ return a + b; };
18541 const auto lambda2 = [a = lambda1(x)](){ return a; };
18547 namespace test_digit_separators
18550 constexpr auto ten_million = 100'000'000;
18551 static_assert(ten_million == 100000000, "");
18555 namespace test_return_type_deduction
18558 auto f(int& x) { return x; }
18559 decltype(auto) g(int& x) { return x; }
18561 template < typename T1, typename T2 >
18564 static constexpr auto value = false;
18567 template < typename T >
18568 struct is_same<T, T>
18570 static constexpr auto value = true;
18577 static_assert(is_same<int, decltype(f(x))>::value, "");
18578 static_assert(is_same<int&, decltype(g(x))>::value, "");
18584 } // namespace cxx14
18586 #endif // __cplusplus >= 201402L
18591 // If the compiler admits that it is not ready for C++17, why torture it?
18592 // Hopefully, this will speed up the test.
18594 #ifndef __cplusplus
18596 #error "This is not a C
++ compiler
"
18598 #elif __cplusplus < 201703L && !defined _MSC_VER
18600 #error "This is not a C
++17 compiler
"
18604 #include <initializer_list>
18606 #include <type_traits>
18611 namespace test_constexpr_lambdas
18614 constexpr int foo = [](){return 42;}();
18618 namespace test::nested_namespace::definitions
18623 namespace test_fold_expression
18626 template<typename... Args>
18627 int multiply(Args... args)
18629 return (args * ... * 1);
18632 template<typename... Args>
18633 bool all(Args... args)
18635 return (args && ...);
18640 namespace test_extended_static_assert
18643 static_assert (true);
18647 namespace test_auto_brace_init_list
18653 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
18654 static_assert(std::is_same<int, decltype(bar)>::value);
18657 namespace test_typename_in_template_template_parameter
18660 template<template<typename> typename X> struct D;
18664 namespace test_fallthrough_nodiscard_maybe_unused_attributes
18672 [[nodiscard]] int f2()
18674 [[maybe_unused]] auto unused = f1();
18689 namespace test_extended_aggregate_initialization
18705 struct derived : base1, base2
18710 derived d1 {{1, 2}, {}, 4}; // full initialization
18711 derived d2 {{}, {}, 4}; // value-initialized bases
18715 namespace test_general_range_based_for_loop
18727 const int& operator* () const
18744 bool operator== (const iter& i, const sentinel& s)
18749 bool operator!= (const iter& i, const sentinel& s)
18761 sentinel end() const
18773 [[maybe_unused]] auto v = i;
18779 namespace test_lambda_capture_asterisk_this_by_value
18796 namespace test_enum_class_construction
18799 enum class byte : unsigned char
18806 namespace test_constexpr_if
18809 template <bool cond>
18824 namespace test_selection_statement_with_initializer
18834 if (auto i = f(); i > 0)
18839 switch (auto i = f(); i + 4)
18851 namespace test_template_argument_deduction_for_class_templates
18854 template <typename T1, typename T2>
18857 pair (T1 p1, T2 p2)
18868 [[maybe_unused]] auto p = pair{13, 42u};
18873 namespace test_non_type_auto_template_parameters
18885 namespace test_structured_bindings
18888 int arr[2] = { 1, 2 };
18889 std::pair<int, int> pr = { 1, 2 };
18891 auto f1() -> int(&)[2]
18896 auto f2() -> std::pair<int, int>&
18904 volatile double y1;
18912 auto [ x1, y1 ] = f1();
18913 auto& [ xr1, yr1 ] = f1();
18914 auto [ x2, y2 ] = f2();
18915 auto& [ xr2, yr2 ] = f2();
18916 const auto [ x3, y3 ] = f3();
18920 namespace test_exception_spec_type_system
18926 void g1() noexcept;
18929 template<typename T>
18933 template<typename T1, typename T2>
18937 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
18941 namespace test_inline_variables
18944 template<class T> void f(T)
18947 template<class T> inline T g(T)
18952 template<> inline void f<>(int)
18955 template<> int g<>(int)
18962 } // namespace cxx17
18964 #endif // __cplusplus < 201703L && !defined _MSC_VER
18969 if ac_fn_cxx_try_compile "$LINENO"; then :
18974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18977 eval ac_res=\$$cachevar
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
18979 $as_echo "$ac_res" >&6; }
18980 if eval test x\$$cachevar = xyes; then
18981 CXX_DIALECT="$switch"
18983 if test -n "$CXXCPP" ; then
18984 CXXCPP="$CXXCPP $switch"
18990 if test x$ac_success = xyes; then
18996 ac_cpp='$CPP $CPPFLAGS'
18997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19001 if test x$ax_cxx_compile_cxx17_required = xtrue; then
19002 if test x$ac_success = xno; then
19003 as_fn_error $? "*** A compiler with support
for C
++17 language features is required.
" "$LINENO" 5
19006 if test x$ac_success = xno; then
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++17 support was found
" >&5
19009 $as_echo "$as_me: No compiler with C
++17 support was found
" >&6;}
19013 $as_echo "#define HAVE_CXX17 1" >>confdefs.h
19020 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19021 if test "x$ac_cv_type_size_t" = xyes
; then :
19025 cat >>confdefs.h
<<_ACEOF
19026 #define size_t unsigned int
19034 for ac_header
in $ac_header_list
19036 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19037 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19039 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
19040 cat >>confdefs.h
<<_ACEOF
19041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19054 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19055 if test "x$ac_cv_type_pid_t" = xyes
; then :
19059 cat >>confdefs.h
<<_ACEOF
19066 if test "X$prefix" = "XNONE"; then
19067 acl_final_prefix
="$ac_default_prefix"
19069 acl_final_prefix
="$prefix"
19071 if test "X$exec_prefix" = "XNONE"; then
19072 acl_final_exec_prefix
='${prefix}'
19074 acl_final_exec_prefix
="$exec_prefix"
19076 acl_save_prefix
="$prefix"
19077 prefix
="$acl_final_prefix"
19078 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
19079 prefix
="$acl_save_prefix"
19082 # Check whether --with-gnu-ld was given.
19083 if test "${with_gnu_ld+set}" = set; then :
19084 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19089 # Prepare PATH_SEPARATOR.
19090 # The user is always right.
19091 if test "${PATH_SEPARATOR+set}" != set; then
19092 echo "#! /bin/sh" >conf$$.sh
19093 echo "exit 0" >>conf$$.sh
19095 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19103 if test "$GCC" = yes; then
19104 # Check if gcc -print-prog-name=ld gives a path.
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
19106 $as_echo_n "checking for ld used by GCC... " >&6; }
19109 # gcc leaves a trailing carriage return which upsets mingw
19110 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19112 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19115 # Accept absolute paths.
19116 [\\/]* |
[A-Za-z
]:[\\/]*)
19117 re_direlt
='/[^/][^/]*/\.\./'
19118 # Canonicalize the path of ld
19119 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
19120 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
19121 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
19123 test -z "$LD" && LD
="$ac_prog"
19126 # If it fails, then pretend we aren't using GCC.
19130 # If it is relative, then search for the first ld in PATH.
19131 with_gnu_ld
=unknown
19134 elif test "$with_gnu_ld" = yes; then
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19136 $as_echo_n "checking for GNU ld... " >&6; }
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19139 $as_echo_n "checking for non-GNU ld... " >&6; }
19141 if ${acl_cv_path_LD+:} false
; then :
19142 $as_echo_n "(cached) " >&6
19144 if test -z "$LD"; then
19145 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19146 for ac_dir
in $PATH; do
19147 test -z "$ac_dir" && ac_dir
=.
19148 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19149 acl_cv_path_LD
="$ac_dir/$ac_prog"
19150 # Check to see if the program is GNU ld. I'd rather use --version,
19151 # but apparently some GNU ld's only accept -v.
19152 # Break only if it was the GNU/non-GNU ld that we prefer.
19153 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
19154 test "$with_gnu_ld" != no
&& break
19156 test "$with_gnu_ld" != yes && break
19162 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
19166 LD
="$acl_cv_path_LD"
19167 if test -n "$LD"; then
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19169 $as_echo "$LD" >&6; }
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19172 $as_echo "no" >&6; }
19174 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19176 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19177 if ${acl_cv_prog_gnu_ld+:} false
; then :
19178 $as_echo_n "(cached) " >&6
19180 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19181 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
19182 acl_cv_prog_gnu_ld
=yes
19184 acl_cv_prog_gnu_ld
=no
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19188 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
19189 with_gnu_ld
=$acl_cv_prog_gnu_ld
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19194 $as_echo_n "checking for shared library run path origin... " >&6; }
19195 if ${acl_cv_rpath+:} false
; then :
19196 $as_echo_n "(cached) " >&6
19199 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
19200 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19202 rm -f .
/conftest.sh
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19207 $as_echo "$acl_cv_rpath" >&6; }
19209 libext
="$acl_cv_libext"
19210 shlibext
="$acl_cv_shlibext"
19211 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
19212 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
19213 hardcode_direct
="$acl_cv_hardcode_direct"
19214 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
19215 # Check whether --enable-rpath was given.
19216 if test "${enable_rpath+set}" = set; then :
19217 enableval
=$enable_rpath; :
19224 # Set the 'development' global.
19225 .
$srcdir/..
/bfd
/development.sh
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19228 $as_echo_n "checking for ANSI C header files... " >&6; }
19229 if ${ac_cv_header_stdc+:} false
; then :
19230 $as_echo_n "(cached) " >&6
19232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19233 /* end confdefs.h. */
19234 #include <stdlib.h>
19235 #include <stdarg.h>
19236 #include <string.h>
19247 if ac_fn_c_try_compile
"$LINENO"; then :
19248 ac_cv_header_stdc
=yes
19250 ac_cv_header_stdc
=no
19252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19254 if test $ac_cv_header_stdc = yes; then
19255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19257 /* end confdefs.h. */
19258 #include <string.h>
19261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19262 $EGREP "memchr" >/dev
/null
2>&1; then :
19265 ac_cv_header_stdc
=no
19271 if test $ac_cv_header_stdc = yes; then
19272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19275 #include <stdlib.h>
19278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19279 $EGREP "free" >/dev
/null
2>&1; then :
19282 ac_cv_header_stdc
=no
19288 if test $ac_cv_header_stdc = yes; then
19289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19290 if test "$cross_compiling" = yes; then :
19293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h. */
19296 #include <stdlib.h>
19297 #if ((' ' & 0x0FF) == 0x020)
19298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19301 # define ISLOWER(c) \
19302 (('a' <= (c) && (c) <= 'i') \
19303 || ('j' <= (c) && (c) <= 'r') \
19304 || ('s' <= (c) && (c) <= 'z'))
19305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19313 for (i = 0; i < 256; i++)
19314 if (XOR (islower (i), ISLOWER (i))
19315 || toupper (i) != TOUPPER (i))
19320 if ac_fn_c_try_run
"$LINENO"; then :
19323 ac_cv_header_stdc
=no
19325 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19326 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19332 $as_echo "$ac_cv_header_stdc" >&6; }
19333 if test $ac_cv_header_stdc = yes; then
19335 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19339 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19340 # for constant arguments. Useless!
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19342 $as_echo_n "checking for working alloca.h... " >&6; }
19343 if ${ac_cv_working_alloca_h+:} false
; then :
19344 $as_echo_n "(cached) " >&6
19346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19347 /* end confdefs.h. */
19348 #include <alloca.h>
19352 char *p = (char *) alloca (2 * sizeof (int));
19358 if ac_fn_c_try_link
"$LINENO"; then :
19359 ac_cv_working_alloca_h
=yes
19361 ac_cv_working_alloca_h
=no
19363 rm -f core conftest.err conftest.
$ac_objext \
19364 conftest
$ac_exeext conftest.
$ac_ext
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19367 $as_echo "$ac_cv_working_alloca_h" >&6; }
19368 if test $ac_cv_working_alloca_h = yes; then
19370 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19375 $as_echo_n "checking for alloca... " >&6; }
19376 if ${ac_cv_func_alloca_works+:} false
; then :
19377 $as_echo_n "(cached) " >&6
19379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19380 /* end confdefs.h. */
19382 # define alloca __builtin_alloca
19385 # include <malloc.h>
19386 # define alloca _alloca
19388 # ifdef HAVE_ALLOCA_H
19389 # include <alloca.h>
19394 # ifndef alloca /* predefined by HP cc +Olibcalls */
19395 void *alloca (size_t);
19405 char *p = (char *) alloca (1);
19411 if ac_fn_c_try_link
"$LINENO"; then :
19412 ac_cv_func_alloca_works
=yes
19414 ac_cv_func_alloca_works
=no
19416 rm -f core conftest.err conftest.
$ac_objext \
19417 conftest
$ac_exeext conftest.
$ac_ext
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19420 $as_echo "$ac_cv_func_alloca_works" >&6; }
19422 if test $ac_cv_func_alloca_works = yes; then
19424 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19427 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19428 # that cause trouble. Some versions do not even contain alloca or
19429 # contain a buggy version. If you still want to use their alloca,
19430 # use ar to extract alloca.o from them instead of compiling alloca.c.
19432 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
19434 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19438 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19439 if ${ac_cv_os_cray+:} false
; then :
19440 $as_echo_n "(cached) " >&6
19442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19443 /* end confdefs.h. */
19444 #if defined CRAY && ! defined CRAY2
19451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19452 $EGREP "webecray" >/dev
/null
2>&1; then :
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19461 $as_echo "$ac_cv_os_cray" >&6; }
19462 if test $ac_cv_os_cray = yes; then
19463 for ac_func
in _getb67 GETB67 getb67
; do
19464 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19465 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19466 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
19468 cat >>confdefs.h
<<_ACEOF
19469 #define CRAY_STACKSEG_END $ac_func
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19479 $as_echo_n "checking stack direction for C alloca... " >&6; }
19480 if ${ac_cv_c_stack_direction+:} false
; then :
19481 $as_echo_n "(cached) " >&6
19483 if test "$cross_compiling" = yes; then :
19484 ac_cv_c_stack_direction
=0
19486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19487 /* end confdefs.h. */
19488 $ac_includes_default
19490 find_stack_direction (int *addr, int depth)
19492 int dir, dummy = 0;
19495 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19496 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19497 return dir + dummy;
19501 main (int argc, char **argv)
19503 return find_stack_direction (0, argc + !argv + 20) < 0;
19506 if ac_fn_c_try_run
"$LINENO"; then :
19507 ac_cv_c_stack_direction
=1
19509 ac_cv_c_stack_direction
=-1
19511 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19512 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19517 $as_echo "$ac_cv_c_stack_direction" >&6; }
19518 cat >>confdefs.h
<<_ACEOF
19519 #define STACK_DIRECTION $ac_cv_c_stack_direction
19530 $as_echo "#define USE_WIN32API 1" >>confdefs.h
19532 WIN32APILIBS
="-lws2_32"
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19538 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19539 if ${am_cv_langinfo_codeset+:} false
; then :
19540 $as_echo_n "(cached) " >&6
19542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h. */
19544 #include <langinfo.h>
19548 char* cs = nl_langinfo(CODESET);
19553 if ac_fn_c_try_link
"$LINENO"; then :
19554 am_cv_langinfo_codeset
=yes
19556 am_cv_langinfo_codeset
=no
19558 rm -f core conftest.err conftest.
$ac_objext \
19559 conftest
$ac_exeext conftest.
$ac_ext
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19563 $as_echo "$am_cv_langinfo_codeset" >&6; }
19564 if test $am_cv_langinfo_codeset = yes; then
19566 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19574 linux
/perf_event.h \
19591 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19592 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19593 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
19594 cat >>confdefs.h
<<_ACEOF
19595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19604 for ac_func
in getpagesize
19606 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19607 if test "x$ac_cv_func_getpagesize" = xyes
; then :
19608 cat >>confdefs.h
<<_ACEOF
19609 #define HAVE_GETPAGESIZE 1
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19616 $as_echo_n "checking for working mmap... " >&6; }
19617 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
19618 $as_echo_n "(cached) " >&6
19620 if test "$cross_compiling" = yes; then :
19621 ac_cv_func_mmap_fixed_mapped
=no
19623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19624 /* end confdefs.h. */
19625 $ac_includes_default
19626 /* malloc might have been renamed as rpl_malloc. */
19629 /* Thanks to Mike Haertel and Jim Avera for this test.
19630 Here is a matrix of mmap possibilities:
19631 mmap private not fixed
19632 mmap private fixed at somewhere currently unmapped
19633 mmap private fixed at somewhere already mapped
19634 mmap shared not fixed
19635 mmap shared fixed at somewhere currently unmapped
19636 mmap shared fixed at somewhere already mapped
19637 For private mappings, we should verify that changes cannot be read()
19638 back from the file, nor mmap's back from the file at a different
19639 address. (There have been systems where private was not correctly
19640 implemented like the infamous i386 svr4.0, and systems where the
19641 VM page cache was not coherent with the file system buffer cache
19642 like early versions of FreeBSD and possibly contemporary NetBSD.)
19643 For shared mappings, we should conversely verify that changes get
19644 propagated back to all the places they're supposed to be.
19646 Grep wants private fixed already mapped.
19647 The main things grep needs to know about mmap are:
19648 * does it exist and is it safe to write into the mmap'd area
19649 * how to use it (BSD variants) */
19652 #include <sys/mman.h>
19654 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19658 /* This mess was copied from the GNU getpagesize.h. */
19659 #ifndef HAVE_GETPAGESIZE
19660 # ifdef _SC_PAGESIZE
19661 # define getpagesize() sysconf(_SC_PAGESIZE)
19662 # else /* no _SC_PAGESIZE */
19663 # ifdef HAVE_SYS_PARAM_H
19664 # include <sys/param.h>
19665 # ifdef EXEC_PAGESIZE
19666 # define getpagesize() EXEC_PAGESIZE
19667 # else /* no EXEC_PAGESIZE */
19669 # define getpagesize() NBPG * CLSIZE
19672 # endif /* no CLSIZE */
19673 # else /* no NBPG */
19675 # define getpagesize() NBPC
19676 # else /* no NBPC */
19678 # define getpagesize() PAGESIZE
19679 # endif /* PAGESIZE */
19680 # endif /* no NBPC */
19681 # endif /* no NBPG */
19682 # endif /* no EXEC_PAGESIZE */
19683 # else /* no HAVE_SYS_PARAM_H */
19684 # define getpagesize() 8192 /* punt totally */
19685 # endif /* no HAVE_SYS_PARAM_H */
19686 # endif /* no _SC_PAGESIZE */
19688 #endif /* no HAVE_GETPAGESIZE */
19693 char *data, *data2, *data3;
19694 const char *cdata2;
19698 pagesize = getpagesize ();
19700 /* First, make a file with some known garbage in it. */
19701 data = (char *) malloc (pagesize);
19704 for (i = 0; i < pagesize; ++i)
19705 *(data + i) = rand ();
19707 fd = creat ("conftest.mmap", 0600);
19710 if (write (fd, data, pagesize) != pagesize)
19714 /* Next, check that the tail of a page is zero-filled. File must have
19715 non-zero length, otherwise we risk SIGBUS for entire page. */
19716 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19720 if (write (fd2, cdata2, 1) != 1)
19722 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19723 if (data2 == MAP_FAILED)
19725 for (i = 0; i < pagesize; ++i)
19729 if (munmap (data2, pagesize))
19732 /* Next, try to mmap the file at a fixed address which already has
19733 something else allocated at it. If we can, also make sure that
19734 we see the same garbage. */
19735 fd = open ("conftest.mmap", O_RDWR);
19738 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19739 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19741 for (i = 0; i < pagesize; ++i)
19742 if (*(data + i) != *(data2 + i))
19745 /* Finally, make sure that changes to the mapped area do not
19746 percolate back to the file as seen by read(). (This is a bug on
19747 some variants of i386 svr4.0.) */
19748 for (i = 0; i < pagesize; ++i)
19749 *(data2 + i) = *(data2 + i) + 1;
19750 data3 = (char *) malloc (pagesize);
19753 if (read (fd, data3, pagesize) != pagesize)
19755 for (i = 0; i < pagesize; ++i)
19756 if (*(data + i) != *(data3 + i))
19762 if ac_fn_c_try_run
"$LINENO"; then :
19763 ac_cv_func_mmap_fixed_mapped
=yes
19765 ac_cv_func_mmap_fixed_mapped
=no
19767 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19768 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19773 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19774 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19776 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19779 rm -f conftest.mmap conftest.txt
19781 for ac_header
in vfork.h
19783 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19784 if test "x$ac_cv_header_vfork_h" = xyes
; then :
19785 cat >>confdefs.h
<<_ACEOF
19786 #define HAVE_VFORK_H 1
19793 for ac_func
in fork vfork
19795 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19796 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19797 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
19798 cat >>confdefs.h
<<_ACEOF
19799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19805 if test "x$ac_cv_func_fork" = xyes
; then
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19807 $as_echo_n "checking for working fork... " >&6; }
19808 if ${ac_cv_func_fork_works+:} false
; then :
19809 $as_echo_n "(cached) " >&6
19811 if test "$cross_compiling" = yes; then :
19812 ac_cv_func_fork_works
=cross
19814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19815 /* end confdefs.h. */
19816 $ac_includes_default
19821 /* By Ruediger Kuhlmann. */
19822 return fork () < 0;
19828 if ac_fn_c_try_run
"$LINENO"; then :
19829 ac_cv_func_fork_works
=yes
19831 ac_cv_func_fork_works
=no
19833 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19834 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19839 $as_echo "$ac_cv_func_fork_works" >&6; }
19842 ac_cv_func_fork_works
=$ac_cv_func_fork
19844 if test "x$ac_cv_func_fork_works" = xcross
; then
19846 *-*-amigaos* |
*-*-msdosdjgpp*)
19847 # Override, as these systems have only a dummy fork() stub
19848 ac_cv_func_fork_works
=no
19851 ac_cv_func_fork_works
=yes
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19855 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19857 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19858 if test "x$ac_cv_func_vfork" = xyes
; then
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19860 $as_echo_n "checking for working vfork... " >&6; }
19861 if ${ac_cv_func_vfork_works+:} false
; then :
19862 $as_echo_n "(cached) " >&6
19864 if test "$cross_compiling" = yes; then :
19865 ac_cv_func_vfork_works
=cross
19867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19868 /* end confdefs.h. */
19869 /* Thanks to Paul Eggert for this test. */
19870 $ac_includes_default
19871 #include <sys/wait.h>
19872 #ifdef HAVE_VFORK_H
19873 # include <vfork.h>
19875 /* On some sparc systems, changes by the child to local and incoming
19876 argument registers are propagated back to the parent. The compiler
19877 is told about this with #include <vfork.h>, but some compilers
19878 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19879 static variable whose address is put into a register that is
19880 clobbered by the vfork. */
19883 sparc_address_test (int arg)
19885 sparc_address_test (arg) int arg;
19888 static pid_t child;
19906 pid_t parent = getpid ();
19909 sparc_address_test (0);
19914 /* Here is another test for sparc vfork register problems. This
19915 test uses lots of local variables, at least as many local
19916 variables as main has allocated so far including compiler
19917 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19918 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19919 reuse the register of parent for one of the local variables,
19920 since it will think that parent can't possibly be used any more
19921 in this routine. Assigning to the local variable will thus
19922 munge parent in the parent process. */
19924 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19925 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19926 /* Convince the compiler that p..p7 are live; otherwise, it might
19927 use the same hardware register for all 8 local variables. */
19928 if (p != p1 || p != p2 || p != p3 || p != p4
19929 || p != p5 || p != p6 || p != p7)
19932 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19933 from child file descriptors. If the child closes a descriptor
19934 before it execs or exits, this munges the parent's descriptor
19935 as well. Test for this by closing stdout in the child. */
19936 _exit(close(fileno(stdout)) != 0);
19941 while (wait(&status) != child)
19944 /* Was there some problem with vforking? */
19947 /* Did the child fail? (This shouldn't happen.) */
19950 /* Did the vfork/compiler bug occur? */
19951 || parent != getpid()
19953 /* Did the file descriptor bug occur? */
19954 || fstat(fileno(stdout), &st) != 0
19959 if ac_fn_c_try_run
"$LINENO"; then :
19960 ac_cv_func_vfork_works
=yes
19962 ac_cv_func_vfork_works
=no
19964 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19965 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19970 $as_echo "$ac_cv_func_vfork_works" >&6; }
19973 if test "x$ac_cv_func_fork_works" = xcross
; then
19974 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19976 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19979 if test "x$ac_cv_func_vfork_works" = xyes
; then
19981 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19985 $as_echo "#define vfork fork" >>confdefs.h
19988 if test "x$ac_cv_func_fork_works" = xyes
; then
19990 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19994 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
19996 $as_echo_n "checking for library containing socketpair... " >&6; }
19997 if ${ac_cv_search_socketpair+:} false
; then :
19998 $as_echo_n "(cached) " >&6
20000 ac_func_search_save_LIBS
=$LIBS
20001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h. */
20004 /* Override any GCC internal prototype to avoid an error.
20005 Use char because int might match the return type of a GCC
20006 builtin and then its argument prototype would still apply. */
20010 char socketpair ();
20014 return socketpair ();
20019 for ac_lib
in '' socket
; do
20020 if test -z "$ac_lib"; then
20021 ac_res
="none required"
20024 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20026 if ac_fn_c_try_link
"$LINENO"; then :
20027 ac_cv_search_socketpair
=$ac_res
20029 rm -f core conftest.err conftest.
$ac_objext \
20031 if ${ac_cv_search_socketpair+:} false
; then :
20035 if ${ac_cv_search_socketpair+:} false
; then :
20038 ac_cv_search_socketpair
=no
20040 rm conftest.
$ac_ext
20041 LIBS
=$ac_func_search_save_LIBS
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
20044 $as_echo "$ac_cv_search_socketpair" >&6; }
20045 ac_res
=$ac_cv_search_socketpair
20046 if test "$ac_res" != no
; then :
20047 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20071 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20072 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20073 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
20074 cat >>confdefs.h
<<_ACEOF
20075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20082 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
20083 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
20084 # only in linux/personality.h.
20085 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
20087 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
20093 cat >>confdefs.h
<<_ACEOF
20094 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
20098 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
20099 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
20105 cat >>confdefs.h
<<_ACEOF
20106 #define HAVE_DECL_STRSTR $ac_have_decl
20110 # ----------------------- #
20111 # Checks for structures. #
20112 # ----------------------- #
20114 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
20115 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
20117 cat >>confdefs.h
<<_ACEOF
20118 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20123 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
20124 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
20126 cat >>confdefs.h
<<_ACEOF
20127 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20134 # On FreeBSD we need libutil for the kinfo_get* functions. On
20135 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
20136 # Figure out which one to use.
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
20138 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
20139 if ${ac_cv_search_kinfo_getfile+:} false
; then :
20140 $as_echo_n "(cached) " >&6
20142 ac_func_search_save_LIBS
=$LIBS
20143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20146 /* Override any GCC internal prototype to avoid an error.
20147 Use char because int might match the return type of a GCC
20148 builtin and then its argument prototype would still apply. */
20152 char kinfo_getfile ();
20156 return kinfo_getfile ();
20161 for ac_lib
in '' util util-freebsd
; do
20162 if test -z "$ac_lib"; then
20163 ac_res
="none required"
20166 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20168 if ac_fn_c_try_link
"$LINENO"; then :
20169 ac_cv_search_kinfo_getfile
=$ac_res
20171 rm -f core conftest.err conftest.
$ac_objext \
20173 if ${ac_cv_search_kinfo_getfile+:} false
; then :
20177 if ${ac_cv_search_kinfo_getfile+:} false
; then :
20180 ac_cv_search_kinfo_getfile
=no
20182 rm conftest.
$ac_ext
20183 LIBS
=$ac_func_search_save_LIBS
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
20186 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
20187 ac_res
=$ac_cv_search_kinfo_getfile
20188 if test "$ac_res" != no
; then :
20189 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20194 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
20195 for ac_func
in kinfo_getfile
20197 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
20198 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
20199 cat >>confdefs.h
<<_ACEOF
20200 #define HAVE_KINFO_GETFILE 1
20207 # ----------------------- #
20208 # Check for threading. #
20209 # ----------------------- #
20211 # Check whether --enable-threading was given.
20212 if test "${enable_threading+set}" = set; then :
20213 enableval
=$enable_threading; case "$enableval" in
20214 yes) want_threading
=yes ;;
20215 no
) want_threading
=no
;;
20216 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
20219 want_threading
=auto
20223 # Check for std::thread. This does not work on some platforms, like
20224 # mingw using the win32 threads model with gcc older than 13, and
20227 ac_cpp
='$CXXCPP $CPPFLAGS'
20228 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20237 ac_cpp
='$CPP $CPPFLAGS'
20238 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20239 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20240 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20244 # We used to check for pthread.h first, but this fails if pthread.h
20245 # requires special compiler flags (e.g. on Tru64 or Sequent).
20246 # It gets checked for in the link test anyway.
20248 # First of all, check if the user has set any of the PTHREAD_LIBS,
20249 # etcetera environment variables, and if threads linking works using
20251 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
20252 ax_pthread_save_CC
="$CC"
20253 ax_pthread_save_CFLAGS
="$CFLAGS"
20254 ax_pthread_save_LIBS
="$LIBS"
20255 if test "x$PTHREAD_CC" != "x"; then :
20258 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
20259 LIBS
="$PTHREAD_LIBS $LIBS"
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
20261 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
20262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20263 /* end confdefs.h. */
20265 /* Override any GCC internal prototype to avoid an error.
20266 Use char because int might match the return type of a GCC
20267 builtin and then its argument prototype would still apply. */
20271 char pthread_join ();
20275 return pthread_join ();
20280 if ac_fn_c_try_link
"$LINENO"; then :
20283 rm -f core conftest.err conftest.
$ac_objext \
20284 conftest
$ac_exeext conftest.
$ac_ext
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20286 $as_echo "$ax_pthread_ok" >&6; }
20287 if test "x$ax_pthread_ok" = "xno"; then
20291 CC
="$ax_pthread_save_CC"
20292 CFLAGS
="$ax_pthread_save_CFLAGS"
20293 LIBS
="$ax_pthread_save_LIBS"
20296 # We must check for the threads library under a number of different
20297 # names; the ordering is very important because some systems
20298 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20299 # libraries is broken (non-POSIX).
20301 # Create a list of thread flags to try. Items starting with a "-" are
20302 # C compiler flags, and other items are library names, except for "none"
20303 # which indicates that we try without any flags at all, and "pthread-config"
20304 # which is a program returning the flags for the Pth emulation library.
20306 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20308 # The ordering *is* (sometimes) important. Some notes on the
20309 # individual items follow:
20311 # pthreads: AIX (must check this before -lpthread)
20312 # none: in case threads are in libc; should be tried before -Kthread and
20313 # other compiler flags to prevent continual compiler warnings
20314 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20315 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
20316 # (Note: HP C rejects this with "bad form for `-t' option")
20317 # -pthreads: Solaris/gcc (Note: HP C also rejects)
20318 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20319 # doesn't hurt to check since this sometimes defines pthreads and
20320 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
20321 # is present but should not be used directly; and before -mthreads,
20322 # because the compiler interprets this as "-mt" + "-hreads")
20323 # -mthreads: Mingw32/gcc, Lynx/gcc
20324 # pthread: Linux, etcetera
20325 # --thread-safe: KAI C++
20326 # pthread-config: use pthread-config program (for GNU Pth library)
20332 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20333 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20335 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
20340 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
20341 # multi-threading and also sets -lpthread."
20343 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
20348 # IBM z/OS requires a feature-test macro to be defined in order to
20349 # enable POSIX threads at all, so give the user a hint if this is
20350 # not set. (We don't define these ourselves, as they can affect
20351 # other portions of the system API in unpredictable ways.)
20353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h. */
20356 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20357 AX_PTHREAD_ZOS_MISSING
20361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20362 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20364 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20372 # On Solaris (at least, for some versions), libc contains stubbed
20373 # (non-functional) versions of the pthreads routines, so link-based
20374 # tests will erroneously succeed. (N.B.: The stubs are missing
20375 # pthread_cleanup_push, or rather a function called by this macro,
20376 # so we could check for that, but who knows whether they'll stub
20377 # that too in a future libc.) So we'll check first for the
20378 # standard Solaris way of linking pthreads (-mt -lpthread).
20380 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
20384 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20386 if test "x$GCC" = "xyes"; then :
20387 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
20390 # The presence of a feature test macro requesting re-entrant function
20391 # definitions is, on some systems, a strong hint that pthreads support is
20392 # correctly enabled
20395 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
20396 ax_pthread_check_macro
="_REENTRANT"
20400 ax_pthread_check_macro
="_THREAD_SAFE"
20404 ax_pthread_check_macro
="--"
20407 if test "x$ax_pthread_check_macro" = "x--"; then :
20408 ax_pthread_check_cond
=0
20410 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
20413 # Are we compiling with Clang?
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20416 $as_echo_n "checking whether $CC is Clang... " >&6; }
20417 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
20418 $as_echo_n "(cached) " >&6
20420 ax_cv_PTHREAD_CLANG
=no
20421 # Note that Autoconf sets GCC=yes for Clang as well as GCC
20422 if test "x$GCC" = "xyes"; then
20423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h. */
20425 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20426 # if defined(__clang__) && defined(__llvm__)
20427 AX_PTHREAD_CC_IS_CLANG
20431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20432 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
20433 ax_cv_PTHREAD_CLANG
=yes
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20441 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20442 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
20444 ax_pthread_clang_warning
=no
20446 # Clang needs special handling, because older versions handle the -pthread
20447 # option in a rather... idiosyncratic way
20449 if test "x$ax_pthread_clang" = "xyes"; then
20451 # Clang takes -pthread; it has never supported any other flag
20453 # (Note 1: This will need to be revisited if a system that Clang
20454 # supports has POSIX threads in a separate library. This tends not
20455 # to be the way of modern systems, but it's conceivable.)
20457 # (Note 2: On some systems, notably Darwin, -pthread is not needed
20458 # to get POSIX threads support; the API is always present and
20459 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
20460 # -pthread does define _REENTRANT, and while the Darwin headers
20461 # ignore this macro, third-party headers might not.)
20463 PTHREAD_CFLAGS
="-pthread"
20468 # However, older versions of Clang make a point of warning the user
20469 # that, in an invocation where only linking and no compilation is
20470 # taking place, the -pthread option has no effect ("argument unused
20471 # during compilation"). They expect -pthread to be passed in only
20472 # when source code is being compiled.
20474 # Problem is, this is at odds with the way Automake and most other
20475 # C build frameworks function, which is that the same flags used in
20476 # compilation (CFLAGS) are also used in linking. Many systems
20477 # supported by AX_PTHREAD require exactly this for POSIX threads
20478 # support, and in fact it is often not straightforward to specify a
20479 # flag that is used only in the compilation phase and not in
20480 # linking. Such a scenario is extremely rare in practice.
20482 # Even though use of the -pthread flag in linking would only print
20483 # a warning, this can be a nuisance for well-run software projects
20484 # that build with -Werror. So if the active version of Clang has
20485 # this misfeature, we search for an option to squash it.
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20488 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20489 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
20490 $as_echo_n "(cached) " >&6
20492 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
20493 # Create an alternate version of $ac_link that compiles and
20494 # links in two steps (.c -> .o, .o -> exe) instead of one
20495 # (.c -> exe), because the warning occurs only in the second
20497 ax_pthread_save_ac_link
="$ac_link"
20498 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20499 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20500 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20501 ax_pthread_save_CFLAGS
="$CFLAGS"
20502 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
20503 if test "x$ax_pthread_try" = "xunknown"; then :
20506 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20507 ac_link
="$ax_pthread_save_ac_link"
20508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h. */
20510 int main(void){return 0;}
20512 if ac_fn_c_try_link
"$LINENO"; then :
20513 ac_link
="$ax_pthread_2step_ac_link"
20514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h. */
20516 int main(void){return 0;}
20518 if ac_fn_c_try_link
"$LINENO"; then :
20521 rm -f core conftest.err conftest.
$ac_objext \
20522 conftest
$ac_exeext conftest.
$ac_ext
20525 rm -f core conftest.err conftest.
$ac_objext \
20526 conftest
$ac_exeext conftest.
$ac_ext
20528 ac_link
="$ax_pthread_save_ac_link"
20529 CFLAGS
="$ax_pthread_save_CFLAGS"
20530 if test "x$ax_pthread_try" = "x"; then :
20533 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20537 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20539 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20541 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20544 fi # $ax_pthread_clang = yes
20546 if test "x$ax_pthread_ok" = "xno"; then
20547 for ax_pthread_try_flag
in $ax_pthread_flags; do
20549 case $ax_pthread_try_flag in
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20552 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20557 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20558 PTHREAD_CFLAGS
="-mt"
20559 PTHREAD_LIBS
="-lpthread"
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20564 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20565 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
20569 # Extract the first word of "pthread-config", so it can be a program name with args.
20570 set dummy pthread-config
; ac_word
=$2
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20572 $as_echo_n "checking for $ac_word... " >&6; }
20573 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
20574 $as_echo_n "(cached) " >&6
20576 if test -n "$ax_pthread_config"; then
20577 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
20579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20580 for as_dir
in $PATH
20583 test -z "$as_dir" && as_dir
=.
20584 for ac_exec_ext
in '' $ac_executable_extensions; do
20585 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20586 ac_cv_prog_ax_pthread_config
="yes"
20587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20594 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
20597 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
20598 if test -n "$ax_pthread_config"; then
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20600 $as_echo "$ax_pthread_config" >&6; }
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20603 $as_echo "no" >&6; }
20607 if test "x$ax_pthread_config" = "xno"; then :
20610 PTHREAD_CFLAGS
="`pthread-config --cflags`"
20611 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20616 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20617 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
20621 ax_pthread_save_CFLAGS
="$CFLAGS"
20622 ax_pthread_save_LIBS
="$LIBS"
20623 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
20624 LIBS
="$PTHREAD_LIBS $LIBS"
20626 # Check for various functions. We must include pthread.h,
20627 # since some functions may be macros. (On the Sequent, we
20628 # need a special flag -Kthread to make this header compile.)
20629 # We check for pthread_join because it is in -lpthread on IRIX
20630 # while pthread_create is in libc. We check for pthread_attr_init
20631 # due to DEC craziness with -lpthreads. We check for
20632 # pthread_cleanup_push because it is one of the few pthread
20633 # functions on Solaris that doesn't have a non-functional libc stub.
20634 # We try pthread_create on general principles.
20636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20637 /* end confdefs.h. */
20638 #include <pthread.h>
20639 # if $ax_pthread_check_cond
20640 # error "$ax_pthread_check_macro must be defined"
20642 static void routine(void *a) { a = 0; }
20643 static void *start_routine(void *a) { return a; }
20647 pthread_t th; pthread_attr_t attr;
20648 pthread_create(&th, 0, start_routine, 0);
20649 pthread_join(th, 0);
20650 pthread_attr_init(&attr);
20651 pthread_cleanup_push(routine, 0);
20652 pthread_cleanup_pop(0) /* ; */
20657 if ac_fn_c_try_link
"$LINENO"; then :
20660 rm -f core conftest.err conftest.
$ac_objext \
20661 conftest
$ac_exeext conftest.
$ac_ext
20663 CFLAGS
="$ax_pthread_save_CFLAGS"
20664 LIBS
="$ax_pthread_save_LIBS"
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20667 $as_echo "$ax_pthread_ok" >&6; }
20668 if test "x$ax_pthread_ok" = "xyes"; then :
20677 # Various other checks:
20678 if test "x$ax_pthread_ok" = "xyes"; then
20679 ax_pthread_save_CFLAGS
="$CFLAGS"
20680 ax_pthread_save_LIBS
="$LIBS"
20681 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
20682 LIBS
="$PTHREAD_LIBS $LIBS"
20684 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20686 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20687 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
20688 $as_echo_n "(cached) " >&6
20690 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
20691 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
20692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20693 /* end confdefs.h. */
20694 #include <pthread.h>
20698 int attr = $ax_pthread_attr; return attr /* ; */
20703 if ac_fn_c_try_link
"$LINENO"; then :
20704 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
20706 rm -f core conftest.err conftest.
$ac_objext \
20707 conftest
$ac_exeext conftest.
$ac_ext
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20712 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20713 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20714 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20715 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20717 cat >>confdefs.h
<<_ACEOF
20718 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20721 ax_pthread_joinable_attr_defined
=yes
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20726 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20727 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
20728 $as_echo_n "(cached) " >&6
20730 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
20733 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20739 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20740 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20741 test "x$ax_pthread_special_flags_added" != "xyes"; then :
20742 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20743 ax_pthread_special_flags_added
=yes
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20747 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20748 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
20749 $as_echo_n "(cached) " >&6
20751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20752 /* end confdefs.h. */
20753 #include <pthread.h>
20757 int i = PTHREAD_PRIO_INHERIT;
20762 if ac_fn_c_try_link
"$LINENO"; then :
20763 ax_cv_PTHREAD_PRIO_INHERIT
=yes
20765 ax_cv_PTHREAD_PRIO_INHERIT
=no
20767 rm -f core conftest.err conftest.
$ac_objext \
20768 conftest
$ac_exeext conftest.
$ac_ext
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20772 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20773 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20774 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20776 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20778 ax_pthread_prio_inherit_defined
=yes
20782 CFLAGS
="$ax_pthread_save_CFLAGS"
20783 LIBS
="$ax_pthread_save_LIBS"
20785 # More AIX lossage: compile with *_r variant
20786 if test "x$GCC" != "xyes"; then
20790 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
20791 #handle absolute path differently from PATH based program lookup
20794 if as_fn_executable_p
${CC}_r
; then :
20795 PTHREAD_CC
="${CC}_r"
20798 for ac_prog
in ${CC}_r
20800 # Extract the first word of "$ac_prog", so it can be a program name with args.
20801 set dummy
$ac_prog; ac_word
=$2
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20803 $as_echo_n "checking for $ac_word... " >&6; }
20804 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
20805 $as_echo_n "(cached) " >&6
20807 if test -n "$PTHREAD_CC"; then
20808 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
20810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20811 for as_dir
in $PATH
20814 test -z "$as_dir" && as_dir
=.
20815 for ac_exec_ext
in '' $ac_executable_extensions; do
20816 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20817 ac_cv_prog_PTHREAD_CC
="$ac_prog"
20818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20827 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
20828 if test -n "$PTHREAD_CC"; then
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20830 $as_echo "$PTHREAD_CC" >&6; }
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20833 $as_echo "no" >&6; }
20837 test -n "$PTHREAD_CC" && break
20839 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
20850 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
20856 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20857 if test "x$ax_pthread_ok" = "xyes"; then
20865 ac_cpp
='$CXXCPP $CPPFLAGS'
20866 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20867 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20868 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20872 LIBS
="$PTHREAD_LIBS $LIBS"
20873 save_CXXFLAGS
="$CXXFLAGS"
20874 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
20876 $as_echo_n "checking for std::thread... " >&6; }
20877 if ${gdb_cv_cxx_std_thread+:} false
; then :
20878 $as_echo_n "(cached) " >&6
20880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20881 /* end confdefs.h. */
20882 #if defined (__MINGW32__) || defined (__CYGWIN__)
20883 # ifdef _WIN32_WINNT
20884 # if _WIN32_WINNT < 0x0501
20885 # undef _WIN32_WINNT
20886 # define _WIN32_WINNT 0x0501
20889 # define _WIN32_WINNT 0x0501
20891 #endif /* __MINGW32__ || __CYGWIN__ */
20894 void callback() { }
20898 std::thread t(callback);
20903 if ac_fn_cxx_try_compile
"$LINENO"; then :
20904 gdb_cv_cxx_std_thread
=yes
20906 gdb_cv_cxx_std_thread
=no
20908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
20911 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
20913 if test "$threads" = "yes"; then
20914 # This check must be here, while LIBS includes any necessary
20915 # threading library.
20916 for ac_func
in pthread_sigmask pthread_setname_np
20918 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20919 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20920 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
20921 cat >>confdefs.h
<<_ACEOF
20922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20930 CXXFLAGS
="$save_CXXFLAGS"
20932 if test "$want_threading" != "no"; then
20933 if test "$gdb_cv_cxx_std_thread" = "yes"; then
20935 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
20938 if test "$want_threading" = "yes"; then
20939 as_fn_error $?
"std::thread does not work; disable threading" "$LINENO" 5
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: std::thread does not work; disabling threading" >&5
20942 $as_echo "$as_me: WARNING: std::thread does not work; disabling threading" >&2;}
20947 ac_cpp
='$CPP $CPPFLAGS'
20948 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20949 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20950 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
20954 $as_echo_n "checking for sigsetjmp... " >&6; }
20955 if ${gdb_cv_func_sigsetjmp+:} false
; then :
20956 $as_echo_n "(cached) " >&6
20958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20959 /* end confdefs.h. */
20960 #include <setjmp.h>
20965 while (! sigsetjmp (env, 1))
20966 siglongjmp (env, 1);
20972 if ac_fn_c_try_compile
"$LINENO"; then :
20973 gdb_cv_func_sigsetjmp
=yes
20975 gdb_cv_func_sigsetjmp
=no
20978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
20982 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
20983 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
20985 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
20990 # Check whether --with-intel_pt was given.
20991 if test "${with_intel_pt+set}" = set; then :
20992 withval
=$with_intel_pt;
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
20998 $as_echo_n "checking whether to use intel pt... " >&6; }
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
21000 $as_echo "$with_intel_pt" >&6; }
21002 if test "${with_intel_pt}" = no
; then
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
21004 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
21007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21008 /* end confdefs.h. */
21010 #include <linux/perf_event.h>
21011 #ifndef PERF_ATTR_SIZE_VER5
21016 if ac_fn_c_try_cpp
"$LINENO"; then :
21021 rm -f conftest.err conftest.i conftest.
$ac_ext
21022 if test "$perf_event" != yes; then
21023 if test "$with_intel_pt" = yes; then
21024 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
21027 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
21041 acl_save_prefix
="$prefix"
21042 prefix
="$acl_final_prefix"
21043 acl_save_exec_prefix
="$exec_prefix"
21044 exec_prefix
="$acl_final_exec_prefix"
21046 eval additional_includedir
=\"$includedir\"
21047 eval additional_libdir
=\"$libdir\"
21049 exec_prefix
="$acl_save_exec_prefix"
21050 prefix
="$acl_save_prefix"
21053 # Check whether --with-libipt-prefix was given.
21054 if test "${with_libipt_prefix+set}" = set; then :
21055 withval
=$with_libipt_prefix;
21056 if test "X$withval" = "Xno"; then
21059 if test "X$withval" = "X"; then
21061 acl_save_prefix
="$prefix"
21062 prefix
="$acl_final_prefix"
21063 acl_save_exec_prefix
="$exec_prefix"
21064 exec_prefix
="$acl_final_exec_prefix"
21066 eval additional_includedir
=\"$includedir\"
21067 eval additional_libdir
=\"$libdir\"
21069 exec_prefix
="$acl_save_exec_prefix"
21070 prefix
="$acl_save_prefix"
21073 additional_includedir
="$withval/include"
21074 additional_libdir
="$withval/lib"
21081 # Check whether --with-libipt-type was given.
21082 if test "${with_libipt_type+set}" = set; then :
21083 withval
=$with_libipt_type; with_libipt_type
=$withval
21085 with_libipt_type
=auto
21088 lib_type
=`eval echo \$with_libipt_type`
21095 names_already_handled
=
21096 names_next_round
='ipt '
21097 while test -n "$names_next_round"; do
21098 names_this_round
="$names_next_round"
21100 for name
in $names_this_round; do
21102 for n
in $names_already_handled; do
21103 if test "$n" = "$name"; then
21104 already_handled
=yes
21108 if test -z "$already_handled"; then
21109 names_already_handled
="$names_already_handled $name"
21110 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21111 eval value
=\"\
$HAVE_LIB$uppername\"
21112 if test -n "$value"; then
21113 if test "$value" = yes; then
21114 eval value
=\"\
$LIB$uppername\"
21115 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
21116 eval value
=\"\
$LTLIB$uppername\"
21117 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
21126 if test $use_additional = yes; then
21127 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
21128 found_dir
="$additional_libdir"
21129 found_so
="$additional_libdir/lib$name.$shlibext"
21130 if test -f "$additional_libdir/lib$name.la"; then
21131 found_la
="$additional_libdir/lib$name.la"
21133 elif test x
$lib_type != xshared
; then
21134 if test -f "$additional_libdir/lib$name.$libext"; then
21135 found_dir
="$additional_libdir"
21136 found_a
="$additional_libdir/lib$name.$libext"
21137 if test -f "$additional_libdir/lib$name.la"; then
21138 found_la
="$additional_libdir/lib$name.la"
21143 if test "X$found_dir" = "X"; then
21144 for x
in $LDFLAGS $LTLIBIPT; do
21146 acl_save_prefix
="$prefix"
21147 prefix
="$acl_final_prefix"
21148 acl_save_exec_prefix
="$exec_prefix"
21149 exec_prefix
="$acl_final_exec_prefix"
21151 exec_prefix
="$acl_save_exec_prefix"
21152 prefix
="$acl_save_prefix"
21156 dir
=`echo "X$x" | sed -e 's/^X-L//'`
21157 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
21159 found_so
="$dir/lib$name.$shlibext"
21160 if test -f "$dir/lib$name.la"; then
21161 found_la
="$dir/lib$name.la"
21163 elif test x
$lib_type != xshared
; then
21164 if test -f "$dir/lib$name.$libext"; then
21166 found_a
="$dir/lib$name.$libext"
21167 if test -f "$dir/lib$name.la"; then
21168 found_la
="$dir/lib$name.la"
21174 if test "X$found_dir" != "X"; then
21179 if test "X$found_dir" != "X"; then
21180 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
21181 if test "X$found_so" != "X"; then
21182 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
21183 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
21186 for x
in $ltrpathdirs; do
21187 if test "X$x" = "X$found_dir"; then
21192 if test -z "$haveit"; then
21193 ltrpathdirs
="$ltrpathdirs $found_dir"
21195 if test "$hardcode_direct" = yes; then
21196 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
21198 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
21199 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
21201 for x
in $rpathdirs; do
21202 if test "X$x" = "X$found_dir"; then
21207 if test -z "$haveit"; then
21208 rpathdirs
="$rpathdirs $found_dir"
21212 for x
in $LDFLAGS $LIBIPT; do
21214 acl_save_prefix
="$prefix"
21215 prefix
="$acl_final_prefix"
21216 acl_save_exec_prefix
="$exec_prefix"
21217 exec_prefix
="$acl_final_exec_prefix"
21219 exec_prefix
="$acl_save_exec_prefix"
21220 prefix
="$acl_save_prefix"
21222 if test "X$x" = "X-L$found_dir"; then
21227 if test -z "$haveit"; then
21228 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
21230 if test "$hardcode_minus_L" != no
; then
21231 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
21233 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
21239 if test "X$found_a" != "X"; then
21240 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
21242 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
21245 additional_includedir
=
21246 case "$found_dir" in
21248 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21249 additional_includedir
="$basedir/include"
21252 if test "X$additional_includedir" != "X"; then
21253 if test "X$additional_includedir" != "X/usr/include"; then
21255 if test "X$additional_includedir" = "X/usr/local/include"; then
21256 if test -n "$GCC"; then
21258 linux
*) haveit
=yes;;
21262 if test -z "$haveit"; then
21263 for x
in $CPPFLAGS $INCIPT; do
21265 acl_save_prefix
="$prefix"
21266 prefix
="$acl_final_prefix"
21267 acl_save_exec_prefix
="$exec_prefix"
21268 exec_prefix
="$acl_final_exec_prefix"
21270 exec_prefix
="$acl_save_exec_prefix"
21271 prefix
="$acl_save_prefix"
21273 if test "X$x" = "X-I$additional_includedir"; then
21278 if test -z "$haveit"; then
21279 if test -d "$additional_includedir"; then
21280 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
21286 if test -n "$found_la"; then
21287 save_libdir
="$libdir"
21288 case "$found_la" in
21289 */* |
*\\*) .
"$found_la" ;;
21290 *) .
"./$found_la" ;;
21292 libdir
="$save_libdir"
21293 for dep
in $dependency_libs; do
21296 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
21297 if test "X$additional_libdir" != "X/usr/lib"; then
21299 if test "X$additional_libdir" = "X/usr/local/lib"; then
21300 if test -n "$GCC"; then
21302 linux
*) haveit
=yes;;
21306 if test -z "$haveit"; then
21308 for x
in $LDFLAGS $LIBIPT; do
21310 acl_save_prefix
="$prefix"
21311 prefix
="$acl_final_prefix"
21312 acl_save_exec_prefix
="$exec_prefix"
21313 exec_prefix
="$acl_final_exec_prefix"
21315 exec_prefix
="$acl_save_exec_prefix"
21316 prefix
="$acl_save_prefix"
21318 if test "X$x" = "X-L$additional_libdir"; then
21323 if test -z "$haveit"; then
21324 if test -d "$additional_libdir"; then
21325 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
21329 for x
in $LDFLAGS $LTLIBIPT; do
21331 acl_save_prefix
="$prefix"
21332 prefix
="$acl_final_prefix"
21333 acl_save_exec_prefix
="$exec_prefix"
21334 exec_prefix
="$acl_final_exec_prefix"
21336 exec_prefix
="$acl_save_exec_prefix"
21337 prefix
="$acl_save_prefix"
21339 if test "X$x" = "X-L$additional_libdir"; then
21344 if test -z "$haveit"; then
21345 if test -d "$additional_libdir"; then
21346 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
21353 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
21354 if test "$enable_rpath" != no
; then
21356 for x
in $rpathdirs; do
21357 if test "X$x" = "X$dir"; then
21362 if test -z "$haveit"; then
21363 rpathdirs
="$rpathdirs $dir"
21366 for x
in $ltrpathdirs; do
21367 if test "X$x" = "X$dir"; then
21372 if test -z "$haveit"; then
21373 ltrpathdirs
="$ltrpathdirs $dir"
21378 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21381 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21384 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
21385 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
21391 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
21392 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
21393 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
21395 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
21396 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
21403 if test "X$rpathdirs" != "X"; then
21404 if test -n "$hardcode_libdir_separator"; then
21406 for found_dir
in $rpathdirs; do
21407 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21409 acl_save_libdir
="$libdir"
21411 eval flag
=\"$hardcode_libdir_flag_spec\"
21412 libdir
="$acl_save_libdir"
21413 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
21415 for found_dir
in $rpathdirs; do
21416 acl_save_libdir
="$libdir"
21417 libdir
="$found_dir"
21418 eval flag
=\"$hardcode_libdir_flag_spec\"
21419 libdir
="$acl_save_libdir"
21420 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
21424 if test "X$ltrpathdirs" != "X"; then
21425 for found_dir
in $ltrpathdirs; do
21426 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
21431 ac_save_CPPFLAGS
="$CPPFLAGS"
21433 for element
in $INCIPT; do
21435 for x
in $CPPFLAGS; do
21437 acl_save_prefix
="$prefix"
21438 prefix
="$acl_final_prefix"
21439 acl_save_exec_prefix
="$exec_prefix"
21440 exec_prefix
="$acl_final_exec_prefix"
21442 exec_prefix
="$acl_save_exec_prefix"
21443 prefix
="$acl_save_prefix"
21445 if test "X$x" = "X$element"; then
21450 if test -z "$haveit"; then
21451 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
21457 $as_echo_n "checking for libipt... " >&6; }
21458 if ${ac_cv_libipt+:} false
; then :
21459 $as_echo_n "(cached) " >&6
21462 ac_save_LIBS
="$LIBS"
21463 LIBS
="$LIBS $LIBIPT"
21464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21465 /* end confdefs.h. */
21466 #include "intel-pt.h"
21470 pt_insn_alloc_decoder (0);
21475 if ac_fn_c_try_link
"$LINENO"; then :
21480 rm -f core conftest.err conftest.
$ac_objext \
21481 conftest
$ac_exeext conftest.
$ac_ext
21482 LIBS
="$ac_save_LIBS"
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
21486 $as_echo "$ac_cv_libipt" >&6; }
21487 if test "$ac_cv_libipt" = yes; then
21490 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
21493 $as_echo_n "checking how to link with libipt... " >&6; }
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
21495 $as_echo "$LIBIPT" >&6; }
21498 CPPFLAGS
="$ac_save_CPPFLAGS"
21508 if test "$HAVE_LIBIPT" != yes; then
21509 if test "$with_intel_pt" = yes; then
21510 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
21513 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
21517 LIBS
="$LIBS $LIBIPT"
21518 for ac_func
in pt_insn_event
21520 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
21521 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
21522 cat >>confdefs.h
<<_ACEOF
21523 #define HAVE_PT_INSN_EVENT 1
21529 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
21531 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
21533 cat >>confdefs.h
<<_ACEOF
21534 #define HAVE_STRUCT_PT_INSN_ENABLED 1
21539 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
21541 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
21543 cat >>confdefs.h
<<_ACEOF
21544 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
21550 ac_fn_c_check_member
"$LINENO" "struct pt_event" "variant.ptwrite" "ac_cv_member_struct_pt_event_variant_ptwrite" "#include <intel-pt.h>
21552 if test "x$ac_cv_member_struct_pt_event_variant_ptwrite" = xyes
; then :
21554 cat >>confdefs.h
<<_ACEOF
21555 #define HAVE_STRUCT_PT_EVENT_VARIANT_PTWRITE 1
21565 # Check if the compiler and runtime support printing long longs.
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
21568 $as_echo_n "checking for long long support in printf... " >&6; }
21569 if ${gdb_cv_printf_has_long_long+:} false
; then :
21570 $as_echo_n "(cached) " >&6
21572 if test "$cross_compiling" = yes; then :
21573 gdb_cv_printf_has_long_long
=no
21575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21576 /* end confdefs.h. */
21577 $ac_includes_default
21583 l = (l << 16) + 0x0123;
21584 l = (l << 16) + 0x4567;
21585 l = (l << 16) + 0x89ab;
21586 l = (l << 16) + 0xcdef;
21587 sprintf (buf, "0x%016llx", l);
21588 return (strcmp ("0x0123456789abcdef", buf));
21593 if ac_fn_c_try_run
"$LINENO"; then :
21594 gdb_cv_printf_has_long_long
=yes
21596 gdb_cv_printf_has_long_long
=no
21598 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21599 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
21604 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
21605 if test "$gdb_cv_printf_has_long_long" = yes; then
21607 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
21612 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
21614 for ac_header
in sys
/procfs.h
21616 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
21617 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
21618 cat >>confdefs.h
<<_ACEOF
21619 #define HAVE_SYS_PROCFS_H 1
21626 if test "$ac_cv_header_sys_procfs_h" = yes; then
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
21629 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
21630 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
21631 $as_echo_n "(cached) " >&6
21633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21634 /* end confdefs.h. */
21637 #include <sys/procfs.h>
21646 if ac_fn_c_try_compile
"$LINENO"; then :
21647 bfd_cv_have_sys_procfs_type_gregset_t
=yes
21649 bfd_cv_have_sys_procfs_type_gregset_t
=no
21652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21655 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
21657 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21661 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
21665 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
21666 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
21667 $as_echo_n "(cached) " >&6
21669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21670 /* end confdefs.h. */
21673 #include <sys/procfs.h>
21682 if ac_fn_c_try_compile
"$LINENO"; then :
21683 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
21685 bfd_cv_have_sys_procfs_type_fpregset_t
=no
21688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21691 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
21693 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21697 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
21701 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
21702 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
21703 $as_echo_n "(cached) " >&6
21705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21706 /* end confdefs.h. */
21709 #include <sys/procfs.h>
21718 if ac_fn_c_try_compile
"$LINENO"; then :
21719 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
21721 bfd_cv_have_sys_procfs_type_prgregset_t
=no
21724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21727 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21729 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21733 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
21737 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
21738 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
21739 $as_echo_n "(cached) " >&6
21741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21742 /* end confdefs.h. */
21745 #include <sys/procfs.h>
21754 if ac_fn_c_try_compile
"$LINENO"; then :
21755 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
21757 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
21760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21763 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21765 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21769 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
21773 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
21774 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
21775 $as_echo_n "(cached) " >&6
21777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h. */
21781 #include <sys/procfs.h>
21790 if ac_fn_c_try_compile
"$LINENO"; then :
21791 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
21793 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
21796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21799 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21801 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21805 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
21809 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
21810 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
21811 $as_echo_n "(cached) " >&6
21813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h. */
21817 #include <sys/procfs.h>
21826 if ac_fn_c_try_compile
"$LINENO"; then :
21827 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
21829 bfd_cv_have_sys_procfs_type_lwpid_t
=no
21832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21835 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
21837 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21841 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
21845 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
21846 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
21847 $as_echo_n "(cached) " >&6
21849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21850 /* end confdefs.h. */
21853 #include <sys/procfs.h>
21862 if ac_fn_c_try_compile
"$LINENO"; then :
21863 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
21865 bfd_cv_have_sys_procfs_type_psaddr_t
=no
21868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21871 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
21873 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21877 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
21881 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
21882 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
21883 $as_echo_n "(cached) " >&6
21885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21886 /* end confdefs.h. */
21889 #include <sys/procfs.h>
21893 elf_fpregset_t avar
21898 if ac_fn_c_try_compile
"$LINENO"; then :
21899 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
21901 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
21904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21907 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
21909 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
21913 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
21919 # Check whether --with-xxhash was given.
21920 if test "${with_xxhash+set}" = set; then :
21921 withval
=$with_xxhash;
21927 if test "x$with_xxhash" != "xno"; then
21938 acl_save_prefix
="$prefix"
21939 prefix
="$acl_final_prefix"
21940 acl_save_exec_prefix
="$exec_prefix"
21941 exec_prefix
="$acl_final_exec_prefix"
21943 eval additional_includedir
=\"$includedir\"
21944 eval additional_libdir
=\"$libdir\"
21946 exec_prefix
="$acl_save_exec_prefix"
21947 prefix
="$acl_save_prefix"
21950 # Check whether --with-libxxhash-prefix was given.
21951 if test "${with_libxxhash_prefix+set}" = set; then :
21952 withval
=$with_libxxhash_prefix;
21953 if test "X$withval" = "Xno"; then
21956 if test "X$withval" = "X"; then
21958 acl_save_prefix
="$prefix"
21959 prefix
="$acl_final_prefix"
21960 acl_save_exec_prefix
="$exec_prefix"
21961 exec_prefix
="$acl_final_exec_prefix"
21963 eval additional_includedir
=\"$includedir\"
21964 eval additional_libdir
=\"$libdir\"
21966 exec_prefix
="$acl_save_exec_prefix"
21967 prefix
="$acl_save_prefix"
21970 additional_includedir
="$withval/include"
21971 additional_libdir
="$withval/lib"
21978 # Check whether --with-libxxhash-type was given.
21979 if test "${with_libxxhash_type+set}" = set; then :
21980 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
21982 with_libxxhash_type
=auto
21985 lib_type
=`eval echo \$with_libxxhash_type`
21992 names_already_handled
=
21993 names_next_round
='xxhash '
21994 while test -n "$names_next_round"; do
21995 names_this_round
="$names_next_round"
21997 for name
in $names_this_round; do
21999 for n
in $names_already_handled; do
22000 if test "$n" = "$name"; then
22001 already_handled
=yes
22005 if test -z "$already_handled"; then
22006 names_already_handled
="$names_already_handled $name"
22007 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22008 eval value
=\"\
$HAVE_LIB$uppername\"
22009 if test -n "$value"; then
22010 if test "$value" = yes; then
22011 eval value
=\"\
$LIB$uppername\"
22012 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
22013 eval value
=\"\
$LTLIB$uppername\"
22014 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
22023 if test $use_additional = yes; then
22024 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
22025 found_dir
="$additional_libdir"
22026 found_so
="$additional_libdir/lib$name.$shlibext"
22027 if test -f "$additional_libdir/lib$name.la"; then
22028 found_la
="$additional_libdir/lib$name.la"
22030 elif test x
$lib_type != xshared
; then
22031 if test -f "$additional_libdir/lib$name.$libext"; then
22032 found_dir
="$additional_libdir"
22033 found_a
="$additional_libdir/lib$name.$libext"
22034 if test -f "$additional_libdir/lib$name.la"; then
22035 found_la
="$additional_libdir/lib$name.la"
22040 if test "X$found_dir" = "X"; then
22041 for x
in $LDFLAGS $LTLIBXXHASH; do
22043 acl_save_prefix
="$prefix"
22044 prefix
="$acl_final_prefix"
22045 acl_save_exec_prefix
="$exec_prefix"
22046 exec_prefix
="$acl_final_exec_prefix"
22048 exec_prefix
="$acl_save_exec_prefix"
22049 prefix
="$acl_save_prefix"
22053 dir
=`echo "X$x" | sed -e 's/^X-L//'`
22054 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
22056 found_so
="$dir/lib$name.$shlibext"
22057 if test -f "$dir/lib$name.la"; then
22058 found_la
="$dir/lib$name.la"
22060 elif test x
$lib_type != xshared
; then
22061 if test -f "$dir/lib$name.$libext"; then
22063 found_a
="$dir/lib$name.$libext"
22064 if test -f "$dir/lib$name.la"; then
22065 found_la
="$dir/lib$name.la"
22071 if test "X$found_dir" != "X"; then
22076 if test "X$found_dir" != "X"; then
22077 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
22078 if test "X$found_so" != "X"; then
22079 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
22080 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22083 for x
in $ltrpathdirs; do
22084 if test "X$x" = "X$found_dir"; then
22089 if test -z "$haveit"; then
22090 ltrpathdirs
="$ltrpathdirs $found_dir"
22092 if test "$hardcode_direct" = yes; then
22093 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22095 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
22096 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22098 for x
in $rpathdirs; do
22099 if test "X$x" = "X$found_dir"; then
22104 if test -z "$haveit"; then
22105 rpathdirs
="$rpathdirs $found_dir"
22109 for x
in $LDFLAGS $LIBXXHASH; do
22111 acl_save_prefix
="$prefix"
22112 prefix
="$acl_final_prefix"
22113 acl_save_exec_prefix
="$exec_prefix"
22114 exec_prefix
="$acl_final_exec_prefix"
22116 exec_prefix
="$acl_save_exec_prefix"
22117 prefix
="$acl_save_prefix"
22119 if test "X$x" = "X-L$found_dir"; then
22124 if test -z "$haveit"; then
22125 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
22127 if test "$hardcode_minus_L" != no
; then
22128 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22130 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
22136 if test "X$found_a" != "X"; then
22137 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
22139 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
22142 additional_includedir
=
22143 case "$found_dir" in
22145 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22146 additional_includedir
="$basedir/include"
22149 if test "X$additional_includedir" != "X"; then
22150 if test "X$additional_includedir" != "X/usr/include"; then
22152 if test "X$additional_includedir" = "X/usr/local/include"; then
22153 if test -n "$GCC"; then
22155 linux
*) haveit
=yes;;
22159 if test -z "$haveit"; then
22160 for x
in $CPPFLAGS $INCXXHASH; do
22162 acl_save_prefix
="$prefix"
22163 prefix
="$acl_final_prefix"
22164 acl_save_exec_prefix
="$exec_prefix"
22165 exec_prefix
="$acl_final_exec_prefix"
22167 exec_prefix
="$acl_save_exec_prefix"
22168 prefix
="$acl_save_prefix"
22170 if test "X$x" = "X-I$additional_includedir"; then
22175 if test -z "$haveit"; then
22176 if test -d "$additional_includedir"; then
22177 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
22183 if test -n "$found_la"; then
22184 save_libdir
="$libdir"
22185 case "$found_la" in
22186 */* |
*\\*) .
"$found_la" ;;
22187 *) .
"./$found_la" ;;
22189 libdir
="$save_libdir"
22190 for dep
in $dependency_libs; do
22193 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
22194 if test "X$additional_libdir" != "X/usr/lib"; then
22196 if test "X$additional_libdir" = "X/usr/local/lib"; then
22197 if test -n "$GCC"; then
22199 linux
*) haveit
=yes;;
22203 if test -z "$haveit"; then
22205 for x
in $LDFLAGS $LIBXXHASH; do
22207 acl_save_prefix
="$prefix"
22208 prefix
="$acl_final_prefix"
22209 acl_save_exec_prefix
="$exec_prefix"
22210 exec_prefix
="$acl_final_exec_prefix"
22212 exec_prefix
="$acl_save_exec_prefix"
22213 prefix
="$acl_save_prefix"
22215 if test "X$x" = "X-L$additional_libdir"; then
22220 if test -z "$haveit"; then
22221 if test -d "$additional_libdir"; then
22222 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
22226 for x
in $LDFLAGS $LTLIBXXHASH; do
22228 acl_save_prefix
="$prefix"
22229 prefix
="$acl_final_prefix"
22230 acl_save_exec_prefix
="$exec_prefix"
22231 exec_prefix
="$acl_final_exec_prefix"
22233 exec_prefix
="$acl_save_exec_prefix"
22234 prefix
="$acl_save_prefix"
22236 if test "X$x" = "X-L$additional_libdir"; then
22241 if test -z "$haveit"; then
22242 if test -d "$additional_libdir"; then
22243 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
22250 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
22251 if test "$enable_rpath" != no
; then
22253 for x
in $rpathdirs; do
22254 if test "X$x" = "X$dir"; then
22259 if test -z "$haveit"; then
22260 rpathdirs
="$rpathdirs $dir"
22263 for x
in $ltrpathdirs; do
22264 if test "X$x" = "X$dir"; then
22269 if test -z "$haveit"; then
22270 ltrpathdirs
="$ltrpathdirs $dir"
22275 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22278 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22281 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
22282 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
22288 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
22289 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
22290 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
22292 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
22293 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
22300 if test "X$rpathdirs" != "X"; then
22301 if test -n "$hardcode_libdir_separator"; then
22303 for found_dir
in $rpathdirs; do
22304 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22306 acl_save_libdir
="$libdir"
22308 eval flag
=\"$hardcode_libdir_flag_spec\"
22309 libdir
="$acl_save_libdir"
22310 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
22312 for found_dir
in $rpathdirs; do
22313 acl_save_libdir
="$libdir"
22314 libdir
="$found_dir"
22315 eval flag
=\"$hardcode_libdir_flag_spec\"
22316 libdir
="$acl_save_libdir"
22317 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
22321 if test "X$ltrpathdirs" != "X"; then
22322 for found_dir
in $ltrpathdirs; do
22323 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
22328 ac_save_CPPFLAGS
="$CPPFLAGS"
22330 for element
in $INCXXHASH; do
22332 for x
in $CPPFLAGS; do
22334 acl_save_prefix
="$prefix"
22335 prefix
="$acl_final_prefix"
22336 acl_save_exec_prefix
="$exec_prefix"
22337 exec_prefix
="$acl_final_exec_prefix"
22339 exec_prefix
="$acl_save_exec_prefix"
22340 prefix
="$acl_save_prefix"
22342 if test "X$x" = "X$element"; then
22347 if test -z "$haveit"; then
22348 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
22354 $as_echo_n "checking for libxxhash... " >&6; }
22355 if ${ac_cv_libxxhash+:} false
; then :
22356 $as_echo_n "(cached) " >&6
22359 ac_save_LIBS
="$LIBS"
22360 LIBS
="$LIBS $LIBXXHASH"
22361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22362 /* end confdefs.h. */
22363 #include <xxhash.h>
22367 XXH32("foo", 3, 0);
22373 if ac_fn_c_try_link
"$LINENO"; then :
22374 ac_cv_libxxhash
=yes
22378 rm -f core conftest.err conftest.
$ac_objext \
22379 conftest
$ac_exeext conftest.
$ac_ext
22380 LIBS
="$ac_save_LIBS"
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
22384 $as_echo "$ac_cv_libxxhash" >&6; }
22385 if test "$ac_cv_libxxhash" = yes; then
22388 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
22391 $as_echo_n "checking how to link with libxxhash... " >&6; }
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
22393 $as_echo "$LIBXXHASH" >&6; }
22396 CPPFLAGS
="$ac_save_CPPFLAGS"
22406 if test "$HAVE_LIBXXHASH" != yes; then
22407 if test "$with_xxhash" = yes; then
22408 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
22411 if test "x$with_xxhash" = "xauto"; then
22412 with_xxhash
="$HAVE_LIBXXHASH"
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
22417 $as_echo_n "checking whether to use xxhash... " >&6; }
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
22419 $as_echo "$with_xxhash" >&6; }
22422 # Dependency checking.
22423 rm -rf .tst
2>/dev
/null
22424 mkdir .tst
2>/dev
/null
22425 if test -d .tst
; then
22430 rmdir .tst
2>/dev
/null
22432 DEPDIR
="${am__leading_dot}deps"
22434 ac_config_commands
="$ac_config_commands depdir"
22437 depcc
="$CC" am_compiler_list
=
22439 am_depcomp
=$ac_aux_dir/depcomp
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
22441 $as_echo_n "checking dependency style of $depcc... " >&6; }
22442 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
22443 $as_echo_n "(cached) " >&6
22445 if test -f "$am_depcomp"; then
22446 # We make a subdir and do the tests there. Otherwise we can end up
22447 # making bogus files that we don't know about and never remove. For
22448 # instance it was reported that on HP-UX the gcc test will end up
22449 # making a dummy file named `D' -- because `-MD' means `put the output
22452 # Copy depcomp to subdir because otherwise we won't find it if we're
22453 # using a relative directory.
22454 cp "$am_depcomp" conftest.dir
22456 # We will build objects and dependencies in a subdirectory because
22457 # it helps to detect inapplicable dependency modes. For instance
22458 # both Tru64's cc and ICC support -MD to output dependencies as a
22459 # side effect of compilation, but ICC will put the dependencies in
22460 # the current directory while Tru64 will put them in the object
22464 am_cv_CC_dependencies_compiler_type
=none
22465 if test "$am_compiler_list" = ""; then
22466 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22468 for depmode
in $am_compiler_list; do
22469 if test $depmode = none
; then break; fi
22471 $as_echo "$as_me:$LINENO: trying $depmode" >&5
22472 # Setup a source with many dependencies, because some compilers
22473 # like to wrap large dependency lists on column 80 (with \), and
22474 # we should not choose a depcomp mode which is confused by this.
22476 # We need to recreate these files for each test, as the compiler may
22477 # overwrite some of them when testing with obscure command lines.
22478 # This happens at least with the AIX C compiler.
22480 for i
in 1 2 3 4 5 6; do
22481 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
22482 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22483 # Solaris 8's {/usr,}/bin/sh.
22484 touch sub
/conftst
$i.h
22486 echo "include sub/conftest.Po" > confmf
22488 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22489 # mode. It turns out that the SunPro C++ compiler does not properly
22490 # handle `-M -o', and we need to detect this.
22491 depcmd
="depmode=$depmode \
22492 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22493 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22494 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
22495 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
22496 if env
$depcmd > conftest.err
2>&1 &&
22497 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
22498 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
22499 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
22500 # icc doesn't choke on unknown options, it will just issue warnings
22501 # or remarks (even with -Werror). So we grep stderr for any message
22502 # that says an option was ignored or not supported.
22503 # When given -MP, icc 7.0 and 7.1 complain thusly:
22504 # icc: Command line warning: ignoring option '-M'; no argument required
22505 # The diagnosis changed in icc 8.0:
22506 # icc: Command line remark: option '-MP' not supported
22507 if (grep 'ignoring option' conftest.err ||
22508 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
22509 am_cv_CC_dependencies_compiler_type
=$depmode
22510 $as_echo "$as_me:$LINENO: success" >&5
22514 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
22515 sed -e 's/^/| /' < conftest.err
>&5
22519 rm -rf conftest.dir
22521 am_cv_CC_dependencies_compiler_type
=none
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
22526 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
22527 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
22528 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
22529 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
22534 # Since the first call to PKG_CHECK_MODULES may not happen (is guarded by
22535 # a condition), we must call PKG_PROG_PKG_CONFIG explicitly to probe for
22544 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22545 if test -n "$ac_tool_prefix"; then
22546 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22547 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22549 $as_echo_n "checking for $ac_word... " >&6; }
22550 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
22551 $as_echo_n "(cached) " >&6
22553 case $PKG_CONFIG in
22555 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
22558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22559 for as_dir
in $PATH
22562 test -z "$as_dir" && as_dir
=.
22563 for ac_exec_ext
in '' $ac_executable_extensions; do
22564 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22565 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
22566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22576 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
22577 if test -n "$PKG_CONFIG"; then
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22579 $as_echo "$PKG_CONFIG" >&6; }
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22582 $as_echo "no" >&6; }
22587 if test -z "$ac_cv_path_PKG_CONFIG"; then
22588 ac_pt_PKG_CONFIG
=$PKG_CONFIG
22589 # Extract the first word of "pkg-config", so it can be a program name with args.
22590 set dummy pkg-config
; ac_word
=$2
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22592 $as_echo_n "checking for $ac_word... " >&6; }
22593 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
22594 $as_echo_n "(cached) " >&6
22596 case $ac_pt_PKG_CONFIG in
22598 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22602 for as_dir
in $PATH
22605 test -z "$as_dir" && as_dir
=.
22606 for ac_exec_ext
in '' $ac_executable_extensions; do
22607 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22608 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
22609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22619 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
22620 if test -n "$ac_pt_PKG_CONFIG"; then
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22622 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22625 $as_echo "no" >&6; }
22628 if test "x$ac_pt_PKG_CONFIG" = x
; then
22631 case $cross_compiling:$ac_tool_warned in
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22635 ac_tool_warned
=yes ;;
22637 PKG_CONFIG
=$ac_pt_PKG_CONFIG
22640 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
22644 if test -n "$PKG_CONFIG"; then
22645 _pkg_min_version
=0.9.0
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22647 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22648 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22650 $as_echo "yes" >&6; }
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22653 $as_echo "no" >&6; }
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
22670 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
22672 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22673 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
22674 $as_echo_n "(cached) " >&6
22676 cat >conftest.
make <<\_ACEOF
22679 @
echo '@@@%%%=$(MAKE)=@@@%%%'
22681 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
22682 case `${MAKE-make} -f conftest.make 2>/dev/null` in
22683 *@@@
%%%=?
*=@@@
%%%*)
22684 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
22686 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
22688 rm -f conftest.
make
22690 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22692 $as_echo "yes" >&6; }
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22696 $as_echo "no" >&6; }
22697 SET_MAKE
="MAKE=${MAKE-make}"
22700 # Find a good install program. We prefer a C program (faster),
22701 # so one script is as good as another. But avoid the broken or
22702 # incompatible versions:
22703 # SysV /etc/install, /usr/sbin/install
22704 # SunOS /usr/etc/install
22705 # IRIX /sbin/install
22707 # AmigaOS /C/install, which installs bootblocks on floppy discs
22708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
22709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
22710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
22711 # OS/2's system install, which has a completely different semantic
22712 # ./install, which can be erroneously created by make from ./install.sh.
22713 # Reject install programs that cannot install multiple files.
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
22715 $as_echo_n "checking for a BSD-compatible install... " >&6; }
22716 if test -z "$INSTALL"; then
22717 if ${ac_cv_path_install+:} false
; then :
22718 $as_echo_n "(cached) " >&6
22720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22721 for as_dir
in $PATH
22724 test -z "$as_dir" && as_dir
=.
22725 # Account for people who put trailing slashes in PATH elements.
22726 case $as_dir/ in #((
22727 .
/ | .
// |
/[cC
]/* | \
22728 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
22729 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
22732 # OSF1 and SCO ODT 3.0 have their own names for install.
22733 # Don't use installbsd from OSF since it installs stuff as root
22735 for ac_prog
in ginstall scoinst
install; do
22736 for ac_exec_ext
in '' $ac_executable_extensions; do
22737 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
22738 if test $ac_prog = install &&
22739 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
22740 # AIX install. It has an incompatible calling convention.
22742 elif test $ac_prog = install &&
22743 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
22744 # program-specific install script used by HP pwplus--don't use.
22747 rm -rf conftest.one conftest.two conftest.dir
22748 echo one
> conftest.one
22749 echo two
> conftest.two
22751 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
22752 test -s conftest.one
&& test -s conftest.two
&&
22753 test -s conftest.dir
/conftest.one
&&
22754 test -s conftest.dir
/conftest.two
22756 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
22769 rm -rf conftest.one conftest.two conftest.dir
22772 if test "${ac_cv_path_install+set}" = set; then
22773 INSTALL
=$ac_cv_path_install
22775 # As a last resort, use the slow shell script. Don't cache a
22776 # value for INSTALL within a source directory, because that will
22777 # break other packages using the cache if that directory is
22778 # removed, or if the value is a relative name.
22779 INSTALL
=$ac_install_sh
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
22783 $as_echo "$INSTALL" >&6; }
22785 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22786 # It thinks the first close brace ends the variable substitution.
22787 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
22789 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
22791 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
22795 if test -n "$ac_aux_dir"; then
22796 case "$ac_aux_dir" in
22797 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
22798 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
22801 if test -z "$MKINSTALLDIRS"; then
22802 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
22808 $as_echo_n "checking whether NLS is requested... " >&6; }
22809 # Check whether --enable-nls was given.
22810 if test "${enable_nls+set}" = set; then :
22811 enableval
=$enable_nls; USE_NLS
=$enableval
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
22817 $as_echo "$USE_NLS" >&6; }
22824 # Prepare PATH_SEPARATOR.
22825 # The user is always right.
22826 if test "${PATH_SEPARATOR+set}" != set; then
22827 echo "#! /bin/sh" >conf$$.sh
22828 echo "exit 0" >>conf$$.sh
22830 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22838 # Find out how to test for executable files. Don't use a zero-byte file,
22839 # as systems may use methods other than mode bits to determine executability.
22840 cat >conf$$.
file <<_ASEOF
22844 chmod +x conf$$.
file
22845 if test -x conf$$.
file >/dev
/null
2>&1; then
22846 ac_executable_p
="test -x"
22848 ac_executable_p
="test -f"
22852 # Extract the first word of "msgfmt", so it can be a program name with args.
22853 set dummy msgfmt
; ac_word
=$2
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22855 $as_echo_n "checking for $ac_word... " >&6; }
22856 if ${ac_cv_path_MSGFMT+:} false
; then :
22857 $as_echo_n "(cached) " >&6
22861 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
22864 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
22865 for ac_dir
in $PATH; do
22867 test -z "$ac_dir" && ac_dir
=.
22868 for ac_exec_ext
in '' $ac_executable_extensions; do
22869 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22870 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
22871 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
22872 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
22879 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
22883 MSGFMT
="$ac_cv_path_MSGFMT"
22884 if test "$MSGFMT" != ":"; then
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
22886 $as_echo "$MSGFMT" >&6; }
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22889 $as_echo "no" >&6; }
22892 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22893 set dummy gmsgfmt
; ac_word
=$2
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22895 $as_echo_n "checking for $ac_word... " >&6; }
22896 if ${ac_cv_path_GMSGFMT+:} false
; then :
22897 $as_echo_n "(cached) " >&6
22901 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
22904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22905 for as_dir
in $PATH
22908 test -z "$as_dir" && as_dir
=.
22909 for ac_exec_ext
in '' $ac_executable_extensions; do
22910 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22911 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
22912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22919 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
22923 GMSGFMT
=$ac_cv_path_GMSGFMT
22924 if test -n "$GMSGFMT"; then
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
22926 $as_echo "$GMSGFMT" >&6; }
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22929 $as_echo "no" >&6; }
22935 # Prepare PATH_SEPARATOR.
22936 # The user is always right.
22937 if test "${PATH_SEPARATOR+set}" != set; then
22938 echo "#! /bin/sh" >conf$$.sh
22939 echo "exit 0" >>conf$$.sh
22941 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22949 # Find out how to test for executable files. Don't use a zero-byte file,
22950 # as systems may use methods other than mode bits to determine executability.
22951 cat >conf$$.
file <<_ASEOF
22955 chmod +x conf$$.
file
22956 if test -x conf$$.
file >/dev
/null
2>&1; then
22957 ac_executable_p
="test -x"
22959 ac_executable_p
="test -f"
22963 # Extract the first word of "xgettext", so it can be a program name with args.
22964 set dummy xgettext
; ac_word
=$2
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22966 $as_echo_n "checking for $ac_word... " >&6; }
22967 if ${ac_cv_path_XGETTEXT+:} false
; then :
22968 $as_echo_n "(cached) " >&6
22970 case "$XGETTEXT" in
22972 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
22975 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
22976 for ac_dir
in $PATH; do
22978 test -z "$ac_dir" && ac_dir
=.
22979 for ac_exec_ext
in '' $ac_executable_extensions; do
22980 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22981 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
22982 (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
22983 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
22990 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
22994 XGETTEXT
="$ac_cv_path_XGETTEXT"
22995 if test "$XGETTEXT" != ":"; then
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
22997 $as_echo "$XGETTEXT" >&6; }
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23000 $as_echo "no" >&6; }
23006 # Prepare PATH_SEPARATOR.
23007 # The user is always right.
23008 if test "${PATH_SEPARATOR+set}" != set; then
23009 echo "#! /bin/sh" >conf$$.sh
23010 echo "exit 0" >>conf$$.sh
23012 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23020 # Find out how to test for executable files. Don't use a zero-byte file,
23021 # as systems may use methods other than mode bits to determine executability.
23022 cat >conf$$.
file <<_ASEOF
23026 chmod +x conf$$.
file
23027 if test -x conf$$.
file >/dev
/null
2>&1; then
23028 ac_executable_p
="test -x"
23030 ac_executable_p
="test -f"
23034 # Extract the first word of "msgmerge", so it can be a program name with args.
23035 set dummy msgmerge
; ac_word
=$2
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23037 $as_echo_n "checking for $ac_word... " >&6; }
23038 if ${ac_cv_path_MSGMERGE+:} false
; then :
23039 $as_echo_n "(cached) " >&6
23041 case "$MSGMERGE" in
23043 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
23046 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
23047 for ac_dir
in $PATH; do
23049 test -z "$ac_dir" && ac_dir
=.
23050 for ac_exec_ext
in '' $ac_executable_extensions; do
23051 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23052 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
23053 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
23060 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
23064 MSGMERGE
="$ac_cv_path_MSGMERGE"
23065 if test "$MSGMERGE" != ":"; then
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
23067 $as_echo "$MSGMERGE" >&6; }
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23070 $as_echo "no" >&6; }
23074 if test "$GMSGFMT" != ":"; then
23075 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
23076 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
23079 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
23081 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
23086 if test "$XGETTEXT" != ":"; then
23087 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
23088 (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
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
23092 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
23098 ac_config_commands
="$ac_config_commands default-1"
23109 acl_save_prefix
="$prefix"
23110 prefix
="$acl_final_prefix"
23111 acl_save_exec_prefix
="$exec_prefix"
23112 exec_prefix
="$acl_final_exec_prefix"
23114 eval additional_includedir
=\"$includedir\"
23115 eval additional_libdir
=\"$libdir\"
23117 exec_prefix
="$acl_save_exec_prefix"
23118 prefix
="$acl_save_prefix"
23121 # Check whether --with-libiconv-prefix was given.
23122 if test "${with_libiconv_prefix+set}" = set; then :
23123 withval
=$with_libiconv_prefix;
23124 if test "X$withval" = "Xno"; then
23127 if test "X$withval" = "X"; then
23129 acl_save_prefix
="$prefix"
23130 prefix
="$acl_final_prefix"
23131 acl_save_exec_prefix
="$exec_prefix"
23132 exec_prefix
="$acl_final_exec_prefix"
23134 eval additional_includedir
=\"$includedir\"
23135 eval additional_libdir
=\"$libdir\"
23137 exec_prefix
="$acl_save_exec_prefix"
23138 prefix
="$acl_save_prefix"
23141 additional_includedir
="$withval/include"
23142 additional_libdir
="$withval/lib"
23149 # Check whether --with-libiconv-type was given.
23150 if test "${with_libiconv_type+set}" = set; then :
23151 withval
=$with_libiconv_type; with_libiconv_type
=$withval
23153 with_libiconv_type
=auto
23156 lib_type
=`eval echo \$with_libiconv_type`
23163 names_already_handled
=
23164 names_next_round
='iconv '
23165 while test -n "$names_next_round"; do
23166 names_this_round
="$names_next_round"
23168 for name
in $names_this_round; do
23170 for n
in $names_already_handled; do
23171 if test "$n" = "$name"; then
23172 already_handled
=yes
23176 if test -z "$already_handled"; then
23177 names_already_handled
="$names_already_handled $name"
23178 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23179 eval value
=\"\
$HAVE_LIB$uppername\"
23180 if test -n "$value"; then
23181 if test "$value" = yes; then
23182 eval value
=\"\
$LIB$uppername\"
23183 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
23184 eval value
=\"\
$LTLIB$uppername\"
23185 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
23194 if test $use_additional = yes; then
23195 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
23196 found_dir
="$additional_libdir"
23197 found_so
="$additional_libdir/lib$name.$shlibext"
23198 if test -f "$additional_libdir/lib$name.la"; then
23199 found_la
="$additional_libdir/lib$name.la"
23201 elif test x
$lib_type != xshared
; then
23202 if test -f "$additional_libdir/lib$name.$libext"; then
23203 found_dir
="$additional_libdir"
23204 found_a
="$additional_libdir/lib$name.$libext"
23205 if test -f "$additional_libdir/lib$name.la"; then
23206 found_la
="$additional_libdir/lib$name.la"
23211 if test "X$found_dir" = "X"; then
23212 for x
in $LDFLAGS $LTLIBICONV; do
23214 acl_save_prefix
="$prefix"
23215 prefix
="$acl_final_prefix"
23216 acl_save_exec_prefix
="$exec_prefix"
23217 exec_prefix
="$acl_final_exec_prefix"
23219 exec_prefix
="$acl_save_exec_prefix"
23220 prefix
="$acl_save_prefix"
23224 dir
=`echo "X$x" | sed -e 's/^X-L//'`
23225 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
23227 found_so
="$dir/lib$name.$shlibext"
23228 if test -f "$dir/lib$name.la"; then
23229 found_la
="$dir/lib$name.la"
23231 elif test x
$lib_type != xshared
; then
23232 if test -f "$dir/lib$name.$libext"; then
23234 found_a
="$dir/lib$name.$libext"
23235 if test -f "$dir/lib$name.la"; then
23236 found_la
="$dir/lib$name.la"
23242 if test "X$found_dir" != "X"; then
23247 if test "X$found_dir" != "X"; then
23248 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
23249 if test "X$found_so" != "X"; then
23250 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
23251 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
23254 for x
in $ltrpathdirs; do
23255 if test "X$x" = "X$found_dir"; then
23260 if test -z "$haveit"; then
23261 ltrpathdirs
="$ltrpathdirs $found_dir"
23263 if test "$hardcode_direct" = yes; then
23264 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
23266 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
23267 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
23269 for x
in $rpathdirs; do
23270 if test "X$x" = "X$found_dir"; then
23275 if test -z "$haveit"; then
23276 rpathdirs
="$rpathdirs $found_dir"
23280 for x
in $LDFLAGS $LIBICONV; do
23282 acl_save_prefix
="$prefix"
23283 prefix
="$acl_final_prefix"
23284 acl_save_exec_prefix
="$exec_prefix"
23285 exec_prefix
="$acl_final_exec_prefix"
23287 exec_prefix
="$acl_save_exec_prefix"
23288 prefix
="$acl_save_prefix"
23290 if test "X$x" = "X-L$found_dir"; then
23295 if test -z "$haveit"; then
23296 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
23298 if test "$hardcode_minus_L" != no
; then
23299 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
23301 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
23307 if test "X$found_a" != "X"; then
23308 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
23310 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
23313 additional_includedir
=
23314 case "$found_dir" in
23316 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23317 additional_includedir
="$basedir/include"
23320 if test "X$additional_includedir" != "X"; then
23321 if test "X$additional_includedir" != "X/usr/include"; then
23323 if test "X$additional_includedir" = "X/usr/local/include"; then
23324 if test -n "$GCC"; then
23326 linux
*) haveit
=yes;;
23330 if test -z "$haveit"; then
23331 for x
in $CPPFLAGS $INCICONV; do
23333 acl_save_prefix
="$prefix"
23334 prefix
="$acl_final_prefix"
23335 acl_save_exec_prefix
="$exec_prefix"
23336 exec_prefix
="$acl_final_exec_prefix"
23338 exec_prefix
="$acl_save_exec_prefix"
23339 prefix
="$acl_save_prefix"
23341 if test "X$x" = "X-I$additional_includedir"; then
23346 if test -z "$haveit"; then
23347 if test -d "$additional_includedir"; then
23348 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
23354 if test -n "$found_la"; then
23355 save_libdir
="$libdir"
23356 case "$found_la" in
23357 */* |
*\\*) .
"$found_la" ;;
23358 *) .
"./$found_la" ;;
23360 libdir
="$save_libdir"
23361 for dep
in $dependency_libs; do
23364 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
23365 if test "X$additional_libdir" != "X/usr/lib"; then
23367 if test "X$additional_libdir" = "X/usr/local/lib"; then
23368 if test -n "$GCC"; then
23370 linux
*) haveit
=yes;;
23374 if test -z "$haveit"; then
23376 for x
in $LDFLAGS $LIBICONV; do
23378 acl_save_prefix
="$prefix"
23379 prefix
="$acl_final_prefix"
23380 acl_save_exec_prefix
="$exec_prefix"
23381 exec_prefix
="$acl_final_exec_prefix"
23383 exec_prefix
="$acl_save_exec_prefix"
23384 prefix
="$acl_save_prefix"
23386 if test "X$x" = "X-L$additional_libdir"; then
23391 if test -z "$haveit"; then
23392 if test -d "$additional_libdir"; then
23393 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
23397 for x
in $LDFLAGS $LTLIBICONV; do
23399 acl_save_prefix
="$prefix"
23400 prefix
="$acl_final_prefix"
23401 acl_save_exec_prefix
="$exec_prefix"
23402 exec_prefix
="$acl_final_exec_prefix"
23404 exec_prefix
="$acl_save_exec_prefix"
23405 prefix
="$acl_save_prefix"
23407 if test "X$x" = "X-L$additional_libdir"; then
23412 if test -z "$haveit"; then
23413 if test -d "$additional_libdir"; then
23414 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
23421 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
23422 if test "$enable_rpath" != no
; then
23424 for x
in $rpathdirs; do
23425 if test "X$x" = "X$dir"; then
23430 if test -z "$haveit"; then
23431 rpathdirs
="$rpathdirs $dir"
23434 for x
in $ltrpathdirs; do
23435 if test "X$x" = "X$dir"; then
23440 if test -z "$haveit"; then
23441 ltrpathdirs
="$ltrpathdirs $dir"
23446 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23449 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23452 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
23453 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
23459 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
23460 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
23461 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
23463 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
23464 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
23471 if test "X$rpathdirs" != "X"; then
23472 if test -n "$hardcode_libdir_separator"; then
23474 for found_dir
in $rpathdirs; do
23475 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23477 acl_save_libdir
="$libdir"
23479 eval flag
=\"$hardcode_libdir_flag_spec\"
23480 libdir
="$acl_save_libdir"
23481 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
23483 for found_dir
in $rpathdirs; do
23484 acl_save_libdir
="$libdir"
23485 libdir
="$found_dir"
23486 eval flag
=\"$hardcode_libdir_flag_spec\"
23487 libdir
="$acl_save_libdir"
23488 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
23492 if test "X$ltrpathdirs" != "X"; then
23493 for found_dir
in $ltrpathdirs; do
23494 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
23502 if test -f ..
/gettext
/uninstalled-config.sh
; then
23503 relative_builddir
='$(top_builddir)/../gettext'
23504 . ..
/gettext
/uninstalled-config.sh
23506 # The sister gettext directory doesn't exist and won't collect information on
23507 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
23532 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23533 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
23534 $as_echo_n "(cached) " >&6
23536 gt_save_LIBS
="$LIBS"
23537 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
23538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23539 /* end confdefs.h. */
23540 #include <CoreFoundation/CFPreferences.h>
23544 CFPreferencesCopyAppValue(NULL, NULL)
23549 if ac_fn_c_try_link
"$LINENO"; then :
23550 gt_cv_func_CFPreferencesCopyAppValue
=yes
23552 gt_cv_func_CFPreferencesCopyAppValue
=no
23554 rm -f core conftest.err conftest.
$ac_objext \
23555 conftest
$ac_exeext conftest.
$ac_ext
23556 LIBS
="$gt_save_LIBS"
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23559 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23560 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23562 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
23566 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
23567 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false
; then :
23568 $as_echo_n "(cached) " >&6
23570 gt_save_LIBS
="$LIBS"
23571 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
23572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23573 /* end confdefs.h. */
23574 #include <CoreFoundation/CFLocale.h>
23578 CFLocaleCopyPreferredLanguages();
23583 if ac_fn_c_try_link
"$LINENO"; then :
23584 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
23586 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
23588 rm -f core conftest.err conftest.
$ac_objext \
23589 conftest
$ac_exeext conftest.
$ac_ext
23590 LIBS
="$gt_save_LIBS"
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
23593 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
23594 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
23596 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
23600 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
23601 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
23602 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
23614 case " $gt_needs " in
23615 *" need-formatstring-macros "*) gt_api_version
=3 ;;
23616 *" need-ngettext "*) gt_api_version
=2 ;;
23617 *) gt_api_version
=1 ;;
23619 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
23620 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
23622 if test "$USE_NLS" = "yes"; then
23623 gt_use_preinstalled_gnugettext
=no
23626 if test $gt_api_version -ge 3; then
23627 gt_revision_test_code
='
23628 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
23629 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
23631 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
23634 gt_revision_test_code
=
23636 if test $gt_api_version -ge 2; then
23637 gt_expression_test_code
=' + * ngettext ("", "", 0)'
23639 gt_expression_test_code
=
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
23643 $as_echo_n "checking for GNU gettext in libc... " >&6; }
23644 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
23645 $as_echo_n "(cached) " >&6
23647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23648 /* end confdefs.h. */
23650 #include <libintl.h>
23651 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
23652 extern int _nl_msg_cat_cntr;
23653 extern int *_nl_domain_bindings;
23654 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
23656 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
23658 $gt_revision_test_code
23664 bindtextdomain ("", "");
23665 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
23671 if ac_fn_c_try_link
"$LINENO"; then :
23672 eval "$gt_func_gnugettext_libc=yes"
23674 eval "$gt_func_gnugettext_libc=no"
23676 rm -f core conftest.err conftest.
$ac_objext \
23677 conftest
$ac_exeext conftest.
$ac_ext
23679 eval ac_res
=\$
$gt_func_gnugettext_libc
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23681 $as_echo "$ac_res" >&6; }
23683 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
23689 am_save_CPPFLAGS
="$CPPFLAGS"
23691 for element
in $INCICONV; do
23693 for x
in $CPPFLAGS; do
23695 acl_save_prefix
="$prefix"
23696 prefix
="$acl_final_prefix"
23697 acl_save_exec_prefix
="$exec_prefix"
23698 exec_prefix
="$acl_final_exec_prefix"
23700 exec_prefix
="$acl_save_exec_prefix"
23701 prefix
="$acl_save_prefix"
23703 if test "X$x" = "X$element"; then
23708 if test -z "$haveit"; then
23709 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
23715 $as_echo_n "checking for iconv... " >&6; }
23716 if ${am_cv_func_iconv+:} false
; then :
23717 $as_echo_n "(cached) " >&6
23720 am_cv_func_iconv
="no, consider installing GNU libiconv"
23722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23723 /* end confdefs.h. */
23725 #include <stdlib.h>
23731 iconv_t cd = iconv_open("","");
23732 iconv(cd,NULL,NULL,NULL,NULL);
23738 if ac_fn_c_try_link
"$LINENO"; then :
23739 am_cv_func_iconv
=yes
23741 rm -f core conftest.err conftest.
$ac_objext \
23742 conftest
$ac_exeext conftest.
$ac_ext
23743 if test "$am_cv_func_iconv" != yes; then
23744 am_save_LIBS
="$LIBS"
23745 LIBS
="$LIBS $LIBICONV"
23746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23747 /* end confdefs.h. */
23749 #include <stdlib.h>
23755 iconv_t cd = iconv_open("","");
23756 iconv(cd,NULL,NULL,NULL,NULL);
23762 if ac_fn_c_try_link
"$LINENO"; then :
23763 am_cv_lib_iconv
=yes
23764 am_cv_func_iconv
=yes
23766 rm -f core conftest.err conftest.
$ac_objext \
23767 conftest
$ac_exeext conftest.
$ac_ext
23768 LIBS
="$am_save_LIBS"
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
23773 $as_echo "$am_cv_func_iconv" >&6; }
23774 if test "$am_cv_func_iconv" = yes; then
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
23776 $as_echo_n "checking for working iconv... " >&6; }
23777 if ${am_cv_func_iconv_works+:} false
; then :
23778 $as_echo_n "(cached) " >&6
23781 am_save_LIBS
="$LIBS"
23782 if test $am_cv_lib_iconv = yes; then
23783 LIBS
="$LIBS $LIBICONV"
23785 am_cv_func_iconv_works
=no
23786 for ac_iconv_const
in '' 'const'; do
23787 if test "$cross_compiling" = yes; then :
23789 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
23790 *) am_cv_func_iconv_works
="guessing yes" ;;
23793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23794 /* end confdefs.h. */
23797 #include <string.h>
23799 #ifndef ICONV_CONST
23800 # define ICONV_CONST $ac_iconv_const
23807 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
23808 successful returns. This is even documented in
23809 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
23811 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
23812 if (cd_utf8_to_88591 != (iconv_t)(-1))
23814 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
23816 ICONV_CONST char *inptr = input;
23817 size_t inbytesleft = strlen (input);
23818 char *outptr = buf;
23819 size_t outbytesleft = sizeof (buf);
23820 size_t res = iconv (cd_utf8_to_88591,
23821 &inptr, &inbytesleft,
23822 &outptr, &outbytesleft);
23825 iconv_close (cd_utf8_to_88591);
23828 /* Test against Solaris 10 bug: Failures are not distinguishable from
23829 successful returns. */
23831 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
23832 if (cd_ascii_to_88591 != (iconv_t)(-1))
23834 static ICONV_CONST char input[] = "\263";
23836 ICONV_CONST char *inptr = input;
23837 size_t inbytesleft = strlen (input);
23838 char *outptr = buf;
23839 size_t outbytesleft = sizeof (buf);
23840 size_t res = iconv (cd_ascii_to_88591,
23841 &inptr, &inbytesleft,
23842 &outptr, &outbytesleft);
23845 iconv_close (cd_ascii_to_88591);
23848 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
23850 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
23851 if (cd_88591_to_utf8 != (iconv_t)(-1))
23853 static ICONV_CONST char input[] = "\304";
23854 static char buf[2] = { (char)0xDE, (char)0xAD };
23855 ICONV_CONST char *inptr = input;
23856 size_t inbytesleft = 1;
23857 char *outptr = buf;
23858 size_t outbytesleft = 1;
23859 size_t res = iconv (cd_88591_to_utf8,
23860 &inptr, &inbytesleft,
23861 &outptr, &outbytesleft);
23862 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
23864 iconv_close (cd_88591_to_utf8);
23867 #if 0 /* This bug could be worked around by the caller. */
23868 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
23870 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
23871 if (cd_88591_to_utf8 != (iconv_t)(-1))
23873 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
23875 ICONV_CONST char *inptr = input;
23876 size_t inbytesleft = strlen (input);
23877 char *outptr = buf;
23878 size_t outbytesleft = sizeof (buf);
23879 size_t res = iconv (cd_88591_to_utf8,
23880 &inptr, &inbytesleft,
23881 &outptr, &outbytesleft);
23884 iconv_close (cd_88591_to_utf8);
23888 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
23891 /* Try standardized names. */
23892 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
23893 /* Try IRIX, OSF/1 names. */
23894 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
23895 /* Try AIX names. */
23896 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
23897 /* Try HP-UX names. */
23898 iconv_t cd4 = iconv_open ("utf8", "eucJP");
23899 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
23900 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
23902 if (cd1 != (iconv_t)(-1))
23904 if (cd2 != (iconv_t)(-1))
23906 if (cd3 != (iconv_t)(-1))
23908 if (cd4 != (iconv_t)(-1))
23917 if ac_fn_c_try_run
"$LINENO"; then :
23918 am_cv_func_iconv_works
=yes
23920 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23921 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23924 test "$am_cv_func_iconv_works" = no ||
break
23926 LIBS
="$am_save_LIBS"
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
23930 $as_echo "$am_cv_func_iconv_works" >&6; }
23931 case "$am_cv_func_iconv_works" in
23932 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
23933 *) am_func_iconv
=yes ;;
23936 am_func_iconv
=no am_cv_lib_iconv
=no
23938 if test "$am_func_iconv" = yes; then
23940 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
23943 if test "$am_cv_lib_iconv" = yes; then
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
23945 $as_echo_n "checking how to link with libiconv... " >&6; }
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
23947 $as_echo "$LIBICONV" >&6; }
23949 CPPFLAGS
="$am_save_CPPFLAGS"
23961 acl_save_prefix
="$prefix"
23962 prefix
="$acl_final_prefix"
23963 acl_save_exec_prefix
="$exec_prefix"
23964 exec_prefix
="$acl_final_exec_prefix"
23966 eval additional_includedir
=\"$includedir\"
23967 eval additional_libdir
=\"$libdir\"
23969 exec_prefix
="$acl_save_exec_prefix"
23970 prefix
="$acl_save_prefix"
23973 # Check whether --with-libintl-prefix was given.
23974 if test "${with_libintl_prefix+set}" = set; then :
23975 withval
=$with_libintl_prefix;
23976 if test "X$withval" = "Xno"; then
23979 if test "X$withval" = "X"; then
23981 acl_save_prefix
="$prefix"
23982 prefix
="$acl_final_prefix"
23983 acl_save_exec_prefix
="$exec_prefix"
23984 exec_prefix
="$acl_final_exec_prefix"
23986 eval additional_includedir
=\"$includedir\"
23987 eval additional_libdir
=\"$libdir\"
23989 exec_prefix
="$acl_save_exec_prefix"
23990 prefix
="$acl_save_prefix"
23993 additional_includedir
="$withval/include"
23994 additional_libdir
="$withval/lib"
24001 # Check whether --with-libintl-type was given.
24002 if test "${with_libintl_type+set}" = set; then :
24003 withval
=$with_libintl_type; with_libintl_type
=$withval
24005 with_libintl_type
=auto
24008 lib_type
=`eval echo \$with_libintl_type`
24015 names_already_handled
=
24016 names_next_round
='intl '
24017 while test -n "$names_next_round"; do
24018 names_this_round
="$names_next_round"
24020 for name
in $names_this_round; do
24022 for n
in $names_already_handled; do
24023 if test "$n" = "$name"; then
24024 already_handled
=yes
24028 if test -z "$already_handled"; then
24029 names_already_handled
="$names_already_handled $name"
24030 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24031 eval value
=\"\
$HAVE_LIB$uppername\"
24032 if test -n "$value"; then
24033 if test "$value" = yes; then
24034 eval value
=\"\
$LIB$uppername\"
24035 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
24036 eval value
=\"\
$LTLIB$uppername\"
24037 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
24046 if test $use_additional = yes; then
24047 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
24048 found_dir
="$additional_libdir"
24049 found_so
="$additional_libdir/lib$name.$shlibext"
24050 if test -f "$additional_libdir/lib$name.la"; then
24051 found_la
="$additional_libdir/lib$name.la"
24053 elif test x
$lib_type != xshared
; then
24054 if test -f "$additional_libdir/lib$name.$libext"; then
24055 found_dir
="$additional_libdir"
24056 found_a
="$additional_libdir/lib$name.$libext"
24057 if test -f "$additional_libdir/lib$name.la"; then
24058 found_la
="$additional_libdir/lib$name.la"
24063 if test "X$found_dir" = "X"; then
24064 for x
in $LDFLAGS $LTLIBINTL; do
24066 acl_save_prefix
="$prefix"
24067 prefix
="$acl_final_prefix"
24068 acl_save_exec_prefix
="$exec_prefix"
24069 exec_prefix
="$acl_final_exec_prefix"
24071 exec_prefix
="$acl_save_exec_prefix"
24072 prefix
="$acl_save_prefix"
24076 dir
=`echo "X$x" | sed -e 's/^X-L//'`
24077 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
24079 found_so
="$dir/lib$name.$shlibext"
24080 if test -f "$dir/lib$name.la"; then
24081 found_la
="$dir/lib$name.la"
24083 elif test x
$lib_type != xshared
; then
24084 if test -f "$dir/lib$name.$libext"; then
24086 found_a
="$dir/lib$name.$libext"
24087 if test -f "$dir/lib$name.la"; then
24088 found_la
="$dir/lib$name.la"
24094 if test "X$found_dir" != "X"; then
24099 if test "X$found_dir" != "X"; then
24100 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24101 if test "X$found_so" != "X"; then
24102 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
24103 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
24106 for x
in $ltrpathdirs; do
24107 if test "X$x" = "X$found_dir"; then
24112 if test -z "$haveit"; then
24113 ltrpathdirs
="$ltrpathdirs $found_dir"
24115 if test "$hardcode_direct" = yes; then
24116 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
24118 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
24119 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
24121 for x
in $rpathdirs; do
24122 if test "X$x" = "X$found_dir"; then
24127 if test -z "$haveit"; then
24128 rpathdirs
="$rpathdirs $found_dir"
24132 for x
in $LDFLAGS $LIBINTL; do
24134 acl_save_prefix
="$prefix"
24135 prefix
="$acl_final_prefix"
24136 acl_save_exec_prefix
="$exec_prefix"
24137 exec_prefix
="$acl_final_exec_prefix"
24139 exec_prefix
="$acl_save_exec_prefix"
24140 prefix
="$acl_save_prefix"
24142 if test "X$x" = "X-L$found_dir"; then
24147 if test -z "$haveit"; then
24148 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24150 if test "$hardcode_minus_L" != no
; then
24151 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
24153 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
24159 if test "X$found_a" != "X"; then
24160 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
24162 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24165 additional_includedir
=
24166 case "$found_dir" in
24168 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24169 additional_includedir
="$basedir/include"
24172 if test "X$additional_includedir" != "X"; then
24173 if test "X$additional_includedir" != "X/usr/include"; then
24175 if test "X$additional_includedir" = "X/usr/local/include"; then
24176 if test -n "$GCC"; then
24178 linux
*) haveit
=yes;;
24182 if test -z "$haveit"; then
24183 for x
in $CPPFLAGS $INCINTL; do
24185 acl_save_prefix
="$prefix"
24186 prefix
="$acl_final_prefix"
24187 acl_save_exec_prefix
="$exec_prefix"
24188 exec_prefix
="$acl_final_exec_prefix"
24190 exec_prefix
="$acl_save_exec_prefix"
24191 prefix
="$acl_save_prefix"
24193 if test "X$x" = "X-I$additional_includedir"; then
24198 if test -z "$haveit"; then
24199 if test -d "$additional_includedir"; then
24200 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24206 if test -n "$found_la"; then
24207 save_libdir
="$libdir"
24208 case "$found_la" in
24209 */* |
*\\*) .
"$found_la" ;;
24210 *) .
"./$found_la" ;;
24212 libdir
="$save_libdir"
24213 for dep
in $dependency_libs; do
24216 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
24217 if test "X$additional_libdir" != "X/usr/lib"; then
24219 if test "X$additional_libdir" = "X/usr/local/lib"; then
24220 if test -n "$GCC"; then
24222 linux
*) haveit
=yes;;
24226 if test -z "$haveit"; then
24228 for x
in $LDFLAGS $LIBINTL; do
24230 acl_save_prefix
="$prefix"
24231 prefix
="$acl_final_prefix"
24232 acl_save_exec_prefix
="$exec_prefix"
24233 exec_prefix
="$acl_final_exec_prefix"
24235 exec_prefix
="$acl_save_exec_prefix"
24236 prefix
="$acl_save_prefix"
24238 if test "X$x" = "X-L$additional_libdir"; then
24243 if test -z "$haveit"; then
24244 if test -d "$additional_libdir"; then
24245 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24249 for x
in $LDFLAGS $LTLIBINTL; do
24251 acl_save_prefix
="$prefix"
24252 prefix
="$acl_final_prefix"
24253 acl_save_exec_prefix
="$exec_prefix"
24254 exec_prefix
="$acl_final_exec_prefix"
24256 exec_prefix
="$acl_save_exec_prefix"
24257 prefix
="$acl_save_prefix"
24259 if test "X$x" = "X-L$additional_libdir"; then
24264 if test -z "$haveit"; then
24265 if test -d "$additional_libdir"; then
24266 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24273 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
24274 if test "$enable_rpath" != no
; then
24276 for x
in $rpathdirs; do
24277 if test "X$x" = "X$dir"; then
24282 if test -z "$haveit"; then
24283 rpathdirs
="$rpathdirs $dir"
24286 for x
in $ltrpathdirs; do
24287 if test "X$x" = "X$dir"; then
24292 if test -z "$haveit"; then
24293 ltrpathdirs
="$ltrpathdirs $dir"
24298 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24301 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24304 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
24305 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24311 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
24312 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
24313 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24315 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
24316 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
24323 if test "X$rpathdirs" != "X"; then
24324 if test -n "$hardcode_libdir_separator"; then
24326 for found_dir
in $rpathdirs; do
24327 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24329 acl_save_libdir
="$libdir"
24331 eval flag
=\"$hardcode_libdir_flag_spec\"
24332 libdir
="$acl_save_libdir"
24333 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
24335 for found_dir
in $rpathdirs; do
24336 acl_save_libdir
="$libdir"
24337 libdir
="$found_dir"
24338 eval flag
=\"$hardcode_libdir_flag_spec\"
24339 libdir
="$acl_save_libdir"
24340 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
24344 if test "X$ltrpathdirs" != "X"; then
24345 for found_dir
in $ltrpathdirs; do
24346 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
24351 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
24352 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
24353 $as_echo_n "(cached) " >&6
24355 gt_save_CPPFLAGS
="$CPPFLAGS"
24356 CPPFLAGS
="$CPPFLAGS $INCINTL"
24357 gt_save_LIBS
="$LIBS"
24358 LIBS
="$LIBS $LIBINTL"
24359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24360 /* end confdefs.h. */
24362 #include <libintl.h>
24363 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
24364 extern int _nl_msg_cat_cntr;
24369 const char *_nl_expand_alias (const char *);
24370 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
24372 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
24374 $gt_revision_test_code
24380 bindtextdomain ("", "");
24381 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
24387 if ac_fn_c_try_link
"$LINENO"; then :
24388 eval "$gt_func_gnugettext_libintl=yes"
24390 eval "$gt_func_gnugettext_libintl=no"
24392 rm -f core conftest.err conftest.
$ac_objext \
24393 conftest
$ac_exeext conftest.
$ac_ext
24394 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
24395 LIBS
="$LIBS $LIBICONV"
24396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24397 /* end confdefs.h. */
24399 #include <libintl.h>
24400 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
24401 extern int _nl_msg_cat_cntr;
24406 const char *_nl_expand_alias (const char *);
24407 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
24409 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
24411 $gt_revision_test_code
24417 bindtextdomain ("", "");
24418 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
24424 if ac_fn_c_try_link
"$LINENO"; then :
24425 LIBINTL
="$LIBINTL $LIBICONV"
24426 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
24427 eval "$gt_func_gnugettext_libintl=yes"
24430 rm -f core conftest.err conftest.
$ac_objext \
24431 conftest
$ac_exeext conftest.
$ac_ext
24433 CPPFLAGS
="$gt_save_CPPFLAGS"
24434 LIBS
="$gt_save_LIBS"
24436 eval ac_res
=\$
$gt_func_gnugettext_libintl
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24438 $as_echo "$ac_res" >&6; }
24441 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
24442 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
24443 && test "$PACKAGE" != gettext-runtime \
24444 && test "$PACKAGE" != gettext-tools
; }; then
24445 gt_use_preinstalled_gnugettext
=yes
24454 if test -n "$INTL_MACOSX_LIBS"; then
24455 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24456 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
24457 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
24458 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
24462 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24463 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
24465 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
24473 $as_echo_n "checking whether to use NLS... " >&6; }
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
24475 $as_echo "$USE_NLS" >&6; }
24476 if test "$USE_NLS" = "yes"; then
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
24478 $as_echo_n "checking where the gettext function comes from... " >&6; }
24479 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24480 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
24481 gt_source
="external libintl"
24486 gt_source
="included intl directory"
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
24489 $as_echo "$gt_source" >&6; }
24492 if test "$USE_NLS" = "yes"; then
24494 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24495 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
24497 $as_echo_n "checking how to link with libintl... " >&6; }
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
24499 $as_echo "$LIBINTL" >&6; }
24501 for element
in $INCINTL; do
24503 for x
in $CPPFLAGS; do
24505 acl_save_prefix
="$prefix"
24506 prefix
="$acl_final_prefix"
24507 acl_save_exec_prefix
="$exec_prefix"
24508 exec_prefix
="$acl_final_exec_prefix"
24510 exec_prefix
="$acl_save_exec_prefix"
24511 prefix
="$acl_save_prefix"
24513 if test "X$x" = "X$element"; then
24518 if test -z "$haveit"; then
24519 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
24526 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
24529 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
24538 INTLLIBS
="$LIBINTL"
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
24558 $as_echo_n "checking whether NLS is requested... " >&6; }
24559 if test x
"$USE_NLS" != xyes
; then
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24561 $as_echo "no" >&6; }
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24564 $as_echo "yes" >&6; }
24566 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
24570 $as_echo_n "checking for catalogs to be installed... " >&6; }
24571 # Look for .po and .gmo files in the source directory.
24574 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
24575 # If there aren't any .gmo files the shell will give us the
24576 # literal string "../path/to/srcdir/po/*.gmo" which has to be
24578 case "$cat" in *\
**)
24581 # The quadruple backslash is collapsed to a double backslash
24582 # by the backticks, then collapsed again by the double quotes,
24583 # leaving us with one backslash in the sed expression (right
24584 # before the dot that mustn't act as a wildcard).
24585 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
24586 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
24587 # The user is allowed to set LINGUAS to a list of languages to
24588 # install catalogs for. If it's empty that means "all of them."
24589 if test "x$LINGUAS" = x
; then
24590 CATALOGS
="$CATALOGS $cat"
24591 XLINGUAS
="$XLINGUAS $lang"
24593 case "$LINGUAS" in *$lang*)
24594 CATALOGS
="$CATALOGS $cat"
24595 XLINGUAS
="$XLINGUAS $lang"
24600 LINGUAS
="$XLINGUAS"
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
24602 $as_echo "$LINGUAS" >&6; }
24615 localedir
='${datadir}/locale'
24618 if test x
"$USE_NLS" = xyes
; then
24619 CONFIG_ALL
="$CONFIG_ALL all-po"
24620 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
24621 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
24622 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
24627 cat >>confdefs.h
<<_ACEOF
24628 #define PACKAGE "$PACKAGE"
24633 # We never need to detect it in this sub-configure.
24634 # But preserve it for config.status --recheck.
24638 MAKEINFO_EXTRA_FLAGS
=""
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
24640 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
24641 if ${gdb_cv_have_makeinfo_click+:} false
; then :
24642 $as_echo_n "(cached) " >&6
24644 echo '@clicksequence{a @click{} b}' >conftest.texinfo
24645 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
24646 gdb_cv_have_makeinfo_click
=yes
24648 gdb_cv_have_makeinfo_click
=no
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
24652 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
24653 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
24654 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
24660 # Check whether --with-separate-debug-dir was given.
24661 if test "${with_separate_debug_dir+set}" = set; then :
24662 withval
=$with_separate_debug_dir;
24665 DEBUGDIR
=${libdir}/debug
24669 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
24670 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24671 ac_define_dir
=`eval echo $DEBUGDIR`
24672 ac_define_dir
=`eval echo $ac_define_dir`
24674 cat >>confdefs.h
<<_ACEOF
24675 #define DEBUGDIR "$ac_define_dir"
24681 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
24682 if test "x$prefix" = xNONE
; then
24683 test_prefix
=/usr
/local
24685 test_prefix
=$prefix
24688 test_prefix
=$exec_prefix
24691 case ${ac_define_dir} in
24692 "${test_prefix}"|
"${test_prefix}/"*|\
24693 '${exec_prefix}'|
'${exec_prefix}/'*)
24698 cat >>confdefs.h
<<_ACEOF
24699 #define DEBUGDIR_RELOCATABLE $value
24706 # Check whether --with-additional-debug-dirs was given.
24707 if test "${with_additional_debug_dirs+set}" = set; then :
24708 withval
=$with_additional_debug_dirs;
24709 cat >>confdefs.h
<<_ACEOF
24710 #define ADDITIONAL_DEBUG_DIRS "${withval}"
24716 # We can't pass paths as command line arguments.
24717 # Mingw32 tries to be clever and will convert the paths for us.
24718 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
24719 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
24720 # This breaks GDB's relocatable path conversions since paths passed in
24721 # config.h would not get so translated, the path prefixes no longer match.
24723 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
24724 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24725 ac_define_dir
=`eval echo $bindir`
24726 ac_define_dir
=`eval echo $ac_define_dir`
24728 cat >>confdefs.h
<<_ACEOF
24729 #define BINDIR "$ac_define_dir"
24734 # GDB's datadir relocation
24738 # Check whether --with-gdb-datadir was given.
24739 if test "${with_gdb_datadir+set}" = set; then :
24740 withval
=$with_gdb_datadir;
24741 GDB_DATADIR
=$withval
24743 GDB_DATADIR
=${datadir}/gdb
24747 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
24748 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24749 ac_define_dir
=`eval echo $GDB_DATADIR`
24750 ac_define_dir
=`eval echo $ac_define_dir`
24752 cat >>confdefs.h
<<_ACEOF
24753 #define GDB_DATADIR "$ac_define_dir"
24759 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
24760 if test "x$prefix" = xNONE
; then
24761 test_prefix
=/usr
/local
24763 test_prefix
=$prefix
24766 test_prefix
=$exec_prefix
24769 case ${ac_define_dir} in
24770 "${test_prefix}"|
"${test_prefix}/"*|\
24771 '${exec_prefix}'|
'${exec_prefix}/'*)
24776 cat >>confdefs.h
<<_ACEOF
24777 #define GDB_DATADIR_RELOCATABLE $value
24784 # Check whether --with-relocated-sources was given.
24785 if test "${with_relocated_sources+set}" = set; then :
24786 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
24788 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
24789 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24790 ac_define_dir
=`eval echo $reloc_srcdir`
24791 ac_define_dir
=`eval echo $ac_define_dir`
24793 cat >>confdefs.h
<<_ACEOF
24794 #define RELOC_SRCDIR "$ac_define_dir"
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
24803 $as_echo_n "checking for default auto-load directory... " >&6; }
24805 # Check whether --with-auto-load-dir was given.
24806 if test "${with_auto_load_dir+set}" = set; then :
24807 withval
=$with_auto_load_dir;
24809 with_auto_load_dir
='$debugdir:$datadir/auto-load'
24812 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
24814 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
24815 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24816 ac_define_dir
=`eval echo $escape_dir`
24817 ac_define_dir
=`eval echo $ac_define_dir`
24819 cat >>confdefs.h
<<_ACEOF
24820 #define AUTO_LOAD_DIR "$ac_define_dir"
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
24825 $as_echo "$with_auto_load_dir" >&6; }
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
24828 $as_echo_n "checking for default auto-load safe-path... " >&6; }
24830 # Check whether --with-auto-load-safe-path was given.
24831 if test "${with_auto_load_safe_path+set}" = set; then :
24832 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
24833 with_auto_load_safe_path
="/"
24836 with_auto_load_safe_path
="$with_auto_load_dir"
24839 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
24841 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
24842 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24843 ac_define_dir
=`eval echo $escape_dir`
24844 ac_define_dir
=`eval echo $ac_define_dir`
24846 cat >>confdefs.h
<<_ACEOF
24847 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
24852 $as_echo "$with_auto_load_safe_path" >&6; }
24856 subdirs
="$subdirs testsuite"
24859 # Check whether to support alternative target configurations
24860 # Check whether --enable-targets was given.
24861 if test "${enable_targets+set}" = set; then :
24862 enableval
=$enable_targets; case "${enableval}" in
24863 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
24865 no
) enable_targets
= ;;
24867 enable_targets
=$enableval
24869 cat >>confdefs.h
<<_ACEOF
24870 #define ENABLE_TARGETS "$enable_targets"
24879 # Check whether --enable-64-bit-bfd was given.
24880 if test "${enable_64_bit_bfd+set}" = set; then :
24881 enableval
=$enable_64_bit_bfd; case $enableval in #(
24885 as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
24890 enable_64_bit_bfd
=no
24894 if test "x$enable_64_bit_bfd" = "xno"; then :
24895 # The cast to long int works around a bug in the HP C Compiler
24896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24898 # This bug is HP SR number 8606223364.
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
24900 $as_echo_n "checking size of void *... " >&6; }
24901 if ${ac_cv_sizeof_void_p+:} false
; then :
24902 $as_echo_n "(cached) " >&6
24904 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
24907 if test "$ac_cv_type_void_p" = yes; then
24908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24910 as_fn_error
77 "cannot compute sizeof (void *)
24911 See \`config.log' for more details" "$LINENO" 5; }
24913 ac_cv_sizeof_void_p
=0
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
24919 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24923 cat >>confdefs.h
<<_ACEOF
24924 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24928 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
24929 enable_64_bit_bfd
=yes
24934 if test "x$enable_64_bit_bfd" = "xyes"; then
24935 ENABLE_BFD_64_BIT_TRUE
=
24936 ENABLE_BFD_64_BIT_FALSE
='#'
24938 ENABLE_BFD_64_BIT_TRUE
='#'
24939 ENABLE_BFD_64_BIT_FALSE
=
24944 # Provide defaults for some variables set by the per-host and per-target
24946 gdb_host_obs
=posix-hdep.o
24948 if test "${target}" = "${host}"; then
24954 .
$srcdir/configure.
host
24956 # Accumulate some settings from configure.tgt over all enabled targets
24960 HAVE_NATIVE_GCORE_TARGET
=
24962 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
24964 if test "$targ_alias" = "all"; then
24967 # Canonicalize the secondary target names.
24968 result
=`$ac_config_sub $targ_alias 2>/dev/null`
24969 if test -n "$result"; then
24975 .
${srcdir}/configure.tgt
24977 if test -z "${gdb_target_obs}"; then :
24978 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
24981 # Target-specific object files
24982 for i
in ${gdb_target_obs}; do
24983 case " $TARGET_OBS " in
24986 TARGET_OBS
="$TARGET_OBS ${i}"
24991 # Check whether this target needs 64-bit CORE_ADDR
24992 if test x
${enable_64_bit_bfd} = xno
; then
24993 .
${srcdir}/..
/bfd
/config.bfd
24996 # Check whether this target is native and supports gcore.
24997 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
24998 && $gdb_have_gcore; then
24999 HAVE_NATIVE_GCORE_TARGET
=1
25004 if test x
${all_targets} = xtrue
; then
25005 if test x
${enable_64_bit_bfd} = xyes
; then
25006 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
25008 # If all targets were requested, but 64 bit bfd is not enabled,
25009 # the build will fail. See PR 28684.
25010 as_fn_error $?
"--enable-targets=all requires --enable-64-bit-bfd" "$LINENO" 5
25015 if test $gdb_native = yes; then
25020 # AMD debugger API support.
25023 # Check whether --with-amd-dbgapi was given.
25024 if test "${with_amd_dbgapi+set}" = set; then :
25025 withval
=$with_amd_dbgapi;
25030 as_fn_error $?
"bad value $withval for --with-amd-dbgapi" "$LINENO" 5
25035 with_amd_dbgapi
=auto
25039 # If the user passes --without-amd-dbgapi but also explicitly enables a target
25040 # that requires amd-dbgapi, it is an error.
25041 if test "$with_amd_dbgapi" = no
-a "$gdb_require_amd_dbgapi" = true
; then
25042 as_fn_error $?
"an explicitly enabled target requires amd-dbgapi, but amd-dbgapi is explicitly disabled" "$LINENO" 5
25045 # Look for amd-dbgapi if:
25047 # - a target architecture requiring it has explicitly been enabled, or
25048 # - --enable-targets=all was provided and the user did not explicitly disable
25049 # amd-dbgapi support
25050 if test "$gdb_require_amd_dbgapi" = true \
25051 -o \
( "$all_targets" = true
-a "$with_amd_dbgapi" != no \
); then
25052 # amd-dbgapi version 0.68 is part of ROCm 5.4. There is no guarantee of API
25053 # stability until amd-dbgapi hits 1.0, but for convenience, still check for
25054 # greater or equal that version. It can be handy when testing with a newer
25055 # version of the library.
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.75.0" >&5
25059 $as_echo_n "checking for amd-dbgapi >= 0.75.0... " >&6; }
25061 if test -n "$AMD_DBGAPI_CFLAGS"; then
25062 pkg_cv_AMD_DBGAPI_CFLAGS
="$AMD_DBGAPI_CFLAGS"
25063 elif test -n "$PKG_CONFIG"; then
25064 if test -n "$PKG_CONFIG" && \
25065 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.75.0\""; } >&5
25066 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.75.0") 2>&5
25068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25069 test $ac_status = 0; }; then
25070 pkg_cv_AMD_DBGAPI_CFLAGS
=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.75.0" 2>/dev/null`
25071 test "x$?" != "x0" && pkg_failed
=yes
25078 if test -n "$AMD_DBGAPI_LIBS"; then
25079 pkg_cv_AMD_DBGAPI_LIBS
="$AMD_DBGAPI_LIBS"
25080 elif test -n "$PKG_CONFIG"; then
25081 if test -n "$PKG_CONFIG" && \
25082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.75.0\""; } >&5
25083 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.75.0") 2>&5
25085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25086 test $ac_status = 0; }; then
25087 pkg_cv_AMD_DBGAPI_LIBS
=`$PKG_CONFIG --libs "amd-dbgapi >= 0.75.0" 2>/dev/null`
25088 test "x$?" != "x0" && pkg_failed
=yes
25096 if test $pkg_failed = no
; then
25097 pkg_save_LDFLAGS
="$LDFLAGS"
25098 LDFLAGS
="$LDFLAGS $pkg_cv_AMD_DBGAPI_LIBS"
25099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25100 /* end confdefs.h. */
25110 if ac_fn_c_try_link
"$LINENO"; then :
25115 rm -f core conftest.err conftest.
$ac_objext \
25116 conftest
$ac_exeext conftest.
$ac_ext
25117 LDFLAGS
=$pkg_save_LDFLAGS
25122 if test $pkg_failed = yes; then
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25124 $as_echo "no" >&6; }
25126 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25127 _pkg_short_errors_supported
=yes
25129 _pkg_short_errors_supported
=no
25131 if test $_pkg_short_errors_supported = yes; then
25132 AMD_DBGAPI_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.75.0" 2>&1`
25134 AMD_DBGAPI_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.75.0" 2>&1`
25136 # Put the nasty error message in config.log where it belongs
25137 echo "$AMD_DBGAPI_PKG_ERRORS" >&5
25140 elif test $pkg_failed = untried
; then
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25142 $as_echo "no" >&6; }
25145 AMD_DBGAPI_CFLAGS
=$pkg_cv_AMD_DBGAPI_CFLAGS
25146 AMD_DBGAPI_LIBS
=$pkg_cv_AMD_DBGAPI_LIBS
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25148 $as_echo "yes" >&6; }
25152 if test "$has_amd_dbgapi" = "yes"; then
25154 $as_echo "#define HAVE_AMD_DBGAPI 1" >>confdefs.h
25156 TARGET_OBS
="$TARGET_OBS amd-dbgapi-target.o"
25158 # If --enable-targets=all was provided, use the list of all files depending
25159 # on amd-dbgapi that is hardcoded in the Makefile. Else, the appropriate
25160 # architecture entry in configure.tgt will have added the files to
25162 if test "$all_targets" = true
; then
25163 TARGET_OBS
="$TARGET_OBS \$(ALL_AMD_DBGAPI_TARGET_OBS)"
25165 elif test "$gdb_require_amd_dbgapi" = true
-o "$with_amd_dbgapi" = yes; then
25166 # amd-dbgapi was not found and...
25168 # - a target requiring it was explicitly enabled, or
25169 # - the user explicitly wants to enable amd-dbgapi
25170 as_fn_error $?
"amd-dbgapi is required, but cannot find an appropriate version: $AMD_DBGAPI_PKG_ERRORS" "$LINENO" 5
25177 # For other settings, only the main target counts.
25180 targ
=$target; .
${srcdir}/configure.tgt
25182 # Fetch the default architecture and default target vector from BFD.
25183 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
25185 # We only want the first architecture, so strip off the others if
25186 # there is more than one.
25187 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
25189 if test "x$targ_archs" != x
; then
25191 cat >>confdefs.h
<<_ACEOF
25192 #define DEFAULT_BFD_ARCH $targ_archs
25196 if test "x$targ_defvec" != x
; then
25198 cat >>confdefs.h
<<_ACEOF
25199 #define DEFAULT_BFD_VEC $targ_defvec
25205 # Check whether --enable-tui was given.
25206 if test "${enable_tui+set}" = set; then :
25207 enableval
=$enable_tui;
25212 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5
25222 # Check whether --enable-gdbtk was given.
25223 if test "${enable_gdbtk+set}" = set; then :
25224 enableval
=$enable_gdbtk;
25229 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5
25234 if test -d "$srcdir/gdbtk"; then
25241 # We unconditionally disable gdbtk tests on selected platforms.
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
25245 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
25249 # Handle optional debuginfod support
25251 # Handle optional debuginfod support as well as optional section
25252 # downloading support.
25254 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
25256 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
25257 # version >= 0.188.
25259 # Check whether --with-debuginfod was given.
25260 if test "${with_debuginfod+set}" = set; then :
25261 withval
=$with_debuginfod;
25263 with_debuginfod
=auto
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
25267 $as_echo_n "checking whether to use debuginfod... " >&6; }
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
25269 $as_echo "$with_debuginfod" >&6; }
25271 if test "x$with_debuginfod" != xno
; then
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
25275 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
25277 if test -n "$DEBUGINFOD_CFLAGS"; then
25278 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
25279 elif test -n "$PKG_CONFIG"; then
25280 if test -n "$PKG_CONFIG" && \
25281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
25282 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
25284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285 test $ac_status = 0; }; then
25286 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
25287 test "x$?" != "x0" && pkg_failed
=yes
25294 if test -n "$DEBUGINFOD_LIBS"; then
25295 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
25296 elif test -n "$PKG_CONFIG"; then
25297 if test -n "$PKG_CONFIG" && \
25298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
25299 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
25301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25302 test $ac_status = 0; }; then
25303 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
25304 test "x$?" != "x0" && pkg_failed
=yes
25312 if test $pkg_failed = no
; then
25313 pkg_save_LDFLAGS
="$LDFLAGS"
25314 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
25315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25316 /* end confdefs.h. */
25326 if ac_fn_c_try_link
"$LINENO"; then :
25331 rm -f core conftest.err conftest.
$ac_objext \
25332 conftest
$ac_exeext conftest.
$ac_ext
25333 LDFLAGS
=$pkg_save_LDFLAGS
25338 if test $pkg_failed = yes; then
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25340 $as_echo "no" >&6; }
25342 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25343 _pkg_short_errors_supported
=yes
25345 _pkg_short_errors_supported
=no
25347 if test $_pkg_short_errors_supported = yes; then
25348 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
25350 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
25352 # Put the nasty error message in config.log where it belongs
25353 echo "$DEBUGINFOD_PKG_ERRORS" >&5
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
25356 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
25357 elif test $pkg_failed = untried
; then
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25359 $as_echo "no" >&6; }
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
25361 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
25363 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
25364 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25366 $as_echo "yes" >&6; }
25368 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
25375 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
25377 if test -n "$DEBUGINFOD_CFLAGS"; then
25378 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
25379 elif test -n "$PKG_CONFIG"; then
25380 if test -n "$PKG_CONFIG" && \
25381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
25382 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
25384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25385 test $ac_status = 0; }; then
25386 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
25387 test "x$?" != "x0" && pkg_failed
=yes
25394 if test -n "$DEBUGINFOD_LIBS"; then
25395 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
25396 elif test -n "$PKG_CONFIG"; then
25397 if test -n "$PKG_CONFIG" && \
25398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
25399 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
25401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402 test $ac_status = 0; }; then
25403 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
25404 test "x$?" != "x0" && pkg_failed
=yes
25412 if test $pkg_failed = no
; then
25413 pkg_save_LDFLAGS
="$LDFLAGS"
25414 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
25415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25416 /* end confdefs.h. */
25426 if ac_fn_c_try_link
"$LINENO"; then :
25431 rm -f core conftest.err conftest.
$ac_objext \
25432 conftest
$ac_exeext conftest.
$ac_ext
25433 LDFLAGS
=$pkg_save_LDFLAGS
25438 if test $pkg_failed = yes; then
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25440 $as_echo "no" >&6; }
25442 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25443 _pkg_short_errors_supported
=yes
25445 _pkg_short_errors_supported
=no
25447 if test $_pkg_short_errors_supported = yes; then
25448 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
25450 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
25452 # Put the nasty error message in config.log where it belongs
25453 echo "$DEBUGINFOD_PKG_ERRORS" >&5
25455 if test "x$with_debuginfod" = xyes
; then
25456 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
25459 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
25461 elif test $pkg_failed = untried
; then
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25463 $as_echo "no" >&6; }
25464 if test "x$with_debuginfod" = xyes
; then
25465 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
25468 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
25471 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
25472 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25474 $as_echo "yes" >&6; }
25476 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
25481 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
25485 # Libunwind support for ia64.
25487 # Check whether --with-libunwind-ia64 was given.
25488 if test "${with_libunwind_ia64+set}" = set; then :
25489 withval
=$with_libunwind_ia64;
25491 with_libunwind_ia64
=auto
25495 # Backward compatibility option.
25496 if test "${with_libunwind+set}" = set; then
25497 if test x
"$with_libunwind_ia64" != xauto
; then
25498 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
25501 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
25502 with_libunwind_ia64
="$with_libunwind"
25505 case "$with_libunwind_ia64" in
25509 for ac_header
in libunwind-ia64.h
25511 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
25512 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
25513 cat >>confdefs.h
<<_ACEOF
25514 #define HAVE_LIBUNWIND_IA64_H 1
25521 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
25524 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
25528 if test x
"$with_libunwind_ia64" = xyes
; then
25529 for ac_header
in libunwind-ia64.h
25531 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
25532 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
25533 cat >>confdefs.h
<<_ACEOF
25534 #define HAVE_LIBUNWIND_IA64_H 1
25541 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
25542 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
25544 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
25545 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
25546 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
25551 # Check whether --with-curses was given.
25552 if test "${with_curses+set}" = set; then :
25553 withval
=$with_curses; opt_curses
=$withval
25558 if test "$opt_curses" = "yes"; then
25562 # Profiling support.
25563 # Check whether --enable-profiling was given.
25564 if test "${enable_profiling+set}" = set; then :
25565 enableval
=$enable_profiling;
25570 as_fn_error $?
"bad value $enableval for --enable-profiling" "$LINENO" 5
25575 enable_profiling
=no
25579 for ac_func
in monstartup _mcleanup
25581 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25582 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25583 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
25584 cat >>confdefs.h
<<_ACEOF
25585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
25592 $as_echo_n "checking for _etext... " >&6; }
25593 if ${ac_cv_var__etext+:} false
; then :
25594 $as_echo_n "(cached) " >&6
25596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h. */
25598 #include <stdlib.h>
25599 extern char _etext;
25609 if ac_fn_c_try_link
"$LINENO"; then :
25610 ac_cv_var__etext
=yes
25612 ac_cv_var__etext
=no
25615 rm -f core conftest.err conftest.
$ac_objext \
25616 conftest
$ac_exeext conftest.
$ac_ext
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
25620 $as_echo "$ac_cv_var__etext" >&6; }
25621 if test "$ac_cv_var__etext" = yes; then
25623 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
25627 $as_echo_n "checking for etext... " >&6; }
25628 if ${ac_cv_var_etext+:} false
; then :
25629 $as_echo_n "(cached) " >&6
25631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25632 /* end confdefs.h. */
25633 #include <stdlib.h>
25644 if ac_fn_c_try_link
"$LINENO"; then :
25645 ac_cv_var_etext
=yes
25650 rm -f core conftest.err conftest.
$ac_objext \
25651 conftest
$ac_exeext conftest.
$ac_ext
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
25655 $as_echo "$ac_cv_var_etext" >&6; }
25656 if test "$ac_cv_var_etext" = yes; then
25658 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
25661 if test "$enable_profiling" = yes ; then
25662 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
25663 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
25666 OLD_CFLAGS
="$CFLAGS"
25667 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
25670 $as_echo_n "checking whether $CC supports -pg... " >&6; }
25671 if ${ac_cv_cc_supports_pg+:} false
; then :
25672 $as_echo_n "(cached) " >&6
25674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25675 /* end confdefs.h. */
25685 if ac_fn_c_try_compile
"$LINENO"; then :
25686 ac_cv_cc_supports_pg
=yes
25688 ac_cv_cc_supports_pg
=no
25691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
25695 $as_echo "$ac_cv_cc_supports_pg" >&6; }
25697 if test "$ac_cv_cc_supports_pg" = no
; then
25698 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
25701 CFLAGS
="$OLD_CFLAGS"
25705 # Check whether --enable-codesign was given.
25706 if test "${enable_codesign+set}" = set; then :
25707 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
25714 # Check whether --with-pkgversion was given.
25715 if test "${with_pkgversion+set}" = set; then :
25716 withval
=$with_pkgversion; case "$withval" in
25717 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
25719 *) PKGVERSION
="($withval) " ;;
25722 PKGVERSION
="(GDB) "
25730 # Check whether --with-bugurl was given.
25731 if test "${with_bugurl+set}" = set; then :
25732 withval
=$with_bugurl; case "$withval" in
25733 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
25736 *) BUGURL
="$withval"
25740 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
25750 REPORT_BUGS_TO
="<$BUGURL>"
25751 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
25758 cat >>confdefs.h
<<_ACEOF
25759 #define PKGVERSION "$PKGVERSION"
25763 cat >>confdefs.h
<<_ACEOF
25764 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
25768 # --------------------- #
25769 # Checks for programs. #
25770 # --------------------- #
25772 for ac_prog
in gawk mawk nawk
awk
25774 # Extract the first word of "$ac_prog", so it can be a program name with args.
25775 set dummy
$ac_prog; ac_word
=$2
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25777 $as_echo_n "checking for $ac_word... " >&6; }
25778 if ${ac_cv_prog_AWK+:} false
; then :
25779 $as_echo_n "(cached) " >&6
25781 if test -n "$AWK"; then
25782 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
25784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25785 for as_dir
in $PATH
25788 test -z "$as_dir" && as_dir
=.
25789 for ac_exec_ext
in '' $ac_executable_extensions; do
25790 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25791 ac_cv_prog_AWK
="$ac_prog"
25792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25801 AWK
=$ac_cv_prog_AWK
25802 if test -n "$AWK"; then
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25804 $as_echo "$AWK" >&6; }
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25807 $as_echo "no" >&6; }
25811 test -n "$AWK" && break
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25816 $as_echo_n "checking whether ln -s works... " >&6; }
25818 if test "$LN_S" = "ln -s"; then
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25820 $as_echo "yes" >&6; }
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25823 $as_echo "no, using $LN_S" >&6; }
25826 if test -n "$ac_tool_prefix"; then
25827 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
25828 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25830 $as_echo_n "checking for $ac_word... " >&6; }
25831 if ${ac_cv_prog_RANLIB+:} false
; then :
25832 $as_echo_n "(cached) " >&6
25834 if test -n "$RANLIB"; then
25835 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
25837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25838 for as_dir
in $PATH
25841 test -z "$as_dir" && as_dir
=.
25842 for ac_exec_ext
in '' $ac_executable_extensions; do
25843 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25844 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
25845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25854 RANLIB
=$ac_cv_prog_RANLIB
25855 if test -n "$RANLIB"; then
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
25857 $as_echo "$RANLIB" >&6; }
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25860 $as_echo "no" >&6; }
25865 if test -z "$ac_cv_prog_RANLIB"; then
25866 ac_ct_RANLIB
=$RANLIB
25867 # Extract the first word of "ranlib", so it can be a program name with args.
25868 set dummy ranlib
; ac_word
=$2
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25870 $as_echo_n "checking for $ac_word... " >&6; }
25871 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
25872 $as_echo_n "(cached) " >&6
25874 if test -n "$ac_ct_RANLIB"; then
25875 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
25877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25878 for as_dir
in $PATH
25881 test -z "$as_dir" && as_dir
=.
25882 for ac_exec_ext
in '' $ac_executable_extensions; do
25883 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25884 ac_cv_prog_ac_ct_RANLIB
="ranlib"
25885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25894 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
25895 if test -n "$ac_ct_RANLIB"; then
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
25897 $as_echo "$ac_ct_RANLIB" >&6; }
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25900 $as_echo "no" >&6; }
25903 if test "x$ac_ct_RANLIB" = x
; then
25906 case $cross_compiling:$ac_tool_warned in
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25910 ac_tool_warned
=yes ;;
25912 RANLIB
=$ac_ct_RANLIB
25915 RANLIB
="$ac_cv_prog_RANLIB"
25918 for ac_prog
in 'bison -y' byacc
25920 # Extract the first word of "$ac_prog", so it can be a program name with args.
25921 set dummy
$ac_prog; ac_word
=$2
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25923 $as_echo_n "checking for $ac_word... " >&6; }
25924 if ${ac_cv_prog_YACC+:} false
; then :
25925 $as_echo_n "(cached) " >&6
25927 if test -n "$YACC"; then
25928 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
25930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25931 for as_dir
in $PATH
25934 test -z "$as_dir" && as_dir
=.
25935 for ac_exec_ext
in '' $ac_executable_extensions; do
25936 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25937 ac_cv_prog_YACC
="$ac_prog"
25938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25947 YACC
=$ac_cv_prog_YACC
25948 if test -n "$YACC"; then
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
25950 $as_echo "$YACC" >&6; }
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25953 $as_echo "no" >&6; }
25957 test -n "$YACC" && break
25959 test -n "$YACC" || YACC
="yacc"
25962 if test -n "$ac_tool_prefix"; then
25963 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
25964 set dummy
${ac_tool_prefix}ar; ac_word
=$2
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25966 $as_echo_n "checking for $ac_word... " >&6; }
25967 if ${ac_cv_prog_AR+:} false
; then :
25968 $as_echo_n "(cached) " >&6
25970 if test -n "$AR"; then
25971 ac_cv_prog_AR
="$AR" # Let the user override the test.
25973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25974 for as_dir
in $PATH
25977 test -z "$as_dir" && as_dir
=.
25978 for ac_exec_ext
in '' $ac_executable_extensions; do
25979 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25980 ac_cv_prog_AR
="${ac_tool_prefix}ar"
25981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25991 if test -n "$AR"; then
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
25993 $as_echo "$AR" >&6; }
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25996 $as_echo "no" >&6; }
26001 if test -z "$ac_cv_prog_AR"; then
26003 # Extract the first word of "ar", so it can be a program name with args.
26004 set dummy
ar; ac_word
=$2
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26006 $as_echo_n "checking for $ac_word... " >&6; }
26007 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
26008 $as_echo_n "(cached) " >&6
26010 if test -n "$ac_ct_AR"; then
26011 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
26013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26014 for as_dir
in $PATH
26017 test -z "$as_dir" && as_dir
=.
26018 for ac_exec_ext
in '' $ac_executable_extensions; do
26019 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26020 ac_cv_prog_ac_ct_AR
="ar"
26021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26030 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
26031 if test -n "$ac_ct_AR"; then
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
26033 $as_echo "$ac_ct_AR" >&6; }
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26036 $as_echo "no" >&6; }
26039 if test "x$ac_ct_AR" = x
; then
26042 case $cross_compiling:$ac_tool_warned in
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26046 ac_tool_warned
=yes ;;
26051 AR
="$ac_cv_prog_AR"
26054 if test -n "$ac_tool_prefix"; then
26055 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
26056 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26058 $as_echo_n "checking for $ac_word... " >&6; }
26059 if ${ac_cv_prog_DLLTOOL+:} false
; then :
26060 $as_echo_n "(cached) " >&6
26062 if test -n "$DLLTOOL"; then
26063 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
26065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26066 for as_dir
in $PATH
26069 test -z "$as_dir" && as_dir
=.
26070 for ac_exec_ext
in '' $ac_executable_extensions; do
26071 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26072 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
26073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26082 DLLTOOL
=$ac_cv_prog_DLLTOOL
26083 if test -n "$DLLTOOL"; then
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
26085 $as_echo "$DLLTOOL" >&6; }
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26088 $as_echo "no" >&6; }
26093 if test -z "$ac_cv_prog_DLLTOOL"; then
26094 ac_ct_DLLTOOL
=$DLLTOOL
26095 # Extract the first word of "dlltool", so it can be a program name with args.
26096 set dummy dlltool
; ac_word
=$2
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26098 $as_echo_n "checking for $ac_word... " >&6; }
26099 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
26100 $as_echo_n "(cached) " >&6
26102 if test -n "$ac_ct_DLLTOOL"; then
26103 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
26105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26106 for as_dir
in $PATH
26109 test -z "$as_dir" && as_dir
=.
26110 for ac_exec_ext
in '' $ac_executable_extensions; do
26111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26112 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
26113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26122 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
26123 if test -n "$ac_ct_DLLTOOL"; then
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
26125 $as_echo "$ac_ct_DLLTOOL" >&6; }
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26128 $as_echo "no" >&6; }
26131 if test "x$ac_ct_DLLTOOL" = x
; then
26134 case $cross_compiling:$ac_tool_warned in
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26138 ac_tool_warned
=yes ;;
26140 DLLTOOL
=$ac_ct_DLLTOOL
26143 DLLTOOL
="$ac_cv_prog_DLLTOOL"
26146 if test -n "$ac_tool_prefix"; then
26147 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
26148 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26150 $as_echo_n "checking for $ac_word... " >&6; }
26151 if ${ac_cv_prog_WINDRES+:} false
; then :
26152 $as_echo_n "(cached) " >&6
26154 if test -n "$WINDRES"; then
26155 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
26157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26158 for as_dir
in $PATH
26161 test -z "$as_dir" && as_dir
=.
26162 for ac_exec_ext
in '' $ac_executable_extensions; do
26163 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26164 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
26165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26174 WINDRES
=$ac_cv_prog_WINDRES
26175 if test -n "$WINDRES"; then
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
26177 $as_echo "$WINDRES" >&6; }
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26180 $as_echo "no" >&6; }
26185 if test -z "$ac_cv_prog_WINDRES"; then
26186 ac_ct_WINDRES
=$WINDRES
26187 # Extract the first word of "windres", so it can be a program name with args.
26188 set dummy windres
; ac_word
=$2
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26190 $as_echo_n "checking for $ac_word... " >&6; }
26191 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
26192 $as_echo_n "(cached) " >&6
26194 if test -n "$ac_ct_WINDRES"; then
26195 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
26197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26198 for as_dir
in $PATH
26201 test -z "$as_dir" && as_dir
=.
26202 for ac_exec_ext
in '' $ac_executable_extensions; do
26203 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26204 ac_cv_prog_ac_ct_WINDRES
="windres"
26205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26214 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
26215 if test -n "$ac_ct_WINDRES"; then
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
26217 $as_echo "$ac_ct_WINDRES" >&6; }
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26220 $as_echo "no" >&6; }
26223 if test "x$ac_ct_WINDRES" = x
; then
26226 case $cross_compiling:$ac_tool_warned in
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26230 ac_tool_warned
=yes ;;
26232 WINDRES
=$ac_ct_WINDRES
26235 WINDRES
="$ac_cv_prog_WINDRES"
26241 # Needed for GNU Hurd hosts.
26242 if test -n "$ac_tool_prefix"; then
26243 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
26244 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26246 $as_echo_n "checking for $ac_word... " >&6; }
26247 if ${ac_cv_prog_MIG+:} false
; then :
26248 $as_echo_n "(cached) " >&6
26250 if test -n "$MIG"; then
26251 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
26253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26254 for as_dir
in $PATH
26257 test -z "$as_dir" && as_dir
=.
26258 for ac_exec_ext
in '' $ac_executable_extensions; do
26259 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26260 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
26261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26270 MIG
=$ac_cv_prog_MIG
26271 if test -n "$MIG"; then
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
26273 $as_echo "$MIG" >&6; }
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26276 $as_echo "no" >&6; }
26281 if test -z "$ac_cv_prog_MIG"; then
26283 # Extract the first word of "mig", so it can be a program name with args.
26284 set dummy mig
; ac_word
=$2
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26286 $as_echo_n "checking for $ac_word... " >&6; }
26287 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
26288 $as_echo_n "(cached) " >&6
26290 if test -n "$ac_ct_MIG"; then
26291 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
26293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26294 for as_dir
in $PATH
26297 test -z "$as_dir" && as_dir
=.
26298 for ac_exec_ext
in '' $ac_executable_extensions; do
26299 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26300 ac_cv_prog_ac_ct_MIG
="mig"
26301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26310 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
26311 if test -n "$ac_ct_MIG"; then
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
26313 $as_echo "$ac_ct_MIG" >&6; }
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26316 $as_echo "no" >&6; }
26319 if test "x$ac_ct_MIG" = x
; then
26322 case $cross_compiling:$ac_tool_warned in
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26326 ac_tool_warned
=yes ;;
26331 MIG
="$ac_cv_prog_MIG"
26334 if test x
"$MIG" = x
; then
26335 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
26340 # ---------------------- #
26341 # Checks for libraries. #
26342 # ---------------------- #
26344 # We might need to link with -lm; most simulators need it.
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
26346 $as_echo_n "checking for main in -lm... " >&6; }
26347 if ${ac_cv_lib_m_main+:} false
; then :
26348 $as_echo_n "(cached) " >&6
26350 ac_check_lib_save_LIBS
=$LIBS
26352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26353 /* end confdefs.h. */
26364 if ac_fn_c_try_link
"$LINENO"; then :
26365 ac_cv_lib_m_main
=yes
26367 ac_cv_lib_m_main
=no
26369 rm -f core conftest.err conftest.
$ac_objext \
26370 conftest
$ac_exeext conftest.
$ac_ext
26371 LIBS
=$ac_check_lib_save_LIBS
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
26374 $as_echo "$ac_cv_lib_m_main" >&6; }
26375 if test "x$ac_cv_lib_m_main" = xyes
; then :
26376 cat >>confdefs.h
<<_ACEOF
26377 #define HAVE_LIBM 1
26385 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26387 $as_echo_n "checking for library containing gethostbyname... " >&6; }
26388 if ${ac_cv_search_gethostbyname+:} false
; then :
26389 $as_echo_n "(cached) " >&6
26391 ac_func_search_save_LIBS
=$LIBS
26392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26393 /* end confdefs.h. */
26395 /* Override any GCC internal prototype to avoid an error.
26396 Use char because int might match the return type of a GCC
26397 builtin and then its argument prototype would still apply. */
26401 char gethostbyname ();
26405 return gethostbyname ();
26410 for ac_lib
in '' nsl
; do
26411 if test -z "$ac_lib"; then
26412 ac_res
="none required"
26415 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26417 if ac_fn_c_try_link
"$LINENO"; then :
26418 ac_cv_search_gethostbyname
=$ac_res
26420 rm -f core conftest.err conftest.
$ac_objext \
26422 if ${ac_cv_search_gethostbyname+:} false
; then :
26426 if ${ac_cv_search_gethostbyname+:} false
; then :
26429 ac_cv_search_gethostbyname
=no
26431 rm conftest.
$ac_ext
26432 LIBS
=$ac_func_search_save_LIBS
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26435 $as_echo "$ac_cv_search_gethostbyname" >&6; }
26436 ac_res
=$ac_cv_search_gethostbyname
26437 if test "$ac_res" != no
; then :
26438 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26443 # Link in zlib/zstd if we can. This allows us to read compressed debug
26446 # Use the system's zlib library.
26447 zlibdir
="-L\$(top_builddir)/../zlib"
26448 zlibinc
="-I\$(top_srcdir)/../zlib"
26450 # Check whether --with-system-zlib was given.
26451 if test "${with_system_zlib+set}" = set; then :
26452 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
26464 # Check whether --with-zstd was given.
26465 if test "${with_zstd+set}" = set; then :
26466 withval
=$with_zstd;
26472 if test "$with_zstd" != no
; then :
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
26476 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
26478 if test -n "$ZSTD_CFLAGS"; then
26479 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
26480 elif test -n "$PKG_CONFIG"; then
26481 if test -n "$PKG_CONFIG" && \
26482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
26483 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
26485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26486 test $ac_status = 0; }; then
26487 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
26488 test "x$?" != "x0" && pkg_failed
=yes
26495 if test -n "$ZSTD_LIBS"; then
26496 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
26497 elif test -n "$PKG_CONFIG"; then
26498 if test -n "$PKG_CONFIG" && \
26499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
26500 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
26502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26503 test $ac_status = 0; }; then
26504 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
26505 test "x$?" != "x0" && pkg_failed
=yes
26513 if test $pkg_failed = no
; then
26514 pkg_save_LDFLAGS
="$LDFLAGS"
26515 LDFLAGS
="$LDFLAGS $pkg_cv_ZSTD_LIBS"
26516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h. */
26527 if ac_fn_c_try_link
"$LINENO"; then :
26532 rm -f core conftest.err conftest.
$ac_objext \
26533 conftest
$ac_exeext conftest.
$ac_ext
26534 LDFLAGS
=$pkg_save_LDFLAGS
26539 if test $pkg_failed = yes; then
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26541 $as_echo "no" >&6; }
26543 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26544 _pkg_short_errors_supported
=yes
26546 _pkg_short_errors_supported
=no
26548 if test $_pkg_short_errors_supported = yes; then
26549 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
26551 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
26553 # Put the nasty error message in config.log where it belongs
26554 echo "$ZSTD_PKG_ERRORS" >&5
26557 if test "$with_zstd" = yes; then
26558 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
26561 elif test $pkg_failed = untried
; then
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26563 $as_echo "no" >&6; }
26565 if test "$with_zstd" = yes; then
26566 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
26570 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
26571 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26573 $as_echo "yes" >&6; }
26576 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
26589 am_save_CPPFLAGS
="$CPPFLAGS"
26591 for element
in $INCICONV; do
26593 for x
in $CPPFLAGS; do
26595 acl_save_prefix
="$prefix"
26596 prefix
="$acl_final_prefix"
26597 acl_save_exec_prefix
="$exec_prefix"
26598 exec_prefix
="$acl_final_exec_prefix"
26600 exec_prefix
="$acl_save_exec_prefix"
26601 prefix
="$acl_save_prefix"
26603 if test "X$x" = "X$element"; then
26608 if test -z "$haveit"; then
26609 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
26615 $as_echo_n "checking for iconv... " >&6; }
26616 if ${am_cv_func_iconv+:} false
; then :
26617 $as_echo_n "(cached) " >&6
26620 am_cv_func_iconv
="no, consider installing GNU libiconv"
26622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26623 /* end confdefs.h. */
26625 #include <stdlib.h>
26631 iconv_t cd = iconv_open("","");
26632 iconv(cd,NULL,NULL,NULL,NULL);
26638 if ac_fn_c_try_link
"$LINENO"; then :
26639 am_cv_func_iconv
=yes
26641 rm -f core conftest.err conftest.
$ac_objext \
26642 conftest
$ac_exeext conftest.
$ac_ext
26643 if test "$am_cv_func_iconv" != yes; then
26644 am_save_LIBS
="$LIBS"
26645 LIBS
="$LIBS $LIBICONV"
26646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26647 /* end confdefs.h. */
26649 #include <stdlib.h>
26655 iconv_t cd = iconv_open("","");
26656 iconv(cd,NULL,NULL,NULL,NULL);
26662 if ac_fn_c_try_link
"$LINENO"; then :
26663 am_cv_lib_iconv
=yes
26664 am_cv_func_iconv
=yes
26666 rm -f core conftest.err conftest.
$ac_objext \
26667 conftest
$ac_exeext conftest.
$ac_ext
26668 LIBS
="$am_save_LIBS"
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
26673 $as_echo "$am_cv_func_iconv" >&6; }
26674 if test "$am_cv_func_iconv" = yes; then
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
26676 $as_echo_n "checking for working iconv... " >&6; }
26677 if ${am_cv_func_iconv_works+:} false
; then :
26678 $as_echo_n "(cached) " >&6
26681 am_save_LIBS
="$LIBS"
26682 if test $am_cv_lib_iconv = yes; then
26683 LIBS
="$LIBS $LIBICONV"
26685 am_cv_func_iconv_works
=no
26686 for ac_iconv_const
in '' 'const'; do
26687 if test "$cross_compiling" = yes; then :
26689 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
26690 *) am_cv_func_iconv_works
="guessing yes" ;;
26693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h. */
26697 #include <string.h>
26699 #ifndef ICONV_CONST
26700 # define ICONV_CONST $ac_iconv_const
26707 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
26708 successful returns. This is even documented in
26709 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
26711 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
26712 if (cd_utf8_to_88591 != (iconv_t)(-1))
26714 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
26716 ICONV_CONST char *inptr = input;
26717 size_t inbytesleft = strlen (input);
26718 char *outptr = buf;
26719 size_t outbytesleft = sizeof (buf);
26720 size_t res = iconv (cd_utf8_to_88591,
26721 &inptr, &inbytesleft,
26722 &outptr, &outbytesleft);
26725 iconv_close (cd_utf8_to_88591);
26728 /* Test against Solaris 10 bug: Failures are not distinguishable from
26729 successful returns. */
26731 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
26732 if (cd_ascii_to_88591 != (iconv_t)(-1))
26734 static ICONV_CONST char input[] = "\263";
26736 ICONV_CONST char *inptr = input;
26737 size_t inbytesleft = strlen (input);
26738 char *outptr = buf;
26739 size_t outbytesleft = sizeof (buf);
26740 size_t res = iconv (cd_ascii_to_88591,
26741 &inptr, &inbytesleft,
26742 &outptr, &outbytesleft);
26745 iconv_close (cd_ascii_to_88591);
26748 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
26750 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
26751 if (cd_88591_to_utf8 != (iconv_t)(-1))
26753 static ICONV_CONST char input[] = "\304";
26754 static char buf[2] = { (char)0xDE, (char)0xAD };
26755 ICONV_CONST char *inptr = input;
26756 size_t inbytesleft = 1;
26757 char *outptr = buf;
26758 size_t outbytesleft = 1;
26759 size_t res = iconv (cd_88591_to_utf8,
26760 &inptr, &inbytesleft,
26761 &outptr, &outbytesleft);
26762 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
26764 iconv_close (cd_88591_to_utf8);
26767 #if 0 /* This bug could be worked around by the caller. */
26768 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
26770 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
26771 if (cd_88591_to_utf8 != (iconv_t)(-1))
26773 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
26775 ICONV_CONST char *inptr = input;
26776 size_t inbytesleft = strlen (input);
26777 char *outptr = buf;
26778 size_t outbytesleft = sizeof (buf);
26779 size_t res = iconv (cd_88591_to_utf8,
26780 &inptr, &inbytesleft,
26781 &outptr, &outbytesleft);
26784 iconv_close (cd_88591_to_utf8);
26788 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
26791 /* Try standardized names. */
26792 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
26793 /* Try IRIX, OSF/1 names. */
26794 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
26795 /* Try AIX names. */
26796 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
26797 /* Try HP-UX names. */
26798 iconv_t cd4 = iconv_open ("utf8", "eucJP");
26799 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
26800 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
26802 if (cd1 != (iconv_t)(-1))
26804 if (cd2 != (iconv_t)(-1))
26806 if (cd3 != (iconv_t)(-1))
26808 if (cd4 != (iconv_t)(-1))
26817 if ac_fn_c_try_run
"$LINENO"; then :
26818 am_cv_func_iconv_works
=yes
26820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26824 test "$am_cv_func_iconv_works" = no ||
break
26826 LIBS
="$am_save_LIBS"
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
26830 $as_echo "$am_cv_func_iconv_works" >&6; }
26831 case "$am_cv_func_iconv_works" in
26832 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
26833 *) am_func_iconv
=yes ;;
26836 am_func_iconv
=no am_cv_lib_iconv
=no
26838 if test "$am_func_iconv" = yes; then
26840 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
26843 if test "$am_cv_lib_iconv" = yes; then
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
26845 $as_echo_n "checking how to link with libiconv... " >&6; }
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
26847 $as_echo "$LIBICONV" >&6; }
26849 CPPFLAGS
="$am_save_CPPFLAGS"
26856 if test "$am_cv_func_iconv" = yes; then
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
26858 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
26859 if ${gl_cv_iconv_nonconst+:} false
; then :
26860 $as_echo_n "(cached) " >&6
26862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26863 /* end confdefs.h. */
26865 #include <stdlib.h>
26871 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26881 if ac_fn_c_try_compile
"$LINENO"; then :
26882 gl_cv_iconv_nonconst
=yes
26884 gl_cv_iconv_nonconst
=no
26886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
26890 $as_echo "$gl_cv_iconv_nonconst" >&6; }
26892 gl_cv_iconv_nonconst
=yes
26894 if test $gl_cv_iconv_nonconst = yes; then
26900 cat >>confdefs.h
<<_ACEOF
26901 #define ICONV_CONST $iconv_arg1
26906 if test "$am_func_iconv" = yes; then
26907 if test -n "$LIBICONV"; then
26908 am_cv_func_iconv_summary
='yes, in libiconv'
26910 am_cv_func_iconv_summary
='yes, in libc'
26913 if test "$am_cv_func_iconv" = yes; then
26914 am_cv_func_iconv_summary
='not working, consider installing GNU libiconv'
26916 am_cv_func_iconv_summary
='no, consider installing GNU libiconv'
26921 # GDB may fork/exec the iconv program to get the list of supported character
26922 # sets. Allow the user to specify where to find it.
26923 # There are several factors affecting the choice of option name:
26924 # - There is already --with-libiconv-prefix but we can't use it, it specifies
26925 # the build-time location of libiconv files.
26926 # - The program we need to find is iconv, which comes with glibc. The user
26927 # doesn't necessarily have libiconv installed. Therefore naming this
26928 # --with-libiconv-foo feels wrong.
26929 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
26930 # defined to work on directories not files (though it really doesn't know
26932 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
26933 # with --with-libiconv-prefix.
26934 # Putting these together is why the option name is --with-iconv-bin.
26937 # Check whether --with-iconv-bin was given.
26938 if test "${with_iconv_bin+set}" = set; then :
26939 withval
=$with_iconv_bin; iconv_bin
="${withval}"
26941 cat >>confdefs.h
<<_ACEOF
26942 #define ICONV_BIN "${iconv_bin}"
26946 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
26947 if test "x$prefix" = xNONE
; then
26948 test_prefix
=/usr
/local
26950 test_prefix
=$prefix
26953 test_prefix
=$exec_prefix
26956 case ${iconv_bin} in
26957 "${test_prefix}"|
"${test_prefix}/"*|\
26958 '${exec_prefix}'|
'${exec_prefix}/'*)
26963 cat >>confdefs.h
<<_ACEOF
26964 #define ICONV_BIN_RELOCATABLE $value
26972 # For the TUI, we need enhanced curses functionality.
26973 if test x
"$enable_tui" != xno
; then
26978 if test x
"$prefer_curses" = xyes
; then
26979 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
26980 # curses library because the latter might not provide all the
26981 # functionality we need. However, this leads to problems on systems
26982 # where the linker searches /usr/local/lib, but the compiler doesn't
26983 # search /usr/local/include, if ncurses is installed in /usr/local. A
26984 # default installation of ncurses on alpha*-dec-osf* will lead to such
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
26987 $as_echo_n "checking for library containing waddstr... " >&6; }
26988 if ${ac_cv_search_waddstr+:} false
; then :
26989 $as_echo_n "(cached) " >&6
26991 ac_func_search_save_LIBS
=$LIBS
26992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26993 /* end confdefs.h. */
26995 /* Override any GCC internal prototype to avoid an error.
26996 Use char because int might match the return type of a GCC
26997 builtin and then its argument prototype would still apply. */
27010 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
27011 if test -z "$ac_lib"; then
27012 ac_res
="none required"
27015 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27017 if ac_fn_c_try_link
"$LINENO"; then :
27018 ac_cv_search_waddstr
=$ac_res
27020 rm -f core conftest.err conftest.
$ac_objext \
27022 if ${ac_cv_search_waddstr+:} false
; then :
27026 if ${ac_cv_search_waddstr+:} false
; then :
27029 ac_cv_search_waddstr
=no
27031 rm conftest.
$ac_ext
27032 LIBS
=$ac_func_search_save_LIBS
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
27035 $as_echo "$ac_cv_search_waddstr" >&6; }
27036 ac_res
=$ac_cv_search_waddstr
27037 if test "$ac_res" != no
; then :
27038 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27041 $as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h
27048 # Check whether we should enable the TUI, but only do so if we really
27050 if test x
"$enable_tui" != xno
; then
27051 if test "$curses_found" != no
; then
27052 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
27053 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
27054 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
27055 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
27057 if test x
"$enable_tui" = xyes
; then
27058 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
27061 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
27066 # Since GDB uses Readline, we need termcap functionality. In many
27067 # cases this will be provided by the curses library, but some systems
27068 # have a separate termcap library, or no curses library at all.
27072 if test -d "$srcdir/libtermcap"; then
27073 LIBS
="../libtermcap/libtermcap.a $LIBS"
27074 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
27077 ac_cv_search_tgetent
="none required"
27081 # These are the libraries checked by Readline.
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
27083 $as_echo_n "checking for library containing tgetent... " >&6; }
27084 if ${ac_cv_search_tgetent+:} false
; then :
27085 $as_echo_n "(cached) " >&6
27087 ac_func_search_save_LIBS
=$LIBS
27088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27089 /* end confdefs.h. */
27091 /* Override any GCC internal prototype to avoid an error.
27092 Use char because int might match the return type of a GCC
27093 builtin and then its argument prototype would still apply. */
27106 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
27107 if test -z "$ac_lib"; then
27108 ac_res
="none required"
27111 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27113 if ac_fn_c_try_link
"$LINENO"; then :
27114 ac_cv_search_tgetent
=$ac_res
27116 rm -f core conftest.err conftest.
$ac_objext \
27118 if ${ac_cv_search_tgetent+:} false
; then :
27122 if ${ac_cv_search_tgetent+:} false
; then :
27125 ac_cv_search_tgetent
=no
27127 rm conftest.
$ac_ext
27128 LIBS
=$ac_func_search_save_LIBS
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
27131 $as_echo "$ac_cv_search_tgetent" >&6; }
27132 ac_res
=$ac_cv_search_tgetent
27133 if test "$ac_res" != no
; then :
27134 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27139 if test "$ac_cv_search_tgetent" = no
; then
27140 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
27144 # Check whether --with-system-readline was given.
27145 if test "${with_system_readline+set}" = set; then :
27146 withval
=$with_system_readline;
27150 if test "$with_system_readline" = yes; then
27151 for ac_header
in readline
/readline.h
27153 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
27154 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
27155 cat >>confdefs.h
<<_ACEOF
27156 #define HAVE_READLINE_READLINE_H 1
27165 if test "$readline_h" = "no"; then
27166 as_fn_error $?
"readline development packages are probably missing" "$LINENO" 5
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
27169 $as_echo_n "checking whether system readline is new enough... " >&6; }
27170 if ${gdb_cv_readline_ok+:} false
; then :
27171 $as_echo_n "(cached) " >&6
27173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27174 /* end confdefs.h. */
27176 #include <readline/readline.h>
27180 #if RL_VERSION_MAJOR < 7
27181 # error "readline version 7 required"
27188 if ac_fn_c_try_compile
"$LINENO"; then :
27189 gdb_cv_readline_ok
=yes
27191 gdb_cv_readline_ok
=no
27194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
27198 $as_echo "$gdb_cv_readline_ok" >&6; }
27199 if test "$gdb_cv_readline_ok" != yes; then
27200 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
27203 READLINE
=-lreadline
27206 READLINE_TEXI_INCFLAG
=
27207 READLINE_DOC_SOURCE_INCLUDES
='$(READLINE_SYSTEM_DOC_INCLUDES)'
27209 READLINE
='$(READLINE_DIR)/libreadline.a'
27210 READLINE_DEPS
='$(READLINE)'
27211 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
27212 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
27213 READLINE_DOC_SOURCE_INCLUDES
='$(READLINE_INTREE_DOC_INCLUDES)'
27221 # Generate jit-reader.h
27223 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
27226 # The cast to long int works around a bug in the HP C Compiler
27227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27229 # This bug is HP SR number 8606223364.
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
27231 $as_echo_n "checking size of unsigned long long... " >&6; }
27232 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
27233 $as_echo_n "(cached) " >&6
27235 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
27238 if test "$ac_cv_type_unsigned_long_long" = yes; then
27239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27241 as_fn_error
77 "cannot compute sizeof (unsigned long long)
27242 See \`config.log' for more details" "$LINENO" 5; }
27244 ac_cv_sizeof_unsigned_long_long
=0
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
27250 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
27254 cat >>confdefs.h
<<_ACEOF
27255 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27259 # The cast to long int works around a bug in the HP C Compiler
27260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27262 # This bug is HP SR number 8606223364.
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
27264 $as_echo_n "checking size of unsigned long... " >&6; }
27265 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
27266 $as_echo_n "(cached) " >&6
27268 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
27271 if test "$ac_cv_type_unsigned_long" = yes; then
27272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27274 as_fn_error
77 "cannot compute sizeof (unsigned long)
27275 See \`config.log' for more details" "$LINENO" 5; }
27277 ac_cv_sizeof_unsigned_long
=0
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
27283 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
27287 cat >>confdefs.h
<<_ACEOF
27288 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
27292 # The cast to long int works around a bug in the HP C Compiler
27293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27295 # This bug is HP SR number 8606223364.
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
27297 $as_echo_n "checking size of unsigned __int128... " >&6; }
27298 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
27299 $as_echo_n "(cached) " >&6
27301 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
27304 if test "$ac_cv_type_unsigned___int128" = yes; then
27305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27307 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
27308 See \`config.log' for more details" "$LINENO" 5; }
27310 ac_cv_sizeof_unsigned___int128
=0
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
27316 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
27320 cat >>confdefs.h
<<_ACEOF
27321 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
27326 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
27327 TARGET_PTR
="unsigned long"
27328 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
27329 TARGET_PTR
="unsigned long long"
27330 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
27331 TARGET_PTR
="unsigned __int128"
27333 TARGET_PTR
="unsigned long"
27337 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27341 $as_echo_n "checking for library containing dlopen... " >&6; }
27342 if ${ac_cv_search_dlopen+:} false
; then :
27343 $as_echo_n "(cached) " >&6
27345 ac_func_search_save_LIBS
=$LIBS
27346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27347 /* end confdefs.h. */
27349 /* Override any GCC internal prototype to avoid an error.
27350 Use char because int might match the return type of a GCC
27351 builtin and then its argument prototype would still apply. */
27364 for ac_lib
in '' dl
; do
27365 if test -z "$ac_lib"; then
27366 ac_res
="none required"
27369 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27371 if ac_fn_c_try_link
"$LINENO"; then :
27372 ac_cv_search_dlopen
=$ac_res
27374 rm -f core conftest.err conftest.
$ac_objext \
27376 if ${ac_cv_search_dlopen+:} false
; then :
27380 if ${ac_cv_search_dlopen+:} false
; then :
27383 ac_cv_search_dlopen
=no
27385 rm conftest.
$ac_ext
27386 LIBS
=$ac_func_search_save_LIBS
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27389 $as_echo "$ac_cv_search_dlopen" >&6; }
27390 ac_res
=$ac_cv_search_dlopen
27391 if test "$ac_res" != no
; then :
27392 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27399 # Check whether --with-jit-reader-dir was given.
27400 if test "${with_jit_reader_dir+set}" = set; then :
27401 withval
=$with_jit_reader_dir;
27402 JIT_READER_DIR
=$withval
27404 JIT_READER_DIR
=${libdir}/gdb
27408 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
27409 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27410 ac_define_dir
=`eval echo $JIT_READER_DIR`
27411 ac_define_dir
=`eval echo $ac_define_dir`
27413 cat >>confdefs.h
<<_ACEOF
27414 #define JIT_READER_DIR "$ac_define_dir"
27420 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
27421 if test "x$prefix" = xNONE
; then
27422 test_prefix
=/usr
/local
27424 test_prefix
=$prefix
27427 test_prefix
=$exec_prefix
27430 case ${ac_define_dir} in
27431 "${test_prefix}"|
"${test_prefix}/"*|\
27432 '${exec_prefix}'|
'${exec_prefix}/'*)
27437 cat >>confdefs.h
<<_ACEOF
27438 #define JIT_READER_DIR_RELOCATABLE $value
27445 # Check whether --with-expat was given.
27446 if test "${with_expat+set}" = set; then :
27447 withval
=$with_expat;
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
27453 $as_echo_n "checking whether to use expat... " >&6; }
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
27455 $as_echo "$with_expat" >&6; }
27457 if test "${with_expat}" = no
; then
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
27459 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
27472 acl_save_prefix
="$prefix"
27473 prefix
="$acl_final_prefix"
27474 acl_save_exec_prefix
="$exec_prefix"
27475 exec_prefix
="$acl_final_exec_prefix"
27477 eval additional_includedir
=\"$includedir\"
27478 eval additional_libdir
=\"$libdir\"
27480 exec_prefix
="$acl_save_exec_prefix"
27481 prefix
="$acl_save_prefix"
27484 # Check whether --with-libexpat-prefix was given.
27485 if test "${with_libexpat_prefix+set}" = set; then :
27486 withval
=$with_libexpat_prefix;
27487 if test "X$withval" = "Xno"; then
27490 if test "X$withval" = "X"; then
27492 acl_save_prefix
="$prefix"
27493 prefix
="$acl_final_prefix"
27494 acl_save_exec_prefix
="$exec_prefix"
27495 exec_prefix
="$acl_final_exec_prefix"
27497 eval additional_includedir
=\"$includedir\"
27498 eval additional_libdir
=\"$libdir\"
27500 exec_prefix
="$acl_save_exec_prefix"
27501 prefix
="$acl_save_prefix"
27504 additional_includedir
="$withval/include"
27505 additional_libdir
="$withval/lib"
27512 # Check whether --with-libexpat-type was given.
27513 if test "${with_libexpat_type+set}" = set; then :
27514 withval
=$with_libexpat_type; with_libexpat_type
=$withval
27516 with_libexpat_type
=auto
27519 lib_type
=`eval echo \$with_libexpat_type`
27526 names_already_handled
=
27527 names_next_round
='expat '
27528 while test -n "$names_next_round"; do
27529 names_this_round
="$names_next_round"
27531 for name
in $names_this_round; do
27533 for n
in $names_already_handled; do
27534 if test "$n" = "$name"; then
27535 already_handled
=yes
27539 if test -z "$already_handled"; then
27540 names_already_handled
="$names_already_handled $name"
27541 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27542 eval value
=\"\
$HAVE_LIB$uppername\"
27543 if test -n "$value"; then
27544 if test "$value" = yes; then
27545 eval value
=\"\
$LIB$uppername\"
27546 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
27547 eval value
=\"\
$LTLIB$uppername\"
27548 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
27557 if test $use_additional = yes; then
27558 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
27559 found_dir
="$additional_libdir"
27560 found_so
="$additional_libdir/lib$name.$shlibext"
27561 if test -f "$additional_libdir/lib$name.la"; then
27562 found_la
="$additional_libdir/lib$name.la"
27564 elif test x
$lib_type != xshared
; then
27565 if test -f "$additional_libdir/lib$name.$libext"; then
27566 found_dir
="$additional_libdir"
27567 found_a
="$additional_libdir/lib$name.$libext"
27568 if test -f "$additional_libdir/lib$name.la"; then
27569 found_la
="$additional_libdir/lib$name.la"
27574 if test "X$found_dir" = "X"; then
27575 for x
in $LDFLAGS $LTLIBEXPAT; do
27577 acl_save_prefix
="$prefix"
27578 prefix
="$acl_final_prefix"
27579 acl_save_exec_prefix
="$exec_prefix"
27580 exec_prefix
="$acl_final_exec_prefix"
27582 exec_prefix
="$acl_save_exec_prefix"
27583 prefix
="$acl_save_prefix"
27587 dir
=`echo "X$x" | sed -e 's/^X-L//'`
27588 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
27590 found_so
="$dir/lib$name.$shlibext"
27591 if test -f "$dir/lib$name.la"; then
27592 found_la
="$dir/lib$name.la"
27594 elif test x
$lib_type != xshared
; then
27595 if test -f "$dir/lib$name.$libext"; then
27597 found_a
="$dir/lib$name.$libext"
27598 if test -f "$dir/lib$name.la"; then
27599 found_la
="$dir/lib$name.la"
27605 if test "X$found_dir" != "X"; then
27610 if test "X$found_dir" != "X"; then
27611 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
27612 if test "X$found_so" != "X"; then
27613 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
27614 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27617 for x
in $ltrpathdirs; do
27618 if test "X$x" = "X$found_dir"; then
27623 if test -z "$haveit"; then
27624 ltrpathdirs
="$ltrpathdirs $found_dir"
27626 if test "$hardcode_direct" = yes; then
27627 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27629 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
27630 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27632 for x
in $rpathdirs; do
27633 if test "X$x" = "X$found_dir"; then
27638 if test -z "$haveit"; then
27639 rpathdirs
="$rpathdirs $found_dir"
27643 for x
in $LDFLAGS $LIBEXPAT; do
27645 acl_save_prefix
="$prefix"
27646 prefix
="$acl_final_prefix"
27647 acl_save_exec_prefix
="$exec_prefix"
27648 exec_prefix
="$acl_final_exec_prefix"
27650 exec_prefix
="$acl_save_exec_prefix"
27651 prefix
="$acl_save_prefix"
27653 if test "X$x" = "X-L$found_dir"; then
27658 if test -z "$haveit"; then
27659 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
27661 if test "$hardcode_minus_L" != no
; then
27662 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27664 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
27670 if test "X$found_a" != "X"; then
27671 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
27673 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
27676 additional_includedir
=
27677 case "$found_dir" in
27679 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27680 additional_includedir
="$basedir/include"
27683 if test "X$additional_includedir" != "X"; then
27684 if test "X$additional_includedir" != "X/usr/include"; then
27686 if test "X$additional_includedir" = "X/usr/local/include"; then
27687 if test -n "$GCC"; then
27689 linux
*) haveit
=yes;;
27693 if test -z "$haveit"; then
27694 for x
in $CPPFLAGS $INCEXPAT; do
27696 acl_save_prefix
="$prefix"
27697 prefix
="$acl_final_prefix"
27698 acl_save_exec_prefix
="$exec_prefix"
27699 exec_prefix
="$acl_final_exec_prefix"
27701 exec_prefix
="$acl_save_exec_prefix"
27702 prefix
="$acl_save_prefix"
27704 if test "X$x" = "X-I$additional_includedir"; then
27709 if test -z "$haveit"; then
27710 if test -d "$additional_includedir"; then
27711 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
27717 if test -n "$found_la"; then
27718 save_libdir
="$libdir"
27719 case "$found_la" in
27720 */* |
*\\*) .
"$found_la" ;;
27721 *) .
"./$found_la" ;;
27723 libdir
="$save_libdir"
27724 for dep
in $dependency_libs; do
27727 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
27728 if test "X$additional_libdir" != "X/usr/lib"; then
27730 if test "X$additional_libdir" = "X/usr/local/lib"; then
27731 if test -n "$GCC"; then
27733 linux
*) haveit
=yes;;
27737 if test -z "$haveit"; then
27739 for x
in $LDFLAGS $LIBEXPAT; do
27741 acl_save_prefix
="$prefix"
27742 prefix
="$acl_final_prefix"
27743 acl_save_exec_prefix
="$exec_prefix"
27744 exec_prefix
="$acl_final_exec_prefix"
27746 exec_prefix
="$acl_save_exec_prefix"
27747 prefix
="$acl_save_prefix"
27749 if test "X$x" = "X-L$additional_libdir"; then
27754 if test -z "$haveit"; then
27755 if test -d "$additional_libdir"; then
27756 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
27760 for x
in $LDFLAGS $LTLIBEXPAT; do
27762 acl_save_prefix
="$prefix"
27763 prefix
="$acl_final_prefix"
27764 acl_save_exec_prefix
="$exec_prefix"
27765 exec_prefix
="$acl_final_exec_prefix"
27767 exec_prefix
="$acl_save_exec_prefix"
27768 prefix
="$acl_save_prefix"
27770 if test "X$x" = "X-L$additional_libdir"; then
27775 if test -z "$haveit"; then
27776 if test -d "$additional_libdir"; then
27777 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
27784 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
27785 if test "$enable_rpath" != no
; then
27787 for x
in $rpathdirs; do
27788 if test "X$x" = "X$dir"; then
27793 if test -z "$haveit"; then
27794 rpathdirs
="$rpathdirs $dir"
27797 for x
in $ltrpathdirs; do
27798 if test "X$x" = "X$dir"; then
27803 if test -z "$haveit"; then
27804 ltrpathdirs
="$ltrpathdirs $dir"
27809 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27812 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27815 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
27816 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
27822 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
27823 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
27824 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
27826 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
27827 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
27834 if test "X$rpathdirs" != "X"; then
27835 if test -n "$hardcode_libdir_separator"; then
27837 for found_dir
in $rpathdirs; do
27838 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27840 acl_save_libdir
="$libdir"
27842 eval flag
=\"$hardcode_libdir_flag_spec\"
27843 libdir
="$acl_save_libdir"
27844 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
27846 for found_dir
in $rpathdirs; do
27847 acl_save_libdir
="$libdir"
27848 libdir
="$found_dir"
27849 eval flag
=\"$hardcode_libdir_flag_spec\"
27850 libdir
="$acl_save_libdir"
27851 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
27855 if test "X$ltrpathdirs" != "X"; then
27856 for found_dir
in $ltrpathdirs; do
27857 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
27862 ac_save_CPPFLAGS
="$CPPFLAGS"
27864 for element
in $INCEXPAT; do
27866 for x
in $CPPFLAGS; do
27868 acl_save_prefix
="$prefix"
27869 prefix
="$acl_final_prefix"
27870 acl_save_exec_prefix
="$exec_prefix"
27871 exec_prefix
="$acl_final_exec_prefix"
27873 exec_prefix
="$acl_save_exec_prefix"
27874 prefix
="$acl_save_prefix"
27876 if test "X$x" = "X$element"; then
27881 if test -z "$haveit"; then
27882 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
27888 $as_echo_n "checking for libexpat... " >&6; }
27889 if ${ac_cv_libexpat+:} false
; then :
27890 $as_echo_n "(cached) " >&6
27893 ac_save_LIBS
="$LIBS"
27894 LIBS
="$LIBS $LIBEXPAT"
27895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27896 /* end confdefs.h. */
27901 XML_Parser p = XML_ParserCreate (0);
27906 if ac_fn_c_try_link
"$LINENO"; then :
27911 rm -f core conftest.err conftest.
$ac_objext \
27912 conftest
$ac_exeext conftest.
$ac_ext
27913 LIBS
="$ac_save_LIBS"
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
27917 $as_echo "$ac_cv_libexpat" >&6; }
27918 if test "$ac_cv_libexpat" = yes; then
27921 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
27924 $as_echo_n "checking how to link with libexpat... " >&6; }
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
27926 $as_echo "$LIBEXPAT" >&6; }
27929 CPPFLAGS
="$ac_save_CPPFLAGS"
27939 if test "$HAVE_LIBEXPAT" != yes; then
27940 if test "$with_expat" = yes; then
27941 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
27944 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
27948 LIBS
="$LIBS $LIBEXPAT"
27949 for ac_func
in XML_StopParser
27951 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
27952 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
27953 cat >>confdefs.h
<<_ACEOF
27954 #define HAVE_XML_STOPPARSER 1
27967 # --------------------- #
27968 # Check for libpython. #
27969 # --------------------- #
27976 # Check whether --with-python was given.
27977 if test "${with_python+set}" = set; then :
27978 withval
=$with_python;
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
27984 $as_echo_n "checking whether to use python... " >&6; }
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
27986 $as_echo "$with_python" >&6; }
27988 if test "${with_python}" = no
; then
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
27990 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
27993 case "${with_python}" in
27995 if test -d "${with_python}"; then
27996 # Assume the python binary is ${with_python}/bin/python.
27997 python_prog
="${with_python}/bin/python"
27999 # If python does not exit ${with_python}/bin, then try in
28000 # ${with_python}. On Windows/MinGW, this is where the Python
28002 if test ! -x "${python_prog}"; then
28003 python_prog
="${with_python}/python"
28006 if test ! -x "${python_prog}"; then
28007 # Fall back to gdb 7.0/7.1 behavior.
28008 python_prog
=missing
28009 python_prefix
=${with_python}
28011 elif test -x "${with_python}"; then
28012 # While we can't run python compiled for $host (unless host == build),
28013 # the user could write a script that provides the needed information,
28014 # so we support that.
28015 python_prog
=${with_python}
28018 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
28022 # Disallow --with-python=foo/bar.
28023 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
28026 # The user has either specified auto, yes, or the name of the python
28027 # program assumed to be in $PATH.
28029 case "${with_python}" in
28031 if test "${build}" = "${host}"; then
28032 # Look first for 'python', then 'python3'.
28033 for ac_prog
in python python3
28035 # Extract the first word of "$ac_prog", so it can be a program name with args.
28036 set dummy
$ac_prog; ac_word
=$2
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28038 $as_echo_n "checking for $ac_word... " >&6; }
28039 if ${ac_cv_path_python_prog_path+:} false
; then :
28040 $as_echo_n "(cached) " >&6
28042 case $python_prog_path in
28044 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
28047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28048 for as_dir
in $PATH
28051 test -z "$as_dir" && as_dir
=.
28052 for ac_exec_ext
in '' $ac_executable_extensions; do
28053 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28054 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
28055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28065 python_prog_path
=$ac_cv_path_python_prog_path
28066 if test -n "$python_prog_path"; then
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
28068 $as_echo "$python_prog_path" >&6; }
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28071 $as_echo "no" >&6; }
28075 test -n "$python_prog_path" && break
28077 test -n "$python_prog_path" || python_prog_path
="missing"
28079 if test "${python_prog_path}" = missing
; then
28080 python_prog
=missing
28082 python_prog
=${python_prog_path}
28085 # Not much we can do except assume the cross-compiler will find the
28087 python_prog
=missing
28091 # While we can't run python compiled for $host (unless host == build),
28092 # the user could write a script that provides the needed information,
28093 # so we support that.
28094 python_prog
="${with_python}"
28095 # Extract the first word of "${python_prog}", so it can be a program name with args.
28096 set dummy
${python_prog}; ac_word
=$2
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28098 $as_echo_n "checking for $ac_word... " >&6; }
28099 if ${ac_cv_path_python_prog_path+:} false
; then :
28100 $as_echo_n "(cached) " >&6
28102 case $python_prog_path in
28104 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
28107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28108 for as_dir
in $PATH
28111 test -z "$as_dir" && as_dir
=.
28112 for ac_exec_ext
in '' $ac_executable_extensions; do
28113 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28114 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
28115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28122 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
28126 python_prog_path
=$ac_cv_path_python_prog_path
28127 if test -n "$python_prog_path"; then
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
28129 $as_echo "$python_prog_path" >&6; }
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28132 $as_echo "no" >&6; }
28136 if test "${python_prog_path}" = missing
; then
28137 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
28143 if test "${python_prog}" != missing
; then
28144 # We have a python program to use, but it may be too old.
28145 # Don't flag an error for --with-python=auto (the default).
28146 have_python_config
=yes
28147 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
28148 if test $?
!= 0; then
28149 have_python_config
=failed
28150 if test "${with_python}" != auto
; then
28151 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
28154 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
28155 if test $?
!= 0; then
28156 have_python_config
=failed
28157 if test "${with_python}" != auto
; then
28158 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
28161 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
28162 if test $?
!= 0; then
28163 have_python_config
=failed
28164 if test "${with_python}" != auto
; then
28165 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
28169 # We do not have a python executable we can use to determine where
28170 # to find the Python headers and libs. We cannot guess the include
28171 # path from the python_prefix either, because that include path
28172 # depends on the Python version. So, there is nothing much we can
28173 # do except assume that the compiler will be able to find those files.
28176 have_python_config
=no
28179 # If we have python-config, only try the configuration it provides.
28180 # Otherwise fallback on the old way of trying different versions of
28184 if test "${have_python_config}" = yes; then
28187 new_CPPFLAGS
=${python_includes}
28188 new_LIBS
=${python_libs}
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
28190 $as_echo_n "checking for python... " >&6; }
28191 save_CPPFLAGS
=$CPPFLAGS
28193 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28194 LIBS
="$new_LIBS $LIBS"
28195 found_usable_python
=no
28196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28197 /* end confdefs.h. */
28198 #include "Python.h"
28203 #if PY_MAJOR_VERSION != 3
28204 # error "We only support Python 3"
28212 if ac_fn_c_try_link
"$LINENO"; then :
28214 found_usable_python
=yes
28215 PYTHON_CPPFLAGS
=$new_CPPFLAGS
28216 PYTHON_LIBS
=$new_LIBS
28218 rm -f core conftest.err conftest.
$ac_objext \
28219 conftest
$ac_exeext conftest.
$ac_ext
28220 CPPFLAGS
=$save_CPPFLAGS
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
28223 $as_echo "${found_usable_python}" >&6; }
28227 if test "${have_libpython}" = no
; then
28228 case "${with_python}" in
28230 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
28234 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
28237 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
28241 if test -n "${python_prefix}"; then
28243 cat >>confdefs.h
<<_ACEOF
28244 #define WITH_PYTHON_PATH "${python_prefix}"
28248 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
28249 if test "x$prefix" = xNONE
; then
28250 test_prefix
=/usr
/local
28252 test_prefix
=$prefix
28255 test_prefix
=$exec_prefix
28258 case ${python_prefix} in
28259 "${test_prefix}"|
"${test_prefix}/"*|\
28260 '${exec_prefix}'|
'${exec_prefix}/'*)
28265 cat >>confdefs.h
<<_ACEOF
28266 #define PYTHON_PATH_RELOCATABLE $value
28275 # Check whether --with-python-libdir was given.
28276 if test "${with_python_libdir+set}" = set; then :
28277 withval
=$with_python_libdir;
28280 # If no python libdir is specified then select one based on
28281 # python's prefix path.
28282 if test -n "${python_prefix}"; then
28283 with_python_libdir
=${python_prefix}/lib
28289 if test "${have_libpython}" != no
; then
28291 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
28293 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
28294 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
28295 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
28296 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
28297 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
28299 if test -n "${with_python_libdir}"; then
28301 cat >>confdefs.h
<<_ACEOF
28302 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
28306 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
28307 if test "x$prefix" = xNONE
; then
28308 test_prefix
=/usr
/local
28310 test_prefix
=$prefix
28313 test_prefix
=$exec_prefix
28316 case ${with_python_libdir} in
28317 "${test_prefix}"|
"${test_prefix}/"*|\
28318 '${exec_prefix}'|
'${exec_prefix}/'*)
28323 cat >>confdefs.h
<<_ACEOF
28324 #define PYTHON_LIBDIR_RELOCATABLE $value
28330 # Flags needed to compile Python code (taken from python-config --cflags).
28331 # We cannot call python-config directly because it will output whatever was
28332 # used when compiling the Python interpreter itself, including flags which
28333 # would make the python-related objects be compiled differently from the
28334 # rest of GDB (e.g., -O2 and -fPIC).
28335 if test "${GCC}" = yes; then
28336 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
28337 # Python headers recommend -DNDEBUG, but it's unclear if that just
28338 # refers to building Python itself. In release mode, though, it
28339 # doesn't hurt for the Python code in gdb to follow.
28340 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
28343 if test "x${tentative_python_cflags}" != x
; then
28344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
28345 $as_echo_n "checking compiler flags for python code... " >&6; }
28346 for flag
in ${tentative_python_cflags}; do
28347 # Check that the compiler accepts it
28348 saved_CFLAGS
="$CFLAGS"
28349 CFLAGS
="$CFLAGS $flag"
28350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28351 /* end confdefs.h. */
28361 if ac_fn_c_try_compile
"$LINENO"; then :
28362 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
28364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28365 CFLAGS
="$saved_CFLAGS"
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
28368 $as_echo "${PYTHON_CFLAGS}" >&6; }
28371 # On x64 Windows, Python's include headers, and pyconfig.h in
28372 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
28373 # version of Windows. Unfortunately, MS_WIN64 is only defined if
28374 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
28375 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
28376 # The issue was reported to the Python community, but still isn't
28377 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
28379 case "$gdb_host" in
28381 if test "${GCC}" = yes; then
28382 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
28387 # Even if Python support is not compiled in, we need to have this file
28388 # included so that the "python" command, et.al., still exists.
28389 CONFIG_OBS
="$CONFIG_OBS python/python.o"
28390 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
28393 # Work around Python http://bugs.python.org/issue10112. See also
28394 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
28395 # no effect. Note that the only test after this that uses Python is
28396 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
28397 # run without -export-dynamic too.
28398 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
28403 if test "${have_libpython}" != no
; then
28405 HAVE_PYTHON_FALSE
='#'
28407 HAVE_PYTHON_TRUE
='#'
28412 # -------------------- #
28413 # Check for libguile. #
28414 # -------------------- #
28421 # Check whether --with-guile was given.
28422 if test "${with_guile+set}" = set; then :
28423 withval
=$with_guile;
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
28429 $as_echo_n "checking whether to use guile... " >&6; }
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
28431 $as_echo "$with_guile" >&6; }
28433 # Extract the first word of "pkg-config", so it can be a program name with args.
28434 set dummy pkg-config
; ac_word
=$2
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28436 $as_echo_n "checking for $ac_word... " >&6; }
28437 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
28438 $as_echo_n "(cached) " >&6
28440 case $pkg_config_prog_path in
28442 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
28445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28446 for as_dir
in $PATH
28449 test -z "$as_dir" && as_dir
=.
28450 for ac_exec_ext
in '' $ac_executable_extensions; do
28451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28452 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
28453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28460 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
28464 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
28465 if test -n "$pkg_config_prog_path"; then
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
28467 $as_echo "$pkg_config_prog_path" >&6; }
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28470 $as_echo "no" >&6; }
28475 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
28477 case "${with_guile}" in
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
28480 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
28483 if test "${pkg_config_prog_path}" = "missing"; then
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
28485 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
28488 pkg_config
=${pkg_config_prog_path}
28489 guile_version_list
=${try_guile_versions}
28492 found_usable_guile
=checking
28493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28494 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28495 for guile_version
in ${guile_version_list}; do
28496 ${pkg_config} --exists ${guile_version} 2>/dev
/null
28497 if test $?
!= 0; then
28500 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
28501 if test $?
!= 0; then
28502 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28504 new_LIBS
=`${pkg_config} --libs ${guile_version}`
28505 if test $?
!= 0; then
28506 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28508 found_usable_guile
=${guile_version}
28511 if test "${found_usable_guile}" = "checking"; then
28512 if test "${flag_errors}" = "yes"; then
28513 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28515 found_usable_guile
=no
28518 if test "${found_usable_guile}" != no
; then
28519 save_CPPFLAGS
=$CPPFLAGS
28521 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28522 LIBS
="$LIBS $new_LIBS"
28523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28524 /* end confdefs.h. */
28525 #include "libguile.h"
28534 if ac_fn_c_try_link
"$LINENO"; then :
28536 GUILE_CPPFLAGS
=$new_CPPFLAGS
28537 GUILE_LIBS
=$new_LIBS
28539 found_usable_guile
=no
28541 rm -f core conftest.err conftest.
$ac_objext \
28542 conftest
$ac_exeext conftest.
$ac_ext
28543 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28544 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
28546 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28551 CPPFLAGS
=$save_CPPFLAGS
28553 if test "${found_usable_guile}" = no
; then
28554 if test "${flag_errors}" = yes; then
28555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28557 as_fn_error $?
"linking guile version ${guile_version} test program failed
28558 See \`config.log' for more details" "$LINENO" 5; }
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28563 $as_echo "${found_usable_guile}" >&6; }
28568 if test "${pkg_config_prog_path}" = "missing"; then
28569 as_fn_error $?
"pkg-config not found" "$LINENO" 5
28572 pkg_config
=${pkg_config_prog_path}
28573 guile_version_list
=${try_guile_versions}
28576 found_usable_guile
=checking
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28578 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28579 for guile_version
in ${guile_version_list}; do
28580 ${pkg_config} --exists ${guile_version} 2>/dev
/null
28581 if test $?
!= 0; then
28584 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
28585 if test $?
!= 0; then
28586 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28588 new_LIBS
=`${pkg_config} --libs ${guile_version}`
28589 if test $?
!= 0; then
28590 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28592 found_usable_guile
=${guile_version}
28595 if test "${found_usable_guile}" = "checking"; then
28596 if test "${flag_errors}" = "yes"; then
28597 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28599 found_usable_guile
=no
28602 if test "${found_usable_guile}" != no
; then
28603 save_CPPFLAGS
=$CPPFLAGS
28605 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28606 LIBS
="$LIBS $new_LIBS"
28607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28608 /* end confdefs.h. */
28609 #include "libguile.h"
28618 if ac_fn_c_try_link
"$LINENO"; then :
28620 GUILE_CPPFLAGS
=$new_CPPFLAGS
28621 GUILE_LIBS
=$new_LIBS
28623 found_usable_guile
=no
28625 rm -f core conftest.err conftest.
$ac_objext \
28626 conftest
$ac_exeext conftest.
$ac_ext
28627 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28628 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
28630 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28635 CPPFLAGS
=$save_CPPFLAGS
28637 if test "${found_usable_guile}" = no
; then
28638 if test "${flag_errors}" = yes; then
28639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28641 as_fn_error $?
"linking guile version ${guile_version} test program failed
28642 See \`config.log' for more details" "$LINENO" 5; }
28646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28647 $as_echo "${found_usable_guile}" >&6; }
28651 if test -x "${with_guile}"; then
28653 pkg_config
=${with_guile}
28654 guile_version_list
=${try_guile_versions}
28657 found_usable_guile
=checking
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28659 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28660 for guile_version
in ${guile_version_list}; do
28661 ${pkg_config} --exists ${guile_version} 2>/dev
/null
28662 if test $?
!= 0; then
28665 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
28666 if test $?
!= 0; then
28667 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28669 new_LIBS
=`${pkg_config} --libs ${guile_version}`
28670 if test $?
!= 0; then
28671 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28673 found_usable_guile
=${guile_version}
28676 if test "${found_usable_guile}" = "checking"; then
28677 if test "${flag_errors}" = "yes"; then
28678 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28680 found_usable_guile
=no
28683 if test "${found_usable_guile}" != no
; then
28684 save_CPPFLAGS
=$CPPFLAGS
28686 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28687 LIBS
="$LIBS $new_LIBS"
28688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28689 /* end confdefs.h. */
28690 #include "libguile.h"
28699 if ac_fn_c_try_link
"$LINENO"; then :
28701 GUILE_CPPFLAGS
=$new_CPPFLAGS
28702 GUILE_LIBS
=$new_LIBS
28704 found_usable_guile
=no
28706 rm -f core conftest.err conftest.
$ac_objext \
28707 conftest
$ac_exeext conftest.
$ac_ext
28708 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28709 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
28711 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28716 CPPFLAGS
=$save_CPPFLAGS
28718 if test "${found_usable_guile}" = no
; then
28719 if test "${flag_errors}" = yes; then
28720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28722 as_fn_error $?
"linking guile version ${guile_version} test program failed
28723 See \`config.log' for more details" "$LINENO" 5; }
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28728 $as_echo "${found_usable_guile}" >&6; }
28731 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
28735 # Disallow --with=guile="" and --with-guile=foo/bar.
28736 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
28739 # A space separate list of guile versions to try, in order.
28740 if test "${pkg_config_prog_path}" = "missing"; then
28741 as_fn_error $?
"pkg-config not found" "$LINENO" 5
28744 pkg_config
=${pkg_config_prog_path}
28745 guile_version_list
=${with_guile}
28748 found_usable_guile
=checking
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28750 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28751 for guile_version
in ${guile_version_list}; do
28752 ${pkg_config} --exists ${guile_version} 2>/dev
/null
28753 if test $?
!= 0; then
28756 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
28757 if test $?
!= 0; then
28758 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28760 new_LIBS
=`${pkg_config} --libs ${guile_version}`
28761 if test $?
!= 0; then
28762 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28764 found_usable_guile
=${guile_version}
28767 if test "${found_usable_guile}" = "checking"; then
28768 if test "${flag_errors}" = "yes"; then
28769 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28771 found_usable_guile
=no
28774 if test "${found_usable_guile}" != no
; then
28775 save_CPPFLAGS
=$CPPFLAGS
28777 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28778 LIBS
="$LIBS $new_LIBS"
28779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28780 /* end confdefs.h. */
28781 #include "libguile.h"
28790 if ac_fn_c_try_link
"$LINENO"; then :
28792 GUILE_CPPFLAGS
=$new_CPPFLAGS
28793 GUILE_LIBS
=$new_LIBS
28795 found_usable_guile
=no
28797 rm -f core conftest.err conftest.
$ac_objext \
28798 conftest
$ac_exeext conftest.
$ac_ext
28799 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28800 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
28802 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28807 CPPFLAGS
=$save_CPPFLAGS
28809 if test "${found_usable_guile}" = no
; then
28810 if test "${flag_errors}" = yes; then
28811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28813 as_fn_error $?
"linking guile version ${guile_version} test program failed
28814 See \`config.log' for more details" "$LINENO" 5; }
28818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28819 $as_echo "${found_usable_guile}" >&6; }
28824 if test "${have_libguile}" != no
; then
28825 case "${with_guile}" in
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
28829 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
28830 if ${ac_cv_guild_program_name+:} false
; then :
28831 $as_echo_n "(cached) " >&6
28833 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
28835 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
28836 # the 'guild' and 'bindir' variables. In that case, try to guess
28837 # what the program name is, at the risk of getting it wrong if
28838 # Guile was configured with '--program-suffix' or similar.
28839 if test "x$ac_cv_guild_program_name" = "x"; then
28840 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
28841 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
28845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
28846 $as_echo "$ac_cv_guild_program_name" >&6; }
28848 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
28849 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
28852 GUILD
="$ac_cv_guild_program_name"
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
28859 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
28860 if ${ac_cv_guild_program_name+:} false
; then :
28861 $as_echo_n "(cached) " >&6
28863 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
28865 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
28866 # the 'guild' and 'bindir' variables. In that case, try to guess
28867 # what the program name is, at the risk of getting it wrong if
28868 # Guile was configured with '--program-suffix' or similar.
28869 if test "x$ac_cv_guild_program_name" = "x"; then
28870 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
28871 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
28876 $as_echo "$ac_cv_guild_program_name" >&6; }
28878 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
28879 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
28882 GUILD
="$ac_cv_guild_program_name"
28889 if test "$cross_compiling" = no
; then
28892 GUILD_TARGET_FLAG
="--target=$host"
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
28899 $as_echo_n "checking whether guild supports this host... " >&6; }
28900 if ${ac_cv_guild_ok+:} false
; then :
28901 $as_echo_n "(cached) " >&6
28903 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
28904 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
28910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
28911 $as_echo "$ac_cv_guild_ok" >&6; }
28913 if test "$ac_cv_guild_ok" = no
; then
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
28916 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
28920 if test "${have_libguile}" != no
; then
28922 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
28924 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
28925 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
28926 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
28927 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
28928 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
28931 save_CPPFLAGS
="$CPPFLAGS"
28933 CPPFLAGS
="$GUILE_CPPFLAGS"
28934 for ac_func
in scm_new_smob
28936 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
28937 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
28938 cat >>confdefs.h
<<_ACEOF
28939 #define HAVE_SCM_NEW_SMOB 1
28946 CPPFLAGS
="$save_CPPFLAGS"
28948 # Even if Guile support is not compiled in, we need to have these files
28950 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
28951 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
28955 if test "${have_libguile}" != no
; then
28957 HAVE_GUILE_FALSE
='#'
28959 HAVE_GUILE_TRUE
='#'
28964 # ---------------------------- #
28965 # Check for source highlight. #
28966 # ---------------------------- #
28971 # Check whether --enable-source-highlight was given.
28972 if test "${enable_source_highlight+set}" = set; then :
28973 enableval
=$enable_source_highlight;
28978 as_fn_error $?
"bad value $enableval for --enable-source-highlight" "$LINENO" 5
28983 enable_source_highlight
=auto
28987 if test "${enable_source_highlight}" != "no"; then
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
28989 $as_echo_n "checking for the source-highlight library... " >&6; }
28990 if test "${pkg_config_prog_path}" = "missing"; then
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
28992 $as_echo "no - pkg-config not found" >&6; }
28993 if test "${enable_source_highlight}" = "yes"; then
28994 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
28997 if ${pkg_config_prog_path} --exists source-highlight
; then
29000 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
29004 srchigh_pkg_cflags
=`${pkg_config_prog_path} --cflags source-highlight`
29005 srchigh_pkg_libs
=`${pkg_config_prog_path} --libs source-highlight`
29007 # Now that we have found a source-highlight library, check if we can use
29008 # it. In particular, we're trying to detect the situation that the
29009 # library is using the new libstdc++ library abi ( see
29010 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
29011 # while the compiler being used to compile gdb is using the old abi.
29012 # Such a situation will result in an undefined reference to
29013 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
29014 # This situation can occur for instance when using a source highlight
29015 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
29017 ac_cpp
='$CXXCPP $CPPFLAGS'
29018 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29019 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29020 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
29022 save_CXXFLAGS
="$CXXFLAGS"
29024 CXXFLAGS
="$CXXFLAGS $srchigh_pkg_cflags"
29025 LIBS
="$LIBS $srchigh_pkg_libs"
29026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29027 /* end confdefs.h. */
29028 #include <srchilite/sourcehighlight.h>
29032 std::string outlang = "esc.outlang";
29033 new srchilite::SourceHighlight (outlang);
29039 if ac_fn_cxx_try_link
"$LINENO"; then :
29040 have_usable_source_highlight
=yes
29042 have_usable_source_highlight
=no
29045 rm -f core conftest.err conftest.
$ac_objext \
29046 conftest
$ac_exeext conftest.
$ac_ext
29047 CXXFLAGS
="$save_CXXFLAGS"
29050 ac_cpp
='$CPP $CPPFLAGS'
29051 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29052 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29053 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
29056 if test "${have_usable_source_highlight}" = "yes"; then
29058 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29061 $as_echo "yes" >&6; }
29062 SRCHIGH_CFLAGS
="$srchigh_pkg_cflags"
29063 SRCHIGH_LIBS
="$srchigh_pkg_libs"
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29066 $as_echo "no" >&6; }
29067 if test "${enable_source_highlight}" = "yes"; then
29068 as_fn_error $?
"source-highlight in your system could not be used" "$LINENO" 5
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29073 $as_echo "no" >&6; }
29074 if test "${enable_source_highlight}" = "yes"; then
29075 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
29083 # ------------------------- #
29084 # Checks for header files. #
29085 # ------------------------- #
29087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
29088 $as_echo_n "checking for ANSI C header files... " >&6; }
29089 if ${ac_cv_header_stdc+:} false
; then :
29090 $as_echo_n "(cached) " >&6
29092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29093 /* end confdefs.h. */
29094 #include <stdlib.h>
29095 #include <stdarg.h>
29096 #include <string.h>
29107 if ac_fn_c_try_compile
"$LINENO"; then :
29108 ac_cv_header_stdc
=yes
29110 ac_cv_header_stdc
=no
29112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29114 if test $ac_cv_header_stdc = yes; then
29115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29117 /* end confdefs.h. */
29118 #include <string.h>
29121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29122 $EGREP "memchr" >/dev
/null
2>&1; then :
29125 ac_cv_header_stdc
=no
29131 if test $ac_cv_header_stdc = yes; then
29132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29134 /* end confdefs.h. */
29135 #include <stdlib.h>
29138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29139 $EGREP "free" >/dev
/null
2>&1; then :
29142 ac_cv_header_stdc
=no
29148 if test $ac_cv_header_stdc = yes; then
29149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29150 if test "$cross_compiling" = yes; then :
29153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29154 /* end confdefs.h. */
29156 #include <stdlib.h>
29157 #if ((' ' & 0x0FF) == 0x020)
29158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29161 # define ISLOWER(c) \
29162 (('a' <= (c) && (c) <= 'i') \
29163 || ('j' <= (c) && (c) <= 'r') \
29164 || ('s' <= (c) && (c) <= 'z'))
29165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29173 for (i = 0; i < 256; i++)
29174 if (XOR (islower (i), ISLOWER (i))
29175 || toupper (i) != TOUPPER (i))
29180 if ac_fn_c_try_run
"$LINENO"; then :
29183 ac_cv_header_stdc
=no
29185 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29186 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
29192 $as_echo "$ac_cv_header_stdc" >&6; }
29193 if test $ac_cv_header_stdc = yes; then
29195 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
29216 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29217 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29218 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
29219 cat >>confdefs.h
<<_ACEOF
29220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29228 for ac_header
in sys
/user.h
29230 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
29231 # include <sys/param.h>
29235 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
29236 cat >>confdefs.h
<<_ACEOF
29237 #define HAVE_SYS_USER_H 1
29249 ncurses
/ncurses.h \
29251 ncursesw
/ncurses.h \
29254 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29255 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29256 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
29257 cat >>confdefs.h
<<_ACEOF
29258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29266 for ac_header
in term.h
29268 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
29269 # include <curses.h>
29273 if test "x$ac_cv_header_term_h" = xyes
; then :
29274 cat >>confdefs.h
<<_ACEOF
29275 #define HAVE_TERM_H 1
29283 for ac_header
in sys
/socket.h
29285 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
29286 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
29287 cat >>confdefs.h
<<_ACEOF
29288 #define HAVE_SYS_SOCKET_H 1
29295 for ac_header
in ws2tcpip.h
29297 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
29298 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
29299 cat >>confdefs.h
<<_ACEOF
29300 #define HAVE_WS2TCPIP_H 1
29307 for ac_header
in execinfo.h
29309 ac_fn_c_check_header_mongrel
"$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
29310 if test "x$ac_cv_header_execinfo_h" = xyes
; then :
29311 cat >>confdefs.h
<<_ACEOF
29312 #define HAVE_EXECINFO_H 1
29320 # ------------------------- #
29321 # Checks for declarations. #
29322 # ------------------------- #
29324 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
29325 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
29331 cat >>confdefs.h
<<_ACEOF
29332 #define HAVE_DECL_FFS $ac_have_decl
29335 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
29336 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
29342 cat >>confdefs.h
<<_ACEOF
29343 #define HAVE_DECL_ASPRINTF $ac_have_decl
29346 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
29347 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
29353 cat >>confdefs.h
<<_ACEOF
29354 #define HAVE_DECL_VASPRINTF $ac_have_decl
29357 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29358 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
29364 cat >>confdefs.h
<<_ACEOF
29365 #define HAVE_DECL_SNPRINTF $ac_have_decl
29368 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
29369 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
29375 cat >>confdefs.h
<<_ACEOF
29376 #define HAVE_DECL_VSNPRINTF $ac_have_decl
29379 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
29380 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
29386 cat >>confdefs.h
<<_ACEOF
29387 #define HAVE_DECL_STRTOL $ac_have_decl
29390 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
29391 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
29397 cat >>confdefs.h
<<_ACEOF
29398 #define HAVE_DECL_STRTOUL $ac_have_decl
29401 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
29402 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
29408 cat >>confdefs.h
<<_ACEOF
29409 #define HAVE_DECL_STRTOLL $ac_have_decl
29412 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
29413 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
29419 cat >>confdefs.h
<<_ACEOF
29420 #define HAVE_DECL_STRTOULL $ac_have_decl
29423 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
29424 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
29430 cat >>confdefs.h
<<_ACEOF
29431 #define HAVE_DECL_STRVERSCMP $ac_have_decl
29434 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
29435 if test "x$ac_cv_type_long_long" = xyes
; then :
29437 cat >>confdefs.h
<<_ACEOF
29438 #define HAVE_LONG_LONG 1
29441 # The cast to long int works around a bug in the HP C Compiler
29442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29444 # This bug is HP SR number 8606223364.
29445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
29446 $as_echo_n "checking size of long long... " >&6; }
29447 if ${ac_cv_sizeof_long_long+:} false
; then :
29448 $as_echo_n "(cached) " >&6
29450 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
29453 if test "$ac_cv_type_long_long" = yes; then
29454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29456 as_fn_error
77 "cannot compute sizeof (long long)
29457 See \`config.log' for more details" "$LINENO" 5; }
29459 ac_cv_sizeof_long_long
=0
29464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
29465 $as_echo "$ac_cv_sizeof_long_long" >&6; }
29469 cat >>confdefs.h
<<_ACEOF
29470 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
29477 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
29478 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
29479 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
29485 cat >>confdefs.h
<<_ACEOF
29486 #define HAVE_DECL_BASENAME $ac_have_decl
29494 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29495 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
29501 cat >>confdefs.h
<<_ACEOF
29502 #define HAVE_DECL_SNPRINTF $ac_have_decl
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
29507 $as_echo_n "checking for LC_MESSAGES... " >&6; }
29508 if ${am_cv_val_LC_MESSAGES+:} false
; then :
29509 $as_echo_n "(cached) " >&6
29511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29512 /* end confdefs.h. */
29513 #include <locale.h>
29522 if ac_fn_c_try_link
"$LINENO"; then :
29523 am_cv_val_LC_MESSAGES
=yes
29525 am_cv_val_LC_MESSAGES
=no
29527 rm -f core conftest.err conftest.
$ac_objext \
29528 conftest
$ac_exeext conftest.
$ac_ext
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
29531 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
29532 if test $am_cv_val_LC_MESSAGES = yes; then
29534 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
29539 # ------------------ #
29540 # Checks for types. #
29541 # ------------------ #
29543 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
29544 #if HAVE_SYS_SOCKET_H
29545 # include <sys/socket.h>
29546 #elif HAVE_WS2TCPIP_H
29547 # include <ws2tcpip.h>
29551 if test "x$ac_cv_type_socklen_t" = xyes
; then :
29553 cat >>confdefs.h
<<_ACEOF
29554 #define HAVE_SOCKLEN_T 1
29561 # ------------------------------------- #
29562 # Checks for compiler characteristics. #
29563 # ------------------------------------- #
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
29566 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
29567 if ${ac_cv_c_const+:} false
; then :
29568 $as_echo_n "(cached) " >&6
29570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29571 /* end confdefs.h. */
29577 #ifndef __cplusplus
29578 /* Ultrix mips cc rejects this sort of thing. */
29579 typedef int charset[2];
29580 const charset cs = { 0, 0 };
29581 /* SunOS 4.1.1 cc rejects this. */
29582 char const *const *pcpcc;
29584 /* NEC SVR4.0.2 mips cc rejects this. */
29585 struct point {int x, y;};
29586 static struct point const zero = {0,0};
29587 /* AIX XL C 1.02.0.0 rejects this.
29588 It does not let you subtract one const X* pointer from another in
29589 an arm of an if-expression whose if-part is not a constant
29591 const char *g = "string";
29592 pcpcc = &g + (g ? g-g : 0);
29593 /* HPUX 7.0 cc rejects these. */
29595 ppc = (char**) pcpcc;
29596 pcpcc = (char const *const *) ppc;
29597 { /* SCO 3.2v4 cc rejects this sort of thing. */
29600 char const *s = 0 ? (char *) 0 : (char const *) 0;
29605 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
29606 int x[] = {25, 17};
29607 const int *foo = &x[0];
29610 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29611 typedef const int *iptr;
29615 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
29616 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29617 struct s { int j; const int *ap[3]; } bx;
29618 struct s *b = &bx; b->j = 5;
29620 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29621 const int foo = 10;
29622 if (!foo) return 0;
29624 return !cs[0] && !zero.x;
29631 if ac_fn_c_try_compile
"$LINENO"; then :
29636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
29639 $as_echo "$ac_cv_c_const" >&6; }
29640 if test $ac_cv_c_const = no
; then
29642 $as_echo "#define const /**/" >>confdefs.h
29646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
29647 $as_echo_n "checking for inline... " >&6; }
29648 if ${ac_cv_c_inline+:} false
; then :
29649 $as_echo_n "(cached) " >&6
29652 for ac_kw
in inline __inline__ __inline
; do
29653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29654 /* end confdefs.h. */
29655 #ifndef __cplusplus
29657 static $ac_kw foo_t static_foo () {return 0; }
29658 $ac_kw foo_t foo () {return 0; }
29662 if ac_fn_c_try_compile
"$LINENO"; then :
29663 ac_cv_c_inline
=$ac_kw
29665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29666 test "$ac_cv_c_inline" != no
&& break
29670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
29671 $as_echo "$ac_cv_c_inline" >&6; }
29673 case $ac_cv_c_inline in
29676 case $ac_cv_c_inline in
29678 *) ac_val
=$ac_cv_c_inline;;
29680 cat >>confdefs.h
<<_ACEOF
29681 #ifndef __cplusplus
29682 #define inline $ac_val
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
29689 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
29690 if ${ac_cv_c_bigendian+:} false
; then :
29691 $as_echo_n "(cached) " >&6
29693 ac_cv_c_bigendian
=unknown
29694 # See if we're dealing with a universal compiler.
29695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29696 /* end confdefs.h. */
29697 #ifndef __APPLE_CC__
29698 not a universal capable compiler
29703 if ac_fn_c_try_compile
"$LINENO"; then :
29705 # Check for potential -arch flags. It is not universal unless
29706 # there are at least two -arch flags with different values.
29709 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
29710 if test -n "$ac_prev"; then
29712 i?
86 | x86_64 | ppc | ppc64
)
29713 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
29716 ac_cv_c_bigendian
=universal
29722 elif test "x$ac_word" = "x-arch"; then
29727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29728 if test $ac_cv_c_bigendian = unknown
; then
29729 # See if sys/param.h defines the BYTE_ORDER macro.
29730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29731 /* end confdefs.h. */
29732 #include <sys/types.h>
29733 #include <sys/param.h>
29738 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
29739 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
29741 bogus endian macros
29748 if ac_fn_c_try_compile
"$LINENO"; then :
29749 # It does; now see whether it defined to BIG_ENDIAN or not.
29750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29751 /* end confdefs.h. */
29752 #include <sys/types.h>
29753 #include <sys/param.h>
29758 #if BYTE_ORDER != BIG_ENDIAN
29766 if ac_fn_c_try_compile
"$LINENO"; then :
29767 ac_cv_c_bigendian
=yes
29769 ac_cv_c_bigendian
=no
29771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29775 if test $ac_cv_c_bigendian = unknown
; then
29776 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
29777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29778 /* end confdefs.h. */
29779 #include <limits.h>
29784 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
29785 bogus endian macros
29792 if ac_fn_c_try_compile
"$LINENO"; then :
29793 # It does; now see whether it defined to _BIG_ENDIAN or not.
29794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29795 /* end confdefs.h. */
29796 #include <limits.h>
29801 #ifndef _BIG_ENDIAN
29809 if ac_fn_c_try_compile
"$LINENO"; then :
29810 ac_cv_c_bigendian
=yes
29812 ac_cv_c_bigendian
=no
29814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29818 if test $ac_cv_c_bigendian = unknown
; then
29819 # Compile a test program.
29820 if test "$cross_compiling" = yes; then :
29821 # Try to guess by grepping values from an object file.
29822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29823 /* end confdefs.h. */
29824 short int ascii_mm[] =
29825 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
29826 short int ascii_ii[] =
29827 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
29828 int use_ascii (int i) {
29829 return ascii_mm[i] + ascii_ii[i];
29831 short int ebcdic_ii[] =
29832 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
29833 short int ebcdic_mm[] =
29834 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
29835 int use_ebcdic (int i) {
29836 return ebcdic_mm[i] + ebcdic_ii[i];
29843 return use_ascii (foo) == use_ebcdic (foo);
29848 if ac_fn_c_try_compile
"$LINENO"; then :
29849 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
29850 ac_cv_c_bigendian
=yes
29852 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
29853 if test "$ac_cv_c_bigendian" = unknown
; then
29854 ac_cv_c_bigendian
=no
29856 # finding both strings is unlikely to happen, but who knows?
29857 ac_cv_c_bigendian
=unknown
29861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29864 /* end confdefs.h. */
29865 $ac_includes_default
29870 /* Are we little or big endian? From Harbison&Steele. */
29874 char c[sizeof (long int)];
29877 return u.c[sizeof (long int) - 1] == 1;
29883 if ac_fn_c_try_run
"$LINENO"; then :
29884 ac_cv_c_bigendian
=no
29886 ac_cv_c_bigendian
=yes
29888 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29889 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
29895 $as_echo "$ac_cv_c_bigendian" >&6; }
29896 case $ac_cv_c_bigendian in #(
29898 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
29904 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
29908 as_fn_error $?
"unknown endianness
29909 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
29913 # ------------------------------ #
29914 # Checks for library functions. #
29915 # ------------------------------ #
29935 use_default_colors \
29939 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29940 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
29941 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
29942 cat >>confdefs.h
<<_ACEOF
29943 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
29952 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
29953 if ${am_cv_langinfo_codeset+:} false
; then :
29954 $as_echo_n "(cached) " >&6
29956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29957 /* end confdefs.h. */
29958 #include <langinfo.h>
29962 char* cs = nl_langinfo(CODESET);
29967 if ac_fn_c_try_link
"$LINENO"; then :
29968 am_cv_langinfo_codeset
=yes
29970 am_cv_langinfo_codeset
=no
29972 rm -f core conftest.err conftest.
$ac_objext \
29973 conftest
$ac_exeext conftest.
$ac_ext
29976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
29977 $as_echo "$am_cv_langinfo_codeset" >&6; }
29978 if test $am_cv_langinfo_codeset = yes; then
29980 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
29985 # Check the return and argument types of ptrace.
29988 for ac_header
in sys
/ptrace.h ptrace.h
29990 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29991 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29992 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
29993 cat >>confdefs.h
<<_ACEOF
29994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30002 gdb_ptrace_headers
='
30003 #include <sys/types.h>
30004 #if HAVE_SYS_PTRACE_H
30005 # include <sys/ptrace.h>
30008 # include <unistd.h>
30012 # Check return type. Varargs (used on GNU/Linux) conflict with the
30013 # empty argument list, so check for that explicitly.
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
30015 $as_echo_n "checking return type of ptrace... " >&6; }
30016 if ${gdb_cv_func_ptrace_ret+:} false
; then :
30017 $as_echo_n "(cached) " >&6
30019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30020 /* end confdefs.h. */
30021 Â $gdb_ptrace_headers
30025 extern long ptrace (enum __ptrace_request, ...);
30031 if ac_fn_c_try_compile
"$LINENO"; then :
30032 gdb_cv_func_ptrace_ret
='long'
30034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30035 /* end confdefs.h. */
30036 $gdb_ptrace_headers
30040 extern int ptrace ();
30046 if ac_fn_c_try_compile
"$LINENO"; then :
30047 gdb_cv_func_ptrace_ret
='int'
30049 gdb_cv_func_ptrace_ret
='long'
30052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
30059 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
30062 cat >>confdefs.h
<<_ACEOF
30063 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
30067 # Check argument types.
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
30069 $as_echo_n "checking types of arguments for ptrace... " >&6; }
30070 if ${gdb_cv_func_ptrace_args+:} false
; then :
30071 $as_echo_n "(cached) " >&6
30073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30074 /* end confdefs.h. */
30075 $gdb_ptrace_headers
30079 extern long ptrace (enum __ptrace_request, ...);
30085 if ac_fn_c_try_compile
"$LINENO"; then :
30086 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
30088 for gdb_arg1
in 'int' 'long'; do
30089 for gdb_arg2
in 'pid_t' 'int' 'long'; do
30090 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
30091 for gdb_arg4
in 'int' 'long' 'void *'; do
30092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30093 /* end confdefs.h. */
30094 $gdb_ptrace_headers
30098 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
30104 if ac_fn_c_try_compile
"$LINENO"; then :
30105 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
30109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30111 for gdb_arg5
in 'int *' 'int' 'long'; do
30112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30113 /* end confdefs.h. */
30114 $gdb_ptrace_headers
30118 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
30124 if ac_fn_c_try_compile
"$LINENO"; then :
30125 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
30129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30135 # Provide a safe default value.
30136 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
30139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
30143 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
30145 ac_save_IFS
=$IFS; IFS
=','
30146 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
30150 cat >>confdefs.h
<<_ACEOF
30151 #define PTRACE_TYPE_ARG1 $1
30155 cat >>confdefs.h
<<_ACEOF
30156 #define PTRACE_TYPE_ARG3 $3
30160 cat >>confdefs.h
<<_ACEOF
30161 #define PTRACE_TYPE_ARG4 $4
30164 if test -n "$5"; then
30166 cat >>confdefs.h
<<_ACEOF
30167 #define PTRACE_TYPE_ARG5 $5
30173 if test "$cross_compiling" = no
; then
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
30175 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
30176 if ${ac_cv_func_setpgrp_void+:} false
; then :
30177 $as_echo_n "(cached) " >&6
30179 if test "$cross_compiling" = yes; then :
30180 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
30182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30183 /* end confdefs.h. */
30184 $ac_includes_default
30188 /* If this system has a BSD-style setpgrp which takes arguments,
30189 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
30190 exit successfully. */
30191 return setpgrp (1,1) != -1;
30196 if ac_fn_c_try_run
"$LINENO"; then :
30197 ac_cv_func_setpgrp_void
=no
30199 ac_cv_func_setpgrp_void
=yes
30201 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30202 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
30207 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
30208 if test $ac_cv_func_setpgrp_void = yes; then
30210 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
30215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
30216 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
30217 if ${ac_cv_func_setpgrp_void+:} false
; then :
30218 $as_echo_n "(cached) " >&6
30220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30221 /* end confdefs.h. */
30222 #include <unistd.h>
30226 if (setpgrp(1,1) == -1)
30235 if ac_fn_c_try_compile
"$LINENO"; then :
30236 ac_cv_func_setpgrp_void
=no
30238 ac_cv_func_setpgrp_void
=yes
30241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
30245 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
30246 if test "$ac_cv_func_setpgrp_void" = yes; then
30247 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
30252 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
30253 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
30254 #include <sys/proc.h>
30257 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
30259 cat >>confdefs.h
<<_ACEOF
30260 #define HAVE_STRUCT_THREAD_TD_PCB 1
30267 # See if <sys/lwp.h> defines `struct lwp`.
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
30269 $as_echo_n "checking for struct lwp... " >&6; }
30270 if ${gdb_cv_struct_lwp+:} false
; then :
30271 $as_echo_n "(cached) " >&6
30273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30274 /* end confdefs.h. */
30275 #include <sys/param.h>
30277 #include <sys/lwp.h>
30287 if ac_fn_c_try_compile
"$LINENO"; then :
30288 gdb_cv_struct_lwp
=yes
30290 gdb_cv_struct_lwp
=no
30293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
30297 $as_echo "$gdb_cv_struct_lwp" >&6; }
30298 if test "$gdb_cv_struct_lwp" = yes; then
30300 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
30304 # See if <machine/reg.h> degines `struct reg'.
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
30306 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
30307 if ${gdb_cv_struct_reg+:} false
; then :
30308 $as_echo_n "(cached) " >&6
30310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30311 /* end confdefs.h. */
30312 #include <sys/types.h>
30313 #include <machine/reg.h>
30323 if ac_fn_c_try_compile
"$LINENO"; then :
30324 gdb_cv_struct_reg
=yes
30326 gdb_cv_struct_reg
=no
30329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
30333 $as_echo "$gdb_cv_struct_reg" >&6; }
30334 if test "$gdb_cv_struct_reg" = yes; then
30336 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
30340 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
30341 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
30342 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
30343 #include <machine/reg.h>
30345 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
30347 cat >>confdefs.h
<<_ACEOF
30348 #define HAVE_STRUCT_REG_R_FS 1
30353 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
30354 #include <machine/reg.h>
30356 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
30358 cat >>confdefs.h
<<_ACEOF
30359 #define HAVE_STRUCT_REG_R_GS 1
30366 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
30368 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
30369 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
30370 $as_echo_n "(cached) " >&6
30372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30373 /* end confdefs.h. */
30374 #include <sys/ptrace.h>
30383 if ac_fn_c_try_compile
"$LINENO"; then :
30384 gdb_cv_have_ptrace_getregs
=yes
30386 gdb_cv_have_ptrace_getregs
=no
30389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
30394 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
30395 if test "$gdb_cv_have_ptrace_getregs" = yes; then
30397 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
30401 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
30402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
30403 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
30404 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
30405 $as_echo_n "(cached) " >&6
30407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30408 /* end confdefs.h. */
30409 #include <sys/ptrace.h>
30418 if ac_fn_c_try_compile
"$LINENO"; then :
30419 gdb_cv_have_ptrace_getfpxregs
=yes
30421 gdb_cv_have_ptrace_getfpxregs
=no
30424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
30429 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
30430 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
30432 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
30436 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
30437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
30438 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
30439 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
30440 $as_echo_n "(cached) " >&6
30442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30443 /* end confdefs.h. */
30444 #include <sys/types.h>
30445 #include <sys/ptrace.h>
30455 if ac_fn_c_try_compile
"$LINENO"; then :
30456 gdb_cv_have_pt_getdbregs
=yes
30458 gdb_cv_have_pt_getdbregs
=no
30461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
30466 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
30467 if test "$gdb_cv_have_pt_getdbregs" = yes; then
30469 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
30473 # See if <sys/ptrace.h> supports LWP names on FreeBSD
30474 # Older FreeBSD versions don't have the pl_tdname member of
30475 # `struct ptrace_lwpinfo'.
30476 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
30478 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
30480 cat >>confdefs.h
<<_ACEOF
30481 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
30488 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
30489 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
30491 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
30493 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
30495 cat >>confdefs.h
<<_ACEOF
30496 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
30503 # Check if the compiler supports the `long long' type.
30505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
30506 $as_echo_n "checking for long long support in compiler... " >&6; }
30507 if ${gdb_cv_c_long_long+:} false
; then :
30508 $as_echo_n "(cached) " >&6
30510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30511 /* end confdefs.h. */
30512 extern long long foo;
30516 switch (foo & 2) { case 0: return 1; }
30521 if ac_fn_c_try_compile
"$LINENO"; then :
30522 gdb_cv_c_long_long
=yes
30524 gdb_cv_c_long_long
=no
30526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
30529 $as_echo "$gdb_cv_c_long_long" >&6; }
30530 if test "$gdb_cv_c_long_long" != yes; then
30531 # libdecnumber requires long long.
30532 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
30535 # Check if the compiler and runtime support printing decfloats.
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
30538 $as_echo_n "checking for decfloat support in printf... " >&6; }
30539 if ${gdb_cv_printf_has_decfloat+:} false
; then :
30540 $as_echo_n "(cached) " >&6
30542 if test "$cross_compiling" = yes; then :
30543 gdb_cv_printf_has_decfloat
=no
30545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30546 /* end confdefs.h. */
30547 $ac_includes_default
30552 _Decimal32 d32 = 1.2345df;
30553 _Decimal64 d64 = 1.2345dd;
30554 _Decimal128 d128 = 1.2345dl;
30555 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
30556 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
30561 if ac_fn_c_try_run
"$LINENO"; then :
30562 gdb_cv_printf_has_decfloat
=yes
30564 gdb_cv_printf_has_decfloat
=no
30566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30567 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
30572 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
30573 if test "$gdb_cv_printf_has_decfloat" = yes; then
30575 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
30579 # Check if the compiler supports the `long double' type. We can't use
30580 # AC_C_LONG_DOUBLE because that one does additional checks on the
30581 # constants defined in <float.h> that fail on some systems,
30582 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
30585 $as_echo_n "checking for long double support in compiler... " >&6; }
30586 if ${gdb_cv_c_long_double+:} false
; then :
30587 $as_echo_n "(cached) " >&6
30589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30590 /* end confdefs.h. */
30593 if ac_fn_c_try_compile
"$LINENO"; then :
30594 gdb_cv_c_long_double
=yes
30596 gdb_cv_c_long_double
=no
30598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
30601 $as_echo "$gdb_cv_c_long_double" >&6; }
30602 if test "$gdb_cv_c_long_double" = yes; then
30604 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
30608 # Check if the compiler and runtime support printing long doubles.
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
30611 $as_echo_n "checking for long double support in printf... " >&6; }
30612 if ${gdb_cv_printf_has_long_double+:} false
; then :
30613 $as_echo_n "(cached) " >&6
30615 if test "$cross_compiling" = yes; then :
30616 gdb_cv_printf_has_long_double
=no
30618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30619 /* end confdefs.h. */
30620 $ac_includes_default
30625 long double f = 3.141592653;
30626 sprintf (buf, "%Lg", f);
30627 return (strncmp ("3.14159", buf, 7));
30632 if ac_fn_c_try_run
"$LINENO"; then :
30633 gdb_cv_printf_has_long_double
=yes
30635 gdb_cv_printf_has_long_double
=no
30637 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30638 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
30643 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
30644 if test "$gdb_cv_printf_has_long_double" = yes; then
30646 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
30650 # Check if the compiler and runtime support scanning long doubles.
30652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
30653 $as_echo_n "checking for long double support in scanf... " >&6; }
30654 if ${gdb_cv_scanf_has_long_double+:} false
; then :
30655 $as_echo_n "(cached) " >&6
30657 if test "$cross_compiling" = yes; then :
30658 gdb_cv_scanf_has_long_double
=no
30660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30661 /* end confdefs.h. */
30666 char *buf = "3.141592653";
30668 sscanf (buf, "%Lg", &f);
30669 return !(f > 3.14159 && f < 3.14160);
30674 if ac_fn_c_try_run
"$LINENO"; then :
30675 gdb_cv_scanf_has_long_double
=yes
30677 gdb_cv_scanf_has_long_double
=no
30679 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30680 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
30685 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
30686 if test "$gdb_cv_scanf_has_long_double" = yes; then
30688 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
30695 $as_echo_n "checking for -bbigtoc option... " >&6; }
30696 if ${gdb_cv_bigtoc+:} false
; then :
30697 $as_echo_n "(cached) " >&6
30699 SAVE_LDFLAGS
=$LDFLAGS
30702 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
30703 *) gdb_cv_bigtoc
=-bbigtoc ;;
30706 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
30707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30708 /* end confdefs.h. */
30718 if ac_fn_c_try_link
"$LINENO"; then :
30724 rm -f core conftest.err conftest.
$ac_objext \
30725 conftest
$ac_exeext conftest.
$ac_ext
30726 LDFLAGS
="${SAVE_LDFLAGS}"
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
30730 $as_echo "$gdb_cv_bigtoc" >&6; }
30731 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
30736 $as_echo_n "checking for the dynamic export flag... " >&6; }
30738 if test "${gdb_native}" = yes; then
30739 # The dynamically loaded libthread_db needs access to symbols in the gdb
30740 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
30741 # may not be supported there.
30742 old_LDFLAGS
="$LDFLAGS"
30743 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
30744 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
30745 LDFLAGS
="$LDFLAGS $RDYNAMIC"
30746 if test "${have_libpython}" = no
; then
30747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30748 /* end confdefs.h. */
30758 if ac_fn_c_try_link
"$LINENO"; then :
30761 rm -f core conftest.err conftest.
$ac_objext \
30762 conftest
$ac_exeext conftest.
$ac_ext
30764 # Workaround http://bugs.python.org/issue4434 where static
30765 # libpythonX.Y.a would get its symbols required for
30766 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
30767 # Problem does not happen for the recommended libpythonX.Y.so linkage.
30769 # Note the workaround for Python
30770 # http://bugs.python.org/issue10112 earlier has removed
30771 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
30772 # here too, as otherwise it'd make this -Wl,--dynamic-list test
30774 old_CFLAGS
="$CFLAGS"
30775 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
30777 LIBS
="$LIBS $PYTHON_LIBS"
30778 old_CPPFLAGS
="$CPPFLAGS"
30779 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
30780 if test "$cross_compiling" = yes; then :
30783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30784 /* end confdefs.h. */
30785 #include "Python.h"
30791 err = PyRun_SimpleString ("import ctypes\n");
30793 return err == 0 ? 0 : 1;
30798 if ac_fn_c_try_run
"$LINENO"; then :
30801 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30802 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30806 CFLAGS
="$old_CFLAGS"
30807 CPPFLAGS
="$old_CPPFLAGS"
30809 LDFLAGS
="$old_LDFLAGS"
30811 if $dynamic_list; then
30812 found
="-Wl,--dynamic-list"
30813 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
30816 RDYNAMIC
="-rdynamic"
30819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
30820 $as_echo "$found" >&6; }
30822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
30823 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
30824 if ${gdb_cv_execinfo_backtrace+:} false
; then :
30825 $as_echo_n "(cached) " >&6
30827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30828 /* end confdefs.h. */
30830 #include <execinfo.h>
30838 f = backtrace (b, 2);
30839 backtrace_symbols_fd (b, f, 2);
30845 if ac_fn_c_try_link
"$LINENO"; then :
30846 gdb_cv_execinfo_backtrace
=yes
30848 gdb_cv_execinfo_backtrace
=no
30850 rm -f core conftest.err conftest.
$ac_objext \
30851 conftest
$ac_exeext conftest.
$ac_ext
30853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
30854 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
30855 if test "$gdb_cv_execinfo_backtrace" = yes; then
30857 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
30862 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
30866 $as_echo_n "checking for AiX thread debugging library... " >&6; }
30867 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
30868 $as_echo_n "(cached) " >&6
30870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30871 /* end confdefs.h. */
30872 #include <sys/pthdebug.h>
30876 #ifndef PTHDB_VERSION_3
30884 if ac_fn_c_try_compile
"$LINENO"; then :
30885 gdb_cv_have_aix_thread_debug
=yes
30887 gdb_cv_have_aix_thread_debug
=no
30890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
30895 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
30896 if test "$gdb_cv_have_aix_thread_debug" = yes; then
30897 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
30898 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
30899 LIBS
="$LIBS -lpthdebug"
30901 # Older versions of AIX do not provide the declaration for
30902 # the getthrds function (it appears that it was introduced
30904 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
30906 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
30912 cat >>confdefs.h
<<_ACEOF
30913 #define HAVE_DECL_GETTHRDS $ac_have_decl
30922 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
30924 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
30925 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
30926 $as_echo_n "(cached) " >&6
30928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30929 /* end confdefs.h. */
30930 #include <thread_db.h>
30934 int i = TD_NOTALLOC;
30940 if ac_fn_c_try_compile
"$LINENO"; then :
30941 gdb_cv_thread_db_h_has_td_notalloc
=yes
30943 gdb_cv_thread_db_h_has_td_notalloc
=no
30946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
30950 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
30952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
30953 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
30954 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
30955 $as_echo_n "(cached) " >&6
30957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30958 /* end confdefs.h. */
30959 #include <thread_db.h>
30963 int i = TD_VERSION;
30969 if ac_fn_c_try_compile
"$LINENO"; then :
30970 gdb_cv_thread_db_h_has_td_version
=yes
30972 gdb_cv_thread_db_h_has_td_version
=no
30975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
30979 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
30981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
30982 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
30983 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
30984 $as_echo_n "(cached) " >&6
30986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30987 /* end confdefs.h. */
30988 #include <thread_db.h>
30998 if ac_fn_c_try_compile
"$LINENO"; then :
30999 gdb_cv_thread_db_h_has_td_notls
=yes
31001 gdb_cv_thread_db_h_has_td_notls
=no
31004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
31008 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
31010 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
31012 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
31015 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
31017 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
31020 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
31022 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
31035 cat >>confdefs.h
<<_ACEOF
31036 #define GDBINIT "$gdbinit"
31041 cat >>confdefs.h
<<_ACEOF
31042 #define GDBEARLYINIT ".gdbearlyinit"
31047 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
31048 # except that the argument to --with-sysroot is optional.
31049 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
31050 if test "x$with_sysroot" = xyes
; then
31051 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
31054 # Check whether --with-sysroot was given.
31055 if test "${with_sysroot+set}" = set; then :
31056 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
31058 TARGET_SYSTEM_ROOT
=
31062 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
31063 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31064 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
31065 ac_define_dir
=`eval echo $ac_define_dir`
31067 cat >>confdefs.h
<<_ACEOF
31068 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
31074 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
31075 if test "x$prefix" = xNONE
; then
31076 test_prefix
=/usr
/local
31078 test_prefix
=$prefix
31081 test_prefix
=$exec_prefix
31084 case ${ac_define_dir} in
31085 "${test_prefix}"|
"${test_prefix}/"*|\
31086 '${exec_prefix}'|
'${exec_prefix}/'*)
31091 cat >>confdefs.h
<<_ACEOF
31092 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
31099 # Check whether --with-system-gdbinit was given.
31100 if test "${with_system_gdbinit+set}" = set; then :
31101 withval
=$with_system_gdbinit;
31102 SYSTEM_GDBINIT
=$withval
31108 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
31109 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31110 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
31111 ac_define_dir
=`eval echo $ac_define_dir`
31113 cat >>confdefs.h
<<_ACEOF
31114 #define SYSTEM_GDBINIT "$ac_define_dir"
31120 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
31121 if test "x$prefix" = xNONE
; then
31122 test_prefix
=/usr
/local
31124 test_prefix
=$prefix
31127 test_prefix
=$exec_prefix
31130 case ${ac_define_dir} in
31131 "${test_prefix}"|
"${test_prefix}/"*|\
31132 '${exec_prefix}'|
'${exec_prefix}/'*)
31137 cat >>confdefs.h
<<_ACEOF
31138 #define SYSTEM_GDBINIT_RELOCATABLE $value
31145 # Check whether --with-system-gdbinit-dir was given.
31146 if test "${with_system_gdbinit_dir+set}" = set; then :
31147 withval
=$with_system_gdbinit_dir;
31148 SYSTEM_GDBINIT_DIR
=$withval
31150 SYSTEM_GDBINIT_DIR
=
31154 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
31155 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31156 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
31157 ac_define_dir
=`eval echo $ac_define_dir`
31159 cat >>confdefs.h
<<_ACEOF
31160 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
31166 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
31167 if test "x$prefix" = xNONE
; then
31168 test_prefix
=/usr
/local
31170 test_prefix
=$prefix
31173 test_prefix
=$exec_prefix
31176 case ${ac_define_dir} in
31177 "${test_prefix}"|
"${test_prefix}/"*|\
31178 '${exec_prefix}'|
'${exec_prefix}/'*)
31183 cat >>confdefs.h
<<_ACEOF
31184 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
31193 $as_echo_n "checking the compiler type... " >&6; }
31194 if ${gdb_cv_compiler_type+:} false
; then :
31195 $as_echo_n "(cached) " >&6
31197 gdb_cv_compiler_type
=unknown
31198 if test "$gdb_cv_compiler_type" = unknown
; then
31199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31200 /* end confdefs.h. */
31206 #if !defined __GNUC__ || defined __clang__
31214 if ac_fn_c_try_compile
"$LINENO"; then :
31215 gdb_cv_compiler_type
=gcc
31217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31220 if test "$gdb_cv_compiler_type" = unknown
; then
31221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31222 /* end confdefs.h. */
31236 if ac_fn_c_try_compile
"$LINENO"; then :
31237 gdb_cv_compiler_type
=clang
31239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
31244 $as_echo "$gdb_cv_compiler_type" >&6; }
31246 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
31249 # Check whether --enable-werror was given.
31250 if test "${enable_werror+set}" = set; then :
31251 enableval
=$enable_werror; case "${enableval}" in
31252 yes | y
) ERROR_ON_WARNING
="yes" ;;
31253 no | n
) ERROR_ON_WARNING
="no" ;;
31254 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
31259 # Enable -Werror by default when using gcc. Turn it off for releases.
31260 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
31261 ERROR_ON_WARNING
=yes
31265 if test "${ERROR_ON_WARNING}" = yes ; then
31266 WERROR_CFLAGS
="-Werror"
31269 # The options we'll try to enable.
31270 build_warnings
="-Wall -Wpointer-arith \
31271 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
31272 -Wno-switch -Wno-char-subscripts \
31273 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
31274 -Wno-sign-compare -Wno-error=maybe-uninitialized \
31275 -Wno-mismatched-tags \
31276 -Wno-error=deprecated-register \
31277 -Wsuggest-override \
31278 -Wimplicit-fallthrough=5 \
31279 -Wduplicated-cond \
31281 -Wdeprecated-copy \
31282 -Wdeprecated-copy-dtor \
31284 -Wmissing-declarations \
31285 -Wstrict-null-sentinel \
31289 # The -Wmissing-prototypes flag will be accepted by GCC, but results
31290 # in a warning being printed about the flag not being valid for C++,
31291 # this is something to do with using ccache, and argument ordering.
31292 if test "$GDB_COMPILER_TYPE" != gcc
; then
31293 build_warnings
="$build_warnings -Wmissing-prototypes"
31298 # Enable -Wno-format by default when using gcc on mingw since many
31299 # GCC versions complain about %I64.
31300 build_warnings
="$build_warnings -Wno-format" ;;
31302 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
31303 # doesn't understand.
31304 build_warnings
="$build_warnings -Wno-unknown-pragmas"
31305 # Solaris 11 <unistd.h> marks vfork deprecated.
31306 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
31308 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
31309 # but there's a special case for this below.
31310 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
31313 # Check whether --enable-build-warnings was given.
31314 if test "${enable_build_warnings+set}" = set; then :
31315 enableval
=$enable_build_warnings; case "${enableval}" in
31317 no
) build_warnings
="-w";;
31318 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
31319 build_warnings
="${build_warnings} ${t}";;
31320 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
31321 build_warnings
="${t} ${build_warnings}";;
31322 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
31324 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
31325 echo "Setting compiler warning flags = $build_warnings" 6>&1
31328 # Check whether --enable-gdb-build-warnings was given.
31329 if test "${enable_gdb_build_warnings+set}" = set; then :
31330 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
31332 no
) build_warnings
="-w";;
31333 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
31334 build_warnings
="${build_warnings} ${t}";;
31335 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
31336 build_warnings
="${t} ${build_warnings}";;
31337 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
31339 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
31340 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
31344 # The set of warnings supported by a C++ compiler is not the same as
31345 # of the C compiler.
31347 ac_cpp
='$CXXCPP $CPPFLAGS'
31348 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31349 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31350 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31354 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
31357 $as_echo_n "checking compiler warning flags... " >&6; }
31358 # Separate out the -Werror flag as some files just cannot be
31359 # compiled with it enabled.
31360 for w
in ${build_warnings}; do
31361 # GCC does not complain about -Wno-unknown-warning. Invert
31362 # and test -Wunknown-warning instead.
31365 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
31366 -Wformat-nonliteral)
31367 # gcc requires -Wformat before -Wformat-nonliteral
31368 # will work, so stick them together.
31377 -Werr*) WERROR_CFLAGS
=-Werror ;;
31379 # Check whether GCC accepts it.
31380 saved_CFLAGS
="$CFLAGS"
31381 CFLAGS
="$CFLAGS -Werror $wtest"
31382 saved_CXXFLAGS
="$CXXFLAGS"
31383 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
31384 if test "x$w" = "x-Wunused-variable"; then
31385 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
31386 # fixed in GCC 4.9. This test is derived from the gdb
31387 # source code that triggered this bug in GCC.
31388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31389 /* end confdefs.h. */
31390 struct scoped_restore_base {};
31391 struct scoped_restore_tmpl : public scoped_restore_base {
31392 ~scoped_restore_tmpl() {}
31397 const scoped_restore_base &b = scoped_restore_tmpl();
31403 if ac_fn_cxx_try_compile
"$LINENO"; then :
31404 WARN_CFLAGS
="${WARN_CFLAGS} $w"
31406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31409 /* end confdefs.h. */
31419 if ac_fn_cxx_try_compile
"$LINENO"; then :
31420 WARN_CFLAGS
="${WARN_CFLAGS} $w"
31422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31424 CFLAGS
="$saved_CFLAGS"
31425 CXXFLAGS
="$saved_CXXFLAGS"
31428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
31429 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
31435 ac_cpp='$CPP $CPPFLAGS'
31436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31442 # Check whether --enable-ubsan was given.
31443 if test "${enable_ubsan+set}" = set; then :
31444 enableval=$enable_ubsan;
31449 if test "x
$enable_ubsan" = xauto; then
31450 if $development; then
31455 ac_cpp='$CXXCPP $CPPFLAGS'
31456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31460 if test "x
$enable_ubsan" = xyes; then
31461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
31462 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
31463 saved_CXXFLAGS="$CXXFLAGS"
31464 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
31465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31466 /* end confdefs.h. */
31476 if ac_fn_cxx_try_link "$LINENO"; then :
31482 rm -f core conftest.err conftest.$ac_objext \
31483 conftest$ac_exeext conftest.$ac_ext
31484 CXXFLAGS="$saved_CXXFLAGS"
31485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
31486 $as_echo "$enable_ubsan" >&6; }
31487 if test "x
$enable_ubsan" = xyes; then
31488 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
31489 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
31493 ac_cpp='$CPP $CPPFLAGS'
31494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31500 # In the Cygwin environment, we need some additional flags.
31501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
31502 $as_echo_n "checking
for cygwin...
" >&6; }
31503 if ${gdb_cv_os_cygwin+:} false; then :
31504 $as_echo_n "(cached
) " >&6
31506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31507 /* end confdefs.h. */
31509 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
31513 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
31514 $EGREP "^lose$
" >/dev/null 2>&1; then :
31515 gdb_cv_os_cygwin=yes
31517 gdb_cv_os_cygwin=no
31522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
31523 $as_echo "$gdb_cv_os_cygwin" >&6; }
31526 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
31528 *go32* ) SER_HARDWIRE=ser-go32.o ;;
31529 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
31530 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
31531 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
31535 # libreadline needs libuser32.a in a cygwin environment
31537 if test x"$gdb_cv_os_cygwin" = xyes; then
31538 WIN32LIBS="-luser32"
31539 case "${target}" in
31540 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
31545 # The ser-tcp.c module requires sockets.
31546 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
31547 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
31549 # Add ELF support to GDB, but only if BFD includes ELF support.
31552 OLD_LDFLAGS=$LDFLAGS
31555 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
31556 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
31557 # always want our bfd.
31558 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
31559 LDFLAGS="-L..
/bfd
-L..
/libiberty
$LDFLAGS"
31560 # LTLIBINTL because we use libtool as CC below.
31561 intl="$
(echo "$LTLIBINTL" |
sed 's,\$[{(]top_builddir[)}]/,,')"
31562 LIBS="-lbfd -liberty $intl $LIBS"
31563 CC=".
/libtool
--quiet --mode=link
$CC"
31564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
31565 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
31566 if ${gdb_cv_var_elf+:} false; then :
31567 $as_echo_n "(cached
) " >&6
31569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31570 /* end confdefs.h. */
31571 #include <stdlib.h>
31572 #include <string.h>
31574 #include "elf-bfd.h
"
31578 return bfd_get_elf_phdr_upper_bound (NULL);
31584 if ac_fn_c_try_link "$LINENO"; then :
31590 rm -f core conftest.err conftest.$ac_objext \
31591 conftest$ac_exeext conftest.$ac_ext
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
31595 $as_echo "$gdb_cv_var_elf" >&6; }
31598 LDFLAGS=$OLD_LDFLAGS
31600 if test "$gdb_cv_var_elf" = yes; then
31601 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
31602 gcore-elf.o elf-none-tdep.o
"
31604 $as_echo "#define HAVE_ELF 1" >>confdefs.h
31606 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
31607 if test "$plugins" = "yes"; then
31608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31609 $as_echo_n "checking for library containing dlopen... " >&6; }
31610 if ${ac_cv_search_dlopen+:} false
; then :
31611 $as_echo_n "(cached) " >&6
31613 ac_func_search_save_LIBS
=$LIBS
31614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31615 /* end confdefs.h. */
31617 /* Override any GCC internal prototype to avoid an error.
31618 Use char because int might match the return type of a GCC
31619 builtin and then its argument prototype would still apply. */
31632 for ac_lib
in '' dl
; do
31633 if test -z "$ac_lib"; then
31634 ac_res
="none required"
31637 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31639 if ac_fn_c_try_link
"$LINENO"; then :
31640 ac_cv_search_dlopen
=$ac_res
31642 rm -f core conftest.err conftest.
$ac_objext \
31644 if ${ac_cv_search_dlopen+:} false
; then :
31648 if ${ac_cv_search_dlopen+:} false
; then :
31651 ac_cv_search_dlopen
=no
31653 rm conftest.
$ac_ext
31654 LIBS
=$ac_func_search_save_LIBS
31656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31657 $as_echo "$ac_cv_search_dlopen" >&6; }
31658 ac_res
=$ac_cv_search_dlopen
31659 if test "$ac_res" != no
; then :
31660 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
31667 # Add macho support to GDB, but only if BFD includes it.
31670 OLD_LDFLAGS
=$LDFLAGS
31673 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
31674 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
31675 # always want our bfd.
31676 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
31677 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
31678 # LTLIBINTL because we use libtool as CC below.
31679 intl
="$(echo "$LTLIBINTL" | sed 's,\$[{(]top_builddir[)}]/,,')"
31680 LIBS
="-lbfd -liberty $intl $LIBS"
31681 CC
="./libtool --quiet --mode=link $CC"
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
31683 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
31684 if ${gdb_cv_var_macho+:} false
; then :
31685 $as_echo_n "(cached) " >&6
31687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31688 /* end confdefs.h. */
31689 #include <stdlib.h>
31690 #include <string.h>
31692 #include "mach-o.h"
31696 return bfd_mach_o_lookup_command (NULL, 0, NULL);
31702 if ac_fn_c_try_link
"$LINENO"; then :
31703 gdb_cv_var_macho
=yes
31705 gdb_cv_var_macho
=no
31708 rm -f core conftest.err conftest.
$ac_objext \
31709 conftest
$ac_exeext conftest.
$ac_ext
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
31713 $as_echo "$gdb_cv_var_macho" >&6; }
31716 LDFLAGS
=$OLD_LDFLAGS
31718 if test "$gdb_cv_var_macho" = yes; then
31719 CONFIG_OBS
="$CONFIG_OBS machoread.o"
31722 # Add any host-specific objects to GDB.
31723 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
31725 # If building on ELF, look for lzma support for embedded compressed debug info.
31726 if test "$gdb_cv_var_elf" = yes; then
31728 # Check whether --with-lzma was given.
31729 if test "${with_lzma+set}" = set; then :
31730 withval
=$with_lzma;
31735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
31736 $as_echo_n "checking whether to use lzma... " >&6; }
31737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
31738 $as_echo "$with_lzma" >&6; }
31740 if test "${with_lzma}" != no
; then
31751 acl_save_prefix
="$prefix"
31752 prefix
="$acl_final_prefix"
31753 acl_save_exec_prefix
="$exec_prefix"
31754 exec_prefix
="$acl_final_exec_prefix"
31756 eval additional_includedir
=\"$includedir\"
31757 eval additional_libdir
=\"$libdir\"
31759 exec_prefix
="$acl_save_exec_prefix"
31760 prefix
="$acl_save_prefix"
31763 # Check whether --with-liblzma-prefix was given.
31764 if test "${with_liblzma_prefix+set}" = set; then :
31765 withval
=$with_liblzma_prefix;
31766 if test "X$withval" = "Xno"; then
31769 if test "X$withval" = "X"; then
31771 acl_save_prefix
="$prefix"
31772 prefix
="$acl_final_prefix"
31773 acl_save_exec_prefix
="$exec_prefix"
31774 exec_prefix
="$acl_final_exec_prefix"
31776 eval additional_includedir
=\"$includedir\"
31777 eval additional_libdir
=\"$libdir\"
31779 exec_prefix
="$acl_save_exec_prefix"
31780 prefix
="$acl_save_prefix"
31783 additional_includedir
="$withval/include"
31784 additional_libdir
="$withval/lib"
31791 # Check whether --with-liblzma-type was given.
31792 if test "${with_liblzma_type+set}" = set; then :
31793 withval
=$with_liblzma_type; with_liblzma_type
=$withval
31795 with_liblzma_type
=auto
31798 lib_type
=`eval echo \$with_liblzma_type`
31805 names_already_handled
=
31806 names_next_round
='lzma '
31807 while test -n "$names_next_round"; do
31808 names_this_round
="$names_next_round"
31810 for name
in $names_this_round; do
31812 for n
in $names_already_handled; do
31813 if test "$n" = "$name"; then
31814 already_handled
=yes
31818 if test -z "$already_handled"; then
31819 names_already_handled
="$names_already_handled $name"
31820 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
31821 eval value
=\"\
$HAVE_LIB$uppername\"
31822 if test -n "$value"; then
31823 if test "$value" = yes; then
31824 eval value
=\"\
$LIB$uppername\"
31825 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
31826 eval value
=\"\
$LTLIB$uppername\"
31827 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
31836 if test $use_additional = yes; then
31837 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
31838 found_dir
="$additional_libdir"
31839 found_so
="$additional_libdir/lib$name.$shlibext"
31840 if test -f "$additional_libdir/lib$name.la"; then
31841 found_la
="$additional_libdir/lib$name.la"
31843 elif test x
$lib_type != xshared
; then
31844 if test -f "$additional_libdir/lib$name.$libext"; then
31845 found_dir
="$additional_libdir"
31846 found_a
="$additional_libdir/lib$name.$libext"
31847 if test -f "$additional_libdir/lib$name.la"; then
31848 found_la
="$additional_libdir/lib$name.la"
31853 if test "X$found_dir" = "X"; then
31854 for x
in $LDFLAGS $LTLIBLZMA; do
31856 acl_save_prefix
="$prefix"
31857 prefix
="$acl_final_prefix"
31858 acl_save_exec_prefix
="$exec_prefix"
31859 exec_prefix
="$acl_final_exec_prefix"
31861 exec_prefix
="$acl_save_exec_prefix"
31862 prefix
="$acl_save_prefix"
31866 dir
=`echo "X$x" | sed -e 's/^X-L//'`
31867 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
31869 found_so
="$dir/lib$name.$shlibext"
31870 if test -f "$dir/lib$name.la"; then
31871 found_la
="$dir/lib$name.la"
31873 elif test x
$lib_type != xshared
; then
31874 if test -f "$dir/lib$name.$libext"; then
31876 found_a
="$dir/lib$name.$libext"
31877 if test -f "$dir/lib$name.la"; then
31878 found_la
="$dir/lib$name.la"
31884 if test "X$found_dir" != "X"; then
31889 if test "X$found_dir" != "X"; then
31890 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
31891 if test "X$found_so" != "X"; then
31892 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
31893 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
31896 for x
in $ltrpathdirs; do
31897 if test "X$x" = "X$found_dir"; then
31902 if test -z "$haveit"; then
31903 ltrpathdirs
="$ltrpathdirs $found_dir"
31905 if test "$hardcode_direct" = yes; then
31906 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
31908 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
31909 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
31911 for x
in $rpathdirs; do
31912 if test "X$x" = "X$found_dir"; then
31917 if test -z "$haveit"; then
31918 rpathdirs
="$rpathdirs $found_dir"
31922 for x
in $LDFLAGS $LIBLZMA; do
31924 acl_save_prefix
="$prefix"
31925 prefix
="$acl_final_prefix"
31926 acl_save_exec_prefix
="$exec_prefix"
31927 exec_prefix
="$acl_final_exec_prefix"
31929 exec_prefix
="$acl_save_exec_prefix"
31930 prefix
="$acl_save_prefix"
31932 if test "X$x" = "X-L$found_dir"; then
31937 if test -z "$haveit"; then
31938 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
31940 if test "$hardcode_minus_L" != no
; then
31941 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
31943 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
31949 if test "X$found_a" != "X"; then
31950 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
31952 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
31955 additional_includedir
=
31956 case "$found_dir" in
31958 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
31959 additional_includedir
="$basedir/include"
31962 if test "X$additional_includedir" != "X"; then
31963 if test "X$additional_includedir" != "X/usr/include"; then
31965 if test "X$additional_includedir" = "X/usr/local/include"; then
31966 if test -n "$GCC"; then
31968 linux
*) haveit
=yes;;
31972 if test -z "$haveit"; then
31973 for x
in $CPPFLAGS $INCLZMA; do
31975 acl_save_prefix
="$prefix"
31976 prefix
="$acl_final_prefix"
31977 acl_save_exec_prefix
="$exec_prefix"
31978 exec_prefix
="$acl_final_exec_prefix"
31980 exec_prefix
="$acl_save_exec_prefix"
31981 prefix
="$acl_save_prefix"
31983 if test "X$x" = "X-I$additional_includedir"; then
31988 if test -z "$haveit"; then
31989 if test -d "$additional_includedir"; then
31990 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
31996 if test -n "$found_la"; then
31997 save_libdir
="$libdir"
31998 case "$found_la" in
31999 */* |
*\\*) .
"$found_la" ;;
32000 *) .
"./$found_la" ;;
32002 libdir
="$save_libdir"
32003 for dep
in $dependency_libs; do
32006 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
32007 if test "X$additional_libdir" != "X/usr/lib"; then
32009 if test "X$additional_libdir" = "X/usr/local/lib"; then
32010 if test -n "$GCC"; then
32012 linux
*) haveit
=yes;;
32016 if test -z "$haveit"; then
32018 for x
in $LDFLAGS $LIBLZMA; do
32020 acl_save_prefix
="$prefix"
32021 prefix
="$acl_final_prefix"
32022 acl_save_exec_prefix
="$exec_prefix"
32023 exec_prefix
="$acl_final_exec_prefix"
32025 exec_prefix
="$acl_save_exec_prefix"
32026 prefix
="$acl_save_prefix"
32028 if test "X$x" = "X-L$additional_libdir"; then
32033 if test -z "$haveit"; then
32034 if test -d "$additional_libdir"; then
32035 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
32039 for x
in $LDFLAGS $LTLIBLZMA; do
32041 acl_save_prefix
="$prefix"
32042 prefix
="$acl_final_prefix"
32043 acl_save_exec_prefix
="$exec_prefix"
32044 exec_prefix
="$acl_final_exec_prefix"
32046 exec_prefix
="$acl_save_exec_prefix"
32047 prefix
="$acl_save_prefix"
32049 if test "X$x" = "X-L$additional_libdir"; then
32054 if test -z "$haveit"; then
32055 if test -d "$additional_libdir"; then
32056 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
32063 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
32064 if test "$enable_rpath" != no
; then
32066 for x
in $rpathdirs; do
32067 if test "X$x" = "X$dir"; then
32072 if test -z "$haveit"; then
32073 rpathdirs
="$rpathdirs $dir"
32076 for x
in $ltrpathdirs; do
32077 if test "X$x" = "X$dir"; then
32082 if test -z "$haveit"; then
32083 ltrpathdirs
="$ltrpathdirs $dir"
32088 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
32091 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
32094 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
32095 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
32101 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
32102 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
32103 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
32105 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
32106 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
32113 if test "X$rpathdirs" != "X"; then
32114 if test -n "$hardcode_libdir_separator"; then
32116 for found_dir
in $rpathdirs; do
32117 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
32119 acl_save_libdir
="$libdir"
32121 eval flag
=\"$hardcode_libdir_flag_spec\"
32122 libdir
="$acl_save_libdir"
32123 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
32125 for found_dir
in $rpathdirs; do
32126 acl_save_libdir
="$libdir"
32127 libdir
="$found_dir"
32128 eval flag
=\"$hardcode_libdir_flag_spec\"
32129 libdir
="$acl_save_libdir"
32130 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
32134 if test "X$ltrpathdirs" != "X"; then
32135 for found_dir
in $ltrpathdirs; do
32136 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
32141 ac_save_CPPFLAGS
="$CPPFLAGS"
32143 for element
in $INCLZMA; do
32145 for x
in $CPPFLAGS; do
32147 acl_save_prefix
="$prefix"
32148 prefix
="$acl_final_prefix"
32149 acl_save_exec_prefix
="$exec_prefix"
32150 exec_prefix
="$acl_final_exec_prefix"
32152 exec_prefix
="$acl_save_exec_prefix"
32153 prefix
="$acl_save_prefix"
32155 if test "X$x" = "X$element"; then
32160 if test -z "$haveit"; then
32161 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
32166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
32167 $as_echo_n "checking for liblzma... " >&6; }
32168 if ${ac_cv_liblzma+:} false
; then :
32169 $as_echo_n "(cached) " >&6
32172 ac_save_LIBS
="$LIBS"
32173 LIBS
="$LIBS $LIBLZMA"
32174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32175 /* end confdefs.h. */
32180 lzma_index_iter iter;
32181 lzma_index_iter_init (&iter, 0);
32182 lzma_mf_is_supported (LZMA_MF_HC3);
32187 if ac_fn_c_try_link
"$LINENO"; then :
32192 rm -f core conftest.err conftest.
$ac_objext \
32193 conftest
$ac_exeext conftest.
$ac_ext
32194 LIBS
="$ac_save_LIBS"
32197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
32198 $as_echo "$ac_cv_liblzma" >&6; }
32199 if test "$ac_cv_liblzma" = yes; then
32202 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
32205 $as_echo_n "checking how to link with liblzma... " >&6; }
32206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
32207 $as_echo "$LIBLZMA" >&6; }
32210 CPPFLAGS
="$ac_save_CPPFLAGS"
32220 if test "$HAVE_LIBLZMA" != yes; then
32221 if test "$with_lzma" = yes; then
32222 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
32228 LIBGUI
="../libgui/src/libgui.a"
32229 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
32238 *-*-cygwin* |
*-*-mingw* )
32247 if test "${enable_gdbtk}" = "yes"; then
32249 # Gdbtk must have an absolute path to srcdir in order to run
32250 # properly when not installed.
32253 GDBTK_SRC_DIR
=`pwd`
32258 # Ok, lets find the tcl configuration
32259 # First, look for one uninstalled.
32260 # the alternative search directory is invoked by --with-tcl
32263 if test x
"${no_tcl}" = x
; then
32264 # we reset no_tcl in case something fails here
32267 # Check whether --with-tcl was given.
32268 if test "${with_tcl+set}" = set; then :
32269 withval
=$with_tcl; with_tclconfig
=${withval}
32272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
32273 $as_echo_n "checking for Tcl configuration... " >&6; }
32274 if ${ac_cv_c_tclconfig+:} false
; then :
32275 $as_echo_n "(cached) " >&6
32279 # First check to see if --with-tcl was specified.
32281 *-*-cygwin*) platDir
="win" ;;
32282 *) platDir
="unix" ;;
32284 if test x
"${with_tclconfig}" != x
; then
32285 if test -f "${with_tclconfig}/tclConfig.sh" ; then
32286 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
32288 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
32292 # then check for a private Tcl installation
32293 if test x
"${ac_cv_c_tclconfig}" = x
; then
32296 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32297 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
32298 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
32300 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32301 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
32302 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
32304 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32305 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
32306 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
32307 if test -f "$i/$platDir/tclConfig.sh" ; then
32308 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
32314 # on Darwin, check in Framework installation locations
32315 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
32316 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
32317 `ls -d /Library/Frameworks 2>/dev/null` \
32318 `ls -d /Network/Library/Frameworks 2>/dev/null` \
32319 `ls -d /System/Library/Frameworks 2>/dev/null` \
32321 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
32322 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
32328 # check in a few common install locations
32329 if test x
"${ac_cv_c_tclconfig}" = x
; then
32330 for i
in `ls -d ${libdir} 2>/dev/null` \
32331 `ls -d ${exec_prefix}/lib 2>/dev/null` \
32332 `ls -d ${prefix}/lib 2>/dev/null` \
32333 `ls -d /usr/local/lib 2>/dev/null` \
32334 `ls -d /usr/contrib/lib 2>/dev/null` \
32335 `ls -d /usr/lib 2>/dev/null` \
32337 if test -f "$i/tclConfig.sh" ; then
32338 ac_cv_c_tclconfig
=`(cd $i; pwd)`
32344 # check in a few other private locations
32345 if test x
"${ac_cv_c_tclconfig}" = x
; then
32348 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32349 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
32350 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
32351 if test -f "$i/$platDir/tclConfig.sh" ; then
32352 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
32361 if test x
"${ac_cv_c_tclconfig}" = x
; then
32362 TCL_BIN_DIR
="# no Tcl configs found"
32363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
32364 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
32367 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
32369 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
32374 # If $no_tk is nonempty, then we can't do Tk, and there is no
32375 # point to doing Tcl.
32378 # Ok, lets find the tk configuration
32379 # First, look for one uninstalled.
32380 # the alternative search directory is invoked by --with-tk
32383 if test x
"${no_tk}" = x
; then
32384 # we reset no_tk in case something fails here
32387 # Check whether --with-tk was given.
32388 if test "${with_tk+set}" = set; then :
32389 withval
=$with_tk; with_tkconfig
=${withval}
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
32393 $as_echo_n "checking for Tk configuration... " >&6; }
32394 if ${ac_cv_c_tkconfig+:} false
; then :
32395 $as_echo_n "(cached) " >&6
32399 # First check to see if --with-tkconfig was specified.
32400 if test x
"${with_tkconfig}" != x
; then
32401 if test -f "${with_tkconfig}/tkConfig.sh" ; then
32402 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
32404 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
32408 # then check for a private Tk library
32410 *-*-cygwin*) platDir
="win" ;;
32411 *) platDir
="unix" ;;
32413 if test x
"${ac_cv_c_tkconfig}" = x
; then
32416 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32417 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
32418 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
32420 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32421 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
32422 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
32424 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32425 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
32426 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
32427 if test -f "$i/$platDir/tkConfig.sh" ; then
32428 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
32434 # on Darwin, check in Framework installation locations
32435 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
32436 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
32437 `ls -d /Library/Frameworks 2>/dev/null` \
32438 `ls -d /Network/Library/Frameworks 2>/dev/null` \
32439 `ls -d /System/Library/Frameworks 2>/dev/null` \
32441 if test -f "$i/Tk.framework/tkConfig.sh" ; then
32442 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
32448 # check in a few common install locations
32449 if test x
"${ac_cv_c_tkconfig}" = x
; then
32450 for i
in `ls -d ${libdir} 2>/dev/null` \
32451 `ls -d ${exec_prefix}/lib 2>/dev/null` \
32452 `ls -d ${prefix}/lib 2>/dev/null` \
32453 `ls -d /usr/local/lib 2>/dev/null` \
32454 `ls -d /usr/contrib/lib 2>/dev/null` \
32455 `ls -d /usr/lib 2>/dev/null` \
32457 if test -f "$i/tkConfig.sh" ; then
32458 ac_cv_c_tkconfig
=`(cd $i; pwd)`
32463 # check in a few other private locations
32464 if test x
"${ac_cv_c_tkconfig}" = x
; then
32467 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32468 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
32469 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
32470 if test -f "$i/$platDir/tkConfig.sh" ; then
32471 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
32480 if test x
"${ac_cv_c_tkconfig}" = x
; then
32481 TK_BIN_DIR
="# no Tk configs found"
32482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
32483 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
32486 TK_BIN_DIR
=${ac_cv_c_tkconfig}
32487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
32488 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
32493 if test -z "${no_tcl}" -a -z "${no_tk}"; then
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
32496 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
32498 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
32499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
32500 $as_echo "loading" >&6; }
32501 .
${TCL_BIN_DIR}/tclConfig.sh
32503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
32504 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
32507 # eval is required to do the TCL_DBGX substitution
32508 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
32509 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
32511 # If the TCL_BIN_DIR is the build directory (not the install directory),
32512 # then set the common variable name to the value of the build variables.
32513 # For example, the variable TCL_LIB_SPEC will be set to the value
32514 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
32515 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
32516 # installed and uninstalled version of Tcl.
32517 if test -f "${TCL_BIN_DIR}/Makefile" ; then
32518 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
32519 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
32520 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
32521 elif test "`uname -s`" = "Darwin"; then
32522 # If Tcl was built as a framework, attempt to use the libraries
32523 # from the framework at the given location so that linking works
32524 # against Tcl.framework installed in an arbitrary location.
32525 case ${TCL_DEFS} in
32527 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
32528 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
32529 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
32530 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
32531 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
32536 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
32537 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
32538 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
32544 # eval is required to do the TCL_DBGX substitution
32545 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
32546 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
32547 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
32548 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
32564 # Check for in-tree tcl
32571 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
32575 # Find Tcl private headers
32576 if test x
"${intree}" = xno
; then
32578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
32579 $as_echo_n "checking for Tcl private headers... " >&6; }
32581 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
32582 if test -f ${dir}/tclInt.h
; then
32586 if test x
"${private_dir}" = x
; then
32587 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
32589 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
32590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
32591 $as_echo "${private_dir}" >&6; }
32594 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
32595 TCL_LIBRARY
="${TCL_LIB_SPEC}"
32598 # If building tcl in the same src tree, private headers
32599 # are not needed, but we need to be sure to use the right
32601 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
32602 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
32603 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
32610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
32611 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
32613 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
32614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
32615 $as_echo "loading" >&6; }
32616 .
${TK_BIN_DIR}/tkConfig.sh
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
32619 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
32622 # eval is required to do the TK_DBGX substitution
32623 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
32624 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
32626 # If the TK_BIN_DIR is the build directory (not the install directory),
32627 # then set the common variable name to the value of the build variables.
32628 # For example, the variable TK_LIB_SPEC will be set to the value
32629 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
32630 # instead of TK_BUILD_LIB_SPEC since it will work with both an
32631 # installed and uninstalled version of Tcl.
32632 if test -f "${TK_BIN_DIR}/Makefile" ; then
32633 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
32634 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
32635 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
32636 elif test "`uname -s`" = "Darwin"; then
32637 # If Tk was built as a framework, attempt to use the libraries
32638 # from the framework at the given location so that linking works
32639 # against Tk.framework installed in an arbitrary location.
32642 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
32643 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
32644 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
32645 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
32646 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
32651 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
32652 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
32653 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
32659 # eval is required to do the TK_DBGX substitution
32660 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
32661 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
32662 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
32663 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
32678 # Check for in-tree Tk
32680 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
32684 # Find Tk private headers
32685 if test x
"${intree}" = xno
; then
32687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
32688 $as_echo_n "checking for Tk private headers... " >&6; }
32690 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
32691 if test -f ${dir}/tkInt.h
; then
32695 if test x
"${private_dir}" = x
; then
32696 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
32698 TK_PRIVATE_INCLUDE
="-I${private_dir}"
32699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
32700 $as_echo "${private_dir}" >&6; }
32703 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
32704 TK_LIBRARY
=${TK_LIB_SPEC}
32707 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
32708 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
32709 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
32716 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
32718 # Include some libraries that Tcl and Tk want.
32719 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
32720 # Yes, the ordering seems wrong here. But it isn't.
32721 # TK_LIBS is the list of libraries that need to be linked
32722 # after Tcl/Tk. Note that this isn't put into LIBS. If it
32723 # were in LIBS then any link tests after this point would
32724 # try to include things like `$(LIBGUI)', which wouldn't work.
32725 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
32727 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
32728 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
32729 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
32730 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
32731 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
32732 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
32733 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
32735 if test x
"$gdb_cv_os_cygwin" = xyes
; then
32736 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
32737 WIN32LDAPP
="-Wl,--subsystem,console"
32738 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
32741 subdirs
="$subdirs gdbtk"
32753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
32754 $as_echo_n "checking for X... " >&6; }
32757 # Check whether --with-x was given.
32758 if test "${with_x+set}" = set; then :
32762 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32763 if test "x$with_x" = xno
; then
32764 # The user explicitly disabled X.
32767 case $x_includes,$x_libraries in #(
32768 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
32769 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
32770 $as_echo_n "(cached) " >&6
32772 # One or both of the vars are not set, and there is no cached value.
32773 ac_x_includes
=no ac_x_libraries
=no
32774 rm -f -r conftest.dir
32775 if mkdir conftest.dir
; then
32777 cat >Imakefile
<<'_ACEOF'
32779 @echo incroot='${INCROOT}'
32781 @echo usrlibdir='${USRLIBDIR}'
32783 @echo libdir='${LIBDIR}'
32785 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
32786 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
32787 for ac_var
in incroot usrlibdir libdir
; do
32788 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32790 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32791 for ac_extension
in a so sl dylib la dll
; do
32792 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32793 test -f "$ac_im_libdir/libX11.$ac_extension"; then
32794 ac_im_usrlibdir
=$ac_im_libdir; break
32797 # Screen out bogus values from the imake configuration. They are
32798 # bogus both because they are the default anyway, and because
32799 # using them would break gcc on systems where it needs fixed includes.
32800 case $ac_im_incroot in
32801 /usr
/include
) ac_x_includes
= ;;
32802 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
32804 case $ac_im_usrlibdir in
32805 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
32806 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
32810 rm -f -r conftest.dir
32813 # Standard set of common directories for X headers.
32814 # Check X11 before X11Rn because it is often a symlink to the current release.
32828 /usr/local/X11/include
32829 /usr/local/X11R7/include
32830 /usr/local/X11R6/include
32831 /usr/local/X11R5/include
32832 /usr/local/X11R4/include
32834 /usr/local/include/X11
32835 /usr/local/include/X11R7
32836 /usr/local/include/X11R6
32837 /usr/local/include/X11R5
32838 /usr/local/include/X11R4
32842 /usr/XFree86/include/X11
32846 /usr/unsupported/include
32847 /usr/athena/include
32848 /usr/local/x11r5/include
32849 /usr/lpp/Xamples/include
32851 /usr/openwin/include
32852 /usr/openwin/share/include'
32854 if test "$ac_x_includes" = no
; then
32855 # Guess where to find include files, by looking for Xlib.h.
32856 # First, try using that file with no special directory specified.
32857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32858 /* end confdefs.h. */
32859 #include <X11/Xlib.h>
32861 if ac_fn_c_try_cpp
"$LINENO"; then :
32862 # We can compile using X headers with no special include directory.
32865 for ac_dir
in $ac_x_header_dirs; do
32866 if test -r "$ac_dir/X11/Xlib.h"; then
32867 ac_x_includes
=$ac_dir
32872 rm -f conftest.err conftest.i conftest.
$ac_ext
32873 fi # $ac_x_includes = no
32875 if test "$ac_x_libraries" = no
; then
32876 # Check for the libraries.
32877 # See if we find them without any special options.
32878 # Don't add to $LIBS permanently.
32881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32882 /* end confdefs.h. */
32883 #include <X11/Xlib.h>
32892 if ac_fn_c_try_link
"$LINENO"; then :
32894 # We can link X programs with no special library path.
32898 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32900 # Don't even attempt the hair of trying to link an X program!
32901 for ac_extension
in a so sl dylib la dll
; do
32902 if test -r "$ac_dir/libX11.$ac_extension"; then
32903 ac_x_libraries
=$ac_dir
32909 rm -f core conftest.err conftest.
$ac_objext \
32910 conftest
$ac_exeext conftest.
$ac_ext
32911 fi # $ac_x_libraries = no
32913 case $ac_x_includes,$ac_x_libraries in #(
32914 no
,* |
*,no |
*\'*)
32915 # Didn't find X, or a directory has "'" in its name.
32916 ac_cv_have_x
="have_x=no";; #(
32918 # Record where we found X for the cache.
32919 ac_cv_have_x
="have_x=yes\
32920 ac_x_includes='$ac_x_includes'\
32921 ac_x_libraries='$ac_x_libraries'"
32927 eval "$ac_cv_have_x"
32930 if test "$have_x" != yes; then
32931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
32932 $as_echo "$have_x" >&6; }
32935 # If each of the values was on the command line, it overrides each guess.
32936 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
32937 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
32938 # Update the cache value to reflect the command line values.
32939 ac_cv_have_x
="have_x=yes\
32940 ac_x_includes='$x_includes'\
32941 ac_x_libraries='$x_libraries'"
32942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
32943 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
32947 # Unlike the sim directory, whether a simulator is linked is controlled by
32948 # presence of a gdb_sim definition in the target configure.tgt entry.
32949 # This code just checks for a few cases where we'd like to ignore those
32950 # definitions, even when they're present in the '.mt' file. These cases
32951 # are when --disable-sim is specified, or if the simulator directory is
32952 # not part of the source tree.
32954 # Check whether --enable-sim was given.
32955 if test "${enable_sim+set}" = set; then :
32956 enableval
=$enable_sim; { $as_echo "$as_me:${as_lineno-$LINENO}: enable_sim = $enable_sim" >&5
32957 $as_echo "$as_me: enable_sim = $enable_sim" >&6;};
32958 { $as_echo "$as_me:${as_lineno-$LINENO}: enableval = ${enableval}" >&5
32959 $as_echo "$as_me: enableval = ${enableval}" >&6;};
32960 case "${enableval}" in
32961 yes) ignore_sim
=false
;;
32962 no
) ignore_sim
=true
;;
32963 *) ignore_sim
=false
;;
32970 if test ! -d "${srcdir}/../sim"; then
32976 if test "${ignore_sim}" = "false"; then
32977 if test x
"${gdb_sim}" != x
; then
32979 SIM_OBS
="remote-sim.o"
32981 # Some tdep code should only be compiled in when the ppc sim is
32982 # built. PR sim/13418.
32986 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
33006 # List of host floatformats.
33008 cat >>confdefs.h
<<_ACEOF
33009 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
33013 cat >>confdefs.h
<<_ACEOF
33014 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
33018 cat >>confdefs.h
<<_ACEOF
33019 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
33023 # target_subdir is used by the testsuite to find the target libraries.
33025 if test "${host}" != "${target}"; then
33026 target_subdir
="${target_alias}/"
33030 # Import nat definitions.
33031 nat_makefile_frag
=/dev
/null
33032 if test "${gdb_native}" = "yes"; then
33033 .
${srcdir}/configure.nat
33034 nativefile
=$NAT_FILE
33047 if test x
"${gdb_osabi}" != x
; then
33049 cat >>confdefs.h
<<_ACEOF
33050 #define GDB_OSABI_DEFAULT $gdb_osabi
33055 # Setup possible use of libbacktrace.
33056 # Check whether --enable-libbacktrace was given.
33057 if test "${enable_libbacktrace+set}" = set; then :
33058 enableval
=$enable_libbacktrace;
33063 as_fn_error $?
"bad value $enableval for --enable-libbacktrace" "$LINENO" 5
33068 enable_libbacktrace
=yes
33072 if test "${enable_libbacktrace}" = "yes"; then
33073 LIBBACKTRACE_INC
="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
33074 LIBBACKTRACE_LIB
=..
/libbacktrace
/libbacktrace.la
33076 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
33086 # Check for babeltrace and babeltrace-ctf
33088 # Check whether --with-babeltrace was given.
33089 if test "${with_babeltrace+set}" = set; then :
33090 withval
=$with_babeltrace;
33092 with_babeltrace
=auto
33095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
33096 $as_echo_n "checking whether to use babeltrace... " >&6; }
33097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
33098 $as_echo "$with_babeltrace" >&6; }
33100 if test "x$with_babeltrace" = "xno"; then
33101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace support disabled; GDB is unable to read CTF data." >&5
33102 $as_echo "$as_me: WARNING: babeltrace support disabled; GDB is unable to read CTF data." >&2;}
33104 # Append -Werror to CFLAGS so that configure can catch the warning
33105 # "assignment from incompatible pointer type", which is related to
33106 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
33107 # in GDB, while babeltrace 1.0.3 is broken.
33108 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
33109 # safe to save and restore CFLAGS here.
33110 saved_CFLAGS
=$CFLAGS
33111 CFLAGS
="$CFLAGS -Werror"
33122 acl_save_prefix
="$prefix"
33123 prefix
="$acl_final_prefix"
33124 acl_save_exec_prefix
="$exec_prefix"
33125 exec_prefix
="$acl_final_exec_prefix"
33127 eval additional_includedir
=\"$includedir\"
33128 eval additional_libdir
=\"$libdir\"
33130 exec_prefix
="$acl_save_exec_prefix"
33131 prefix
="$acl_save_prefix"
33134 # Check whether --with-libbabeltrace-prefix was given.
33135 if test "${with_libbabeltrace_prefix+set}" = set; then :
33136 withval
=$with_libbabeltrace_prefix;
33137 if test "X$withval" = "Xno"; then
33140 if test "X$withval" = "X"; then
33142 acl_save_prefix
="$prefix"
33143 prefix
="$acl_final_prefix"
33144 acl_save_exec_prefix
="$exec_prefix"
33145 exec_prefix
="$acl_final_exec_prefix"
33147 eval additional_includedir
=\"$includedir\"
33148 eval additional_libdir
=\"$libdir\"
33150 exec_prefix
="$acl_save_exec_prefix"
33151 prefix
="$acl_save_prefix"
33154 additional_includedir
="$withval/include"
33155 additional_libdir
="$withval/lib"
33162 # Check whether --with-libbabeltrace-type was given.
33163 if test "${with_libbabeltrace_type+set}" = set; then :
33164 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
33166 with_libbabeltrace_type
=auto
33169 lib_type
=`eval echo \$with_libbabeltrace_type`
33176 names_already_handled
=
33177 names_next_round
='babeltrace babeltrace-ctf'
33178 while test -n "$names_next_round"; do
33179 names_this_round
="$names_next_round"
33181 for name
in $names_this_round; do
33183 for n
in $names_already_handled; do
33184 if test "$n" = "$name"; then
33185 already_handled
=yes
33189 if test -z "$already_handled"; then
33190 names_already_handled
="$names_already_handled $name"
33191 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
33192 eval value
=\"\
$HAVE_LIB$uppername\"
33193 if test -n "$value"; then
33194 if test "$value" = yes; then
33195 eval value
=\"\
$LIB$uppername\"
33196 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
33197 eval value
=\"\
$LTLIB$uppername\"
33198 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
33207 if test $use_additional = yes; then
33208 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
33209 found_dir
="$additional_libdir"
33210 found_so
="$additional_libdir/lib$name.$shlibext"
33211 if test -f "$additional_libdir/lib$name.la"; then
33212 found_la
="$additional_libdir/lib$name.la"
33214 elif test x
$lib_type != xshared
; then
33215 if test -f "$additional_libdir/lib$name.$libext"; then
33216 found_dir
="$additional_libdir"
33217 found_a
="$additional_libdir/lib$name.$libext"
33218 if test -f "$additional_libdir/lib$name.la"; then
33219 found_la
="$additional_libdir/lib$name.la"
33224 if test "X$found_dir" = "X"; then
33225 for x
in $LDFLAGS $LTLIBBABELTRACE; do
33227 acl_save_prefix
="$prefix"
33228 prefix
="$acl_final_prefix"
33229 acl_save_exec_prefix
="$exec_prefix"
33230 exec_prefix
="$acl_final_exec_prefix"
33232 exec_prefix
="$acl_save_exec_prefix"
33233 prefix
="$acl_save_prefix"
33237 dir
=`echo "X$x" | sed -e 's/^X-L//'`
33238 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
33240 found_so
="$dir/lib$name.$shlibext"
33241 if test -f "$dir/lib$name.la"; then
33242 found_la
="$dir/lib$name.la"
33244 elif test x
$lib_type != xshared
; then
33245 if test -f "$dir/lib$name.$libext"; then
33247 found_a
="$dir/lib$name.$libext"
33248 if test -f "$dir/lib$name.la"; then
33249 found_la
="$dir/lib$name.la"
33255 if test "X$found_dir" != "X"; then
33260 if test "X$found_dir" != "X"; then
33261 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
33262 if test "X$found_so" != "X"; then
33263 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
33264 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33267 for x
in $ltrpathdirs; do
33268 if test "X$x" = "X$found_dir"; then
33273 if test -z "$haveit"; then
33274 ltrpathdirs
="$ltrpathdirs $found_dir"
33276 if test "$hardcode_direct" = yes; then
33277 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33279 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
33280 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33282 for x
in $rpathdirs; do
33283 if test "X$x" = "X$found_dir"; then
33288 if test -z "$haveit"; then
33289 rpathdirs
="$rpathdirs $found_dir"
33293 for x
in $LDFLAGS $LIBBABELTRACE; do
33295 acl_save_prefix
="$prefix"
33296 prefix
="$acl_final_prefix"
33297 acl_save_exec_prefix
="$exec_prefix"
33298 exec_prefix
="$acl_final_exec_prefix"
33300 exec_prefix
="$acl_save_exec_prefix"
33301 prefix
="$acl_save_prefix"
33303 if test "X$x" = "X-L$found_dir"; then
33308 if test -z "$haveit"; then
33309 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
33311 if test "$hardcode_minus_L" != no
; then
33312 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33314 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
33320 if test "X$found_a" != "X"; then
33321 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
33323 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
33326 additional_includedir
=
33327 case "$found_dir" in
33329 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
33330 additional_includedir
="$basedir/include"
33333 if test "X$additional_includedir" != "X"; then
33334 if test "X$additional_includedir" != "X/usr/include"; then
33336 if test "X$additional_includedir" = "X/usr/local/include"; then
33337 if test -n "$GCC"; then
33339 linux
*) haveit
=yes;;
33343 if test -z "$haveit"; then
33344 for x
in $CPPFLAGS $INCBABELTRACE; do
33346 acl_save_prefix
="$prefix"
33347 prefix
="$acl_final_prefix"
33348 acl_save_exec_prefix
="$exec_prefix"
33349 exec_prefix
="$acl_final_exec_prefix"
33351 exec_prefix
="$acl_save_exec_prefix"
33352 prefix
="$acl_save_prefix"
33354 if test "X$x" = "X-I$additional_includedir"; then
33359 if test -z "$haveit"; then
33360 if test -d "$additional_includedir"; then
33361 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
33367 if test -n "$found_la"; then
33368 save_libdir
="$libdir"
33369 case "$found_la" in
33370 */* |
*\\*) .
"$found_la" ;;
33371 *) .
"./$found_la" ;;
33373 libdir
="$save_libdir"
33374 for dep
in $dependency_libs; do
33377 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
33378 if test "X$additional_libdir" != "X/usr/lib"; then
33380 if test "X$additional_libdir" = "X/usr/local/lib"; then
33381 if test -n "$GCC"; then
33383 linux
*) haveit
=yes;;
33387 if test -z "$haveit"; then
33389 for x
in $LDFLAGS $LIBBABELTRACE; do
33391 acl_save_prefix
="$prefix"
33392 prefix
="$acl_final_prefix"
33393 acl_save_exec_prefix
="$exec_prefix"
33394 exec_prefix
="$acl_final_exec_prefix"
33396 exec_prefix
="$acl_save_exec_prefix"
33397 prefix
="$acl_save_prefix"
33399 if test "X$x" = "X-L$additional_libdir"; then
33404 if test -z "$haveit"; then
33405 if test -d "$additional_libdir"; then
33406 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
33410 for x
in $LDFLAGS $LTLIBBABELTRACE; do
33412 acl_save_prefix
="$prefix"
33413 prefix
="$acl_final_prefix"
33414 acl_save_exec_prefix
="$exec_prefix"
33415 exec_prefix
="$acl_final_exec_prefix"
33417 exec_prefix
="$acl_save_exec_prefix"
33418 prefix
="$acl_save_prefix"
33420 if test "X$x" = "X-L$additional_libdir"; then
33425 if test -z "$haveit"; then
33426 if test -d "$additional_libdir"; then
33427 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
33434 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
33435 if test "$enable_rpath" != no
; then
33437 for x
in $rpathdirs; do
33438 if test "X$x" = "X$dir"; then
33443 if test -z "$haveit"; then
33444 rpathdirs
="$rpathdirs $dir"
33447 for x
in $ltrpathdirs; do
33448 if test "X$x" = "X$dir"; then
33453 if test -z "$haveit"; then
33454 ltrpathdirs
="$ltrpathdirs $dir"
33459 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
33462 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
33465 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
33466 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
33472 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
33473 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
33474 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
33476 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
33477 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
33484 if test "X$rpathdirs" != "X"; then
33485 if test -n "$hardcode_libdir_separator"; then
33487 for found_dir
in $rpathdirs; do
33488 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
33490 acl_save_libdir
="$libdir"
33492 eval flag
=\"$hardcode_libdir_flag_spec\"
33493 libdir
="$acl_save_libdir"
33494 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
33496 for found_dir
in $rpathdirs; do
33497 acl_save_libdir
="$libdir"
33498 libdir
="$found_dir"
33499 eval flag
=\"$hardcode_libdir_flag_spec\"
33500 libdir
="$acl_save_libdir"
33501 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
33505 if test "X$ltrpathdirs" != "X"; then
33506 for found_dir
in $ltrpathdirs; do
33507 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
33512 ac_save_CPPFLAGS
="$CPPFLAGS"
33514 for element
in $INCBABELTRACE; do
33516 for x
in $CPPFLAGS; do
33518 acl_save_prefix
="$prefix"
33519 prefix
="$acl_final_prefix"
33520 acl_save_exec_prefix
="$exec_prefix"
33521 exec_prefix
="$acl_final_exec_prefix"
33523 exec_prefix
="$acl_save_exec_prefix"
33524 prefix
="$acl_save_prefix"
33526 if test "X$x" = "X$element"; then
33531 if test -z "$haveit"; then
33532 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
33537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
33538 $as_echo_n "checking for libbabeltrace... " >&6; }
33539 if ${ac_cv_libbabeltrace+:} false
; then :
33540 $as_echo_n "(cached) " >&6
33543 ac_save_LIBS
="$LIBS"
33544 LIBS
="$LIBS $LIBBABELTRACE"
33545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33546 /* end confdefs.h. */
33547 #include <babeltrace/babeltrace.h>
33548 #include <babeltrace/ctf/events.h>
33549 #include <babeltrace/ctf/iterator.h>
33553 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
33554 struct bt_ctf_event *event = NULL;
33555 const struct bt_definition *scope;
33557 pos->type = BT_SEEK_BEGIN;
33558 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
33559 scope = bt_ctf_get_top_level_scope (event,
33560 BT_STREAM_EVENT_HEADER);
33561 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
33567 if ac_fn_c_try_link
"$LINENO"; then :
33568 ac_cv_libbabeltrace
=yes
33570 ac_cv_libbabeltrace
=no
33572 rm -f core conftest.err conftest.
$ac_objext \
33573 conftest
$ac_exeext conftest.
$ac_ext
33574 LIBS
="$ac_save_LIBS"
33577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
33578 $as_echo "$ac_cv_libbabeltrace" >&6; }
33579 if test "$ac_cv_libbabeltrace" = yes; then
33580 HAVE_LIBBABELTRACE
=yes
33582 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
33584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
33585 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
33586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
33587 $as_echo "$LIBBABELTRACE" >&6; }
33589 HAVE_LIBBABELTRACE
=no
33590 CPPFLAGS
="$ac_save_CPPFLAGS"
33600 CFLAGS
=$saved_CFLAGS
33602 if test "$HAVE_LIBBABELTRACE" != yes; then
33603 if test "$with_babeltrace" = yes; then
33604 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
33607 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
33612 # Check whether --enable-libctf was given.
33613 if test "${enable_libctf+set}" = set; then :
33614 enableval
=$enable_libctf;
33615 case "$enableval" in
33617 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
33625 if test "${enable_libctf}" = yes; then
33627 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
33629 LIBCTF
="../libctf/libctf.la"
33630 CTF_DEPS
="../libctf/libctf.la"
33638 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
33643 if test "${nativefile}" != ""; then
33644 case "${nativefile}" in
33645 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
33646 * ) GDB_NM_FILE
="${nativefile}"
33648 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
33651 cat >>confdefs.h
<<_ACEOF
33652 #define GDB_NM_FILE "${GDB_NM_FILE}"
33660 for ac_prog
in xsltproc
33662 # Extract the first word of "$ac_prog", so it can be a program name with args.
33663 set dummy
$ac_prog; ac_word
=$2
33664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33665 $as_echo_n "checking for $ac_word... " >&6; }
33666 if ${ac_cv_path_XSLTPROC+:} false
; then :
33667 $as_echo_n "(cached) " >&6
33671 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
33674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33675 for as_dir
in $PATH
33678 test -z "$as_dir" && as_dir
=.
33679 for ac_exec_ext
in '' $ac_executable_extensions; do
33680 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
33681 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
33682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33692 XSLTPROC
=$ac_cv_path_XSLTPROC
33693 if test -n "$XSLTPROC"; then
33694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
33695 $as_echo "$XSLTPROC" >&6; }
33697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33698 $as_echo "no" >&6; }
33702 test -n "$XSLTPROC" && break
33704 test -n "$XSLTPROC" || XSLTPROC
="missing"
33706 if test "x$USE_MAINTAINER_MODE" = xyes
; then
33707 if test "${XSLTPROC}" = missing
; then
33708 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
33716 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
33720 # Check whether we will enable the inclusion of unit tests when
33723 # The default value of this option changes depending whether we're on
33724 # development mode (in which case it's "true") or not (in which case
33725 # it's "false"). The $development variable is set by the GDB_AC_COMMON
33726 # macro, which must therefore be used before GDB_AC_SELFTEST.
33728 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
33729 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
33732 # Check whether --enable-unit-tests was given.
33733 if test "${enable_unit_tests+set}" = set; then :
33734 enableval
=$enable_unit_tests; case "${enableval}" in
33735 yes) enable_unittests
=true
;;
33736 no
) enable_unittests
=false
;;
33737 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
33740 enable_unittests
=$development
33744 if $enable_unittests; then
33746 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
33749 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
33750 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
33756 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
33757 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
33758 if test "x$GDB_TRANSFORM_NAME" = x
; then
33759 GDB_TRANSFORM_NAME
=gdb
33764 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
33765 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
33766 if test "x$GCORE_TRANSFORM_NAME" = x
; then
33767 GCORE_TRANSFORM_NAME
=gcore
33771 ac_config_files
="$ac_config_files gcore"
33773 ac_config_files
="$ac_config_files gstack.in:gstack-1.in"
33775 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
33778 cat >confcache
<<\_ACEOF
33779 # This file is a shell script that caches the results of configure
33780 # tests run on this system so they can be shared between configure
33781 # scripts and configure runs, see configure's option --config-cache.
33782 # It is not useful on other systems. If it contains results you don't
33783 # want to keep, you may remove or edit it.
33785 # config.status only pays attention to the cache file if you give it
33786 # the --recheck option to rerun configure.
33788 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33790 # following values.
33794 # The following way of writing the cache mishandles newlines in values,
33795 # but we know of no workaround that is simple, portable, and efficient.
33796 # So, we kill variables containing newlines.
33797 # Ultrix sh set writes to stderr and can't be redirected directly,
33798 # and sets the high bit in the cache file unless we assign to the vars.
33800 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33801 eval ac_val
=\$
$ac_var
33805 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33806 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33809 _ | IFS | as_nl
) ;; #(
33810 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
33811 *) { eval $ac_var=; unset $ac_var;} ;;
33817 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33818 *${as_nl}ac_space
=\
*)
33819 # `set' does not quote correctly, so add quotes: double-quote
33820 # substitution turns \\\\ into \\, and sed turns \\ into \.
33823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33826 # `set' quotes correctly as required by POSIX, so do not add quotes.
33827 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33836 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33838 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33840 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
33841 if test -w "$cache_file"; then
33842 if test "x$cache_file" != "x/dev/null"; then
33843 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33844 $as_echo "$as_me: updating cache $cache_file" >&6;}
33845 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
33846 cat confcache
>"$cache_file"
33848 case $cache_file in #(
33850 mv -f confcache
"$cache_file"$$
&&
33851 mv -f "$cache_file"$$
"$cache_file" ;; #(
33853 mv -f confcache
"$cache_file" ;;
33858 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33859 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33864 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
33865 # Let make expand exec_prefix.
33866 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
33868 DEFS
=-DHAVE_CONFIG_H
33873 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
33874 # 1. Remove the extension, and $U if already installed.
33875 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
33876 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
33877 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33878 # will be set to the directory where LIBOBJS objects are built.
33879 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33880 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
33882 LIBOBJS
=$ac_libobjs
33884 LTLIBOBJS
=$ac_ltlibobjs
33887 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33888 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
33889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33891 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
33892 as_fn_error $?
"conditional \"ENABLE_BFD_64_BIT\" was never defined.
33893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33895 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
33896 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
33897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33899 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
33900 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
33901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33905 : "${CONFIG_STATUS=./config.status}"
33907 ac_clean_files_save
=$ac_clean_files
33908 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
33909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33910 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33912 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33914 # Generated by $as_me.
33915 # Run this file to recreate the current configuration.
33916 # Compiler output produced by configure, useful for debugging
33917 # configure, is in config.log if it exists.
33920 ac_cs_recheck=false
33923 SHELL=\${CONFIG_SHELL-$SHELL}
33926 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
33927 ## -------------------- ##
33928 ## M4sh Initialization. ##
33929 ## -------------------- ##
33931 # Be more Bourne compatible
33932 DUALCASE
=1; export DUALCASE
# for MKS sh
33933 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
33936 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33937 # is contrary to our usage. Disable this feature.
33938 alias -g '${1+"$@"}'='"$@"'
33939 setopt NO_GLOB_SUBST
33941 case `(set -o) 2>/dev/null` in #(
33953 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33954 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33955 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33956 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33957 # Prefer a ksh shell builtin over an external printf program on Solaris,
33958 # but without wasting forks for bash or zsh.
33959 if test -z "$BASH_VERSION$ZSH_VERSION" \
33960 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33961 as_echo='print
-r --'
33962 as_echo_n='print
-rn --'
33963 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33964 as_echo='printf %s
\n'
33965 as_echo_n='printf %s
'
33967 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33968 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
33969 as_echo_n='/usr
/ucb
/echo -n'
33971 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33972 as_echo_n_body='eval
33976 expr "X$arg" : "X\\(.*\\)$as_nl";
33977 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33979 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
33981 export as_echo_n_body
33982 as_echo_n='sh
-c $as_echo_n_body as_echo
'
33984 export as_echo_body
33985 as_echo='sh
-c $as_echo_body as_echo
'
33988 # The user is always right.
33989 if test "${PATH_SEPARATOR+set}" != set; then
33991 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33992 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33999 # We need space, tab and new line, in precisely that order. Quoting is
34000 # there to prevent editors from complaining about space-tab.
34001 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34002 # splitting by setting IFS to empty value.)
34005 # Find who we are. Look in the path if we contain no directory separator.
34008 *[\\/]* ) as_myself=$0 ;;
34009 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34010 for as_dir in $PATH
34013 test -z "$as_dir" && as_dir=.
34014 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34020 # We did not find ourselves, most probably we were run as `sh COMMAND'
34021 # in which case we are not to be found in the path.
34022 if test "x$as_myself" = x
; then
34025 if test ! -f "$as_myself"; then
34026 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34030 # Unset variables that we do not need and which cause bugs (e.g. in
34031 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
34032 # suppresses any "Segmentation fault" message there. '((' could
34033 # trigger a bug in pdksh 5.2.14.
34034 for as_var
in BASH_ENV ENV MAIL MAILPATH
34035 do eval test x\
${$as_var+set} = xset \
34036 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
34049 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
34052 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34053 # ----------------------------------------
34054 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34055 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34056 # script with STATUS, using 1 if that was 0.
34059 as_status
=$1; test $as_status -eq 0 && as_status
=1
34061 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
34062 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34064 $as_echo "$as_me: error: $2" >&2
34065 as_fn_exit
$as_status
34069 # as_fn_set_status STATUS
34070 # -----------------------
34071 # Set $? to STATUS, without forking.
34072 as_fn_set_status
()
34075 } # as_fn_set_status
34077 # as_fn_exit STATUS
34078 # -----------------
34079 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34083 as_fn_set_status
$1
34089 # Portably unset VAR.
34092 { eval $1=; unset $1;}
34094 as_unset
=as_fn_unset
34095 # as_fn_append VAR VALUE
34096 # ----------------------
34097 # Append the text in VALUE to the end of the definition contained in VAR. Take
34098 # advantage of any shell optimizations that allow amortized linear growth over
34099 # repeated appends, instead of the typical quadratic growth present in naive
34101 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
34102 eval 'as_fn_append ()
34113 # as_fn_arith ARG...
34114 # ------------------
34115 # Perform arithmetic evaluation on the ARGs, and store the result in the
34116 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34117 # must be portable across $(()) and expr.
34118 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
34119 eval 'as_fn_arith ()
34126 as_val
=`expr "$@" || test $? -eq 1`
34131 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34132 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34138 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34139 as_basename
=basename
34144 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
34150 as_me
=`$as_basename -- "$0" ||
34151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34152 X"$0" : 'X\(//\)$' \| \
34153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34155 sed '/^.*\/\([^/][^/]*\)\/*$/{
34169 # Avoid depending upon Character Ranges.
34170 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
34171 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34172 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
34173 as_cr_digits
='0123456789'
34174 as_cr_alnum
=$as_cr_Letters$as_cr_digits
34176 ECHO_C
= ECHO_N
= ECHO_T
=
34177 case `echo -n x` in #(((((
34179 case `echo 'xy\c'` in
34180 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
34182 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
34189 rm -f conf$$ conf$$.exe conf$$.
file
34190 if test -d conf$$.dir
; then
34191 rm -f conf$$.dir
/conf$$.
file
34194 mkdir conf$$.dir
2>/dev
/null
34196 if (echo >conf$$.
file) 2>/dev
/null
; then
34197 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
34199 # ... but there are two gotchas:
34200 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34201 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34202 # In both cases, we have to default to `cp -pR'.
34203 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
34205 elif ln conf$$.
file conf$$
2>/dev
/null
; then
34213 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
34214 rmdir conf$$.dir
2>/dev
/null
34219 # Create "$as_dir" as a directory, including parents if necessary.
34224 -*) as_dir
=.
/$as_dir;;
34226 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
34230 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34231 *) as_qdir
=$as_dir;;
34233 as_dirs
="'$as_qdir' $as_dirs"
34234 as_dir
=`$as_dirname -- "$as_dir" ||
34235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34236 X"$as_dir" : 'X\(//\)[^/]' \| \
34237 X"$as_dir" : 'X\(//\)$' \| \
34238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34239 $as_echo X"$as_dir" |
34240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34244 /^X\(\/\/\)[^/].*/{
34257 test -d "$as_dir" && break
34259 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
34260 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
34264 if mkdir
-p .
2>/dev
/null
; then
34265 as_mkdir_p
='mkdir -p "$as_dir"'
34267 test -d .
/-p && rmdir .
/-p
34272 # as_fn_executable_p FILE
34273 # -----------------------
34274 # Test if FILE is an executable regular file.
34275 as_fn_executable_p
()
34277 test -f "$1" && test -x "$1"
34278 } # as_fn_executable_p
34279 as_test_x
='test -x'
34280 as_executable_p
=as_fn_executable_p
34282 # Sed expression to map a string onto a valid CPP name.
34283 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34285 # Sed expression to map a string onto a valid variable name.
34286 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34290 ## ----------------------------------- ##
34291 ## Main body of $CONFIG_STATUS script. ##
34292 ## ----------------------------------- ##
34294 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
34296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34297 # Save the log message, to keep $0 and so on meaningful, and to
34298 # report actual input values of CONFIG_FILES etc. instead of their
34299 # values after options handling.
34301 This file was extended by $as_me, which was
34302 generated by GNU Autoconf 2.69. Invocation command line was
34304 CONFIG_FILES = $CONFIG_FILES
34305 CONFIG_HEADERS = $CONFIG_HEADERS
34306 CONFIG_LINKS = $CONFIG_LINKS
34307 CONFIG_COMMANDS = $CONFIG_COMMANDS
34310 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34315 case $ac_config_files in *"
34316 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
34319 case $ac_config_headers in *"
34320 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
34324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34325 # Files that config.status was made for.
34326 config_files="$ac_config_files"
34327 config_headers="$ac_config_headers"
34328 config_links="$ac_config_links"
34329 config_commands="$ac_config_commands"
34333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34335 \`$as_me' instantiates files and other configuration actions
34336 from templates according to the current configuration. Unless the files
34337 and actions are specified as TAGs, all are instantiated by default.
34339 Usage: $0 [OPTION]... [TAG]...
34341 -h, --help print this help, then exit
34342 -V, --version print version number and configuration settings, then exit
34343 --config print configuration, then exit
34344 -q, --quiet, --silent
34345 do not print progress messages
34346 -d, --debug don't remove temporary files
34347 --recheck update $as_me by reconfiguring in the same conditions
34348 --file=FILE[:TEMPLATE]
34349 instantiate the configuration file FILE
34350 --header=FILE[:TEMPLATE]
34351 instantiate the configuration header FILE
34353 Configuration files:
34356 Configuration headers:
34359 Configuration links:
34362 Configuration commands:
34365 Report bugs to the package provider."
34368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34369 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34372 configured by $0, generated by GNU Autoconf 2.69,
34373 with options \\"\$ac_cs_config\\"
34375 Copyright (C) 2012 Free Software Foundation, Inc.
34376 This config.status script is free software; the Free Software Foundation
34377 gives unlimited permission to copy, distribute and modify it."
34383 test -n "\$AWK" || AWK=awk
34386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34387 # The default lists apply if the user does not specify any file.
34393 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34394 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
34398 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34410 # Handling of the options.
34411 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
34413 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
34414 $as_echo "$ac_cs_version"; exit ;;
34415 --config |
--confi |
--conf |
--con |
--co |
--c )
34416 $as_echo "$ac_cs_config"; exit ;;
34417 --debug |
--debu |
--deb |
--de |
--d |
-d )
34419 --file |
--fil |
--fi |
--f )
34422 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34423 '') as_fn_error $?
"missing file argument" ;;
34425 as_fn_append CONFIG_FILES
" '$ac_optarg'"
34426 ac_need_defaults
=false
;;
34427 --header |
--heade |
--head |
--hea )
34430 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34432 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
34433 ac_need_defaults
=false
;;
34435 # Conflict between --help and --header
34436 as_fn_error $?
"ambiguous option: \`$1'
34437 Try \`$0 --help' for more information.";;
34438 --help |
--hel |
-h )
34439 $as_echo "$ac_cs_usage"; exit ;;
34440 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
34441 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
34444 # This is an error.
34445 -*) as_fn_error $?
"unrecognized option: \`$1'
34446 Try \`$0 --help' for more information." ;;
34448 *) as_fn_append ac_config_targets
" $1"
34449 ac_need_defaults
=false
;;
34455 ac_configure_extra_args
=
34457 if $ac_cs_silent; then
34459 ac_configure_extra_args
="$ac_configure_extra_args --silent"
34463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34464 if \$ac_cs_recheck; then
34465 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34467 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34468 CONFIG_SHELL='$SHELL'
34469 export CONFIG_SHELL
34474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34479 ## Running $as_me. ##
34485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34491 # The HP-UX ksh and POSIX shell print the target directory to stdout
34492 # if CDPATH is set.
34493 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34495 sed_quote_subst='$sed_quote_subst'
34496 double_quote_subst='$double_quote_subst'
34497 delay_variable_subst='$delay_variable_subst'
34498 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34499 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34500 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34501 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34502 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34503 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34504 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34505 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34506 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34507 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34508 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34509 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34510 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34511 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34512 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34513 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34514 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34515 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34516 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34517 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34518 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34519 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34520 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34521 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34522 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34523 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34524 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34525 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34526 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34527 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34528 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34529 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34530 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34531 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34532 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34533 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34534 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34535 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34536 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34537 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34538 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34539 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34540 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34541 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34542 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34543 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34544 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34545 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34546 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
34547 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34548 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34549 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34550 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34551 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34552 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34553 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34554 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34555 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34556 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34557 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34558 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34559 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34560 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34561 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34562 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34563 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34564 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34565 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34566 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34567 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34568 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34569 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34570 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34571 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34572 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34573 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34574 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34575 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34576 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34577 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34578 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34579 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34580 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34581 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34582 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34583 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34584 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34585 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34586 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34587 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
34588 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34589 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34590 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34591 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34592 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34593 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34594 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34595 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34596 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34597 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34598 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34599 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34600 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34601 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34602 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34603 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34604 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34605 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34606 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34607 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34608 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34609 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34610 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34611 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34612 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34613 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34614 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34615 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34616 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34617 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34618 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34619 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34620 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34621 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34622 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34623 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34624 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34625 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34626 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34627 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34628 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34629 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34630 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
34631 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
34632 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
34633 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34634 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34635 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34636 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34637 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34638 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34639 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34640 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34641 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34642 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34643 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34644 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34645 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34646 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34647 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34648 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34649 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34650 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34651 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34652 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34653 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34654 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34655 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34656 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34657 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34658 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
34659 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
34660 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34661 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34662 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34663 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34664 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34665 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34666 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34667 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34668 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34669 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34670 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34671 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34672 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
34675 LTCFLAGS='$LTCFLAGS'
34676 compiler='$compiler_DEFAULT'
34678 # A function that is used when there is no print builtin or printf.
34679 func_fallback_echo ()
34681 eval 'cat <<_LTECHO_EOF
34686 # Quote evaled strings.
34700 deplibs_check_method \
34709 lt_cv_sys_global_symbol_pipe \
34710 lt_cv_sys_global_symbol_to_cdecl \
34711 lt_cv_sys_global_symbol_to_c_name_address \
34712 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34713 lt_prog_compiler_no_builtin_flag \
34714 lt_prog_compiler_wl \
34715 lt_prog_compiler_pic \
34716 lt_prog_compiler_static \
34717 lt_cv_prog_compiler_c_o \
34725 export_dynamic_flag_spec \
34726 whole_archive_flag_spec \
34727 compiler_needs_object \
34729 allow_undefined_flag \
34730 no_undefined_flag \
34731 hardcode_libdir_flag_spec \
34732 hardcode_libdir_flag_spec_ld \
34733 hardcode_libdir_separator \
34738 variables_saved_for_relink \
34740 library_names_spec \
34742 install_override_mode \
34746 compiler_lib_search_dirs \
34751 compiler_lib_search_path \
34755 lt_prog_compiler_no_builtin_flag_CXX \
34756 lt_prog_compiler_wl_CXX \
34757 lt_prog_compiler_pic_CXX \
34758 lt_prog_compiler_static_CXX \
34759 lt_cv_prog_compiler_c_o_CXX \
34760 export_dynamic_flag_spec_CXX \
34761 whole_archive_flag_spec_CXX \
34762 compiler_needs_object_CXX \
34764 allow_undefined_flag_CXX \
34765 no_undefined_flag_CXX \
34766 hardcode_libdir_flag_spec_CXX \
34767 hardcode_libdir_flag_spec_ld_CXX \
34768 hardcode_libdir_separator_CXX \
34769 fix_srcfile_path_CXX \
34770 exclude_expsyms_CXX \
34771 include_expsyms_CXX \
34772 file_list_spec_CXX \
34773 compiler_lib_search_dirs_CXX \
34774 predep_objects_CXX \
34775 postdep_objects_CXX \
34778 compiler_lib_search_path_CXX; do
34779 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34780 *[\\\\\\\`\\"\\\$]*)
34781 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34784 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34789 # Double-quote double-evaled strings.
34790 for var in reload_cmds \
34791 old_postinstall_cmds \
34792 old_postuninstall_cmds \
34794 extract_expsyms_cmds \
34795 old_archive_from_new_cmds \
34796 old_archive_from_expsyms_cmds \
34798 archive_expsym_cmds \
34800 module_expsym_cmds \
34801 export_symbols_cmds \
34804 postuninstall_cmds \
34806 sys_lib_search_path_spec \
34807 sys_lib_dlsearch_path_spec \
34809 old_archive_cmds_CXX \
34810 old_archive_from_new_cmds_CXX \
34811 old_archive_from_expsyms_cmds_CXX \
34813 archive_expsym_cmds_CXX \
34815 module_expsym_cmds_CXX \
34816 export_symbols_cmds_CXX \
34817 prelink_cmds_CXX; do
34818 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34819 *[\\\\\\\`\\"\\\$]*)
34820 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34823 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34828 ac_aux_dir='$ac_aux_dir'
34829 xsi_shell='$xsi_shell'
34830 lt_shell_append='$lt_shell_append'
34832 # See if we are running on zsh, and set the options which allow our
34833 # commands through without removal of \ escapes INIT.
34834 if test -n "\${ZSH_VERSION+set}" ; then
34835 setopt NO_GLOB_SUBST
34841 TIMESTAMP='$TIMESTAMP'
34847 ac_aux_dir='$ac_aux_dir'
34850 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
34851 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34852 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
34854 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34855 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34856 LINGUAS="${LINGUAS-%UNSET%}"
34858 GDB_NM_FILE=$GDB_NM_FILE
34862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34864 # Handling of arguments.
34865 for ac_config_target
in $ac_config_targets
34867 case $ac_config_target in
34868 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
34869 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
34870 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
34871 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
34872 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
34873 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
34874 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
34875 "gstack.in") CONFIG_FILES
="$CONFIG_FILES gstack.in:gstack-1.in" ;;
34876 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
34877 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
34878 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
34879 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
34880 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
34882 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34887 # If the user did not use the arguments to specify the items to instantiate,
34888 # then the envvar interface is used. Set only those that are not.
34889 # We use the long form for the default assignment because of an extremely
34890 # bizarre bug on SunOS 4.1.3.
34891 if $ac_need_defaults; then
34892 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
34893 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
34894 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
34895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
34898 # Have a temporary directory for convenience. Make it in the build tree
34899 # simply because there is no reason against having it here, and in addition,
34900 # creating and moving files from /tmp can sometimes cause problems.
34901 # Hook for its removal unless debugging.
34902 # Note that there is a small window in which the directory will not be cleaned:
34903 # after its creation but before its name has been assigned to `$tmp'.
34907 trap 'exit_status=$?
34908 : "${ac_tmp:=$tmp}"
34909 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34911 trap 'as_fn_exit 1' 1 2 13 15
34913 # Create a (secure) tmp directory for tmp files.
34916 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34920 tmp
=.
/conf$$
-$RANDOM
34921 (umask 077 && mkdir
"$tmp")
34922 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
34925 # Set up the scripts for CONFIG_FILES section.
34926 # No need to generate them if there are no CONFIG_FILES.
34927 # This happens for instance with `./config.status config.h'.
34928 if test -n "$CONFIG_FILES"; then
34930 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
34931 ac_cs_awk_getline
=:
34932 ac_cs_awk_pipe_init
=
34933 ac_cs_awk_read_file
='
34934 while ((getline aline < (F[key])) > 0)
34937 ac_cs_awk_pipe_fini
=
34939 ac_cs_awk_getline
=false
34940 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
34941 ac_cs_awk_read_file
='
34943 print "cat " F[key] " &&"
34944 '$ac_cs_awk_pipe_init
34945 # The final `:' finishes the AND list.
34946 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
34948 ac_cr
=`echo X | tr X '\015'`
34949 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34950 # But we know of no other shell where ac_cr would be empty at this
34951 # point, so we can use a bashism as a fallback.
34952 if test "x$ac_cr" = x
; then
34953 eval ac_cr
=\$
\'\\r
\'
34955 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34956 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34959 ac_cs_awk_cr
=$ac_cr
34962 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34965 # Create commands to substitute file output variables.
34967 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
34968 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
34969 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
34972 } >conf$
$files.sh
&&
34973 . .
/conf$
$files.sh ||
34974 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
34975 rm -f conf$
$files.sh
34978 echo "cat >conf$$subs.awk <<_ACEOF" &&
34979 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34981 } >conf$$subs.sh ||
34982 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
34983 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34985 for ac_last_try in false false false false false :; do
34986 . ./conf$$subs.sh ||
34987 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
34989 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
34990 if test $ac_delim_n = $ac_delim_num; then
34992 elif $ac_last_try; then
34993 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
34995 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
34998 rm -f conf$$subs.sh
35000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35001 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
35005 s/^/S["/; s
/!.
*/"]=/
35015 s/\(.\{148\}\)..*/\1/
35017 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
35022 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
35029 s/\(.\{148\}\)..*/\1/
35031 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
35035 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
35040 ' <conf$$subs.awk | sed '
35045 ' >>$CONFIG_STATUS || ac_write_fail=1
35046 rm -f conf$$subs.awk
35047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35049 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
35050 for (key in S) S_is_set[key] = 1
35052 \$ac_cs_awk_pipe_init
35056 nfields = split(line, field, "@
")
35058 len = length(field[1])
35059 for (i = 2; i < nfields; i++) {
35061 keylen = length(key)
35062 if (S_is_set[key]) {
35064 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35065 len += length(value) + length(field[++i])
35070 if (nfields == 3 && !substed) {
35072 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35073 \$ac_cs_awk_read_file
35079 \$ac_cs_awk_pipe_fini
35082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35083 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35084 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
35087 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
35088 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
35091 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35092 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
35093 # trailing colons and then remove the whole line if VPATH becomes empty
35094 # (actually we leave an empty line to preserve line numbers).
35095 if test "x
$srcdir" = x.; then
35096 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35115 fi # test -n "$CONFIG_FILES"
35117 # Set up the scripts for CONFIG_HEADERS section.
35118 # No need to generate them if there are no CONFIG_HEADERS.
35119 # This happens for instance with `./config.status Makefile'.
35120 if test -n "$CONFIG_HEADERS"; then
35121 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
35125 # Transform confdefs.h into an awk script `defines.awk', embedded as
35126 # here-document in config.status, that substitutes the proper values into
35127 # config.h.in to produce config.h.
35129 # Create a delimiter string that does not exist in confdefs.h, to ease
35130 # handling of long lines.
35132 for ac_last_try in false false :; do
35133 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
35134 if test -z "$ac_tt"; then
35136 elif $ac_last_try; then
35137 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
35139 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
35143 # For the awk script, D is an array of macro values keyed by name,
35144 # likewise P contains macro parameters if any. Preserve backslash
35145 # newline sequences.
35147 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35149 s/.\{148\}/&'"$ac_delim"'/g
35152 s/^[ ]*#[ ]*define[ ][ ]*/ /
35159 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
35161 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
35165 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
35166 D["\
1"]=" \
3\\\\\\n
"\\/p
35168 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
35173 s/.\{148\}/&'"$ac_delim"'/g
35178 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
35181 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
35183 ' <confdefs.h | sed '
35184 s/'"$ac_delim"'/"\\\
35185 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35188 for (key in D) D_is_set[key] = 1
35191 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35193 split(line, arg, " ")
35194 if (arg[1] == "#") {
35198 defundef
= substr
(arg
[1], 2)
35201 split(mac1
, mac2
, "(") #)
35203 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
35204 if (D_is_set
[macro
]) {
35205 # Preserve the white space surrounding the "#".
35206 print prefix
"define", macro P
[macro
] D
[macro
]
35209 # Replace #undef with comments. This is necessary, for example,
35210 # in the case of _POSIX_SOURCE, which is predefined and required
35211 # on some systems where configure will not decide to define it.
35212 if (defundef
== "undef") {
35213 print
"/*", prefix defundef
, macro
, "*/"
35221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35222 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
35223 fi # test -n "$CONFIG_HEADERS"
35226 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35231 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35233 case $ac_mode$ac_tag in
35235 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
35236 :[FH
]-) ac_tag
=-:-;;
35237 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35254 -) ac_f
="$ac_tmp/stdin";;
35255 *) # Look for the file first in the build tree, then in the source tree
35256 # (if the path is not absolute). The absolute path cannot be DOS-style,
35257 # because $ac_f cannot contain `:'.
35261 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
35263 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35265 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35266 as_fn_append ac_file_inputs
" '$ac_f'"
35269 # Let's still pretend it is `configure' which instantiates (i.e., don't
35270 # use $as_me), people would be surprised to read:
35271 # /* config.h. Generated by config.status. */
35272 configure_input
='Generated from '`
35273 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35275 if test x
"$ac_file" != x-
; then
35276 configure_input
="$ac_file. $configure_input"
35277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35278 $as_echo "$as_me: creating $ac_file" >&6;}
35280 # Neutralize special characters interpreted by sed in replacement strings.
35281 case $configure_input in #(
35282 *\
&* |
*\|
* |
*\\* )
35283 ac_sed_conf_input
=`$as_echo "$configure_input" |
35284 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35285 *) ac_sed_conf_input
=$configure_input;;
35289 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
35290 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
35295 ac_dir
=`$as_dirname -- "$ac_file" ||
35296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35297 X"$ac_file" : 'X\(//\)[^/]' \| \
35298 X"$ac_file" : 'X\(//\)$' \| \
35299 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35300 $as_echo X"$ac_file" |
35301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35305 /^X\(\/\/\)[^/].*/{
35318 as_dir
="$ac_dir"; as_fn_mkdir_p
35322 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35324 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35325 # A ".." for each directory in $ac_dir_suffix.
35326 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35327 case $ac_top_builddir_sub in
35328 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35329 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35332 ac_abs_top_builddir
=$ac_pwd
35333 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35334 # for backward compatibility:
35335 ac_top_builddir
=$ac_top_build_prefix
35338 .
) # We are building in place.
35340 ac_top_srcdir
=$ac_top_builddir_sub
35341 ac_abs_top_srcdir
=$ac_pwd ;;
35342 [\\/]* | ?
:[\\/]* ) # Absolute name.
35343 ac_srcdir
=$srcdir$ac_dir_suffix;
35344 ac_top_srcdir
=$srcdir
35345 ac_abs_top_srcdir
=$srcdir ;;
35346 *) # Relative name.
35347 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35348 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35349 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35351 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35361 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
35362 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
35366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35367 # If the template does not know about datarootdir, expand it.
35368 # FIXME: This hack should be removed a few years after 2.60.
35369 ac_datarootdir_hack
=; ac_datarootdir_seen
=
35380 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35381 *datarootdir
*) ac_datarootdir_seen
=yes;;
35382 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
35383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35384 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35387 ac_datarootdir_hack='
35388 s&@datadir@&$datadir&g
35389 s&@docdir@&$docdir&g
35390 s&@infodir@&$infodir&g
35391 s&@localedir@&$localedir&g
35392 s&@mandir@&$mandir&g
35393 s&\\\${datarootdir}&$datarootdir&g' ;;
35397 # Neutralize VPATH when `$srcdir' = `.'.
35398 # Shell code in configure.ac might set extrasub.
35399 # FIXME: do we really want to maintain this feature?
35400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35401 ac_sed_extra="$ac_vpsub
35404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35406 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
35407 s|@configure_input@|
$ac_sed_conf_input|
;t t
35408 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
35409 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
35410 s
&@srcdir@
&$ac_srcdir&;t t
35411 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
35412 s
&@top_srcdir@
&$ac_top_srcdir&;t t
35413 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
35414 s
&@builddir@
&$ac_builddir&;t t
35415 s
&@abs_builddir@
&$ac_abs_builddir&;t t
35416 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
35417 s
&@INSTALL@
&$ac_INSTALL&;t t
35418 $ac_datarootdir_hack
35420 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
35421 if $ac_cs_awk_getline; then
35422 $AWK -f "$ac_tmp/subs.
awk"
35424 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
35426 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
35428 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35429 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
35430 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35431 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
35432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
35433 which seems to be undefined. Please make sure it is defined" >&5
35434 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
35435 which seems to be undefined. Please make sure it is defined" >&2;}
35437 rm -f "$ac_tmp/stdin"
35439 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35440 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35448 if test x"$ac_file" != x-; then
35450 $as_echo "/* $configure_input */" \
35451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35452 } >"$ac_tmp/config.h" \
35453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35454 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35455 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35456 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35459 mv "$ac_tmp/config.h" "$ac_file" \
35460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35463 $as_echo "/* $configure_input */" \
35464 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35465 || as_fn_error $? "could not create -" "$LINENO" 5
35473 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
35476 # Prefer the file from the source tree if names are identical.
35477 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
35478 ac_source=$srcdir/$ac_source
35481 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
35482 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
35484 if test ! -r "$ac_source"; then
35485 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
35489 # Try a relative symlink, then a hard link, then a copy.
35491 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
35492 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
35494 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
35495 ln "$ac_source" "$ac_file" 2>/dev/null ||
35496 cp -p "$ac_source" "$ac_file" ||
35497 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
35500 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35501 $as_echo "$as_me: executing $ac_file commands" >&6;}
35506 case $ac_file$ac_mode in
35507 "config.h":H) echo > stamp-h ;;
35510 # See if we are running on zsh, and set the options which allow our
35511 # commands through without removal of \ escapes.
35512 if test -n "${ZSH_VERSION+set}" ; then
35513 setopt NO_GLOB_SUBST
35516 cfgfile="${ofile}T"
35517 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35520 cat <<_LT_EOF >> "$cfgfile"
35523 # `$ECHO "$ofile" | sed 's
%^.
*/%%'` - Provide generalized library-building support services.
35524 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35525 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35526 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35528 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35529 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
35530 # Written by Gordon Matzigkeit, 1996
35532 # This file is part of GNU Libtool.
35534 # GNU Libtool is free software; you can redistribute it and/or
35535 # modify it under the terms of the GNU General Public License as
35536 # published by the Free Software Foundation; either version 2 of
35537 # the License, or (at your option) any later version.
35539 # As a special exception to the GNU General Public License,
35540 # if you distribute this file as part of a program or library that
35541 # is built using GNU Libtool, you may include this file under the
35542 # same distribution terms that you use for the rest of that program.
35544 # GNU Libtool is distributed in the hope that it will be useful,
35545 # but WITHOUT ANY WARRANTY; without even the implied warranty of
35546 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35547 # GNU General Public License for more details.
35549 # You should have received a copy of the GNU General Public License
35550 # along with GNU Libtool; see the file COPYING. If not, a copy
35551 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35552 # obtained by writing to the Free Software Foundation, Inc.,
35553 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35556 # The names of the tagged configurations supported by this script.
35557 available_tags="CXX "
35559 # ### BEGIN LIBTOOL CONFIG
35561 # Which release of libtool.m4 was used?
35562 macro_version=$macro_version
35563 macro_revision=$macro_revision
35565 # Whether or not to build shared libraries.
35566 build_libtool_libs=$enable_shared
35568 # Whether or not to build static libraries.
35569 build_old_libs=$enable_static
35571 # What type of objects to build.
35574 # Whether or not to optimize for fast installation.
35575 fast_install=$enable_fast_install
35577 # Shell to use when invoking shell scripts.
35580 # An echo program that protects backslashes.
35584 host_alias=$host_alias
35588 # The build system.
35589 build_alias=$build_alias
35593 # A sed program that does not truncate output.
35596 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35597 Xsed="\$SED -e 1s/^X//"
35599 # A grep program that handles long lines.
35605 # A literal string matcher.
35608 # A BSD- or MS-compatible name lister.
35611 # Whether we need soft or hard links.
35614 # What is the maximum length of a command?
35615 max_cmd_len=$max_cmd_len
35617 # Object file suffix (normally "o").
35620 # Executable file suffix (normally "").
35623 # whether the shell understands "unset".
35626 # turn spaces into newlines.
35629 # turn newlines into spaces.
35632 # An object symbol dumper.
35633 OBJDUMP=$lt_OBJDUMP
35635 # Method to check whether dependent libraries are shared objects.
35636 deplibs_check_method=$lt_deplibs_check_method
35638 # Command to use when deplibs_check_method == "file_magic".
35639 file_magic_cmd=$lt_file_magic_cmd
35643 AR_FLAGS=$lt_AR_FLAGS
35645 # A symbol stripping program.
35648 # Commands used to install an old-style archive.
35650 old_postinstall_cmds=$lt_old_postinstall_cmds
35651 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35653 # Whether to use a lock for old archive extraction.
35654 lock_old_archive_extraction=$lock_old_archive_extraction
35659 # LTCC compiler flags.
35660 LTCFLAGS=$lt_CFLAGS
35662 # Take the output of nm and produce a listing of raw symbols and C names.
35663 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35665 # Transform the output of nm in a proper C declaration.
35666 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35668 # Transform the output of nm in a C name address pair.
35669 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35671 # Transform the output of nm in a C name address pair when lib prefix is needed.
35672 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35674 # The name of the directory that contains temporary libtool files.
35677 # Used to examine libraries when file_magic_cmd begins with "file".
35678 MAGIC_CMD=$MAGIC_CMD
35680 # Must we lock files when doing compilation?
35681 need_locks=$lt_need_locks
35683 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35684 DSYMUTIL=$lt_DSYMUTIL
35686 # Tool to change global to local symbols on Mac OS X.
35689 # Tool to manipulate fat objects and archives on Mac OS X.
35692 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35695 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35696 OTOOL64=$lt_OTOOL64
35698 # Old archive suffix (normally "a").
35701 # Shared library suffix (normally ".so").
35702 shrext_cmds=$lt_shrext_cmds
35704 # The commands to extract the exported symbol list from a shared archive.
35705 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35707 # Variables whose values should be saved in libtool wrapper scripts and
35708 # restored at link time.
35709 variables_saved_for_relink=$lt_variables_saved_for_relink
35711 # Do we need the "lib" prefix for modules?
35712 need_lib_prefix=$need_lib_prefix
35714 # Do we need a version for libraries?
35715 need_version=$need_version
35717 # Library versioning type.
35718 version_type=$version_type
35720 # Shared library runtime path variable.
35721 runpath_var=$runpath_var
35723 # Shared library path variable.
35724 shlibpath_var=$shlibpath_var
35726 # Is shlibpath searched before the hard-coded library search path?
35727 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35729 # Format of library name prefix.
35730 libname_spec=$lt_libname_spec
35732 # List of archive names. First name is the real one, the rest are links.
35733 # The last name is the one that the linker finds with -lNAME
35734 library_names_spec=$lt_library_names_spec
35736 # The coded name of the library, if different from the real name.
35737 soname_spec=$lt_soname_spec
35739 # Permission mode override for installation of shared libraries.
35740 install_override_mode=$lt_install_override_mode
35742 # Command to use after installation of a shared archive.
35743 postinstall_cmds=$lt_postinstall_cmds
35745 # Command to use after uninstallation of a shared archive.
35746 postuninstall_cmds=$lt_postuninstall_cmds
35748 # Commands used to finish a libtool library installation in a directory.
35749 finish_cmds=$lt_finish_cmds
35751 # As "finish_cmds", except a single script fragment to be evaled but
35753 finish_eval=$lt_finish_eval
35755 # Whether we should hardcode library paths into libraries.
35756 hardcode_into_libs=$hardcode_into_libs
35758 # Compile-time system search path for libraries.
35759 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35761 # Run-time system search path for libraries.
35762 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35764 # Whether dlopen is supported.
35765 dlopen_support=$enable_dlopen
35767 # Whether dlopen of programs is supported.
35768 dlopen_self=$enable_dlopen_self
35770 # Whether dlopen of statically linked programs is supported.
35771 dlopen_self_static=$enable_dlopen_self_static
35773 # Commands to strip libraries.
35774 old_striplib=$lt_old_striplib
35775 striplib=$lt_striplib
35778 # The linker used to build libraries.
35781 # How to create reloadable object files.
35782 reload_flag=$lt_reload_flag
35783 reload_cmds=$lt_reload_cmds
35785 # Commands used to build an old-style archive.
35786 old_archive_cmds=$lt_old_archive_cmds
35788 # A language specific compiler.
35791 # Is the compiler the GNU compiler?
35794 # Compiler flag to turn off builtin functions.
35795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35797 # How to pass a linker flag through the compiler.
35798 wl=$lt_lt_prog_compiler_wl
35800 # Additional compiler flags for building library objects.
35801 pic_flag=$lt_lt_prog_compiler_pic
35803 # Compiler flag to prevent dynamic linking.
35804 link_static_flag=$lt_lt_prog_compiler_static
35806 # Does compiler simultaneously support -c and -o options?
35807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35809 # Whether or not to add -lc for building shared libraries.
35810 build_libtool_need_lc=$archive_cmds_need_lc
35812 # Whether or not to disallow shared libs when runtime libs are static.
35813 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35815 # Compiler flag to allow reflexive dlopens.
35816 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35818 # Compiler flag to generate shared objects directly from archives.
35819 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35821 # Whether the compiler copes with passing no objects directly.
35822 compiler_needs_object=$lt_compiler_needs_object
35824 # Create an old-style archive from a shared archive.
35825 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35827 # Create a temporary old-style archive to link instead of a shared archive.
35828 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35830 # Commands used to build a shared archive.
35831 archive_cmds=$lt_archive_cmds
35832 archive_expsym_cmds=$lt_archive_expsym_cmds
35834 # Commands used to build a loadable module if different from building
35835 # a shared archive.
35836 module_cmds=$lt_module_cmds
35837 module_expsym_cmds=$lt_module_expsym_cmds
35839 # Whether we are building with GNU ld or not.
35840 with_gnu_ld=$lt_with_gnu_ld
35842 # Flag that allows shared libraries with undefined symbols to be built.
35843 allow_undefined_flag=$lt_allow_undefined_flag
35845 # Flag that enforces no undefined symbols.
35846 no_undefined_flag=$lt_no_undefined_flag
35848 # Flag to hardcode \$libdir into a binary during linking.
35849 # This must work even if \$libdir does not exist
35850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35852 # If ld is used when linking, flag to hardcode \$libdir into a binary
35853 # during linking. This must work even if \$libdir does not exist.
35854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35856 # Whether we need a single "-rpath" flag with a separated argument.
35857 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35859 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35860 # DIR into the resulting binary.
35861 hardcode_direct=$hardcode_direct
35863 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35864 # DIR into the resulting binary and the resulting library dependency is
35865 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35866 # library is relocated.
35867 hardcode_direct_absolute=$hardcode_direct_absolute
35869 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35870 # into the resulting binary.
35871 hardcode_minus_L=$hardcode_minus_L
35873 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35874 # into the resulting binary.
35875 hardcode_shlibpath_var=$hardcode_shlibpath_var
35877 # Set to "yes" if building a shared library automatically hardcodes DIR
35878 # into the library and all subsequent libraries and executables linked
35880 hardcode_automatic=$hardcode_automatic
35882 # Set to yes if linker adds runtime paths of dependent libraries
35883 # to runtime path list.
35884 inherit_rpath=$inherit_rpath
35886 # Whether libtool must link a program against all its dependency libraries.
35887 link_all_deplibs=$link_all_deplibs
35889 # Fix the shell variable \$srcfile for the compiler.
35890 fix_srcfile_path=$lt_fix_srcfile_path
35892 # Set to "yes" if exported symbols are required.
35893 always_export_symbols=$always_export_symbols
35895 # The commands to list exported symbols.
35896 export_symbols_cmds=$lt_export_symbols_cmds
35898 # Symbols that should not be listed in the preloaded symbols.
35899 exclude_expsyms=$lt_exclude_expsyms
35901 # Symbols that must always be exported.
35902 include_expsyms=$lt_include_expsyms
35904 # Commands necessary for linking programs (against libraries) with templates.
35905 prelink_cmds=$lt_prelink_cmds
35907 # Specify filename containing input files.
35908 file_list_spec=$lt_file_list_spec
35910 # How to hardcode a shared library path into an executable.
35911 hardcode_action=$hardcode_action
35913 # The directories searched by this compiler when creating a shared library.
35914 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35916 # Dependencies to place before and after the objects being linked to
35917 # create a shared library.
35918 predep_objects=$lt_predep_objects
35919 postdep_objects=$lt_postdep_objects
35920 predeps=$lt_predeps
35921 postdeps=$lt_postdeps
35923 # The library search path used internally by the compiler when linking
35924 # a shared library.
35925 compiler_lib_search_path=$lt_compiler_lib_search_path
35927 # ### END LIBTOOL CONFIG
35933 cat <<\_LT_EOF >> "$cfgfile"
35934 # AIX sometimes has problems with the GCC collect2 program. For some
35935 # reason, if we set the COLLECT_NAMES environment variable, the problems
35936 # vanish in a puff of smoke.
35937 if test "X${COLLECT_NAMES+set}" != Xset; then
35939 export COLLECT_NAMES
35946 ltmain="$ac_aux_dir/ltmain.sh"
35949 # We use sed instead of cat because bash on DJGPP gets confused if
35950 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35951 # text mode, it properly converts lines to CR/LF. This bash problem
35952 # is reportedly fixed, but why not run on old versions too?
35953 sed '/^
# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35954 ||
(rm -f "$cfgfile"; exit 1)
35958 cat << \_LT_EOF
>> "$cfgfile"
35960 # func_dirname file append nondir_replacement
35961 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35962 # otherwise set result to NONDIR_REPLACEMENT.
35966 */*) func_dirname_result
="${1%/*}${2}" ;;
35967 * ) func_dirname_result
="${3}" ;;
35971 # func_basename file
35974 func_basename_result
="${1##*/}"
35977 # func_dirname_and_basename file append nondir_replacement
35978 # perform func_basename and func_dirname in a single function
35980 # dirname: Compute the dirname of FILE. If nonempty,
35981 # add APPEND to the result, otherwise set result
35982 # to NONDIR_REPLACEMENT.
35983 # value returned in "$func_dirname_result"
35984 # basename: Compute filename of FILE.
35985 # value retuned in "$func_basename_result"
35986 # Implementation must be kept synchronized with func_dirname
35987 # and func_basename. For efficiency, we do not delegate to
35988 # those functions but instead duplicate the functionality here.
35989 func_dirname_and_basename
()
35992 */*) func_dirname_result
="${1%/*}${2}" ;;
35993 * ) func_dirname_result
="${3}" ;;
35995 func_basename_result
="${1##*/}"
35998 # func_stripname prefix suffix name
35999 # strip PREFIX and SUFFIX off of NAME.
36000 # PREFIX and SUFFIX must not contain globbing or regex special
36001 # characters, hashes, percent signs, but SUFFIX may contain a leading
36002 # dot (in which case that matches only a dot).
36005 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
36006 # positional parameters, so assign one to ordinary parameter first.
36007 func_stripname_result
=${3}
36008 func_stripname_result
=${func_stripname_result#"${1}"}
36009 func_stripname_result
=${func_stripname_result%"${2}"}
36015 func_opt_split_opt
=${1%%=*}
36016 func_opt_split_arg
=${1#*=}
36023 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
36024 *) func_lo2o_result
=${1} ;;
36028 # func_xform libobj-or-source
36031 func_xform_result
=${1%.*}.lo
36034 # func_arith arithmetic-term...
36037 func_arith_result
=$
(( $
* ))
36041 # STRING may not start with a hyphen.
36044 func_len_result
=${#1}
36049 *) # Bourne compatible functions.
36050 cat << \_LT_EOF
>> "$cfgfile"
36052 # func_dirname file append nondir_replacement
36053 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
36054 # otherwise set result to NONDIR_REPLACEMENT.
36057 # Extract subdirectory from the argument.
36058 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
36059 if test "X$func_dirname_result" = "X${1}"; then
36060 func_dirname_result
="${3}"
36062 func_dirname_result
="$func_dirname_result${2}"
36066 # func_basename file
36069 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
36073 # func_stripname prefix suffix name
36074 # strip PREFIX and SUFFIX off of NAME.
36075 # PREFIX and SUFFIX must not contain globbing or regex special
36076 # characters, hashes, percent signs, but SUFFIX may contain a leading
36077 # dot (in which case that matches only a dot).
36078 # func_strip_suffix prefix name
36082 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
36083 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
36088 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
36089 my_sed_long_arg
='1s/^-[^=]*=//'
36094 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
36095 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
36101 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
36104 # func_xform libobj-or-source
36107 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
36110 # func_arith arithmetic-term...
36113 func_arith_result
=`expr "$@"`
36117 # STRING may not start with a hyphen.
36120 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
36126 case $lt_shell_append in
36128 cat << \_LT_EOF
>> "$cfgfile"
36130 # func_append var value
36131 # Append VALUE to the end of shell variable VAR.
36139 cat << \_LT_EOF
>> "$cfgfile"
36141 # func_append var value
36142 # Append VALUE to the end of shell variable VAR.
36153 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
36154 ||
(rm -f "$cfgfile"; exit 1)
36156 mv -f "$cfgfile" "$ofile" ||
36157 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36161 cat <<_LT_EOF >> "$ofile"
36163 # ### BEGIN LIBTOOL TAG CONFIG: CXX
36165 # The linker used to build libraries.
36168 # How to create reloadable object files.
36169 reload_flag=$lt_reload_flag_CXX
36170 reload_cmds=$lt_reload_cmds_CXX
36172 # Commands used to build an old-style archive.
36173 old_archive_cmds=$lt_old_archive_cmds_CXX
36175 # A language specific compiler.
36176 CC=$lt_compiler_CXX
36178 # Is the compiler the GNU compiler?
36181 # Compiler flag to turn off builtin functions.
36182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36184 # How to pass a linker flag through the compiler.
36185 wl=$lt_lt_prog_compiler_wl_CXX
36187 # Additional compiler flags for building library objects.
36188 pic_flag=$lt_lt_prog_compiler_pic_CXX
36190 # Compiler flag to prevent dynamic linking.
36191 link_static_flag=$lt_lt_prog_compiler_static_CXX
36193 # Does compiler simultaneously support -c and -o options?
36194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36196 # Whether or not to add -lc for building shared libraries.
36197 build_libtool_need_lc=$archive_cmds_need_lc_CXX
36199 # Whether or not to disallow shared libs when runtime libs are static.
36200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36202 # Compiler flag to allow reflexive dlopens.
36203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36205 # Compiler flag to generate shared objects directly from archives.
36206 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36208 # Whether the compiler copes with passing no objects directly.
36209 compiler_needs_object=$lt_compiler_needs_object_CXX
36211 # Create an old-style archive from a shared archive.
36212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36214 # Create a temporary old-style archive to link instead of a shared archive.
36215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36217 # Commands used to build a shared archive.
36218 archive_cmds=$lt_archive_cmds_CXX
36219 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36221 # Commands used to build a loadable module if different from building
36222 # a shared archive.
36223 module_cmds=$lt_module_cmds_CXX
36224 module_expsym_cmds=$lt_module_expsym_cmds_CXX
36226 # Whether we are building with GNU ld or not.
36227 with_gnu_ld=$lt_with_gnu_ld_CXX
36229 # Flag that allows shared libraries with undefined symbols to be built.
36230 allow_undefined_flag=$lt_allow_undefined_flag_CXX
36232 # Flag that enforces no undefined symbols.
36233 no_undefined_flag=$lt_no_undefined_flag_CXX
36235 # Flag to hardcode \$libdir into a binary during linking.
36236 # This must work even if \$libdir does not exist
36237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36239 # If ld is used when linking, flag to hardcode \$libdir into a binary
36240 # during linking. This must work even if \$libdir does not exist.
36241 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36243 # Whether we need a single "-rpath" flag with a separated argument.
36244 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36246 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36247 # DIR into the resulting binary.
36248 hardcode_direct=$hardcode_direct_CXX
36250 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36251 # DIR into the resulting binary and the resulting library dependency is
36252 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36253 # library is relocated.
36254 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36256 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36257 # into the resulting binary.
36258 hardcode_minus_L=$hardcode_minus_L_CXX
36260 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36261 # into the resulting binary.
36262 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36264 # Set to "yes" if building a shared library automatically hardcodes DIR
36265 # into the library and all subsequent libraries and executables linked
36267 hardcode_automatic=$hardcode_automatic_CXX
36269 # Set to yes if linker adds runtime paths of dependent libraries
36270 # to runtime path list.
36271 inherit_rpath=$inherit_rpath_CXX
36273 # Whether libtool must link a program against all its dependency libraries.
36274 link_all_deplibs=$link_all_deplibs_CXX
36276 # Fix the shell variable \$srcfile for the compiler.
36277 fix_srcfile_path=$lt_fix_srcfile_path_CXX
36279 # Set to "yes" if exported symbols are required.
36280 always_export_symbols=$always_export_symbols_CXX
36282 # The commands to list exported symbols.
36283 export_symbols_cmds=$lt_export_symbols_cmds_CXX
36285 # Symbols that should not be listed in the preloaded symbols.
36286 exclude_expsyms=$lt_exclude_expsyms_CXX
36288 # Symbols that must always be exported.
36289 include_expsyms=$lt_include_expsyms_CXX
36291 # Commands necessary for linking programs (against libraries) with templates.
36292 prelink_cmds=$lt_prelink_cmds_CXX
36294 # Specify filename containing input files.
36295 file_list_spec=$lt_file_list_spec_CXX
36297 # How to hardcode a shared library path into an executable.
36298 hardcode_action=$hardcode_action_CXX
36300 # The directories searched by this compiler when creating a shared library.
36301 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36303 # Dependencies to place before and after the objects being linked to
36304 # create a shared library.
36305 predep_objects=$lt_predep_objects_CXX
36306 postdep_objects=$lt_postdep_objects_CXX
36307 predeps=$lt_predeps_CXX
36308 postdeps=$lt_postdeps_CXX
36310 # The library search path used internally by the compiler when linking
36311 # a shared library.
36312 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36314 # ### END LIBTOOL TAG CONFIG: CXX
36318 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
36320 for ac_file
in $CONFIG_FILES; do
36321 # Support "outfile[:infile[:infile...]]"
36323 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
36325 # PO directories have a Makefile.in generated from Makefile.in.in.
36326 case "$ac_file" in */Makefile.
in)
36327 # Adjust a relative srcdir.
36328 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36329 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
36330 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36331 # In autoconf-2.13 it is called $ac_given_srcdir.
36332 # In autoconf-2.50 it is called $srcdir.
36333 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
36334 case "$ac_given_srcdir" in
36335 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
36336 /*) top_srcdir
="$ac_given_srcdir" ;;
36337 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
36339 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36340 rm -f "$ac_dir/POTFILES"
36341 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
36342 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36343 POMAKEFILEDEPS
="POTFILES.in"
36344 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36345 # on $ac_dir but don't depend on user-specified configuration
36347 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36348 # The LINGUAS file contains the set of available languages.
36349 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36350 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
36352 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36353 # Hide the ALL_LINGUAS assigment from automake.
36354 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36355 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
36357 # The set of available languages was given in configure.ac.
36358 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36360 case "$ac_given_srcdir" in
36362 *) srcdirpre
='$(srcdir)/' ;;
36368 for lang
in $ALL_LINGUAS; do
36369 POFILES
="$POFILES $srcdirpre$lang.po"
36370 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
36371 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
36372 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
36374 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36375 # environment variable.
36377 if test -n "$ALL_LINGUAS"; then
36378 for presentlang
in $ALL_LINGUAS; do
36380 if test "%UNSET%" != "$LINGUAS"; then
36381 desiredlanguages
="$LINGUAS"
36383 desiredlanguages
="$ALL_LINGUAS"
36385 for desiredlang
in $desiredlanguages; do
36386 # Use the presentlang catalog if desiredlang is
36387 # a. equal to presentlang, or
36388 # b. a variant of presentlang (because in this case,
36389 # presentlang can be used as a fallback for messages
36390 # which are not translated in the desiredlang catalog).
36391 case "$desiredlang" in
36392 "$presentlang"*) useit
=yes;;
36395 if test $useit = yes; then
36396 INST_LINGUAS
="$INST_LINGUAS $presentlang"
36401 if test -n "$INST_LINGUAS"; then
36402 for lang
in $INST_LINGUAS; do
36403 CATALOGS
="$CATALOGS $lang.gmo"
36406 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
36407 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"
36408 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
36409 if test -f "$f"; then
36411 *.orig |
*.bak |
*~
) ;;
36412 *) cat "$f" >> "$ac_dir/Makefile" ;;
36420 "nm.h":L
) echo > stamp-nmh
;;
36421 "gcore":F
) chmod +x gcore
;;
36429 ac_clean_files
=$ac_clean_files_save
36431 test $ac_write_fail = 0 ||
36432 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
36435 # configure is writing to config.log, and then calls config.status.
36436 # config.status does its own redirection, appending to config.log.
36437 # Unfortunately, on DOS this fails, as config.log is still kept open
36438 # by configure, so config.status won't be able to write to it; its
36439 # output is simply discarded. So we exec the FD to /dev/null,
36440 # effectively closing config.log, so it can be properly (re)opened and
36441 # appended to by config.status. When coming back to configure, we
36442 # need to make the FD available again.
36443 if test "$no_create" != yes; then
36445 ac_config_status_args
=
36446 test "$silent" = yes &&
36447 ac_config_status_args
="$ac_config_status_args --quiet"
36449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36452 # would make configure fail if this is the last instruction.
36453 $ac_cs_success || as_fn_exit
1
36457 # CONFIG_SUBDIRS section.
36459 if test "$no_recursion" != yes; then
36461 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
36462 # so they do not pile up.
36463 ac_sub_configure_args
=
36465 eval "set x $ac_configure_args"
36469 if test -n "$ac_prev"; then
36474 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
36475 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
36476 ac_prev
=cache_file
;;
36477 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
36478 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
36481 --config-cache |
-C)
36483 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
36485 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
36487 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
36489 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
36491 --disable-option-checking)
36495 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36497 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
36501 # Always prepend --prefix to ensure using the same prefix
36502 # in subdir configurations.
36503 ac_arg
="--prefix=$prefix"
36505 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36507 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
36510 if test "$silent" = yes; then
36511 ac_sub_configure_args
="--silent $ac_sub_configure_args"
36514 # Always prepend --disable-option-checking to silence warnings, since
36515 # different subdirs can have different --enable and --with options.
36516 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
36519 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
36521 # Do not complain, so a configure script can configure whichever
36522 # parts of a large source tree are present.
36523 test -d "$srcdir/$ac_dir" ||
continue
36525 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36526 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
36527 $as_echo "$ac_msg" >&6
36528 as_dir
="$ac_dir"; as_fn_mkdir_p
36532 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36534 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36535 # A ".." for each directory in $ac_dir_suffix.
36536 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36537 case $ac_top_builddir_sub in
36538 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36539 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36542 ac_abs_top_builddir
=$ac_pwd
36543 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36544 # for backward compatibility:
36545 ac_top_builddir
=$ac_top_build_prefix
36548 .
) # We are building in place.
36550 ac_top_srcdir
=$ac_top_builddir_sub
36551 ac_abs_top_srcdir
=$ac_pwd ;;
36552 [\\/]* | ?
:[\\/]* ) # Absolute name.
36553 ac_srcdir
=$srcdir$ac_dir_suffix;
36554 ac_top_srcdir
=$srcdir
36555 ac_abs_top_srcdir
=$srcdir ;;
36556 *) # Relative name.
36557 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36558 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36559 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36561 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36566 # Check for guested configure; otherwise get Cygnus style configure.
36567 if test -f "$ac_srcdir/configure.gnu"; then
36568 ac_sub_configure
=$ac_srcdir/configure.gnu
36569 elif test -f "$ac_srcdir/configure"; then
36570 ac_sub_configure
=$ac_srcdir/configure
36571 elif test -f "$ac_srcdir/configure.in"; then
36572 # This should be Cygnus configure.
36573 ac_sub_configure
=$ac_aux_dir/configure
36575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
36576 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36580 # The recursion is here.
36581 if test -n "$ac_sub_configure"; then
36582 # Make the cache file name correct relative to the subdirectory.
36583 case $cache_file in
36584 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
36585 *) # Relative name.
36586 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
36589 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36590 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36591 # The eval makes quoting arguments work.
36592 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36593 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36594 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
36600 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
36601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36602 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}