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 TARGET_OBS
='$(ALL_TARGET_OBS)'
25013 if test $gdb_native = yes; then
25018 # AMD debugger API support.
25021 # Check whether --with-amd-dbgapi was given.
25022 if test "${with_amd_dbgapi+set}" = set; then :
25023 withval
=$with_amd_dbgapi;
25028 as_fn_error $?
"bad value $withval for --with-amd-dbgapi" "$LINENO" 5
25033 with_amd_dbgapi
=auto
25037 # If the user passes --without-amd-dbgapi but also explicitly enables a target
25038 # that requires amd-dbgapi, it is an error.
25039 if test "$with_amd_dbgapi" = no
-a "$gdb_require_amd_dbgapi" = true
; then
25040 as_fn_error $?
"an explicitly enabled target requires amd-dbgapi, but amd-dbgapi is explicitly disabled" "$LINENO" 5
25043 # Look for amd-dbgapi if:
25045 # - a target architecture requiring it has explicitly been enabled, or
25046 # - --enable-targets=all was provided and the user did not explicitly disable
25047 # amd-dbgapi support
25048 if test "$gdb_require_amd_dbgapi" = true \
25049 -o \
( "$all_targets" = true
-a "$with_amd_dbgapi" != no \
); then
25050 # amd-dbgapi version 0.68 is part of ROCm 5.4. There is no guarantee of API
25051 # stability until amd-dbgapi hits 1.0, but for convenience, still check for
25052 # greater or equal that version. It can be handy when testing with a newer
25053 # version of the library.
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.75.0" >&5
25057 $as_echo_n "checking for amd-dbgapi >= 0.75.0... " >&6; }
25059 if test -n "$AMD_DBGAPI_CFLAGS"; then
25060 pkg_cv_AMD_DBGAPI_CFLAGS
="$AMD_DBGAPI_CFLAGS"
25061 elif test -n "$PKG_CONFIG"; then
25062 if test -n "$PKG_CONFIG" && \
25063 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.75.0\""; } >&5
25064 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.75.0") 2>&5
25066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25067 test $ac_status = 0; }; then
25068 pkg_cv_AMD_DBGAPI_CFLAGS
=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.75.0" 2>/dev/null`
25069 test "x$?" != "x0" && pkg_failed
=yes
25076 if test -n "$AMD_DBGAPI_LIBS"; then
25077 pkg_cv_AMD_DBGAPI_LIBS
="$AMD_DBGAPI_LIBS"
25078 elif test -n "$PKG_CONFIG"; then
25079 if test -n "$PKG_CONFIG" && \
25080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.75.0\""; } >&5
25081 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.75.0") 2>&5
25083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25084 test $ac_status = 0; }; then
25085 pkg_cv_AMD_DBGAPI_LIBS
=`$PKG_CONFIG --libs "amd-dbgapi >= 0.75.0" 2>/dev/null`
25086 test "x$?" != "x0" && pkg_failed
=yes
25094 if test $pkg_failed = no
; then
25095 pkg_save_LDFLAGS
="$LDFLAGS"
25096 LDFLAGS
="$LDFLAGS $pkg_cv_AMD_DBGAPI_LIBS"
25097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25098 /* end confdefs.h. */
25108 if ac_fn_c_try_link
"$LINENO"; then :
25113 rm -f core conftest.err conftest.
$ac_objext \
25114 conftest
$ac_exeext conftest.
$ac_ext
25115 LDFLAGS
=$pkg_save_LDFLAGS
25120 if test $pkg_failed = yes; then
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25122 $as_echo "no" >&6; }
25124 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25125 _pkg_short_errors_supported
=yes
25127 _pkg_short_errors_supported
=no
25129 if test $_pkg_short_errors_supported = yes; then
25130 AMD_DBGAPI_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.75.0" 2>&1`
25132 AMD_DBGAPI_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.75.0" 2>&1`
25134 # Put the nasty error message in config.log where it belongs
25135 echo "$AMD_DBGAPI_PKG_ERRORS" >&5
25138 elif test $pkg_failed = untried
; then
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25140 $as_echo "no" >&6; }
25143 AMD_DBGAPI_CFLAGS
=$pkg_cv_AMD_DBGAPI_CFLAGS
25144 AMD_DBGAPI_LIBS
=$pkg_cv_AMD_DBGAPI_LIBS
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25146 $as_echo "yes" >&6; }
25150 if test "$has_amd_dbgapi" = "yes"; then
25152 $as_echo "#define HAVE_AMD_DBGAPI 1" >>confdefs.h
25154 TARGET_OBS
="$TARGET_OBS amd-dbgapi-target.o"
25156 # If --enable-targets=all was provided, use the list of all files depending
25157 # on amd-dbgapi that is hardcoded in the Makefile. Else, the appropriate
25158 # architecture entry in configure.tgt will have added the files to
25160 if test "$all_targets" = true
; then
25161 TARGET_OBS
="$TARGET_OBS \$(ALL_AMD_DBGAPI_TARGET_OBS)"
25163 elif test "$gdb_require_amd_dbgapi" = true
-o "$with_amd_dbgapi" = yes; then
25164 # amd-dbgapi was not found and...
25166 # - a target requiring it was explicitly enabled, or
25167 # - the user explicitly wants to enable amd-dbgapi
25168 as_fn_error $?
"amd-dbgapi is required, but cannot find an appropriate version: $AMD_DBGAPI_PKG_ERRORS" "$LINENO" 5
25175 # For other settings, only the main target counts.
25178 targ
=$target; .
${srcdir}/configure.tgt
25180 # Fetch the default architecture and default target vector from BFD.
25181 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
25183 # We only want the first architecture, so strip off the others if
25184 # there is more than one.
25185 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
25187 if test "x$targ_archs" != x
; then
25189 cat >>confdefs.h
<<_ACEOF
25190 #define DEFAULT_BFD_ARCH $targ_archs
25194 if test "x$targ_defvec" != x
; then
25196 cat >>confdefs.h
<<_ACEOF
25197 #define DEFAULT_BFD_VEC $targ_defvec
25203 # Check whether --enable-tui was given.
25204 if test "${enable_tui+set}" = set; then :
25205 enableval
=$enable_tui;
25210 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5
25220 # Check whether --enable-gdbtk was given.
25221 if test "${enable_gdbtk+set}" = set; then :
25222 enableval
=$enable_gdbtk;
25227 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5
25232 if test -d "$srcdir/gdbtk"; then
25239 # We unconditionally disable gdbtk tests on selected platforms.
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
25243 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
25247 # Handle optional debuginfod support
25249 # Handle optional debuginfod support as well as optional section
25250 # downloading support.
25252 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
25254 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
25255 # version >= 0.188.
25257 # Check whether --with-debuginfod was given.
25258 if test "${with_debuginfod+set}" = set; then :
25259 withval
=$with_debuginfod;
25261 with_debuginfod
=auto
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
25265 $as_echo_n "checking whether to use debuginfod... " >&6; }
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
25267 $as_echo "$with_debuginfod" >&6; }
25269 if test "x$with_debuginfod" != xno
; then
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
25273 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
25275 if test -n "$DEBUGINFOD_CFLAGS"; then
25276 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
25277 elif test -n "$PKG_CONFIG"; then
25278 if test -n "$PKG_CONFIG" && \
25279 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
25280 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
25282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25283 test $ac_status = 0; }; then
25284 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
25285 test "x$?" != "x0" && pkg_failed
=yes
25292 if test -n "$DEBUGINFOD_LIBS"; then
25293 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
25294 elif test -n "$PKG_CONFIG"; then
25295 if test -n "$PKG_CONFIG" && \
25296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
25297 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
25299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25300 test $ac_status = 0; }; then
25301 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
25302 test "x$?" != "x0" && pkg_failed
=yes
25310 if test $pkg_failed = no
; then
25311 pkg_save_LDFLAGS
="$LDFLAGS"
25312 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
25313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25314 /* end confdefs.h. */
25324 if ac_fn_c_try_link
"$LINENO"; then :
25329 rm -f core conftest.err conftest.
$ac_objext \
25330 conftest
$ac_exeext conftest.
$ac_ext
25331 LDFLAGS
=$pkg_save_LDFLAGS
25336 if test $pkg_failed = yes; then
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25338 $as_echo "no" >&6; }
25340 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25341 _pkg_short_errors_supported
=yes
25343 _pkg_short_errors_supported
=no
25345 if test $_pkg_short_errors_supported = yes; then
25346 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
25348 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
25350 # Put the nasty error message in config.log where it belongs
25351 echo "$DEBUGINFOD_PKG_ERRORS" >&5
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
25354 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
25355 elif test $pkg_failed = untried
; then
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25357 $as_echo "no" >&6; }
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
25359 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
25361 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
25362 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25364 $as_echo "yes" >&6; }
25366 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
25373 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
25375 if test -n "$DEBUGINFOD_CFLAGS"; then
25376 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
25377 elif test -n "$PKG_CONFIG"; then
25378 if test -n "$PKG_CONFIG" && \
25379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
25380 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
25382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25383 test $ac_status = 0; }; then
25384 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
25385 test "x$?" != "x0" && pkg_failed
=yes
25392 if test -n "$DEBUGINFOD_LIBS"; then
25393 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
25394 elif test -n "$PKG_CONFIG"; then
25395 if test -n "$PKG_CONFIG" && \
25396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
25397 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
25399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25400 test $ac_status = 0; }; then
25401 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
25402 test "x$?" != "x0" && pkg_failed
=yes
25410 if test $pkg_failed = no
; then
25411 pkg_save_LDFLAGS
="$LDFLAGS"
25412 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
25413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25414 /* end confdefs.h. */
25424 if ac_fn_c_try_link
"$LINENO"; then :
25429 rm -f core conftest.err conftest.
$ac_objext \
25430 conftest
$ac_exeext conftest.
$ac_ext
25431 LDFLAGS
=$pkg_save_LDFLAGS
25436 if test $pkg_failed = yes; then
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25438 $as_echo "no" >&6; }
25440 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25441 _pkg_short_errors_supported
=yes
25443 _pkg_short_errors_supported
=no
25445 if test $_pkg_short_errors_supported = yes; then
25446 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
25448 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
25450 # Put the nasty error message in config.log where it belongs
25451 echo "$DEBUGINFOD_PKG_ERRORS" >&5
25453 if test "x$with_debuginfod" = xyes
; then
25454 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
25457 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
25459 elif test $pkg_failed = untried
; then
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25461 $as_echo "no" >&6; }
25462 if test "x$with_debuginfod" = xyes
; then
25463 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
25466 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
25469 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
25470 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25472 $as_echo "yes" >&6; }
25474 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
25479 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
25483 # Libunwind support for ia64.
25485 # Check whether --with-libunwind-ia64 was given.
25486 if test "${with_libunwind_ia64+set}" = set; then :
25487 withval
=$with_libunwind_ia64;
25489 with_libunwind_ia64
=auto
25493 # Backward compatibility option.
25494 if test "${with_libunwind+set}" = set; then
25495 if test x
"$with_libunwind_ia64" != xauto
; then
25496 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
25499 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
25500 with_libunwind_ia64
="$with_libunwind"
25503 case "$with_libunwind_ia64" in
25507 for ac_header
in libunwind-ia64.h
25509 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
25510 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
25511 cat >>confdefs.h
<<_ACEOF
25512 #define HAVE_LIBUNWIND_IA64_H 1
25519 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
25522 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
25526 if test x
"$with_libunwind_ia64" = xyes
; then
25527 for ac_header
in libunwind-ia64.h
25529 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
25530 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
25531 cat >>confdefs.h
<<_ACEOF
25532 #define HAVE_LIBUNWIND_IA64_H 1
25539 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
25540 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
25542 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
25543 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
25544 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
25549 # Check whether --with-curses was given.
25550 if test "${with_curses+set}" = set; then :
25551 withval
=$with_curses; opt_curses
=$withval
25556 if test "$opt_curses" = "yes"; then
25560 # Profiling support.
25561 # Check whether --enable-profiling was given.
25562 if test "${enable_profiling+set}" = set; then :
25563 enableval
=$enable_profiling;
25568 as_fn_error $?
"bad value $enableval for --enable-profiling" "$LINENO" 5
25573 enable_profiling
=no
25577 for ac_func
in monstartup _mcleanup
25579 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25580 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25581 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
25582 cat >>confdefs.h
<<_ACEOF
25583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
25590 $as_echo_n "checking for _etext... " >&6; }
25591 if ${ac_cv_var__etext+:} false
; then :
25592 $as_echo_n "(cached) " >&6
25594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25595 /* end confdefs.h. */
25596 #include <stdlib.h>
25597 extern char _etext;
25607 if ac_fn_c_try_link
"$LINENO"; then :
25608 ac_cv_var__etext
=yes
25610 ac_cv_var__etext
=no
25613 rm -f core conftest.err conftest.
$ac_objext \
25614 conftest
$ac_exeext conftest.
$ac_ext
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
25618 $as_echo "$ac_cv_var__etext" >&6; }
25619 if test "$ac_cv_var__etext" = yes; then
25621 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
25625 $as_echo_n "checking for etext... " >&6; }
25626 if ${ac_cv_var_etext+:} false
; then :
25627 $as_echo_n "(cached) " >&6
25629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25630 /* end confdefs.h. */
25631 #include <stdlib.h>
25642 if ac_fn_c_try_link
"$LINENO"; then :
25643 ac_cv_var_etext
=yes
25648 rm -f core conftest.err conftest.
$ac_objext \
25649 conftest
$ac_exeext conftest.
$ac_ext
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
25653 $as_echo "$ac_cv_var_etext" >&6; }
25654 if test "$ac_cv_var_etext" = yes; then
25656 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
25659 if test "$enable_profiling" = yes ; then
25660 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
25661 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
25664 OLD_CFLAGS
="$CFLAGS"
25665 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
25668 $as_echo_n "checking whether $CC supports -pg... " >&6; }
25669 if ${ac_cv_cc_supports_pg+:} false
; then :
25670 $as_echo_n "(cached) " >&6
25672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25673 /* end confdefs.h. */
25683 if ac_fn_c_try_compile
"$LINENO"; then :
25684 ac_cv_cc_supports_pg
=yes
25686 ac_cv_cc_supports_pg
=no
25689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
25693 $as_echo "$ac_cv_cc_supports_pg" >&6; }
25695 if test "$ac_cv_cc_supports_pg" = no
; then
25696 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
25699 CFLAGS
="$OLD_CFLAGS"
25703 # Check whether --enable-codesign was given.
25704 if test "${enable_codesign+set}" = set; then :
25705 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
25712 # Check whether --with-pkgversion was given.
25713 if test "${with_pkgversion+set}" = set; then :
25714 withval
=$with_pkgversion; case "$withval" in
25715 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
25717 *) PKGVERSION
="($withval) " ;;
25720 PKGVERSION
="(GDB) "
25728 # Check whether --with-bugurl was given.
25729 if test "${with_bugurl+set}" = set; then :
25730 withval
=$with_bugurl; case "$withval" in
25731 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
25734 *) BUGURL
="$withval"
25738 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
25748 REPORT_BUGS_TO
="<$BUGURL>"
25749 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
25756 cat >>confdefs.h
<<_ACEOF
25757 #define PKGVERSION "$PKGVERSION"
25761 cat >>confdefs.h
<<_ACEOF
25762 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
25766 # --------------------- #
25767 # Checks for programs. #
25768 # --------------------- #
25770 for ac_prog
in gawk mawk nawk
awk
25772 # Extract the first word of "$ac_prog", so it can be a program name with args.
25773 set dummy
$ac_prog; ac_word
=$2
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25775 $as_echo_n "checking for $ac_word... " >&6; }
25776 if ${ac_cv_prog_AWK+:} false
; then :
25777 $as_echo_n "(cached) " >&6
25779 if test -n "$AWK"; then
25780 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
25782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25783 for as_dir
in $PATH
25786 test -z "$as_dir" && as_dir
=.
25787 for ac_exec_ext
in '' $ac_executable_extensions; do
25788 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25789 ac_cv_prog_AWK
="$ac_prog"
25790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25799 AWK
=$ac_cv_prog_AWK
25800 if test -n "$AWK"; then
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25802 $as_echo "$AWK" >&6; }
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25805 $as_echo "no" >&6; }
25809 test -n "$AWK" && break
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25814 $as_echo_n "checking whether ln -s works... " >&6; }
25816 if test "$LN_S" = "ln -s"; then
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25818 $as_echo "yes" >&6; }
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25821 $as_echo "no, using $LN_S" >&6; }
25824 if test -n "$ac_tool_prefix"; then
25825 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
25826 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25828 $as_echo_n "checking for $ac_word... " >&6; }
25829 if ${ac_cv_prog_RANLIB+:} false
; then :
25830 $as_echo_n "(cached) " >&6
25832 if test -n "$RANLIB"; then
25833 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
25835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25836 for as_dir
in $PATH
25839 test -z "$as_dir" && as_dir
=.
25840 for ac_exec_ext
in '' $ac_executable_extensions; do
25841 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25842 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
25843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25852 RANLIB
=$ac_cv_prog_RANLIB
25853 if test -n "$RANLIB"; then
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
25855 $as_echo "$RANLIB" >&6; }
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25858 $as_echo "no" >&6; }
25863 if test -z "$ac_cv_prog_RANLIB"; then
25864 ac_ct_RANLIB
=$RANLIB
25865 # Extract the first word of "ranlib", so it can be a program name with args.
25866 set dummy ranlib
; ac_word
=$2
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25868 $as_echo_n "checking for $ac_word... " >&6; }
25869 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
25870 $as_echo_n "(cached) " >&6
25872 if test -n "$ac_ct_RANLIB"; then
25873 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
25875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25876 for as_dir
in $PATH
25879 test -z "$as_dir" && as_dir
=.
25880 for ac_exec_ext
in '' $ac_executable_extensions; do
25881 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25882 ac_cv_prog_ac_ct_RANLIB
="ranlib"
25883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25892 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
25893 if test -n "$ac_ct_RANLIB"; then
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
25895 $as_echo "$ac_ct_RANLIB" >&6; }
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25898 $as_echo "no" >&6; }
25901 if test "x$ac_ct_RANLIB" = x
; then
25904 case $cross_compiling:$ac_tool_warned in
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25908 ac_tool_warned
=yes ;;
25910 RANLIB
=$ac_ct_RANLIB
25913 RANLIB
="$ac_cv_prog_RANLIB"
25916 for ac_prog
in 'bison -y' byacc
25918 # Extract the first word of "$ac_prog", so it can be a program name with args.
25919 set dummy
$ac_prog; ac_word
=$2
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25921 $as_echo_n "checking for $ac_word... " >&6; }
25922 if ${ac_cv_prog_YACC+:} false
; then :
25923 $as_echo_n "(cached) " >&6
25925 if test -n "$YACC"; then
25926 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
25928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25929 for as_dir
in $PATH
25932 test -z "$as_dir" && as_dir
=.
25933 for ac_exec_ext
in '' $ac_executable_extensions; do
25934 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25935 ac_cv_prog_YACC
="$ac_prog"
25936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25945 YACC
=$ac_cv_prog_YACC
25946 if test -n "$YACC"; then
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
25948 $as_echo "$YACC" >&6; }
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25951 $as_echo "no" >&6; }
25955 test -n "$YACC" && break
25957 test -n "$YACC" || YACC
="yacc"
25960 if test -n "$ac_tool_prefix"; then
25961 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
25962 set dummy
${ac_tool_prefix}ar; ac_word
=$2
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25964 $as_echo_n "checking for $ac_word... " >&6; }
25965 if ${ac_cv_prog_AR+:} false
; then :
25966 $as_echo_n "(cached) " >&6
25968 if test -n "$AR"; then
25969 ac_cv_prog_AR
="$AR" # Let the user override the test.
25971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25972 for as_dir
in $PATH
25975 test -z "$as_dir" && as_dir
=.
25976 for ac_exec_ext
in '' $ac_executable_extensions; do
25977 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25978 ac_cv_prog_AR
="${ac_tool_prefix}ar"
25979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25989 if test -n "$AR"; then
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
25991 $as_echo "$AR" >&6; }
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25994 $as_echo "no" >&6; }
25999 if test -z "$ac_cv_prog_AR"; then
26001 # Extract the first word of "ar", so it can be a program name with args.
26002 set dummy
ar; ac_word
=$2
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26004 $as_echo_n "checking for $ac_word... " >&6; }
26005 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
26006 $as_echo_n "(cached) " >&6
26008 if test -n "$ac_ct_AR"; then
26009 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
26011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26012 for as_dir
in $PATH
26015 test -z "$as_dir" && as_dir
=.
26016 for ac_exec_ext
in '' $ac_executable_extensions; do
26017 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26018 ac_cv_prog_ac_ct_AR
="ar"
26019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26028 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
26029 if test -n "$ac_ct_AR"; then
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
26031 $as_echo "$ac_ct_AR" >&6; }
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26034 $as_echo "no" >&6; }
26037 if test "x$ac_ct_AR" = x
; then
26040 case $cross_compiling:$ac_tool_warned in
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26044 ac_tool_warned
=yes ;;
26049 AR
="$ac_cv_prog_AR"
26052 if test -n "$ac_tool_prefix"; then
26053 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
26054 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26056 $as_echo_n "checking for $ac_word... " >&6; }
26057 if ${ac_cv_prog_DLLTOOL+:} false
; then :
26058 $as_echo_n "(cached) " >&6
26060 if test -n "$DLLTOOL"; then
26061 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
26063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26064 for as_dir
in $PATH
26067 test -z "$as_dir" && as_dir
=.
26068 for ac_exec_ext
in '' $ac_executable_extensions; do
26069 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26070 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
26071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26080 DLLTOOL
=$ac_cv_prog_DLLTOOL
26081 if test -n "$DLLTOOL"; then
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
26083 $as_echo "$DLLTOOL" >&6; }
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26086 $as_echo "no" >&6; }
26091 if test -z "$ac_cv_prog_DLLTOOL"; then
26092 ac_ct_DLLTOOL
=$DLLTOOL
26093 # Extract the first word of "dlltool", so it can be a program name with args.
26094 set dummy dlltool
; ac_word
=$2
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26096 $as_echo_n "checking for $ac_word... " >&6; }
26097 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
26098 $as_echo_n "(cached) " >&6
26100 if test -n "$ac_ct_DLLTOOL"; then
26101 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
26103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26104 for as_dir
in $PATH
26107 test -z "$as_dir" && as_dir
=.
26108 for ac_exec_ext
in '' $ac_executable_extensions; do
26109 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26110 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
26111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26120 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
26121 if test -n "$ac_ct_DLLTOOL"; then
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
26123 $as_echo "$ac_ct_DLLTOOL" >&6; }
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26126 $as_echo "no" >&6; }
26129 if test "x$ac_ct_DLLTOOL" = x
; then
26132 case $cross_compiling:$ac_tool_warned in
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26136 ac_tool_warned
=yes ;;
26138 DLLTOOL
=$ac_ct_DLLTOOL
26141 DLLTOOL
="$ac_cv_prog_DLLTOOL"
26144 if test -n "$ac_tool_prefix"; then
26145 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
26146 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26148 $as_echo_n "checking for $ac_word... " >&6; }
26149 if ${ac_cv_prog_WINDRES+:} false
; then :
26150 $as_echo_n "(cached) " >&6
26152 if test -n "$WINDRES"; then
26153 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
26155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26156 for as_dir
in $PATH
26159 test -z "$as_dir" && as_dir
=.
26160 for ac_exec_ext
in '' $ac_executable_extensions; do
26161 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26162 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
26163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26172 WINDRES
=$ac_cv_prog_WINDRES
26173 if test -n "$WINDRES"; then
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
26175 $as_echo "$WINDRES" >&6; }
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26178 $as_echo "no" >&6; }
26183 if test -z "$ac_cv_prog_WINDRES"; then
26184 ac_ct_WINDRES
=$WINDRES
26185 # Extract the first word of "windres", so it can be a program name with args.
26186 set dummy windres
; ac_word
=$2
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26188 $as_echo_n "checking for $ac_word... " >&6; }
26189 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
26190 $as_echo_n "(cached) " >&6
26192 if test -n "$ac_ct_WINDRES"; then
26193 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
26195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26196 for as_dir
in $PATH
26199 test -z "$as_dir" && as_dir
=.
26200 for ac_exec_ext
in '' $ac_executable_extensions; do
26201 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26202 ac_cv_prog_ac_ct_WINDRES
="windres"
26203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26212 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
26213 if test -n "$ac_ct_WINDRES"; then
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
26215 $as_echo "$ac_ct_WINDRES" >&6; }
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26218 $as_echo "no" >&6; }
26221 if test "x$ac_ct_WINDRES" = x
; then
26224 case $cross_compiling:$ac_tool_warned in
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26228 ac_tool_warned
=yes ;;
26230 WINDRES
=$ac_ct_WINDRES
26233 WINDRES
="$ac_cv_prog_WINDRES"
26239 # Needed for GNU Hurd hosts.
26240 if test -n "$ac_tool_prefix"; then
26241 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
26242 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26244 $as_echo_n "checking for $ac_word... " >&6; }
26245 if ${ac_cv_prog_MIG+:} false
; then :
26246 $as_echo_n "(cached) " >&6
26248 if test -n "$MIG"; then
26249 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
26251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26252 for as_dir
in $PATH
26255 test -z "$as_dir" && as_dir
=.
26256 for ac_exec_ext
in '' $ac_executable_extensions; do
26257 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26258 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
26259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26268 MIG
=$ac_cv_prog_MIG
26269 if test -n "$MIG"; then
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
26271 $as_echo "$MIG" >&6; }
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26274 $as_echo "no" >&6; }
26279 if test -z "$ac_cv_prog_MIG"; then
26281 # Extract the first word of "mig", so it can be a program name with args.
26282 set dummy mig
; ac_word
=$2
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26284 $as_echo_n "checking for $ac_word... " >&6; }
26285 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
26286 $as_echo_n "(cached) " >&6
26288 if test -n "$ac_ct_MIG"; then
26289 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
26291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26292 for as_dir
in $PATH
26295 test -z "$as_dir" && as_dir
=.
26296 for ac_exec_ext
in '' $ac_executable_extensions; do
26297 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26298 ac_cv_prog_ac_ct_MIG
="mig"
26299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26308 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
26309 if test -n "$ac_ct_MIG"; then
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
26311 $as_echo "$ac_ct_MIG" >&6; }
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26314 $as_echo "no" >&6; }
26317 if test "x$ac_ct_MIG" = x
; then
26320 case $cross_compiling:$ac_tool_warned in
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26324 ac_tool_warned
=yes ;;
26329 MIG
="$ac_cv_prog_MIG"
26332 if test x
"$MIG" = x
; then
26333 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
26338 # ---------------------- #
26339 # Checks for libraries. #
26340 # ---------------------- #
26342 # We might need to link with -lm; most simulators need it.
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
26344 $as_echo_n "checking for main in -lm... " >&6; }
26345 if ${ac_cv_lib_m_main+:} false
; then :
26346 $as_echo_n "(cached) " >&6
26348 ac_check_lib_save_LIBS
=$LIBS
26350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26351 /* end confdefs.h. */
26362 if ac_fn_c_try_link
"$LINENO"; then :
26363 ac_cv_lib_m_main
=yes
26365 ac_cv_lib_m_main
=no
26367 rm -f core conftest.err conftest.
$ac_objext \
26368 conftest
$ac_exeext conftest.
$ac_ext
26369 LIBS
=$ac_check_lib_save_LIBS
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
26372 $as_echo "$ac_cv_lib_m_main" >&6; }
26373 if test "x$ac_cv_lib_m_main" = xyes
; then :
26374 cat >>confdefs.h
<<_ACEOF
26375 #define HAVE_LIBM 1
26383 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26385 $as_echo_n "checking for library containing gethostbyname... " >&6; }
26386 if ${ac_cv_search_gethostbyname+:} false
; then :
26387 $as_echo_n "(cached) " >&6
26389 ac_func_search_save_LIBS
=$LIBS
26390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26391 /* end confdefs.h. */
26393 /* Override any GCC internal prototype to avoid an error.
26394 Use char because int might match the return type of a GCC
26395 builtin and then its argument prototype would still apply. */
26399 char gethostbyname ();
26403 return gethostbyname ();
26408 for ac_lib
in '' nsl
; do
26409 if test -z "$ac_lib"; then
26410 ac_res
="none required"
26413 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26415 if ac_fn_c_try_link
"$LINENO"; then :
26416 ac_cv_search_gethostbyname
=$ac_res
26418 rm -f core conftest.err conftest.
$ac_objext \
26420 if ${ac_cv_search_gethostbyname+:} false
; then :
26424 if ${ac_cv_search_gethostbyname+:} false
; then :
26427 ac_cv_search_gethostbyname
=no
26429 rm conftest.
$ac_ext
26430 LIBS
=$ac_func_search_save_LIBS
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26433 $as_echo "$ac_cv_search_gethostbyname" >&6; }
26434 ac_res
=$ac_cv_search_gethostbyname
26435 if test "$ac_res" != no
; then :
26436 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26441 # Link in zlib/zstd if we can. This allows us to read compressed debug
26444 # Use the system's zlib library.
26445 zlibdir
="-L\$(top_builddir)/../zlib"
26446 zlibinc
="-I\$(top_srcdir)/../zlib"
26448 # Check whether --with-system-zlib was given.
26449 if test "${with_system_zlib+set}" = set; then :
26450 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
26462 # Check whether --with-zstd was given.
26463 if test "${with_zstd+set}" = set; then :
26464 withval
=$with_zstd;
26470 if test "$with_zstd" != no
; then :
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
26474 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
26476 if test -n "$ZSTD_CFLAGS"; then
26477 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
26478 elif test -n "$PKG_CONFIG"; then
26479 if test -n "$PKG_CONFIG" && \
26480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
26481 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
26483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26484 test $ac_status = 0; }; then
26485 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
26486 test "x$?" != "x0" && pkg_failed
=yes
26493 if test -n "$ZSTD_LIBS"; then
26494 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
26495 elif test -n "$PKG_CONFIG"; then
26496 if test -n "$PKG_CONFIG" && \
26497 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
26498 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
26500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26501 test $ac_status = 0; }; then
26502 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
26503 test "x$?" != "x0" && pkg_failed
=yes
26511 if test $pkg_failed = no
; then
26512 pkg_save_LDFLAGS
="$LDFLAGS"
26513 LDFLAGS
="$LDFLAGS $pkg_cv_ZSTD_LIBS"
26514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26515 /* end confdefs.h. */
26525 if ac_fn_c_try_link
"$LINENO"; then :
26530 rm -f core conftest.err conftest.
$ac_objext \
26531 conftest
$ac_exeext conftest.
$ac_ext
26532 LDFLAGS
=$pkg_save_LDFLAGS
26537 if test $pkg_failed = yes; then
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26539 $as_echo "no" >&6; }
26541 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26542 _pkg_short_errors_supported
=yes
26544 _pkg_short_errors_supported
=no
26546 if test $_pkg_short_errors_supported = yes; then
26547 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
26549 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
26551 # Put the nasty error message in config.log where it belongs
26552 echo "$ZSTD_PKG_ERRORS" >&5
26555 if test "$with_zstd" = yes; then
26556 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
26559 elif test $pkg_failed = untried
; then
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26561 $as_echo "no" >&6; }
26563 if test "$with_zstd" = yes; then
26564 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
26568 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
26569 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26571 $as_echo "yes" >&6; }
26574 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
26587 am_save_CPPFLAGS
="$CPPFLAGS"
26589 for element
in $INCICONV; do
26591 for x
in $CPPFLAGS; do
26593 acl_save_prefix
="$prefix"
26594 prefix
="$acl_final_prefix"
26595 acl_save_exec_prefix
="$exec_prefix"
26596 exec_prefix
="$acl_final_exec_prefix"
26598 exec_prefix
="$acl_save_exec_prefix"
26599 prefix
="$acl_save_prefix"
26601 if test "X$x" = "X$element"; then
26606 if test -z "$haveit"; then
26607 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
26613 $as_echo_n "checking for iconv... " >&6; }
26614 if ${am_cv_func_iconv+:} false
; then :
26615 $as_echo_n "(cached) " >&6
26618 am_cv_func_iconv
="no, consider installing GNU libiconv"
26620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26621 /* end confdefs.h. */
26623 #include <stdlib.h>
26629 iconv_t cd = iconv_open("","");
26630 iconv(cd,NULL,NULL,NULL,NULL);
26636 if ac_fn_c_try_link
"$LINENO"; then :
26637 am_cv_func_iconv
=yes
26639 rm -f core conftest.err conftest.
$ac_objext \
26640 conftest
$ac_exeext conftest.
$ac_ext
26641 if test "$am_cv_func_iconv" != yes; then
26642 am_save_LIBS
="$LIBS"
26643 LIBS
="$LIBS $LIBICONV"
26644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26645 /* end confdefs.h. */
26647 #include <stdlib.h>
26653 iconv_t cd = iconv_open("","");
26654 iconv(cd,NULL,NULL,NULL,NULL);
26660 if ac_fn_c_try_link
"$LINENO"; then :
26661 am_cv_lib_iconv
=yes
26662 am_cv_func_iconv
=yes
26664 rm -f core conftest.err conftest.
$ac_objext \
26665 conftest
$ac_exeext conftest.
$ac_ext
26666 LIBS
="$am_save_LIBS"
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
26671 $as_echo "$am_cv_func_iconv" >&6; }
26672 if test "$am_cv_func_iconv" = yes; then
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
26674 $as_echo_n "checking for working iconv... " >&6; }
26675 if ${am_cv_func_iconv_works+:} false
; then :
26676 $as_echo_n "(cached) " >&6
26679 am_save_LIBS
="$LIBS"
26680 if test $am_cv_lib_iconv = yes; then
26681 LIBS
="$LIBS $LIBICONV"
26683 am_cv_func_iconv_works
=no
26684 for ac_iconv_const
in '' 'const'; do
26685 if test "$cross_compiling" = yes; then :
26687 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
26688 *) am_cv_func_iconv_works
="guessing yes" ;;
26691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26692 /* end confdefs.h. */
26695 #include <string.h>
26697 #ifndef ICONV_CONST
26698 # define ICONV_CONST $ac_iconv_const
26705 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
26706 successful returns. This is even documented in
26707 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
26709 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
26710 if (cd_utf8_to_88591 != (iconv_t)(-1))
26712 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
26714 ICONV_CONST char *inptr = input;
26715 size_t inbytesleft = strlen (input);
26716 char *outptr = buf;
26717 size_t outbytesleft = sizeof (buf);
26718 size_t res = iconv (cd_utf8_to_88591,
26719 &inptr, &inbytesleft,
26720 &outptr, &outbytesleft);
26723 iconv_close (cd_utf8_to_88591);
26726 /* Test against Solaris 10 bug: Failures are not distinguishable from
26727 successful returns. */
26729 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
26730 if (cd_ascii_to_88591 != (iconv_t)(-1))
26732 static ICONV_CONST char input[] = "\263";
26734 ICONV_CONST char *inptr = input;
26735 size_t inbytesleft = strlen (input);
26736 char *outptr = buf;
26737 size_t outbytesleft = sizeof (buf);
26738 size_t res = iconv (cd_ascii_to_88591,
26739 &inptr, &inbytesleft,
26740 &outptr, &outbytesleft);
26743 iconv_close (cd_ascii_to_88591);
26746 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
26748 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
26749 if (cd_88591_to_utf8 != (iconv_t)(-1))
26751 static ICONV_CONST char input[] = "\304";
26752 static char buf[2] = { (char)0xDE, (char)0xAD };
26753 ICONV_CONST char *inptr = input;
26754 size_t inbytesleft = 1;
26755 char *outptr = buf;
26756 size_t outbytesleft = 1;
26757 size_t res = iconv (cd_88591_to_utf8,
26758 &inptr, &inbytesleft,
26759 &outptr, &outbytesleft);
26760 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
26762 iconv_close (cd_88591_to_utf8);
26765 #if 0 /* This bug could be worked around by the caller. */
26766 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
26768 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
26769 if (cd_88591_to_utf8 != (iconv_t)(-1))
26771 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
26773 ICONV_CONST char *inptr = input;
26774 size_t inbytesleft = strlen (input);
26775 char *outptr = buf;
26776 size_t outbytesleft = sizeof (buf);
26777 size_t res = iconv (cd_88591_to_utf8,
26778 &inptr, &inbytesleft,
26779 &outptr, &outbytesleft);
26782 iconv_close (cd_88591_to_utf8);
26786 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
26789 /* Try standardized names. */
26790 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
26791 /* Try IRIX, OSF/1 names. */
26792 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
26793 /* Try AIX names. */
26794 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
26795 /* Try HP-UX names. */
26796 iconv_t cd4 = iconv_open ("utf8", "eucJP");
26797 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
26798 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
26800 if (cd1 != (iconv_t)(-1))
26802 if (cd2 != (iconv_t)(-1))
26804 if (cd3 != (iconv_t)(-1))
26806 if (cd4 != (iconv_t)(-1))
26815 if ac_fn_c_try_run
"$LINENO"; then :
26816 am_cv_func_iconv_works
=yes
26818 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26819 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26822 test "$am_cv_func_iconv_works" = no ||
break
26824 LIBS
="$am_save_LIBS"
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
26828 $as_echo "$am_cv_func_iconv_works" >&6; }
26829 case "$am_cv_func_iconv_works" in
26830 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
26831 *) am_func_iconv
=yes ;;
26834 am_func_iconv
=no am_cv_lib_iconv
=no
26836 if test "$am_func_iconv" = yes; then
26838 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
26841 if test "$am_cv_lib_iconv" = yes; then
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
26843 $as_echo_n "checking how to link with libiconv... " >&6; }
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
26845 $as_echo "$LIBICONV" >&6; }
26847 CPPFLAGS
="$am_save_CPPFLAGS"
26854 if test "$am_cv_func_iconv" = yes; then
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
26856 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
26857 if ${gl_cv_iconv_nonconst+:} false
; then :
26858 $as_echo_n "(cached) " >&6
26860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26861 /* end confdefs.h. */
26863 #include <stdlib.h>
26869 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26879 if ac_fn_c_try_compile
"$LINENO"; then :
26880 gl_cv_iconv_nonconst
=yes
26882 gl_cv_iconv_nonconst
=no
26884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
26888 $as_echo "$gl_cv_iconv_nonconst" >&6; }
26890 gl_cv_iconv_nonconst
=yes
26892 if test $gl_cv_iconv_nonconst = yes; then
26898 cat >>confdefs.h
<<_ACEOF
26899 #define ICONV_CONST $iconv_arg1
26904 if test "$am_func_iconv" = yes; then
26905 if test -n "$LIBICONV"; then
26906 am_cv_func_iconv_summary
='yes, in libiconv'
26908 am_cv_func_iconv_summary
='yes, in libc'
26911 if test "$am_cv_func_iconv" = yes; then
26912 am_cv_func_iconv_summary
='not working, consider installing GNU libiconv'
26914 am_cv_func_iconv_summary
='no, consider installing GNU libiconv'
26919 # GDB may fork/exec the iconv program to get the list of supported character
26920 # sets. Allow the user to specify where to find it.
26921 # There are several factors affecting the choice of option name:
26922 # - There is already --with-libiconv-prefix but we can't use it, it specifies
26923 # the build-time location of libiconv files.
26924 # - The program we need to find is iconv, which comes with glibc. The user
26925 # doesn't necessarily have libiconv installed. Therefore naming this
26926 # --with-libiconv-foo feels wrong.
26927 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
26928 # defined to work on directories not files (though it really doesn't know
26930 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
26931 # with --with-libiconv-prefix.
26932 # Putting these together is why the option name is --with-iconv-bin.
26935 # Check whether --with-iconv-bin was given.
26936 if test "${with_iconv_bin+set}" = set; then :
26937 withval
=$with_iconv_bin; iconv_bin
="${withval}"
26939 cat >>confdefs.h
<<_ACEOF
26940 #define ICONV_BIN "${iconv_bin}"
26944 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
26945 if test "x$prefix" = xNONE
; then
26946 test_prefix
=/usr
/local
26948 test_prefix
=$prefix
26951 test_prefix
=$exec_prefix
26954 case ${iconv_bin} in
26955 "${test_prefix}"|
"${test_prefix}/"*|\
26956 '${exec_prefix}'|
'${exec_prefix}/'*)
26961 cat >>confdefs.h
<<_ACEOF
26962 #define ICONV_BIN_RELOCATABLE $value
26970 # For the TUI, we need enhanced curses functionality.
26971 if test x
"$enable_tui" != xno
; then
26976 if test x
"$prefer_curses" = xyes
; then
26977 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
26978 # curses library because the latter might not provide all the
26979 # functionality we need. However, this leads to problems on systems
26980 # where the linker searches /usr/local/lib, but the compiler doesn't
26981 # search /usr/local/include, if ncurses is installed in /usr/local. A
26982 # default installation of ncurses on alpha*-dec-osf* will lead to such
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
26985 $as_echo_n "checking for library containing waddstr... " >&6; }
26986 if ${ac_cv_search_waddstr+:} false
; then :
26987 $as_echo_n "(cached) " >&6
26989 ac_func_search_save_LIBS
=$LIBS
26990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26991 /* end confdefs.h. */
26993 /* Override any GCC internal prototype to avoid an error.
26994 Use char because int might match the return type of a GCC
26995 builtin and then its argument prototype would still apply. */
27008 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
27009 if test -z "$ac_lib"; then
27010 ac_res
="none required"
27013 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27015 if ac_fn_c_try_link
"$LINENO"; then :
27016 ac_cv_search_waddstr
=$ac_res
27018 rm -f core conftest.err conftest.
$ac_objext \
27020 if ${ac_cv_search_waddstr+:} false
; then :
27024 if ${ac_cv_search_waddstr+:} false
; then :
27027 ac_cv_search_waddstr
=no
27029 rm conftest.
$ac_ext
27030 LIBS
=$ac_func_search_save_LIBS
27032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
27033 $as_echo "$ac_cv_search_waddstr" >&6; }
27034 ac_res
=$ac_cv_search_waddstr
27035 if test "$ac_res" != no
; then :
27036 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27039 $as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h
27046 # Check whether we should enable the TUI, but only do so if we really
27048 if test x
"$enable_tui" != xno
; then
27049 if test "$curses_found" != no
; then
27050 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
27051 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
27052 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
27053 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
27055 if test x
"$enable_tui" = xyes
; then
27056 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
27059 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
27064 # Since GDB uses Readline, we need termcap functionality. In many
27065 # cases this will be provided by the curses library, but some systems
27066 # have a separate termcap library, or no curses library at all.
27070 if test -d "$srcdir/libtermcap"; then
27071 LIBS
="../libtermcap/libtermcap.a $LIBS"
27072 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
27075 ac_cv_search_tgetent
="none required"
27079 # These are the libraries checked by Readline.
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
27081 $as_echo_n "checking for library containing tgetent... " >&6; }
27082 if ${ac_cv_search_tgetent+:} false
; then :
27083 $as_echo_n "(cached) " >&6
27085 ac_func_search_save_LIBS
=$LIBS
27086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27087 /* end confdefs.h. */
27089 /* Override any GCC internal prototype to avoid an error.
27090 Use char because int might match the return type of a GCC
27091 builtin and then its argument prototype would still apply. */
27104 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
27105 if test -z "$ac_lib"; then
27106 ac_res
="none required"
27109 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27111 if ac_fn_c_try_link
"$LINENO"; then :
27112 ac_cv_search_tgetent
=$ac_res
27114 rm -f core conftest.err conftest.
$ac_objext \
27116 if ${ac_cv_search_tgetent+:} false
; then :
27120 if ${ac_cv_search_tgetent+:} false
; then :
27123 ac_cv_search_tgetent
=no
27125 rm conftest.
$ac_ext
27126 LIBS
=$ac_func_search_save_LIBS
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
27129 $as_echo "$ac_cv_search_tgetent" >&6; }
27130 ac_res
=$ac_cv_search_tgetent
27131 if test "$ac_res" != no
; then :
27132 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27137 if test "$ac_cv_search_tgetent" = no
; then
27138 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
27142 # Check whether --with-system-readline was given.
27143 if test "${with_system_readline+set}" = set; then :
27144 withval
=$with_system_readline;
27148 if test "$with_system_readline" = yes; then
27149 for ac_header
in readline
/readline.h
27151 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
27152 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
27153 cat >>confdefs.h
<<_ACEOF
27154 #define HAVE_READLINE_READLINE_H 1
27163 if test "$readline_h" = "no"; then
27164 as_fn_error $?
"readline development packages are probably missing" "$LINENO" 5
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
27167 $as_echo_n "checking whether system readline is new enough... " >&6; }
27168 if ${gdb_cv_readline_ok+:} false
; then :
27169 $as_echo_n "(cached) " >&6
27171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27172 /* end confdefs.h. */
27174 #include <readline/readline.h>
27178 #if RL_VERSION_MAJOR < 7
27179 # error "readline version 7 required"
27186 if ac_fn_c_try_compile
"$LINENO"; then :
27187 gdb_cv_readline_ok
=yes
27189 gdb_cv_readline_ok
=no
27192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
27196 $as_echo "$gdb_cv_readline_ok" >&6; }
27197 if test "$gdb_cv_readline_ok" != yes; then
27198 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
27201 READLINE
=-lreadline
27204 READLINE_TEXI_INCFLAG
=
27205 READLINE_DOC_SOURCE_INCLUDES
='$(READLINE_SYSTEM_DOC_INCLUDES)'
27207 READLINE
='$(READLINE_DIR)/libreadline.a'
27208 READLINE_DEPS
='$(READLINE)'
27209 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
27210 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
27211 READLINE_DOC_SOURCE_INCLUDES
='$(READLINE_INTREE_DOC_INCLUDES)'
27219 # Generate jit-reader.h
27221 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
27224 # The cast to long int works around a bug in the HP C Compiler
27225 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27226 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27227 # This bug is HP SR number 8606223364.
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
27229 $as_echo_n "checking size of unsigned long long... " >&6; }
27230 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
27231 $as_echo_n "(cached) " >&6
27233 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
27236 if test "$ac_cv_type_unsigned_long_long" = yes; then
27237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27239 as_fn_error
77 "cannot compute sizeof (unsigned long long)
27240 See \`config.log' for more details" "$LINENO" 5; }
27242 ac_cv_sizeof_unsigned_long_long
=0
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
27248 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
27252 cat >>confdefs.h
<<_ACEOF
27253 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27257 # The cast to long int works around a bug in the HP C Compiler
27258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27260 # This bug is HP SR number 8606223364.
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
27262 $as_echo_n "checking size of unsigned long... " >&6; }
27263 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
27264 $as_echo_n "(cached) " >&6
27266 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
27269 if test "$ac_cv_type_unsigned_long" = yes; then
27270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27272 as_fn_error
77 "cannot compute sizeof (unsigned long)
27273 See \`config.log' for more details" "$LINENO" 5; }
27275 ac_cv_sizeof_unsigned_long
=0
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
27281 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
27285 cat >>confdefs.h
<<_ACEOF
27286 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
27290 # The cast to long int works around a bug in the HP C Compiler
27291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27293 # This bug is HP SR number 8606223364.
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
27295 $as_echo_n "checking size of unsigned __int128... " >&6; }
27296 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
27297 $as_echo_n "(cached) " >&6
27299 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
27302 if test "$ac_cv_type_unsigned___int128" = yes; then
27303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27305 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
27306 See \`config.log' for more details" "$LINENO" 5; }
27308 ac_cv_sizeof_unsigned___int128
=0
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
27314 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
27318 cat >>confdefs.h
<<_ACEOF
27319 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
27324 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
27325 TARGET_PTR
="unsigned long"
27326 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
27327 TARGET_PTR
="unsigned long long"
27328 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
27329 TARGET_PTR
="unsigned __int128"
27331 TARGET_PTR
="unsigned long"
27335 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
27338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27339 $as_echo_n "checking for library containing dlopen... " >&6; }
27340 if ${ac_cv_search_dlopen+:} false
; then :
27341 $as_echo_n "(cached) " >&6
27343 ac_func_search_save_LIBS
=$LIBS
27344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27345 /* end confdefs.h. */
27347 /* Override any GCC internal prototype to avoid an error.
27348 Use char because int might match the return type of a GCC
27349 builtin and then its argument prototype would still apply. */
27362 for ac_lib
in '' dl
; do
27363 if test -z "$ac_lib"; then
27364 ac_res
="none required"
27367 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27369 if ac_fn_c_try_link
"$LINENO"; then :
27370 ac_cv_search_dlopen
=$ac_res
27372 rm -f core conftest.err conftest.
$ac_objext \
27374 if ${ac_cv_search_dlopen+:} false
; then :
27378 if ${ac_cv_search_dlopen+:} false
; then :
27381 ac_cv_search_dlopen
=no
27383 rm conftest.
$ac_ext
27384 LIBS
=$ac_func_search_save_LIBS
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27387 $as_echo "$ac_cv_search_dlopen" >&6; }
27388 ac_res
=$ac_cv_search_dlopen
27389 if test "$ac_res" != no
; then :
27390 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27397 # Check whether --with-jit-reader-dir was given.
27398 if test "${with_jit_reader_dir+set}" = set; then :
27399 withval
=$with_jit_reader_dir;
27400 JIT_READER_DIR
=$withval
27402 JIT_READER_DIR
=${libdir}/gdb
27406 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
27407 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27408 ac_define_dir
=`eval echo $JIT_READER_DIR`
27409 ac_define_dir
=`eval echo $ac_define_dir`
27411 cat >>confdefs.h
<<_ACEOF
27412 #define JIT_READER_DIR "$ac_define_dir"
27418 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
27419 if test "x$prefix" = xNONE
; then
27420 test_prefix
=/usr
/local
27422 test_prefix
=$prefix
27425 test_prefix
=$exec_prefix
27428 case ${ac_define_dir} in
27429 "${test_prefix}"|
"${test_prefix}/"*|\
27430 '${exec_prefix}'|
'${exec_prefix}/'*)
27435 cat >>confdefs.h
<<_ACEOF
27436 #define JIT_READER_DIR_RELOCATABLE $value
27443 # Check whether --with-expat was given.
27444 if test "${with_expat+set}" = set; then :
27445 withval
=$with_expat;
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
27451 $as_echo_n "checking whether to use expat... " >&6; }
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
27453 $as_echo "$with_expat" >&6; }
27455 if test "${with_expat}" = no
; then
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
27457 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
27470 acl_save_prefix
="$prefix"
27471 prefix
="$acl_final_prefix"
27472 acl_save_exec_prefix
="$exec_prefix"
27473 exec_prefix
="$acl_final_exec_prefix"
27475 eval additional_includedir
=\"$includedir\"
27476 eval additional_libdir
=\"$libdir\"
27478 exec_prefix
="$acl_save_exec_prefix"
27479 prefix
="$acl_save_prefix"
27482 # Check whether --with-libexpat-prefix was given.
27483 if test "${with_libexpat_prefix+set}" = set; then :
27484 withval
=$with_libexpat_prefix;
27485 if test "X$withval" = "Xno"; then
27488 if test "X$withval" = "X"; then
27490 acl_save_prefix
="$prefix"
27491 prefix
="$acl_final_prefix"
27492 acl_save_exec_prefix
="$exec_prefix"
27493 exec_prefix
="$acl_final_exec_prefix"
27495 eval additional_includedir
=\"$includedir\"
27496 eval additional_libdir
=\"$libdir\"
27498 exec_prefix
="$acl_save_exec_prefix"
27499 prefix
="$acl_save_prefix"
27502 additional_includedir
="$withval/include"
27503 additional_libdir
="$withval/lib"
27510 # Check whether --with-libexpat-type was given.
27511 if test "${with_libexpat_type+set}" = set; then :
27512 withval
=$with_libexpat_type; with_libexpat_type
=$withval
27514 with_libexpat_type
=auto
27517 lib_type
=`eval echo \$with_libexpat_type`
27524 names_already_handled
=
27525 names_next_round
='expat '
27526 while test -n "$names_next_round"; do
27527 names_this_round
="$names_next_round"
27529 for name
in $names_this_round; do
27531 for n
in $names_already_handled; do
27532 if test "$n" = "$name"; then
27533 already_handled
=yes
27537 if test -z "$already_handled"; then
27538 names_already_handled
="$names_already_handled $name"
27539 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27540 eval value
=\"\
$HAVE_LIB$uppername\"
27541 if test -n "$value"; then
27542 if test "$value" = yes; then
27543 eval value
=\"\
$LIB$uppername\"
27544 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
27545 eval value
=\"\
$LTLIB$uppername\"
27546 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
27555 if test $use_additional = yes; then
27556 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
27557 found_dir
="$additional_libdir"
27558 found_so
="$additional_libdir/lib$name.$shlibext"
27559 if test -f "$additional_libdir/lib$name.la"; then
27560 found_la
="$additional_libdir/lib$name.la"
27562 elif test x
$lib_type != xshared
; then
27563 if test -f "$additional_libdir/lib$name.$libext"; then
27564 found_dir
="$additional_libdir"
27565 found_a
="$additional_libdir/lib$name.$libext"
27566 if test -f "$additional_libdir/lib$name.la"; then
27567 found_la
="$additional_libdir/lib$name.la"
27572 if test "X$found_dir" = "X"; then
27573 for x
in $LDFLAGS $LTLIBEXPAT; do
27575 acl_save_prefix
="$prefix"
27576 prefix
="$acl_final_prefix"
27577 acl_save_exec_prefix
="$exec_prefix"
27578 exec_prefix
="$acl_final_exec_prefix"
27580 exec_prefix
="$acl_save_exec_prefix"
27581 prefix
="$acl_save_prefix"
27585 dir
=`echo "X$x" | sed -e 's/^X-L//'`
27586 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
27588 found_so
="$dir/lib$name.$shlibext"
27589 if test -f "$dir/lib$name.la"; then
27590 found_la
="$dir/lib$name.la"
27592 elif test x
$lib_type != xshared
; then
27593 if test -f "$dir/lib$name.$libext"; then
27595 found_a
="$dir/lib$name.$libext"
27596 if test -f "$dir/lib$name.la"; then
27597 found_la
="$dir/lib$name.la"
27603 if test "X$found_dir" != "X"; then
27608 if test "X$found_dir" != "X"; then
27609 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
27610 if test "X$found_so" != "X"; then
27611 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
27612 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27615 for x
in $ltrpathdirs; do
27616 if test "X$x" = "X$found_dir"; then
27621 if test -z "$haveit"; then
27622 ltrpathdirs
="$ltrpathdirs $found_dir"
27624 if test "$hardcode_direct" = yes; then
27625 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27627 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
27628 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27630 for x
in $rpathdirs; do
27631 if test "X$x" = "X$found_dir"; then
27636 if test -z "$haveit"; then
27637 rpathdirs
="$rpathdirs $found_dir"
27641 for x
in $LDFLAGS $LIBEXPAT; do
27643 acl_save_prefix
="$prefix"
27644 prefix
="$acl_final_prefix"
27645 acl_save_exec_prefix
="$exec_prefix"
27646 exec_prefix
="$acl_final_exec_prefix"
27648 exec_prefix
="$acl_save_exec_prefix"
27649 prefix
="$acl_save_prefix"
27651 if test "X$x" = "X-L$found_dir"; then
27656 if test -z "$haveit"; then
27657 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
27659 if test "$hardcode_minus_L" != no
; then
27660 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27662 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
27668 if test "X$found_a" != "X"; then
27669 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
27671 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
27674 additional_includedir
=
27675 case "$found_dir" in
27677 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27678 additional_includedir
="$basedir/include"
27681 if test "X$additional_includedir" != "X"; then
27682 if test "X$additional_includedir" != "X/usr/include"; then
27684 if test "X$additional_includedir" = "X/usr/local/include"; then
27685 if test -n "$GCC"; then
27687 linux
*) haveit
=yes;;
27691 if test -z "$haveit"; then
27692 for x
in $CPPFLAGS $INCEXPAT; do
27694 acl_save_prefix
="$prefix"
27695 prefix
="$acl_final_prefix"
27696 acl_save_exec_prefix
="$exec_prefix"
27697 exec_prefix
="$acl_final_exec_prefix"
27699 exec_prefix
="$acl_save_exec_prefix"
27700 prefix
="$acl_save_prefix"
27702 if test "X$x" = "X-I$additional_includedir"; then
27707 if test -z "$haveit"; then
27708 if test -d "$additional_includedir"; then
27709 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
27715 if test -n "$found_la"; then
27716 save_libdir
="$libdir"
27717 case "$found_la" in
27718 */* |
*\\*) .
"$found_la" ;;
27719 *) .
"./$found_la" ;;
27721 libdir
="$save_libdir"
27722 for dep
in $dependency_libs; do
27725 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
27726 if test "X$additional_libdir" != "X/usr/lib"; then
27728 if test "X$additional_libdir" = "X/usr/local/lib"; then
27729 if test -n "$GCC"; then
27731 linux
*) haveit
=yes;;
27735 if test -z "$haveit"; then
27737 for x
in $LDFLAGS $LIBEXPAT; do
27739 acl_save_prefix
="$prefix"
27740 prefix
="$acl_final_prefix"
27741 acl_save_exec_prefix
="$exec_prefix"
27742 exec_prefix
="$acl_final_exec_prefix"
27744 exec_prefix
="$acl_save_exec_prefix"
27745 prefix
="$acl_save_prefix"
27747 if test "X$x" = "X-L$additional_libdir"; then
27752 if test -z "$haveit"; then
27753 if test -d "$additional_libdir"; then
27754 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
27758 for x
in $LDFLAGS $LTLIBEXPAT; do
27760 acl_save_prefix
="$prefix"
27761 prefix
="$acl_final_prefix"
27762 acl_save_exec_prefix
="$exec_prefix"
27763 exec_prefix
="$acl_final_exec_prefix"
27765 exec_prefix
="$acl_save_exec_prefix"
27766 prefix
="$acl_save_prefix"
27768 if test "X$x" = "X-L$additional_libdir"; then
27773 if test -z "$haveit"; then
27774 if test -d "$additional_libdir"; then
27775 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
27782 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
27783 if test "$enable_rpath" != no
; then
27785 for x
in $rpathdirs; do
27786 if test "X$x" = "X$dir"; then
27791 if test -z "$haveit"; then
27792 rpathdirs
="$rpathdirs $dir"
27795 for x
in $ltrpathdirs; do
27796 if test "X$x" = "X$dir"; then
27801 if test -z "$haveit"; then
27802 ltrpathdirs
="$ltrpathdirs $dir"
27807 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27810 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27813 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
27814 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
27820 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
27821 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
27822 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
27824 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
27825 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
27832 if test "X$rpathdirs" != "X"; then
27833 if test -n "$hardcode_libdir_separator"; then
27835 for found_dir
in $rpathdirs; do
27836 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27838 acl_save_libdir
="$libdir"
27840 eval flag
=\"$hardcode_libdir_flag_spec\"
27841 libdir
="$acl_save_libdir"
27842 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
27844 for found_dir
in $rpathdirs; do
27845 acl_save_libdir
="$libdir"
27846 libdir
="$found_dir"
27847 eval flag
=\"$hardcode_libdir_flag_spec\"
27848 libdir
="$acl_save_libdir"
27849 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
27853 if test "X$ltrpathdirs" != "X"; then
27854 for found_dir
in $ltrpathdirs; do
27855 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
27860 ac_save_CPPFLAGS
="$CPPFLAGS"
27862 for element
in $INCEXPAT; do
27864 for x
in $CPPFLAGS; do
27866 acl_save_prefix
="$prefix"
27867 prefix
="$acl_final_prefix"
27868 acl_save_exec_prefix
="$exec_prefix"
27869 exec_prefix
="$acl_final_exec_prefix"
27871 exec_prefix
="$acl_save_exec_prefix"
27872 prefix
="$acl_save_prefix"
27874 if test "X$x" = "X$element"; then
27879 if test -z "$haveit"; then
27880 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
27886 $as_echo_n "checking for libexpat... " >&6; }
27887 if ${ac_cv_libexpat+:} false
; then :
27888 $as_echo_n "(cached) " >&6
27891 ac_save_LIBS
="$LIBS"
27892 LIBS
="$LIBS $LIBEXPAT"
27893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27894 /* end confdefs.h. */
27899 XML_Parser p = XML_ParserCreate (0);
27904 if ac_fn_c_try_link
"$LINENO"; then :
27909 rm -f core conftest.err conftest.
$ac_objext \
27910 conftest
$ac_exeext conftest.
$ac_ext
27911 LIBS
="$ac_save_LIBS"
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
27915 $as_echo "$ac_cv_libexpat" >&6; }
27916 if test "$ac_cv_libexpat" = yes; then
27919 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
27922 $as_echo_n "checking how to link with libexpat... " >&6; }
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
27924 $as_echo "$LIBEXPAT" >&6; }
27927 CPPFLAGS
="$ac_save_CPPFLAGS"
27937 if test "$HAVE_LIBEXPAT" != yes; then
27938 if test "$with_expat" = yes; then
27939 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
27942 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
27946 LIBS
="$LIBS $LIBEXPAT"
27947 for ac_func
in XML_StopParser
27949 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
27950 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
27951 cat >>confdefs.h
<<_ACEOF
27952 #define HAVE_XML_STOPPARSER 1
27965 # --------------------- #
27966 # Check for libpython. #
27967 # --------------------- #
27974 # Check whether --with-python was given.
27975 if test "${with_python+set}" = set; then :
27976 withval
=$with_python;
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
27982 $as_echo_n "checking whether to use python... " >&6; }
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
27984 $as_echo "$with_python" >&6; }
27986 if test "${with_python}" = no
; then
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
27988 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
27991 case "${with_python}" in
27993 if test -d "${with_python}"; then
27994 # Assume the python binary is ${with_python}/bin/python.
27995 python_prog
="${with_python}/bin/python"
27997 # If python does not exit ${with_python}/bin, then try in
27998 # ${with_python}. On Windows/MinGW, this is where the Python
28000 if test ! -x "${python_prog}"; then
28001 python_prog
="${with_python}/python"
28004 if test ! -x "${python_prog}"; then
28005 # Fall back to gdb 7.0/7.1 behavior.
28006 python_prog
=missing
28007 python_prefix
=${with_python}
28009 elif test -x "${with_python}"; then
28010 # While we can't run python compiled for $host (unless host == build),
28011 # the user could write a script that provides the needed information,
28012 # so we support that.
28013 python_prog
=${with_python}
28016 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
28020 # Disallow --with-python=foo/bar.
28021 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
28024 # The user has either specified auto, yes, or the name of the python
28025 # program assumed to be in $PATH.
28027 case "${with_python}" in
28029 if test "${build}" = "${host}"; then
28030 # Look first for 'python', then 'python3'.
28031 for ac_prog
in python python3
28033 # Extract the first word of "$ac_prog", so it can be a program name with args.
28034 set dummy
$ac_prog; ac_word
=$2
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28036 $as_echo_n "checking for $ac_word... " >&6; }
28037 if ${ac_cv_path_python_prog_path+:} false
; then :
28038 $as_echo_n "(cached) " >&6
28040 case $python_prog_path in
28042 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
28045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28046 for as_dir
in $PATH
28049 test -z "$as_dir" && as_dir
=.
28050 for ac_exec_ext
in '' $ac_executable_extensions; do
28051 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28052 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
28053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28063 python_prog_path
=$ac_cv_path_python_prog_path
28064 if test -n "$python_prog_path"; then
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
28066 $as_echo "$python_prog_path" >&6; }
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28069 $as_echo "no" >&6; }
28073 test -n "$python_prog_path" && break
28075 test -n "$python_prog_path" || python_prog_path
="missing"
28077 if test "${python_prog_path}" = missing
; then
28078 python_prog
=missing
28080 python_prog
=${python_prog_path}
28083 # Not much we can do except assume the cross-compiler will find the
28085 python_prog
=missing
28089 # While we can't run python compiled for $host (unless host == build),
28090 # the user could write a script that provides the needed information,
28091 # so we support that.
28092 python_prog
="${with_python}"
28093 # Extract the first word of "${python_prog}", so it can be a program name with args.
28094 set dummy
${python_prog}; ac_word
=$2
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28096 $as_echo_n "checking for $ac_word... " >&6; }
28097 if ${ac_cv_path_python_prog_path+:} false
; then :
28098 $as_echo_n "(cached) " >&6
28100 case $python_prog_path in
28102 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
28105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28106 for as_dir
in $PATH
28109 test -z "$as_dir" && as_dir
=.
28110 for ac_exec_ext
in '' $ac_executable_extensions; do
28111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28112 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
28113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28120 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
28124 python_prog_path
=$ac_cv_path_python_prog_path
28125 if test -n "$python_prog_path"; then
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
28127 $as_echo "$python_prog_path" >&6; }
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28130 $as_echo "no" >&6; }
28134 if test "${python_prog_path}" = missing
; then
28135 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
28141 if test "${python_prog}" != missing
; then
28142 # We have a python program to use, but it may be too old.
28143 # Don't flag an error for --with-python=auto (the default).
28144 have_python_config
=yes
28145 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
28146 if test $?
!= 0; then
28147 have_python_config
=failed
28148 if test "${with_python}" != auto
; then
28149 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
28152 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
28153 if test $?
!= 0; then
28154 have_python_config
=failed
28155 if test "${with_python}" != auto
; then
28156 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
28159 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
28160 if test $?
!= 0; then
28161 have_python_config
=failed
28162 if test "${with_python}" != auto
; then
28163 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
28167 # We do not have a python executable we can use to determine where
28168 # to find the Python headers and libs. We cannot guess the include
28169 # path from the python_prefix either, because that include path
28170 # depends on the Python version. So, there is nothing much we can
28171 # do except assume that the compiler will be able to find those files.
28174 have_python_config
=no
28177 # If we have python-config, only try the configuration it provides.
28178 # Otherwise fallback on the old way of trying different versions of
28182 if test "${have_python_config}" = yes; then
28185 new_CPPFLAGS
=${python_includes}
28186 new_LIBS
=${python_libs}
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
28188 $as_echo_n "checking for python... " >&6; }
28189 save_CPPFLAGS
=$CPPFLAGS
28191 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28192 LIBS
="$new_LIBS $LIBS"
28193 found_usable_python
=no
28194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28195 /* end confdefs.h. */
28196 #include "Python.h"
28201 #if PY_MAJOR_VERSION != 3
28202 # error "We only support Python 3"
28210 if ac_fn_c_try_link
"$LINENO"; then :
28212 found_usable_python
=yes
28213 PYTHON_CPPFLAGS
=$new_CPPFLAGS
28214 PYTHON_LIBS
=$new_LIBS
28216 rm -f core conftest.err conftest.
$ac_objext \
28217 conftest
$ac_exeext conftest.
$ac_ext
28218 CPPFLAGS
=$save_CPPFLAGS
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
28221 $as_echo "${found_usable_python}" >&6; }
28225 if test "${have_libpython}" = no
; then
28226 case "${with_python}" in
28228 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
28232 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
28235 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
28239 if test -n "${python_prefix}"; then
28241 cat >>confdefs.h
<<_ACEOF
28242 #define WITH_PYTHON_PATH "${python_prefix}"
28246 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
28247 if test "x$prefix" = xNONE
; then
28248 test_prefix
=/usr
/local
28250 test_prefix
=$prefix
28253 test_prefix
=$exec_prefix
28256 case ${python_prefix} in
28257 "${test_prefix}"|
"${test_prefix}/"*|\
28258 '${exec_prefix}'|
'${exec_prefix}/'*)
28263 cat >>confdefs.h
<<_ACEOF
28264 #define PYTHON_PATH_RELOCATABLE $value
28273 # Check whether --with-python-libdir was given.
28274 if test "${with_python_libdir+set}" = set; then :
28275 withval
=$with_python_libdir;
28278 # If no python libdir is specified then select one based on
28279 # python's prefix path.
28280 if test -n "${python_prefix}"; then
28281 with_python_libdir
=${python_prefix}/lib
28287 if test "${have_libpython}" != no
; then
28289 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
28291 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
28292 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
28293 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
28294 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
28295 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
28297 if test -n "${with_python_libdir}"; then
28299 cat >>confdefs.h
<<_ACEOF
28300 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
28304 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
28305 if test "x$prefix" = xNONE
; then
28306 test_prefix
=/usr
/local
28308 test_prefix
=$prefix
28311 test_prefix
=$exec_prefix
28314 case ${with_python_libdir} in
28315 "${test_prefix}"|
"${test_prefix}/"*|\
28316 '${exec_prefix}'|
'${exec_prefix}/'*)
28321 cat >>confdefs.h
<<_ACEOF
28322 #define PYTHON_LIBDIR_RELOCATABLE $value
28328 # Flags needed to compile Python code (taken from python-config --cflags).
28329 # We cannot call python-config directly because it will output whatever was
28330 # used when compiling the Python interpreter itself, including flags which
28331 # would make the python-related objects be compiled differently from the
28332 # rest of GDB (e.g., -O2 and -fPIC).
28333 if test "${GCC}" = yes; then
28334 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
28335 # Python headers recommend -DNDEBUG, but it's unclear if that just
28336 # refers to building Python itself. In release mode, though, it
28337 # doesn't hurt for the Python code in gdb to follow.
28338 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
28341 if test "x${tentative_python_cflags}" != x
; then
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
28343 $as_echo_n "checking compiler flags for python code... " >&6; }
28344 for flag
in ${tentative_python_cflags}; do
28345 # Check that the compiler accepts it
28346 saved_CFLAGS
="$CFLAGS"
28347 CFLAGS
="$CFLAGS $flag"
28348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28349 /* end confdefs.h. */
28359 if ac_fn_c_try_compile
"$LINENO"; then :
28360 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
28362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28363 CFLAGS
="$saved_CFLAGS"
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
28366 $as_echo "${PYTHON_CFLAGS}" >&6; }
28369 # On x64 Windows, Python's include headers, and pyconfig.h in
28370 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
28371 # version of Windows. Unfortunately, MS_WIN64 is only defined if
28372 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
28373 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
28374 # The issue was reported to the Python community, but still isn't
28375 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
28377 case "$gdb_host" in
28379 if test "${GCC}" = yes; then
28380 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
28385 # Even if Python support is not compiled in, we need to have this file
28386 # included so that the "python" command, et.al., still exists.
28387 CONFIG_OBS
="$CONFIG_OBS python/python.o"
28388 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
28391 # Work around Python http://bugs.python.org/issue10112. See also
28392 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
28393 # no effect. Note that the only test after this that uses Python is
28394 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
28395 # run without -export-dynamic too.
28396 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
28401 if test "${have_libpython}" != no
; then
28403 HAVE_PYTHON_FALSE
='#'
28405 HAVE_PYTHON_TRUE
='#'
28410 # -------------------- #
28411 # Check for libguile. #
28412 # -------------------- #
28419 # Check whether --with-guile was given.
28420 if test "${with_guile+set}" = set; then :
28421 withval
=$with_guile;
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
28427 $as_echo_n "checking whether to use guile... " >&6; }
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
28429 $as_echo "$with_guile" >&6; }
28431 # Extract the first word of "pkg-config", so it can be a program name with args.
28432 set dummy pkg-config
; ac_word
=$2
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28434 $as_echo_n "checking for $ac_word... " >&6; }
28435 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
28436 $as_echo_n "(cached) " >&6
28438 case $pkg_config_prog_path in
28440 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
28443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28444 for as_dir
in $PATH
28447 test -z "$as_dir" && as_dir
=.
28448 for ac_exec_ext
in '' $ac_executable_extensions; do
28449 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28450 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
28451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28458 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
28462 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
28463 if test -n "$pkg_config_prog_path"; then
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
28465 $as_echo "$pkg_config_prog_path" >&6; }
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28468 $as_echo "no" >&6; }
28473 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
28475 case "${with_guile}" in
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
28478 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
28481 if test "${pkg_config_prog_path}" = "missing"; then
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
28483 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
28486 pkg_config
=${pkg_config_prog_path}
28487 guile_version_list
=${try_guile_versions}
28490 found_usable_guile
=checking
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28492 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28493 for guile_version
in ${guile_version_list}; do
28494 ${pkg_config} --exists ${guile_version} 2>/dev
/null
28495 if test $?
!= 0; then
28498 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
28499 if test $?
!= 0; then
28500 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28502 new_LIBS
=`${pkg_config} --libs ${guile_version}`
28503 if test $?
!= 0; then
28504 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28506 found_usable_guile
=${guile_version}
28509 if test "${found_usable_guile}" = "checking"; then
28510 if test "${flag_errors}" = "yes"; then
28511 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28513 found_usable_guile
=no
28516 if test "${found_usable_guile}" != no
; then
28517 save_CPPFLAGS
=$CPPFLAGS
28519 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28520 LIBS
="$LIBS $new_LIBS"
28521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28522 /* end confdefs.h. */
28523 #include "libguile.h"
28532 if ac_fn_c_try_link
"$LINENO"; then :
28534 GUILE_CPPFLAGS
=$new_CPPFLAGS
28535 GUILE_LIBS
=$new_LIBS
28537 found_usable_guile
=no
28539 rm -f core conftest.err conftest.
$ac_objext \
28540 conftest
$ac_exeext conftest.
$ac_ext
28541 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28542 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
28544 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28549 CPPFLAGS
=$save_CPPFLAGS
28551 if test "${found_usable_guile}" = no
; then
28552 if test "${flag_errors}" = yes; then
28553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28555 as_fn_error $?
"linking guile version ${guile_version} test program failed
28556 See \`config.log' for more details" "$LINENO" 5; }
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28561 $as_echo "${found_usable_guile}" >&6; }
28566 if test "${pkg_config_prog_path}" = "missing"; then
28567 as_fn_error $?
"pkg-config not found" "$LINENO" 5
28570 pkg_config
=${pkg_config_prog_path}
28571 guile_version_list
=${try_guile_versions}
28574 found_usable_guile
=checking
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28576 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28577 for guile_version
in ${guile_version_list}; do
28578 ${pkg_config} --exists ${guile_version} 2>/dev
/null
28579 if test $?
!= 0; then
28582 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
28583 if test $?
!= 0; then
28584 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28586 new_LIBS
=`${pkg_config} --libs ${guile_version}`
28587 if test $?
!= 0; then
28588 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28590 found_usable_guile
=${guile_version}
28593 if test "${found_usable_guile}" = "checking"; then
28594 if test "${flag_errors}" = "yes"; then
28595 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28597 found_usable_guile
=no
28600 if test "${found_usable_guile}" != no
; then
28601 save_CPPFLAGS
=$CPPFLAGS
28603 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28604 LIBS
="$LIBS $new_LIBS"
28605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28606 /* end confdefs.h. */
28607 #include "libguile.h"
28616 if ac_fn_c_try_link
"$LINENO"; then :
28618 GUILE_CPPFLAGS
=$new_CPPFLAGS
28619 GUILE_LIBS
=$new_LIBS
28621 found_usable_guile
=no
28623 rm -f core conftest.err conftest.
$ac_objext \
28624 conftest
$ac_exeext conftest.
$ac_ext
28625 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28626 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
28628 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28633 CPPFLAGS
=$save_CPPFLAGS
28635 if test "${found_usable_guile}" = no
; then
28636 if test "${flag_errors}" = yes; then
28637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28639 as_fn_error $?
"linking guile version ${guile_version} test program failed
28640 See \`config.log' for more details" "$LINENO" 5; }
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28645 $as_echo "${found_usable_guile}" >&6; }
28649 if test -x "${with_guile}"; then
28651 pkg_config
=${with_guile}
28652 guile_version_list
=${try_guile_versions}
28655 found_usable_guile
=checking
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28657 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28658 for guile_version
in ${guile_version_list}; do
28659 ${pkg_config} --exists ${guile_version} 2>/dev
/null
28660 if test $?
!= 0; then
28663 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
28664 if test $?
!= 0; then
28665 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28667 new_LIBS
=`${pkg_config} --libs ${guile_version}`
28668 if test $?
!= 0; then
28669 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28671 found_usable_guile
=${guile_version}
28674 if test "${found_usable_guile}" = "checking"; then
28675 if test "${flag_errors}" = "yes"; then
28676 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28678 found_usable_guile
=no
28681 if test "${found_usable_guile}" != no
; then
28682 save_CPPFLAGS
=$CPPFLAGS
28684 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28685 LIBS
="$LIBS $new_LIBS"
28686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28687 /* end confdefs.h. */
28688 #include "libguile.h"
28697 if ac_fn_c_try_link
"$LINENO"; then :
28699 GUILE_CPPFLAGS
=$new_CPPFLAGS
28700 GUILE_LIBS
=$new_LIBS
28702 found_usable_guile
=no
28704 rm -f core conftest.err conftest.
$ac_objext \
28705 conftest
$ac_exeext conftest.
$ac_ext
28706 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28707 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
28709 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28714 CPPFLAGS
=$save_CPPFLAGS
28716 if test "${found_usable_guile}" = no
; then
28717 if test "${flag_errors}" = yes; then
28718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28720 as_fn_error $?
"linking guile version ${guile_version} test program failed
28721 See \`config.log' for more details" "$LINENO" 5; }
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28726 $as_echo "${found_usable_guile}" >&6; }
28729 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
28733 # Disallow --with=guile="" and --with-guile=foo/bar.
28734 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
28737 # A space separate list of guile versions to try, in order.
28738 if test "${pkg_config_prog_path}" = "missing"; then
28739 as_fn_error $?
"pkg-config not found" "$LINENO" 5
28742 pkg_config
=${pkg_config_prog_path}
28743 guile_version_list
=${with_guile}
28746 found_usable_guile
=checking
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28748 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28749 for guile_version
in ${guile_version_list}; do
28750 ${pkg_config} --exists ${guile_version} 2>/dev
/null
28751 if test $?
!= 0; then
28754 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
28755 if test $?
!= 0; then
28756 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28758 new_LIBS
=`${pkg_config} --libs ${guile_version}`
28759 if test $?
!= 0; then
28760 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28762 found_usable_guile
=${guile_version}
28765 if test "${found_usable_guile}" = "checking"; then
28766 if test "${flag_errors}" = "yes"; then
28767 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28769 found_usable_guile
=no
28772 if test "${found_usable_guile}" != no
; then
28773 save_CPPFLAGS
=$CPPFLAGS
28775 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28776 LIBS
="$LIBS $new_LIBS"
28777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28778 /* end confdefs.h. */
28779 #include "libguile.h"
28788 if ac_fn_c_try_link
"$LINENO"; then :
28790 GUILE_CPPFLAGS
=$new_CPPFLAGS
28791 GUILE_LIBS
=$new_LIBS
28793 found_usable_guile
=no
28795 rm -f core conftest.err conftest.
$ac_objext \
28796 conftest
$ac_exeext conftest.
$ac_ext
28797 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28798 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
28800 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28805 CPPFLAGS
=$save_CPPFLAGS
28807 if test "${found_usable_guile}" = no
; then
28808 if test "${flag_errors}" = yes; then
28809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28811 as_fn_error $?
"linking guile version ${guile_version} test program failed
28812 See \`config.log' for more details" "$LINENO" 5; }
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28817 $as_echo "${found_usable_guile}" >&6; }
28822 if test "${have_libguile}" != no
; then
28823 case "${with_guile}" in
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
28827 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
28828 if ${ac_cv_guild_program_name+:} false
; then :
28829 $as_echo_n "(cached) " >&6
28831 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
28833 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
28834 # the 'guild' and 'bindir' variables. In that case, try to guess
28835 # what the program name is, at the risk of getting it wrong if
28836 # Guile was configured with '--program-suffix' or similar.
28837 if test "x$ac_cv_guild_program_name" = "x"; then
28838 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
28839 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
28844 $as_echo "$ac_cv_guild_program_name" >&6; }
28846 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
28847 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
28850 GUILD
="$ac_cv_guild_program_name"
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
28857 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
28858 if ${ac_cv_guild_program_name+:} false
; then :
28859 $as_echo_n "(cached) " >&6
28861 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
28863 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
28864 # the 'guild' and 'bindir' variables. In that case, try to guess
28865 # what the program name is, at the risk of getting it wrong if
28866 # Guile was configured with '--program-suffix' or similar.
28867 if test "x$ac_cv_guild_program_name" = "x"; then
28868 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
28869 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
28874 $as_echo "$ac_cv_guild_program_name" >&6; }
28876 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
28877 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
28880 GUILD
="$ac_cv_guild_program_name"
28887 if test "$cross_compiling" = no
; then
28890 GUILD_TARGET_FLAG
="--target=$host"
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
28897 $as_echo_n "checking whether guild supports this host... " >&6; }
28898 if ${ac_cv_guild_ok+:} false
; then :
28899 $as_echo_n "(cached) " >&6
28901 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
28902 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
28909 $as_echo "$ac_cv_guild_ok" >&6; }
28911 if test "$ac_cv_guild_ok" = no
; then
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
28914 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
28918 if test "${have_libguile}" != no
; then
28920 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
28922 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
28923 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
28924 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
28925 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
28926 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
28929 save_CPPFLAGS
="$CPPFLAGS"
28931 CPPFLAGS
="$GUILE_CPPFLAGS"
28932 for ac_func
in scm_new_smob
28934 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
28935 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
28936 cat >>confdefs.h
<<_ACEOF
28937 #define HAVE_SCM_NEW_SMOB 1
28944 CPPFLAGS
="$save_CPPFLAGS"
28946 # Even if Guile support is not compiled in, we need to have these files
28948 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
28949 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
28953 if test "${have_libguile}" != no
; then
28955 HAVE_GUILE_FALSE
='#'
28957 HAVE_GUILE_TRUE
='#'
28962 # ---------------------------- #
28963 # Check for source highlight. #
28964 # ---------------------------- #
28969 # Check whether --enable-source-highlight was given.
28970 if test "${enable_source_highlight+set}" = set; then :
28971 enableval
=$enable_source_highlight;
28976 as_fn_error $?
"bad value $enableval for --enable-source-highlight" "$LINENO" 5
28981 enable_source_highlight
=auto
28985 if test "${enable_source_highlight}" != "no"; then
28986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
28987 $as_echo_n "checking for the source-highlight library... " >&6; }
28988 if test "${pkg_config_prog_path}" = "missing"; then
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
28990 $as_echo "no - pkg-config not found" >&6; }
28991 if test "${enable_source_highlight}" = "yes"; then
28992 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
28995 if ${pkg_config_prog_path} --exists source-highlight
; then
28998 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
29002 srchigh_pkg_cflags
=`${pkg_config_prog_path} --cflags source-highlight`
29003 srchigh_pkg_libs
=`${pkg_config_prog_path} --libs source-highlight`
29005 # Now that we have found a source-highlight library, check if we can use
29006 # it. In particular, we're trying to detect the situation that the
29007 # library is using the new libstdc++ library abi ( see
29008 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
29009 # while the compiler being used to compile gdb is using the old abi.
29010 # Such a situation will result in an undefined reference to
29011 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
29012 # This situation can occur for instance when using a source highlight
29013 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
29015 ac_cpp
='$CXXCPP $CPPFLAGS'
29016 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29017 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29018 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
29020 save_CXXFLAGS
="$CXXFLAGS"
29022 CXXFLAGS
="$CXXFLAGS $srchigh_pkg_cflags"
29023 LIBS
="$LIBS $srchigh_pkg_libs"
29024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29025 /* end confdefs.h. */
29026 #include <srchilite/sourcehighlight.h>
29030 std::string outlang = "esc.outlang";
29031 new srchilite::SourceHighlight (outlang);
29037 if ac_fn_cxx_try_link
"$LINENO"; then :
29038 have_usable_source_highlight
=yes
29040 have_usable_source_highlight
=no
29043 rm -f core conftest.err conftest.
$ac_objext \
29044 conftest
$ac_exeext conftest.
$ac_ext
29045 CXXFLAGS
="$save_CXXFLAGS"
29048 ac_cpp
='$CPP $CPPFLAGS'
29049 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29050 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29051 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
29054 if test "${have_usable_source_highlight}" = "yes"; then
29056 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29059 $as_echo "yes" >&6; }
29060 SRCHIGH_CFLAGS
="$srchigh_pkg_cflags"
29061 SRCHIGH_LIBS
="$srchigh_pkg_libs"
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29064 $as_echo "no" >&6; }
29065 if test "${enable_source_highlight}" = "yes"; then
29066 as_fn_error $?
"source-highlight in your system could not be used" "$LINENO" 5
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29071 $as_echo "no" >&6; }
29072 if test "${enable_source_highlight}" = "yes"; then
29073 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
29081 # ------------------------- #
29082 # Checks for header files. #
29083 # ------------------------- #
29085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
29086 $as_echo_n "checking for ANSI C header files... " >&6; }
29087 if ${ac_cv_header_stdc+:} false
; then :
29088 $as_echo_n "(cached) " >&6
29090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29091 /* end confdefs.h. */
29092 #include <stdlib.h>
29093 #include <stdarg.h>
29094 #include <string.h>
29105 if ac_fn_c_try_compile
"$LINENO"; then :
29106 ac_cv_header_stdc
=yes
29108 ac_cv_header_stdc
=no
29110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29112 if test $ac_cv_header_stdc = yes; then
29113 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29115 /* end confdefs.h. */
29116 #include <string.h>
29119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29120 $EGREP "memchr" >/dev
/null
2>&1; then :
29123 ac_cv_header_stdc
=no
29129 if test $ac_cv_header_stdc = yes; then
29130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29132 /* end confdefs.h. */
29133 #include <stdlib.h>
29136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29137 $EGREP "free" >/dev
/null
2>&1; then :
29140 ac_cv_header_stdc
=no
29146 if test $ac_cv_header_stdc = yes; then
29147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29148 if test "$cross_compiling" = yes; then :
29151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29152 /* end confdefs.h. */
29154 #include <stdlib.h>
29155 #if ((' ' & 0x0FF) == 0x020)
29156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29159 # define ISLOWER(c) \
29160 (('a' <= (c) && (c) <= 'i') \
29161 || ('j' <= (c) && (c) <= 'r') \
29162 || ('s' <= (c) && (c) <= 'z'))
29163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29171 for (i = 0; i < 256; i++)
29172 if (XOR (islower (i), ISLOWER (i))
29173 || toupper (i) != TOUPPER (i))
29178 if ac_fn_c_try_run
"$LINENO"; then :
29181 ac_cv_header_stdc
=no
29183 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29184 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
29190 $as_echo "$ac_cv_header_stdc" >&6; }
29191 if test $ac_cv_header_stdc = yes; then
29193 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
29214 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29215 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29216 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
29217 cat >>confdefs.h
<<_ACEOF
29218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29226 for ac_header
in sys
/user.h
29228 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
29229 # include <sys/param.h>
29233 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
29234 cat >>confdefs.h
<<_ACEOF
29235 #define HAVE_SYS_USER_H 1
29247 ncurses
/ncurses.h \
29249 ncursesw
/ncurses.h \
29252 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29253 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29254 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
29255 cat >>confdefs.h
<<_ACEOF
29256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29264 for ac_header
in term.h
29266 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
29267 # include <curses.h>
29271 if test "x$ac_cv_header_term_h" = xyes
; then :
29272 cat >>confdefs.h
<<_ACEOF
29273 #define HAVE_TERM_H 1
29281 for ac_header
in sys
/socket.h
29283 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
29284 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
29285 cat >>confdefs.h
<<_ACEOF
29286 #define HAVE_SYS_SOCKET_H 1
29293 for ac_header
in ws2tcpip.h
29295 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
29296 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
29297 cat >>confdefs.h
<<_ACEOF
29298 #define HAVE_WS2TCPIP_H 1
29305 for ac_header
in execinfo.h
29307 ac_fn_c_check_header_mongrel
"$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
29308 if test "x$ac_cv_header_execinfo_h" = xyes
; then :
29309 cat >>confdefs.h
<<_ACEOF
29310 #define HAVE_EXECINFO_H 1
29318 # ------------------------- #
29319 # Checks for declarations. #
29320 # ------------------------- #
29322 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
29323 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
29329 cat >>confdefs.h
<<_ACEOF
29330 #define HAVE_DECL_FFS $ac_have_decl
29333 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
29334 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
29340 cat >>confdefs.h
<<_ACEOF
29341 #define HAVE_DECL_ASPRINTF $ac_have_decl
29344 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
29345 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
29351 cat >>confdefs.h
<<_ACEOF
29352 #define HAVE_DECL_VASPRINTF $ac_have_decl
29355 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29356 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
29362 cat >>confdefs.h
<<_ACEOF
29363 #define HAVE_DECL_SNPRINTF $ac_have_decl
29366 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
29367 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
29373 cat >>confdefs.h
<<_ACEOF
29374 #define HAVE_DECL_VSNPRINTF $ac_have_decl
29377 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
29378 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
29384 cat >>confdefs.h
<<_ACEOF
29385 #define HAVE_DECL_STRTOL $ac_have_decl
29388 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
29389 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
29395 cat >>confdefs.h
<<_ACEOF
29396 #define HAVE_DECL_STRTOUL $ac_have_decl
29399 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
29400 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
29406 cat >>confdefs.h
<<_ACEOF
29407 #define HAVE_DECL_STRTOLL $ac_have_decl
29410 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
29411 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
29417 cat >>confdefs.h
<<_ACEOF
29418 #define HAVE_DECL_STRTOULL $ac_have_decl
29421 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
29422 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
29428 cat >>confdefs.h
<<_ACEOF
29429 #define HAVE_DECL_STRVERSCMP $ac_have_decl
29432 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
29433 if test "x$ac_cv_type_long_long" = xyes
; then :
29435 cat >>confdefs.h
<<_ACEOF
29436 #define HAVE_LONG_LONG 1
29439 # The cast to long int works around a bug in the HP C Compiler
29440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29442 # This bug is HP SR number 8606223364.
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
29444 $as_echo_n "checking size of long long... " >&6; }
29445 if ${ac_cv_sizeof_long_long+:} false
; then :
29446 $as_echo_n "(cached) " >&6
29448 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
29451 if test "$ac_cv_type_long_long" = yes; then
29452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29454 as_fn_error
77 "cannot compute sizeof (long long)
29455 See \`config.log' for more details" "$LINENO" 5; }
29457 ac_cv_sizeof_long_long
=0
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
29463 $as_echo "$ac_cv_sizeof_long_long" >&6; }
29467 cat >>confdefs.h
<<_ACEOF
29468 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
29475 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
29476 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
29477 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
29483 cat >>confdefs.h
<<_ACEOF
29484 #define HAVE_DECL_BASENAME $ac_have_decl
29492 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29493 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
29499 cat >>confdefs.h
<<_ACEOF
29500 #define HAVE_DECL_SNPRINTF $ac_have_decl
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
29505 $as_echo_n "checking for LC_MESSAGES... " >&6; }
29506 if ${am_cv_val_LC_MESSAGES+:} false
; then :
29507 $as_echo_n "(cached) " >&6
29509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29510 /* end confdefs.h. */
29511 #include <locale.h>
29520 if ac_fn_c_try_link
"$LINENO"; then :
29521 am_cv_val_LC_MESSAGES
=yes
29523 am_cv_val_LC_MESSAGES
=no
29525 rm -f core conftest.err conftest.
$ac_objext \
29526 conftest
$ac_exeext conftest.
$ac_ext
29528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
29529 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
29530 if test $am_cv_val_LC_MESSAGES = yes; then
29532 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
29537 # ------------------ #
29538 # Checks for types. #
29539 # ------------------ #
29541 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
29542 #if HAVE_SYS_SOCKET_H
29543 # include <sys/socket.h>
29544 #elif HAVE_WS2TCPIP_H
29545 # include <ws2tcpip.h>
29549 if test "x$ac_cv_type_socklen_t" = xyes
; then :
29551 cat >>confdefs.h
<<_ACEOF
29552 #define HAVE_SOCKLEN_T 1
29559 # ------------------------------------- #
29560 # Checks for compiler characteristics. #
29561 # ------------------------------------- #
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
29564 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
29565 if ${ac_cv_c_const+:} false
; then :
29566 $as_echo_n "(cached) " >&6
29568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29569 /* end confdefs.h. */
29575 #ifndef __cplusplus
29576 /* Ultrix mips cc rejects this sort of thing. */
29577 typedef int charset[2];
29578 const charset cs = { 0, 0 };
29579 /* SunOS 4.1.1 cc rejects this. */
29580 char const *const *pcpcc;
29582 /* NEC SVR4.0.2 mips cc rejects this. */
29583 struct point {int x, y;};
29584 static struct point const zero = {0,0};
29585 /* AIX XL C 1.02.0.0 rejects this.
29586 It does not let you subtract one const X* pointer from another in
29587 an arm of an if-expression whose if-part is not a constant
29589 const char *g = "string";
29590 pcpcc = &g + (g ? g-g : 0);
29591 /* HPUX 7.0 cc rejects these. */
29593 ppc = (char**) pcpcc;
29594 pcpcc = (char const *const *) ppc;
29595 { /* SCO 3.2v4 cc rejects this sort of thing. */
29598 char const *s = 0 ? (char *) 0 : (char const *) 0;
29603 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
29604 int x[] = {25, 17};
29605 const int *foo = &x[0];
29608 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29609 typedef const int *iptr;
29613 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
29614 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29615 struct s { int j; const int *ap[3]; } bx;
29616 struct s *b = &bx; b->j = 5;
29618 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29619 const int foo = 10;
29620 if (!foo) return 0;
29622 return !cs[0] && !zero.x;
29629 if ac_fn_c_try_compile
"$LINENO"; then :
29634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
29637 $as_echo "$ac_cv_c_const" >&6; }
29638 if test $ac_cv_c_const = no
; then
29640 $as_echo "#define const /**/" >>confdefs.h
29644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
29645 $as_echo_n "checking for inline... " >&6; }
29646 if ${ac_cv_c_inline+:} false
; then :
29647 $as_echo_n "(cached) " >&6
29650 for ac_kw
in inline __inline__ __inline
; do
29651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29652 /* end confdefs.h. */
29653 #ifndef __cplusplus
29655 static $ac_kw foo_t static_foo () {return 0; }
29656 $ac_kw foo_t foo () {return 0; }
29660 if ac_fn_c_try_compile
"$LINENO"; then :
29661 ac_cv_c_inline
=$ac_kw
29663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29664 test "$ac_cv_c_inline" != no
&& break
29668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
29669 $as_echo "$ac_cv_c_inline" >&6; }
29671 case $ac_cv_c_inline in
29674 case $ac_cv_c_inline in
29676 *) ac_val
=$ac_cv_c_inline;;
29678 cat >>confdefs.h
<<_ACEOF
29679 #ifndef __cplusplus
29680 #define inline $ac_val
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
29687 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
29688 if ${ac_cv_c_bigendian+:} false
; then :
29689 $as_echo_n "(cached) " >&6
29691 ac_cv_c_bigendian
=unknown
29692 # See if we're dealing with a universal compiler.
29693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29694 /* end confdefs.h. */
29695 #ifndef __APPLE_CC__
29696 not a universal capable compiler
29701 if ac_fn_c_try_compile
"$LINENO"; then :
29703 # Check for potential -arch flags. It is not universal unless
29704 # there are at least two -arch flags with different values.
29707 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
29708 if test -n "$ac_prev"; then
29710 i?
86 | x86_64 | ppc | ppc64
)
29711 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
29714 ac_cv_c_bigendian
=universal
29720 elif test "x$ac_word" = "x-arch"; then
29725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29726 if test $ac_cv_c_bigendian = unknown
; then
29727 # See if sys/param.h defines the BYTE_ORDER macro.
29728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29729 /* end confdefs.h. */
29730 #include <sys/types.h>
29731 #include <sys/param.h>
29736 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
29737 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
29739 bogus endian macros
29746 if ac_fn_c_try_compile
"$LINENO"; then :
29747 # It does; now see whether it defined to BIG_ENDIAN or not.
29748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29749 /* end confdefs.h. */
29750 #include <sys/types.h>
29751 #include <sys/param.h>
29756 #if BYTE_ORDER != BIG_ENDIAN
29764 if ac_fn_c_try_compile
"$LINENO"; then :
29765 ac_cv_c_bigendian
=yes
29767 ac_cv_c_bigendian
=no
29769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29773 if test $ac_cv_c_bigendian = unknown
; then
29774 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
29775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29776 /* end confdefs.h. */
29777 #include <limits.h>
29782 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
29783 bogus endian macros
29790 if ac_fn_c_try_compile
"$LINENO"; then :
29791 # It does; now see whether it defined to _BIG_ENDIAN or not.
29792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29793 /* end confdefs.h. */
29794 #include <limits.h>
29799 #ifndef _BIG_ENDIAN
29807 if ac_fn_c_try_compile
"$LINENO"; then :
29808 ac_cv_c_bigendian
=yes
29810 ac_cv_c_bigendian
=no
29812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29816 if test $ac_cv_c_bigendian = unknown
; then
29817 # Compile a test program.
29818 if test "$cross_compiling" = yes; then :
29819 # Try to guess by grepping values from an object file.
29820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29821 /* end confdefs.h. */
29822 short int ascii_mm[] =
29823 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
29824 short int ascii_ii[] =
29825 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
29826 int use_ascii (int i) {
29827 return ascii_mm[i] + ascii_ii[i];
29829 short int ebcdic_ii[] =
29830 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
29831 short int ebcdic_mm[] =
29832 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
29833 int use_ebcdic (int i) {
29834 return ebcdic_mm[i] + ebcdic_ii[i];
29841 return use_ascii (foo) == use_ebcdic (foo);
29846 if ac_fn_c_try_compile
"$LINENO"; then :
29847 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
29848 ac_cv_c_bigendian
=yes
29850 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
29851 if test "$ac_cv_c_bigendian" = unknown
; then
29852 ac_cv_c_bigendian
=no
29854 # finding both strings is unlikely to happen, but who knows?
29855 ac_cv_c_bigendian
=unknown
29859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29862 /* end confdefs.h. */
29863 $ac_includes_default
29868 /* Are we little or big endian? From Harbison&Steele. */
29872 char c[sizeof (long int)];
29875 return u.c[sizeof (long int) - 1] == 1;
29881 if ac_fn_c_try_run
"$LINENO"; then :
29882 ac_cv_c_bigendian
=no
29884 ac_cv_c_bigendian
=yes
29886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
29893 $as_echo "$ac_cv_c_bigendian" >&6; }
29894 case $ac_cv_c_bigendian in #(
29896 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
29902 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
29906 as_fn_error $?
"unknown endianness
29907 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
29911 # ------------------------------ #
29912 # Checks for library functions. #
29913 # ------------------------------ #
29933 use_default_colors \
29937 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29938 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
29939 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
29940 cat >>confdefs.h
<<_ACEOF
29941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
29950 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
29951 if ${am_cv_langinfo_codeset+:} false
; then :
29952 $as_echo_n "(cached) " >&6
29954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29955 /* end confdefs.h. */
29956 #include <langinfo.h>
29960 char* cs = nl_langinfo(CODESET);
29965 if ac_fn_c_try_link
"$LINENO"; then :
29966 am_cv_langinfo_codeset
=yes
29968 am_cv_langinfo_codeset
=no
29970 rm -f core conftest.err conftest.
$ac_objext \
29971 conftest
$ac_exeext conftest.
$ac_ext
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
29975 $as_echo "$am_cv_langinfo_codeset" >&6; }
29976 if test $am_cv_langinfo_codeset = yes; then
29978 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
29983 # Check the return and argument types of ptrace.
29986 for ac_header
in sys
/ptrace.h ptrace.h
29988 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29989 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29990 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
29991 cat >>confdefs.h
<<_ACEOF
29992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30000 gdb_ptrace_headers
='
30001 #include <sys/types.h>
30002 #if HAVE_SYS_PTRACE_H
30003 # include <sys/ptrace.h>
30006 # include <unistd.h>
30010 # Check return type. Varargs (used on GNU/Linux) conflict with the
30011 # empty argument list, so check for that explicitly.
30012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
30013 $as_echo_n "checking return type of ptrace... " >&6; }
30014 if ${gdb_cv_func_ptrace_ret+:} false
; then :
30015 $as_echo_n "(cached) " >&6
30017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30018 /* end confdefs.h. */
30019 Â $gdb_ptrace_headers
30023 extern long ptrace (enum __ptrace_request, ...);
30029 if ac_fn_c_try_compile
"$LINENO"; then :
30030 gdb_cv_func_ptrace_ret
='long'
30032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30033 /* end confdefs.h. */
30034 $gdb_ptrace_headers
30038 extern int ptrace ();
30044 if ac_fn_c_try_compile
"$LINENO"; then :
30045 gdb_cv_func_ptrace_ret
='int'
30047 gdb_cv_func_ptrace_ret
='long'
30050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
30057 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
30060 cat >>confdefs.h
<<_ACEOF
30061 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
30065 # Check argument types.
30066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
30067 $as_echo_n "checking types of arguments for ptrace... " >&6; }
30068 if ${gdb_cv_func_ptrace_args+:} false
; then :
30069 $as_echo_n "(cached) " >&6
30071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30072 /* end confdefs.h. */
30073 $gdb_ptrace_headers
30077 extern long ptrace (enum __ptrace_request, ...);
30083 if ac_fn_c_try_compile
"$LINENO"; then :
30084 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
30086 for gdb_arg1
in 'int' 'long'; do
30087 for gdb_arg2
in 'pid_t' 'int' 'long'; do
30088 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
30089 for gdb_arg4
in 'int' 'long' 'void *'; do
30090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30091 /* end confdefs.h. */
30092 $gdb_ptrace_headers
30096 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
30102 if ac_fn_c_try_compile
"$LINENO"; then :
30103 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
30107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30109 for gdb_arg5
in 'int *' 'int' 'long'; do
30110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30111 /* end confdefs.h. */
30112 $gdb_ptrace_headers
30116 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
30122 if ac_fn_c_try_compile
"$LINENO"; then :
30123 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
30127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30133 # Provide a safe default value.
30134 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
30137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
30141 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
30143 ac_save_IFS
=$IFS; IFS
=','
30144 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
30148 cat >>confdefs.h
<<_ACEOF
30149 #define PTRACE_TYPE_ARG1 $1
30153 cat >>confdefs.h
<<_ACEOF
30154 #define PTRACE_TYPE_ARG3 $3
30158 cat >>confdefs.h
<<_ACEOF
30159 #define PTRACE_TYPE_ARG4 $4
30162 if test -n "$5"; then
30164 cat >>confdefs.h
<<_ACEOF
30165 #define PTRACE_TYPE_ARG5 $5
30171 if test "$cross_compiling" = no
; then
30172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
30173 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
30174 if ${ac_cv_func_setpgrp_void+:} false
; then :
30175 $as_echo_n "(cached) " >&6
30177 if test "$cross_compiling" = yes; then :
30178 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
30180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30181 /* end confdefs.h. */
30182 $ac_includes_default
30186 /* If this system has a BSD-style setpgrp which takes arguments,
30187 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
30188 exit successfully. */
30189 return setpgrp (1,1) != -1;
30194 if ac_fn_c_try_run
"$LINENO"; then :
30195 ac_cv_func_setpgrp_void
=no
30197 ac_cv_func_setpgrp_void
=yes
30199 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30200 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
30205 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
30206 if test $ac_cv_func_setpgrp_void = yes; then
30208 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
30213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
30214 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
30215 if ${ac_cv_func_setpgrp_void+:} false
; then :
30216 $as_echo_n "(cached) " >&6
30218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30219 /* end confdefs.h. */
30220 #include <unistd.h>
30224 if (setpgrp(1,1) == -1)
30233 if ac_fn_c_try_compile
"$LINENO"; then :
30234 ac_cv_func_setpgrp_void
=no
30236 ac_cv_func_setpgrp_void
=yes
30239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
30243 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
30244 if test "$ac_cv_func_setpgrp_void" = yes; then
30245 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
30250 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
30251 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
30252 #include <sys/proc.h>
30255 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
30257 cat >>confdefs.h
<<_ACEOF
30258 #define HAVE_STRUCT_THREAD_TD_PCB 1
30265 # See if <sys/lwp.h> defines `struct lwp`.
30266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
30267 $as_echo_n "checking for struct lwp... " >&6; }
30268 if ${gdb_cv_struct_lwp+:} false
; then :
30269 $as_echo_n "(cached) " >&6
30271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30272 /* end confdefs.h. */
30273 #include <sys/param.h>
30275 #include <sys/lwp.h>
30285 if ac_fn_c_try_compile
"$LINENO"; then :
30286 gdb_cv_struct_lwp
=yes
30288 gdb_cv_struct_lwp
=no
30291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
30295 $as_echo "$gdb_cv_struct_lwp" >&6; }
30296 if test "$gdb_cv_struct_lwp" = yes; then
30298 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
30302 # See if <machine/reg.h> degines `struct reg'.
30303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
30304 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
30305 if ${gdb_cv_struct_reg+:} false
; then :
30306 $as_echo_n "(cached) " >&6
30308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30309 /* end confdefs.h. */
30310 #include <sys/types.h>
30311 #include <machine/reg.h>
30321 if ac_fn_c_try_compile
"$LINENO"; then :
30322 gdb_cv_struct_reg
=yes
30324 gdb_cv_struct_reg
=no
30327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
30331 $as_echo "$gdb_cv_struct_reg" >&6; }
30332 if test "$gdb_cv_struct_reg" = yes; then
30334 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
30338 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
30339 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
30340 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
30341 #include <machine/reg.h>
30343 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
30345 cat >>confdefs.h
<<_ACEOF
30346 #define HAVE_STRUCT_REG_R_FS 1
30351 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
30352 #include <machine/reg.h>
30354 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
30356 cat >>confdefs.h
<<_ACEOF
30357 #define HAVE_STRUCT_REG_R_GS 1
30364 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
30365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
30366 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
30367 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
30368 $as_echo_n "(cached) " >&6
30370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30371 /* end confdefs.h. */
30372 #include <sys/ptrace.h>
30381 if ac_fn_c_try_compile
"$LINENO"; then :
30382 gdb_cv_have_ptrace_getregs
=yes
30384 gdb_cv_have_ptrace_getregs
=no
30387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
30392 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
30393 if test "$gdb_cv_have_ptrace_getregs" = yes; then
30395 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
30399 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
30401 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
30402 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
30403 $as_echo_n "(cached) " >&6
30405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30406 /* end confdefs.h. */
30407 #include <sys/ptrace.h>
30416 if ac_fn_c_try_compile
"$LINENO"; then :
30417 gdb_cv_have_ptrace_getfpxregs
=yes
30419 gdb_cv_have_ptrace_getfpxregs
=no
30422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
30427 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
30428 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
30430 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
30434 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
30435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
30436 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
30437 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
30438 $as_echo_n "(cached) " >&6
30440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30441 /* end confdefs.h. */
30442 #include <sys/types.h>
30443 #include <sys/ptrace.h>
30453 if ac_fn_c_try_compile
"$LINENO"; then :
30454 gdb_cv_have_pt_getdbregs
=yes
30456 gdb_cv_have_pt_getdbregs
=no
30459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
30464 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
30465 if test "$gdb_cv_have_pt_getdbregs" = yes; then
30467 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
30471 # See if <sys/ptrace.h> supports LWP names on FreeBSD
30472 # Older FreeBSD versions don't have the pl_tdname member of
30473 # `struct ptrace_lwpinfo'.
30474 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
30476 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
30478 cat >>confdefs.h
<<_ACEOF
30479 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
30486 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
30487 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
30489 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>
30491 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
30493 cat >>confdefs.h
<<_ACEOF
30494 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
30501 # Check if the compiler supports the `long long' type.
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
30504 $as_echo_n "checking for long long support in compiler... " >&6; }
30505 if ${gdb_cv_c_long_long+:} false
; then :
30506 $as_echo_n "(cached) " >&6
30508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30509 /* end confdefs.h. */
30510 extern long long foo;
30514 switch (foo & 2) { case 0: return 1; }
30519 if ac_fn_c_try_compile
"$LINENO"; then :
30520 gdb_cv_c_long_long
=yes
30522 gdb_cv_c_long_long
=no
30524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
30527 $as_echo "$gdb_cv_c_long_long" >&6; }
30528 if test "$gdb_cv_c_long_long" != yes; then
30529 # libdecnumber requires long long.
30530 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
30533 # Check if the compiler and runtime support printing decfloats.
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
30536 $as_echo_n "checking for decfloat support in printf... " >&6; }
30537 if ${gdb_cv_printf_has_decfloat+:} false
; then :
30538 $as_echo_n "(cached) " >&6
30540 if test "$cross_compiling" = yes; then :
30541 gdb_cv_printf_has_decfloat
=no
30543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30544 /* end confdefs.h. */
30545 $ac_includes_default
30550 _Decimal32 d32 = 1.2345df;
30551 _Decimal64 d64 = 1.2345dd;
30552 _Decimal128 d128 = 1.2345dl;
30553 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
30554 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
30559 if ac_fn_c_try_run
"$LINENO"; then :
30560 gdb_cv_printf_has_decfloat
=yes
30562 gdb_cv_printf_has_decfloat
=no
30564 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30565 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
30570 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
30571 if test "$gdb_cv_printf_has_decfloat" = yes; then
30573 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
30577 # Check if the compiler supports the `long double' type. We can't use
30578 # AC_C_LONG_DOUBLE because that one does additional checks on the
30579 # constants defined in <float.h> that fail on some systems,
30580 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
30583 $as_echo_n "checking for long double support in compiler... " >&6; }
30584 if ${gdb_cv_c_long_double+:} false
; then :
30585 $as_echo_n "(cached) " >&6
30587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30588 /* end confdefs.h. */
30591 if ac_fn_c_try_compile
"$LINENO"; then :
30592 gdb_cv_c_long_double
=yes
30594 gdb_cv_c_long_double
=no
30596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
30599 $as_echo "$gdb_cv_c_long_double" >&6; }
30600 if test "$gdb_cv_c_long_double" = yes; then
30602 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
30606 # Check if the compiler and runtime support printing long doubles.
30608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
30609 $as_echo_n "checking for long double support in printf... " >&6; }
30610 if ${gdb_cv_printf_has_long_double+:} false
; then :
30611 $as_echo_n "(cached) " >&6
30613 if test "$cross_compiling" = yes; then :
30614 gdb_cv_printf_has_long_double
=no
30616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30617 /* end confdefs.h. */
30618 $ac_includes_default
30623 long double f = 3.141592653;
30624 sprintf (buf, "%Lg", f);
30625 return (strncmp ("3.14159", buf, 7));
30630 if ac_fn_c_try_run
"$LINENO"; then :
30631 gdb_cv_printf_has_long_double
=yes
30633 gdb_cv_printf_has_long_double
=no
30635 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30636 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
30641 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
30642 if test "$gdb_cv_printf_has_long_double" = yes; then
30644 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
30648 # Check if the compiler and runtime support scanning long doubles.
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
30651 $as_echo_n "checking for long double support in scanf... " >&6; }
30652 if ${gdb_cv_scanf_has_long_double+:} false
; then :
30653 $as_echo_n "(cached) " >&6
30655 if test "$cross_compiling" = yes; then :
30656 gdb_cv_scanf_has_long_double
=no
30658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30659 /* end confdefs.h. */
30664 char *buf = "3.141592653";
30666 sscanf (buf, "%Lg", &f);
30667 return !(f > 3.14159 && f < 3.14160);
30672 if ac_fn_c_try_run
"$LINENO"; then :
30673 gdb_cv_scanf_has_long_double
=yes
30675 gdb_cv_scanf_has_long_double
=no
30677 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30678 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
30683 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
30684 if test "$gdb_cv_scanf_has_long_double" = yes; then
30686 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
30693 $as_echo_n "checking for -bbigtoc option... " >&6; }
30694 if ${gdb_cv_bigtoc+:} false
; then :
30695 $as_echo_n "(cached) " >&6
30697 SAVE_LDFLAGS
=$LDFLAGS
30700 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
30701 *) gdb_cv_bigtoc
=-bbigtoc ;;
30704 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
30705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30706 /* end confdefs.h. */
30716 if ac_fn_c_try_link
"$LINENO"; then :
30722 rm -f core conftest.err conftest.
$ac_objext \
30723 conftest
$ac_exeext conftest.
$ac_ext
30724 LDFLAGS
="${SAVE_LDFLAGS}"
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
30728 $as_echo "$gdb_cv_bigtoc" >&6; }
30729 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
30734 $as_echo_n "checking for the dynamic export flag... " >&6; }
30736 if test "${gdb_native}" = yes; then
30737 # The dynamically loaded libthread_db needs access to symbols in the gdb
30738 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
30739 # may not be supported there.
30740 old_LDFLAGS
="$LDFLAGS"
30741 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
30742 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
30743 LDFLAGS
="$LDFLAGS $RDYNAMIC"
30744 if test "${have_libpython}" = no
; then
30745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30746 /* end confdefs.h. */
30756 if ac_fn_c_try_link
"$LINENO"; then :
30759 rm -f core conftest.err conftest.
$ac_objext \
30760 conftest
$ac_exeext conftest.
$ac_ext
30762 # Workaround http://bugs.python.org/issue4434 where static
30763 # libpythonX.Y.a would get its symbols required for
30764 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
30765 # Problem does not happen for the recommended libpythonX.Y.so linkage.
30767 # Note the workaround for Python
30768 # http://bugs.python.org/issue10112 earlier has removed
30769 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
30770 # here too, as otherwise it'd make this -Wl,--dynamic-list test
30772 old_CFLAGS
="$CFLAGS"
30773 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
30775 LIBS
="$LIBS $PYTHON_LIBS"
30776 old_CPPFLAGS
="$CPPFLAGS"
30777 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
30778 if test "$cross_compiling" = yes; then :
30781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30782 /* end confdefs.h. */
30783 #include "Python.h"
30789 err = PyRun_SimpleString ("import ctypes\n");
30791 return err == 0 ? 0 : 1;
30796 if ac_fn_c_try_run
"$LINENO"; then :
30799 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30800 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30804 CFLAGS
="$old_CFLAGS"
30805 CPPFLAGS
="$old_CPPFLAGS"
30807 LDFLAGS
="$old_LDFLAGS"
30809 if $dynamic_list; then
30810 found
="-Wl,--dynamic-list"
30811 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
30814 RDYNAMIC
="-rdynamic"
30817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
30818 $as_echo "$found" >&6; }
30820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
30821 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
30822 if ${gdb_cv_execinfo_backtrace+:} false
; then :
30823 $as_echo_n "(cached) " >&6
30825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30826 /* end confdefs.h. */
30828 #include <execinfo.h>
30836 f = backtrace (b, 2);
30837 backtrace_symbols_fd (b, f, 2);
30843 if ac_fn_c_try_link
"$LINENO"; then :
30844 gdb_cv_execinfo_backtrace
=yes
30846 gdb_cv_execinfo_backtrace
=no
30848 rm -f core conftest.err conftest.
$ac_objext \
30849 conftest
$ac_exeext conftest.
$ac_ext
30851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
30852 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
30853 if test "$gdb_cv_execinfo_backtrace" = yes; then
30855 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
30860 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
30863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
30864 $as_echo_n "checking for AiX thread debugging library... " >&6; }
30865 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
30866 $as_echo_n "(cached) " >&6
30868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30869 /* end confdefs.h. */
30870 #include <sys/pthdebug.h>
30874 #ifndef PTHDB_VERSION_3
30882 if ac_fn_c_try_compile
"$LINENO"; then :
30883 gdb_cv_have_aix_thread_debug
=yes
30885 gdb_cv_have_aix_thread_debug
=no
30888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
30893 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
30894 if test "$gdb_cv_have_aix_thread_debug" = yes; then
30895 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
30896 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
30897 LIBS
="$LIBS -lpthdebug"
30899 # Older versions of AIX do not provide the declaration for
30900 # the getthrds function (it appears that it was introduced
30902 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
30904 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
30910 cat >>confdefs.h
<<_ACEOF
30911 #define HAVE_DECL_GETTHRDS $ac_have_decl
30920 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
30921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
30922 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
30923 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
30924 $as_echo_n "(cached) " >&6
30926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30927 /* end confdefs.h. */
30928 #include <thread_db.h>
30932 int i = TD_NOTALLOC;
30938 if ac_fn_c_try_compile
"$LINENO"; then :
30939 gdb_cv_thread_db_h_has_td_notalloc
=yes
30941 gdb_cv_thread_db_h_has_td_notalloc
=no
30944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
30948 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
30951 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
30952 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
30953 $as_echo_n "(cached) " >&6
30955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30956 /* end confdefs.h. */
30957 #include <thread_db.h>
30961 int i = TD_VERSION;
30967 if ac_fn_c_try_compile
"$LINENO"; then :
30968 gdb_cv_thread_db_h_has_td_version
=yes
30970 gdb_cv_thread_db_h_has_td_version
=no
30973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
30977 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
30980 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
30981 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
30982 $as_echo_n "(cached) " >&6
30984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30985 /* end confdefs.h. */
30986 #include <thread_db.h>
30996 if ac_fn_c_try_compile
"$LINENO"; then :
30997 gdb_cv_thread_db_h_has_td_notls
=yes
30999 gdb_cv_thread_db_h_has_td_notls
=no
31002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
31006 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
31008 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
31010 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
31013 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
31015 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
31018 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
31020 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
31033 cat >>confdefs.h
<<_ACEOF
31034 #define GDBINIT "$gdbinit"
31039 cat >>confdefs.h
<<_ACEOF
31040 #define GDBEARLYINIT ".gdbearlyinit"
31045 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
31046 # except that the argument to --with-sysroot is optional.
31047 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
31048 if test "x$with_sysroot" = xyes
; then
31049 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
31052 # Check whether --with-sysroot was given.
31053 if test "${with_sysroot+set}" = set; then :
31054 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
31056 TARGET_SYSTEM_ROOT
=
31060 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
31061 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31062 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
31063 ac_define_dir
=`eval echo $ac_define_dir`
31065 cat >>confdefs.h
<<_ACEOF
31066 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
31072 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
31073 if test "x$prefix" = xNONE
; then
31074 test_prefix
=/usr
/local
31076 test_prefix
=$prefix
31079 test_prefix
=$exec_prefix
31082 case ${ac_define_dir} in
31083 "${test_prefix}"|
"${test_prefix}/"*|\
31084 '${exec_prefix}'|
'${exec_prefix}/'*)
31089 cat >>confdefs.h
<<_ACEOF
31090 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
31097 # Check whether --with-system-gdbinit was given.
31098 if test "${with_system_gdbinit+set}" = set; then :
31099 withval
=$with_system_gdbinit;
31100 SYSTEM_GDBINIT
=$withval
31106 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
31107 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31108 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
31109 ac_define_dir
=`eval echo $ac_define_dir`
31111 cat >>confdefs.h
<<_ACEOF
31112 #define SYSTEM_GDBINIT "$ac_define_dir"
31118 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
31119 if test "x$prefix" = xNONE
; then
31120 test_prefix
=/usr
/local
31122 test_prefix
=$prefix
31125 test_prefix
=$exec_prefix
31128 case ${ac_define_dir} in
31129 "${test_prefix}"|
"${test_prefix}/"*|\
31130 '${exec_prefix}'|
'${exec_prefix}/'*)
31135 cat >>confdefs.h
<<_ACEOF
31136 #define SYSTEM_GDBINIT_RELOCATABLE $value
31143 # Check whether --with-system-gdbinit-dir was given.
31144 if test "${with_system_gdbinit_dir+set}" = set; then :
31145 withval
=$with_system_gdbinit_dir;
31146 SYSTEM_GDBINIT_DIR
=$withval
31148 SYSTEM_GDBINIT_DIR
=
31152 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
31153 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31154 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
31155 ac_define_dir
=`eval echo $ac_define_dir`
31157 cat >>confdefs.h
<<_ACEOF
31158 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
31164 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
31165 if test "x$prefix" = xNONE
; then
31166 test_prefix
=/usr
/local
31168 test_prefix
=$prefix
31171 test_prefix
=$exec_prefix
31174 case ${ac_define_dir} in
31175 "${test_prefix}"|
"${test_prefix}/"*|\
31176 '${exec_prefix}'|
'${exec_prefix}/'*)
31181 cat >>confdefs.h
<<_ACEOF
31182 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
31190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
31191 $as_echo_n "checking the compiler type... " >&6; }
31192 if ${gdb_cv_compiler_type+:} false
; then :
31193 $as_echo_n "(cached) " >&6
31195 gdb_cv_compiler_type
=unknown
31196 if test "$gdb_cv_compiler_type" = unknown
; then
31197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31198 /* end confdefs.h. */
31204 #if !defined __GNUC__ || defined __clang__
31212 if ac_fn_c_try_compile
"$LINENO"; then :
31213 gdb_cv_compiler_type
=gcc
31215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31218 if test "$gdb_cv_compiler_type" = unknown
; then
31219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31220 /* end confdefs.h. */
31234 if ac_fn_c_try_compile
"$LINENO"; then :
31235 gdb_cv_compiler_type
=clang
31237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
31242 $as_echo "$gdb_cv_compiler_type" >&6; }
31244 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
31247 # Check whether --enable-werror was given.
31248 if test "${enable_werror+set}" = set; then :
31249 enableval
=$enable_werror; case "${enableval}" in
31250 yes | y
) ERROR_ON_WARNING
="yes" ;;
31251 no | n
) ERROR_ON_WARNING
="no" ;;
31252 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
31257 # Enable -Werror by default when using gcc. Turn it off for releases.
31258 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
31259 ERROR_ON_WARNING
=yes
31263 if test "${ERROR_ON_WARNING}" = yes ; then
31264 WERROR_CFLAGS
="-Werror"
31267 # The options we'll try to enable.
31268 build_warnings
="-Wall -Wpointer-arith \
31269 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
31270 -Wno-switch -Wno-char-subscripts \
31271 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
31272 -Wno-sign-compare -Wno-error=maybe-uninitialized \
31273 -Wno-mismatched-tags \
31274 -Wno-error=deprecated-register \
31275 -Wsuggest-override \
31276 -Wimplicit-fallthrough=5 \
31277 -Wduplicated-cond \
31279 -Wdeprecated-copy \
31280 -Wdeprecated-copy-dtor \
31282 -Wmissing-declarations \
31283 -Wstrict-null-sentinel \
31287 # The -Wmissing-prototypes flag will be accepted by GCC, but results
31288 # in a warning being printed about the flag not being valid for C++,
31289 # this is something to do with using ccache, and argument ordering.
31290 if test "$GDB_COMPILER_TYPE" != gcc
; then
31291 build_warnings
="$build_warnings -Wmissing-prototypes"
31296 # Enable -Wno-format by default when using gcc on mingw since many
31297 # GCC versions complain about %I64.
31298 build_warnings
="$build_warnings -Wno-format" ;;
31300 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
31301 # doesn't understand.
31302 build_warnings
="$build_warnings -Wno-unknown-pragmas"
31303 # Solaris 11 <unistd.h> marks vfork deprecated.
31304 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
31306 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
31307 # but there's a special case for this below.
31308 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
31311 # Check whether --enable-build-warnings was given.
31312 if test "${enable_build_warnings+set}" = set; then :
31313 enableval
=$enable_build_warnings; case "${enableval}" in
31315 no
) build_warnings
="-w";;
31316 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
31317 build_warnings
="${build_warnings} ${t}";;
31318 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
31319 build_warnings
="${t} ${build_warnings}";;
31320 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
31322 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
31323 echo "Setting compiler warning flags = $build_warnings" 6>&1
31326 # Check whether --enable-gdb-build-warnings was given.
31327 if test "${enable_gdb_build_warnings+set}" = set; then :
31328 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
31330 no
) build_warnings
="-w";;
31331 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
31332 build_warnings
="${build_warnings} ${t}";;
31333 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
31334 build_warnings
="${t} ${build_warnings}";;
31335 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
31337 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
31338 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
31342 # The set of warnings supported by a C++ compiler is not the same as
31343 # of the C compiler.
31345 ac_cpp
='$CXXCPP $CPPFLAGS'
31346 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31347 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31348 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31352 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
31355 $as_echo_n "checking compiler warning flags... " >&6; }
31356 # Separate out the -Werror flag as some files just cannot be
31357 # compiled with it enabled.
31358 for w
in ${build_warnings}; do
31359 # GCC does not complain about -Wno-unknown-warning. Invert
31360 # and test -Wunknown-warning instead.
31363 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
31364 -Wformat-nonliteral)
31365 # gcc requires -Wformat before -Wformat-nonliteral
31366 # will work, so stick them together.
31375 -Werr*) WERROR_CFLAGS
=-Werror ;;
31377 # Check whether GCC accepts it.
31378 saved_CFLAGS
="$CFLAGS"
31379 CFLAGS
="$CFLAGS -Werror $wtest"
31380 saved_CXXFLAGS
="$CXXFLAGS"
31381 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
31382 if test "x$w" = "x-Wunused-variable"; then
31383 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
31384 # fixed in GCC 4.9. This test is derived from the gdb
31385 # source code that triggered this bug in GCC.
31386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31387 /* end confdefs.h. */
31388 struct scoped_restore_base {};
31389 struct scoped_restore_tmpl : public scoped_restore_base {
31390 ~scoped_restore_tmpl() {}
31395 const scoped_restore_base &b = scoped_restore_tmpl();
31401 if ac_fn_cxx_try_compile
"$LINENO"; then :
31402 WARN_CFLAGS
="${WARN_CFLAGS} $w"
31404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31407 /* end confdefs.h. */
31417 if ac_fn_cxx_try_compile
"$LINENO"; then :
31418 WARN_CFLAGS
="${WARN_CFLAGS} $w"
31420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31422 CFLAGS
="$saved_CFLAGS"
31423 CXXFLAGS
="$saved_CXXFLAGS"
31426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
31427 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
31433 ac_cpp='$CPP $CPPFLAGS'
31434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31440 # Check whether --enable-ubsan was given.
31441 if test "${enable_ubsan+set}" = set; then :
31442 enableval=$enable_ubsan;
31447 if test "x
$enable_ubsan" = xauto; then
31448 if $development; then
31453 ac_cpp='$CXXCPP $CPPFLAGS'
31454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31458 if test "x
$enable_ubsan" = xyes; then
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
31460 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
31461 saved_CXXFLAGS="$CXXFLAGS"
31462 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
31463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31464 /* end confdefs.h. */
31474 if ac_fn_cxx_try_link "$LINENO"; then :
31480 rm -f core conftest.err conftest.$ac_objext \
31481 conftest$ac_exeext conftest.$ac_ext
31482 CXXFLAGS="$saved_CXXFLAGS"
31483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
31484 $as_echo "$enable_ubsan" >&6; }
31485 if test "x
$enable_ubsan" = xyes; then
31486 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
31487 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
31491 ac_cpp='$CPP $CPPFLAGS'
31492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31498 # In the Cygwin environment, we need some additional flags.
31499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
31500 $as_echo_n "checking
for cygwin...
" >&6; }
31501 if ${gdb_cv_os_cygwin+:} false; then :
31502 $as_echo_n "(cached
) " >&6
31504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31505 /* end confdefs.h. */
31507 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
31511 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
31512 $EGREP "^lose$
" >/dev/null 2>&1; then :
31513 gdb_cv_os_cygwin=yes
31515 gdb_cv_os_cygwin=no
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
31521 $as_echo "$gdb_cv_os_cygwin" >&6; }
31524 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
31526 *go32* ) SER_HARDWIRE=ser-go32.o ;;
31527 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
31528 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
31529 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
31533 # libreadline needs libuser32.a in a cygwin environment
31535 if test x"$gdb_cv_os_cygwin" = xyes; then
31536 WIN32LIBS="-luser32"
31537 case "${target}" in
31538 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
31543 # The ser-tcp.c module requires sockets.
31544 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
31545 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
31547 # Add ELF support to GDB, but only if BFD includes ELF support.
31550 OLD_LDFLAGS=$LDFLAGS
31553 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
31554 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
31555 # always want our bfd.
31556 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
31557 LDFLAGS="-L..
/bfd
-L..
/libiberty
$LDFLAGS"
31558 # LTLIBINTL because we use libtool as CC below.
31559 intl="$
(echo "$LTLIBINTL" |
sed 's,\$[{(]top_builddir[)}]/,,')"
31560 LIBS="-lbfd -liberty $intl $LIBS"
31561 CC=".
/libtool
--quiet --mode=link
$CC"
31562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
31563 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
31564 if ${gdb_cv_var_elf+:} false; then :
31565 $as_echo_n "(cached
) " >&6
31567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31568 /* end confdefs.h. */
31569 #include <stdlib.h>
31570 #include <string.h>
31572 #include "elf-bfd.h
"
31576 return bfd_get_elf_phdr_upper_bound (NULL);
31582 if ac_fn_c_try_link "$LINENO"; then :
31588 rm -f core conftest.err conftest.$ac_objext \
31589 conftest$ac_exeext conftest.$ac_ext
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
31593 $as_echo "$gdb_cv_var_elf" >&6; }
31596 LDFLAGS=$OLD_LDFLAGS
31598 if test "$gdb_cv_var_elf" = yes; then
31599 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
31600 gcore-elf.o elf-none-tdep.o
"
31602 $as_echo "#define HAVE_ELF 1" >>confdefs.h
31604 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
31605 if test "$plugins" = "yes"; then
31606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31607 $as_echo_n "checking for library containing dlopen... " >&6; }
31608 if ${ac_cv_search_dlopen+:} false
; then :
31609 $as_echo_n "(cached) " >&6
31611 ac_func_search_save_LIBS
=$LIBS
31612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31613 /* end confdefs.h. */
31615 /* Override any GCC internal prototype to avoid an error.
31616 Use char because int might match the return type of a GCC
31617 builtin and then its argument prototype would still apply. */
31630 for ac_lib
in '' dl
; do
31631 if test -z "$ac_lib"; then
31632 ac_res
="none required"
31635 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31637 if ac_fn_c_try_link
"$LINENO"; then :
31638 ac_cv_search_dlopen
=$ac_res
31640 rm -f core conftest.err conftest.
$ac_objext \
31642 if ${ac_cv_search_dlopen+:} false
; then :
31646 if ${ac_cv_search_dlopen+:} false
; then :
31649 ac_cv_search_dlopen
=no
31651 rm conftest.
$ac_ext
31652 LIBS
=$ac_func_search_save_LIBS
31654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31655 $as_echo "$ac_cv_search_dlopen" >&6; }
31656 ac_res
=$ac_cv_search_dlopen
31657 if test "$ac_res" != no
; then :
31658 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
31665 # Add macho support to GDB, but only if BFD includes it.
31668 OLD_LDFLAGS
=$LDFLAGS
31671 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
31672 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
31673 # always want our bfd.
31674 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
31675 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
31676 # LTLIBINTL because we use libtool as CC below.
31677 intl
="$(echo "$LTLIBINTL" | sed 's,\$[{(]top_builddir[)}]/,,')"
31678 LIBS
="-lbfd -liberty $intl $LIBS"
31679 CC
="./libtool --quiet --mode=link $CC"
31680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
31681 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
31682 if ${gdb_cv_var_macho+:} false
; then :
31683 $as_echo_n "(cached) " >&6
31685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31686 /* end confdefs.h. */
31687 #include <stdlib.h>
31688 #include <string.h>
31690 #include "mach-o.h"
31694 return bfd_mach_o_lookup_command (NULL, 0, NULL);
31700 if ac_fn_c_try_link
"$LINENO"; then :
31701 gdb_cv_var_macho
=yes
31703 gdb_cv_var_macho
=no
31706 rm -f core conftest.err conftest.
$ac_objext \
31707 conftest
$ac_exeext conftest.
$ac_ext
31710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
31711 $as_echo "$gdb_cv_var_macho" >&6; }
31714 LDFLAGS
=$OLD_LDFLAGS
31716 if test "$gdb_cv_var_macho" = yes; then
31717 CONFIG_OBS
="$CONFIG_OBS machoread.o"
31720 # Add any host-specific objects to GDB.
31721 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
31723 # If building on ELF, look for lzma support for embedded compressed debug info.
31724 if test "$gdb_cv_var_elf" = yes; then
31726 # Check whether --with-lzma was given.
31727 if test "${with_lzma+set}" = set; then :
31728 withval
=$with_lzma;
31733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
31734 $as_echo_n "checking whether to use lzma... " >&6; }
31735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
31736 $as_echo "$with_lzma" >&6; }
31738 if test "${with_lzma}" != no
; then
31749 acl_save_prefix
="$prefix"
31750 prefix
="$acl_final_prefix"
31751 acl_save_exec_prefix
="$exec_prefix"
31752 exec_prefix
="$acl_final_exec_prefix"
31754 eval additional_includedir
=\"$includedir\"
31755 eval additional_libdir
=\"$libdir\"
31757 exec_prefix
="$acl_save_exec_prefix"
31758 prefix
="$acl_save_prefix"
31761 # Check whether --with-liblzma-prefix was given.
31762 if test "${with_liblzma_prefix+set}" = set; then :
31763 withval
=$with_liblzma_prefix;
31764 if test "X$withval" = "Xno"; then
31767 if test "X$withval" = "X"; then
31769 acl_save_prefix
="$prefix"
31770 prefix
="$acl_final_prefix"
31771 acl_save_exec_prefix
="$exec_prefix"
31772 exec_prefix
="$acl_final_exec_prefix"
31774 eval additional_includedir
=\"$includedir\"
31775 eval additional_libdir
=\"$libdir\"
31777 exec_prefix
="$acl_save_exec_prefix"
31778 prefix
="$acl_save_prefix"
31781 additional_includedir
="$withval/include"
31782 additional_libdir
="$withval/lib"
31789 # Check whether --with-liblzma-type was given.
31790 if test "${with_liblzma_type+set}" = set; then :
31791 withval
=$with_liblzma_type; with_liblzma_type
=$withval
31793 with_liblzma_type
=auto
31796 lib_type
=`eval echo \$with_liblzma_type`
31803 names_already_handled
=
31804 names_next_round
='lzma '
31805 while test -n "$names_next_round"; do
31806 names_this_round
="$names_next_round"
31808 for name
in $names_this_round; do
31810 for n
in $names_already_handled; do
31811 if test "$n" = "$name"; then
31812 already_handled
=yes
31816 if test -z "$already_handled"; then
31817 names_already_handled
="$names_already_handled $name"
31818 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
31819 eval value
=\"\
$HAVE_LIB$uppername\"
31820 if test -n "$value"; then
31821 if test "$value" = yes; then
31822 eval value
=\"\
$LIB$uppername\"
31823 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
31824 eval value
=\"\
$LTLIB$uppername\"
31825 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
31834 if test $use_additional = yes; then
31835 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
31836 found_dir
="$additional_libdir"
31837 found_so
="$additional_libdir/lib$name.$shlibext"
31838 if test -f "$additional_libdir/lib$name.la"; then
31839 found_la
="$additional_libdir/lib$name.la"
31841 elif test x
$lib_type != xshared
; then
31842 if test -f "$additional_libdir/lib$name.$libext"; then
31843 found_dir
="$additional_libdir"
31844 found_a
="$additional_libdir/lib$name.$libext"
31845 if test -f "$additional_libdir/lib$name.la"; then
31846 found_la
="$additional_libdir/lib$name.la"
31851 if test "X$found_dir" = "X"; then
31852 for x
in $LDFLAGS $LTLIBLZMA; do
31854 acl_save_prefix
="$prefix"
31855 prefix
="$acl_final_prefix"
31856 acl_save_exec_prefix
="$exec_prefix"
31857 exec_prefix
="$acl_final_exec_prefix"
31859 exec_prefix
="$acl_save_exec_prefix"
31860 prefix
="$acl_save_prefix"
31864 dir
=`echo "X$x" | sed -e 's/^X-L//'`
31865 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
31867 found_so
="$dir/lib$name.$shlibext"
31868 if test -f "$dir/lib$name.la"; then
31869 found_la
="$dir/lib$name.la"
31871 elif test x
$lib_type != xshared
; then
31872 if test -f "$dir/lib$name.$libext"; then
31874 found_a
="$dir/lib$name.$libext"
31875 if test -f "$dir/lib$name.la"; then
31876 found_la
="$dir/lib$name.la"
31882 if test "X$found_dir" != "X"; then
31887 if test "X$found_dir" != "X"; then
31888 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
31889 if test "X$found_so" != "X"; then
31890 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
31891 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
31894 for x
in $ltrpathdirs; do
31895 if test "X$x" = "X$found_dir"; then
31900 if test -z "$haveit"; then
31901 ltrpathdirs
="$ltrpathdirs $found_dir"
31903 if test "$hardcode_direct" = yes; then
31904 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
31906 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
31907 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
31909 for x
in $rpathdirs; do
31910 if test "X$x" = "X$found_dir"; then
31915 if test -z "$haveit"; then
31916 rpathdirs
="$rpathdirs $found_dir"
31920 for x
in $LDFLAGS $LIBLZMA; do
31922 acl_save_prefix
="$prefix"
31923 prefix
="$acl_final_prefix"
31924 acl_save_exec_prefix
="$exec_prefix"
31925 exec_prefix
="$acl_final_exec_prefix"
31927 exec_prefix
="$acl_save_exec_prefix"
31928 prefix
="$acl_save_prefix"
31930 if test "X$x" = "X-L$found_dir"; then
31935 if test -z "$haveit"; then
31936 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
31938 if test "$hardcode_minus_L" != no
; then
31939 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
31941 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
31947 if test "X$found_a" != "X"; then
31948 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
31950 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
31953 additional_includedir
=
31954 case "$found_dir" in
31956 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
31957 additional_includedir
="$basedir/include"
31960 if test "X$additional_includedir" != "X"; then
31961 if test "X$additional_includedir" != "X/usr/include"; then
31963 if test "X$additional_includedir" = "X/usr/local/include"; then
31964 if test -n "$GCC"; then
31966 linux
*) haveit
=yes;;
31970 if test -z "$haveit"; then
31971 for x
in $CPPFLAGS $INCLZMA; do
31973 acl_save_prefix
="$prefix"
31974 prefix
="$acl_final_prefix"
31975 acl_save_exec_prefix
="$exec_prefix"
31976 exec_prefix
="$acl_final_exec_prefix"
31978 exec_prefix
="$acl_save_exec_prefix"
31979 prefix
="$acl_save_prefix"
31981 if test "X$x" = "X-I$additional_includedir"; then
31986 if test -z "$haveit"; then
31987 if test -d "$additional_includedir"; then
31988 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
31994 if test -n "$found_la"; then
31995 save_libdir
="$libdir"
31996 case "$found_la" in
31997 */* |
*\\*) .
"$found_la" ;;
31998 *) .
"./$found_la" ;;
32000 libdir
="$save_libdir"
32001 for dep
in $dependency_libs; do
32004 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
32005 if test "X$additional_libdir" != "X/usr/lib"; then
32007 if test "X$additional_libdir" = "X/usr/local/lib"; then
32008 if test -n "$GCC"; then
32010 linux
*) haveit
=yes;;
32014 if test -z "$haveit"; then
32016 for x
in $LDFLAGS $LIBLZMA; do
32018 acl_save_prefix
="$prefix"
32019 prefix
="$acl_final_prefix"
32020 acl_save_exec_prefix
="$exec_prefix"
32021 exec_prefix
="$acl_final_exec_prefix"
32023 exec_prefix
="$acl_save_exec_prefix"
32024 prefix
="$acl_save_prefix"
32026 if test "X$x" = "X-L$additional_libdir"; then
32031 if test -z "$haveit"; then
32032 if test -d "$additional_libdir"; then
32033 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
32037 for x
in $LDFLAGS $LTLIBLZMA; do
32039 acl_save_prefix
="$prefix"
32040 prefix
="$acl_final_prefix"
32041 acl_save_exec_prefix
="$exec_prefix"
32042 exec_prefix
="$acl_final_exec_prefix"
32044 exec_prefix
="$acl_save_exec_prefix"
32045 prefix
="$acl_save_prefix"
32047 if test "X$x" = "X-L$additional_libdir"; then
32052 if test -z "$haveit"; then
32053 if test -d "$additional_libdir"; then
32054 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
32061 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
32062 if test "$enable_rpath" != no
; then
32064 for x
in $rpathdirs; do
32065 if test "X$x" = "X$dir"; then
32070 if test -z "$haveit"; then
32071 rpathdirs
="$rpathdirs $dir"
32074 for x
in $ltrpathdirs; do
32075 if test "X$x" = "X$dir"; then
32080 if test -z "$haveit"; then
32081 ltrpathdirs
="$ltrpathdirs $dir"
32086 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
32089 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
32092 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
32093 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
32099 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
32100 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
32101 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
32103 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
32104 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
32111 if test "X$rpathdirs" != "X"; then
32112 if test -n "$hardcode_libdir_separator"; then
32114 for found_dir
in $rpathdirs; do
32115 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
32117 acl_save_libdir
="$libdir"
32119 eval flag
=\"$hardcode_libdir_flag_spec\"
32120 libdir
="$acl_save_libdir"
32121 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
32123 for found_dir
in $rpathdirs; do
32124 acl_save_libdir
="$libdir"
32125 libdir
="$found_dir"
32126 eval flag
=\"$hardcode_libdir_flag_spec\"
32127 libdir
="$acl_save_libdir"
32128 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
32132 if test "X$ltrpathdirs" != "X"; then
32133 for found_dir
in $ltrpathdirs; do
32134 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
32139 ac_save_CPPFLAGS
="$CPPFLAGS"
32141 for element
in $INCLZMA; do
32143 for x
in $CPPFLAGS; do
32145 acl_save_prefix
="$prefix"
32146 prefix
="$acl_final_prefix"
32147 acl_save_exec_prefix
="$exec_prefix"
32148 exec_prefix
="$acl_final_exec_prefix"
32150 exec_prefix
="$acl_save_exec_prefix"
32151 prefix
="$acl_save_prefix"
32153 if test "X$x" = "X$element"; then
32158 if test -z "$haveit"; then
32159 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
32164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
32165 $as_echo_n "checking for liblzma... " >&6; }
32166 if ${ac_cv_liblzma+:} false
; then :
32167 $as_echo_n "(cached) " >&6
32170 ac_save_LIBS
="$LIBS"
32171 LIBS
="$LIBS $LIBLZMA"
32172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32173 /* end confdefs.h. */
32178 lzma_index_iter iter;
32179 lzma_index_iter_init (&iter, 0);
32180 lzma_mf_is_supported (LZMA_MF_HC3);
32185 if ac_fn_c_try_link
"$LINENO"; then :
32190 rm -f core conftest.err conftest.
$ac_objext \
32191 conftest
$ac_exeext conftest.
$ac_ext
32192 LIBS
="$ac_save_LIBS"
32195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
32196 $as_echo "$ac_cv_liblzma" >&6; }
32197 if test "$ac_cv_liblzma" = yes; then
32200 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
32203 $as_echo_n "checking how to link with liblzma... " >&6; }
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
32205 $as_echo "$LIBLZMA" >&6; }
32208 CPPFLAGS
="$ac_save_CPPFLAGS"
32218 if test "$HAVE_LIBLZMA" != yes; then
32219 if test "$with_lzma" = yes; then
32220 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
32226 LIBGUI
="../libgui/src/libgui.a"
32227 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
32236 *-*-cygwin* |
*-*-mingw* )
32245 if test "${enable_gdbtk}" = "yes"; then
32247 # Gdbtk must have an absolute path to srcdir in order to run
32248 # properly when not installed.
32251 GDBTK_SRC_DIR
=`pwd`
32256 # Ok, lets find the tcl configuration
32257 # First, look for one uninstalled.
32258 # the alternative search directory is invoked by --with-tcl
32261 if test x
"${no_tcl}" = x
; then
32262 # we reset no_tcl in case something fails here
32265 # Check whether --with-tcl was given.
32266 if test "${with_tcl+set}" = set; then :
32267 withval
=$with_tcl; with_tclconfig
=${withval}
32270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
32271 $as_echo_n "checking for Tcl configuration... " >&6; }
32272 if ${ac_cv_c_tclconfig+:} false
; then :
32273 $as_echo_n "(cached) " >&6
32277 # First check to see if --with-tcl was specified.
32279 *-*-cygwin*) platDir
="win" ;;
32280 *) platDir
="unix" ;;
32282 if test x
"${with_tclconfig}" != x
; then
32283 if test -f "${with_tclconfig}/tclConfig.sh" ; then
32284 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
32286 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
32290 # then check for a private Tcl installation
32291 if test x
"${ac_cv_c_tclconfig}" = x
; then
32294 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32295 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
32296 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
32298 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32299 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
32300 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
32302 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32303 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
32304 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
32305 if test -f "$i/$platDir/tclConfig.sh" ; then
32306 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
32312 # on Darwin, check in Framework installation locations
32313 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
32314 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
32315 `ls -d /Library/Frameworks 2>/dev/null` \
32316 `ls -d /Network/Library/Frameworks 2>/dev/null` \
32317 `ls -d /System/Library/Frameworks 2>/dev/null` \
32319 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
32320 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
32326 # check in a few common install locations
32327 if test x
"${ac_cv_c_tclconfig}" = x
; then
32328 for i
in `ls -d ${libdir} 2>/dev/null` \
32329 `ls -d ${exec_prefix}/lib 2>/dev/null` \
32330 `ls -d ${prefix}/lib 2>/dev/null` \
32331 `ls -d /usr/local/lib 2>/dev/null` \
32332 `ls -d /usr/contrib/lib 2>/dev/null` \
32333 `ls -d /usr/lib 2>/dev/null` \
32335 if test -f "$i/tclConfig.sh" ; then
32336 ac_cv_c_tclconfig
=`(cd $i; pwd)`
32342 # check in a few other private locations
32343 if test x
"${ac_cv_c_tclconfig}" = x
; then
32346 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32347 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
32348 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
32349 if test -f "$i/$platDir/tclConfig.sh" ; then
32350 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
32359 if test x
"${ac_cv_c_tclconfig}" = x
; then
32360 TCL_BIN_DIR
="# no Tcl configs found"
32361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
32362 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
32365 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
32366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
32367 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
32372 # If $no_tk is nonempty, then we can't do Tk, and there is no
32373 # point to doing Tcl.
32376 # Ok, lets find the tk configuration
32377 # First, look for one uninstalled.
32378 # the alternative search directory is invoked by --with-tk
32381 if test x
"${no_tk}" = x
; then
32382 # we reset no_tk in case something fails here
32385 # Check whether --with-tk was given.
32386 if test "${with_tk+set}" = set; then :
32387 withval
=$with_tk; with_tkconfig
=${withval}
32390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
32391 $as_echo_n "checking for Tk configuration... " >&6; }
32392 if ${ac_cv_c_tkconfig+:} false
; then :
32393 $as_echo_n "(cached) " >&6
32397 # First check to see if --with-tkconfig was specified.
32398 if test x
"${with_tkconfig}" != x
; then
32399 if test -f "${with_tkconfig}/tkConfig.sh" ; then
32400 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
32402 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
32406 # then check for a private Tk library
32408 *-*-cygwin*) platDir
="win" ;;
32409 *) platDir
="unix" ;;
32411 if test x
"${ac_cv_c_tkconfig}" = x
; then
32414 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32415 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
32416 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
32418 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32419 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
32420 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
32422 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32423 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
32424 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
32425 if test -f "$i/$platDir/tkConfig.sh" ; then
32426 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
32432 # on Darwin, check in Framework installation locations
32433 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
32434 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
32435 `ls -d /Library/Frameworks 2>/dev/null` \
32436 `ls -d /Network/Library/Frameworks 2>/dev/null` \
32437 `ls -d /System/Library/Frameworks 2>/dev/null` \
32439 if test -f "$i/Tk.framework/tkConfig.sh" ; then
32440 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
32446 # check in a few common install locations
32447 if test x
"${ac_cv_c_tkconfig}" = x
; then
32448 for i
in `ls -d ${libdir} 2>/dev/null` \
32449 `ls -d ${exec_prefix}/lib 2>/dev/null` \
32450 `ls -d ${prefix}/lib 2>/dev/null` \
32451 `ls -d /usr/local/lib 2>/dev/null` \
32452 `ls -d /usr/contrib/lib 2>/dev/null` \
32453 `ls -d /usr/lib 2>/dev/null` \
32455 if test -f "$i/tkConfig.sh" ; then
32456 ac_cv_c_tkconfig
=`(cd $i; pwd)`
32461 # check in a few other private locations
32462 if test x
"${ac_cv_c_tkconfig}" = x
; then
32465 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32466 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
32467 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
32468 if test -f "$i/$platDir/tkConfig.sh" ; then
32469 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
32478 if test x
"${ac_cv_c_tkconfig}" = x
; then
32479 TK_BIN_DIR
="# no Tk configs found"
32480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
32481 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
32484 TK_BIN_DIR
=${ac_cv_c_tkconfig}
32485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
32486 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
32491 if test -z "${no_tcl}" -a -z "${no_tk}"; then
32493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
32494 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
32496 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
32497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
32498 $as_echo "loading" >&6; }
32499 .
${TCL_BIN_DIR}/tclConfig.sh
32501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
32502 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
32505 # eval is required to do the TCL_DBGX substitution
32506 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
32507 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
32509 # If the TCL_BIN_DIR is the build directory (not the install directory),
32510 # then set the common variable name to the value of the build variables.
32511 # For example, the variable TCL_LIB_SPEC will be set to the value
32512 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
32513 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
32514 # installed and uninstalled version of Tcl.
32515 if test -f "${TCL_BIN_DIR}/Makefile" ; then
32516 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
32517 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
32518 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
32519 elif test "`uname -s`" = "Darwin"; then
32520 # If Tcl was built as a framework, attempt to use the libraries
32521 # from the framework at the given location so that linking works
32522 # against Tcl.framework installed in an arbitrary location.
32523 case ${TCL_DEFS} in
32525 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
32526 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
32527 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
32528 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
32529 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
32534 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
32535 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
32536 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
32542 # eval is required to do the TCL_DBGX substitution
32543 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
32544 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
32545 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
32546 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
32562 # Check for in-tree tcl
32569 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
32573 # Find Tcl private headers
32574 if test x
"${intree}" = xno
; then
32576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
32577 $as_echo_n "checking for Tcl private headers... " >&6; }
32579 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
32580 if test -f ${dir}/tclInt.h
; then
32584 if test x
"${private_dir}" = x
; then
32585 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
32587 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
32588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
32589 $as_echo "${private_dir}" >&6; }
32592 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
32593 TCL_LIBRARY
="${TCL_LIB_SPEC}"
32596 # If building tcl in the same src tree, private headers
32597 # are not needed, but we need to be sure to use the right
32599 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
32600 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
32601 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
32608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
32609 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
32611 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
32612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
32613 $as_echo "loading" >&6; }
32614 .
${TK_BIN_DIR}/tkConfig.sh
32616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
32617 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
32620 # eval is required to do the TK_DBGX substitution
32621 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
32622 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
32624 # If the TK_BIN_DIR is the build directory (not the install directory),
32625 # then set the common variable name to the value of the build variables.
32626 # For example, the variable TK_LIB_SPEC will be set to the value
32627 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
32628 # instead of TK_BUILD_LIB_SPEC since it will work with both an
32629 # installed and uninstalled version of Tcl.
32630 if test -f "${TK_BIN_DIR}/Makefile" ; then
32631 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
32632 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
32633 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
32634 elif test "`uname -s`" = "Darwin"; then
32635 # If Tk was built as a framework, attempt to use the libraries
32636 # from the framework at the given location so that linking works
32637 # against Tk.framework installed in an arbitrary location.
32640 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
32641 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
32642 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
32643 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
32644 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
32649 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
32650 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
32651 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
32657 # eval is required to do the TK_DBGX substitution
32658 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
32659 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
32660 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
32661 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
32676 # Check for in-tree Tk
32678 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
32682 # Find Tk private headers
32683 if test x
"${intree}" = xno
; then
32685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
32686 $as_echo_n "checking for Tk private headers... " >&6; }
32688 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
32689 if test -f ${dir}/tkInt.h
; then
32693 if test x
"${private_dir}" = x
; then
32694 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
32696 TK_PRIVATE_INCLUDE
="-I${private_dir}"
32697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
32698 $as_echo "${private_dir}" >&6; }
32701 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
32702 TK_LIBRARY
=${TK_LIB_SPEC}
32705 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
32706 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
32707 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
32714 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
32716 # Include some libraries that Tcl and Tk want.
32717 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
32718 # Yes, the ordering seems wrong here. But it isn't.
32719 # TK_LIBS is the list of libraries that need to be linked
32720 # after Tcl/Tk. Note that this isn't put into LIBS. If it
32721 # were in LIBS then any link tests after this point would
32722 # try to include things like `$(LIBGUI)', which wouldn't work.
32723 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
32725 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
32726 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
32727 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
32728 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
32729 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
32730 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
32731 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
32733 if test x
"$gdb_cv_os_cygwin" = xyes
; then
32734 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
32735 WIN32LDAPP
="-Wl,--subsystem,console"
32736 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
32739 subdirs
="$subdirs gdbtk"
32751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
32752 $as_echo_n "checking for X... " >&6; }
32755 # Check whether --with-x was given.
32756 if test "${with_x+set}" = set; then :
32760 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32761 if test "x$with_x" = xno
; then
32762 # The user explicitly disabled X.
32765 case $x_includes,$x_libraries in #(
32766 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
32767 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
32768 $as_echo_n "(cached) " >&6
32770 # One or both of the vars are not set, and there is no cached value.
32771 ac_x_includes
=no ac_x_libraries
=no
32772 rm -f -r conftest.dir
32773 if mkdir conftest.dir
; then
32775 cat >Imakefile
<<'_ACEOF'
32777 @echo incroot='${INCROOT}'
32779 @echo usrlibdir='${USRLIBDIR}'
32781 @echo libdir='${LIBDIR}'
32783 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
32784 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
32785 for ac_var
in incroot usrlibdir libdir
; do
32786 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32788 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32789 for ac_extension
in a so sl dylib la dll
; do
32790 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32791 test -f "$ac_im_libdir/libX11.$ac_extension"; then
32792 ac_im_usrlibdir
=$ac_im_libdir; break
32795 # Screen out bogus values from the imake configuration. They are
32796 # bogus both because they are the default anyway, and because
32797 # using them would break gcc on systems where it needs fixed includes.
32798 case $ac_im_incroot in
32799 /usr
/include
) ac_x_includes
= ;;
32800 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
32802 case $ac_im_usrlibdir in
32803 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
32804 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
32808 rm -f -r conftest.dir
32811 # Standard set of common directories for X headers.
32812 # Check X11 before X11Rn because it is often a symlink to the current release.
32826 /usr/local/X11/include
32827 /usr/local/X11R7/include
32828 /usr/local/X11R6/include
32829 /usr/local/X11R5/include
32830 /usr/local/X11R4/include
32832 /usr/local/include/X11
32833 /usr/local/include/X11R7
32834 /usr/local/include/X11R6
32835 /usr/local/include/X11R5
32836 /usr/local/include/X11R4
32840 /usr/XFree86/include/X11
32844 /usr/unsupported/include
32845 /usr/athena/include
32846 /usr/local/x11r5/include
32847 /usr/lpp/Xamples/include
32849 /usr/openwin/include
32850 /usr/openwin/share/include'
32852 if test "$ac_x_includes" = no
; then
32853 # Guess where to find include files, by looking for Xlib.h.
32854 # First, try using that file with no special directory specified.
32855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32856 /* end confdefs.h. */
32857 #include <X11/Xlib.h>
32859 if ac_fn_c_try_cpp
"$LINENO"; then :
32860 # We can compile using X headers with no special include directory.
32863 for ac_dir
in $ac_x_header_dirs; do
32864 if test -r "$ac_dir/X11/Xlib.h"; then
32865 ac_x_includes
=$ac_dir
32870 rm -f conftest.err conftest.i conftest.
$ac_ext
32871 fi # $ac_x_includes = no
32873 if test "$ac_x_libraries" = no
; then
32874 # Check for the libraries.
32875 # See if we find them without any special options.
32876 # Don't add to $LIBS permanently.
32879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32880 /* end confdefs.h. */
32881 #include <X11/Xlib.h>
32890 if ac_fn_c_try_link
"$LINENO"; then :
32892 # We can link X programs with no special library path.
32896 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32898 # Don't even attempt the hair of trying to link an X program!
32899 for ac_extension
in a so sl dylib la dll
; do
32900 if test -r "$ac_dir/libX11.$ac_extension"; then
32901 ac_x_libraries
=$ac_dir
32907 rm -f core conftest.err conftest.
$ac_objext \
32908 conftest
$ac_exeext conftest.
$ac_ext
32909 fi # $ac_x_libraries = no
32911 case $ac_x_includes,$ac_x_libraries in #(
32912 no
,* |
*,no |
*\'*)
32913 # Didn't find X, or a directory has "'" in its name.
32914 ac_cv_have_x
="have_x=no";; #(
32916 # Record where we found X for the cache.
32917 ac_cv_have_x
="have_x=yes\
32918 ac_x_includes='$ac_x_includes'\
32919 ac_x_libraries='$ac_x_libraries'"
32925 eval "$ac_cv_have_x"
32928 if test "$have_x" != yes; then
32929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
32930 $as_echo "$have_x" >&6; }
32933 # If each of the values was on the command line, it overrides each guess.
32934 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
32935 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
32936 # Update the cache value to reflect the command line values.
32937 ac_cv_have_x
="have_x=yes\
32938 ac_x_includes='$x_includes'\
32939 ac_x_libraries='$x_libraries'"
32940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
32941 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
32945 # Unlike the sim directory, whether a simulator is linked is controlled by
32946 # presence of a gdb_sim definition in the target configure.tgt entry.
32947 # This code just checks for a few cases where we'd like to ignore those
32948 # definitions, even when they're present in the '.mt' file. These cases
32949 # are when --disable-sim is specified, or if the simulator directory is
32950 # not part of the source tree.
32952 # Check whether --enable-sim was given.
32953 if test "${enable_sim+set}" = set; then :
32954 enableval
=$enable_sim; { $as_echo "$as_me:${as_lineno-$LINENO}: enable_sim = $enable_sim" >&5
32955 $as_echo "$as_me: enable_sim = $enable_sim" >&6;};
32956 { $as_echo "$as_me:${as_lineno-$LINENO}: enableval = ${enableval}" >&5
32957 $as_echo "$as_me: enableval = ${enableval}" >&6;};
32958 case "${enableval}" in
32959 yes) ignore_sim
=false
;;
32960 no
) ignore_sim
=true
;;
32961 *) ignore_sim
=false
;;
32968 if test ! -d "${srcdir}/../sim"; then
32974 if test "${ignore_sim}" = "false"; then
32975 if test x
"${gdb_sim}" != x
; then
32977 SIM_OBS
="remote-sim.o"
32979 # Some tdep code should only be compiled in when the ppc sim is
32980 # built. PR sim/13418.
32984 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
33004 # List of host floatformats.
33006 cat >>confdefs.h
<<_ACEOF
33007 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
33011 cat >>confdefs.h
<<_ACEOF
33012 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
33016 cat >>confdefs.h
<<_ACEOF
33017 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
33021 # target_subdir is used by the testsuite to find the target libraries.
33023 if test "${host}" != "${target}"; then
33024 target_subdir
="${target_alias}/"
33028 # Import nat definitions.
33029 nat_makefile_frag
=/dev
/null
33030 if test "${gdb_native}" = "yes"; then
33031 .
${srcdir}/configure.nat
33032 nativefile
=$NAT_FILE
33045 if test x
"${gdb_osabi}" != x
; then
33047 cat >>confdefs.h
<<_ACEOF
33048 #define GDB_OSABI_DEFAULT $gdb_osabi
33053 # Setup possible use of libbacktrace.
33054 # Check whether --enable-libbacktrace was given.
33055 if test "${enable_libbacktrace+set}" = set; then :
33056 enableval
=$enable_libbacktrace;
33061 as_fn_error $?
"bad value $enableval for --enable-libbacktrace" "$LINENO" 5
33066 enable_libbacktrace
=yes
33070 if test "${enable_libbacktrace}" = "yes"; then
33071 LIBBACKTRACE_INC
="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
33072 LIBBACKTRACE_LIB
=..
/libbacktrace
/libbacktrace.la
33074 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
33084 # Check for babeltrace and babeltrace-ctf
33086 # Check whether --with-babeltrace was given.
33087 if test "${with_babeltrace+set}" = set; then :
33088 withval
=$with_babeltrace;
33090 with_babeltrace
=auto
33093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
33094 $as_echo_n "checking whether to use babeltrace... " >&6; }
33095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
33096 $as_echo "$with_babeltrace" >&6; }
33098 if test "x$with_babeltrace" = "xno"; then
33099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace support disabled; GDB is unable to read CTF data." >&5
33100 $as_echo "$as_me: WARNING: babeltrace support disabled; GDB is unable to read CTF data." >&2;}
33102 # Append -Werror to CFLAGS so that configure can catch the warning
33103 # "assignment from incompatible pointer type", which is related to
33104 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
33105 # in GDB, while babeltrace 1.0.3 is broken.
33106 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
33107 # safe to save and restore CFLAGS here.
33108 saved_CFLAGS
=$CFLAGS
33109 CFLAGS
="$CFLAGS -Werror"
33120 acl_save_prefix
="$prefix"
33121 prefix
="$acl_final_prefix"
33122 acl_save_exec_prefix
="$exec_prefix"
33123 exec_prefix
="$acl_final_exec_prefix"
33125 eval additional_includedir
=\"$includedir\"
33126 eval additional_libdir
=\"$libdir\"
33128 exec_prefix
="$acl_save_exec_prefix"
33129 prefix
="$acl_save_prefix"
33132 # Check whether --with-libbabeltrace-prefix was given.
33133 if test "${with_libbabeltrace_prefix+set}" = set; then :
33134 withval
=$with_libbabeltrace_prefix;
33135 if test "X$withval" = "Xno"; then
33138 if test "X$withval" = "X"; then
33140 acl_save_prefix
="$prefix"
33141 prefix
="$acl_final_prefix"
33142 acl_save_exec_prefix
="$exec_prefix"
33143 exec_prefix
="$acl_final_exec_prefix"
33145 eval additional_includedir
=\"$includedir\"
33146 eval additional_libdir
=\"$libdir\"
33148 exec_prefix
="$acl_save_exec_prefix"
33149 prefix
="$acl_save_prefix"
33152 additional_includedir
="$withval/include"
33153 additional_libdir
="$withval/lib"
33160 # Check whether --with-libbabeltrace-type was given.
33161 if test "${with_libbabeltrace_type+set}" = set; then :
33162 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
33164 with_libbabeltrace_type
=auto
33167 lib_type
=`eval echo \$with_libbabeltrace_type`
33174 names_already_handled
=
33175 names_next_round
='babeltrace babeltrace-ctf'
33176 while test -n "$names_next_round"; do
33177 names_this_round
="$names_next_round"
33179 for name
in $names_this_round; do
33181 for n
in $names_already_handled; do
33182 if test "$n" = "$name"; then
33183 already_handled
=yes
33187 if test -z "$already_handled"; then
33188 names_already_handled
="$names_already_handled $name"
33189 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
33190 eval value
=\"\
$HAVE_LIB$uppername\"
33191 if test -n "$value"; then
33192 if test "$value" = yes; then
33193 eval value
=\"\
$LIB$uppername\"
33194 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
33195 eval value
=\"\
$LTLIB$uppername\"
33196 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
33205 if test $use_additional = yes; then
33206 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
33207 found_dir
="$additional_libdir"
33208 found_so
="$additional_libdir/lib$name.$shlibext"
33209 if test -f "$additional_libdir/lib$name.la"; then
33210 found_la
="$additional_libdir/lib$name.la"
33212 elif test x
$lib_type != xshared
; then
33213 if test -f "$additional_libdir/lib$name.$libext"; then
33214 found_dir
="$additional_libdir"
33215 found_a
="$additional_libdir/lib$name.$libext"
33216 if test -f "$additional_libdir/lib$name.la"; then
33217 found_la
="$additional_libdir/lib$name.la"
33222 if test "X$found_dir" = "X"; then
33223 for x
in $LDFLAGS $LTLIBBABELTRACE; do
33225 acl_save_prefix
="$prefix"
33226 prefix
="$acl_final_prefix"
33227 acl_save_exec_prefix
="$exec_prefix"
33228 exec_prefix
="$acl_final_exec_prefix"
33230 exec_prefix
="$acl_save_exec_prefix"
33231 prefix
="$acl_save_prefix"
33235 dir
=`echo "X$x" | sed -e 's/^X-L//'`
33236 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
33238 found_so
="$dir/lib$name.$shlibext"
33239 if test -f "$dir/lib$name.la"; then
33240 found_la
="$dir/lib$name.la"
33242 elif test x
$lib_type != xshared
; then
33243 if test -f "$dir/lib$name.$libext"; then
33245 found_a
="$dir/lib$name.$libext"
33246 if test -f "$dir/lib$name.la"; then
33247 found_la
="$dir/lib$name.la"
33253 if test "X$found_dir" != "X"; then
33258 if test "X$found_dir" != "X"; then
33259 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
33260 if test "X$found_so" != "X"; then
33261 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
33262 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33265 for x
in $ltrpathdirs; do
33266 if test "X$x" = "X$found_dir"; then
33271 if test -z "$haveit"; then
33272 ltrpathdirs
="$ltrpathdirs $found_dir"
33274 if test "$hardcode_direct" = yes; then
33275 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33277 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
33278 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33280 for x
in $rpathdirs; do
33281 if test "X$x" = "X$found_dir"; then
33286 if test -z "$haveit"; then
33287 rpathdirs
="$rpathdirs $found_dir"
33291 for x
in $LDFLAGS $LIBBABELTRACE; do
33293 acl_save_prefix
="$prefix"
33294 prefix
="$acl_final_prefix"
33295 acl_save_exec_prefix
="$exec_prefix"
33296 exec_prefix
="$acl_final_exec_prefix"
33298 exec_prefix
="$acl_save_exec_prefix"
33299 prefix
="$acl_save_prefix"
33301 if test "X$x" = "X-L$found_dir"; then
33306 if test -z "$haveit"; then
33307 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
33309 if test "$hardcode_minus_L" != no
; then
33310 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33312 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
33318 if test "X$found_a" != "X"; then
33319 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
33321 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
33324 additional_includedir
=
33325 case "$found_dir" in
33327 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
33328 additional_includedir
="$basedir/include"
33331 if test "X$additional_includedir" != "X"; then
33332 if test "X$additional_includedir" != "X/usr/include"; then
33334 if test "X$additional_includedir" = "X/usr/local/include"; then
33335 if test -n "$GCC"; then
33337 linux
*) haveit
=yes;;
33341 if test -z "$haveit"; then
33342 for x
in $CPPFLAGS $INCBABELTRACE; do
33344 acl_save_prefix
="$prefix"
33345 prefix
="$acl_final_prefix"
33346 acl_save_exec_prefix
="$exec_prefix"
33347 exec_prefix
="$acl_final_exec_prefix"
33349 exec_prefix
="$acl_save_exec_prefix"
33350 prefix
="$acl_save_prefix"
33352 if test "X$x" = "X-I$additional_includedir"; then
33357 if test -z "$haveit"; then
33358 if test -d "$additional_includedir"; then
33359 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
33365 if test -n "$found_la"; then
33366 save_libdir
="$libdir"
33367 case "$found_la" in
33368 */* |
*\\*) .
"$found_la" ;;
33369 *) .
"./$found_la" ;;
33371 libdir
="$save_libdir"
33372 for dep
in $dependency_libs; do
33375 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
33376 if test "X$additional_libdir" != "X/usr/lib"; then
33378 if test "X$additional_libdir" = "X/usr/local/lib"; then
33379 if test -n "$GCC"; then
33381 linux
*) haveit
=yes;;
33385 if test -z "$haveit"; then
33387 for x
in $LDFLAGS $LIBBABELTRACE; do
33389 acl_save_prefix
="$prefix"
33390 prefix
="$acl_final_prefix"
33391 acl_save_exec_prefix
="$exec_prefix"
33392 exec_prefix
="$acl_final_exec_prefix"
33394 exec_prefix
="$acl_save_exec_prefix"
33395 prefix
="$acl_save_prefix"
33397 if test "X$x" = "X-L$additional_libdir"; then
33402 if test -z "$haveit"; then
33403 if test -d "$additional_libdir"; then
33404 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
33408 for x
in $LDFLAGS $LTLIBBABELTRACE; do
33410 acl_save_prefix
="$prefix"
33411 prefix
="$acl_final_prefix"
33412 acl_save_exec_prefix
="$exec_prefix"
33413 exec_prefix
="$acl_final_exec_prefix"
33415 exec_prefix
="$acl_save_exec_prefix"
33416 prefix
="$acl_save_prefix"
33418 if test "X$x" = "X-L$additional_libdir"; then
33423 if test -z "$haveit"; then
33424 if test -d "$additional_libdir"; then
33425 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
33432 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
33433 if test "$enable_rpath" != no
; then
33435 for x
in $rpathdirs; do
33436 if test "X$x" = "X$dir"; then
33441 if test -z "$haveit"; then
33442 rpathdirs
="$rpathdirs $dir"
33445 for x
in $ltrpathdirs; do
33446 if test "X$x" = "X$dir"; then
33451 if test -z "$haveit"; then
33452 ltrpathdirs
="$ltrpathdirs $dir"
33457 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
33460 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
33463 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
33464 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
33470 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
33471 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
33472 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
33474 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
33475 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
33482 if test "X$rpathdirs" != "X"; then
33483 if test -n "$hardcode_libdir_separator"; then
33485 for found_dir
in $rpathdirs; do
33486 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
33488 acl_save_libdir
="$libdir"
33490 eval flag
=\"$hardcode_libdir_flag_spec\"
33491 libdir
="$acl_save_libdir"
33492 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
33494 for found_dir
in $rpathdirs; do
33495 acl_save_libdir
="$libdir"
33496 libdir
="$found_dir"
33497 eval flag
=\"$hardcode_libdir_flag_spec\"
33498 libdir
="$acl_save_libdir"
33499 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
33503 if test "X$ltrpathdirs" != "X"; then
33504 for found_dir
in $ltrpathdirs; do
33505 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
33510 ac_save_CPPFLAGS
="$CPPFLAGS"
33512 for element
in $INCBABELTRACE; do
33514 for x
in $CPPFLAGS; do
33516 acl_save_prefix
="$prefix"
33517 prefix
="$acl_final_prefix"
33518 acl_save_exec_prefix
="$exec_prefix"
33519 exec_prefix
="$acl_final_exec_prefix"
33521 exec_prefix
="$acl_save_exec_prefix"
33522 prefix
="$acl_save_prefix"
33524 if test "X$x" = "X$element"; then
33529 if test -z "$haveit"; then
33530 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
33535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
33536 $as_echo_n "checking for libbabeltrace... " >&6; }
33537 if ${ac_cv_libbabeltrace+:} false
; then :
33538 $as_echo_n "(cached) " >&6
33541 ac_save_LIBS
="$LIBS"
33542 LIBS
="$LIBS $LIBBABELTRACE"
33543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33544 /* end confdefs.h. */
33545 #include <babeltrace/babeltrace.h>
33546 #include <babeltrace/ctf/events.h>
33547 #include <babeltrace/ctf/iterator.h>
33551 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
33552 struct bt_ctf_event *event = NULL;
33553 const struct bt_definition *scope;
33555 pos->type = BT_SEEK_BEGIN;
33556 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
33557 scope = bt_ctf_get_top_level_scope (event,
33558 BT_STREAM_EVENT_HEADER);
33559 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
33565 if ac_fn_c_try_link
"$LINENO"; then :
33566 ac_cv_libbabeltrace
=yes
33568 ac_cv_libbabeltrace
=no
33570 rm -f core conftest.err conftest.
$ac_objext \
33571 conftest
$ac_exeext conftest.
$ac_ext
33572 LIBS
="$ac_save_LIBS"
33575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
33576 $as_echo "$ac_cv_libbabeltrace" >&6; }
33577 if test "$ac_cv_libbabeltrace" = yes; then
33578 HAVE_LIBBABELTRACE
=yes
33580 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
33582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
33583 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
33584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
33585 $as_echo "$LIBBABELTRACE" >&6; }
33587 HAVE_LIBBABELTRACE
=no
33588 CPPFLAGS
="$ac_save_CPPFLAGS"
33598 CFLAGS
=$saved_CFLAGS
33600 if test "$HAVE_LIBBABELTRACE" != yes; then
33601 if test "$with_babeltrace" = yes; then
33602 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
33604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
33605 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
33610 # Check whether --enable-libctf was given.
33611 if test "${enable_libctf+set}" = set; then :
33612 enableval
=$enable_libctf;
33613 case "$enableval" in
33615 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
33623 if test "${enable_libctf}" = yes; then
33625 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
33627 LIBCTF
="../libctf/libctf.la"
33628 CTF_DEPS
="../libctf/libctf.la"
33636 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
33641 if test "${nativefile}" != ""; then
33642 case "${nativefile}" in
33643 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
33644 * ) GDB_NM_FILE
="${nativefile}"
33646 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
33649 cat >>confdefs.h
<<_ACEOF
33650 #define GDB_NM_FILE "${GDB_NM_FILE}"
33658 for ac_prog
in xsltproc
33660 # Extract the first word of "$ac_prog", so it can be a program name with args.
33661 set dummy
$ac_prog; ac_word
=$2
33662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33663 $as_echo_n "checking for $ac_word... " >&6; }
33664 if ${ac_cv_path_XSLTPROC+:} false
; then :
33665 $as_echo_n "(cached) " >&6
33669 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
33672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33673 for as_dir
in $PATH
33676 test -z "$as_dir" && as_dir
=.
33677 for ac_exec_ext
in '' $ac_executable_extensions; do
33678 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
33679 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
33680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33690 XSLTPROC
=$ac_cv_path_XSLTPROC
33691 if test -n "$XSLTPROC"; then
33692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
33693 $as_echo "$XSLTPROC" >&6; }
33695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33696 $as_echo "no" >&6; }
33700 test -n "$XSLTPROC" && break
33702 test -n "$XSLTPROC" || XSLTPROC
="missing"
33704 if test "x$USE_MAINTAINER_MODE" = xyes
; then
33705 if test "${XSLTPROC}" = missing
; then
33706 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
33714 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
33718 # Check whether we will enable the inclusion of unit tests when
33721 # The default value of this option changes depending whether we're on
33722 # development mode (in which case it's "true") or not (in which case
33723 # it's "false"). The $development variable is set by the GDB_AC_COMMON
33724 # macro, which must therefore be used before GDB_AC_SELFTEST.
33726 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
33727 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
33730 # Check whether --enable-unit-tests was given.
33731 if test "${enable_unit_tests+set}" = set; then :
33732 enableval
=$enable_unit_tests; case "${enableval}" in
33733 yes) enable_unittests
=true
;;
33734 no
) enable_unittests
=false
;;
33735 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
33738 enable_unittests
=$development
33742 if $enable_unittests; then
33744 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
33747 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
33748 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
33754 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
33755 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
33756 if test "x$GDB_TRANSFORM_NAME" = x
; then
33757 GDB_TRANSFORM_NAME
=gdb
33762 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
33763 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
33764 if test "x$GCORE_TRANSFORM_NAME" = x
; then
33765 GCORE_TRANSFORM_NAME
=gcore
33769 ac_config_files
="$ac_config_files gcore"
33771 ac_config_files
="$ac_config_files gstack.in:gstack-1.in"
33773 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
33776 cat >confcache
<<\_ACEOF
33777 # This file is a shell script that caches the results of configure
33778 # tests run on this system so they can be shared between configure
33779 # scripts and configure runs, see configure's option --config-cache.
33780 # It is not useful on other systems. If it contains results you don't
33781 # want to keep, you may remove or edit it.
33783 # config.status only pays attention to the cache file if you give it
33784 # the --recheck option to rerun configure.
33786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33788 # following values.
33792 # The following way of writing the cache mishandles newlines in values,
33793 # but we know of no workaround that is simple, portable, and efficient.
33794 # So, we kill variables containing newlines.
33795 # Ultrix sh set writes to stderr and can't be redirected directly,
33796 # and sets the high bit in the cache file unless we assign to the vars.
33798 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33799 eval ac_val
=\$
$ac_var
33803 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33804 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33807 _ | IFS | as_nl
) ;; #(
33808 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
33809 *) { eval $ac_var=; unset $ac_var;} ;;
33815 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33816 *${as_nl}ac_space
=\
*)
33817 # `set' does not quote correctly, so add quotes: double-quote
33818 # substitution turns \\\\ into \\, and sed turns \\ into \.
33821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33824 # `set' quotes correctly as required by POSIX, so do not add quotes.
33825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33836 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33838 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
33839 if test -w "$cache_file"; then
33840 if test "x$cache_file" != "x/dev/null"; then
33841 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33842 $as_echo "$as_me: updating cache $cache_file" >&6;}
33843 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
33844 cat confcache
>"$cache_file"
33846 case $cache_file in #(
33848 mv -f confcache
"$cache_file"$$
&&
33849 mv -f "$cache_file"$$
"$cache_file" ;; #(
33851 mv -f confcache
"$cache_file" ;;
33856 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33857 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33862 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
33863 # Let make expand exec_prefix.
33864 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
33866 DEFS
=-DHAVE_CONFIG_H
33871 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
33872 # 1. Remove the extension, and $U if already installed.
33873 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
33874 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
33875 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33876 # will be set to the directory where LIBOBJS objects are built.
33877 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33878 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
33880 LIBOBJS
=$ac_libobjs
33882 LTLIBOBJS
=$ac_ltlibobjs
33885 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33886 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
33887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33889 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
33890 as_fn_error $?
"conditional \"ENABLE_BFD_64_BIT\" was never defined.
33891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33893 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
33894 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
33895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33897 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
33898 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
33899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33903 : "${CONFIG_STATUS=./config.status}"
33905 ac_clean_files_save
=$ac_clean_files
33906 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
33907 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33908 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33910 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33912 # Generated by $as_me.
33913 # Run this file to recreate the current configuration.
33914 # Compiler output produced by configure, useful for debugging
33915 # configure, is in config.log if it exists.
33918 ac_cs_recheck=false
33921 SHELL=\${CONFIG_SHELL-$SHELL}
33924 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
33925 ## -------------------- ##
33926 ## M4sh Initialization. ##
33927 ## -------------------- ##
33929 # Be more Bourne compatible
33930 DUALCASE
=1; export DUALCASE
# for MKS sh
33931 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
33934 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33935 # is contrary to our usage. Disable this feature.
33936 alias -g '${1+"$@"}'='"$@"'
33937 setopt NO_GLOB_SUBST
33939 case `(set -o) 2>/dev/null` in #(
33951 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33952 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33953 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33954 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33955 # Prefer a ksh shell builtin over an external printf program on Solaris,
33956 # but without wasting forks for bash or zsh.
33957 if test -z "$BASH_VERSION$ZSH_VERSION" \
33958 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33959 as_echo='print
-r --'
33960 as_echo_n='print
-rn --'
33961 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33962 as_echo='printf %s
\n'
33963 as_echo_n='printf %s
'
33965 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33966 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
33967 as_echo_n='/usr
/ucb
/echo -n'
33969 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33970 as_echo_n_body='eval
33974 expr "X$arg" : "X\\(.*\\)$as_nl";
33975 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33977 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
33979 export as_echo_n_body
33980 as_echo_n='sh
-c $as_echo_n_body as_echo
'
33982 export as_echo_body
33983 as_echo='sh
-c $as_echo_body as_echo
'
33986 # The user is always right.
33987 if test "${PATH_SEPARATOR+set}" != set; then
33989 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33990 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33997 # We need space, tab and new line, in precisely that order. Quoting is
33998 # there to prevent editors from complaining about space-tab.
33999 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34000 # splitting by setting IFS to empty value.)
34003 # Find who we are. Look in the path if we contain no directory separator.
34006 *[\\/]* ) as_myself=$0 ;;
34007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34008 for as_dir in $PATH
34011 test -z "$as_dir" && as_dir=.
34012 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34018 # We did not find ourselves, most probably we were run as `sh COMMAND'
34019 # in which case we are not to be found in the path.
34020 if test "x$as_myself" = x
; then
34023 if test ! -f "$as_myself"; then
34024 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34028 # Unset variables that we do not need and which cause bugs (e.g. in
34029 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
34030 # suppresses any "Segmentation fault" message there. '((' could
34031 # trigger a bug in pdksh 5.2.14.
34032 for as_var
in BASH_ENV ENV MAIL MAILPATH
34033 do eval test x\
${$as_var+set} = xset \
34034 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
34047 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
34050 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34051 # ----------------------------------------
34052 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34053 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34054 # script with STATUS, using 1 if that was 0.
34057 as_status
=$1; test $as_status -eq 0 && as_status
=1
34059 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
34060 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34062 $as_echo "$as_me: error: $2" >&2
34063 as_fn_exit
$as_status
34067 # as_fn_set_status STATUS
34068 # -----------------------
34069 # Set $? to STATUS, without forking.
34070 as_fn_set_status
()
34073 } # as_fn_set_status
34075 # as_fn_exit STATUS
34076 # -----------------
34077 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34081 as_fn_set_status
$1
34087 # Portably unset VAR.
34090 { eval $1=; unset $1;}
34092 as_unset
=as_fn_unset
34093 # as_fn_append VAR VALUE
34094 # ----------------------
34095 # Append the text in VALUE to the end of the definition contained in VAR. Take
34096 # advantage of any shell optimizations that allow amortized linear growth over
34097 # repeated appends, instead of the typical quadratic growth present in naive
34099 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
34100 eval 'as_fn_append ()
34111 # as_fn_arith ARG...
34112 # ------------------
34113 # Perform arithmetic evaluation on the ARGs, and store the result in the
34114 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34115 # must be portable across $(()) and expr.
34116 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
34117 eval 'as_fn_arith ()
34124 as_val
=`expr "$@" || test $? -eq 1`
34129 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34130 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34136 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34137 as_basename
=basename
34142 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
34148 as_me
=`$as_basename -- "$0" ||
34149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34150 X"$0" : 'X\(//\)$' \| \
34151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34153 sed '/^.*\/\([^/][^/]*\)\/*$/{
34167 # Avoid depending upon Character Ranges.
34168 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
34169 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34170 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
34171 as_cr_digits
='0123456789'
34172 as_cr_alnum
=$as_cr_Letters$as_cr_digits
34174 ECHO_C
= ECHO_N
= ECHO_T
=
34175 case `echo -n x` in #(((((
34177 case `echo 'xy\c'` in
34178 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
34180 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
34187 rm -f conf$$ conf$$.exe conf$$.
file
34188 if test -d conf$$.dir
; then
34189 rm -f conf$$.dir
/conf$$.
file
34192 mkdir conf$$.dir
2>/dev
/null
34194 if (echo >conf$$.
file) 2>/dev
/null
; then
34195 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
34197 # ... but there are two gotchas:
34198 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34199 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34200 # In both cases, we have to default to `cp -pR'.
34201 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
34203 elif ln conf$$.
file conf$$
2>/dev
/null
; then
34211 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
34212 rmdir conf$$.dir
2>/dev
/null
34217 # Create "$as_dir" as a directory, including parents if necessary.
34222 -*) as_dir
=.
/$as_dir;;
34224 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
34228 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34229 *) as_qdir
=$as_dir;;
34231 as_dirs
="'$as_qdir' $as_dirs"
34232 as_dir
=`$as_dirname -- "$as_dir" ||
34233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34234 X"$as_dir" : 'X\(//\)[^/]' \| \
34235 X"$as_dir" : 'X\(//\)$' \| \
34236 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34237 $as_echo X"$as_dir" |
34238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34242 /^X\(\/\/\)[^/].*/{
34255 test -d "$as_dir" && break
34257 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
34258 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
34262 if mkdir
-p .
2>/dev
/null
; then
34263 as_mkdir_p
='mkdir -p "$as_dir"'
34265 test -d .
/-p && rmdir .
/-p
34270 # as_fn_executable_p FILE
34271 # -----------------------
34272 # Test if FILE is an executable regular file.
34273 as_fn_executable_p
()
34275 test -f "$1" && test -x "$1"
34276 } # as_fn_executable_p
34277 as_test_x
='test -x'
34278 as_executable_p
=as_fn_executable_p
34280 # Sed expression to map a string onto a valid CPP name.
34281 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34283 # Sed expression to map a string onto a valid variable name.
34284 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34288 ## ----------------------------------- ##
34289 ## Main body of $CONFIG_STATUS script. ##
34290 ## ----------------------------------- ##
34292 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
34294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34295 # Save the log message, to keep $0 and so on meaningful, and to
34296 # report actual input values of CONFIG_FILES etc. instead of their
34297 # values after options handling.
34299 This file was extended by $as_me, which was
34300 generated by GNU Autoconf 2.69. Invocation command line was
34302 CONFIG_FILES = $CONFIG_FILES
34303 CONFIG_HEADERS = $CONFIG_HEADERS
34304 CONFIG_LINKS = $CONFIG_LINKS
34305 CONFIG_COMMANDS = $CONFIG_COMMANDS
34308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34313 case $ac_config_files in *"
34314 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
34317 case $ac_config_headers in *"
34318 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
34322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34323 # Files that config.status was made for.
34324 config_files="$ac_config_files"
34325 config_headers="$ac_config_headers"
34326 config_links="$ac_config_links"
34327 config_commands="$ac_config_commands"
34331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34333 \`$as_me' instantiates files and other configuration actions
34334 from templates according to the current configuration. Unless the files
34335 and actions are specified as TAGs, all are instantiated by default.
34337 Usage: $0 [OPTION]... [TAG]...
34339 -h, --help print this help, then exit
34340 -V, --version print version number and configuration settings, then exit
34341 --config print configuration, then exit
34342 -q, --quiet, --silent
34343 do not print progress messages
34344 -d, --debug don't remove temporary files
34345 --recheck update $as_me by reconfiguring in the same conditions
34346 --file=FILE[:TEMPLATE]
34347 instantiate the configuration file FILE
34348 --header=FILE[:TEMPLATE]
34349 instantiate the configuration header FILE
34351 Configuration files:
34354 Configuration headers:
34357 Configuration links:
34360 Configuration commands:
34363 Report bugs to the package provider."
34366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34367 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34370 configured by $0, generated by GNU Autoconf 2.69,
34371 with options \\"\$ac_cs_config\\"
34373 Copyright (C) 2012 Free Software Foundation, Inc.
34374 This config.status script is free software; the Free Software Foundation
34375 gives unlimited permission to copy, distribute and modify it."
34381 test -n "\$AWK" || AWK=awk
34384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34385 # The default lists apply if the user does not specify any file.
34391 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34392 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
34396 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34408 # Handling of the options.
34409 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
34411 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
34412 $as_echo "$ac_cs_version"; exit ;;
34413 --config |
--confi |
--conf |
--con |
--co |
--c )
34414 $as_echo "$ac_cs_config"; exit ;;
34415 --debug |
--debu |
--deb |
--de |
--d |
-d )
34417 --file |
--fil |
--fi |
--f )
34420 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34421 '') as_fn_error $?
"missing file argument" ;;
34423 as_fn_append CONFIG_FILES
" '$ac_optarg'"
34424 ac_need_defaults
=false
;;
34425 --header |
--heade |
--head |
--hea )
34428 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34430 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
34431 ac_need_defaults
=false
;;
34433 # Conflict between --help and --header
34434 as_fn_error $?
"ambiguous option: \`$1'
34435 Try \`$0 --help' for more information.";;
34436 --help |
--hel |
-h )
34437 $as_echo "$ac_cs_usage"; exit ;;
34438 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
34439 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
34442 # This is an error.
34443 -*) as_fn_error $?
"unrecognized option: \`$1'
34444 Try \`$0 --help' for more information." ;;
34446 *) as_fn_append ac_config_targets
" $1"
34447 ac_need_defaults
=false
;;
34453 ac_configure_extra_args
=
34455 if $ac_cs_silent; then
34457 ac_configure_extra_args
="$ac_configure_extra_args --silent"
34461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34462 if \$ac_cs_recheck; then
34463 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34465 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34466 CONFIG_SHELL='$SHELL'
34467 export CONFIG_SHELL
34472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34477 ## Running $as_me. ##
34483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34489 # The HP-UX ksh and POSIX shell print the target directory to stdout
34490 # if CDPATH is set.
34491 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34493 sed_quote_subst='$sed_quote_subst'
34494 double_quote_subst='$double_quote_subst'
34495 delay_variable_subst='$delay_variable_subst'
34496 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34497 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34498 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34499 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34500 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34501 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34502 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34503 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34504 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34505 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34506 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34507 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34508 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34509 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34510 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34511 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34512 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34513 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34514 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34515 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34516 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34517 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34518 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34519 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34520 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34521 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34522 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34523 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34524 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34525 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34526 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34527 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34528 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34529 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34530 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34531 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34532 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34533 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34534 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34535 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34536 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34537 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34538 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34539 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34540 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34541 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34542 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34543 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34544 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"`'
34545 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34546 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34547 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34548 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34549 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34550 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34551 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34552 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34553 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34554 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34555 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34556 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34557 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34558 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34559 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34560 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34561 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34562 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34563 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34564 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34565 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34566 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34567 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34568 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34569 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34570 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34571 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34572 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34573 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34574 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34575 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34576 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34577 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34578 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34579 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34580 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34581 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34582 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34583 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34584 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34585 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
34586 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34587 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34588 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34589 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34590 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34591 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34592 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34593 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34594 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34595 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34596 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34597 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34598 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34599 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34600 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34601 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34602 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34603 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34604 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34605 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34606 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34607 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34608 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34609 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34610 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34611 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34612 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34613 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34614 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34615 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34616 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34617 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34618 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34619 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34620 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34621 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34622 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34623 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34624 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34625 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34626 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34627 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34628 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
34629 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
34630 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
34631 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34632 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34633 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34634 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34635 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34636 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34637 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34638 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34639 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34640 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34641 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34642 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34643 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34644 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34645 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34646 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34647 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34648 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34649 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34650 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34651 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34652 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34653 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34654 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34655 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34656 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
34657 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
34658 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34659 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34660 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34661 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34662 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34663 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34664 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34665 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34666 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34667 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34668 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34669 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34670 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
34673 LTCFLAGS='$LTCFLAGS'
34674 compiler='$compiler_DEFAULT'
34676 # A function that is used when there is no print builtin or printf.
34677 func_fallback_echo ()
34679 eval 'cat <<_LTECHO_EOF
34684 # Quote evaled strings.
34698 deplibs_check_method \
34707 lt_cv_sys_global_symbol_pipe \
34708 lt_cv_sys_global_symbol_to_cdecl \
34709 lt_cv_sys_global_symbol_to_c_name_address \
34710 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34711 lt_prog_compiler_no_builtin_flag \
34712 lt_prog_compiler_wl \
34713 lt_prog_compiler_pic \
34714 lt_prog_compiler_static \
34715 lt_cv_prog_compiler_c_o \
34723 export_dynamic_flag_spec \
34724 whole_archive_flag_spec \
34725 compiler_needs_object \
34727 allow_undefined_flag \
34728 no_undefined_flag \
34729 hardcode_libdir_flag_spec \
34730 hardcode_libdir_flag_spec_ld \
34731 hardcode_libdir_separator \
34736 variables_saved_for_relink \
34738 library_names_spec \
34740 install_override_mode \
34744 compiler_lib_search_dirs \
34749 compiler_lib_search_path \
34753 lt_prog_compiler_no_builtin_flag_CXX \
34754 lt_prog_compiler_wl_CXX \
34755 lt_prog_compiler_pic_CXX \
34756 lt_prog_compiler_static_CXX \
34757 lt_cv_prog_compiler_c_o_CXX \
34758 export_dynamic_flag_spec_CXX \
34759 whole_archive_flag_spec_CXX \
34760 compiler_needs_object_CXX \
34762 allow_undefined_flag_CXX \
34763 no_undefined_flag_CXX \
34764 hardcode_libdir_flag_spec_CXX \
34765 hardcode_libdir_flag_spec_ld_CXX \
34766 hardcode_libdir_separator_CXX \
34767 fix_srcfile_path_CXX \
34768 exclude_expsyms_CXX \
34769 include_expsyms_CXX \
34770 file_list_spec_CXX \
34771 compiler_lib_search_dirs_CXX \
34772 predep_objects_CXX \
34773 postdep_objects_CXX \
34776 compiler_lib_search_path_CXX; do
34777 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34778 *[\\\\\\\`\\"\\\$]*)
34779 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34782 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34787 # Double-quote double-evaled strings.
34788 for var in reload_cmds \
34789 old_postinstall_cmds \
34790 old_postuninstall_cmds \
34792 extract_expsyms_cmds \
34793 old_archive_from_new_cmds \
34794 old_archive_from_expsyms_cmds \
34796 archive_expsym_cmds \
34798 module_expsym_cmds \
34799 export_symbols_cmds \
34802 postuninstall_cmds \
34804 sys_lib_search_path_spec \
34805 sys_lib_dlsearch_path_spec \
34807 old_archive_cmds_CXX \
34808 old_archive_from_new_cmds_CXX \
34809 old_archive_from_expsyms_cmds_CXX \
34811 archive_expsym_cmds_CXX \
34813 module_expsym_cmds_CXX \
34814 export_symbols_cmds_CXX \
34815 prelink_cmds_CXX; do
34816 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34817 *[\\\\\\\`\\"\\\$]*)
34818 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34821 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34826 ac_aux_dir='$ac_aux_dir'
34827 xsi_shell='$xsi_shell'
34828 lt_shell_append='$lt_shell_append'
34830 # See if we are running on zsh, and set the options which allow our
34831 # commands through without removal of \ escapes INIT.
34832 if test -n "\${ZSH_VERSION+set}" ; then
34833 setopt NO_GLOB_SUBST
34839 TIMESTAMP='$TIMESTAMP'
34845 ac_aux_dir='$ac_aux_dir'
34848 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
34849 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34850 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
34852 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34853 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34854 LINGUAS="${LINGUAS-%UNSET%}"
34856 GDB_NM_FILE=$GDB_NM_FILE
34860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34862 # Handling of arguments.
34863 for ac_config_target
in $ac_config_targets
34865 case $ac_config_target in
34866 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
34867 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
34868 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
34869 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
34870 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
34871 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
34872 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
34873 "gstack.in") CONFIG_FILES
="$CONFIG_FILES gstack.in:gstack-1.in" ;;
34874 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
34875 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
34876 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
34877 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
34878 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
34880 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34885 # If the user did not use the arguments to specify the items to instantiate,
34886 # then the envvar interface is used. Set only those that are not.
34887 # We use the long form for the default assignment because of an extremely
34888 # bizarre bug on SunOS 4.1.3.
34889 if $ac_need_defaults; then
34890 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
34891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
34892 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
34893 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
34896 # Have a temporary directory for convenience. Make it in the build tree
34897 # simply because there is no reason against having it here, and in addition,
34898 # creating and moving files from /tmp can sometimes cause problems.
34899 # Hook for its removal unless debugging.
34900 # Note that there is a small window in which the directory will not be cleaned:
34901 # after its creation but before its name has been assigned to `$tmp'.
34905 trap 'exit_status=$?
34906 : "${ac_tmp:=$tmp}"
34907 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34909 trap 'as_fn_exit 1' 1 2 13 15
34911 # Create a (secure) tmp directory for tmp files.
34914 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34918 tmp
=.
/conf$$
-$RANDOM
34919 (umask 077 && mkdir
"$tmp")
34920 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
34923 # Set up the scripts for CONFIG_FILES section.
34924 # No need to generate them if there are no CONFIG_FILES.
34925 # This happens for instance with `./config.status config.h'.
34926 if test -n "$CONFIG_FILES"; then
34928 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
34929 ac_cs_awk_getline
=:
34930 ac_cs_awk_pipe_init
=
34931 ac_cs_awk_read_file
='
34932 while ((getline aline < (F[key])) > 0)
34935 ac_cs_awk_pipe_fini
=
34937 ac_cs_awk_getline
=false
34938 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
34939 ac_cs_awk_read_file
='
34941 print "cat " F[key] " &&"
34942 '$ac_cs_awk_pipe_init
34943 # The final `:' finishes the AND list.
34944 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
34946 ac_cr
=`echo X | tr X '\015'`
34947 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34948 # But we know of no other shell where ac_cr would be empty at this
34949 # point, so we can use a bashism as a fallback.
34950 if test "x$ac_cr" = x
; then
34951 eval ac_cr
=\$
\'\\r
\'
34953 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34954 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34957 ac_cs_awk_cr
=$ac_cr
34960 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34963 # Create commands to substitute file output variables.
34965 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
34966 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
34967 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
34970 } >conf$
$files.sh
&&
34971 . .
/conf$
$files.sh ||
34972 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
34973 rm -f conf$
$files.sh
34976 echo "cat >conf$$subs.awk <<_ACEOF" &&
34977 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34979 } >conf$$subs.sh ||
34980 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
34981 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34983 for ac_last_try in false false false false false :; do
34984 . ./conf$$subs.sh ||
34985 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
34987 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
34988 if test $ac_delim_n = $ac_delim_num; then
34990 elif $ac_last_try; then
34991 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
34993 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
34996 rm -f conf$$subs.sh
34998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34999 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
35003 s/^/S["/; s
/!.
*/"]=/
35013 s/\(.\{148\}\)..*/\1/
35015 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
35020 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
35027 s/\(.\{148\}\)..*/\1/
35029 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
35033 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
35038 ' <conf$$subs.awk | sed '
35043 ' >>$CONFIG_STATUS || ac_write_fail=1
35044 rm -f conf$$subs.awk
35045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35047 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
35048 for (key in S) S_is_set[key] = 1
35050 \$ac_cs_awk_pipe_init
35054 nfields = split(line, field, "@
")
35056 len = length(field[1])
35057 for (i = 2; i < nfields; i++) {
35059 keylen = length(key)
35060 if (S_is_set[key]) {
35062 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35063 len += length(value) + length(field[++i])
35068 if (nfields == 3 && !substed) {
35070 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35071 \$ac_cs_awk_read_file
35077 \$ac_cs_awk_pipe_fini
35080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35081 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35082 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
35085 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
35086 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
35089 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35090 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
35091 # trailing colons and then remove the whole line if VPATH becomes empty
35092 # (actually we leave an empty line to preserve line numbers).
35093 if test "x
$srcdir" = x.; then
35094 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35113 fi # test -n "$CONFIG_FILES"
35115 # Set up the scripts for CONFIG_HEADERS section.
35116 # No need to generate them if there are no CONFIG_HEADERS.
35117 # This happens for instance with `./config.status Makefile'.
35118 if test -n "$CONFIG_HEADERS"; then
35119 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
35123 # Transform confdefs.h into an awk script `defines.awk', embedded as
35124 # here-document in config.status, that substitutes the proper values into
35125 # config.h.in to produce config.h.
35127 # Create a delimiter string that does not exist in confdefs.h, to ease
35128 # handling of long lines.
35130 for ac_last_try in false false :; do
35131 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
35132 if test -z "$ac_tt"; then
35134 elif $ac_last_try; then
35135 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
35137 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
35141 # For the awk script, D is an array of macro values keyed by name,
35142 # likewise P contains macro parameters if any. Preserve backslash
35143 # newline sequences.
35145 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35147 s/.\{148\}/&'"$ac_delim"'/g
35150 s/^[ ]*#[ ]*define[ ][ ]*/ /
35157 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
35159 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
35163 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
35164 D["\
1"]=" \
3\\\\\\n
"\\/p
35166 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
35171 s/.\{148\}/&'"$ac_delim"'/g
35176 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
35179 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
35181 ' <confdefs.h | sed '
35182 s/'"$ac_delim"'/"\\\
35183 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35186 for (key in D) D_is_set[key] = 1
35189 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35191 split(line, arg, " ")
35192 if (arg[1] == "#") {
35196 defundef
= substr
(arg
[1], 2)
35199 split(mac1
, mac2
, "(") #)
35201 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
35202 if (D_is_set
[macro
]) {
35203 # Preserve the white space surrounding the "#".
35204 print prefix
"define", macro P
[macro
] D
[macro
]
35207 # Replace #undef with comments. This is necessary, for example,
35208 # in the case of _POSIX_SOURCE, which is predefined and required
35209 # on some systems where configure will not decide to define it.
35210 if (defundef
== "undef") {
35211 print
"/*", prefix defundef
, macro
, "*/"
35219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35220 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
35221 fi # test -n "$CONFIG_HEADERS"
35224 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35229 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35231 case $ac_mode$ac_tag in
35233 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
35234 :[FH
]-) ac_tag
=-:-;;
35235 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35252 -) ac_f
="$ac_tmp/stdin";;
35253 *) # Look for the file first in the build tree, then in the source tree
35254 # (if the path is not absolute). The absolute path cannot be DOS-style,
35255 # because $ac_f cannot contain `:'.
35259 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
35261 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35263 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35264 as_fn_append ac_file_inputs
" '$ac_f'"
35267 # Let's still pretend it is `configure' which instantiates (i.e., don't
35268 # use $as_me), people would be surprised to read:
35269 # /* config.h. Generated by config.status. */
35270 configure_input
='Generated from '`
35271 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35273 if test x
"$ac_file" != x-
; then
35274 configure_input
="$ac_file. $configure_input"
35275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35276 $as_echo "$as_me: creating $ac_file" >&6;}
35278 # Neutralize special characters interpreted by sed in replacement strings.
35279 case $configure_input in #(
35280 *\
&* |
*\|
* |
*\\* )
35281 ac_sed_conf_input
=`$as_echo "$configure_input" |
35282 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35283 *) ac_sed_conf_input
=$configure_input;;
35287 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
35288 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
35293 ac_dir
=`$as_dirname -- "$ac_file" ||
35294 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35295 X"$ac_file" : 'X\(//\)[^/]' \| \
35296 X"$ac_file" : 'X\(//\)$' \| \
35297 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35298 $as_echo X"$ac_file" |
35299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35303 /^X\(\/\/\)[^/].*/{
35316 as_dir
="$ac_dir"; as_fn_mkdir_p
35320 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35322 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35323 # A ".." for each directory in $ac_dir_suffix.
35324 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35325 case $ac_top_builddir_sub in
35326 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35327 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35330 ac_abs_top_builddir
=$ac_pwd
35331 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35332 # for backward compatibility:
35333 ac_top_builddir
=$ac_top_build_prefix
35336 .
) # We are building in place.
35338 ac_top_srcdir
=$ac_top_builddir_sub
35339 ac_abs_top_srcdir
=$ac_pwd ;;
35340 [\\/]* | ?
:[\\/]* ) # Absolute name.
35341 ac_srcdir
=$srcdir$ac_dir_suffix;
35342 ac_top_srcdir
=$srcdir
35343 ac_abs_top_srcdir
=$srcdir ;;
35344 *) # Relative name.
35345 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35346 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35347 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35349 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35359 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
35360 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
35364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35365 # If the template does not know about datarootdir, expand it.
35366 # FIXME: This hack should be removed a few years after 2.60.
35367 ac_datarootdir_hack
=; ac_datarootdir_seen
=
35378 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35379 *datarootdir
*) ac_datarootdir_seen
=yes;;
35380 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
35381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35382 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35385 ac_datarootdir_hack='
35386 s&@datadir@&$datadir&g
35387 s&@docdir@&$docdir&g
35388 s&@infodir@&$infodir&g
35389 s&@localedir@&$localedir&g
35390 s&@mandir@&$mandir&g
35391 s&\\\${datarootdir}&$datarootdir&g' ;;
35395 # Neutralize VPATH when `$srcdir' = `.'.
35396 # Shell code in configure.ac might set extrasub.
35397 # FIXME: do we really want to maintain this feature?
35398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35399 ac_sed_extra="$ac_vpsub
35402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35404 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
35405 s|@configure_input@|
$ac_sed_conf_input|
;t t
35406 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
35407 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
35408 s
&@srcdir@
&$ac_srcdir&;t t
35409 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
35410 s
&@top_srcdir@
&$ac_top_srcdir&;t t
35411 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
35412 s
&@builddir@
&$ac_builddir&;t t
35413 s
&@abs_builddir@
&$ac_abs_builddir&;t t
35414 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
35415 s
&@INSTALL@
&$ac_INSTALL&;t t
35416 $ac_datarootdir_hack
35418 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
35419 if $ac_cs_awk_getline; then
35420 $AWK -f "$ac_tmp/subs.
awk"
35422 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
35424 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
35426 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35427 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
35428 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35429 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
35430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
35431 which seems to be undefined. Please make sure it is defined" >&5
35432 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
35433 which seems to be undefined. Please make sure it is defined" >&2;}
35435 rm -f "$ac_tmp/stdin"
35437 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35438 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35446 if test x"$ac_file" != x-; then
35448 $as_echo "/* $configure_input */" \
35449 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35450 } >"$ac_tmp/config.h" \
35451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35452 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35453 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35454 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35457 mv "$ac_tmp/config.h" "$ac_file" \
35458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35461 $as_echo "/* $configure_input */" \
35462 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35463 || as_fn_error $? "could not create -" "$LINENO" 5
35471 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
35474 # Prefer the file from the source tree if names are identical.
35475 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
35476 ac_source=$srcdir/$ac_source
35479 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
35480 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
35482 if test ! -r "$ac_source"; then
35483 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
35487 # Try a relative symlink, then a hard link, then a copy.
35489 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
35490 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
35492 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
35493 ln "$ac_source" "$ac_file" 2>/dev/null ||
35494 cp -p "$ac_source" "$ac_file" ||
35495 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
35498 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35499 $as_echo "$as_me: executing $ac_file commands" >&6;}
35504 case $ac_file$ac_mode in
35505 "config.h":H) echo > stamp-h ;;
35508 # See if we are running on zsh, and set the options which allow our
35509 # commands through without removal of \ escapes.
35510 if test -n "${ZSH_VERSION+set}" ; then
35511 setopt NO_GLOB_SUBST
35514 cfgfile="${ofile}T"
35515 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35518 cat <<_LT_EOF >> "$cfgfile"
35521 # `$ECHO "$ofile" | sed 's
%^.
*/%%'` - Provide generalized library-building support services.
35522 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35523 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35524 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35526 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35527 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
35528 # Written by Gordon Matzigkeit, 1996
35530 # This file is part of GNU Libtool.
35532 # GNU Libtool is free software; you can redistribute it and/or
35533 # modify it under the terms of the GNU General Public License as
35534 # published by the Free Software Foundation; either version 2 of
35535 # the License, or (at your option) any later version.
35537 # As a special exception to the GNU General Public License,
35538 # if you distribute this file as part of a program or library that
35539 # is built using GNU Libtool, you may include this file under the
35540 # same distribution terms that you use for the rest of that program.
35542 # GNU Libtool is distributed in the hope that it will be useful,
35543 # but WITHOUT ANY WARRANTY; without even the implied warranty of
35544 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35545 # GNU General Public License for more details.
35547 # You should have received a copy of the GNU General Public License
35548 # along with GNU Libtool; see the file COPYING. If not, a copy
35549 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35550 # obtained by writing to the Free Software Foundation, Inc.,
35551 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35554 # The names of the tagged configurations supported by this script.
35555 available_tags="CXX "
35557 # ### BEGIN LIBTOOL CONFIG
35559 # Which release of libtool.m4 was used?
35560 macro_version=$macro_version
35561 macro_revision=$macro_revision
35563 # Whether or not to build shared libraries.
35564 build_libtool_libs=$enable_shared
35566 # Whether or not to build static libraries.
35567 build_old_libs=$enable_static
35569 # What type of objects to build.
35572 # Whether or not to optimize for fast installation.
35573 fast_install=$enable_fast_install
35575 # Shell to use when invoking shell scripts.
35578 # An echo program that protects backslashes.
35582 host_alias=$host_alias
35586 # The build system.
35587 build_alias=$build_alias
35591 # A sed program that does not truncate output.
35594 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35595 Xsed="\$SED -e 1s/^X//"
35597 # A grep program that handles long lines.
35603 # A literal string matcher.
35606 # A BSD- or MS-compatible name lister.
35609 # Whether we need soft or hard links.
35612 # What is the maximum length of a command?
35613 max_cmd_len=$max_cmd_len
35615 # Object file suffix (normally "o").
35618 # Executable file suffix (normally "").
35621 # whether the shell understands "unset".
35624 # turn spaces into newlines.
35627 # turn newlines into spaces.
35630 # An object symbol dumper.
35631 OBJDUMP=$lt_OBJDUMP
35633 # Method to check whether dependent libraries are shared objects.
35634 deplibs_check_method=$lt_deplibs_check_method
35636 # Command to use when deplibs_check_method == "file_magic".
35637 file_magic_cmd=$lt_file_magic_cmd
35641 AR_FLAGS=$lt_AR_FLAGS
35643 # A symbol stripping program.
35646 # Commands used to install an old-style archive.
35648 old_postinstall_cmds=$lt_old_postinstall_cmds
35649 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35651 # Whether to use a lock for old archive extraction.
35652 lock_old_archive_extraction=$lock_old_archive_extraction
35657 # LTCC compiler flags.
35658 LTCFLAGS=$lt_CFLAGS
35660 # Take the output of nm and produce a listing of raw symbols and C names.
35661 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35663 # Transform the output of nm in a proper C declaration.
35664 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35666 # Transform the output of nm in a C name address pair.
35667 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35669 # Transform the output of nm in a C name address pair when lib prefix is needed.
35670 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35672 # The name of the directory that contains temporary libtool files.
35675 # Used to examine libraries when file_magic_cmd begins with "file".
35676 MAGIC_CMD=$MAGIC_CMD
35678 # Must we lock files when doing compilation?
35679 need_locks=$lt_need_locks
35681 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35682 DSYMUTIL=$lt_DSYMUTIL
35684 # Tool to change global to local symbols on Mac OS X.
35687 # Tool to manipulate fat objects and archives on Mac OS X.
35690 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35693 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35694 OTOOL64=$lt_OTOOL64
35696 # Old archive suffix (normally "a").
35699 # Shared library suffix (normally ".so").
35700 shrext_cmds=$lt_shrext_cmds
35702 # The commands to extract the exported symbol list from a shared archive.
35703 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35705 # Variables whose values should be saved in libtool wrapper scripts and
35706 # restored at link time.
35707 variables_saved_for_relink=$lt_variables_saved_for_relink
35709 # Do we need the "lib" prefix for modules?
35710 need_lib_prefix=$need_lib_prefix
35712 # Do we need a version for libraries?
35713 need_version=$need_version
35715 # Library versioning type.
35716 version_type=$version_type
35718 # Shared library runtime path variable.
35719 runpath_var=$runpath_var
35721 # Shared library path variable.
35722 shlibpath_var=$shlibpath_var
35724 # Is shlibpath searched before the hard-coded library search path?
35725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35727 # Format of library name prefix.
35728 libname_spec=$lt_libname_spec
35730 # List of archive names. First name is the real one, the rest are links.
35731 # The last name is the one that the linker finds with -lNAME
35732 library_names_spec=$lt_library_names_spec
35734 # The coded name of the library, if different from the real name.
35735 soname_spec=$lt_soname_spec
35737 # Permission mode override for installation of shared libraries.
35738 install_override_mode=$lt_install_override_mode
35740 # Command to use after installation of a shared archive.
35741 postinstall_cmds=$lt_postinstall_cmds
35743 # Command to use after uninstallation of a shared archive.
35744 postuninstall_cmds=$lt_postuninstall_cmds
35746 # Commands used to finish a libtool library installation in a directory.
35747 finish_cmds=$lt_finish_cmds
35749 # As "finish_cmds", except a single script fragment to be evaled but
35751 finish_eval=$lt_finish_eval
35753 # Whether we should hardcode library paths into libraries.
35754 hardcode_into_libs=$hardcode_into_libs
35756 # Compile-time system search path for libraries.
35757 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35759 # Run-time system search path for libraries.
35760 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35762 # Whether dlopen is supported.
35763 dlopen_support=$enable_dlopen
35765 # Whether dlopen of programs is supported.
35766 dlopen_self=$enable_dlopen_self
35768 # Whether dlopen of statically linked programs is supported.
35769 dlopen_self_static=$enable_dlopen_self_static
35771 # Commands to strip libraries.
35772 old_striplib=$lt_old_striplib
35773 striplib=$lt_striplib
35776 # The linker used to build libraries.
35779 # How to create reloadable object files.
35780 reload_flag=$lt_reload_flag
35781 reload_cmds=$lt_reload_cmds
35783 # Commands used to build an old-style archive.
35784 old_archive_cmds=$lt_old_archive_cmds
35786 # A language specific compiler.
35789 # Is the compiler the GNU compiler?
35792 # Compiler flag to turn off builtin functions.
35793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35795 # How to pass a linker flag through the compiler.
35796 wl=$lt_lt_prog_compiler_wl
35798 # Additional compiler flags for building library objects.
35799 pic_flag=$lt_lt_prog_compiler_pic
35801 # Compiler flag to prevent dynamic linking.
35802 link_static_flag=$lt_lt_prog_compiler_static
35804 # Does compiler simultaneously support -c and -o options?
35805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35807 # Whether or not to add -lc for building shared libraries.
35808 build_libtool_need_lc=$archive_cmds_need_lc
35810 # Whether or not to disallow shared libs when runtime libs are static.
35811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35813 # Compiler flag to allow reflexive dlopens.
35814 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35816 # Compiler flag to generate shared objects directly from archives.
35817 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35819 # Whether the compiler copes with passing no objects directly.
35820 compiler_needs_object=$lt_compiler_needs_object
35822 # Create an old-style archive from a shared archive.
35823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35825 # Create a temporary old-style archive to link instead of a shared archive.
35826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35828 # Commands used to build a shared archive.
35829 archive_cmds=$lt_archive_cmds
35830 archive_expsym_cmds=$lt_archive_expsym_cmds
35832 # Commands used to build a loadable module if different from building
35833 # a shared archive.
35834 module_cmds=$lt_module_cmds
35835 module_expsym_cmds=$lt_module_expsym_cmds
35837 # Whether we are building with GNU ld or not.
35838 with_gnu_ld=$lt_with_gnu_ld
35840 # Flag that allows shared libraries with undefined symbols to be built.
35841 allow_undefined_flag=$lt_allow_undefined_flag
35843 # Flag that enforces no undefined symbols.
35844 no_undefined_flag=$lt_no_undefined_flag
35846 # Flag to hardcode \$libdir into a binary during linking.
35847 # This must work even if \$libdir does not exist
35848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35850 # If ld is used when linking, flag to hardcode \$libdir into a binary
35851 # during linking. This must work even if \$libdir does not exist.
35852 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35854 # Whether we need a single "-rpath" flag with a separated argument.
35855 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35857 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35858 # DIR into the resulting binary.
35859 hardcode_direct=$hardcode_direct
35861 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35862 # DIR into the resulting binary and the resulting library dependency is
35863 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35864 # library is relocated.
35865 hardcode_direct_absolute=$hardcode_direct_absolute
35867 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35868 # into the resulting binary.
35869 hardcode_minus_L=$hardcode_minus_L
35871 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35872 # into the resulting binary.
35873 hardcode_shlibpath_var=$hardcode_shlibpath_var
35875 # Set to "yes" if building a shared library automatically hardcodes DIR
35876 # into the library and all subsequent libraries and executables linked
35878 hardcode_automatic=$hardcode_automatic
35880 # Set to yes if linker adds runtime paths of dependent libraries
35881 # to runtime path list.
35882 inherit_rpath=$inherit_rpath
35884 # Whether libtool must link a program against all its dependency libraries.
35885 link_all_deplibs=$link_all_deplibs
35887 # Fix the shell variable \$srcfile for the compiler.
35888 fix_srcfile_path=$lt_fix_srcfile_path
35890 # Set to "yes" if exported symbols are required.
35891 always_export_symbols=$always_export_symbols
35893 # The commands to list exported symbols.
35894 export_symbols_cmds=$lt_export_symbols_cmds
35896 # Symbols that should not be listed in the preloaded symbols.
35897 exclude_expsyms=$lt_exclude_expsyms
35899 # Symbols that must always be exported.
35900 include_expsyms=$lt_include_expsyms
35902 # Commands necessary for linking programs (against libraries) with templates.
35903 prelink_cmds=$lt_prelink_cmds
35905 # Specify filename containing input files.
35906 file_list_spec=$lt_file_list_spec
35908 # How to hardcode a shared library path into an executable.
35909 hardcode_action=$hardcode_action
35911 # The directories searched by this compiler when creating a shared library.
35912 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35914 # Dependencies to place before and after the objects being linked to
35915 # create a shared library.
35916 predep_objects=$lt_predep_objects
35917 postdep_objects=$lt_postdep_objects
35918 predeps=$lt_predeps
35919 postdeps=$lt_postdeps
35921 # The library search path used internally by the compiler when linking
35922 # a shared library.
35923 compiler_lib_search_path=$lt_compiler_lib_search_path
35925 # ### END LIBTOOL CONFIG
35931 cat <<\_LT_EOF >> "$cfgfile"
35932 # AIX sometimes has problems with the GCC collect2 program. For some
35933 # reason, if we set the COLLECT_NAMES environment variable, the problems
35934 # vanish in a puff of smoke.
35935 if test "X${COLLECT_NAMES+set}" != Xset; then
35937 export COLLECT_NAMES
35944 ltmain="$ac_aux_dir/ltmain.sh"
35947 # We use sed instead of cat because bash on DJGPP gets confused if
35948 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35949 # text mode, it properly converts lines to CR/LF. This bash problem
35950 # is reportedly fixed, but why not run on old versions too?
35951 sed '/^
# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35952 ||
(rm -f "$cfgfile"; exit 1)
35956 cat << \_LT_EOF
>> "$cfgfile"
35958 # func_dirname file append nondir_replacement
35959 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35960 # otherwise set result to NONDIR_REPLACEMENT.
35964 */*) func_dirname_result
="${1%/*}${2}" ;;
35965 * ) func_dirname_result
="${3}" ;;
35969 # func_basename file
35972 func_basename_result
="${1##*/}"
35975 # func_dirname_and_basename file append nondir_replacement
35976 # perform func_basename and func_dirname in a single function
35978 # dirname: Compute the dirname of FILE. If nonempty,
35979 # add APPEND to the result, otherwise set result
35980 # to NONDIR_REPLACEMENT.
35981 # value returned in "$func_dirname_result"
35982 # basename: Compute filename of FILE.
35983 # value retuned in "$func_basename_result"
35984 # Implementation must be kept synchronized with func_dirname
35985 # and func_basename. For efficiency, we do not delegate to
35986 # those functions but instead duplicate the functionality here.
35987 func_dirname_and_basename
()
35990 */*) func_dirname_result
="${1%/*}${2}" ;;
35991 * ) func_dirname_result
="${3}" ;;
35993 func_basename_result
="${1##*/}"
35996 # func_stripname prefix suffix name
35997 # strip PREFIX and SUFFIX off of NAME.
35998 # PREFIX and SUFFIX must not contain globbing or regex special
35999 # characters, hashes, percent signs, but SUFFIX may contain a leading
36000 # dot (in which case that matches only a dot).
36003 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
36004 # positional parameters, so assign one to ordinary parameter first.
36005 func_stripname_result
=${3}
36006 func_stripname_result
=${func_stripname_result#"${1}"}
36007 func_stripname_result
=${func_stripname_result%"${2}"}
36013 func_opt_split_opt
=${1%%=*}
36014 func_opt_split_arg
=${1#*=}
36021 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
36022 *) func_lo2o_result
=${1} ;;
36026 # func_xform libobj-or-source
36029 func_xform_result
=${1%.*}.lo
36032 # func_arith arithmetic-term...
36035 func_arith_result
=$
(( $
* ))
36039 # STRING may not start with a hyphen.
36042 func_len_result
=${#1}
36047 *) # Bourne compatible functions.
36048 cat << \_LT_EOF
>> "$cfgfile"
36050 # func_dirname file append nondir_replacement
36051 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
36052 # otherwise set result to NONDIR_REPLACEMENT.
36055 # Extract subdirectory from the argument.
36056 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
36057 if test "X$func_dirname_result" = "X${1}"; then
36058 func_dirname_result
="${3}"
36060 func_dirname_result
="$func_dirname_result${2}"
36064 # func_basename file
36067 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
36071 # func_stripname prefix suffix name
36072 # strip PREFIX and SUFFIX off of NAME.
36073 # PREFIX and SUFFIX must not contain globbing or regex special
36074 # characters, hashes, percent signs, but SUFFIX may contain a leading
36075 # dot (in which case that matches only a dot).
36076 # func_strip_suffix prefix name
36080 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
36081 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
36086 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
36087 my_sed_long_arg
='1s/^-[^=]*=//'
36092 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
36093 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
36099 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
36102 # func_xform libobj-or-source
36105 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
36108 # func_arith arithmetic-term...
36111 func_arith_result
=`expr "$@"`
36115 # STRING may not start with a hyphen.
36118 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
36124 case $lt_shell_append in
36126 cat << \_LT_EOF
>> "$cfgfile"
36128 # func_append var value
36129 # Append VALUE to the end of shell variable VAR.
36137 cat << \_LT_EOF
>> "$cfgfile"
36139 # func_append var value
36140 # Append VALUE to the end of shell variable VAR.
36151 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
36152 ||
(rm -f "$cfgfile"; exit 1)
36154 mv -f "$cfgfile" "$ofile" ||
36155 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36159 cat <<_LT_EOF >> "$ofile"
36161 # ### BEGIN LIBTOOL TAG CONFIG: CXX
36163 # The linker used to build libraries.
36166 # How to create reloadable object files.
36167 reload_flag=$lt_reload_flag_CXX
36168 reload_cmds=$lt_reload_cmds_CXX
36170 # Commands used to build an old-style archive.
36171 old_archive_cmds=$lt_old_archive_cmds_CXX
36173 # A language specific compiler.
36174 CC=$lt_compiler_CXX
36176 # Is the compiler the GNU compiler?
36179 # Compiler flag to turn off builtin functions.
36180 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36182 # How to pass a linker flag through the compiler.
36183 wl=$lt_lt_prog_compiler_wl_CXX
36185 # Additional compiler flags for building library objects.
36186 pic_flag=$lt_lt_prog_compiler_pic_CXX
36188 # Compiler flag to prevent dynamic linking.
36189 link_static_flag=$lt_lt_prog_compiler_static_CXX
36191 # Does compiler simultaneously support -c and -o options?
36192 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36194 # Whether or not to add -lc for building shared libraries.
36195 build_libtool_need_lc=$archive_cmds_need_lc_CXX
36197 # Whether or not to disallow shared libs when runtime libs are static.
36198 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36200 # Compiler flag to allow reflexive dlopens.
36201 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36203 # Compiler flag to generate shared objects directly from archives.
36204 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36206 # Whether the compiler copes with passing no objects directly.
36207 compiler_needs_object=$lt_compiler_needs_object_CXX
36209 # Create an old-style archive from a shared archive.
36210 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36212 # Create a temporary old-style archive to link instead of a shared archive.
36213 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36215 # Commands used to build a shared archive.
36216 archive_cmds=$lt_archive_cmds_CXX
36217 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36219 # Commands used to build a loadable module if different from building
36220 # a shared archive.
36221 module_cmds=$lt_module_cmds_CXX
36222 module_expsym_cmds=$lt_module_expsym_cmds_CXX
36224 # Whether we are building with GNU ld or not.
36225 with_gnu_ld=$lt_with_gnu_ld_CXX
36227 # Flag that allows shared libraries with undefined symbols to be built.
36228 allow_undefined_flag=$lt_allow_undefined_flag_CXX
36230 # Flag that enforces no undefined symbols.
36231 no_undefined_flag=$lt_no_undefined_flag_CXX
36233 # Flag to hardcode \$libdir into a binary during linking.
36234 # This must work even if \$libdir does not exist
36235 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36237 # If ld is used when linking, flag to hardcode \$libdir into a binary
36238 # during linking. This must work even if \$libdir does not exist.
36239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36241 # Whether we need a single "-rpath" flag with a separated argument.
36242 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36244 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36245 # DIR into the resulting binary.
36246 hardcode_direct=$hardcode_direct_CXX
36248 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36249 # DIR into the resulting binary and the resulting library dependency is
36250 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36251 # library is relocated.
36252 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36254 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36255 # into the resulting binary.
36256 hardcode_minus_L=$hardcode_minus_L_CXX
36258 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36259 # into the resulting binary.
36260 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36262 # Set to "yes" if building a shared library automatically hardcodes DIR
36263 # into the library and all subsequent libraries and executables linked
36265 hardcode_automatic=$hardcode_automatic_CXX
36267 # Set to yes if linker adds runtime paths of dependent libraries
36268 # to runtime path list.
36269 inherit_rpath=$inherit_rpath_CXX
36271 # Whether libtool must link a program against all its dependency libraries.
36272 link_all_deplibs=$link_all_deplibs_CXX
36274 # Fix the shell variable \$srcfile for the compiler.
36275 fix_srcfile_path=$lt_fix_srcfile_path_CXX
36277 # Set to "yes" if exported symbols are required.
36278 always_export_symbols=$always_export_symbols_CXX
36280 # The commands to list exported symbols.
36281 export_symbols_cmds=$lt_export_symbols_cmds_CXX
36283 # Symbols that should not be listed in the preloaded symbols.
36284 exclude_expsyms=$lt_exclude_expsyms_CXX
36286 # Symbols that must always be exported.
36287 include_expsyms=$lt_include_expsyms_CXX
36289 # Commands necessary for linking programs (against libraries) with templates.
36290 prelink_cmds=$lt_prelink_cmds_CXX
36292 # Specify filename containing input files.
36293 file_list_spec=$lt_file_list_spec_CXX
36295 # How to hardcode a shared library path into an executable.
36296 hardcode_action=$hardcode_action_CXX
36298 # The directories searched by this compiler when creating a shared library.
36299 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36301 # Dependencies to place before and after the objects being linked to
36302 # create a shared library.
36303 predep_objects=$lt_predep_objects_CXX
36304 postdep_objects=$lt_postdep_objects_CXX
36305 predeps=$lt_predeps_CXX
36306 postdeps=$lt_postdeps_CXX
36308 # The library search path used internally by the compiler when linking
36309 # a shared library.
36310 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36312 # ### END LIBTOOL TAG CONFIG: CXX
36316 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
36318 for ac_file
in $CONFIG_FILES; do
36319 # Support "outfile[:infile[:infile...]]"
36321 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
36323 # PO directories have a Makefile.in generated from Makefile.in.in.
36324 case "$ac_file" in */Makefile.
in)
36325 # Adjust a relative srcdir.
36326 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36327 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
36328 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36329 # In autoconf-2.13 it is called $ac_given_srcdir.
36330 # In autoconf-2.50 it is called $srcdir.
36331 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
36332 case "$ac_given_srcdir" in
36333 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
36334 /*) top_srcdir
="$ac_given_srcdir" ;;
36335 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
36337 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36338 rm -f "$ac_dir/POTFILES"
36339 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
36340 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36341 POMAKEFILEDEPS
="POTFILES.in"
36342 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36343 # on $ac_dir but don't depend on user-specified configuration
36345 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36346 # The LINGUAS file contains the set of available languages.
36347 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36348 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
36350 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36351 # Hide the ALL_LINGUAS assigment from automake.
36352 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36353 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
36355 # The set of available languages was given in configure.ac.
36356 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36358 case "$ac_given_srcdir" in
36360 *) srcdirpre
='$(srcdir)/' ;;
36366 for lang
in $ALL_LINGUAS; do
36367 POFILES
="$POFILES $srcdirpre$lang.po"
36368 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
36369 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
36370 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
36372 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36373 # environment variable.
36375 if test -n "$ALL_LINGUAS"; then
36376 for presentlang
in $ALL_LINGUAS; do
36378 if test "%UNSET%" != "$LINGUAS"; then
36379 desiredlanguages
="$LINGUAS"
36381 desiredlanguages
="$ALL_LINGUAS"
36383 for desiredlang
in $desiredlanguages; do
36384 # Use the presentlang catalog if desiredlang is
36385 # a. equal to presentlang, or
36386 # b. a variant of presentlang (because in this case,
36387 # presentlang can be used as a fallback for messages
36388 # which are not translated in the desiredlang catalog).
36389 case "$desiredlang" in
36390 "$presentlang"*) useit
=yes;;
36393 if test $useit = yes; then
36394 INST_LINGUAS
="$INST_LINGUAS $presentlang"
36399 if test -n "$INST_LINGUAS"; then
36400 for lang
in $INST_LINGUAS; do
36401 CATALOGS
="$CATALOGS $lang.gmo"
36404 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
36405 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"
36406 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
36407 if test -f "$f"; then
36409 *.orig |
*.bak |
*~
) ;;
36410 *) cat "$f" >> "$ac_dir/Makefile" ;;
36418 "nm.h":L
) echo > stamp-nmh
;;
36419 "gcore":F
) chmod +x gcore
;;
36427 ac_clean_files
=$ac_clean_files_save
36429 test $ac_write_fail = 0 ||
36430 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
36433 # configure is writing to config.log, and then calls config.status.
36434 # config.status does its own redirection, appending to config.log.
36435 # Unfortunately, on DOS this fails, as config.log is still kept open
36436 # by configure, so config.status won't be able to write to it; its
36437 # output is simply discarded. So we exec the FD to /dev/null,
36438 # effectively closing config.log, so it can be properly (re)opened and
36439 # appended to by config.status. When coming back to configure, we
36440 # need to make the FD available again.
36441 if test "$no_create" != yes; then
36443 ac_config_status_args
=
36444 test "$silent" = yes &&
36445 ac_config_status_args
="$ac_config_status_args --quiet"
36447 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36449 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36450 # would make configure fail if this is the last instruction.
36451 $ac_cs_success || as_fn_exit
1
36455 # CONFIG_SUBDIRS section.
36457 if test "$no_recursion" != yes; then
36459 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
36460 # so they do not pile up.
36461 ac_sub_configure_args
=
36463 eval "set x $ac_configure_args"
36467 if test -n "$ac_prev"; then
36472 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
36473 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
36474 ac_prev
=cache_file
;;
36475 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
36476 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
36479 --config-cache |
-C)
36481 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
36483 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
36485 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
36487 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
36489 --disable-option-checking)
36493 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36495 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
36499 # Always prepend --prefix to ensure using the same prefix
36500 # in subdir configurations.
36501 ac_arg
="--prefix=$prefix"
36503 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36505 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
36508 if test "$silent" = yes; then
36509 ac_sub_configure_args
="--silent $ac_sub_configure_args"
36512 # Always prepend --disable-option-checking to silence warnings, since
36513 # different subdirs can have different --enable and --with options.
36514 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
36517 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
36519 # Do not complain, so a configure script can configure whichever
36520 # parts of a large source tree are present.
36521 test -d "$srcdir/$ac_dir" ||
continue
36523 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36524 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
36525 $as_echo "$ac_msg" >&6
36526 as_dir
="$ac_dir"; as_fn_mkdir_p
36530 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36532 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36533 # A ".." for each directory in $ac_dir_suffix.
36534 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36535 case $ac_top_builddir_sub in
36536 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36537 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36540 ac_abs_top_builddir
=$ac_pwd
36541 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36542 # for backward compatibility:
36543 ac_top_builddir
=$ac_top_build_prefix
36546 .
) # We are building in place.
36548 ac_top_srcdir
=$ac_top_builddir_sub
36549 ac_abs_top_srcdir
=$ac_pwd ;;
36550 [\\/]* | ?
:[\\/]* ) # Absolute name.
36551 ac_srcdir
=$srcdir$ac_dir_suffix;
36552 ac_top_srcdir
=$srcdir
36553 ac_abs_top_srcdir
=$srcdir ;;
36554 *) # Relative name.
36555 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36556 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36557 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36559 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36564 # Check for guested configure; otherwise get Cygnus style configure.
36565 if test -f "$ac_srcdir/configure.gnu"; then
36566 ac_sub_configure
=$ac_srcdir/configure.gnu
36567 elif test -f "$ac_srcdir/configure"; then
36568 ac_sub_configure
=$ac_srcdir/configure
36569 elif test -f "$ac_srcdir/configure.in"; then
36570 # This should be Cygnus configure.
36571 ac_sub_configure
=$ac_aux_dir/configure
36573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
36574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36578 # The recursion is here.
36579 if test -n "$ac_sub_configure"; then
36580 # Make the cache file name correct relative to the subdirectory.
36581 case $cache_file in
36582 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
36583 *) # Relative name.
36584 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
36587 { $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
36588 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36589 # The eval makes quoting arguments work.
36590 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36591 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36592 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
36598 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
36599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36600 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}