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>
632 enable_option_checking
=no
634 ac_subst_vars
='LTLIBOBJS
648 HAVE_NATIVE_GCORE_HOST
749 READLINE_DOC_SOURCE_INCLUDES
750 READLINE_TEXI_INCFLAG
774 HAVE_NATIVE_GCORE_TARGET
778 ENABLE_BFD_64_BIT_FALSE
779 ENABLE_BFD_64_BIT_TRUE
826 INSTALL_STRIP_PROGRAM
856 MAINTAINER_MODE_FALSE
885 program_transform_name
896 ac_subst_files
='nat_makefile_frag'
898 enable_option_checking
899 enable_maintainer_mode
908 with_separate_debug_dir
910 with_relocated_sources
912 with_auto_load_safe_path
940 enable_source_highlight
946 with_libxxhash_prefix
950 with_system_gdbinit_dir
952 enable_build_warnings
953 enable_gdb_build_warnings
964 with_libbabeltrace_prefix
965 with_libbabeltrace_type
969 ac_precious_vars
='build_alias
998 ac_subdirs_all
='testsuite
1001 # Initialize some variables set by options.
1003 ac_init_version
=false
1004 ac_unrecognized_opts
=
1005 ac_unrecognized_sep
=
1006 # The variables have the same names as the options, with
1007 # dashes changed to underlines.
1008 cache_file
=/dev
/null
1015 program_transform_name
=s
,x
,x
,
1023 # Installation directory options.
1024 # These are left unexpanded so users can "make install exec_prefix=/foo"
1025 # and all the variables that are supposed to be based on exec_prefix
1026 # by default will actually change.
1027 # Use braces instead of parens because sh, perl, etc. also accept them.
1028 # (The list follows the same order as the GNU Coding Standards.)
1029 bindir
='${exec_prefix}/bin'
1030 sbindir
='${exec_prefix}/sbin'
1031 libexecdir
='${exec_prefix}/libexec'
1032 datarootdir
='${prefix}/share'
1033 datadir
='${datarootdir}'
1034 sysconfdir
='${prefix}/etc'
1035 sharedstatedir
='${prefix}/com'
1036 localstatedir
='${prefix}/var'
1037 includedir
='${prefix}/include'
1038 oldincludedir
='/usr/include'
1039 docdir
='${datarootdir}/doc/${PACKAGE}'
1040 infodir
='${datarootdir}/info'
1045 libdir
='${exec_prefix}/lib'
1046 localedir
='${datarootdir}/locale'
1047 mandir
='${datarootdir}/man'
1053 # If the previous option needs an argument, assign it.
1054 if test -n "$ac_prev"; then
1055 eval $ac_prev=\
$ac_option
1061 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066 # Accept the important Cygnus configure options, so we can diagnose typos.
1068 case $ac_dashdash$ac_option in
1072 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1074 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1075 bindir
=$ac_optarg ;;
1077 -build |
--build |
--buil |
--bui |
--bu)
1078 ac_prev
=build_alias
;;
1079 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1080 build_alias
=$ac_optarg ;;
1082 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1083 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1084 ac_prev
=cache_file
;;
1085 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1086 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1087 cache_file
=$ac_optarg ;;
1089 --config-cache |
-C)
1090 cache_file
=config.cache
;;
1092 -datadir |
--datadir |
--datadi |
--datad)
1094 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1095 datadir
=$ac_optarg ;;
1097 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1098 |
--dataroo |
--dataro |
--datar)
1099 ac_prev
=datarootdir
;;
1100 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1101 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1102 datarootdir
=$ac_optarg ;;
1104 -disable-* |
--disable-*)
1105 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1108 as_fn_error $?
"invalid feature name: $ac_useropt"
1109 ac_useropt_orig
=$ac_useropt
1110 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "enable_
$ac_useropt"
1115 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1116 ac_unrecognized_sep
=', ';;
1118 eval enable_
$ac_useropt=no
;;
1120 -docdir |
--docdir |
--docdi |
--doc |
--do)
1122 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1123 docdir
=$ac_optarg ;;
1125 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1127 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1128 dvidir
=$ac_optarg ;;
1130 -enable-* |
--enable-*)
1131 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1134 as_fn_error $?
"invalid feature name: $ac_useropt"
1135 ac_useropt_orig
=$ac_useropt
1136 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "enable_
$ac_useropt"
1141 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1142 ac_unrecognized_sep
=', ';;
1144 eval enable_
$ac_useropt=\
$ac_optarg ;;
1146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1148 |
--exec |
--exe |
--ex)
1149 ac_prev
=exec_prefix
;;
1150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1152 |
--exec=* |
--exe=* |
--ex=*)
1153 exec_prefix
=$ac_optarg ;;
1155 -gas |
--gas |
--ga |
--g)
1156 # Obsolete; use --with-gas.
1159 -help |
--help |
--hel |
--he |
-h)
1160 ac_init_help
=long
;;
1161 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1162 ac_init_help
=recursive
;;
1163 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1164 ac_init_help
=short
;;
1166 -host |
--host |
--hos |
--ho)
1167 ac_prev
=host_alias
;;
1168 -host=* |
--host=* |
--hos=* |
--ho=*)
1169 host_alias
=$ac_optarg ;;
1171 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1173 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1175 htmldir
=$ac_optarg ;;
1177 -includedir |
--includedir |
--includedi |
--included |
--include \
1178 |
--includ |
--inclu |
--incl |
--inc)
1179 ac_prev
=includedir
;;
1180 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1181 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1182 includedir
=$ac_optarg ;;
1184 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1186 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1187 infodir
=$ac_optarg ;;
1189 -libdir |
--libdir |
--libdi |
--libd)
1191 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1192 libdir
=$ac_optarg ;;
1194 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1195 |
--libexe |
--libex |
--libe)
1196 ac_prev
=libexecdir
;;
1197 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1198 |
--libexe=* |
--libex=* |
--libe=*)
1199 libexecdir
=$ac_optarg ;;
1201 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1202 ac_prev
=localedir
;;
1203 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1204 localedir
=$ac_optarg ;;
1206 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1207 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1208 ac_prev
=localstatedir
;;
1209 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1210 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1211 localstatedir
=$ac_optarg ;;
1213 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1215 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1216 mandir
=$ac_optarg ;;
1218 -nfp |
--nfp |
--nf)
1219 # Obsolete; use --without-fp.
1222 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1223 |
--no-cr |
--no-c |
-n)
1226 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1227 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1230 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1231 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1232 |
--oldin |
--oldi |
--old |
--ol |
--o)
1233 ac_prev
=oldincludedir
;;
1234 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1235 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1236 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1237 oldincludedir
=$ac_optarg ;;
1239 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1241 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1242 prefix
=$ac_optarg ;;
1244 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1245 |
--program-pre |
--program-pr |
--program-p)
1246 ac_prev
=program_prefix
;;
1247 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1248 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1249 program_prefix
=$ac_optarg ;;
1251 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1252 |
--program-suf |
--program-su |
--program-s)
1253 ac_prev
=program_suffix
;;
1254 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1255 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1256 program_suffix
=$ac_optarg ;;
1258 -program-transform-name |
--program-transform-name \
1259 |
--program-transform-nam |
--program-transform-na \
1260 |
--program-transform-n |
--program-transform- \
1261 |
--program-transform |
--program-transfor \
1262 |
--program-transfo |
--program-transf \
1263 |
--program-trans |
--program-tran \
1264 |
--progr-tra |
--program-tr |
--program-t)
1265 ac_prev
=program_transform_name
;;
1266 -program-transform-name=* |
--program-transform-name=* \
1267 |
--program-transform-nam=* |
--program-transform-na=* \
1268 |
--program-transform-n=* |
--program-transform-=* \
1269 |
--program-transform=* |
--program-transfor=* \
1270 |
--program-transfo=* |
--program-transf=* \
1271 |
--program-trans=* |
--program-tran=* \
1272 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1273 program_transform_name
=$ac_optarg ;;
1275 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1277 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1278 pdfdir
=$ac_optarg ;;
1280 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1282 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1285 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1286 |
-silent |
--silent |
--silen |
--sile |
--sil)
1289 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1291 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1293 sbindir
=$ac_optarg ;;
1295 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1296 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1297 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1299 ac_prev
=sharedstatedir
;;
1300 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1301 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1302 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1304 sharedstatedir
=$ac_optarg ;;
1306 -site |
--site |
--sit)
1308 -site=* |
--site=* |
--sit=*)
1311 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1313 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1314 srcdir
=$ac_optarg ;;
1316 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1317 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1318 ac_prev
=sysconfdir
;;
1319 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1320 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1321 sysconfdir
=$ac_optarg ;;
1323 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1324 ac_prev
=target_alias
;;
1325 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1326 target_alias
=$ac_optarg ;;
1328 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1331 -version |
--version |
--versio |
--versi |
--vers |
-V)
1332 ac_init_version
=: ;;
1335 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1338 as_fn_error $?
"invalid package name: $ac_useropt"
1339 ac_useropt_orig
=$ac_useropt
1340 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1345 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep
=', ';;
1348 eval with_
$ac_useropt=\
$ac_optarg ;;
1350 -without-* |
--without-*)
1351 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1354 as_fn_error $?
"invalid package name: $ac_useropt"
1355 ac_useropt_orig
=$ac_useropt
1356 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1361 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1362 ac_unrecognized_sep
=', ';;
1364 eval with_
$ac_useropt=no
;;
1367 # Obsolete; use --with-x.
1370 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1371 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1372 ac_prev
=x_includes
;;
1373 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1374 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1375 x_includes
=$ac_optarg ;;
1377 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1378 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1379 ac_prev
=x_libraries
;;
1380 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1381 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1382 x_libraries
=$ac_optarg ;;
1384 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1385 Try \`$0 --help' for more information"
1389 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1390 # Reject names that are not valid shell variable names.
1391 case $ac_envvar in #(
1392 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1393 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1395 eval $ac_envvar=\
$ac_optarg
1396 export $ac_envvar ;;
1399 # FIXME: should be removed in autoconf 3.0.
1400 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1401 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1402 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1403 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1409 if test -n "$ac_prev"; then
1410 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1411 as_fn_error $?
"missing argument to $ac_option"
1414 if test -n "$ac_unrecognized_opts"; then
1415 case $enable_option_checking in
1417 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1418 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422 # Check all directory arguments for consistency.
1423 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1424 datadir sysconfdir sharedstatedir localstatedir includedir \
1425 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1426 libdir localedir mandir
1428 eval ac_val
=\$
$ac_var
1429 # Remove trailing slashes.
1432 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1433 eval $ac_var=\
$ac_val;;
1435 # Be sure to have absolute directory names.
1437 [\\/$
]* | ?
:[\\/]* ) continue;;
1438 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1440 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1443 # There might be people who depend on the old broken behavior: `$host'
1444 # used to hold the argument of --host etc.
1445 # FIXME: To remove some day.
1448 target
=$target_alias
1450 # FIXME: To remove some day.
1451 if test "x$host_alias" != x
; then
1452 if test "x$build_alias" = x
; then
1453 cross_compiling
=maybe
1454 elif test "x$build_alias" != "x$host_alias"; then
1460 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1462 test "$silent" = yes && exec 6>/dev
/null
1465 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1466 ac_ls_di
=`ls -di .` &&
1467 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1468 as_fn_error $?
"working directory cannot be determined"
1469 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470 as_fn_error $?
"pwd does not report name of working directory"
1473 # Find the source files, if location was not specified.
1474 if test -z "$srcdir"; then
1475 ac_srcdir_defaulted
=yes
1476 # Try the directory containing this script, then the parent directory.
1477 ac_confdir
=`$as_dirname -- "$as_myself" ||
1478 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1479 X"$as_myself" : 'X\(//\)[^/]' \| \
1480 X"$as_myself" : 'X\(//\)$' \| \
1481 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1482 $as_echo X"$as_myself" |
1483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1505 ac_srcdir_defaulted
=no
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1508 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1509 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1511 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1515 # When building in place, set srcdir=.
1516 if test "$ac_abs_confdir" = "$ac_pwd"; then
1519 # Remove unnecessary trailing slashes from srcdir.
1520 # Double slashes in file names in object file debugging info
1521 # mess up M-x gdb in Emacs.
1523 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 for ac_var
in $ac_precious_vars; do
1526 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1527 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1528 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1529 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1533 # Report the --help message.
1535 if test "$ac_init_help" = "long"; then
1536 # Omit some internal or obsolete options to make the list less imposing.
1537 # This message is too long to be a string in the A/UX 3.1 sh.
1539 \`configure' configures this package to adapt to many kinds of systems.
1541 Usage: $0 [OPTION]... [VAR=VALUE]...
1543 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1544 VAR=VALUE. See below for descriptions of some of the useful variables.
1546 Defaults for the options are specified in brackets.
1549 -h, --help display this help and exit
1550 --help=short display options specific to this package
1551 --help=recursive display the short help of all the included packages
1552 -V, --version display version information and exit
1553 -q, --quiet, --silent do not print \`checking ...' messages
1554 --cache-file=FILE cache test results in FILE [disabled]
1555 -C, --config-cache alias for \`--cache-file=config.cache'
1556 -n, --no-create do not create output files
1557 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1559 Installation directories:
1560 --prefix=PREFIX install architecture-independent files in PREFIX
1561 [$ac_default_prefix]
1562 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1565 By default, \`make install' will install all the files in
1566 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1567 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1568 for instance \`--prefix=\$HOME'.
1570 For better control, use the options below.
1572 Fine tuning of the installation directories:
1573 --bindir=DIR user executables [EPREFIX/bin]
1574 --sbindir=DIR system admin executables [EPREFIX/sbin]
1575 --libexecdir=DIR program executables [EPREFIX/libexec]
1576 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1577 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1578 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1579 --libdir=DIR object code libraries [EPREFIX/lib]
1580 --includedir=DIR C header files [PREFIX/include]
1581 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1582 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1583 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1584 --infodir=DIR info documentation [DATAROOTDIR/info]
1585 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1586 --mandir=DIR man documentation [DATAROOTDIR/man]
1587 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1588 --htmldir=DIR html documentation [DOCDIR]
1589 --dvidir=DIR dvi documentation [DOCDIR]
1590 --pdfdir=DIR pdf documentation [DOCDIR]
1591 --psdir=DIR ps documentation [DOCDIR]
1597 --program-prefix=PREFIX prepend PREFIX to installed program names
1598 --program-suffix=SUFFIX append SUFFIX to installed program names
1599 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1602 --x-includes=DIR X include files are
in DIR
1603 --x-libraries=DIR X library files are
in DIR
1606 --build=BUILD configure
for building on BUILD
[guessed
]
1607 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1608 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1612 if test -n "$ac_init_help"; then
1617 --disable-option-checking ignore unrecognized
--enable/--with options
1618 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1619 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1620 --enable-maintainer-mode
1621 enable make rules and dependencies not useful
(and
1622 sometimes confusing
) to the casual installer
1623 --enable-plugins Enable support
for plugins
1624 --disable-largefile omit support
for large files
1625 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1626 --enable-static[=PKGS
] build static libraries
[default
=yes]
1627 --enable-fast-install[=PKGS
]
1628 optimize
for fast installation
[default
=yes]
1629 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1630 --enable-targets=TARGETS
1631 alternative target configurations
1632 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1633 --disable-gdbmi disable machine-interface
(MI
)
1634 --enable-tui enable full-screen terminal user interface
(TUI
)
1635 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1636 --enable-profiling enable profiling of GDB
1637 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1638 --disable-rpath do not hardcode runtime library paths
1639 --enable-source-highlight
1640 enable source-highlight
for source listings
1641 --enable-threading include support
for parallel processing of data
1643 --enable-werror treat compile warnings as errors
1644 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1645 --enable-gdb-build-warnings
1646 enable GDB specific build-time compiler warnings
if
1648 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1649 --enable-sim link gdb with simulator
1650 --enable-libbacktrace use libbacktrace to
write a backtrace after a fatal
1652 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1653 --enable-unit-tests Enable the inclusion of unit tests when compiling
1657 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1658 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1659 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1661 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1662 --with-separate-debug-dir=PATH
1663 look for global separate debug info
in this path
1665 --with-gdb-datadir=PATH
look for global separate data files
in this path
1667 --with-relocated-sources=PATH
1668 automatically relocate this path
for source files
1669 --with-auto-load-dir=PATH
1670 directories from
which to load auto-loaded scripts
1671 [$debugdir:$datadir/auto-load
]
1672 --with-auto-load-safe-path=PATH
1673 directories safe to hold auto-loaded files
1674 [--with-auto-load-dir]
1675 --without-auto-load-safe-path
1676 do not restrict auto-loaded files locations
1677 --with-amd-dbgapi support
for the amd-dbgapi target
(yes / no
/ auto
)
1678 --with-debuginfod Enable debuginfo lookups with debuginfod
1680 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1681 --with-curses use the curses library instead of the termcap
1683 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1684 --with-bugurl=URL Direct users to URL to report a bug
1685 --with-system-zlib use installed libz
1686 --with-zstd support zstd compressed debug sections
1688 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1689 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1690 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1691 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1692 --with-iconv-bin=PATH specify where to find the iconv program
1693 --with-system-readline use installed readline library
1694 --with-jit-reader-dir=PATH
1695 directory to load the JIT readers from
1696 --with-expat include expat support (auto/yes/no)
1697 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1698 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1699 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1700 --with-python[=PYTHON
] include python support
1701 (auto
/yes
/no
/<python-program
>)
1702 --with-python-libdir[=DIR
]
1703 search
for python
's libraries in DIR
1704 --with-guile[=GUILE] include guile support
1705 (auto/yes/no/<guile-version>/<pkg-config-program>)
1706 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1707 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1708 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1709 --with-libipt-type=TYPE
type of library to search
for (auto
/static
/shared
)
1710 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1711 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1712 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1713 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1714 --with-sysroot[=DIR] search for usr/lib et al within DIR
1715 --with-system-gdbinit=PATH
1716 automatically load a system-wide gdbinit file
1717 --with-system-gdbinit-dir=PATH
1718 automatically load system-wide gdbinit files from
1720 --with-lzma support lzma compression (auto/yes/no)
1721 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1722 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1723 --with-liblzma-type=TYPE
type of library to search
for (auto
/static
/shared
)
1724 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1725 --with-tk directory containing tk configuration
(tkConfig.sh
)
1726 --with-x use the X Window System
1727 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1728 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1729 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1730 --with-libbabeltrace-type=TYPE type of library to search for (auto/static/shared)
1732 Some influential environment variables:
1733 CC C compiler command
1734 CFLAGS C compiler flags
1735 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1736 nonstandard directory <lib dir>
1737 LIBS libraries to pass to the linker, e.g. -l<library>
1738 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1739 you have headers in a nonstandard directory <include dir>
1740 CXX C++ compiler command
1741 CXXFLAGS C++ compiler flags
1743 CXXCPP C++ preprocessor
1744 PKG_CONFIG path to pkg-config utility
1746 directories to add to pkg-config's search path
1748 path overriding pkg-config
's built-in search path
1749 MAKEINFO Parent configure detects if it is of sufficient version.
1751 Parameters for MAKEINFO.
1753 C compiler flags for AMD_DBGAPI, overriding pkg-config
1755 linker flags for AMD_DBGAPI, overriding pkg-config
1757 C compiler flags for DEBUGINFOD, overriding pkg-config
1759 linker flags for DEBUGINFOD, overriding pkg-config
1760 YACC The `Yet Another Compiler Compiler' implementation to use.
1761 Defaults to the first program found out of
: `bison -y', `byacc
',
1763 YFLAGS The list of arguments that will be passed by default to
$YACC.
1764 This
script will default YFLAGS to the empty string to avoid a
1765 default value of
`-d' given by some make applications.
1766 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1767 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1768 GMPLIBS How to link GMP
1769 GMPINC How to find GMP include files
1770 XMKMF Path to xmkmf, Makefile generator for X Window System
1772 Use these variables to override the choices made by `configure
' or to help
1773 it to find libraries and programs with nonstandard names/locations.
1775 Report bugs to the package provider.
1780 if test "$ac_init_help" = "recursive"; then
1781 # If there are subdirs, report their specific --help.
1782 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1783 test -d "$ac_dir" ||
1784 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1789 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1792 # A ".." for each directory in $ac_dir_suffix.
1793 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1794 case $ac_top_builddir_sub in
1795 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1796 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1799 ac_abs_top_builddir=$ac_pwd
1800 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1801 # for backward compatibility:
1802 ac_top_builddir=$ac_top_build_prefix
1805 .) # We are building in place.
1807 ac_top_srcdir=$ac_top_builddir_sub
1808 ac_abs_top_srcdir=$ac_pwd ;;
1809 [\\/]* | ?:[\\/]* ) # Absolute name.
1810 ac_srcdir=$srcdir$ac_dir_suffix;
1811 ac_top_srcdir=$srcdir
1812 ac_abs_top_srcdir=$srcdir ;;
1814 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1815 ac_top_srcdir=$ac_top_build_prefix$srcdir
1816 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1818 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1820 cd "$ac_dir" || { ac_status=$?; continue; }
1821 # Check for guested configure.
1822 if test -f "$ac_srcdir/configure.gnu"; then
1824 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1825 elif test -f "$ac_srcdir/configure"; then
1827 $SHELL "$ac_srcdir/configure" --help=recursive
1829 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1831 cd "$ac_pwd" || { ac_status=$?; break; }
1835 test -n "$ac_init_help" && exit $ac_status
1836 if $ac_init_version; then
1839 generated by GNU Autoconf 2.69
1841 Copyright (C) 2012 Free Software Foundation, Inc.
1842 This configure script is free software; the Free Software Foundation
1843 gives unlimited permission to copy, distribute and modify it.
1848 ## ------------------------ ##
1849 ## Autoconf initialization. ##
1850 ## ------------------------ ##
1852 # ac_fn_c_try_compile LINENO
1853 # --------------------------
1854 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_c_try_compile ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 rm -f conftest.$ac_objext
1859 if { { ac_try="$ac_compile"
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_compile") 2>conftest.err
1868 if test -s conftest.err; then
1869 grep -v '^
*+' conftest.err >conftest.er1
1870 cat conftest.er1 >&5
1871 mv -f conftest.er1 conftest.err
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && {
1875 test -z "$ac_c_werror_flag" ||
1876 test ! -s conftest.err
1877 } && test -s conftest.$ac_objext; then :
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's
/^
/|
/' conftest.$ac_ext >&5
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1888 } # ac_fn_c_try_compile
1890 # ac_fn_cxx_try_compile LINENO
1891 # ----------------------------
1892 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_cxx_try_compile ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext
1897 if { { ac_try="$ac_compile"
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_compile") 2>conftest.err
1906 if test -s conftest.err; then
1907 grep -v '^
*+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest.$ac_objext; then :
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's
/^
/|
/' conftest.$ac_ext >&5
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1926 } # ac_fn_cxx_try_compile
1928 # ac_fn_c_try_cpp LINENO
1929 # ----------------------
1930 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 if { { ac_try="$ac_cpp conftest.$ac_ext"
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1943 if test -s conftest.err; then
1944 grep -v '^
*+' conftest.err >conftest.er1
1945 cat conftest.er1 >&5
1946 mv -f conftest.er1 conftest.err
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } > conftest.i && {
1950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1951 test ! -s conftest.err
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's
/^
/|
/' conftest.$ac_ext >&5
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 as_fn_set_status $ac_retval
1965 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1966 # -------------------------------------------------------
1967 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968 # the include files in INCLUDES and setting the cache variable VAR
1970 ac_fn_c_check_header_mongrel ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if eval \${$3+:} false; then :
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 # Is the header compilable?
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985 $as_echo_n "checking $2 usability... " >&6; }
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 ac_header_compiler=yes
1994 ac_header_compiler=no
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998 $as_echo "$ac_header_compiler" >&6; }
2000 # Is the header present?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002 $as_echo_n "checking $2 presence... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2007 if ac_fn_c_try_cpp "$LINENO"; then :
2008 ac_header_preproc=yes
2010 ac_header_preproc=no
2012 rm -f conftest.err conftest.i conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014 $as_echo "$ac_header_preproc" >&6; }
2016 # So? What about this header?
2017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
2022 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2028 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2032 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
2034 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2042 eval "$3=\$ac_header_compiler"
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 } # ac_fn_c_check_header_mongrel
2052 # ac_fn_c_try_run LINENO
2053 # ----------------------
2054 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2055 # that executables *can* be run.
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 if { { ac_try="$ac_link"
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_link") 2>&5
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2070 { { case "(($ac_try" in
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_try") 2>&5
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; }; }; then :
2082 $as_echo "$as_me: program exited with status $ac_status" >&5
2083 $as_echo "$as_me: failed program was:" >&5
2084 sed 's
/^
/|
/' conftest.$ac_ext >&5
2086 ac_retval=$ac_status
2088 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 as_fn_set_status $ac_retval
2094 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2095 # -------------------------------------------------------
2096 # Tests whether HEADER exists and can be compiled using the include files in
2097 # INCLUDES, setting the cache variable VAR accordingly.
2098 ac_fn_c_check_header_compile ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2111 if ac_fn_c_try_compile "$LINENO"; then :
2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 } # ac_fn_c_check_header_compile
2125 # ac_fn_c_try_link LINENO
2126 # -----------------------
2127 # Try to link conftest.$ac_ext, and return whether this succeeded.
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 rm -f conftest.$ac_objext conftest$ac_exeext
2132 if { { ac_try="$ac_link"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138 $as_echo "$ac_try_echo"; } >&5
2139 (eval "$ac_link") 2>conftest.err
2141 if test -s conftest.err; then
2142 grep -v '^
*+' conftest.err >conftest.er1
2143 cat conftest.er1 >&5
2144 mv -f conftest.er1 conftest.err
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; } && {
2148 test -z "$ac_c_werror_flag" ||
2149 test ! -s conftest.err
2150 } && test -s conftest$ac_exeext && {
2151 test "$cross_compiling" = yes ||
2152 test -x conftest$ac_exeext
2156 $as_echo "$as_me: failed program was:" >&5
2157 sed 's
/^
/|
/' conftest.$ac_ext >&5
2161 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2162 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2163 # interfere with the next link command; also delete a directory that is
2164 # left behind by Apple's compiler. We
do this before executing the actions.
2165 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status
$ac_retval
2169 } # ac_fn_c_try_link
2171 # ac_fn_c_check_func LINENO FUNC VAR
2172 # ----------------------------------
2173 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2174 ac_fn_c_check_func
()
2176 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if eval \
${$3+:} false
; then :
2180 $as_echo_n "(cached) " >&6
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2186 #define $2 innocuous_$2
2188 /* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char $2 (); below.
2190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2191 <limits.h> exists even on freestanding compilers. */
2194 # include <limits.h>
2196 # include <assert.h>
2201 /* Override any GCC internal prototype to avoid an error.
2202 Use char because int might match the return type of a GCC
2203 builtin and then its argument prototype would still apply. */
2208 /* The GNU C library defines this for functions which it implements
2209 to always fail with ENOSYS. Some functions are actually named
2210 something starting with __ and the normal name is an alias. */
2211 #if defined __stub_$2 || defined __stub___$2
2223 if ac_fn_c_try_link
"$LINENO"; then :
2228 rm -f core conftest.err conftest.
$ac_objext \
2229 conftest
$ac_exeext conftest.
$ac_ext
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236 } # ac_fn_c_check_func
2238 # ac_fn_cxx_try_cpp LINENO
2239 # ------------------------
2240 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2241 ac_fn_cxx_try_cpp
()
2243 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2244 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250 $as_echo "$ac_try_echo"; } >&5
2251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2253 if test -s conftest.err; then
2254 grep -v '^ *+' conftest.err >conftest.er1
2255 cat conftest.er1 >&5
2256 mv -f conftest.er1 conftest.err
2258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259 test $ac_status = 0; } > conftest.i && {
2260 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2261 test ! -s conftest.err
2265 $as_echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 as_fn_set_status $ac_retval
2273 } # ac_fn_cxx_try_cpp
2275 # ac_fn_cxx_try_link LINENO
2276 # -------------------------
2277 # Try to link conftest.$ac_ext, and return whether this succeeded.
2278 ac_fn_cxx_try_link ()
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 rm -f conftest.$ac_objext conftest$ac_exeext
2282 if { { ac_try="$ac_link"
2284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2285 *) ac_try_echo
=$ac_try;;
2287 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2288 $as_echo "$ac_try_echo"; } >&5
2289 (eval "$ac_link") 2>conftest.err
2291 if test -s conftest.err
; then
2292 grep -v '^ *+' conftest.err
>conftest.er1
2293 cat conftest.er1
>&5
2294 mv -f conftest.er1 conftest.err
2296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2297 test $ac_status = 0; } && {
2298 test -z "$ac_cxx_werror_flag" ||
2299 test ! -s conftest.err
2300 } && test -s conftest
$ac_exeext && {
2301 test "$cross_compiling" = yes ||
2302 test -x conftest
$ac_exeext
2306 $as_echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.
$ac_ext >&5
2311 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2312 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2313 # interfere with the next link command; also delete a directory that is
2314 # left behind by Apple's compiler. We do this before executing the actions.
2315 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 as_fn_set_status
$ac_retval
2319 } # ac_fn_cxx_try_link
2321 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2322 # --------------------------------------------
2323 # Tries to find the compile-time value of EXPR in a program that includes
2324 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2326 ac_fn_c_compute_int
()
2328 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2329 if test "$cross_compiling" = yes; then
2330 # Depending upon the size, compute the lo and hi bounds.
2331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2337 static int test_array [1 - 2 * !(($2) >= 0)];
2339 return test_array [0];
2345 if ac_fn_c_try_compile
"$LINENO"; then :
2348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2354 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2356 return test_array [0];
2362 if ac_fn_c_try_compile
"$LINENO"; then :
2363 ac_hi
=$ac_mid; break
2365 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2366 if test $ac_lo -le $ac_mid; then
2370 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2381 static int test_array [1 - 2 * !(($2) < 0)];
2383 return test_array [0];
2389 if ac_fn_c_try_compile
"$LINENO"; then :
2392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2398 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2400 return test_array [0];
2406 if ac_fn_c_try_compile
"$LINENO"; then :
2407 ac_lo
=$ac_mid; break
2409 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2410 if test $ac_mid -le $ac_hi; then
2414 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2424 # Binary search between lo and hi bounds.
2425 while test "x$ac_lo" != "x$ac_hi"; do
2426 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2433 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2435 return test_array [0];
2441 if ac_fn_c_try_compile
"$LINENO"; then :
2444 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2449 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2456 static long int longval () { return $2; }
2457 static unsigned long int ulongval () { return $2; }
2464 FILE *f = fopen ("conftest.val", "w");
2469 long int i = longval ();
2472 fprintf (f, "%ld", i);
2476 unsigned long int i = ulongval ();
2479 fprintf (f, "%lu", i);
2481 /* Do not output a trailing newline, as this causes \r\n confusion
2482 on some platforms. */
2483 return ferror (f) || fclose (f) != 0;
2489 if ac_fn_c_try_run
"$LINENO"; then :
2490 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2494 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2495 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2500 as_fn_set_status
$ac_retval
2502 } # ac_fn_c_compute_int
2504 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2505 # -------------------------------------------
2506 # Tests whether TYPE exists after having included INCLUDES, setting cache
2507 # variable VAR accordingly.
2508 ac_fn_c_check_type
()
2510 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2512 $as_echo_n "checking for $2... " >&6; }
2513 if eval \
${$3+:} false
; then :
2514 $as_echo_n "(cached) " >&6
2517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2529 if ac_fn_c_try_compile
"$LINENO"; then :
2530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2542 if ac_fn_c_try_compile
"$LINENO"; then :
2547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2553 $as_echo "$ac_res" >&6; }
2554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556 } # ac_fn_c_check_type
2558 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2559 # ---------------------------------------------
2560 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2562 ac_fn_c_check_decl
()
2564 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2565 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2566 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2568 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2569 if eval \
${$3+:} false
; then :
2570 $as_echo_n "(cached) " >&6
2572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2578 #ifndef $as_decl_name
2580 (void) $as_decl_use;
2582 (void) $as_decl_name;
2590 if ac_fn_c_try_compile
"$LINENO"; then :
2595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2599 $as_echo "$ac_res" >&6; }
2600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2602 } # ac_fn_c_check_decl
2604 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2605 # ----------------------------------------------------
2606 # Tries to find if the field MEMBER exists in type AGGR, after including
2607 # INCLUDES, setting cache variable VAR accordingly.
2608 ac_fn_c_check_member
()
2610 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2612 $as_echo_n "checking for $2.$3... " >&6; }
2613 if eval \
${$4+:} false
; then :
2614 $as_echo_n "(cached) " >&6
2616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2629 if ac_fn_c_try_compile
"$LINENO"; then :
2632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2633 /* end confdefs.h. */
2639 if (sizeof ac_aggr.$3)
2645 if ac_fn_c_try_compile
"$LINENO"; then :
2650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2656 $as_echo "$ac_res" >&6; }
2657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659 } # ac_fn_c_check_member
2661 # ac_fn_cxx_check_func LINENO FUNC VAR
2662 # ------------------------------------
2663 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2664 ac_fn_cxx_check_func
()
2666 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2668 $as_echo_n "checking for $2... " >&6; }
2669 if eval \
${$3+:} false
; then :
2670 $as_echo_n "(cached) " >&6
2672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h. */
2674 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2676 #define $2 innocuous_$2
2678 /* System header to define __stub macros and hopefully few prototypes,
2679 which can conflict with char $2 (); below.
2680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2681 <limits.h> exists even on freestanding compilers. */
2684 # include <limits.h>
2686 # include <assert.h>
2691 /* Override any GCC internal prototype to avoid an error.
2692 Use char because int might match the return type of a GCC
2693 builtin and then its argument prototype would still apply. */
2698 /* The GNU C library defines this for functions which it implements
2699 to always fail with ENOSYS. Some functions are actually named
2700 something starting with __ and the normal name is an alias. */
2701 #if defined __stub_$2 || defined __stub___$2
2713 if ac_fn_cxx_try_link
"$LINENO"; then :
2718 rm -f core conftest.err conftest.
$ac_objext \
2719 conftest
$ac_exeext conftest.
$ac_ext
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2723 $as_echo "$ac_res" >&6; }
2724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2726 } # ac_fn_cxx_check_func
2727 cat >config.log
<<_ACEOF
2728 This file contains any messages produced by compilers while
2729 running configure, to aid debugging if configure makes a mistake.
2731 It was created by $as_me, which was
2732 generated by GNU Autoconf 2.69. Invocation command line was
2744 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2745 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2746 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2747 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2748 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2750 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2751 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2753 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2754 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2755 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2756 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2757 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2758 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2759 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir
=.
2768 $as_echo "PATH: $as_dir"
2784 # Keep a trace of the command line.
2785 # Strip out --no-create and --no-recursion so they do not pile up.
2786 # Strip out --silent because we don't want to record it for future runs.
2787 # Also quote any args containing shell meta-characters.
2788 # Make two passes to allow for proper duplicate-argument suppression.
2792 ac_must_keep_next
=false
2798 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2799 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2800 |
-silent |
--silent |
--silen |
--sile |
--sil)
2803 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2806 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2808 as_fn_append ac_configure_args1
" '$ac_arg'"
2809 if test $ac_must_keep_next = true
; then
2810 ac_must_keep_next
=false
# Got value, back to normal.
2813 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2814 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2815 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2816 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2817 case "$ac_configure_args0 " in
2818 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2821 -* ) ac_must_keep_next
=true
;;
2824 as_fn_append ac_configure_args
" '$ac_arg'"
2829 { ac_configure_args0
=; unset ac_configure_args0
;}
2830 { ac_configure_args1
=; unset ac_configure_args1
;}
2832 # When interrupted or exit'd, cleanup temporary files, and complete
2833 # config.log. We remove comments because anyway the quotes in there
2834 # would cause problems or look ugly.
2835 # WARNING: Use '\'' to represent an apostrophe within the trap.
2836 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2837 trap 'exit_status=$?
2838 # Save into config.log some information that might help in debugging.
2842 $as_echo "## ---------------- ##
2843 ## Cache variables. ##
2844 ## ---------------- ##"
2846 # The following way of writing the cache mishandles newlines in values,
2848 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2849 eval ac_val=\$$ac_var
2853 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2854 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2857 _ | IFS | as_nl) ;; #(
2858 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2859 *) { eval $ac_var=; unset $ac_var;} ;;
2864 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2865 *${as_nl}ac_space=\ *)
2867 "s/'\''/'\''\\\\'\'''\''/g;
2868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2878 $as_echo "## ----------------- ##
2879 ## Output variables. ##
2880 ## ----------------- ##"
2882 for ac_var in $ac_subst_vars
2884 eval ac_val=\$$ac_var
2886 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2888 $as_echo "$ac_var='\''$ac_val'\''"
2892 if test -n "$ac_subst_files"; then
2893 $as_echo "## ------------------- ##
2894 ## File substitutions. ##
2895 ## ------------------- ##"
2897 for ac_var
in $ac_subst_files
2899 eval ac_val
=\$
$ac_var
2901 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2903 $as_echo "$ac_var='\''$ac_val'\''"
2908 if test -s confdefs.h; then
2909 $as_echo "## ----------- ##
2916 test "$ac_signal" != 0 &&
2917 $as_echo "$as_me: caught signal $ac_signal"
2918 $as_echo "$as_me: exit $exit_status"
2920 rm -f core *.core core.conftest.* &&
2921 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2924 for ac_signal
in 1 2 13 15; do
2925 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2929 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2930 rm -f -r conftest
* confdefs.h
2932 $as_echo "/* confdefs.h */" > confdefs.h
2934 # Predefined preprocessor variables.
2936 cat >>confdefs.h
<<_ACEOF
2937 #define PACKAGE_NAME "$PACKAGE_NAME"
2940 cat >>confdefs.h
<<_ACEOF
2941 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2944 cat >>confdefs.h
<<_ACEOF
2945 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2948 cat >>confdefs.h
<<_ACEOF
2949 #define PACKAGE_STRING "$PACKAGE_STRING"
2952 cat >>confdefs.h
<<_ACEOF
2953 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2956 cat >>confdefs.h
<<_ACEOF
2957 #define PACKAGE_URL "$PACKAGE_URL"
2961 # Let the site file select an alternate cache file if it wants to.
2962 # Prefer an explicitly selected file to automatically selected ones.
2965 if test -n "$CONFIG_SITE"; then
2966 # We do not want a PATH search for config.site.
2967 case $CONFIG_SITE in #((
2968 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2969 */*) ac_site_file1
=$CONFIG_SITE;;
2970 *) ac_site_file1
=.
/$CONFIG_SITE;;
2972 elif test "x$prefix" != xNONE
; then
2973 ac_site_file1
=$prefix/share
/config.site
2974 ac_site_file2
=$prefix/etc
/config.site
2976 ac_site_file1
=$ac_default_prefix/share
/config.site
2977 ac_site_file2
=$ac_default_prefix/etc
/config.site
2979 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2981 test "x$ac_site_file" = xNONE
&& continue
2982 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2984 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2985 sed 's/^/| /' "$ac_site_file" >&5
2987 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 as_fn_error $?
"failed to load site script $ac_site_file
2990 See \`config.log' for more details" "$LINENO" 5; }
2994 if test -r "$cache_file"; then
2995 # Some versions of bash will fail to source /dev/null (special files
2996 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2997 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2999 $as_echo "$as_me: loading cache $cache_file" >&6;}
3001 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3002 *) .
"./$cache_file";;
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3007 $as_echo "$as_me: creating cache $cache_file" >&6;}
3011 as_fn_append ac_header_list
" stdlib.h"
3012 as_fn_append ac_header_list
" unistd.h"
3013 as_fn_append ac_header_list
" sys/param.h"
3014 # Check that the precious variables saved in the cache have kept the same
3016 ac_cache_corrupted
=false
3017 for ac_var
in $ac_precious_vars; do
3018 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3019 eval ac_new_set
=\
$ac_env_${ac_var}_set
3020 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3021 eval ac_new_val
=\
$ac_env_${ac_var}_value
3022 case $ac_old_set,$ac_new_set in
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3025 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3026 ac_cache_corrupted
=: ;;
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3029 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3030 ac_cache_corrupted
=: ;;
3033 if test "x$ac_old_val" != "x$ac_new_val"; then
3034 # differences in whitespace do not lead to failure.
3035 ac_old_val_w
=`echo x $ac_old_val`
3036 ac_new_val_w
=`echo x $ac_new_val`
3037 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3039 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3040 ac_cache_corrupted
=:
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3043 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3044 eval $ac_var=\
$ac_old_val
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3047 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3049 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3052 # Pass precious variables to config.status.
3053 if test "$ac_new_set" = set; then
3055 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3056 *) ac_arg
=$ac_var=$ac_new_val ;;
3058 case " $ac_configure_args " in
3059 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3060 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3064 if $ac_cache_corrupted; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3068 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3069 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3071 ## -------------------- ##
3072 ## Main body of script. ##
3073 ## -------------------- ##
3076 ac_cpp
='$CPP $CPPFLAGS'
3077 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3087 ac_config_headers
="$ac_config_headers config.h:config.in"
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3091 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3092 # Check whether --enable-maintainer-mode was given.
3093 if test "${enable_maintainer_mode+set}" = set; then :
3094 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3096 USE_MAINTAINER_MODE
=no
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3100 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3101 if test $USE_MAINTAINER_MODE = yes; then
3102 MAINTAINER_MODE_TRUE
=
3103 MAINTAINER_MODE_FALSE
='#'
3105 MAINTAINER_MODE_TRUE
='#'
3106 MAINTAINER_MODE_FALSE
=
3109 MAINT
=$MAINTAINER_MODE_TRUE
3114 ac_cpp
='$CPP $CPPFLAGS'
3115 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3118 if test -n "$ac_tool_prefix"; then
3119 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3120 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false
; then :
3124 $as_echo_n "(cached) " >&6
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC
="$CC" # Let the user override the test.
3129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir
=.
3134 for ac_exec_ext
in '' $ac_executable_extensions; do
3135 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3157 if test -z "$ac_cv_prog_CC"; then
3159 # Extract the first word of "gcc", so it can be a program name with args.
3160 set dummy gcc
; ac_word
=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3164 $as_echo_n "(cached) " >&6
3166 if test -n "$ac_ct_CC"; then
3167 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir
=.
3174 for ac_exec_ext
in '' $ac_executable_extensions; do
3175 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_ac_ct_CC
="gcc"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3187 if test -n "$ac_ct_CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3189 $as_echo "$ac_ct_CC" >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3195 if test "x$ac_ct_CC" = x
; then
3198 case $cross_compiling:$ac_tool_warned in
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3202 ac_tool_warned
=yes ;;
3210 if test -z "$CC"; then
3211 if test -n "$ac_tool_prefix"; then
3212 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3213 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_CC+:} false
; then :
3217 $as_echo_n "(cached) " >&6
3219 if test -n "$CC"; then
3220 ac_cv_prog_CC
="$CC" # Let the user override the test.
3222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir
=.
3227 for ac_exec_ext
in '' $ac_executable_extensions; do
3228 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 if test -n "$CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242 $as_echo "$CC" >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3251 if test -z "$CC"; then
3252 # Extract the first word of "cc", so it can be a program name with args.
3253 set dummy cc
; ac_word
=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_CC+:} false
; then :
3257 $as_echo_n "(cached) " >&6
3259 if test -n "$CC"; then
3260 ac_cv_prog_CC
="$CC" # Let the user override the test.
3263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3267 test -z "$as_dir" && as_dir
=.
3268 for ac_exec_ext
in '' $ac_executable_extensions; do
3269 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3270 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3271 ac_prog_rejected
=yes
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 if test $ac_prog_rejected = yes; then
3283 # We found a bogon in the path, so make sure we never use it.
3284 set dummy
$ac_cv_prog_CC
3286 if test $# != 0; then
3287 # We chose a different compiler from the bogus one.
3288 # However, it has the same basename, so the bogon will be chosen
3289 # first if we set CC to just the basename; use the full file name.
3291 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3307 if test -z "$CC"; then
3308 if test -n "$ac_tool_prefix"; then
3309 for ac_prog
in cl.exe
3311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3312 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_CC+:} false
; then :
3316 $as_echo_n "(cached) " >&6
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC
="$CC" # Let the user override the test.
3321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir
=.
3326 for ac_exec_ext
in '' $ac_executable_extensions; do
3327 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3348 test -n "$CC" && break
3351 if test -z "$CC"; then
3353 for ac_prog
in cl.exe
3355 # Extract the first word of "$ac_prog", so it can be a program name with args.
3356 set dummy
$ac_prog; ac_word
=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3360 $as_echo_n "(cached) " >&6
3362 if test -n "$ac_ct_CC"; then
3363 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3369 test -z "$as_dir" && as_dir
=.
3370 for ac_exec_ext
in '' $ac_executable_extensions; do
3371 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_ac_ct_CC
="$ac_prog"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3383 if test -n "$ac_ct_CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385 $as_echo "$ac_ct_CC" >&6; }
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3392 test -n "$ac_ct_CC" && break
3395 if test "x$ac_ct_CC" = x
; then
3398 case $cross_compiling:$ac_tool_warned in
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3402 ac_tool_warned
=yes ;;
3411 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $?
"no acceptable C compiler found in \$PATH
3414 See \`config.log' for more details" "$LINENO" 5; }
3416 # Provide some information about the compiler.
3417 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3420 for ac_option
in --version -v -V -qversion; do
3421 { { ac_try
="$ac_compiler $ac_option >&5"
3423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3430 if test -s conftest.err; then
3432 ... rest of stderr output deleted ...
3433 10q' conftest.err >conftest.er1
3434 cat conftest.er1 >&5
3436 rm -f conftest.er1 conftest.err
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3452 ac_clean_files_save=$ac_clean_files
3453 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3454 # Try to create an executable without -o first, disregard a.out.
3455 # It will help us diagnose broken compilers, and finding out an intuition
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3458 $as_echo_n "checking whether the C compiler works... " >&6; }
3459 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3461 # The possible output files:
3462 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3465 for ac_file in $ac_files
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3469 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3474 if { { ac_try="$ac_link_default"
3476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3477 *) ac_try_echo
=$ac_try;;
3479 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_link_default") 2>&5
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; then :
3485 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3486 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3487 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3488 # so that the user can short-circuit this test for compilers unknown to
3490 for ac_file
in $ac_files ''
3492 test -f "$ac_file" ||
continue
3494 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3497 # We found the default executable, but exeext='' is most
3501 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3503 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3505 # We set ac_cv_exeext here because the later test for it is not
3506 # safe: cross compilers may not add the suffix if given an `-o'
3507 # argument, so we may need to know it at that point already.
3508 # Even if this section looks crufty: it has the advantage of
3515 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3520 if test -z "$ac_file"; then :
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3523 $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.
$ac_ext >&5
3526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error
77 "C compiler cannot create executables
3529 See \`config.log' for more details" "$LINENO" 5; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532 $as_echo "yes" >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3535 $as_echo_n "checking for C compiler default output file name... " >&6; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3537 $as_echo "$ac_file" >&6; }
3538 ac_exeext
=$ac_cv_exeext
3540 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3541 ac_clean_files
=$ac_clean_files_save
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3543 $as_echo_n "checking for suffix of executables... " >&6; }
3544 if { { ac_try
="$ac_link"
3546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_link") 2>&5
3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }; then :
3555 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3556 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3557 # work properly (i.e., refer to `conftest.exe'), while it won't with
3559 for ac_file
in conftest.exe conftest conftest.
*; do
3560 test -f "$ac_file" ||
continue
3562 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3563 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3572 See \`config.log' for more details" "$LINENO" 5; }
3574 rm -f conftest conftest
$ac_cv_exeext
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3576 $as_echo "$ac_cv_exeext" >&6; }
3578 rm -f conftest.
$ac_ext
3579 EXEEXT
=$ac_cv_exeext
3581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3587 FILE *f = fopen ("conftest.out", "w");
3588 return ferror (f) || fclose (f) != 0;
3594 ac_clean_files
="$ac_clean_files conftest.out"
3595 # Check that the compiler produces executables we can run. If not, either
3596 # the compiler is broken, or we cross compile.
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3598 $as_echo_n "checking whether we are cross compiling... " >&6; }
3599 if test "$cross_compiling" != yes; then
3600 { { ac_try
="$ac_link"
3602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_link") 2>&5
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }
3611 if { ac_try='./conftest$ac_cv_exeext'
3612 { { case "(($ac_try" in
3613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3614 *) ac_try_echo
=$ac_try;;
3616 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_try") 2>&5
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; }; then
3624 if test "$cross_compiling" = maybe
; then
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $?
"cannot run C compiled programs.
3630 If you meant to cross compile, use \`--host'.
3631 See \`config.log' for more details" "$LINENO" 5; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3636 $as_echo "$cross_compiling" >&6; }
3638 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3639 ac_clean_files
=$ac_clean_files_save
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3641 $as_echo_n "checking for suffix of object files... " >&6; }
3642 if ${ac_cv_objext+:} false
; then :
3643 $as_echo_n "(cached) " >&6
3645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3656 rm -f conftest.o conftest.obj
3657 if { { ac_try
="$ac_compile"
3659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_compile") 2>&5
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }; then :
3668 for ac_file in conftest.o conftest.obj conftest.*; do
3669 test -f "$ac_file" || continue;
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3672 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3677 $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3683 See \
`config.log' for more details" "$LINENO" 5; }
3685 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3688 $as_echo "$ac_cv_objext" >&6; }
3689 OBJEXT=$ac_cv_objext
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3692 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3693 if ${ac_cv_c_compiler_gnu+:} false; then :
3694 $as_echo_n "(cached) " >&6
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3710 if ac_fn_c_try_compile "$LINENO"; then :
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3720 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3721 if test $ac_compiler_gnu = yes; then
3726 ac_test_CFLAGS=${CFLAGS+set}
3727 ac_save_CFLAGS=$CFLAGS
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3729 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3730 if ${ac_cv_prog_cc_g+:} false; then :
3731 $as_echo_n "(cached) " >&6
3733 ac_save_c_werror_flag=$ac_c_werror_flag
3734 ac_c_werror_flag=yes
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3748 if ac_fn_c_try_compile "$LINENO"; then :
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3763 if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_c_werror_flag=$ac_save_c_werror_flag
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3779 if ac_fn_c_try_compile "$LINENO"; then :
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3790 $as_echo "$ac_cv_prog_cc_g" >&6; }
3791 if test "$ac_test_CFLAGS" = set; then
3792 CFLAGS=$ac_save_CFLAGS
3793 elif test $ac_cv_prog_cc_g = yes; then
3794 if test "$GCC" = yes; then
3800 if test "$GCC" = yes; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3807 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3808 if ${ac_cv_prog_cc_c89+:} false; then :
3809 $as_echo_n "(cached) " >&6
3811 ac_cv_prog_cc_c89=no
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3818 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3819 struct buf { int x; };
3820 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3821 static char *e (p, i)
3827 static char *f (char * (*g) (char **, int), char **p, ...)
3832 s = g (p, va_arg (v,int));
3837 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3838 function prototypes and stuff, but not '\xHH' hex character constants.
3839 These don't provoke an error unfortunately, instead are silently treated
3840 as 'x'. The following induces an error, until -std is added to get
3841 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3842 array size at least. It's necessary to write '\x00'==0 to get something
3843 that's true only with -std. */
3844 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3846 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3847 inside strings and character constants. */
3849 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3851 int test (int i, double x);
3852 struct s1 {int (*f) (int a);};
3853 struct s2 {int (*f) (double a);};
3854 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3860 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3865 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3866 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3868 CC="$ac_save_CC $ac_arg"
3869 if ac_fn_c_try_compile "$LINENO"; then :
3870 ac_cv_prog_cc_c89=$ac_arg
3872 rm -f core conftest.err conftest.$ac_objext
3873 test "x$ac_cv_prog_cc_c89" != "xno" && break
3875 rm -f conftest.$ac_ext
3880 case "x$ac_cv_prog_cc_c89" in
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3883 $as_echo "none needed" >&6; } ;;
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3886 $as_echo "unsupported" >&6; } ;;
3888 CC="$CC $ac_cv_prog_cc_c89"
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3890 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3892 if test "x$ac_cv_prog_cc_c89" != xno; then :
3897 ac_cpp='$CPP $CPPFLAGS'
3898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903 ac_cpp='$CXXCPP $CPPFLAGS'
3904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3907 if test -z "$CXX"; then
3908 if test -n "$CCC"; then
3911 if test -n "$ac_tool_prefix"; then
3912 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 $as_echo_n "checking for $ac_word... " >&6; }
3918 if ${ac_cv_prog_CXX+:} false; then :
3919 $as_echo_n "(cached) " >&6
3921 if test -n "$CXX"; then
3922 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 if test -n "$CXX"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3944 $as_echo "$CXX" >&6; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3951 test -n "$CXX" && break
3954 if test -z "$CXX"; then
3956 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3958 # Extract the first word of "$ac_prog", so it can be a program name with args.
3959 set dummy $ac_prog; ac_word=$2
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3963 $as_echo_n "(cached) " >&6
3965 if test -n "$ac_ct_CXX"; then
3966 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_ac_ct_CXX="$ac_prog"
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3986 if test -n "$ac_ct_CXX"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3988 $as_echo "$ac_ct_CXX" >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3995 test -n "$ac_ct_CXX" && break
3998 if test "x$ac_ct_CXX" = x; then
4001 case $cross_compiling:$ac_tool_warned in
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005 ac_tool_warned=yes ;;
4013 # Provide some information about the compiler.
4014 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4017 for ac_option in --version -v -V -qversion; do
4018 { { ac_try="$ac_compiler $ac_option >&5"
4020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4021 *) ac_try_echo
=$ac_try;;
4023 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 $as_echo "$ac_try_echo"; } >&5
4025 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4027 if test -s conftest.err
; then
4029 ... rest of stderr output deleted ...
4030 10q' conftest.err
>conftest.er1
4031 cat conftest.er1
>&5
4033 rm -f conftest.er1 conftest.err
4034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035 test $ac_status = 0; }
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4039 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4040 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4041 $as_echo_n "(cached) " >&6
4043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4057 if ac_fn_cxx_try_compile
"$LINENO"; then :
4062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4063 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4067 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4068 if test $ac_compiler_gnu = yes; then
4073 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4074 ac_save_CXXFLAGS
=$CXXFLAGS
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4076 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4077 if ${ac_cv_prog_cxx_g+:} false
; then :
4078 $as_echo_n "(cached) " >&6
4080 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4081 ac_cxx_werror_flag
=yes
4084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4095 if ac_fn_cxx_try_compile
"$LINENO"; then :
4096 ac_cv_prog_cxx_g
=yes
4099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4110 if ac_fn_cxx_try_compile
"$LINENO"; then :
4113 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4126 if ac_fn_cxx_try_compile
"$LINENO"; then :
4127 ac_cv_prog_cxx_g
=yes
4129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4134 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4137 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4138 if test "$ac_test_CXXFLAGS" = set; then
4139 CXXFLAGS
=$ac_save_CXXFLAGS
4140 elif test $ac_cv_prog_cxx_g = yes; then
4141 if test "$GXX" = yes; then
4147 if test "$GXX" = yes; then
4154 ac_cpp
='$CPP $CPPFLAGS'
4155 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4162 ac_cpp
='$CPP $CPPFLAGS'
4163 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4167 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4168 # On Suns, sometimes $CPP names a directory.
4169 if test -n "$CPP" && test -d "$CPP"; then
4172 if test -z "$CPP"; then
4173 if ${ac_cv_prog_CPP+:} false
; then :
4174 $as_echo_n "(cached) " >&6
4176 # Double quotes because CPP needs to be expanded
4177 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4180 for ac_c_preproc_warn_flag
in '' yes
4182 # Use a header file that comes with gcc, so configuring glibc
4183 # with a fresh cross-compiler works.
4184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4185 # <limits.h> exists even on freestanding compilers.
4186 # On the NeXT, cc -E runs the code through the compiler's parser,
4187 # not just through cpp. "Syntax error" is here to catch this case.
4188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4191 # include <limits.h>
4193 # include <assert.h>
4197 if ac_fn_c_try_cpp
"$LINENO"; then :
4200 # Broken: fails on valid input.
4203 rm -f conftest.err conftest.i conftest.
$ac_ext
4205 # OK, works on sane cases. Now check whether nonexistent headers
4206 # can be detected and how.
4207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <ac_nonexistent.h>
4211 if ac_fn_c_try_cpp
"$LINENO"; then :
4212 # Broken: success on invalid input.
4215 # Passes both tests.
4219 rm -f conftest.err conftest.i conftest.
$ac_ext
4222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223 rm -f conftest.i conftest.err conftest.
$ac_ext
4224 if $ac_preproc_ok; then :
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4237 $as_echo "$CPP" >&6; }
4239 for ac_c_preproc_warn_flag
in '' yes
4241 # Use a header file that comes with gcc, so configuring glibc
4242 # with a fresh cross-compiler works.
4243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244 # <limits.h> exists even on freestanding compilers.
4245 # On the NeXT, cc -E runs the code through the compiler's parser,
4246 # not just through cpp. "Syntax error" is here to catch this case.
4247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4250 # include <limits.h>
4252 # include <assert.h>
4256 if ac_fn_c_try_cpp
"$LINENO"; then :
4259 # Broken: fails on valid input.
4262 rm -f conftest.err conftest.i conftest.
$ac_ext
4264 # OK, works on sane cases. Now check whether nonexistent headers
4265 # can be detected and how.
4266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268 #include <ac_nonexistent.h>
4270 if ac_fn_c_try_cpp
"$LINENO"; then :
4271 # Broken: success on invalid input.
4274 # Passes both tests.
4278 rm -f conftest.err conftest.i conftest.
$ac_ext
4281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282 rm -f conftest.i conftest.err conftest.
$ac_ext
4283 if $ac_preproc_ok; then :
4286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4288 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4289 See \`config.log' for more details" "$LINENO" 5; }
4293 ac_cpp
='$CPP $CPPFLAGS'
4294 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4300 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4301 if ${ac_cv_path_GREP+:} false
; then :
4302 $as_echo_n "(cached) " >&6
4304 if test -z "$GREP"; then
4305 ac_path_GREP_found
=false
4306 # Loop through the user's path and test for each of PROGNAME-LIST
4307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4308 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4311 test -z "$as_dir" && as_dir
=.
4312 for ac_prog
in grep ggrep
; do
4313 for ac_exec_ext
in '' $ac_executable_extensions; do
4314 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4315 as_fn_executable_p
"$ac_path_GREP" ||
continue
4316 # Check for GNU ac_path_GREP and select it if it is found.
4317 # Check for GNU $ac_path_GREP
4318 case `"$ac_path_GREP" --version 2>&1` in
4320 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4323 $as_echo_n 0123456789 >"conftest.in"
4326 cat "conftest.in" "conftest.in" >"conftest.tmp"
4327 mv "conftest.tmp" "conftest.in"
4328 cp "conftest.in" "conftest.nl"
4329 $as_echo 'GREP' >> "conftest.nl"
4330 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4331 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4332 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4333 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4334 # Best one so far, save it but keep looking for a better one
4335 ac_cv_path_GREP
="$ac_path_GREP"
4336 ac_path_GREP_max
=$ac_count
4338 # 10*(2^10) chars as input seems more than enough
4339 test $ac_count -gt 10 && break
4341 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4344 $ac_path_GREP_found && break 3
4349 if test -z "$ac_cv_path_GREP"; then
4350 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4353 ac_cv_path_GREP
=$GREP
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4358 $as_echo "$ac_cv_path_GREP" >&6; }
4359 GREP
="$ac_cv_path_GREP"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4363 $as_echo_n "checking for egrep... " >&6; }
4364 if ${ac_cv_path_EGREP+:} false
; then :
4365 $as_echo_n "(cached) " >&6
4367 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4368 then ac_cv_path_EGREP
="$GREP -E"
4370 if test -z "$EGREP"; then
4371 ac_path_EGREP_found
=false
4372 # Loop through the user's path and test for each of PROGNAME-LIST
4373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4374 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4377 test -z "$as_dir" && as_dir
=.
4378 for ac_prog
in egrep; do
4379 for ac_exec_ext
in '' $ac_executable_extensions; do
4380 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4381 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4382 # Check for GNU ac_path_EGREP and select it if it is found.
4383 # Check for GNU $ac_path_EGREP
4384 case `"$ac_path_EGREP" --version 2>&1` in
4386 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4389 $as_echo_n 0123456789 >"conftest.in"
4392 cat "conftest.in" "conftest.in" >"conftest.tmp"
4393 mv "conftest.tmp" "conftest.in"
4394 cp "conftest.in" "conftest.nl"
4395 $as_echo 'EGREP' >> "conftest.nl"
4396 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4397 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4398 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4399 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4400 # Best one so far, save it but keep looking for a better one
4401 ac_cv_path_EGREP
="$ac_path_EGREP"
4402 ac_path_EGREP_max
=$ac_count
4404 # 10*(2^10) chars as input seems more than enough
4405 test $ac_count -gt 10 && break
4407 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4410 $ac_path_EGREP_found && break 3
4415 if test -z "$ac_cv_path_EGREP"; then
4416 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4419 ac_cv_path_EGREP
=$EGREP
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4425 $as_echo "$ac_cv_path_EGREP" >&6; }
4426 EGREP
="$ac_cv_path_EGREP"
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4430 $as_echo_n "checking for ANSI C header files... " >&6; }
4431 if ${ac_cv_header_stdc+:} false
; then :
4432 $as_echo_n "(cached) " >&6
4434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4449 if ac_fn_c_try_compile
"$LINENO"; then :
4450 ac_cv_header_stdc
=yes
4452 ac_cv_header_stdc
=no
4454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4456 if test $ac_cv_header_stdc = yes; then
4457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4464 $EGREP "memchr" >/dev
/null
2>&1; then :
4467 ac_cv_header_stdc
=no
4473 if test $ac_cv_header_stdc = yes; then
4474 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4481 $EGREP "free" >/dev
/null
2>&1; then :
4484 ac_cv_header_stdc
=no
4490 if test $ac_cv_header_stdc = yes; then
4491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4492 if test "$cross_compiling" = yes; then :
4495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4499 #if ((' ' & 0x0FF) == 0x020)
4500 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4501 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4503 # define ISLOWER(c) \
4504 (('a' <= (c) && (c) <= 'i') \
4505 || ('j' <= (c) && (c) <= 'r') \
4506 || ('s' <= (c) && (c) <= 'z'))
4507 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4510 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4515 for (i = 0; i < 256; i++)
4516 if (XOR (islower (i), ISLOWER (i))
4517 || toupper (i) != TOUPPER (i))
4522 if ac_fn_c_try_run
"$LINENO"; then :
4525 ac_cv_header_stdc
=no
4527 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4528 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4534 $as_echo "$ac_cv_header_stdc" >&6; }
4535 if test $ac_cv_header_stdc = yes; then
4537 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4542 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4543 inttypes.h stdint.h unistd.h
4545 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4546 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4548 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4549 cat >>confdefs.h
<<_ACEOF
4550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4559 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4560 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4567 if test "$MINIX" = yes; then
4569 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4572 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4575 $as_echo "#define _MINIX 1" >>confdefs.h
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4581 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4582 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4583 $as_echo_n "(cached) " >&6
4585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4588 # define __EXTENSIONS__ 1
4589 $ac_includes_default
4598 if ac_fn_c_try_compile
"$LINENO"; then :
4599 ac_cv_safe_to_define___extensions__
=yes
4601 ac_cv_safe_to_define___extensions__
=no
4603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4606 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4607 test $ac_cv_safe_to_define___extensions__ = yes &&
4608 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4610 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4612 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4614 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4616 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4620 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4621 if test -f "$ac_dir/install-sh"; then
4623 ac_install_sh
="$ac_aux_dir/install-sh -c"
4625 elif test -f "$ac_dir/install.sh"; then
4627 ac_install_sh
="$ac_aux_dir/install.sh -c"
4629 elif test -f "$ac_dir/shtool"; then
4631 ac_install_sh
="$ac_aux_dir/shtool install -c"
4635 if test -z "$ac_aux_dir"; then
4636 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4639 # These three variables are undocumented and unsupported,
4640 # and are intended to be withdrawn in a future Autoconf release.
4641 # They can cause serious problems if a builder's source tree is in a directory
4642 # whose full name contains unusual characters.
4643 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4644 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4645 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4648 # Make sure we can run config.sub.
4649 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4650 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4653 $as_echo_n "checking build system type... " >&6; }
4654 if ${ac_cv_build+:} false
; then :
4655 $as_echo_n "(cached) " >&6
4657 ac_build_alias
=$build_alias
4658 test "x$ac_build_alias" = x
&&
4659 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4660 test "x$ac_build_alias" = x
&&
4661 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4662 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4663 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4667 $as_echo "$ac_cv_build" >&6; }
4668 case $ac_cv_build in
4670 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4673 ac_save_IFS
=$IFS; IFS
='-'
4679 # Remember, the first character of IFS is used to create $*,
4680 # except with old shells:
4683 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4687 $as_echo_n "checking host system type... " >&6; }
4688 if ${ac_cv_host+:} false
; then :
4689 $as_echo_n "(cached) " >&6
4691 if test "x$host_alias" = x
; then
4692 ac_cv_host
=$ac_cv_build
4694 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4695 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4700 $as_echo "$ac_cv_host" >&6; }
4703 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4706 ac_save_IFS
=$IFS; IFS
='-'
4712 # Remember, the first character of IFS is used to create $*,
4713 # except with old shells:
4716 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4720 $as_echo_n "checking target system type... " >&6; }
4721 if ${ac_cv_target+:} false
; then :
4722 $as_echo_n "(cached) " >&6
4724 if test "x$target_alias" = x
; then
4725 ac_cv_target
=$ac_cv_host
4727 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4728 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4733 $as_echo "$ac_cv_target" >&6; }
4734 case $ac_cv_target in
4736 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4738 target
=$ac_cv_target
4739 ac_save_IFS
=$IFS; IFS
='-'
4745 # Remember, the first character of IFS is used to create $*,
4746 # except with old shells:
4749 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4752 # The aliases save the names the user supplied, while $host etc.
4753 # will get canonicalized.
4754 test -n "$target_alias" &&
4755 test "$program_prefix$program_suffix$program_transform_name" = \
4757 program_prefix
=${target_alias}-
4759 # The tests for host and target for $enable_largefile require
4764 # As the $enable_largefile decision depends on --enable-plugins we must set it
4765 # even in directories otherwise not depending on the $plugins option.
4769 for ac_header
in dlfcn.h
4771 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4773 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4774 cat >>confdefs.h
<<_ACEOF
4775 #define HAVE_DLFCN_H 1
4782 for ac_header
in windows.h
4784 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4786 if test "x$ac_cv_header_windows_h" = xyes
; then :
4787 cat >>confdefs.h
<<_ACEOF
4788 #define HAVE_WINDOWS_H 1
4796 # Check whether --enable-plugins was given.
4797 if test "${enable_plugins+set}" = set; then :
4798 enableval
=$enable_plugins; case "${enableval}" in
4801 if test "$maybe_plugins" != "yes" ; then
4802 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4806 plugins
=$maybe_plugins
4810 if test "$plugins" = "yes"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4812 $as_echo_n "checking for library containing dlsym... " >&6; }
4813 if ${ac_cv_search_dlsym+:} false
; then :
4814 $as_echo_n "(cached) " >&6
4816 ac_func_search_save_LIBS
=$LIBS
4817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4820 /* Override any GCC internal prototype to avoid an error.
4821 Use char because int might match the return type of a GCC
4822 builtin and then its argument prototype would still apply. */
4835 for ac_lib
in '' dl
; do
4836 if test -z "$ac_lib"; then
4837 ac_res
="none required"
4840 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4842 if ac_fn_c_try_link
"$LINENO"; then :
4843 ac_cv_search_dlsym
=$ac_res
4845 rm -f core conftest.err conftest.
$ac_objext \
4847 if ${ac_cv_search_dlsym+:} false
; then :
4851 if ${ac_cv_search_dlsym+:} false
; then :
4854 ac_cv_search_dlsym
=no
4857 LIBS
=$ac_func_search_save_LIBS
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4860 $as_echo "$ac_cv_search_dlsym" >&6; }
4861 ac_res
=$ac_cv_search_dlsym
4862 if test "$ac_res" != no
; then :
4863 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4871 sparc-
*-solaris*|i?
86-*-solaris*)
4872 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4873 # were mutually exclusive until Solaris 11.3. Without procfs support,
4874 # the bfd/ elf module cannot provide certain routines such as
4875 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4876 # explicitly requested large-file support through the
4877 # --enable-largefile switch, disable large-file support in favor of
4880 # Check if <sys/procfs.h> is incompatible with large-file support.
4881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #define _FILE_OFFSET_BITS 64
4884 #define _STRUCTURED_PROC 1
4885 #include <sys/procfs.h>
4894 if ac_fn_c_try_compile
"$LINENO"; then :
4895 acx_cv_procfs_lfs
=yes
4897 acx_cv_procfs_lfs
=no
4899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4901 # Forcefully disable large-file support only if necessary, gdb is in
4903 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4904 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4905 : ${enable_largefile="no"}
4906 if test "$plugins" = yes; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4908 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4909 $as_echo "$as_me: WARNING:
4910 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4915 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4916 # benefit of g++ 9+ which predefines it on Solaris.
4917 if test "$enable_largefile" = no
; then
4918 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4924 # Check whether --enable-largefile was given.
4925 if test "${enable_largefile+set}" = set; then :
4926 enableval
=$enable_largefile;
4929 if test "$enable_largefile" != no
; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4932 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4933 if ${ac_cv_sys_largefile_CC+:} false
; then :
4934 $as_echo_n "(cached) " >&6
4936 ac_cv_sys_largefile_CC
=no
4937 if test "$GCC" != yes; then
4940 # IRIX 6.2 and later do not support large files by default,
4941 # so use the C compiler's -n32 option if that helps.
4942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 #include <sys/types.h>
4945 /* Check that off_t can represent 2**63 - 1 correctly.
4946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4947 since some C++ compilers masquerading as C compilers
4948 incorrectly reject 9223372036854775807. */
4949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4951 && LARGE_OFF_T % 2147483647 == 1)
4961 if ac_fn_c_try_compile
"$LINENO"; then :
4964 rm -f core conftest.err conftest.
$ac_objext
4966 if ac_fn_c_try_compile
"$LINENO"; then :
4967 ac_cv_sys_largefile_CC
=' -n32'; break
4969 rm -f core conftest.err conftest.
$ac_objext
4973 rm -f conftest.
$ac_ext
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4977 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4978 if test "$ac_cv_sys_largefile_CC" != no
; then
4979 CC
=$CC$ac_cv_sys_largefile_CC
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4983 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4984 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4985 $as_echo_n "(cached) " >&6
4988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 #include <sys/types.h>
4991 /* Check that off_t can represent 2**63 - 1 correctly.
4992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4993 since some C++ compilers masquerading as C compilers
4994 incorrectly reject 9223372036854775807. */
4995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4997 && LARGE_OFF_T % 2147483647 == 1)
5007 if ac_fn_c_try_compile
"$LINENO"; then :
5008 ac_cv_sys_file_offset_bits
=no
; break
5010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 #define _FILE_OFFSET_BITS 64
5014 #include <sys/types.h>
5015 /* Check that off_t can represent 2**63 - 1 correctly.
5016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5017 since some C++ compilers masquerading as C compilers
5018 incorrectly reject 9223372036854775807. */
5019 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5021 && LARGE_OFF_T % 2147483647 == 1)
5031 if ac_fn_c_try_compile
"$LINENO"; then :
5032 ac_cv_sys_file_offset_bits
=64; break
5034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5035 ac_cv_sys_file_offset_bits
=unknown
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5040 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5041 case $ac_cv_sys_file_offset_bits in #(
5044 cat >>confdefs.h
<<_ACEOF
5045 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5050 if test $ac_cv_sys_file_offset_bits = unknown
; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5052 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5053 if ${ac_cv_sys_large_files+:} false
; then :
5054 $as_echo_n "(cached) " >&6
5057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059 #include <sys/types.h>
5060 /* Check that off_t can represent 2**63 - 1 correctly.
5061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5062 since some C++ compilers masquerading as C compilers
5063 incorrectly reject 9223372036854775807. */
5064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5066 && LARGE_OFF_T % 2147483647 == 1)
5076 if ac_fn_c_try_compile
"$LINENO"; then :
5077 ac_cv_sys_large_files
=no
; break
5079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5082 #define _LARGE_FILES 1
5083 #include <sys/types.h>
5084 /* Check that off_t can represent 2**63 - 1 correctly.
5085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5086 since some C++ compilers masquerading as C compilers
5087 incorrectly reject 9223372036854775807. */
5088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5090 && LARGE_OFF_T % 2147483647 == 1)
5100 if ac_fn_c_try_compile
"$LINENO"; then :
5101 ac_cv_sys_large_files
=1; break
5103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5104 ac_cv_sys_large_files
=unknown
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5109 $as_echo "$ac_cv_sys_large_files" >&6; }
5110 case $ac_cv_sys_large_files in #(
5113 cat >>confdefs.h
<<_ACEOF
5114 #define _LARGE_FILES $ac_cv_sys_large_files
5125 # Expand $ac_aux_dir to an absolute path.
5126 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5128 if test x
"${install_sh+set}" != xset
; then
5131 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5133 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5137 # Installed binaries are usually stripped using 'strip' when the user
5138 # run "make install-strip". However 'strip' might not be the right
5139 # tool to use in cross-compilation environments, therefore Automake
5140 # will honor the 'STRIP' environment variable to overrule this program.
5141 if test "$cross_compiling" != no
; then
5142 if test -n "$ac_tool_prefix"; then
5143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5144 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_STRIP+:} false
; then :
5148 $as_echo_n "(cached) " >&6
5150 if test -n "$STRIP"; then
5151 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5157 test -z "$as_dir" && as_dir
=.
5158 for ac_exec_ext
in '' $ac_executable_extensions; do
5159 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 STRIP
=$ac_cv_prog_STRIP
5171 if test -n "$STRIP"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5173 $as_echo "$STRIP" >&6; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5181 if test -z "$ac_cv_prog_STRIP"; then
5183 # Extract the first word of "strip", so it can be a program name with args.
5184 set dummy strip
; ac_word
=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5188 $as_echo_n "(cached) " >&6
5190 if test -n "$ac_ct_STRIP"; then
5191 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir
=.
5198 for ac_exec_ext
in '' $ac_executable_extensions; do
5199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_STRIP
="strip"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5211 if test -n "$ac_ct_STRIP"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5213 $as_echo "$ac_ct_STRIP" >&6; }
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5219 if test "x$ac_ct_STRIP" = x
; then
5222 case $cross_compiling:$ac_tool_warned in
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned
=yes ;;
5231 STRIP
="$ac_cv_prog_STRIP"
5235 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5239 for ac_dir
in ..
"$srcdir"/..
; do
5240 if test -f "$ac_dir/install-sh"; then
5242 ac_install_sh
="$ac_aux_dir/install-sh -c"
5244 elif test -f "$ac_dir/install.sh"; then
5246 ac_install_sh
="$ac_aux_dir/install.sh -c"
5248 elif test -f "$ac_dir/shtool"; then
5250 ac_install_sh
="$ac_aux_dir/shtool install -c"
5254 if test -z "$ac_aux_dir"; then
5255 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5258 # These three variables are undocumented and unsupported,
5259 # and are intended to be withdrawn in a future Autoconf release.
5260 # They can cause serious problems if a builder's source tree is in a directory
5261 # whose full name contains unusual characters.
5262 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5263 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5264 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5268 # Set build, build_cpu, build_vendor and build_os.
5271 # Set host, host_cpu, host_vendor, and host_os.
5274 # Set target, target_cpu, target_vendor, and target_os.
5277 case ${build_alias} in
5278 "") build_noncanonical
=${build} ;;
5279 *) build_noncanonical
=${build_alias} ;;
5282 case ${host_alias} in
5283 "") host_noncanonical
=${build_noncanonical} ;;
5284 *) host_noncanonical
=${host_alias} ;;
5287 case ${target_alias} in
5288 "") target_noncanonical
=${host_noncanonical} ;;
5289 *) target_noncanonical
=${target_alias} ;;
5295 test "$program_prefix" != NONE
&&
5296 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5297 # Use a double $ so make ignores it.
5298 test "$program_suffix" != NONE
&&
5299 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5300 # Double any \ or $.
5301 # By default was `s,x,x', remove it if useless.
5302 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5303 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5306 # We require libtool to link with the in-tree libtool libraries
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5311 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5316 macro_version
='2.2.7a'
5317 macro_revision
='1.3134'
5331 ltmain
="$ac_aux_dir/ltmain.sh"
5333 # Backslashify metacharacters that are still active within
5334 # double-quoted strings.
5335 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5337 # Same as above, but do not quote variable references.
5338 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5340 # Sed substitution to delay expansion of an escaped shell variable in a
5341 # double_quote_subst'ed string.
5342 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5344 # Sed substitution to delay expansion of an escaped single quote.
5345 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5347 # Sed substitution to avoid accidental globbing in evaled expressions
5348 no_glob_subst
='s/\*/\\\*/g'
5350 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5351 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5352 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5355 $as_echo_n "checking how to print strings... " >&6; }
5356 # Test print first, because it will be a builtin if present.
5357 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5358 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5360 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5363 # Use this function as a fallback that always works.
5364 func_fallback_echo ()
5366 eval 'cat <<_LTECHO_EOF
5370 ECHO='func_fallback_echo
'
5373 # func_echo_all arg...
5374 # Invoke $ECHO with all args, space-separated.
5381 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5382 $as_echo "printf" >&6; } ;;
5383 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5384 $as_echo "print -r" >&6; } ;;
5385 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5386 $as_echo "cat" >&6; } ;;
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5403 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5404 if ${ac_cv_path_SED+:} false; then :
5405 $as_echo_n "(cached) " >&6
5407 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5408 for ac_i in 1 2 3 4 5 6 7; do
5409 ac_script="$ac_script$as_nl$ac_script"
5411 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5412 { ac_script=; unset ac_script;}
5413 if test -z "$SED"; then
5414 ac_path_SED_found=false
5415 # Loop through the user's path and
test for each of PROGNAME-LIST
5416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5420 test -z "$as_dir" && as_dir
=.
5421 for ac_prog
in sed gsed
; do
5422 for ac_exec_ext
in '' $ac_executable_extensions; do
5423 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5424 as_fn_executable_p
"$ac_path_SED" ||
continue
5425 # Check for GNU ac_path_SED and select it if it is found.
5426 # Check for GNU $ac_path_SED
5427 case `"$ac_path_SED" --version 2>&1` in
5429 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5432 $as_echo_n 0123456789 >"conftest.in"
5435 cat "conftest.in" "conftest.in" >"conftest.tmp"
5436 mv "conftest.tmp" "conftest.in"
5437 cp "conftest.in" "conftest.nl"
5438 $as_echo '' >> "conftest.nl"
5439 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5440 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5441 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5442 if test $ac_count -gt ${ac_path_SED_max-0}; then
5443 # Best one so far, save it but keep looking for a better one
5444 ac_cv_path_SED
="$ac_path_SED"
5445 ac_path_SED_max
=$ac_count
5447 # 10*(2^10) chars as input seems more than enough
5448 test $ac_count -gt 10 && break
5450 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5453 $ac_path_SED_found && break 3
5458 if test -z "$ac_cv_path_SED"; then
5459 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5467 $as_echo "$ac_cv_path_SED" >&6; }
5468 SED
="$ac_cv_path_SED"
5471 test -z "$SED" && SED
=sed
5472 Xsed
="$SED -e 1s/^X//"
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5485 $as_echo_n "checking for fgrep... " >&6; }
5486 if ${ac_cv_path_FGREP+:} false
; then :
5487 $as_echo_n "(cached) " >&6
5489 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5490 then ac_cv_path_FGREP
="$GREP -F"
5492 if test -z "$FGREP"; then
5493 ac_path_FGREP_found
=false
5494 # Loop through the user's path and test for each of PROGNAME-LIST
5495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5496 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5499 test -z "$as_dir" && as_dir
=.
5500 for ac_prog
in fgrep
; do
5501 for ac_exec_ext
in '' $ac_executable_extensions; do
5502 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5503 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5504 # Check for GNU ac_path_FGREP and select it if it is found.
5505 # Check for GNU $ac_path_FGREP
5506 case `"$ac_path_FGREP" --version 2>&1` in
5508 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5511 $as_echo_n 0123456789 >"conftest.in"
5514 cat "conftest.in" "conftest.in" >"conftest.tmp"
5515 mv "conftest.tmp" "conftest.in"
5516 cp "conftest.in" "conftest.nl"
5517 $as_echo 'FGREP' >> "conftest.nl"
5518 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5519 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5520 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5521 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5522 # Best one so far, save it but keep looking for a better one
5523 ac_cv_path_FGREP
="$ac_path_FGREP"
5524 ac_path_FGREP_max
=$ac_count
5526 # 10*(2^10) chars as input seems more than enough
5527 test $ac_count -gt 10 && break
5529 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5532 $ac_path_FGREP_found && break 3
5537 if test -z "$ac_cv_path_FGREP"; then
5538 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5541 ac_cv_path_FGREP
=$FGREP
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5547 $as_echo "$ac_cv_path_FGREP" >&6; }
5548 FGREP
="$ac_cv_path_FGREP"
5551 test -z "$GREP" && GREP
=grep
5571 # Check whether --with-gnu-ld was given.
5572 if test "${with_gnu_ld+set}" = set; then :
5573 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5579 if test "$GCC" = yes; then
5580 # Check if gcc -print-prog-name=ld gives a path.
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5582 $as_echo_n "checking for ld used by $CC... " >&6; }
5585 # gcc leaves a trailing carriage return which upsets mingw
5586 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5588 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5591 # Accept absolute paths.
5593 re_direlt
='/[^/][^/]*/\.\./'
5594 # Canonicalize the pathname of ld
5595 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5596 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5597 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5599 test -z "$LD" && LD
="$ac_prog"
5602 # If it fails, then pretend we aren't using GCC.
5606 # If it is relative, then search for the first ld in PATH.
5610 elif test "$with_gnu_ld" = yes; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5612 $as_echo_n "checking for GNU ld... " >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5615 $as_echo_n "checking for non-GNU ld... " >&6; }
5617 if ${lt_cv_path_LD+:} false
; then :
5618 $as_echo_n "(cached) " >&6
5620 if test -z "$LD"; then
5621 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5622 for ac_dir
in $PATH; do
5624 test -z "$ac_dir" && ac_dir
=.
5625 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5626 lt_cv_path_LD
="$ac_dir/$ac_prog"
5627 # Check to see if the program is GNU ld. I'd rather use --version,
5628 # but apparently some variants of GNU ld only accept -v.
5629 # Break only if it was the GNU/non-GNU ld that we prefer.
5630 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5631 *GNU
* |
*'with BFD'*)
5632 test "$with_gnu_ld" != no
&& break
5635 test "$with_gnu_ld" != yes && break
5642 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5647 if test -n "$LD"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5649 $as_echo "$LD" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5654 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5656 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5657 if ${lt_cv_prog_gnu_ld+:} false
; then :
5658 $as_echo_n "(cached) " >&6
5660 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5661 case `$LD -v 2>&1 </dev/null` in
5662 *GNU
* |
*'with BFD'*)
5663 lt_cv_prog_gnu_ld
=yes
5666 lt_cv_prog_gnu_ld
=no
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5671 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5672 with_gnu_ld
=$lt_cv_prog_gnu_ld
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5683 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5684 if ${lt_cv_path_NM+:} false
; then :
5685 $as_echo_n "(cached) " >&6
5687 if test -n "$NM"; then
5688 # Let the user override the nm to test.
5689 lt_nm_to_check
="$NM"
5691 lt_nm_to_check
="${ac_tool_prefix}nm"
5692 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5693 lt_nm_to_check
="$lt_nm_to_check nm"
5696 for lt_tmp_nm
in "$lt_nm_to_check"; do
5697 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5698 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5700 test -z "$ac_dir" && ac_dir
=.
5701 # Strip out any user-provided options from the nm to test twice,
5702 # the first time to test to see if nm (rather than its options) has
5703 # an explicit path, the second time to yield a file which can be
5705 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5706 case "$tmp_nm_path" in
5707 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
5708 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
5710 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5711 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
5712 # Check to see if the nm accepts a BSD-compat flag.
5713 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5714 # nm: unknown option "B" ignored
5715 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5716 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
5720 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5722 lt_cv_path_NM
="$tmp_nm -p"
5726 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5727 continue # so that we can try to find one that supports BSD flags
5736 : ${lt_cv_path_NM=no}
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5739 $as_echo "$lt_cv_path_NM" >&6; }
5740 if test "$lt_cv_path_NM" != "no"; then
5743 # Didn't find any BSD compatible name lister, look for dumpbin.
5744 if test -n "$DUMPBIN"; then :
5745 # Let the user override the test.
5747 if test -n "$ac_tool_prefix"; then
5748 for ac_prog
in dumpbin
"link -dump"
5750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5751 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5755 $as_echo_n "(cached) " >&6
5757 if test -n "$DUMPBIN"; then
5758 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5764 test -z "$as_dir" && as_dir
=.
5765 for ac_exec_ext
in '' $ac_executable_extensions; do
5766 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 DUMPBIN
=$ac_cv_prog_DUMPBIN
5778 if test -n "$DUMPBIN"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5780 $as_echo "$DUMPBIN" >&6; }
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5787 test -n "$DUMPBIN" && break
5790 if test -z "$DUMPBIN"; then
5791 ac_ct_DUMPBIN
=$DUMPBIN
5792 for ac_prog
in dumpbin
"link -dump"
5794 # Extract the first word of "$ac_prog", so it can be a program name with args.
5795 set dummy
$ac_prog; ac_word
=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5799 $as_echo_n "(cached) " >&6
5801 if test -n "$ac_ct_DUMPBIN"; then
5802 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir
=.
5809 for ac_exec_ext
in '' $ac_executable_extensions; do
5810 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5822 if test -n "$ac_ct_DUMPBIN"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5824 $as_echo "$ac_ct_DUMPBIN" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5831 test -n "$ac_ct_DUMPBIN" && break
5834 if test "x$ac_ct_DUMPBIN" = x
; then
5837 case $cross_compiling:$ac_tool_warned in
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5841 ac_tool_warned
=yes ;;
5843 DUMPBIN
=$ac_ct_DUMPBIN
5847 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5849 DUMPBIN
="$DUMPBIN -symbols"
5857 if test "$DUMPBIN" != ":"; then
5861 test -z "$NM" && NM
=nm
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5869 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5870 if ${lt_cv_nm_interface+:} false
; then :
5871 $as_echo_n "(cached) " >&6
5873 lt_cv_nm_interface
="BSD nm"
5874 echo "int some_variable = 0;" > conftest.
$ac_ext
5875 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5876 (eval "$ac_compile" 2>conftest.err
)
5877 cat conftest.err
>&5
5878 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5879 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5880 cat conftest.err
>&5
5881 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5882 cat conftest.out
>&5
5883 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5884 lt_cv_nm_interface
="MS dumpbin"
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5889 $as_echo "$lt_cv_nm_interface" >&6; }
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5892 $as_echo_n "checking whether ln -s works... " >&6; }
5894 if test "$LN_S" = "ln -s"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5896 $as_echo "yes" >&6; }
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5899 $as_echo "no, using $LN_S" >&6; }
5902 # find the maximum length of command line arguments
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5904 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5905 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5906 $as_echo_n "(cached) " >&6
5913 # On DJGPP, this test can blow up pretty badly due to problems in libc
5914 # (any single argument exceeding 2000 bytes causes a buffer overrun
5915 # during glob expansion). Even if it were fixed, the result of this
5916 # check would be larger than it should be.
5917 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5921 # Under GNU Hurd, this test is not required because there is
5922 # no limit to the length of command line arguments.
5923 # Libtool will interpret -1 as no limit whatsoever
5924 lt_cv_sys_max_cmd_len
=-1;
5927 cygwin
* | mingw
* | cegcc
*)
5928 # On Win9x/ME, this test blows up -- it succeeds, but takes
5929 # about 5 minutes as the teststring grows exponentially.
5930 # Worse, since 9x/ME are not pre-emptively multitasking,
5931 # you end up with a "frozen" computer, even though with patience
5932 # the test eventually succeeds (with a max line length of 256k).
5933 # Instead, let's just punt: use the minimum linelength reported by
5934 # all of the supported platforms: 8192 (on NT/2K/XP).
5935 lt_cv_sys_max_cmd_len
=8192;
5939 # On MiNT this can take a long time and run out of memory.
5940 lt_cv_sys_max_cmd_len
=8192;
5944 # On AmigaOS with pdksh, this test takes hours, literally.
5945 # So we just punt and use a minimum line length of 8192.
5946 lt_cv_sys_max_cmd_len
=8192;
5949 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5950 # This has been around since 386BSD, at least. Likely further.
5951 if test -x /sbin
/sysctl
; then
5952 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5953 elif test -x /usr
/sbin
/sysctl
; then
5954 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5956 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5958 # And add a safety zone
5959 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5960 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5964 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5965 lt_cv_sys_max_cmd_len
=196608
5969 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5970 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5971 # nice to cause kernel panics so lets avoid the loop below.
5972 # First set a reasonable default.
5973 lt_cv_sys_max_cmd_len
=16384
5975 if test -x /sbin
/sysconfig
; then
5976 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5977 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5982 lt_cv_sys_max_cmd_len
=102400
5984 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5985 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5986 if test -n "$kargmax"; then
5987 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5989 lt_cv_sys_max_cmd_len
=32768
5993 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5994 if test -n "$lt_cv_sys_max_cmd_len"; then
5995 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5996 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5998 # Make teststring a little bigger before we do anything with it.
5999 # a 1K string should be a reasonable start.
6000 for i
in 1 2 3 4 5 6 7 8 ; do
6001 teststring
=$teststring$teststring
6003 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6004 # If test is not a shell built-in, we'll probably end up computing a
6005 # maximum length that is only half of the actual maximum length, but
6007 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6008 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6009 test $i != 17 # 1/2 MB should be enough
6012 teststring
=$teststring$teststring
6014 # Only check the string length outside the loop.
6015 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6017 # Add a significant safety factor because C++ compilers can tack on
6018 # massive amounts of additional arguments before passing them to the
6019 # linker. It appears as though 1/2 is a usable value.
6020 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6027 if test -n $lt_cv_sys_max_cmd_len ; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6029 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6032 $as_echo "none" >&6; }
6034 max_cmd_len
=$lt_cv_sys_max_cmd_len
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6046 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6047 # Try some XSI features
6050 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6052 && eval 'test $(( 1 + 1 )) -eq 2 \
6053 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6056 $as_echo "$xsi_shell" >&6; }
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6060 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6062 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6064 && lt_shell_append=yes
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6066 $as_echo "$lt_shell_append" >&6; }
6069 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6079 # test EBCDIC or ASCII
6080 case `echo X|tr X '\101'` in
6081 A) # ASCII based system
6082 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6083 lt_SP2NL='tr \040 \012'
6084 lt_NL2SP='tr \015\012 \040\040'
6086 *) # EBCDIC based system
6087 lt_SP2NL='tr \100 \n'
6088 lt_NL2SP='tr \r\n \100\100'
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6101 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6102 if ${lt_cv_ld_reload_flag+:} false; then :
6103 $as_echo_n "(cached
) " >&6
6105 lt_cv_ld_reload_flag='-r'
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6108 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6109 reload_flag=$lt_cv_ld_reload_flag
6110 case $reload_flag in
6112 *) reload_flag=" $reload_flag" ;;
6114 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6117 if test "$GCC" = yes; then
6118 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6120 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6133 if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6137 $as_echo_n "checking
for $ac_word...
" >&6; }
6138 if ${ac_cv_prog_OBJDUMP+:} false; then :
6139 $as_echo_n "(cached
) " >&6
6141 if test -n "$OBJDUMP"; then
6142 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6152 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6161 OBJDUMP=$ac_cv_prog_OBJDUMP
6162 if test -n "$OBJDUMP"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6164 $as_echo "$OBJDUMP" >&6; }
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6167 $as_echo "no
" >&6; }
6172 if test -z "$ac_cv_prog_OBJDUMP"; then
6173 ac_ct_OBJDUMP=$OBJDUMP
6174 # Extract the first word of "objdump
", so it can be a program name with args.
6175 set dummy objdump; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6177 $as_echo_n "checking
for $ac_word...
" >&6; }
6178 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6179 $as_echo_n "(cached
) " >&6
6181 if test -n "$ac_ct_OBJDUMP"; then
6182 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6201 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6202 if test -n "$ac_ct_OBJDUMP"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6204 $as_echo "$ac_ct_OBJDUMP" >&6; }
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6207 $as_echo "no
" >&6; }
6210 if test "x
$ac_ct_OBJDUMP" = x; then
6213 case $cross_compiling:$ac_tool_warned in
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6216 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6217 ac_tool_warned=yes ;;
6219 OBJDUMP=$ac_ct_OBJDUMP
6222 OBJDUMP="$ac_cv_prog_OBJDUMP"
6225 test -z "$OBJDUMP" && OBJDUMP=objdump
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6236 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6237 if ${lt_cv_deplibs_check_method+:} false; then :
6238 $as_echo_n "(cached
) " >&6
6240 lt_cv_file_magic_cmd='$MAGIC_CMD'
6241 lt_cv_file_magic_test_file=
6242 lt_cv_deplibs_check_method='unknown'
6243 # Need to set the preceding variable on all platforms that support
6244 # interlibrary dependencies.
6245 # 'none' -- dependencies not supported.
6246 # `unknown' -- same as none, but documents that we really don't know.
6247 # 'pass_all' -- all dependencies passed with no checks.
6248 # 'test_compile' -- check by making test program.
6249 # 'file_magic [[regex]]' -- check by looking for files in library path
6250 # which responds to the $file_magic_cmd with a given extended regex.
6251 # If you have `file' or equivalent on your system and you're not sure
6252 # whether `pass_all' will *always* work, you probably want this one.
6256 lt_cv_deplibs_check_method=pass_all
6260 lt_cv_deplibs_check_method=pass_all
6264 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6265 lt_cv_file_magic_cmd='/usr/bin/file -L'
6266 lt_cv_file_magic_test_file=/shlib/libc.so
6270 # func_win32_libid is a shell function defined in ltmain.sh
6271 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6272 lt_cv_file_magic_cmd='func_win32_libid'
6276 # Base MSYS/MinGW do not provide the 'file' command needed by
6277 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6278 # unless we find 'file', for example because we are cross-compiling.
6279 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6280 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6282 lt_cv_file_magic_cmd='func_win32_libid'
6284 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6285 lt_cv_file_magic_cmd='$OBJDUMP -f'
6290 # use the weaker test based on 'objdump'. See mingw*.
6291 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6292 lt_cv_file_magic_cmd='$OBJDUMP -f'
6295 darwin* | rhapsody*)
6296 lt_cv_deplibs_check_method=pass_all
6299 freebsd* | dragonfly*)
6300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6303 # Not sure whether the presence of OpenBSD here was a mistake.
6304 # Let's accept both of them until this is cleared up.
6305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6306 lt_cv_file_magic_cmd=/usr/bin/file
6307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6311 lt_cv_deplibs_check_method=pass_all
6316 lt_cv_deplibs_check_method=pass_all
6320 lt_cv_deplibs_check_method=pass_all
6323 hpux10.20* | hpux11*)
6324 lt_cv_file_magic_cmd=/usr/bin/file
6327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6328 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6331 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]'
6332 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6336 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6342 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6346 irix5* | irix6* | nonstopux*)
6348 *-32|*"-32 ") libmagic=32-bit;;
6349 *-n32|*"-n32 ") libmagic=N32;;
6350 *-64|*"-64 ") libmagic=64-bit;;
6351 *) libmagic=never-match;;
6353 lt_cv_deplibs_check_method=pass_all
6356 # This must be Linux ELF.
6357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6358 lt_cv_deplibs_check_method=pass_all
6362 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6371 lt_cv_file_magic_cmd=/usr/bin/file
6372 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6376 lt_cv_deplibs_check_method=pass_all
6380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6387 osf3* | osf4* | osf5*)
6388 lt_cv_deplibs_check_method=pass_all
6392 lt_cv_deplibs_check_method=pass_all
6396 lt_cv_deplibs_check_method=pass_all
6399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6400 lt_cv_deplibs_check_method=pass_all
6404 case $host_vendor in
6406 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]'
6407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6410 lt_cv_deplibs_check_method=pass_all
6413 lt_cv_file_magic_cmd='/bin/file'
6414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6417 lt_cv_file_magic_cmd='/bin/file'
6418 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6419 lt_cv_file_magic_test_file=/lib/libc.so
6422 lt_cv_deplibs_check_method=pass_all
6425 lt_cv_deplibs_check_method=pass_all
6431 lt_cv_deplibs_check_method=pass_all
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6437 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6438 file_magic_cmd=$lt_cv_file_magic_cmd
6439 deplibs_check_method=$lt_cv_deplibs_check_method
6440 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6454 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
6455 for plugin in $plugin_names; do
6456 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6457 if test x$plugin_so = x$plugin; then
6458 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6460 if test x$plugin_so != x$plugin; then
6461 plugin_option="--plugin $plugin_so"
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}ar; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6470 $as_echo_n "checking
for $ac_word...
" >&6; }
6471 if ${ac_cv_prog_AR+:} false; then :
6472 $as_echo_n "(cached
) " >&6
6474 if test -n "$AR"; then
6475 ac_cv_prog_AR="$AR" # Let the user override the test.
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_AR="${ac_tool_prefix}ar"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6495 if test -n "$AR"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6497 $as_echo "$AR" >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6500 $as_echo "no
" >&6; }
6505 if test -z "$ac_cv_prog_AR"; then
6507 # Extract the first word of "ar", so it can be a program name with args.
6508 set dummy ar; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6510 $as_echo_n "checking
for $ac_word...
" >&6; }
6511 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6512 $as_echo_n "(cached
) " >&6
6514 if test -n "$ac_ct_AR"; then
6515 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_ac_ct_AR="ar"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6534 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6535 if test -n "$ac_ct_AR"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6537 $as_echo "$ac_ct_AR" >&6; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6540 $as_echo "no
" >&6; }
6543 if test "x
$ac_ct_AR" = x; then
6546 case $cross_compiling:$ac_tool_warned in
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6549 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6550 ac_tool_warned=yes ;;
6558 test -z "$AR" && AR=ar
6559 if test -n "$plugin_option"; then
6560 if $AR --help 2>&1 | grep -q "\
--plugin"; then
6562 $AR $plugin_option rc conftest.a conftest.c
6563 if test "$?
" != 0; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
6565 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
6567 AR="$AR $plugin_option"
6572 test -z "$AR_FLAGS" && AR_FLAGS=cru
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}strip; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6588 $as_echo_n "checking
for $ac_word...
" >&6; }
6589 if ${ac_cv_prog_STRIP+:} false; then :
6590 $as_echo_n "(cached
) " >&6
6592 if test -n "$STRIP"; then
6593 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6612 STRIP=$ac_cv_prog_STRIP
6613 if test -n "$STRIP"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6615 $as_echo "$STRIP" >&6; }
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6618 $as_echo "no
" >&6; }
6623 if test -z "$ac_cv_prog_STRIP"; then
6625 # Extract the first word of "strip
", so it can be a program name with args.
6626 set dummy strip; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6628 $as_echo_n "checking
for $ac_word...
" >&6; }
6629 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6630 $as_echo_n "(cached
) " >&6
6632 if test -n "$ac_ct_STRIP"; then
6633 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_ac_ct_STRIP="strip
"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6652 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6653 if test -n "$ac_ct_STRIP"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6655 $as_echo "$ac_ct_STRIP" >&6; }
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6658 $as_echo "no
" >&6; }
6661 if test "x
$ac_ct_STRIP" = x; then
6664 case $cross_compiling:$ac_tool_warned in
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6667 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6668 ac_tool_warned=yes ;;
6673 STRIP="$ac_cv_prog_STRIP"
6676 test -z "$STRIP" && STRIP=:
6683 if test -n "$ac_tool_prefix"; then
6684 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6685 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6687 $as_echo_n "checking
for $ac_word...
" >&6; }
6688 if ${ac_cv_prog_RANLIB+:} false; then :
6689 $as_echo_n "(cached
) " >&6
6691 if test -n "$RANLIB"; then
6692 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6702 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6711 RANLIB=$ac_cv_prog_RANLIB
6712 if test -n "$RANLIB"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6714 $as_echo "$RANLIB" >&6; }
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6717 $as_echo "no
" >&6; }
6722 if test -z "$ac_cv_prog_RANLIB"; then
6723 ac_ct_RANLIB=$RANLIB
6724 # Extract the first word of "ranlib
", so it can be a program name with args.
6725 set dummy ranlib; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6727 $as_echo_n "checking
for $ac_word...
" >&6; }
6728 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6729 $as_echo_n "(cached
) " >&6
6731 if test -n "$ac_ct_RANLIB"; then
6732 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6751 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6752 if test -n "$ac_ct_RANLIB"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6754 $as_echo "$ac_ct_RANLIB" >&6; }
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6757 $as_echo "no
" >&6; }
6760 if test "x
$ac_ct_RANLIB" = x; then
6763 case $cross_compiling:$ac_tool_warned in
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6766 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6767 ac_tool_warned=yes ;;
6769 RANLIB=$ac_ct_RANLIB
6772 RANLIB="$ac_cv_prog_RANLIB"
6775 test -z "$RANLIB" && RANLIB=:
6776 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6777 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
6778 RANLIB="$RANLIB $plugin_option"
6787 # Determine commands to create old-style static archives.
6788 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6789 old_postinstall_cmds='chmod 644 $oldlib'
6790 old_postuninstall_cmds=
6792 if test -n "$RANLIB"; then
6795 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6798 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6801 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6806 lock_old_archive_extraction=yes ;;
6808 lock_old_archive_extraction=no ;;
6831 for ac_prog in gawk mawk nawk awk
6833 # Extract the first word of "$ac_prog", so it can be a program name with args.
6834 set dummy $ac_prog; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6836 $as_echo_n "checking
for $ac_word...
" >&6; }
6837 if ${ac_cv_prog_AWK+:} false; then :
6838 $as_echo_n "(cached
) " >&6
6840 if test -n "$AWK"; then
6841 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850 ac_cv_prog_AWK="$ac_prog"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6861 if test -n "$AWK"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AWK" >&5
6863 $as_echo "$AWK" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6866 $as_echo "no
" >&6; }
6870 test -n "$AWK" && break
6891 # If no C compiler was specified, use CC.
6894 # If no C compiler flags were specified, use CFLAGS.
6895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6897 # Allow CC to be a program name with arguments.
6901 # Check for command to grab the raw symbol name followed by C symbol from nm.
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6903 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6904 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6905 $as_echo_n "(cached
) " >&6
6908 # These are sane defaults that work on at least a few old systems.
6909 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6911 # Character class describing NM global symbol codes.
6912 symcode='[BCDEGRST]'
6914 # Regexp to match symbols that can be accessed directly from C.
6915 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6917 # Define system-specific variables.
6922 cygwin* | mingw* | pw32* | cegcc*)
6923 symcode='[ABCDGISTW]'
6926 if test "$host_cpu" = ia64; then
6927 symcode='[ABCDEGRST]'
6931 symcode='[BCDEGRST]'
6934 symcode='[BCDEGQRST]'
6945 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6953 # If we're using GNU nm, then use its standard symbol codes.
6954 case `$NM -V 2>&1` in
6955 *GNU* | *'with BFD'*)
6956 symcode='[ABCDGIRSTW]' ;;
6959 # Transform an extracted symbol line into a proper C declaration.
6960 # Some systems (esp. on ia64) link data and code symbols differently,
6961 # so use this general approach.
6962 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6964 # Transform an extracted symbol line into symbol name and symbol address
6965 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6966 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'"
6968 # Handle CRLF in mingw tool chain
6972 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6976 # Try without a prefix underscore, then with it.
6977 for ac_symprfx in "" "_
"; do
6979 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6980 symxfrm="\\1 $ac_symprfx\\2 \\2"
6982 # Write the raw and C identifiers.
6983 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6984 # Fake it for dumpbin and say T for any non-static function
6985 # and D for any global variable.
6986 # Also find C++ and __fastcall symbols from MSVC++,
6987 # which start with @ or ?.
6988 lt_cv_sys_global_symbol_pipe="$AWK '"\
6989 " {last_section=section; section=\$ 3};"\
6990 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6991 " \$ 0!~/External *\|/{next};"\
6992 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6993 " {if(hide[section]) next};"\
6994 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6995 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6996 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6997 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6998 " ' prfx
=^
$ac_symprfx"
7000 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7003 # Check to see that the pipe works correctly.
7007 cat > conftest.$ac_ext <<_LT_EOF
7012 void nm_test_func(void);
7013 void nm_test_func(void){}
7017 int main(){nm_test_var='a';nm_test_func();return(0);}
7020 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7021 (eval $ac_compile) 2>&5
7023 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7024 test $ac_status = 0; }; then
7025 # Now try to grab the symbols.
7027 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7028 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7030 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7031 test $ac_status = 0; } && test -s "$nlist"; then
7032 # Try sorting and uniquifying the output.
7033 if sort "$nlist" | uniq > "$nlist"T; then
7034 mv -f "$nlist"T "$nlist"
7039 # Make sure that we snagged all the symbols we need.
7040 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7041 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7042 cat <<_LT_EOF > conftest.$ac_ext
7048 # Now generate the symbol file.
7049 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7051 cat <<_LT_EOF >> conftest.$ac_ext
7053 /* The mapping between symbol names and symbols. */
7058 lt__PROGRAM__LTX_preloaded_symbols[] =
7060 { "@PROGRAM@
", (void *) 0 },
7062 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7063 cat <<\_LT_EOF >> conftest.$ac_ext
7067 /* This works around a problem in FreeBSD linker */
7068 #ifdef FREEBSD_WORKAROUND
7069 static const void *lt_preloaded_setup() {
7070 return lt__PROGRAM__LTX_preloaded_symbols;
7078 # Now try linking the two files.
7079 mv conftest.$ac_objext conftstm.$ac_objext
7080 lt_save_LIBS="$LIBS"
7081 lt_save_CFLAGS="$CFLAGS"
7082 LIBS="conftstm.
$ac_objext"
7083 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7084 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7085 (eval $ac_link) 2>&5
7087 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7088 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7091 LIBS="$lt_save_LIBS"
7092 CFLAGS="$lt_save_CFLAGS"
7094 echo "cannot
find nm_test_func
in $nlist" >&5
7097 echo "cannot
find nm_test_var
in $nlist" >&5
7100 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7103 echo "$progname: failed program was
:" >&5
7104 cat conftest.$ac_ext >&5
7106 rm -rf conftest* conftst*
7108 # Do not use the global_symbol_pipe unless it works.
7109 if test "$pipe_works" = yes; then
7112 lt_cv_sys_global_symbol_pipe=
7118 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7119 lt_cv_sys_global_symbol_to_cdecl=
7121 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7123 $as_echo "failed
" >&6; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7126 $as_echo "ok
" >&6; }
7150 # Check whether --enable-libtool-lock was given.
7151 if test "${enable_libtool_lock+set}" = set; then :
7152 enableval=$enable_libtool_lock;
7155 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7157 # Some flags need to be propagated to the compiler or linker for good
7161 # Find out which ABI we are using.
7162 echo 'int i;' > conftest.$ac_ext
7163 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7164 (eval $ac_compile) 2>&5
7166 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7167 test $ac_status = 0; }; then
7168 case `/usr/bin/file conftest.$ac_objext` in
7180 # Find out which ABI we are using.
7181 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7182 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7183 (eval $ac_compile) 2>&5
7185 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7186 test $ac_status = 0; }; then
7187 if test "$lt_cv_prog_gnu_ld" = yes; then
7188 case `/usr/bin/file conftest.$ac_objext` in
7190 LD="${LD-ld} -melf32bsmip"
7193 LD="${LD-ld} -melf32bmipn32"
7196 LD="${LD-ld} -melf64bmip"
7200 case `/usr/bin/file conftest.$ac_objext` in
7216 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7217 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7218 # Find out which ABI we are using.
7219 echo 'int i;' > conftest.$ac_ext
7220 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7221 (eval $ac_compile) 2>&5
7223 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7224 test $ac_status = 0; }; then
7225 case `/usr/bin/file conftest.o` in
7228 x86_64-*kfreebsd*-gnu)
7229 LD="${LD-ld} -m elf_i386_fbsd
"
7232 case `/usr/bin/file conftest.o` in
7234 LD="${LD-ld} -m elf32_x86_64
"
7237 LD="${LD-ld} -m elf_i386
"
7241 powerpc64le-*linux*)
7242 LD="${LD-ld} -m elf32lppclinux
"
7245 LD="${LD-ld} -m elf32ppclinux
"
7248 LD="${LD-ld} -m elf_s390
"
7251 LD="${LD-ld} -m elf32_sparc
"
7257 x86_64-*kfreebsd*-gnu)
7258 LD="${LD-ld} -m elf_x86_64_fbsd
"
7261 LD="${LD-ld} -m elf_x86_64
"
7264 LD="${LD-ld} -m elf64lppc
"
7267 LD="${LD-ld} -m elf64ppc
"
7269 s390*-*linux*|s390*-*tpf*)
7270 LD="${LD-ld} -m elf64_s390
"
7273 LD="${LD-ld} -m elf64_sparc
"
7283 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7284 SAVE_CFLAGS="$CFLAGS"
7285 CFLAGS="$CFLAGS -belf"
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7287 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7288 if ${lt_cv_cc_needs_belf+:} false; then :
7289 $as_echo_n "(cached
) " >&6
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7308 if ac_fn_c_try_link "$LINENO"; then :
7309 lt_cv_cc_needs_belf=yes
7311 lt_cv_cc_needs_belf=no
7313 rm -f core conftest.err conftest.$ac_objext \
7314 conftest$ac_exeext conftest.$ac_ext
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
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7323 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7324 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7325 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7326 CFLAGS="$SAVE_CFLAGS"
7330 # Find out which ABI we are using.
7331 echo 'int i;' > conftest.$ac_ext
7332 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7333 (eval $ac_compile) 2>&5
7335 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7336 test $ac_status = 0; }; then
7337 case `/usr/bin/file conftest.o` in
7339 case $lt_cv_prog_gnu_ld in
7340 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7342 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7354 need_locks="$enable_libtool_lock"
7358 rhapsody* | darwin*)
7359 if test -n "$ac_tool_prefix"; then
7360 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7361 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7363 $as_echo_n "checking
for $ac_word...
" >&6; }
7364 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7365 $as_echo_n "(cached
) " >&6
7367 if test -n "$DSYMUTIL"; then
7368 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7387 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7388 if test -n "$DSYMUTIL"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7390 $as_echo "$DSYMUTIL" >&6; }
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7393 $as_echo "no
" >&6; }
7398 if test -z "$ac_cv_prog_DSYMUTIL"; then
7399 ac_ct_DSYMUTIL=$DSYMUTIL
7400 # Extract the first word of "dsymutil
", so it can be a program name with args.
7401 set dummy dsymutil; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7403 $as_echo_n "checking
for $ac_word...
" >&6; }
7404 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7405 $as_echo_n "(cached
) " >&6
7407 if test -n "$ac_ct_DSYMUTIL"; then
7408 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7417 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7418 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7427 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7428 if test -n "$ac_ct_DSYMUTIL"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7430 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7433 $as_echo "no
" >&6; }
7436 if test "x
$ac_ct_DSYMUTIL" = x; then
7439 case $cross_compiling:$ac_tool_warned in
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7442 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7443 ac_tool_warned=yes ;;
7445 DSYMUTIL=$ac_ct_DSYMUTIL
7448 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7451 if test -n "$ac_tool_prefix"; then
7452 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7453 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7455 $as_echo_n "checking
for $ac_word...
" >&6; }
7456 if ${ac_cv_prog_NMEDIT+:} false; then :
7457 $as_echo_n "(cached
) " >&6
7459 if test -n "$NMEDIT"; then
7460 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7469 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7470 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7479 NMEDIT=$ac_cv_prog_NMEDIT
7480 if test -n "$NMEDIT"; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7482 $as_echo "$NMEDIT" >&6; }
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7485 $as_echo "no
" >&6; }
7490 if test -z "$ac_cv_prog_NMEDIT"; then
7491 ac_ct_NMEDIT=$NMEDIT
7492 # Extract the first word of "nmedit
", so it can be a program name with args.
7493 set dummy nmedit; ac_word=$2
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7495 $as_echo_n "checking
for $ac_word...
" >&6; }
7496 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7497 $as_echo_n "(cached
) " >&6
7499 if test -n "$ac_ct_NMEDIT"; then
7500 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7510 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7519 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7520 if test -n "$ac_ct_NMEDIT"; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7522 $as_echo "$ac_ct_NMEDIT" >&6; }
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7525 $as_echo "no
" >&6; }
7528 if test "x
$ac_ct_NMEDIT" = x; then
7531 case $cross_compiling:$ac_tool_warned in
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7534 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7535 ac_tool_warned=yes ;;
7537 NMEDIT=$ac_ct_NMEDIT
7540 NMEDIT="$ac_cv_prog_NMEDIT"
7543 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7547 $as_echo_n "checking
for $ac_word...
" >&6; }
7548 if ${ac_cv_prog_LIPO+:} false; then :
7549 $as_echo_n "(cached
) " >&6
7551 if test -n "$LIPO"; then
7552 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7571 LIPO=$ac_cv_prog_LIPO
7572 if test -n "$LIPO"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7574 $as_echo "$LIPO" >&6; }
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7577 $as_echo "no
" >&6; }
7582 if test -z "$ac_cv_prog_LIPO"; then
7584 # Extract the first word of "lipo
", so it can be a program name with args.
7585 set dummy lipo; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7587 $as_echo_n "checking
for $ac_word...
" >&6; }
7588 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7589 $as_echo_n "(cached
) " >&6
7591 if test -n "$ac_ct_LIPO"; then
7592 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_ac_ct_LIPO="lipo
"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7611 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7612 if test -n "$ac_ct_LIPO"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7614 $as_echo "$ac_ct_LIPO" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7617 $as_echo "no
" >&6; }
7620 if test "x
$ac_ct_LIPO" = x; then
7623 case $cross_compiling:$ac_tool_warned in
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7626 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7627 ac_tool_warned=yes ;;
7632 LIPO="$ac_cv_prog_LIPO"
7635 if test -n "$ac_tool_prefix"; then
7636 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7637 set dummy ${ac_tool_prefix}otool; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7639 $as_echo_n "checking
for $ac_word...
" >&6; }
7640 if ${ac_cv_prog_OTOOL+:} false; then :
7641 $as_echo_n "(cached
) " >&6
7643 if test -n "$OTOOL"; then
7644 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7663 OTOOL=$ac_cv_prog_OTOOL
7664 if test -n "$OTOOL"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7666 $as_echo "$OTOOL" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7669 $as_echo "no
" >&6; }
7674 if test -z "$ac_cv_prog_OTOOL"; then
7676 # Extract the first word of "otool
", so it can be a program name with args.
7677 set dummy otool; ac_word=$2
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7679 $as_echo_n "checking
for $ac_word...
" >&6; }
7680 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7681 $as_echo_n "(cached
) " >&6
7683 if test -n "$ac_ct_OTOOL"; then
7684 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693 ac_cv_prog_ac_ct_OTOOL="otool
"
7694 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7703 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7704 if test -n "$ac_ct_OTOOL"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7706 $as_echo "$ac_ct_OTOOL" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7709 $as_echo "no
" >&6; }
7712 if test "x
$ac_ct_OTOOL" = x; then
7715 case $cross_compiling:$ac_tool_warned in
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7718 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7719 ac_tool_warned=yes ;;
7724 OTOOL="$ac_cv_prog_OTOOL"
7727 if test -n "$ac_tool_prefix"; then
7728 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7729 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7731 $as_echo_n "checking
for $ac_word...
" >&6; }
7732 if ${ac_cv_prog_OTOOL64+:} false; then :
7733 $as_echo_n "(cached
) " >&6
7735 if test -n "$OTOOL64"; then
7736 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7755 OTOOL64=$ac_cv_prog_OTOOL64
7756 if test -n "$OTOOL64"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7758 $as_echo "$OTOOL64" >&6; }
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7761 $as_echo "no
" >&6; }
7766 if test -z "$ac_cv_prog_OTOOL64"; then
7767 ac_ct_OTOOL64=$OTOOL64
7768 # Extract the first word of "otool64
", so it can be a program name with args.
7769 set dummy otool64; ac_word=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7771 $as_echo_n "checking
for $ac_word...
" >&6; }
7772 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7773 $as_echo_n "(cached
) " >&6
7775 if test -n "$ac_ct_OTOOL64"; then
7776 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7795 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7796 if test -n "$ac_ct_OTOOL64"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7798 $as_echo "$ac_ct_OTOOL64" >&6; }
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7801 $as_echo "no
" >&6; }
7804 if test "x
$ac_ct_OTOOL64" = x; then
7807 case $cross_compiling:$ac_tool_warned in
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7810 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7811 ac_tool_warned=yes ;;
7813 OTOOL64=$ac_ct_OTOOL64
7816 OTOOL64="$ac_cv_prog_OTOOL64"
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7846 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7847 if ${lt_cv_apple_cc_single_mod+:} false; then :
7848 $as_echo_n "(cached
) " >&6
7850 lt_cv_apple_cc_single_mod=no
7851 if test -z "${LT_MULTI_MODULE}"; then
7852 # By default we will add the -single_module flag. You can override
7853 # by either setting the environment variable LT_MULTI_MODULE
7854 # non-empty at configure time, or by adding -multi_module to the
7856 rm -rf libconftest.dylib*
7857 echo "int foo
(void
){return 1;}" > conftest.c
7858 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7859 -dynamiclib -Wl,-single_module conftest.c
" >&5
7860 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7861 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7863 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7864 lt_cv_apple_cc_single_mod=yes
7866 cat conftest.err >&5
7868 rm -rf libconftest.dylib*
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7873 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7875 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7876 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7877 $as_echo_n "(cached
) " >&6
7879 lt_cv_ld_exported_symbols_list=no
7880 save_LDFLAGS=$LDFLAGS
7881 echo "_main
" > conftest.sym
7882 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7894 if ac_fn_c_try_link "$LINENO"; then :
7895 lt_cv_ld_exported_symbols_list=yes
7897 lt_cv_ld_exported_symbols_list=no
7899 rm -f core conftest.err conftest.$ac_objext \
7900 conftest$ac_exeext conftest.$ac_ext
7901 LDFLAGS="$save_LDFLAGS"
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7905 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7907 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7908 if ${lt_cv_ld_force_load+:} false; then :
7909 $as_echo_n "(cached
) " >&6
7911 lt_cv_ld_force_load=no
7912 cat > conftest.c << _LT_EOF
7913 int forced_loaded() { return 2;}
7915 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7916 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7917 echo "$AR cru libconftest.a conftest.o
" >&5
7918 $AR cru libconftest.a conftest.o 2>&5
7919 cat > conftest.c << _LT_EOF
7920 int main() { return 0;}
7922 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7923 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7925 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7926 lt_cv_ld_force_load=yes
7928 cat conftest.err >&5
7930 rm -f conftest.err libconftest.a conftest conftest.c
7931 rm -rf conftest.dSYM
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7935 $as_echo "$lt_cv_ld_force_load" >&6; }
7937 rhapsody* | darwin1.[012])
7938 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7940 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7941 darwin*) # darwin 5.x on
7942 # if running on 10.5 or later, the deployment target defaults
7943 # to the OS version, if on x86, and 10.4, the deployment
7944 # target defaults to 10.4. Don't you love it?
7945 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7946 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7947 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7949 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7951 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7955 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7956 _lt_dar_single_mod='$single_module'
7958 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7959 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7961 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7963 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7964 _lt_dsymutil='~$DSYMUTIL $lib || :'
7971 for ac_header in dlfcn.h
7973 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
7975 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
7976 cat >>confdefs.h <<_ACEOF
7977 #define HAVE_DLFCN_H 1
7999 # Check whether --enable-shared was given.
8000 if test "${enable_shared+set}" = set; then :
8001 enableval=$enable_shared; p=${PACKAGE-default}
8003 yes) enable_shared=yes ;;
8004 no) enable_shared=no ;;
8007 # Look at the argument we got. We use all the common list separators.
8008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8009 for pkg in $enableval; do
8011 if test "X
$pkg" = "X
$p"; then
8030 # Check whether --enable-static was given.
8031 if test "${enable_static+set}" = set; then :
8032 enableval=$enable_static; p=${PACKAGE-default}
8034 yes) enable_static=yes ;;
8035 no) enable_static=no ;;
8038 # Look at the argument we got. We use all the common list separators.
8039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8040 for pkg in $enableval; do
8042 if test "X
$pkg" = "X
$p"; then
8062 # Check whether --with-pic was given.
8063 if test "${with_pic+set}" = set; then :
8064 withval=$with_pic; pic_mode="$withval"
8070 test -z "$pic_mode" && pic_mode=default
8078 # Check whether --enable-fast-install was given.
8079 if test "${enable_fast_install+set}" = set; then :
8080 enableval=$enable_fast_install; p=${PACKAGE-default}
8082 yes) enable_fast_install=yes ;;
8083 no) enable_fast_install=no ;;
8085 enable_fast_install=no
8086 # Look at the argument we got. We use all the common list separators.
8087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8088 for pkg in $enableval; do
8090 if test "X
$pkg" = "X
$p"; then
8091 enable_fast_install=yes
8098 enable_fast_install=yes
8111 # This can be used to rebuild libtool when needed
8112 LIBTOOL_DEPS="$ltmain"
8114 # Always use our own libtool.
8115 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8142 test -z "$LN_S" && LN_S="ln -s"
8157 if test -n "${ZSH_VERSION+set}" ; then
8158 setopt NO_GLOB_SUBST
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8162 $as_echo_n "checking
for objdir...
" >&6; }
8163 if ${lt_cv_objdir+:} false; then :
8164 $as_echo_n "(cached
) " >&6
8166 rm -f .libs 2>/dev/null
8167 mkdir .libs 2>/dev/null
8168 if test -d .libs; then
8171 # MS-DOS does not allow filenames that begin with a dot.
8174 rmdir .libs 2>/dev/null
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8177 $as_echo "$lt_cv_objdir" >&6; }
8178 objdir=$lt_cv_objdir
8184 cat >>confdefs.h <<_ACEOF
8185 #define LT_OBJDIR "$lt_cv_objdir/"
8193 # AIX sometimes has problems with the GCC collect2 program. For some
8194 # reason, if we set the COLLECT_NAMES environment variable, the problems
8195 # vanish in a puff of smoke.
8196 if test "X
${COLLECT_NAMES+set}" != Xset; then
8198 export COLLECT_NAMES
8205 can_build_shared=yes
8207 # All known linkers require a `.a' archive for static linking (except MSVC,
8208 # which needs '.lib').
8211 with_gnu_ld="$lt_cv_prog_gnu_ld"
8214 old_CFLAGS="$CFLAGS"
8216 # Set sane defaults for various variables
8217 test -z "$CC" && CC=cc
8218 test -z "$LTCC" && LTCC=$CC
8219 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8220 test -z "$LD" && LD=ld
8221 test -z "$ac_objext" && ac_objext=o
8223 for cc_temp in $compiler""; do
8225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8231 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8234 # Only perform the check for file, if the check method requires it
8235 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8236 case $deplibs_check_method in
8238 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8240 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8241 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8242 $as_echo_n "(cached
) " >&6
8246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8249 lt_save_MAGIC_CMD="$MAGIC_CMD"
8250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8251 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8252 for ac_dir in $ac_dummy; do
8254 test -z "$ac_dir" && ac_dir=.
8255 if test -f $ac_dir/${ac_tool_prefix}file; then
8256 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8257 if test -n "$file_magic_test_file"; then
8258 case $deplibs_check_method in
8260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8263 $EGREP "$file_magic_regex" > /dev/null; then
8268 *** Warning: the command libtool uses to detect shared libraries,
8269 *** $file_magic_cmd, produces output that libtool cannot recognize.
8270 *** The result is that libtool may fail to recognize shared libraries
8271 *** as such. This will affect the creation of libtool libraries that
8272 *** depend on shared libraries, but programs linked with such libtool
8273 *** libraries will work regardless of this problem. Nevertheless, you
8274 *** may want to report the problem to your system manager and/or to
8275 *** bug-libtool@gnu.org
8285 MAGIC_CMD="$lt_save_MAGIC_CMD"
8290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8291 if test -n "$MAGIC_CMD"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8293 $as_echo "$MAGIC_CMD" >&6; }
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8296 $as_echo "no
" >&6; }
8303 if test -z "$lt_cv_path_MAGIC_CMD"; then
8304 if test -n "$ac_tool_prefix"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8306 $as_echo_n "checking
for file...
" >&6; }
8307 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8308 $as_echo_n "(cached
) " >&6
8312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8315 lt_save_MAGIC_CMD="$MAGIC_CMD"
8316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8317 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8318 for ac_dir in $ac_dummy; do
8320 test -z "$ac_dir" && ac_dir=.
8321 if test -f $ac_dir/file; then
8322 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8323 if test -n "$file_magic_test_file"; then
8324 case $deplibs_check_method in
8326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8329 $EGREP "$file_magic_regex" > /dev/null; then
8334 *** Warning: the command libtool uses to detect shared libraries,
8335 *** $file_magic_cmd, produces output that libtool cannot recognize.
8336 *** The result is that libtool may fail to recognize shared libraries
8337 *** as such. This will affect the creation of libtool libraries that
8338 *** depend on shared libraries, but programs linked with such libtool
8339 *** libraries will work regardless of this problem. Nevertheless, you
8340 *** may want to report the problem to your system manager and/or to
8341 *** bug-libtool@gnu.org
8351 MAGIC_CMD="$lt_save_MAGIC_CMD"
8356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8357 if test -n "$MAGIC_CMD"; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8359 $as_echo "$MAGIC_CMD" >&6; }
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8362 $as_echo "no
" >&6; }
8375 # Use C for the default configuration in the libtool script
8379 ac_cpp='$CPP $CPPFLAGS'
8380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8385 # Source file extension for C test sources.
8388 # Object file extension for compiled C test sources.
8392 # Code to be used in simple compile tests
8393 lt_simple_compile_test_code="int some_variable
= 0;"
8395 # Code to be used in simple link tests
8396 lt_simple_link_test_code='int main(){return(0);}'
8404 # If no C compiler was specified, use CC.
8407 # If no C compiler flags were specified, use CFLAGS.
8408 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8410 # Allow CC to be a program name with arguments.
8413 # Save the default compiler, since it gets overwritten when the other
8414 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8415 compiler_DEFAULT=$CC
8417 # save warnings/boilerplate of simple test code
8418 ac_outfile=conftest.$ac_objext
8419 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8420 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8421 _lt_compiler_boilerplate=`cat conftest.err`
8424 ac_outfile=conftest.$ac_objext
8425 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8426 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8427 _lt_linker_boilerplate=`cat conftest.err`
8432 ## There is no encapsulation within the following macros, do not change
8433 ## the running order or otherwise move them around unless you know exactly
8434 ## what you are doing...
8435 if test -n "$compiler"; then
8437 lt_prog_compiler_no_builtin_flag=
8439 if test "$GCC" = yes; then
8440 case $cc_basename in
8442 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8444 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8448 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8449 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8450 $as_echo_n "(cached
) " >&6
8452 lt_cv_prog_compiler_rtti_exceptions=no
8453 ac_outfile=conftest.$ac_objext
8454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8455 lt_compiler_flag="-fno-rtti -fno-exceptions"
8456 # Insert the option either (1) after the last *FLAGS variable, or
8457 # (2) before a word containing "conftest.
", or (3) at the end.
8458 # Note that $ac_compile itself does not contain backslashes and begins
8459 # with a dollar sign (not a hyphen), so the echo should work correctly.
8460 # The option is referenced via a variable to avoid confusing sed.
8461 lt_compile=`echo "$ac_compile" | $SED \
8462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8464 -e 's:$: $lt_compiler_flag:'`
8465 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8466 (eval "$lt_compile" 2>conftest.err)
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8470 if (exit $ac_status) && test -s "$ac_outfile"; then
8471 # The compiler can only warn and ignore the option if not recognized
8472 # So say no if there are warnings other than the usual output.
8473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8476 lt_cv_prog_compiler_rtti_exceptions=yes
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8498 lt_prog_compiler_wl=
8499 lt_prog_compiler_pic=
8500 lt_prog_compiler_static=
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8503 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8505 if test "$GCC" = yes; then
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_static='-static'
8511 # All AIX code is PIC.
8512 if test "$host_cpu" = ia64; then
8513 # AIX 5 now supports IA64 processor
8514 lt_prog_compiler_static='-Bstatic'
8516 lt_prog_compiler_pic='-fPIC'
8522 # see comment about AmigaOS4 .so support
8523 lt_prog_compiler_pic='-fPIC'
8526 # FIXME: we need at least 68020 code to build shared libraries, but
8527 # adding the `-m68020' flag to GCC prevents building anything better,
8529 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8535 # PIC is the default for these OSes.
8538 mingw* | cygwin* | pw32* | os2* | cegcc*)
8539 # This hack is so that the source file can tell whether it is being
8540 # built for inclusion in a dll (and should export symbols for example).
8541 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8542 # (--disable-auto-import) libraries
8543 lt_prog_compiler_pic='-DDLL_EXPORT'
8546 darwin* | rhapsody*)
8547 # PIC is the default on this platform
8548 # Common symbols not allowed in MH_DYLIB files
8549 lt_prog_compiler_pic='-fno-common'
8553 # PIC is the default for Haiku.
8554 # The "-static" flag exists, but is broken.
8555 lt_prog_compiler_static=
8559 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8560 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8561 # sets the default TLS model and affects inlining.
8567 lt_prog_compiler_pic='-fPIC'
8573 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8574 # Instead, we relocate shared libraries at runtime.
8578 # Just because we use GCC doesn't mean we suddenly get shared libraries
8579 # on systems that don't support them.
8580 lt_prog_compiler_can_build_shared=no
8585 # QNX uses GNU C++, but need to define -shared option too, otherwise
8587 lt_prog_compiler_pic='-fPIC -shared'
8591 if test -d /usr/nec; then
8592 lt_prog_compiler_pic=-Kconform_pic
8597 lt_prog_compiler_pic='-fPIC'
8601 case $cc_basename in
8602 nvcc*) # Cuda Compiler Driver 2.2
8603 lt_prog_compiler_wl='-Xlinker '
8604 lt_prog_compiler_pic='-Xcompiler -fPIC'
8608 # PORTME Check for flag to pass linker flags through the system compiler.
8611 lt_prog_compiler_wl='-Wl,'
8612 if test "$host_cpu" = ia64; then
8613 # AIX 5 now supports IA64 processor
8614 lt_prog_compiler_static='-Bstatic'
8616 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8620 mingw* | cygwin* | pw32* | os2* | cegcc*)
8621 # This hack is so that the source file can tell whether it is being
8622 # built for inclusion in a dll (and should export symbols for example).
8623 lt_prog_compiler_pic='-DDLL_EXPORT'
8626 hpux9* | hpux10* | hpux11*)
8627 lt_prog_compiler_wl='-Wl,'
8628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8635 lt_prog_compiler_pic='+Z'
8638 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8639 lt_prog_compiler_static='${wl}-a ${wl}archive'
8642 irix5* | irix6* | nonstopux*)
8643 lt_prog_compiler_wl='-Wl,'
8644 # PIC (with -KPIC) is the default.
8645 lt_prog_compiler_static='-non_shared'
8648 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8649 case $cc_basename in
8650 # old Intel for x86_64 which still supported -KPIC.
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_pic='-KPIC'
8654 lt_prog_compiler_static='-static'
8656 # icc used to be incompatible with GCC.
8657 # ICC 10 doesn't accept -KPIC any more.
8659 lt_prog_compiler_wl='-Wl,'
8660 lt_prog_compiler_pic='-fPIC'
8661 lt_prog_compiler_static='-static'
8663 # Lahey Fortran 8.1.
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_pic='--shared'
8667 lt_prog_compiler_static='--static'
8669 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8670 # Portland Group compilers (*not* the Pentium gcc compiler,
8671 # which looks to be a dead project)
8672 lt_prog_compiler_wl='-Wl,'
8673 lt_prog_compiler_pic='-fpic'
8674 lt_prog_compiler_static='-Bstatic'
8677 lt_prog_compiler_wl='-Wl,'
8678 # All Alpha code is PIC.
8679 lt_prog_compiler_static='-non_shared'
8681 xl* | bgxl* | bgf* | mpixl*)
8682 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8683 lt_prog_compiler_wl='-Wl,'
8684 lt_prog_compiler_pic='-qpic'
8685 lt_prog_compiler_static='-qstaticlink'
8688 case `$CC -V 2>&1 | sed 5q` in
8689 *Sun\ F* | *Sun*Fortran*)
8690 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-Bstatic'
8693 lt_prog_compiler_wl=''
8697 lt_prog_compiler_pic='-KPIC'
8698 lt_prog_compiler_static='-Bstatic'
8699 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_pic='-KPIC'
8708 lt_prog_compiler_static='-Bstatic'
8712 # QNX uses GNU C++, but need to define -shared option too, otherwise
8714 lt_prog_compiler_pic='-fPIC -shared'
8717 osf3* | osf4* | osf5*)
8718 lt_prog_compiler_wl='-Wl,'
8719 # All OSF/1 code is PIC.
8720 lt_prog_compiler_static='-non_shared'
8724 lt_prog_compiler_static='-non_shared'
8728 lt_prog_compiler_pic='-KPIC'
8729 lt_prog_compiler_static='-Bstatic'
8730 case $cc_basename in
8732 lt_prog_compiler_wl='-Qoption ld ';;
8734 lt_prog_compiler_wl='-Wl,';;
8739 lt_prog_compiler_wl='-Qoption ld '
8740 lt_prog_compiler_pic='-PIC'
8741 lt_prog_compiler_static='-Bstatic'
8744 sysv4 | sysv4.2uw2* | sysv4.3*)
8745 lt_prog_compiler_wl='-Wl,'
8746 lt_prog_compiler_pic='-KPIC'
8747 lt_prog_compiler_static='-Bstatic'
8751 if test -d /usr/nec ;then
8752 lt_prog_compiler_pic='-Kconform_pic'
8753 lt_prog_compiler_static='-Bstatic'
8757 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='-KPIC'
8760 lt_prog_compiler_static='-Bstatic'
8764 lt_prog_compiler_wl='-Wl,'
8765 lt_prog_compiler_can_build_shared=no
8769 lt_prog_compiler_pic='-pic'
8770 lt_prog_compiler_static='-Bstatic'
8774 lt_prog_compiler_can_build_shared=no
8780 # For platforms which do not support PIC, -DPIC is meaningless:
8782 lt_prog_compiler_pic=
8785 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
8789 $as_echo "$lt_prog_compiler_pic" >&6; }
8797 # Check to make sure the PIC flag actually works.
8799 if test -n "$lt_prog_compiler_pic"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8801 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
8802 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8803 $as_echo_n "(cached
) " >&6
8805 lt_cv_prog_compiler_pic_works=no
8806 ac_outfile=conftest.$ac_objext
8807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8808 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8809 # Insert the option either (1) after the last *FLAGS variable, or
8810 # (2) before a word containing "conftest.
", or (3) at the end.
8811 # Note that $ac_compile itself does not contain backslashes and begins
8812 # with a dollar sign (not a hyphen), so the echo should work correctly.
8813 # The option is referenced via a variable to avoid confusing sed.
8814 lt_compile=`echo "$ac_compile" | $SED \
8815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8817 -e 's:$: $lt_compiler_flag:'`
8818 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8819 (eval "$lt_compile" 2>conftest.err)
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8823 if (exit $ac_status) && test -s "$ac_outfile"; then
8824 # The compiler can only warn and ignore the option if not recognized
8825 # So say no if there are warnings other than the usual output.
8826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8829 lt_cv_prog_compiler_pic_works=yes
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
8836 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8838 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8839 case $lt_prog_compiler_pic in
8841 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8844 lt_prog_compiler_pic=
8845 lt_prog_compiler_can_build_shared=no
8856 # Check to make sure the static flag actually works.
8858 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
8860 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
8861 if ${lt_cv_prog_compiler_static_works+:} false; then :
8862 $as_echo_n "(cached
) " >&6
8864 lt_cv_prog_compiler_static_works=no
8865 save_LDFLAGS="$LDFLAGS"
8866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8867 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8869 # The linker can only warn and ignore the option if not recognized
8870 # So say no if there are warnings
8871 if test -s conftest.err; then
8872 # Append any errors to the config.log.
8873 cat conftest.err 1>&5
8874 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8876 if diff conftest.exp conftest.er2 >/dev/null; then
8877 lt_cv_prog_compiler_static_works=yes
8880 lt_cv_prog_compiler_static_works=yes
8884 LDFLAGS="$save_LDFLAGS"
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
8888 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8890 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8893 lt_prog_compiler_static=
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8903 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8904 if ${lt_cv_prog_compiler_c_o+:} false; then :
8905 $as_echo_n "(cached
) " >&6
8907 lt_cv_prog_compiler_c_o=no
8908 $RM -r conftest 2>/dev/null
8912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8914 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8915 # Insert the option either (1) after the last *FLAGS variable, or
8916 # (2) before a word containing "conftest.
", or (3) at the end.
8917 # Note that $ac_compile itself does not contain backslashes and begins
8918 # with a dollar sign (not a hyphen), so the echo should work correctly.
8919 lt_compile=`echo "$ac_compile" | $SED \
8920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8922 -e 's:$: $lt_compiler_flag:'`
8923 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8924 (eval "$lt_compile" 2>out/conftest.err)
8926 cat out/conftest.err >&5
8927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8930 # The compiler can only warn and ignore the option if not recognized
8931 # So say no if there are warnings
8932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8935 lt_cv_prog_compiler_c_o=yes
8940 # SGI C++ compiler will create directory out/ii_files/ for
8941 # template instantiation
8942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8943 $RM out/* && rmdir out
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
8950 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8958 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8959 if ${lt_cv_prog_compiler_c_o+:} false; then :
8960 $as_echo_n "(cached
) " >&6
8962 lt_cv_prog_compiler_c_o=no
8963 $RM -r conftest 2>/dev/null
8967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8969 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8970 # Insert the option either (1) after the last *FLAGS variable, or
8971 # (2) before a word containing "conftest.
", or (3) at the end.
8972 # Note that $ac_compile itself does not contain backslashes and begins
8973 # with a dollar sign (not a hyphen), so the echo should work correctly.
8974 lt_compile=`echo "$ac_compile" | $SED \
8975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8977 -e 's:$: $lt_compiler_flag:'`
8978 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8979 (eval "$lt_compile" 2>out/conftest.err)
8981 cat out/conftest.err >&5
8982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8985 # The compiler can only warn and ignore the option if not recognized
8986 # So say no if there are warnings
8987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8990 lt_cv_prog_compiler_c_o=yes
8995 # SGI C++ compiler will create directory out/ii_files/ for
8996 # template instantiation
8997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8998 $RM out/* && rmdir out
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9005 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9010 hard_links="nottested
"
9011 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9012 # do not overwrite the value of need_locks provided by the user
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9014 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9019 ln conftest.a conftest.b 2>&5 || hard_links=no
9020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9022 $as_echo "$hard_links" >&6; }
9023 if test "$hard_links" = no; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9025 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9038 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9041 allow_undefined_flag=
9042 always_export_symbols=no
9044 archive_expsym_cmds=
9045 compiler_needs_object=no
9046 enable_shared_with_static_runtimes=no
9047 export_dynamic_flag_spec=
9048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9049 hardcode_automatic=no
9051 hardcode_direct_absolute=no
9052 hardcode_libdir_flag_spec=
9053 hardcode_libdir_flag_spec_ld=
9054 hardcode_libdir_separator=
9056 hardcode_shlibpath_var=unsupported
9058 link_all_deplibs=unknown
9061 old_archive_from_new_cmds=
9062 old_archive_from_expsyms_cmds=
9063 thread_safe_flag_spec=
9064 whole_archive_flag_spec=
9065 # include_expsyms should be a list of space-separated symbols to be *always*
9066 # included in the symbol list
9068 # exclude_expsyms can be an extended regexp of symbols to exclude
9069 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9070 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9071 # as well as any symbol that contains `d'.
9072 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9073 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9074 # platforms (ab)use it in PIC code, but their linkers get confused if
9075 # the symbol is explicitly referenced. Since portable code cannot
9076 # rely on this symbol name, it's probably fine to never include it in
9077 # preloaded symbol tables.
9078 # Exclude shared library initialization/finalization symbols.
9079 extract_expsyms_cmds=
9082 cygwin* | mingw* | pw32* | cegcc*)
9083 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9084 # When not using gcc, we currently assume that we are using
9085 # Microsoft Visual C++.
9086 if test "$GCC" != yes; then
9091 # we just hope/assume this is gcc and not c89 (= MSVC++)
9101 # On some targets, GNU ld is compatible enough with the native linker
9102 # that we're better off using the native interface for both.
9103 lt_use_gnu_ld_interface=no
9104 if test "$with_gnu_ld" = yes; then
9107 # The AIX port of GNU ld has always aspired to compatibility
9108 # with the native linker. However, as the warning in the GNU ld
9109 # block says, versions before 2.19.5* couldn't really create working
9110 # shared libraries, regardless of the interface used.
9111 case `$LD -v 2>&1` in
9112 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9113 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9114 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9116 lt_use_gnu_ld_interface=yes
9121 lt_use_gnu_ld_interface=yes
9126 if test "$lt_use_gnu_ld_interface" = yes; then
9127 # If archive_cmds runs LD, not CC, wlarc should be empty
9130 # Set some defaults for GNU ld with shared library support. These
9131 # are reset later if shared libraries are not supported. Putting them
9132 # here allows them to be overridden if necessary.
9133 runpath_var=LD_RUN_PATH
9134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9135 export_dynamic_flag_spec='${wl}--export-dynamic'
9136 # ancient GNU ld didn't support --whole-archive et. al.
9137 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9138 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9140 whole_archive_flag_spec=
9142 supports_anon_versioning=no
9143 case `$LD -v 2>&1` in
9144 *GNU\ gold*) supports_anon_versioning=yes ;;
9145 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9146 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9147 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9148 *\ 2.11.*) ;; # other 2.11 versions
9149 *) supports_anon_versioning=yes ;;
9152 # See if GNU ld supports shared libraries.
9155 # On AIX/PPC, the GNU linker is very broken
9156 if test "$host_cpu" != ia64; then
9160 *** Warning: the GNU linker, at least up to release 2.19, is reported
9161 *** to be unable to reliably create shared libraries on AIX.
9162 *** Therefore, libtool is disabling shared libraries support. If you
9163 *** really care for shared libraries, you may want to install binutils
9164 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9165 *** You will then need to restart the configuration process.
9174 # see comment about AmigaOS4 .so support
9175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9176 archive_expsym_cmds=''
9179 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)'
9180 hardcode_libdir_flag_spec
='-L$libdir'
9181 hardcode_minus_L
=yes
9187 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9188 allow_undefined_flag
=unsupported
9189 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9190 # support --undefined. This deserves some investigation. FIXME
9191 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9197 cygwin
* | mingw
* | pw32
* | cegcc
*)
9198 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9199 # as there is no search path for DLLs.
9200 hardcode_libdir_flag_spec
='-L$libdir'
9201 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9202 allow_undefined_flag
=unsupported
9203 always_export_symbols
=no
9204 enable_shared_with_static_runtimes
=yes
9205 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9207 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9208 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9209 # If the export-symbols file already is a .def file (1st line
9210 # is EXPORTS), use it as is; otherwise, prepend...
9211 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9212 cp $export_symbols $output_objdir/$soname.def;
9214 echo EXPORTS > $output_objdir/$soname.def;
9215 cat $export_symbols >> $output_objdir/$soname.def;
9217 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9224 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225 link_all_deplibs
=yes
9230 hardcode_shlibpath_var
=no
9231 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9232 export_dynamic_flag_spec
='${wl}-E'
9233 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9234 # Instead, shared libraries are loaded at an image base (0x10000000 by
9235 # default) and relocated if they conflict, which is a slow very memory
9236 # consuming and fragmenting process. To avoid this, we pick a random,
9237 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9238 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9239 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9240 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'
9243 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9245 if test "$host_os" = linux-dietlibc
; then
9246 case $cc_basename in
9247 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9250 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9251 && test "$tmp_diet" = no
9253 tmp_addflag
=' $pic_flag'
9254 tmp_sharedflag
='-shared'
9255 case $cc_basename,$host_cpu in
9256 pgcc
*) # Portland Group C compiler
9257 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'
9258 tmp_addflag
=' $pic_flag'
9260 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9261 # Portland Group f77 and f90 compilers
9262 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'
9263 tmp_addflag
=' $pic_flag -Mnomain' ;;
9264 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9265 tmp_addflag
=' -i_dynamic' ;;
9266 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9267 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9268 ifc
* | ifort
*) # Intel Fortran compiler
9269 tmp_addflag
=' -nofor_main' ;;
9270 lf95
*) # Lahey Fortran 8.1
9271 whole_archive_flag_spec
=
9272 tmp_sharedflag
='--shared' ;;
9273 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9274 tmp_sharedflag
='-qmkshrobj'
9276 nvcc
*) # Cuda Compiler Driver 2.2
9277 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'
9278 compiler_needs_object
=yes
9281 case `$CC -V 2>&1 | sed 5q` in
9282 *Sun\ C
*) # Sun C 5.9
9283 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'
9284 compiler_needs_object
=yes
9285 tmp_sharedflag
='-G' ;;
9286 *Sun\ F
*) # Sun Fortran 8.3
9287 tmp_sharedflag
='-G' ;;
9289 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9291 if test "x$supports_anon_versioning" = xyes
; then
9292 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9294 echo "local: *; };" >> $output_objdir/$libname.ver~
9295 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9298 case $cc_basename in
9299 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9300 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9301 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9302 hardcode_libdir_flag_spec
=
9303 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9304 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9305 if test "x$supports_anon_versioning" = xyes
; then
9306 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9307 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9308 echo "local: *; };" >> $output_objdir/$libname.ver~
9309 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9319 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9320 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9323 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9329 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9333 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9334 *** create shared libraries on Solaris systems. Therefore, libtool
9335 *** is disabling shared libraries support. We urge you to upgrade GNU
9336 *** binutils to release 2.9.1 or newer. Another option is to modify
9337 *** your PATH or compiler configuration so that the native linker is
9338 *** used, and then restart.
9341 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9342 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9349 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9350 case `$LD -v 2>&1` in
9351 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9355 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9356 *** reliably create shared libraries on SCO systems. Therefore, libtool
9357 *** is disabling shared libraries support. We urge you to upgrade GNU
9358 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9359 *** your PATH or compiler configuration so that the native linker is
9360 *** used, and then restart.
9365 # For security reasons, it is highly recommended that you always
9366 # use absolute paths for naming shared libraries, and exclude the
9367 # DT_RUNPATH tag from executables and libraries. But doing so
9368 # requires that you compile everything twice, which is a pain.
9369 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9370 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9371 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9381 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9384 hardcode_shlibpath_var
=no
9388 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9389 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9390 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9397 if test "$ld_shlibs" = no
; then
9399 hardcode_libdir_flag_spec
=
9400 export_dynamic_flag_spec
=
9401 whole_archive_flag_spec
=
9404 # PORTME fill in a description of your system's linker (not GNU ld)
9407 allow_undefined_flag
=unsupported
9408 always_export_symbols
=yes
9409 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'
9410 # Note: this linker hardcodes the directories in LIBPATH if there
9411 # are no directories specified by -L.
9412 hardcode_minus_L
=yes
9413 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9414 # Neither direct hardcoding nor static linking is supported with a
9416 hardcode_direct
=unsupported
9421 if test "$host_cpu" = ia64
; then
9422 # On IA64, the linker does run time linking by default, so we don't
9423 # have to do anything special.
9424 aix_use_runtimelinking
=no
9425 exp_sym_flag
='-Bexport'
9428 # If we're using GNU nm, then we don't want the "-C" option.
9429 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9430 # Also, AIX nm treats weak defined symbols like other global
9431 # defined symbols, whereas GNU nm marks them as "W".
9432 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9433 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'
9435 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'
9437 aix_use_runtimelinking
=no
9439 # Test if we are trying to use run time linking or normal
9440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9441 # need to do runtime linking.
9442 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9443 for ld_flag
in $LDFLAGS; do
9444 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9445 aix_use_runtimelinking
=yes
9452 exp_sym_flag
='-bexport'
9453 no_entry_flag
='-bnoentry'
9456 # When large executables or shared objects are built, AIX ld can
9457 # have problems creating the table of contents. If linking a library
9458 # or program results in "error TOC overflow" add -mminimal-toc to
9459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9464 hardcode_direct_absolute
=yes
9465 hardcode_libdir_separator
=':'
9466 link_all_deplibs
=yes
9467 file_list_spec
='${wl}-f,'
9469 if test "$GCC" = yes; then
9470 case $host_os in aix4.
[012]|aix4.
[012].
*)
9471 # We only want to do this on AIX 4.2 and lower, the check
9472 # below for broken collect2 doesn't work under 4.3+
9473 collect2name
=`${CC} -print-prog-name=collect2`
9474 if test -f "$collect2name" &&
9475 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9477 # We have reworked collect2
9480 # We have old collect2
9481 hardcode_direct
=unsupported
9482 # It fails to find uninstalled libraries when the uninstalled
9483 # path is not listed in the libpath. Setting hardcode_minus_L
9484 # to unsupported forces relinking
9485 hardcode_minus_L
=yes
9486 hardcode_libdir_flag_spec
='-L$libdir'
9487 hardcode_libdir_separator
=
9491 shared_flag
='-shared'
9492 if test "$aix_use_runtimelinking" = yes; then
9493 shared_flag
="$shared_flag "'${wl}-G'
9497 if test "$host_cpu" = ia64
; then
9498 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9499 # chokes on -Wl,-G. The following line is correct:
9502 if test "$aix_use_runtimelinking" = yes; then
9503 shared_flag
='${wl}-G'
9505 shared_flag
='${wl}-bM:SRE'
9510 export_dynamic_flag_spec
='${wl}-bexpall'
9511 # It seems that -bexpall does not export symbols beginning with
9512 # underscore (_), so it is better to generate a list of symbols to export.
9513 always_export_symbols
=yes
9514 if test "$aix_use_runtimelinking" = yes; then
9515 # Warning - without using the other runtime loading flags (-brtl),
9516 # -berok will link without error, but may produce a broken library.
9517 allow_undefined_flag
='-berok'
9518 # Determine the default libpath from the value encoded in an
9520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9531 if ac_fn_c_try_link
"$LINENO"; then :
9533 lt_aix_libpath_sed
='
9534 /Import File Strings/,/^$/ {
9540 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9541 # Check for a 64-bit object if we didn't find anything.
9542 if test -z "$aix_libpath"; then
9543 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9546 rm -f core conftest.err conftest.
$ac_objext \
9547 conftest
$ac_exeext conftest.
$ac_ext
9548 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9550 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9551 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"
9553 if test "$host_cpu" = ia64
; then
9554 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9555 allow_undefined_flag
="-z nodefs"
9556 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"
9558 # Determine the default libpath from the value encoded in an
9560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9571 if ac_fn_c_try_link
"$LINENO"; then :
9573 lt_aix_libpath_sed
='
9574 /Import File Strings/,/^$/ {
9580 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9581 # Check for a 64-bit object if we didn't find anything.
9582 if test -z "$aix_libpath"; then
9583 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9586 rm -f core conftest.err conftest.
$ac_objext \
9587 conftest
$ac_exeext conftest.
$ac_ext
9588 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9590 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9591 # Warning - without using the other run time loading flags,
9592 # -berok will link without error, but may produce a broken library.
9593 no_undefined_flag
=' ${wl}-bernotok'
9594 allow_undefined_flag
=' ${wl}-berok'
9595 if test "$with_gnu_ld" = yes; then
9596 # We only use this code for GNU lds that support --whole-archive.
9597 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9599 # Exported symbols can be pulled into shared objects from archives
9600 whole_archive_flag_spec
='$convenience'
9602 archive_cmds_need_lc
=yes
9603 # This is similar to how AIX traditionally builds its shared libraries.
9604 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'
9612 # see comment about AmigaOS4 .so support
9613 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9614 archive_expsym_cmds
=''
9617 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)'
9618 hardcode_libdir_flag_spec
='-L$libdir'
9619 hardcode_minus_L
=yes
9625 export_dynamic_flag_spec
=-rdynamic
9628 cygwin
* | mingw
* | pw32
* | cegcc
*)
9629 # When not using gcc, we currently assume that we are using
9630 # Microsoft Visual C++.
9631 # hardcode_libdir_flag_spec is actually meaningless, as there is
9632 # no search path for DLLs.
9633 hardcode_libdir_flag_spec
=' '
9634 allow_undefined_flag
=unsupported
9635 # Tell ltmain to make .lib files, not .a files.
9637 # Tell ltmain to make .dll files, not .so files.
9639 # FIXME: Setting linknames here is a bad hack.
9640 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9641 # The linker will automatically build a .lib file if we build a DLL.
9642 old_archive_from_new_cmds
='true'
9643 # FIXME: Should let the user specify the lib program.
9644 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9645 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9646 enable_shared_with_static_runtimes
=yes
9649 darwin
* | rhapsody
*)
9652 archive_cmds_need_lc
=no
9654 hardcode_automatic
=yes
9655 hardcode_shlibpath_var
=unsupported
9656 if test "$lt_cv_ld_force_load" = "yes"; then
9657 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\"`'
9659 whole_archive_flag_spec
=''
9661 link_all_deplibs
=yes
9662 allow_undefined_flag
="$_lt_dar_allow_undefined"
9663 case $cc_basename in
9664 ifort
*) _lt_dar_can_shared
=yes ;;
9665 *) _lt_dar_can_shared
=$GCC ;;
9667 if test "$_lt_dar_can_shared" = "yes"; then
9668 output_verbose_link_cmd
=func_echo_all
9669 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9670 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9671 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}"
9672 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}"
9681 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_libdir_flag_spec
='-L$libdir'
9683 hardcode_shlibpath_var
=no
9686 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9687 # support. Future versions do this automatically, but an explicit c++rt0.o
9688 # does not break anything, and helps significantly (at the cost of a little
9691 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9692 hardcode_libdir_flag_spec
='-R$libdir'
9694 hardcode_shlibpath_var
=no
9697 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9699 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9701 hardcode_minus_L
=yes
9702 hardcode_shlibpath_var
=no
9705 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9706 freebsd
* | dragonfly
*)
9707 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9708 hardcode_libdir_flag_spec
='-R$libdir'
9710 hardcode_shlibpath_var
=no
9714 if test "$GCC" = yes; then
9715 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'
9717 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'
9719 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9720 hardcode_libdir_separator
=:
9723 # hardcode_minus_L: Not really in the search PATH,
9724 # but as the default location of the library.
9725 hardcode_minus_L
=yes
9726 export_dynamic_flag_spec
='${wl}-E'
9730 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9731 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9733 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9735 if test "$with_gnu_ld" = no
; then
9736 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9737 hardcode_libdir_flag_spec_ld
='+b $libdir'
9738 hardcode_libdir_separator
=:
9740 hardcode_direct_absolute
=yes
9741 export_dynamic_flag_spec
='${wl}-E'
9742 # hardcode_minus_L: Not really in the search PATH,
9743 # but as the default location of the library.
9744 hardcode_minus_L
=yes
9749 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9752 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9755 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9758 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9764 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9771 # Older versions of the 11.00 compiler do not understand -b yet
9772 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9774 $as_echo_n "checking if $CC understands -b... " >&6; }
9775 if ${lt_cv_prog_compiler__b+:} false
; then :
9776 $as_echo_n "(cached) " >&6
9778 lt_cv_prog_compiler__b
=no
9779 save_LDFLAGS
="$LDFLAGS"
9780 LDFLAGS
="$LDFLAGS -b"
9781 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9782 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9783 # The linker can only warn and ignore the option if not recognized
9784 # So say no if there are warnings
9785 if test -s conftest.err
; then
9786 # Append any errors to the config.log.
9787 cat conftest.err
1>&5
9788 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9789 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9790 if diff conftest.exp conftest.er2
>/dev
/null
; then
9791 lt_cv_prog_compiler__b
=yes
9794 lt_cv_prog_compiler__b
=yes
9798 LDFLAGS
="$save_LDFLAGS"
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9802 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9804 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9805 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9807 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9813 if test "$with_gnu_ld" = no
; then
9814 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9815 hardcode_libdir_separator
=:
9820 hardcode_shlibpath_var
=no
9824 hardcode_direct_absolute
=yes
9825 export_dynamic_flag_spec
='${wl}-E'
9827 # hardcode_minus_L: Not really in the search PATH,
9828 # but as the default location of the library.
9829 hardcode_minus_L
=yes
9835 irix5
* | irix6
* | nonstopux
*)
9836 if test "$GCC" = yes; then
9837 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'
9838 # Try to use the -exported_symbol ld option, if it does not
9839 # work, assume that -exports_file does not work either and
9840 # implicitly export all symbols.
9841 save_LDFLAGS
="$LDFLAGS"
9842 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9847 if ac_fn_c_try_link
"$LINENO"; then :
9848 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'
9851 rm -f core conftest.err conftest.
$ac_objext \
9852 conftest
$ac_exeext conftest.
$ac_ext
9853 LDFLAGS
="$save_LDFLAGS"
9855 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'
9856 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'
9858 archive_cmds_need_lc
='no'
9859 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9860 hardcode_libdir_separator
=:
9862 link_all_deplibs
=yes
9866 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9867 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9869 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9871 hardcode_libdir_flag_spec
='-R$libdir'
9873 hardcode_shlibpath_var
=no
9877 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9879 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9880 hardcode_libdir_separator
=:
9881 hardcode_shlibpath_var
=no
9888 if test -f /usr
/libexec
/ld.so
; then
9890 hardcode_shlibpath_var
=no
9891 hardcode_direct_absolute
=yes
9892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9893 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9894 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9895 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9896 export_dynamic_flag_spec
='${wl}-E'
9899 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9900 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9901 hardcode_libdir_flag_spec
='-R$libdir'
9904 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9905 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9915 hardcode_libdir_flag_spec
='-L$libdir'
9916 hardcode_minus_L
=yes
9917 allow_undefined_flag
=unsupported
9918 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'
9919 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9923 if test "$GCC" = yes; then
9924 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9925 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'
9927 allow_undefined_flag
=' -expect_unresolved \*'
9928 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'
9930 archive_cmds_need_lc
='no'
9931 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9932 hardcode_libdir_separator
=:
9935 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9936 if test "$GCC" = yes; then
9937 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9938 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'
9939 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9941 allow_undefined_flag
=' -expect_unresolved \*'
9942 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'
9943 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~
9944 $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'
9946 # Both c and cxx compiler support -rpath directly
9947 hardcode_libdir_flag_spec
='-rpath $libdir'
9949 archive_cmds_need_lc
='no'
9950 hardcode_libdir_separator
=:
9954 no_undefined_flag
=' -z defs'
9955 if test "$GCC" = yes; then
9957 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9959 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9961 case `$CC -V 2>&1` in
9964 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9970 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9971 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9972 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9976 hardcode_libdir_flag_spec
='-R$libdir'
9977 hardcode_shlibpath_var
=no
9979 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9981 # The compiler driver will combine and reorder linker options,
9982 # but understands `-z linker_flag'. GCC discards it without `$wl',
9983 # but is careful enough not to reorder.
9984 # Supported since Solaris 2.6 (maybe 2.5.1?)
9985 if test "$GCC" = yes; then
9986 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9988 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9992 link_all_deplibs
=yes
9996 if test "x$host_vendor" = xsequent
; then
9997 # Use $CC to link under sequent, because it throws in some extra .o
9998 # files that make .init and .fini sections work.
9999 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10001 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_libdir_flag_spec
='-L$libdir'
10004 hardcode_direct
=yes
10005 hardcode_minus_L
=yes
10006 hardcode_shlibpath_var
=no
10010 case $host_vendor in
10012 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 hardcode_direct
=yes # is this really true???
10016 ## LD is ld it makes a PLAMLIB
10017 ## CC just makes a GrossModule.
10018 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10019 reload_cmds
='$CC -r -o $output$reload_objs'
10023 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10027 runpath_var
='LD_RUN_PATH'
10028 hardcode_shlibpath_var
=no
10032 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10033 hardcode_shlibpath_var
=no
10034 export_dynamic_flag_spec
='-Bexport'
10038 if test -d /usr
/nec
; then
10039 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040 hardcode_shlibpath_var
=no
10041 runpath_var
=LD_RUN_PATH
10042 hardcode_runpath_var
=yes
10047 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10048 no_undefined_flag
='${wl}-z,text'
10049 archive_cmds_need_lc
=no
10050 hardcode_shlibpath_var
=no
10051 runpath_var
='LD_RUN_PATH'
10053 if test "$GCC" = yes; then
10054 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 sysv5
* | sco3.2v5
* | sco5v6
*)
10063 # Note: We can NOT use -z defs as we might desire, because we do not
10064 # link with -lc, and that would cause any symbols used from libc to
10065 # always be unresolved, which means just about no library would
10066 # ever link correctly. If we're not using GNU ld we use -z text
10067 # though, which does catch some bad symbols but isn't as heavy-handed
10069 no_undefined_flag
='${wl}-z,text'
10070 allow_undefined_flag
='${wl}-z,nodefs'
10071 archive_cmds_need_lc
=no
10072 hardcode_shlibpath_var
=no
10073 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10074 hardcode_libdir_separator
=':'
10075 link_all_deplibs
=yes
10076 export_dynamic_flag_spec
='${wl}-Bexport'
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'
10089 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10090 hardcode_libdir_flag_spec
='-L$libdir'
10091 hardcode_shlibpath_var
=no
10099 if test x
$host_vendor = xsni
; then
10101 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10102 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10109 $as_echo "$ld_shlibs" >&6; }
10110 test "$ld_shlibs" = no
&& can_build_shared
=no
10112 with_gnu_ld
=$with_gnu_ld
10129 # Do we need to explicitly link libc?
10131 case "x$archive_cmds_need_lc" in
10133 # Assume -lc should be added
10134 archive_cmds_need_lc
=yes
10136 if test "$enable_shared" = yes && test "$GCC" = yes; then
10137 case $archive_cmds in
10139 # FIXME: we may have to deal with multi-command sequences.
10142 # Test whether the compiler implicitly links with -lc since on some
10143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10144 # to ld, don't add -lc before -lgcc.
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10146 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10147 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10148 $as_echo_n "(cached) " >&6
10151 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10154 (eval $ac_compile) 2>&5
10156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10157 test $ac_status = 0; } 2>conftest.err
; then
10160 libobjs
=conftest.
$ac_objext
10162 wl
=$lt_prog_compiler_wl
10163 pic_flag
=$lt_prog_compiler_pic
10169 lt_save_allow_undefined_flag
=$allow_undefined_flag
10170 allow_undefined_flag
=
10171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10172 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10175 test $ac_status = 0; }
10177 lt_cv_archive_cmds_need_lc
=no
10179 lt_cv_archive_cmds_need_lc
=yes
10181 allow_undefined_flag
=$lt_save_allow_undefined_flag
10183 cat conftest.err
1>&5
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10189 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10190 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10354 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10356 if test "$GCC" = yes; then
10358 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10359 *) lt_awk_arg
="/^libraries:/" ;;
10362 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10363 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10365 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10366 case $lt_search_path_spec in
10368 # if the path contains ";" then we assume it to be the separator
10369 # otherwise default to the standard path separator (i.e. ":") - it is
10370 # assumed that no part of a normal pathname contains ";" but that should
10371 # okay in the real world where ";" in dirpaths is itself problematic.
10372 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10375 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10378 # Ok, now we have the path, separated by spaces, we can step through it
10379 # and add multilib dir if necessary.
10380 lt_tmp_lt_search_path_spec
=
10381 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10382 for lt_sys_path
in $lt_search_path_spec; do
10383 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10384 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10386 test -d "$lt_sys_path" && \
10387 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10390 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10391 BEGIN {RS=" "; FS="/|\n";} {
10394 for (lt_i = NF; lt_i > 0; lt_i--) {
10395 if ($lt_i != "" && $lt_i != ".") {
10396 if ($lt_i == "..") {
10399 if (lt_count == 0) {
10400 lt_foo="/" $lt_i lt_foo;
10407 if (lt_foo != "") { lt_freq[lt_foo]++; }
10408 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10410 # AWK program above erroneously prepends '/' to C:/dos/paths
10413 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10414 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10416 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10418 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10420 library_names_spec
=
10421 libname_spec
='lib$name'
10425 postuninstall_cmds
=
10429 shlibpath_overrides_runpath
=unknown
10431 dynamic_linker
="$host_os ld.so"
10432 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10433 need_lib_prefix
=unknown
10434 hardcode_into_libs
=no
10436 # when you set need_version to no, make sure it does not cause -set_version
10437 # flags to be left without arguments
10438 need_version
=unknown
10443 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10444 shlibpath_var
=LIBPATH
10446 # AIX 3 has no versioning support, so we append a major version to the name.
10447 soname_spec
='${libname}${release}${shared_ext}$major'
10454 hardcode_into_libs
=yes
10455 if test "$host_cpu" = ia64
; then
10456 # AIX 5 supports IA64
10457 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10458 shlibpath_var
=LD_LIBRARY_PATH
10460 # With GCC up to 2.95.x, collect2 would create an import file
10461 # for dependence libraries. The import file would start with
10462 # the line `#! .'. This would cause the generated library to
10463 # depend on `.', always an invalid library. This was fixed in
10464 # development snapshots of GCC prior to 3.0.
10466 aix4 | aix4.
[01] | aix4.
[01].
*)
10467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10469 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10472 can_build_shared
=no
10476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10477 # soname into executable. Probably we can add versioning support to
10478 # collect2, so additional links can be useful in future.
10479 if test "$aix_use_runtimelinking" = yes; then
10480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10481 # instead of lib<name>.a to let people know that these are not
10482 # typical AIX shared libraries.
10483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10485 # We preserve .a as extension for shared libraries through AIX4.2
10486 # and later when we are not doing run time linking.
10487 library_names_spec
='${libname}${release}.a $libname.a'
10488 soname_spec
='${libname}${release}${shared_ext}$major'
10490 shlibpath_var
=LIBPATH
10497 # Since July 2007 AmigaOS4 officially supports .so libraries.
10498 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502 library_names_spec
='$libname.ixlibrary $libname.a'
10503 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10504 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'
10510 library_names_spec
='${libname}${shared_ext}'
10511 dynamic_linker
="$host_os ld.so"
10512 shlibpath_var
=LIBRARY_PATH
10518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec
='${libname}${release}${shared_ext}$major'
10520 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10521 shlibpath_var
=LD_LIBRARY_PATH
10522 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10523 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10524 # the default ld.so.conf also contains /usr/contrib/lib and
10525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10526 # libtool to hard-code these into programs
10529 cygwin
* | mingw
* | pw32
* | cegcc
*)
10530 version_type
=windows
10535 case $GCC,$host_os in
10536 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10537 library_names_spec
='$libname.dll.a'
10538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10539 postinstall_cmds
='base_file=`basename \${file}`~
10540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10541 dldir=$destdir/`dirname \$dlpath`~
10542 test -d \$dldir || mkdir -p \$dldir~
10543 $install_prog $dir/$dlname \$dldir/$dlname~
10544 chmod a+x \$dldir/$dlname~
10545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10548 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10549 dlpath=$dir/\$dldll~
10551 shlibpath_overrides_runpath
=yes
10555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10556 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10558 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10561 # MinGW DLLs use traditional 'lib' prefix
10562 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10565 # pw32 DLLs use 'pw' prefix rather than 'lib'
10566 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10572 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10575 dynamic_linker
='Win32 ld.exe'
10576 # FIXME: first we should search . and the directory the executable is in
10580 darwin
* | rhapsody
*)
10581 dynamic_linker
="$host_os dyld"
10582 version_type
=darwin
10585 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10586 soname_spec
='${libname}${release}${major}$shared_ext'
10587 shlibpath_overrides_runpath
=yes
10588 shlibpath_var
=DYLD_LIBRARY_PATH
10589 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10591 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10592 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10600 soname_spec
='${libname}${release}${shared_ext}$major'
10601 shlibpath_var
=LD_LIBRARY_PATH
10604 freebsd
* | dragonfly
*)
10605 # DragonFly does not have aout. When/if they implement a new
10606 # versioning mechanism, adjust this.
10607 if test -x /usr
/bin
/objformat
; then
10608 objformat
=`/usr/bin/objformat`
10611 freebsd
[23].
*) objformat
=aout
;;
10612 *) objformat
=elf
;;
10615 version_type
=freebsd-
$objformat
10616 case $version_type in
10618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10623 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10627 shlibpath_var
=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath
=yes
10632 freebsd3.
[01]* | freebsdelf3.
[01]*)
10633 shlibpath_overrides_runpath
=yes
10634 hardcode_into_libs
=yes
10636 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10637 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10638 shlibpath_overrides_runpath
=no
10639 hardcode_into_libs
=yes
10641 *) # from 4.6 on, and DragonFly
10642 shlibpath_overrides_runpath
=yes
10643 hardcode_into_libs
=yes
10652 dynamic_linker
="$host_os runtime_loader"
10653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10654 soname_spec
='${libname}${release}${shared_ext}$major'
10655 shlibpath_var
=LIBRARY_PATH
10656 shlibpath_overrides_runpath
=yes
10657 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10658 hardcode_into_libs
=yes
10661 hpux9
* | hpux10
* | hpux11
*)
10662 # Give a soname corresponding to the major version so that dld.sl refuses to
10663 # link against other versions.
10670 hardcode_into_libs
=yes
10671 dynamic_linker
="$host_os dld.so"
10672 shlibpath_var
=LD_LIBRARY_PATH
10673 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675 soname_spec
='${libname}${release}${shared_ext}$major'
10676 if test "X$HPUX_IA64_MODE" = X32
; then
10677 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10679 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10681 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10685 hardcode_into_libs
=yes
10686 dynamic_linker
="$host_os dld.sl"
10687 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10688 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10689 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690 soname_spec
='${libname}${release}${shared_ext}$major'
10691 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10692 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10696 dynamic_linker
="$host_os dld.sl"
10697 shlibpath_var
=SHLIB_PATH
10698 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10699 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 soname_spec
='${libname}${release}${shared_ext}$major'
10703 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10704 postinstall_cmds
='chmod 555 $lib'
10705 # or fails outright, so override atomically:
10706 install_override_mode
=555
10713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10714 soname_spec
='${libname}${release}${shared_ext}$major'
10715 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10716 shlibpath_var
=LD_LIBRARY_PATH
10717 shlibpath_overrides_runpath
=no
10718 hardcode_into_libs
=yes
10721 irix5
* | irix6
* | nonstopux
*)
10723 nonstopux
*) version_type
=nonstopux
;;
10725 if test "$lt_cv_prog_gnu_ld" = yes; then
10733 soname_spec
='${libname}${release}${shared_ext}$major'
10734 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10736 irix5
* | nonstopux
*)
10737 libsuff
= shlibsuff
=
10740 case $LD in # libtool.m4 will add one of these switches to LD
10741 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10742 libsuff
= shlibsuff
= libmagic
=32-bit;;
10743 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10744 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10745 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10746 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10747 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10751 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10752 shlibpath_overrides_runpath
=no
10753 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10754 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10755 hardcode_into_libs
=yes
10758 # No shared lib support for Linux oldld, aout, or coff.
10759 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10763 # This must be Linux ELF.
10764 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
10768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 soname_spec
='${libname}${release}${shared_ext}$major'
10770 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10771 shlibpath_var
=LD_LIBRARY_PATH
10772 shlibpath_overrides_runpath
=no
10774 # Some binutils ld are patched to set DT_RUNPATH
10775 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10776 $as_echo_n "(cached) " >&6
10778 lt_cv_shlibpath_overrides_runpath
=no
10779 save_LDFLAGS
=$LDFLAGS
10780 save_libdir
=$libdir
10781 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10782 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10794 if ac_fn_c_try_link
"$LINENO"; then :
10795 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10796 lt_cv_shlibpath_overrides_runpath
=yes
10799 rm -f core conftest.err conftest.
$ac_objext \
10800 conftest
$ac_exeext conftest.
$ac_ext
10801 LDFLAGS
=$save_LDFLAGS
10802 libdir
=$save_libdir
10806 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10808 # This implies no fast_install, which is unacceptable.
10809 # Some rework will be needed to allow for fast_install
10810 # before this can be enabled.
10811 hardcode_into_libs
=yes
10813 # Append ld.so.conf contents to the search path
10814 if test -f /etc
/ld.so.conf
; then
10815 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' ' '`
10816 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10819 # We used to test for /lib/ld.so.1 and disable shared libraries on
10820 # powerpc, because MkLinux only supported shared libraries with the
10821 # GNU dynamic linker. Since this was broken with cross compilers,
10822 # most powerpc-linux boxes support dynamic linking these days and
10823 # people can always --disable-shared, the test was removed, and we
10824 # assume the GNU/Linux dynamic linker is in use.
10825 dynamic_linker
='GNU/Linux ld.so'
10832 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10834 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10835 dynamic_linker
='NetBSD (a.out) ld.so'
10837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10838 soname_spec
='${libname}${release}${shared_ext}$major'
10839 dynamic_linker
='NetBSD ld.elf_so'
10841 shlibpath_var
=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath
=yes
10843 hardcode_into_libs
=yes
10848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 shlibpath_var
=LD_LIBRARY_PATH
10850 shlibpath_overrides_runpath
=yes
10857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 soname_spec
='${libname}${release}${shared_ext}$major'
10859 shlibpath_var
=LD_LIBRARY_PATH
10860 shlibpath_overrides_runpath
=no
10861 hardcode_into_libs
=yes
10862 dynamic_linker
='ldqnx.so'
10867 sys_lib_dlsearch_path_spec
="/usr/lib"
10869 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10871 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10872 *) need_version
=no
;;
10874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10875 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10876 shlibpath_var
=LD_LIBRARY_PATH
10877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10879 openbsd2.
[89] | openbsd2.
[89].
*)
10880 shlibpath_overrides_runpath
=no
10883 shlibpath_overrides_runpath
=yes
10887 shlibpath_overrides_runpath
=yes
10892 libname_spec
='$name'
10895 library_names_spec
='$libname${shared_ext} $libname.a'
10896 dynamic_linker
='OS/2 ld.exe'
10897 shlibpath_var
=LIBPATH
10900 osf3
* | osf4
* | osf5
*)
10904 soname_spec
='${libname}${release}${shared_ext}$major'
10905 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906 shlibpath_var
=LD_LIBRARY_PATH
10907 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10908 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10919 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920 soname_spec
='${libname}${release}${shared_ext}$major'
10921 shlibpath_var
=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath
=yes
10923 hardcode_into_libs
=yes
10924 # ldd complains unless libraries are executable
10925 postinstall_cmds
='chmod +x $lib'
10930 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10931 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10932 shlibpath_var
=LD_LIBRARY_PATH
10933 shlibpath_overrides_runpath
=yes
10934 if test "$with_gnu_ld" = yes; then
10942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 soname_spec
='${libname}${release}${shared_ext}$major'
10944 shlibpath_var
=LD_LIBRARY_PATH
10945 case $host_vendor in
10947 shlibpath_overrides_runpath
=no
10949 runpath_var
=LD_RUN_PATH
10957 shlibpath_overrides_runpath
=no
10958 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10964 if test -d /usr
/nec
;then
10966 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10967 soname_spec
='$libname${shared_ext}.$major'
10968 shlibpath_var
=LD_LIBRARY_PATH
10972 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10973 version_type
=freebsd-elf
10976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10977 soname_spec
='${libname}${release}${shared_ext}$major'
10978 shlibpath_var
=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath
=yes
10980 hardcode_into_libs
=yes
10981 if test "$with_gnu_ld" = yes; then
10982 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10984 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10987 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10991 sys_lib_dlsearch_path_spec
='/usr/lib'
10995 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 shlibpath_var
=LD_LIBRARY_PATH
11001 shlibpath_overrides_runpath
=no
11002 hardcode_into_libs
=yes
11007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 soname_spec
='${libname}${release}${shared_ext}$major'
11009 shlibpath_var
=LD_LIBRARY_PATH
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11017 $as_echo "$dynamic_linker" >&6; }
11018 test "$dynamic_linker" = no
&& can_build_shared
=no
11020 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11021 if test "$GCC" = yes; then
11022 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11025 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11026 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11028 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11029 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11124 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11126 if test -n "$hardcode_libdir_flag_spec" ||
11127 test -n "$runpath_var" ||
11128 test "X$hardcode_automatic" = "Xyes" ; then
11130 # We can hardcode non-existent directories.
11131 if test "$hardcode_direct" != no
&&
11132 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11133 # have to relink, otherwise we might link with an installed library
11134 # when we should be linking with a yet-to-be-installed one
11135 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11136 test "$hardcode_minus_L" != no
; then
11137 # Linking always hardcodes the temporary library directory.
11138 hardcode_action
=relink
11140 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11141 hardcode_action
=immediate
11144 # We cannot hardcode anything, or else we can only hardcode existing
11146 hardcode_action
=unsupported
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11149 $as_echo "$hardcode_action" >&6; }
11151 if test "$hardcode_action" = relink ||
11152 test "$inherit_rpath" = yes; then
11153 # Fast installation is not supported
11154 enable_fast_install
=no
11155 elif test "$shlibpath_overrides_runpath" = yes ||
11156 test "$enable_shared" = no
; then
11157 # Fast installation is not necessary
11158 enable_fast_install
=needless
11166 if test "x$enable_dlopen" != xyes
; then
11167 enable_dlopen
=unknown
11168 enable_dlopen_self
=unknown
11169 enable_dlopen_self_static
=unknown
11176 lt_cv_dlopen
="load_add_on"
11178 lt_cv_dlopen_self
=yes
11181 mingw
* | pw32
* | cegcc
*)
11182 lt_cv_dlopen
="LoadLibrary"
11187 lt_cv_dlopen
="dlopen"
11192 # if libdl is installed we need to link against it
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11194 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11195 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11196 $as_echo_n "(cached) " >&6
11198 ac_check_lib_save_LIBS
=$LIBS
11200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11203 /* Override any GCC internal prototype to avoid an error.
11204 Use char because int might match the return type of a GCC
11205 builtin and then its argument prototype would still apply. */
11218 if ac_fn_c_try_link
"$LINENO"; then :
11219 ac_cv_lib_dl_dlopen
=yes
11221 ac_cv_lib_dl_dlopen
=no
11223 rm -f core conftest.err conftest.
$ac_objext \
11224 conftest
$ac_exeext conftest.
$ac_ext
11225 LIBS
=$ac_check_lib_save_LIBS
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11228 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11229 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11230 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11233 lt_cv_dlopen
="dyld"
11235 lt_cv_dlopen_self
=yes
11242 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11243 if test "x$ac_cv_func_shl_load" = xyes
; then :
11244 lt_cv_dlopen
="shl_load"
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11247 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11248 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11249 $as_echo_n "(cached) " >&6
11251 ac_check_lib_save_LIBS
=$LIBS
11253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11266 return shl_load ();
11271 if ac_fn_c_try_link
"$LINENO"; then :
11272 ac_cv_lib_dld_shl_load
=yes
11274 ac_cv_lib_dld_shl_load
=no
11276 rm -f core conftest.err conftest.
$ac_objext \
11277 conftest
$ac_exeext conftest.
$ac_ext
11278 LIBS
=$ac_check_lib_save_LIBS
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11281 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11282 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11283 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11285 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11286 if test "x$ac_cv_func_dlopen" = xyes
; then :
11287 lt_cv_dlopen
="dlopen"
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11290 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11291 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11292 $as_echo_n "(cached) " >&6
11294 ac_check_lib_save_LIBS
=$LIBS
11296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11314 if ac_fn_c_try_link
"$LINENO"; then :
11315 ac_cv_lib_dl_dlopen
=yes
11317 ac_cv_lib_dl_dlopen
=no
11319 rm -f core conftest.err conftest.
$ac_objext \
11320 conftest
$ac_exeext conftest.
$ac_ext
11321 LIBS
=$ac_check_lib_save_LIBS
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11324 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11325 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11326 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11329 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11330 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11331 $as_echo_n "(cached) " >&6
11333 ac_check_lib_save_LIBS
=$LIBS
11334 LIBS
="-lsvld $LIBS"
11335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11338 /* Override any GCC internal prototype to avoid an error.
11339 Use char because int might match the return type of a GCC
11340 builtin and then its argument prototype would still apply. */
11353 if ac_fn_c_try_link
"$LINENO"; then :
11354 ac_cv_lib_svld_dlopen
=yes
11356 ac_cv_lib_svld_dlopen
=no
11358 rm -f core conftest.err conftest.
$ac_objext \
11359 conftest
$ac_exeext conftest.
$ac_ext
11360 LIBS
=$ac_check_lib_save_LIBS
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11363 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11364 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11365 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11368 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11369 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11370 $as_echo_n "(cached) " >&6
11372 ac_check_lib_save_LIBS
=$LIBS
11374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11377 /* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11387 return dld_link ();
11392 if ac_fn_c_try_link
"$LINENO"; then :
11393 ac_cv_lib_dld_dld_link
=yes
11395 ac_cv_lib_dld_dld_link
=no
11397 rm -f core conftest.err conftest.
$ac_objext \
11398 conftest
$ac_exeext conftest.
$ac_ext
11399 LIBS
=$ac_check_lib_save_LIBS
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11402 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11403 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11404 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11425 if test "x$lt_cv_dlopen" != xno
; then
11431 case $lt_cv_dlopen in
11433 save_CPPFLAGS
="$CPPFLAGS"
11434 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11436 save_LDFLAGS
="$LDFLAGS"
11437 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11440 LIBS
="$lt_cv_dlopen_libs $LIBS"
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11443 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11444 if ${lt_cv_dlopen_self+:} false
; then :
11445 $as_echo_n "(cached) " >&6
11447 if test "$cross_compiling" = yes; then :
11448 lt_cv_dlopen_self
=cross
11450 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11451 lt_status
=$lt_dlunknown
11452 cat > conftest.
$ac_ext <<_LT_EOF
11453 #line 11453 "configure"
11454 #include "confdefs.h"
11463 # define LT_DLGLOBAL RTLD_GLOBAL
11466 # define LT_DLGLOBAL DL_GLOBAL
11468 # define LT_DLGLOBAL 0
11472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11473 find out it does not work in some platform. */
11474 #ifndef LT_DLLAZY_OR_NOW
11476 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11479 # define LT_DLLAZY_OR_NOW DL_LAZY
11482 # define LT_DLLAZY_OR_NOW RTLD_NOW
11485 # define LT_DLLAZY_OR_NOW DL_NOW
11487 # define LT_DLLAZY_OR_NOW 0
11494 /* When -fvisbility=hidden is used, assume the code has been annotated
11495 correspondingly for the symbols needed. */
11496 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11497 void fnord () __attribute__((visibility("default")));
11500 void fnord () { int i=42; }
11503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11504 int status = $lt_dlunknown;
11508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11511 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11512 else puts (dlerror ());
11514 /* dlclose (self); */
11522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11523 (eval $ac_link) 2>&5
11525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11526 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11527 (.
/conftest
; exit; ) >&5 2>/dev
/null
11529 case x
$lt_status in
11530 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11531 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11532 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11535 # compilation failed
11536 lt_cv_dlopen_self
=no
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11544 $as_echo "$lt_cv_dlopen_self" >&6; }
11546 if test "x$lt_cv_dlopen_self" = xyes
; then
11547 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11549 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11550 if ${lt_cv_dlopen_self_static+:} false
; then :
11551 $as_echo_n "(cached) " >&6
11553 if test "$cross_compiling" = yes; then :
11554 lt_cv_dlopen_self_static
=cross
11556 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11557 lt_status
=$lt_dlunknown
11558 cat > conftest.
$ac_ext <<_LT_EOF
11559 #line 11559 "configure"
11560 #include "confdefs.h"
11569 # define LT_DLGLOBAL RTLD_GLOBAL
11572 # define LT_DLGLOBAL DL_GLOBAL
11574 # define LT_DLGLOBAL 0
11578 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11579 find out it does not work in some platform. */
11580 #ifndef LT_DLLAZY_OR_NOW
11582 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11585 # define LT_DLLAZY_OR_NOW DL_LAZY
11588 # define LT_DLLAZY_OR_NOW RTLD_NOW
11591 # define LT_DLLAZY_OR_NOW DL_NOW
11593 # define LT_DLLAZY_OR_NOW 0
11600 /* When -fvisbility=hidden is used, assume the code has been annotated
11601 correspondingly for the symbols needed. */
11602 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11603 void fnord () __attribute__((visibility("default")));
11606 void fnord () { int i=42; }
11609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11610 int status = $lt_dlunknown;
11614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11617 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11618 else puts (dlerror ());
11620 /* dlclose (self); */
11628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11629 (eval $ac_link) 2>&5
11631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11632 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11633 (.
/conftest
; exit; ) >&5 2>/dev
/null
11635 case x
$lt_status in
11636 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11637 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11638 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11641 # compilation failed
11642 lt_cv_dlopen_self_static
=no
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11650 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11653 CPPFLAGS
="$save_CPPFLAGS"
11654 LDFLAGS
="$save_LDFLAGS"
11659 case $lt_cv_dlopen_self in
11660 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11661 *) enable_dlopen_self
=unknown
;;
11664 case $lt_cv_dlopen_self_static in
11665 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11666 *) enable_dlopen_self_static
=unknown
;;
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11689 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11690 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11691 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11692 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11694 $as_echo "yes" >&6; }
11696 # FIXME - insert some real tests, host_os isn't really good enough
11699 if test -n "$STRIP" ; then
11700 striplib
="$STRIP -x"
11701 old_striplib
="$STRIP -S"
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11703 $as_echo "yes" >&6; }
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11727 # Report which library types will actually be built
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11729 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11731 $as_echo "$can_build_shared" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11734 $as_echo_n "checking whether to build shared libraries... " >&6; }
11735 test "$can_build_shared" = "no" && enable_shared
=no
11737 # On AIX, shared libraries and static libraries use the same namespace, and
11738 # are all built from PIC.
11741 test "$enable_shared" = yes && enable_static
=no
11742 if test -n "$RANLIB"; then
11743 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11744 postinstall_cmds
='$RANLIB $lib'
11749 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11750 test "$enable_shared" = yes && enable_static
=no
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11755 $as_echo "$enable_shared" >&6; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11758 $as_echo_n "checking whether to build static libraries... " >&6; }
11759 # Make sure either enable_shared or enable_static is yes.
11760 test "$enable_shared" = yes || enable_static
=yes
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11762 $as_echo "$enable_static" >&6; }
11769 ac_cpp
='$CPP $CPPFLAGS'
11770 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11776 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11777 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11778 (test "X$CXX" != "Xg++"))) ; then
11780 ac_cpp
='$CXXCPP $CPPFLAGS'
11781 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11782 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11783 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11785 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11786 if test -z "$CXXCPP"; then
11787 if ${ac_cv_prog_CXXCPP+:} false
; then :
11788 $as_echo_n "(cached) " >&6
11790 # Double quotes because CXXCPP needs to be expanded
11791 for CXXCPP
in "$CXX -E" "/lib/cpp"
11793 ac_preproc_ok
=false
11794 for ac_cxx_preproc_warn_flag
in '' yes
11796 # Use a header file that comes with gcc, so configuring glibc
11797 # with a fresh cross-compiler works.
11798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11799 # <limits.h> exists even on freestanding compilers.
11800 # On the NeXT, cc -E runs the code through the compiler's parser,
11801 # not just through cpp. "Syntax error" is here to catch this case.
11802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11805 # include <limits.h>
11807 # include <assert.h>
11811 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11814 # Broken: fails on valid input.
11817 rm -f conftest.err conftest.i conftest.
$ac_ext
11819 # OK, works on sane cases. Now check whether nonexistent headers
11820 # can be detected and how.
11821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11823 #include <ac_nonexistent.h>
11825 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11826 # Broken: success on invalid input.
11829 # Passes both tests.
11833 rm -f conftest.err conftest.i conftest.
$ac_ext
11836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11837 rm -f conftest.i conftest.err conftest.
$ac_ext
11838 if $ac_preproc_ok; then :
11843 ac_cv_prog_CXXCPP
=$CXXCPP
11846 CXXCPP
=$ac_cv_prog_CXXCPP
11848 ac_cv_prog_CXXCPP
=$CXXCPP
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11851 $as_echo "$CXXCPP" >&6; }
11852 ac_preproc_ok
=false
11853 for ac_cxx_preproc_warn_flag
in '' yes
11855 # Use a header file that comes with gcc, so configuring glibc
11856 # with a fresh cross-compiler works.
11857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11858 # <limits.h> exists even on freestanding compilers.
11859 # On the NeXT, cc -E runs the code through the compiler's parser,
11860 # not just through cpp. "Syntax error" is here to catch this case.
11861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11864 # include <limits.h>
11866 # include <assert.h>
11870 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11873 # Broken: fails on valid input.
11876 rm -f conftest.err conftest.i conftest.
$ac_ext
11878 # OK, works on sane cases. Now check whether nonexistent headers
11879 # can be detected and how.
11880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11882 #include <ac_nonexistent.h>
11884 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11885 # Broken: success on invalid input.
11888 # Passes both tests.
11892 rm -f conftest.err conftest.i conftest.
$ac_ext
11895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11896 rm -f conftest.i conftest.err conftest.
$ac_ext
11897 if $ac_preproc_ok; then :
11900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11902 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
11903 See \`config.log' for more details" "$LINENO" 5; }
11907 ac_cpp
='$CPP $CPPFLAGS'
11908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11913 _lt_caught_CXX_error
=yes
11917 ac_cpp
='$CXXCPP $CPPFLAGS'
11918 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11919 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11920 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11922 archive_cmds_need_lc_CXX
=no
11923 allow_undefined_flag_CXX
=
11924 always_export_symbols_CXX
=no
11925 archive_expsym_cmds_CXX
=
11926 compiler_needs_object_CXX
=no
11927 export_dynamic_flag_spec_CXX
=
11928 hardcode_direct_CXX
=no
11929 hardcode_direct_absolute_CXX
=no
11930 hardcode_libdir_flag_spec_CXX
=
11931 hardcode_libdir_flag_spec_ld_CXX
=
11932 hardcode_libdir_separator_CXX
=
11933 hardcode_minus_L_CXX
=no
11934 hardcode_shlibpath_var_CXX
=unsupported
11935 hardcode_automatic_CXX
=no
11936 inherit_rpath_CXX
=no
11938 module_expsym_cmds_CXX
=
11939 link_all_deplibs_CXX
=unknown
11940 old_archive_cmds_CXX
=$old_archive_cmds
11941 reload_flag_CXX
=$reload_flag
11942 reload_cmds_CXX
=$reload_cmds
11943 no_undefined_flag_CXX
=
11944 whole_archive_flag_spec_CXX
=
11945 enable_shared_with_static_runtimes_CXX
=no
11947 # Source file extension for C++ test sources.
11950 # Object file extension for compiled C++ test sources.
11954 # No sense in running all these tests if we already determined that
11955 # the CXX compiler isn't working. Some variables (like enable_shared)
11956 # are currently assumed to apply to all compilers on this platform,
11957 # and will be corrupted by setting them based on a non-working compiler.
11958 if test "$_lt_caught_CXX_error" != yes; then
11959 # Code to be used in simple compile tests
11960 lt_simple_compile_test_code
="int some_variable = 0;"
11962 # Code to be used in simple link tests
11963 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
11965 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11972 # If no C compiler was specified, use CC.
11975 # If no C compiler flags were specified, use CFLAGS.
11976 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11978 # Allow CC to be a program name with arguments.
11982 # save warnings/boilerplate of simple test code
11983 ac_outfile
=conftest.
$ac_objext
11984 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11985 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11986 _lt_compiler_boilerplate
=`cat conftest.err`
11989 ac_outfile
=conftest.
$ac_objext
11990 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11991 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11992 _lt_linker_boilerplate
=`cat conftest.err`
11996 # Allow CC to be a program name with arguments.
12001 lt_save_with_gnu_ld
=$with_gnu_ld
12002 lt_save_path_LD
=$lt_cv_path_LD
12003 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12004 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12006 $as_unset lt_cv_prog_gnu_ld
12008 if test -n "${lt_cv_path_LDCXX+set}"; then
12009 lt_cv_path_LD
=$lt_cv_path_LDCXX
12011 $as_unset lt_cv_path_LD
12013 test -z "${LDCXX+set}" || LD
=$LDCXX
12017 for cc_temp
in $compiler""; do
12019 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12020 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12025 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12028 if test -n "$compiler"; then
12029 # We don't want -fno-exception when compiling C++ code, so set the
12030 # no_builtin_flag separately
12031 if test "$GXX" = yes; then
12032 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12034 lt_prog_compiler_no_builtin_flag_CXX
=
12037 if test "$GXX" = yes; then
12038 # Set up default GNU C++ configuration
12042 # Check whether --with-gnu-ld was given.
12043 if test "${with_gnu_ld+set}" = set; then :
12044 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12050 if test "$GCC" = yes; then
12051 # Check if gcc -print-prog-name=ld gives a path.
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12053 $as_echo_n "checking for ld used by $CC... " >&6; }
12056 # gcc leaves a trailing carriage return which upsets mingw
12057 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12059 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12062 # Accept absolute paths.
12064 re_direlt
='/[^/][^/]*/\.\./'
12065 # Canonicalize the pathname of ld
12066 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12067 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12068 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12070 test -z "$LD" && LD
="$ac_prog"
12073 # If it fails, then pretend we aren't using GCC.
12077 # If it is relative, then search for the first ld in PATH.
12078 with_gnu_ld
=unknown
12081 elif test "$with_gnu_ld" = yes; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12083 $as_echo_n "checking for GNU ld... " >&6; }
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12086 $as_echo_n "checking for non-GNU ld... " >&6; }
12088 if ${lt_cv_path_LD+:} false
; then :
12089 $as_echo_n "(cached) " >&6
12091 if test -z "$LD"; then
12092 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12093 for ac_dir
in $PATH; do
12095 test -z "$ac_dir" && ac_dir
=.
12096 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12097 lt_cv_path_LD
="$ac_dir/$ac_prog"
12098 # Check to see if the program is GNU ld. I'd rather use --version,
12099 # but apparently some variants of GNU ld only accept -v.
12100 # Break only if it was the GNU/non-GNU ld that we prefer.
12101 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12102 *GNU
* |
*'with BFD'*)
12103 test "$with_gnu_ld" != no
&& break
12106 test "$with_gnu_ld" != yes && break
12113 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12117 LD
="$lt_cv_path_LD"
12118 if test -n "$LD"; then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12120 $as_echo "$LD" >&6; }
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12125 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12127 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12128 if ${lt_cv_prog_gnu_ld+:} false
; then :
12129 $as_echo_n "(cached) " >&6
12131 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12132 case `$LD -v 2>&1 </dev/null` in
12133 *GNU
* |
*'with BFD'*)
12134 lt_cv_prog_gnu_ld
=yes
12137 lt_cv_prog_gnu_ld
=no
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12142 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12143 with_gnu_ld
=$lt_cv_prog_gnu_ld
12151 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12152 # archiving commands below assume that GNU ld is being used.
12153 if test "$with_gnu_ld" = yes; then
12154 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12155 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'
12157 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12158 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12160 # If archive_cmds runs LD, not CC, wlarc should be empty
12161 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12162 # investigate it a little bit more. (MM)
12165 # ancient GNU ld didn't support --whole-archive et. al.
12166 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12167 $GREP 'no-whole-archive' > /dev
/null
; then
12168 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12170 whole_archive_flag_spec_CXX
=
12176 # A generic and very simple default shared library creation
12177 # command for GNU C++ for the case where it uses the native
12178 # linker, instead of GNU ld. If possible, this setting should
12179 # overridden to take advantage of the native linker features on
12180 # the platform it is being used on.
12181 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12184 # Commands to make compiler produce verbose output that lists
12185 # what "hidden" libraries, object files and flags are used when
12186 # linking a shared library.
12187 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12195 # PORTME: fill in a description of your system's C++ link characteristics
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12197 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12201 # FIXME: insert proper C++ library support
12205 if test "$host_cpu" = ia64
; then
12206 # On IA64, the linker does run time linking by default, so we don't
12207 # have to do anything special.
12208 aix_use_runtimelinking
=no
12209 exp_sym_flag
='-Bexport'
12212 aix_use_runtimelinking
=no
12214 # Test if we are trying to use run time linking or normal
12215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12216 # need to do runtime linking.
12217 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12218 for ld_flag
in $LDFLAGS; do
12221 aix_use_runtimelinking
=yes
12229 exp_sym_flag
='-bexport'
12230 no_entry_flag
='-bnoentry'
12233 # When large executables or shared objects are built, AIX ld can
12234 # have problems creating the table of contents. If linking a library
12235 # or program results in "error TOC overflow" add -mminimal-toc to
12236 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12237 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12239 archive_cmds_CXX
=''
12240 hardcode_direct_CXX
=yes
12241 hardcode_direct_absolute_CXX
=yes
12242 hardcode_libdir_separator_CXX
=':'
12243 link_all_deplibs_CXX
=yes
12244 file_list_spec_CXX
='${wl}-f,'
12246 if test "$GXX" = yes; then
12247 case $host_os in aix4.
[012]|aix4.
[012].
*)
12248 # We only want to do this on AIX 4.2 and lower, the check
12249 # below for broken collect2 doesn't work under 4.3+
12250 collect2name
=`${CC} -print-prog-name=collect2`
12251 if test -f "$collect2name" &&
12252 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12254 # We have reworked collect2
12257 # We have old collect2
12258 hardcode_direct_CXX
=unsupported
12259 # It fails to find uninstalled libraries when the uninstalled
12260 # path is not listed in the libpath. Setting hardcode_minus_L
12261 # to unsupported forces relinking
12262 hardcode_minus_L_CXX
=yes
12263 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12264 hardcode_libdir_separator_CXX
=
12267 shared_flag
='-shared'
12268 if test "$aix_use_runtimelinking" = yes; then
12269 shared_flag
="$shared_flag "'${wl}-G'
12273 if test "$host_cpu" = ia64
; then
12274 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12275 # chokes on -Wl,-G. The following line is correct:
12278 if test "$aix_use_runtimelinking" = yes; then
12279 shared_flag
='${wl}-G'
12281 shared_flag
='${wl}-bM:SRE'
12286 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12287 # It seems that -bexpall does not export symbols beginning with
12288 # underscore (_), so it is better to generate a list of symbols to
12290 always_export_symbols_CXX
=yes
12291 if test "$aix_use_runtimelinking" = yes; then
12292 # Warning - without using the other runtime loading flags (-brtl),
12293 # -berok will link without error, but may produce a broken library.
12294 allow_undefined_flag_CXX
='-berok'
12295 # Determine the default libpath from the value encoded in an empty
12297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12308 if ac_fn_cxx_try_link
"$LINENO"; then :
12310 lt_aix_libpath_sed
='
12311 /Import File Strings/,/^$/ {
12317 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12318 # Check for a 64-bit object if we didn't find anything.
12319 if test -z "$aix_libpath"; then
12320 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12323 rm -f core conftest.err conftest.
$ac_objext \
12324 conftest
$ac_exeext conftest.
$ac_ext
12325 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12327 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12329 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"
12331 if test "$host_cpu" = ia64
; then
12332 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12333 allow_undefined_flag_CXX
="-z nodefs"
12334 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"
12336 # Determine the default libpath from the value encoded in an
12337 # empty executable.
12338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12349 if ac_fn_cxx_try_link
"$LINENO"; then :
12351 lt_aix_libpath_sed
='
12352 /Import File Strings/,/^$/ {
12358 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12359 # Check for a 64-bit object if we didn't find anything.
12360 if test -z "$aix_libpath"; then
12361 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12364 rm -f core conftest.err conftest.
$ac_objext \
12365 conftest
$ac_exeext conftest.
$ac_ext
12366 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12368 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12369 # Warning - without using the other run time loading flags,
12370 # -berok will link without error, but may produce a broken library.
12371 no_undefined_flag_CXX
=' ${wl}-bernotok'
12372 allow_undefined_flag_CXX
=' ${wl}-berok'
12373 if test "$with_gnu_ld" = yes; then
12374 # We only use this code for GNU lds that support --whole-archive.
12375 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12377 # Exported symbols can be pulled into shared objects from archives
12378 whole_archive_flag_spec_CXX
='$convenience'
12380 archive_cmds_need_lc_CXX
=yes
12381 # This is similar to how AIX traditionally builds its shared
12383 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'
12389 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12390 allow_undefined_flag_CXX
=unsupported
12391 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12392 # support --undefined. This deserves some investigation. FIXME
12393 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12400 case $cc_basename in
12402 # FIXME: insert proper C++ library support
12408 cygwin
* | mingw
* | pw32
* | cegcc
*)
12409 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12410 # as there is no search path for DLLs.
12411 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12412 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12413 allow_undefined_flag_CXX
=unsupported
12414 always_export_symbols_CXX
=no
12415 enable_shared_with_static_runtimes_CXX
=yes
12417 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12418 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'
12419 # If the export-symbols file already is a .def file (1st line
12420 # is EXPORTS), use it as is; otherwise, prepend...
12421 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12422 cp $export_symbols $output_objdir/$soname.def;
12424 echo EXPORTS > $output_objdir/$soname.def;
12425 cat $export_symbols >> $output_objdir/$soname.def;
12427 $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'
12432 darwin
* | rhapsody
*)
12435 archive_cmds_need_lc_CXX
=no
12436 hardcode_direct_CXX
=no
12437 hardcode_automatic_CXX
=yes
12438 hardcode_shlibpath_var_CXX
=unsupported
12439 if test "$lt_cv_ld_force_load" = "yes"; then
12440 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\"`'
12442 whole_archive_flag_spec_CXX
=''
12444 link_all_deplibs_CXX
=yes
12445 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
12446 case $cc_basename in
12447 ifort
*) _lt_dar_can_shared
=yes ;;
12448 *) _lt_dar_can_shared
=$GCC ;;
12450 if test "$_lt_dar_can_shared" = "yes"; then
12451 output_verbose_link_cmd
=func_echo_all
12452 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}"
12453 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12454 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}"
12455 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}"
12456 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12457 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}"
12458 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}"
12468 case $cc_basename in
12470 # FIXME: insert proper C++ library support
12474 # Green Hills C++ Compiler
12475 # FIXME: insert proper C++ library support
12479 # FIXME: insert proper C++ library support
12486 # C++ shared libraries reported to be fairly broken before
12492 archive_cmds_need_lc_CXX
=no
12495 freebsd
* | dragonfly
*)
12496 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12505 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12506 link_all_deplibs_CXX
=yes
12510 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12511 hardcode_libdir_separator_CXX
=:
12512 export_dynamic_flag_spec_CXX
='${wl}-E'
12513 hardcode_direct_CXX
=yes
12514 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12515 # but as the default
12516 # location of the library.
12518 case $cc_basename in
12520 # FIXME: insert proper C++ library support
12524 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'
12525 # Commands to make compiler produce verbose output that lists
12526 # what "hidden" libraries, object files and flags are used when
12527 # linking a shared library.
12529 # There doesn't appear to be a way to prevent this compiler from
12530 # explicitly linking system object files so we need to strip them
12531 # from the output so that they don't get included in the library
12533 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"'
12536 if test "$GXX" = yes; then
12537 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'
12539 # FIXME: insert proper C++ library support
12547 if test $with_gnu_ld = no
; then
12548 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12549 hardcode_libdir_separator_CXX
=:
12555 export_dynamic_flag_spec_CXX
='${wl}-E'
12561 hardcode_direct_CXX
=no
12562 hardcode_shlibpath_var_CXX
=no
12565 hardcode_direct_CXX
=yes
12566 hardcode_direct_absolute_CXX
=yes
12567 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12568 # but as the default
12569 # location of the library.
12573 case $cc_basename in
12575 # FIXME: insert proper C++ library support
12581 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12584 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12587 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12590 # Commands to make compiler produce verbose output that lists
12591 # what "hidden" libraries, object files and flags are used when
12592 # linking a shared library.
12594 # There doesn't appear to be a way to prevent this compiler from
12595 # explicitly linking system object files so we need to strip them
12596 # from the output so that they don't get included in the library
12598 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"'
12601 if test "$GXX" = yes; then
12602 if test $with_gnu_ld = no
; then
12605 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12608 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12611 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'
12616 # FIXME: insert proper C++ library support
12624 hardcode_direct_CXX
=no
12625 hardcode_shlibpath_var_CXX
=no
12626 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12627 export_dynamic_flag_spec_CXX
='${wl}-E'
12628 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12629 # Instead, shared libraries are loaded at an image base (0x10000000 by
12630 # default) and relocated if they conflict, which is a slow very memory
12631 # consuming and fragmenting process. To avoid this, we pick a random,
12632 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12633 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12634 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'
12635 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'
12638 case $cc_basename in
12641 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'
12643 # Archives containing C++ object files must be created using
12644 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12645 # necessary to make sure instantiated templates are included
12647 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
12650 if test "$GXX" = yes; then
12651 if test "$with_gnu_ld" = no
; then
12652 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'
12654 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'
12657 link_all_deplibs_CXX
=yes
12660 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12661 hardcode_libdir_separator_CXX
=:
12662 inherit_rpath_CXX
=yes
12665 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12666 case $cc_basename in
12668 # Kuck and Associates, Inc. (KAI) C++ Compiler
12670 # KCC will only create a shared library if the output file
12671 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12672 # to its proper name (with version) after linking.
12673 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'
12674 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'
12675 # Commands to make compiler produce verbose output that lists
12676 # what "hidden" libraries, object files and flags are used when
12677 # linking a shared library.
12679 # There doesn't appear to be a way to prevent this compiler from
12680 # explicitly linking system object files so we need to strip them
12681 # from the output so that they don't get included in the library
12683 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"'
12685 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12686 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12688 # Archives containing C++ object files must be created using
12689 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12690 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12695 # version 8.0 and above of icpc choke on multiply defined symbols
12696 # if we add $predep_objects and $postdep_objects, however 7.1 and
12697 # earlier do not add the objects themselves.
12698 case `$CC -V 2>&1` in
12700 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12701 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'
12703 *) # Version 8.0 or newer
12706 ia64
*) tmp_idyn
=' -i_dynamic';;
12708 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12709 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'
12712 archive_cmds_need_lc_CXX
=no
12713 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12714 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12715 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12718 # Portland Group C++ compiler
12720 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
12721 prelink_cmds_CXX
='tpldir=Template.dir~
12723 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12724 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12725 old_archive_cmds_CXX
='tpldir=Template.dir~
12727 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12728 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12730 archive_cmds_CXX
='tpldir=Template.dir~
12732 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12733 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12734 archive_expsym_cmds_CXX
='tpldir=Template.dir~
12736 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12737 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12739 *) # Version 6 and above use weak symbols
12740 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12741 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'
12745 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
12746 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12747 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'
12751 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12752 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'
12754 runpath_var
=LD_RUN_PATH
12755 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12756 hardcode_libdir_separator_CXX
=:
12758 # Commands to make compiler produce verbose output that lists
12759 # what "hidden" libraries, object files and flags are used when
12760 # linking a shared library.
12762 # There doesn't appear to be a way to prevent this compiler from
12763 # explicitly linking system object files so we need to strip them
12764 # from the output so that they don't get included in the library
12766 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'
12768 xl
* | mpixl
* | bgxl
*)
12769 # IBM XL 8.0 on PPC, with GNU ld
12770 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12771 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12772 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773 if test "x$supports_anon_versioning" = xyes
; then
12774 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
12775 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12776 echo "local: *; };" >> $output_objdir/$libname.ver~
12777 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12781 case `$CC -V 2>&1 | sed 5q` in
12784 no_undefined_flag_CXX
=' -zdefs'
12785 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12786 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'
12787 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12788 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'
12789 compiler_needs_object_CXX
=yes
12791 # Not sure whether something based on
12792 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12794 output_verbose_link_cmd
='func_echo_all'
12796 # Archives containing C++ object files must be created using
12797 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12798 # necessary to make sure instantiated templates are included
12800 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12808 # FIXME: insert proper C++ library support
12813 # FIXME: insert proper C++ library support
12818 case $cc_basename in
12820 # FIXME: insert proper C++ library support
12824 # FIXME: insert proper C++ library support
12831 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12832 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12834 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12835 hardcode_direct_CXX
=yes
12836 hardcode_shlibpath_var_CXX
=no
12838 # Workaround some broken pre-1.5 toolchains
12839 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12847 # C++ shared libraries are fairly broken
12852 if test -f /usr
/libexec
/ld.so
; then
12853 hardcode_direct_CXX
=yes
12854 hardcode_shlibpath_var_CXX
=no
12855 hardcode_direct_absolute_CXX
=yes
12856 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12857 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12859 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12860 export_dynamic_flag_spec_CXX
='${wl}-E'
12861 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12863 output_verbose_link_cmd
=func_echo_all
12869 osf3
* | osf4
* | osf5
*)
12870 case $cc_basename in
12872 # Kuck and Associates, Inc. (KAI) C++ Compiler
12874 # KCC will only create a shared library if the output file
12875 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12876 # to its proper name (with version) after linking.
12877 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'
12879 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12880 hardcode_libdir_separator_CXX
=:
12882 # Archives containing C++ object files must be created using
12883 # the KAI C++ compiler.
12885 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
12886 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
12890 # Rational C++ 2.4.1
12891 # FIXME: insert proper C++ library support
12897 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12898 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'
12899 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12902 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12903 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'
12904 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12905 echo "-hidden">> $lib.exp~
12906 $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~
12908 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12912 hardcode_libdir_separator_CXX
=:
12914 # Commands to make compiler produce verbose output that lists
12915 # what "hidden" libraries, object files and flags are used when
12916 # linking a shared library.
12918 # There doesn't appear to be a way to prevent this compiler from
12919 # explicitly linking system object files so we need to strip them
12920 # from the output so that they don't get included in the library
12922 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"'
12925 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12926 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12929 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'
12932 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'
12936 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12937 hardcode_libdir_separator_CXX
=:
12939 # Commands to make compiler produce verbose output that lists
12940 # what "hidden" libraries, object files and flags are used when
12941 # linking a shared library.
12942 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12945 # FIXME: insert proper C++ library support
12953 # FIXME: insert proper C++ library support
12958 case $cc_basename in
12961 # FIXME: insert proper C++ library support
12966 # FIXME: insert proper C++ library support
12970 # FIXME: insert proper C++ library support
12977 case $cc_basename in
12979 # Sun C++ 4.2, 5.x and Centerline C++
12980 archive_cmds_need_lc_CXX
=yes
12981 no_undefined_flag_CXX
=' -zdefs'
12982 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12983 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12984 $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'
12986 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12987 hardcode_shlibpath_var_CXX
=no
12989 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12991 # The compiler driver will combine and reorder linker options,
12992 # but understands `-z linker_flag'.
12993 # Supported since Solaris 2.6 (maybe 2.5.1?)
12994 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
12997 link_all_deplibs_CXX
=yes
12999 output_verbose_link_cmd
='func_echo_all'
13001 # Archives containing C++ object files must be created using
13002 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13003 # necessary to make sure instantiated templates are included
13005 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13008 # Green Hills C++ Compiler
13009 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13011 # The C++ compiler must be used to create the archive.
13012 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13015 # GNU C++ compiler with Solaris linker
13016 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13017 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13018 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13019 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13020 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13021 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13023 # Commands to make compiler produce verbose output that lists
13024 # what "hidden" libraries, object files and flags are used when
13025 # linking a shared library.
13026 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13028 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13030 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13031 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13032 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13034 # Commands to make compiler produce verbose output that lists
13035 # what "hidden" libraries, object files and flags are used when
13036 # linking a shared library.
13037 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13040 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13042 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13044 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13052 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13053 no_undefined_flag_CXX
='${wl}-z,text'
13054 archive_cmds_need_lc_CXX
=no
13055 hardcode_shlibpath_var_CXX
=no
13056 runpath_var
='LD_RUN_PATH'
13058 case $cc_basename in
13060 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13061 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13064 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13065 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070 sysv5
* | sco3.2v5
* | sco5v6
*)
13071 # Note: We can NOT use -z defs as we might desire, because we do not
13072 # link with -lc, and that would cause any symbols used from libc to
13073 # always be unresolved, which means just about no library would
13074 # ever link correctly. If we're not using GNU ld we use -z text
13075 # though, which does catch some bad symbols but isn't as heavy-handed
13077 no_undefined_flag_CXX
='${wl}-z,text'
13078 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13079 archive_cmds_need_lc_CXX
=no
13080 hardcode_shlibpath_var_CXX
=no
13081 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13082 hardcode_libdir_separator_CXX
=':'
13083 link_all_deplibs_CXX
=yes
13084 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13085 runpath_var
='LD_RUN_PATH'
13087 case $cc_basename in
13089 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13091 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13092 '"$old_archive_cmds_CXX"
13093 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13094 '"$reload_cmds_CXX"
13097 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13098 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 case $cc_basename in
13106 # NonStop-UX NCC 3.20
13107 # FIXME: insert proper C++ library support
13111 # FIXME: insert proper C++ library support
13118 # FIXME: insert proper C++ library support
13123 # FIXME: insert proper C++ library support
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13129 $as_echo "$ld_shlibs_CXX" >&6; }
13130 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13136 ## There is no encapsulation within the following macros, do not change
13137 ## the running order or otherwise move them around unless you know exactly
13138 ## what you are doing...
13139 # Dependencies to place before and after the object being linked:
13140 predep_objects_CXX
=
13141 postdep_objects_CXX
=
13144 compiler_lib_search_path_CXX
=
13146 cat > conftest.
$ac_ext <<_LT_EOF
13150 Foo (void) { a = 0; }
13156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13157 (eval $ac_compile) 2>&5
13159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13160 test $ac_status = 0; }; then
13161 # Parse the compiler output and extract the necessary
13162 # objects, libraries and library flags.
13164 # Sentinel used to keep track of whether or not we are before
13165 # the conftest object file.
13166 pre_test_object_deps_done
=no
13168 for p
in `eval "$output_verbose_link_cmd"`; do
13172 # Some compilers place space between "-{L,R}" and the path.
13173 # Remove the space.
13174 if test $p = "-L" ||
13175 test $p = "-R"; then
13182 if test "$pre_test_object_deps_done" = no
; then
13185 # Internal compiler library paths should come after those
13186 # provided the user. The postdeps already come after the
13187 # user supplied libs so there is no need to process them.
13188 if test -z "$compiler_lib_search_path_CXX"; then
13189 compiler_lib_search_path_CXX
="${prev}${p}"
13191 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13194 # The "-l" case would never come before the object being
13195 # linked, so don't bother handling this case.
13198 if test -z "$postdeps_CXX"; then
13199 postdeps_CXX
="${prev}${p}"
13201 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13207 # This assumes that the test object file only shows up
13208 # once in the compiler output.
13209 if test "$p" = "conftest.$objext"; then
13210 pre_test_object_deps_done
=yes
13214 if test "$pre_test_object_deps_done" = no
; then
13215 if test -z "$predep_objects_CXX"; then
13216 predep_objects_CXX
="$p"
13218 predep_objects_CXX
="$predep_objects_CXX $p"
13221 if test -z "$postdep_objects_CXX"; then
13222 postdep_objects_CXX
="$p"
13224 postdep_objects_CXX
="$postdep_objects_CXX $p"
13229 *) ;; # Ignore the rest.
13237 echo "libtool.m4: error: problem compiling CXX test program"
13240 $RM -f confest.
$objext
13242 # PORTME: override above test on systems where it is broken
13245 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13246 # hack all around it, let's just trust "g++" to DTRT.
13247 predep_objects_CXX
=
13248 postdep_objects_CXX
=
13253 case `$CC -V 2>&1 | sed 5q` in
13257 # The more standards-conforming stlport4 library is
13258 # incompatible with the Cstd library. Avoid specifying
13259 # it if it's in CXXFLAGS. Ignore libCrun as
13260 # -library=stlport4 depends on it.
13261 case " $CXX $CXXFLAGS " in
13262 *" -library=stlport4 "*)
13263 solaris_use_stlport4
=yes
13267 if test "$solaris_use_stlport4" != yes; then
13268 postdeps_CXX
='-library=Cstd -library=Crun'
13275 case $cc_basename in
13277 # The more standards-conforming stlport4 library is
13278 # incompatible with the Cstd library. Avoid specifying
13279 # it if it's in CXXFLAGS. Ignore libCrun as
13280 # -library=stlport4 depends on it.
13281 case " $CXX $CXXFLAGS " in
13282 *" -library=stlport4 "*)
13283 solaris_use_stlport4
=yes
13287 # Adding this requires a known-good setup of shared libraries for
13288 # Sun compiler versions before 5.6, else PIC objects from an old
13289 # archive will be linked into the output, leading to subtle bugs.
13290 if test "$solaris_use_stlport4" != yes; then
13291 postdeps_CXX
='-library=Cstd -library=Crun'
13299 case " $postdeps_CXX " in
13300 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13302 compiler_lib_search_dirs_CXX
=
13303 if test -n "${compiler_lib_search_path_CXX}"; then
13304 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13337 lt_prog_compiler_wl_CXX
=
13338 lt_prog_compiler_pic_CXX
=
13339 lt_prog_compiler_static_CXX
=
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13342 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13344 # C++ specific cases for pic, static, wl, etc.
13345 if test "$GXX" = yes; then
13346 lt_prog_compiler_wl_CXX
='-Wl,'
13347 lt_prog_compiler_static_CXX
='-static'
13351 # All AIX code is PIC.
13352 if test "$host_cpu" = ia64
; then
13353 # AIX 5 now supports IA64 processor
13354 lt_prog_compiler_static_CXX
='-Bstatic'
13356 lt_prog_compiler_pic_CXX
='-fPIC'
13362 # see comment about AmigaOS4 .so support
13363 lt_prog_compiler_pic_CXX
='-fPIC'
13366 # FIXME: we need at least 68020 code to build shared libraries, but
13367 # adding the `-m68020' flag to GCC prevents building anything better,
13369 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13374 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13375 # PIC is the default for these OSes.
13377 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13378 # This hack is so that the source file can tell whether it is being
13379 # built for inclusion in a dll (and should export symbols for example).
13380 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13381 # (--disable-auto-import) libraries
13382 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13384 darwin
* | rhapsody
*)
13385 # PIC is the default on this platform
13386 # Common symbols not allowed in MH_DYLIB files
13387 lt_prog_compiler_pic_CXX
='-fno-common'
13390 # DJGPP does not support shared libraries at all
13391 lt_prog_compiler_pic_CXX
=
13394 # PIC is the default for Haiku.
13395 # The "-static" flag exists, but is broken.
13396 lt_prog_compiler_static_CXX
=
13399 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13400 # Instead, we relocate shared libraries at runtime.
13403 if test -d /usr
/nec
; then
13404 lt_prog_compiler_pic_CXX
=-Kconform_pic
13408 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13409 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13410 # sets the default TLS model and affects inlining.
13415 lt_prog_compiler_pic_CXX
='-fPIC'
13420 # QNX uses GNU C++, but need to define -shared option too, otherwise
13421 # it will coredump.
13422 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13425 lt_prog_compiler_pic_CXX
='-fPIC'
13431 # All AIX code is PIC.
13432 if test "$host_cpu" = ia64
; then
13433 # AIX 5 now supports IA64 processor
13434 lt_prog_compiler_static_CXX
='-Bstatic'
13436 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13440 case $cc_basename in
13442 # Green Hills C++ Compiler
13443 # _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"
13448 case $cc_basename in
13450 lt_prog_compiler_pic_CXX
='-KPIC'
13453 # Green Hills C++ Compiler
13454 lt_prog_compiler_pic_CXX
='-pic'
13460 freebsd
* | dragonfly
*)
13461 # FreeBSD uses GNU C++
13463 hpux9
* | hpux10
* | hpux11
*)
13464 case $cc_basename in
13466 lt_prog_compiler_wl_CXX
='-Wl,'
13467 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13468 if test "$host_cpu" != ia64
; then
13469 lt_prog_compiler_pic_CXX
='+Z'
13473 lt_prog_compiler_wl_CXX
='-Wl,'
13474 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13480 lt_prog_compiler_pic_CXX
='+Z'
13489 # This is c89, which is MS Visual C++ (no shared libs)
13490 # Anyone wants to do a port?
13492 irix5
* | irix6
* | nonstopux
*)
13493 case $cc_basename in
13495 lt_prog_compiler_wl_CXX
='-Wl,'
13496 lt_prog_compiler_static_CXX
='-non_shared'
13497 # CC pic flag -KPIC is the default.
13503 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13504 case $cc_basename in
13507 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13508 lt_prog_compiler_pic_CXX
='-fPIC'
13511 # old Intel C++ for x86_64 which still supported -KPIC.
13512 lt_prog_compiler_wl_CXX
='-Wl,'
13513 lt_prog_compiler_pic_CXX
='-KPIC'
13514 lt_prog_compiler_static_CXX
='-static'
13517 # Intel C++, used to be incompatible with GCC.
13518 # ICC 10 doesn't accept -KPIC any more.
13519 lt_prog_compiler_wl_CXX
='-Wl,'
13520 lt_prog_compiler_pic_CXX
='-fPIC'
13521 lt_prog_compiler_static_CXX
='-static'
13524 # Portland Group C++ compiler
13525 lt_prog_compiler_wl_CXX
='-Wl,'
13526 lt_prog_compiler_pic_CXX
='-fpic'
13527 lt_prog_compiler_static_CXX
='-Bstatic'
13531 # Make sure the PIC flag is empty. It appears that all Alpha
13532 # Linux and Compaq Tru64 Unix objects are PIC.
13533 lt_prog_compiler_pic_CXX
=
13534 lt_prog_compiler_static_CXX
='-non_shared'
13536 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
13537 # IBM XL 8.0, 9.0 on PPC and BlueGene
13538 lt_prog_compiler_wl_CXX
='-Wl,'
13539 lt_prog_compiler_pic_CXX
='-qpic'
13540 lt_prog_compiler_static_CXX
='-qstaticlink'
13543 case `$CC -V 2>&1 | sed 5q` in
13546 lt_prog_compiler_pic_CXX
='-KPIC'
13547 lt_prog_compiler_static_CXX
='-Bstatic'
13548 lt_prog_compiler_wl_CXX
='-Qoption ld '
13559 case $cc_basename in
13561 lt_prog_compiler_pic_CXX
='-W c,exportall'
13570 # QNX uses GNU C++, but need to define -shared option too, otherwise
13571 # it will coredump.
13572 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13574 osf3
* | osf4
* | osf5
*)
13575 case $cc_basename in
13577 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13580 # Rational C++ 2.4.1
13581 lt_prog_compiler_pic_CXX
='-pic'
13584 # Digital/Compaq C++
13585 lt_prog_compiler_wl_CXX
='-Wl,'
13586 # Make sure the PIC flag is empty. It appears that all Alpha
13587 # Linux and Compaq Tru64 Unix objects are PIC.
13588 lt_prog_compiler_pic_CXX
=
13589 lt_prog_compiler_static_CXX
='-non_shared'
13598 case $cc_basename in
13600 # Sun C++ 4.2, 5.x and Centerline C++
13601 lt_prog_compiler_pic_CXX
='-KPIC'
13602 lt_prog_compiler_static_CXX
='-Bstatic'
13603 lt_prog_compiler_wl_CXX
='-Qoption ld '
13606 # Green Hills C++ Compiler
13607 lt_prog_compiler_pic_CXX
='-PIC'
13614 case $cc_basename in
13617 lt_prog_compiler_pic_CXX
='-pic'
13618 lt_prog_compiler_static_CXX
='-Bstatic'
13622 lt_prog_compiler_pic_CXX
='-pic'
13628 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13629 case $cc_basename in
13631 lt_prog_compiler_wl_CXX
='-Wl,'
13632 lt_prog_compiler_pic_CXX
='-KPIC'
13633 lt_prog_compiler_static_CXX
='-Bstatic'
13638 case $cc_basename in
13640 # NonStop-UX NCC 3.20
13641 lt_prog_compiler_pic_CXX
='-KPIC'
13650 lt_prog_compiler_can_build_shared_CXX
=no
13656 # For platforms which do not support PIC, -DPIC is meaningless:
13658 lt_prog_compiler_pic_CXX
=
13661 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13665 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13670 # Check to make sure the PIC flag actually works.
13672 if test -n "$lt_prog_compiler_pic_CXX"; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13674 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13675 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
13676 $as_echo_n "(cached) " >&6
13678 lt_cv_prog_compiler_pic_works_CXX
=no
13679 ac_outfile
=conftest.
$ac_objext
13680 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13681 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13682 # Insert the option either (1) after the last *FLAGS variable, or
13683 # (2) before a word containing "conftest.", or (3) at the end.
13684 # Note that $ac_compile itself does not contain backslashes and begins
13685 # with a dollar sign (not a hyphen), so the echo should work correctly.
13686 # The option is referenced via a variable to avoid confusing sed.
13687 lt_compile
=`echo "$ac_compile" | $SED \
13688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13690 -e 's:$: $lt_compiler_flag:'`
13691 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13692 (eval "$lt_compile" 2>conftest.err
)
13694 cat conftest.err
>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 if (exit $ac_status) && test -s "$ac_outfile"; then
13697 # The compiler can only warn and ignore the option if not recognized
13698 # So say no if there are warnings other than the usual output.
13699 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
13700 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13701 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13702 lt_cv_prog_compiler_pic_works_CXX
=yes
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13709 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13711 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
13712 case $lt_prog_compiler_pic_CXX in
13714 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13717 lt_prog_compiler_pic_CXX
=
13718 lt_prog_compiler_can_build_shared_CXX
=no
13726 # Check to make sure the static flag actually works.
13728 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13730 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13731 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
13732 $as_echo_n "(cached) " >&6
13734 lt_cv_prog_compiler_static_works_CXX
=no
13735 save_LDFLAGS
="$LDFLAGS"
13736 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13737 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13738 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13739 # The linker can only warn and ignore the option if not recognized
13740 # So say no if there are warnings
13741 if test -s conftest.err
; then
13742 # Append any errors to the config.log.
13743 cat conftest.err
1>&5
13744 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
13745 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13746 if diff conftest.exp conftest.er2
>/dev
/null
; then
13747 lt_cv_prog_compiler_static_works_CXX
=yes
13750 lt_cv_prog_compiler_static_works_CXX
=yes
13754 LDFLAGS
="$save_LDFLAGS"
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13758 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13760 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
13763 lt_prog_compiler_static_CXX
=
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13770 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13771 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13772 $as_echo_n "(cached) " >&6
13774 lt_cv_prog_compiler_c_o_CXX
=no
13775 $RM -r conftest
2>/dev
/null
13779 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13781 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13782 # Insert the option either (1) after the last *FLAGS variable, or
13783 # (2) before a word containing "conftest.", or (3) at the end.
13784 # Note that $ac_compile itself does not contain backslashes and begins
13785 # with a dollar sign (not a hyphen), so the echo should work correctly.
13786 lt_compile
=`echo "$ac_compile" | $SED \
13787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13789 -e 's:$: $lt_compiler_flag:'`
13790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13791 (eval "$lt_compile" 2>out
/conftest.err
)
13793 cat out
/conftest.err
>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13797 # The compiler can only warn and ignore the option if not recognized
13798 # So say no if there are warnings
13799 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13800 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13801 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13802 lt_cv_prog_compiler_c_o_CXX
=yes
13807 # SGI C++ compiler will create directory out/ii_files/ for
13808 # template instantiation
13809 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13810 $RM out
/* && rmdir out
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13817 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13822 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13823 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13824 $as_echo_n "(cached) " >&6
13826 lt_cv_prog_compiler_c_o_CXX
=no
13827 $RM -r conftest
2>/dev
/null
13831 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13833 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13834 # Insert the option either (1) after the last *FLAGS variable, or
13835 # (2) before a word containing "conftest.", or (3) at the end.
13836 # Note that $ac_compile itself does not contain backslashes and begins
13837 # with a dollar sign (not a hyphen), so the echo should work correctly.
13838 lt_compile
=`echo "$ac_compile" | $SED \
13839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13841 -e 's:$: $lt_compiler_flag:'`
13842 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13843 (eval "$lt_compile" 2>out
/conftest.err
)
13845 cat out
/conftest.err
>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13849 # The compiler can only warn and ignore the option if not recognized
13850 # So say no if there are warnings
13851 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13852 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13853 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13854 lt_cv_prog_compiler_c_o_CXX
=yes
13859 # SGI C++ compiler will create directory out/ii_files/ for
13860 # template instantiation
13861 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13862 $RM out
/* && rmdir out
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13869 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13874 hard_links
="nottested"
13875 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
13876 # do not overwrite the value of need_locks provided by the user
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13878 $as_echo_n "checking if we can lock with hard links... " >&6; }
13881 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13883 ln conftest.a conftest.b
2>&5 || hard_links
=no
13884 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13886 $as_echo "$hard_links" >&6; }
13887 if test "$hard_links" = no
; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13889 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13899 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13901 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13904 # If we're using GNU nm, then we don't want the "-C" option.
13905 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13906 # Also, AIX nm treats weak defined symbols like other global defined
13907 # symbols, whereas GNU nm marks them as "W".
13908 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13909 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'
13911 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'
13915 export_symbols_cmds_CXX
="$ltdll_cmds"
13917 cygwin
* | mingw
* | cegcc
*)
13918 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'
13921 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13924 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13927 $as_echo "$ld_shlibs_CXX" >&6; }
13928 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13930 with_gnu_ld_CXX
=$with_gnu_ld
13938 # Do we need to explicitly link libc?
13940 case "x$archive_cmds_need_lc_CXX" in
13942 # Assume -lc should be added
13943 archive_cmds_need_lc_CXX
=yes
13945 if test "$enable_shared" = yes && test "$GCC" = yes; then
13946 case $archive_cmds_CXX in
13948 # FIXME: we may have to deal with multi-command sequences.
13951 # Test whether the compiler implicitly links with -lc since on some
13952 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13953 # to ld, don't add -lc before -lgcc.
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13955 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13956 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
13957 $as_echo_n "(cached) " >&6
13960 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13963 (eval $ac_compile) 2>&5
13965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13966 test $ac_status = 0; } 2>conftest.err
; then
13969 libobjs
=conftest.
$ac_objext
13971 wl
=$lt_prog_compiler_wl_CXX
13972 pic_flag
=$lt_prog_compiler_pic_CXX
13978 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
13979 allow_undefined_flag_CXX
=
13980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13981 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13984 test $ac_status = 0; }
13986 lt_cv_archive_cmds_need_lc_CXX
=no
13988 lt_cv_archive_cmds_need_lc_CXX
=yes
13990 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
13992 cat conftest.err
1>&5
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13998 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13999 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14070 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14072 library_names_spec
=
14073 libname_spec
='lib$name'
14077 postuninstall_cmds
=
14081 shlibpath_overrides_runpath
=unknown
14083 dynamic_linker
="$host_os ld.so"
14084 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14085 need_lib_prefix
=unknown
14086 hardcode_into_libs
=no
14088 # when you set need_version to no, make sure it does not cause -set_version
14089 # flags to be left without arguments
14090 need_version
=unknown
14095 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14096 shlibpath_var
=LIBPATH
14098 # AIX 3 has no versioning support, so we append a major version to the name.
14099 soname_spec
='${libname}${release}${shared_ext}$major'
14106 hardcode_into_libs
=yes
14107 if test "$host_cpu" = ia64
; then
14108 # AIX 5 supports IA64
14109 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14110 shlibpath_var
=LD_LIBRARY_PATH
14112 # With GCC up to 2.95.x, collect2 would create an import file
14113 # for dependence libraries. The import file would start with
14114 # the line `#! .'. This would cause the generated library to
14115 # depend on `.', always an invalid library. This was fixed in
14116 # development snapshots of GCC prior to 3.0.
14118 aix4 | aix4.
[01] | aix4.
[01].
*)
14119 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14121 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14124 can_build_shared
=no
14128 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14129 # soname into executable. Probably we can add versioning support to
14130 # collect2, so additional links can be useful in future.
14131 if test "$aix_use_runtimelinking" = yes; then
14132 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14133 # instead of lib<name>.a to let people know that these are not
14134 # typical AIX shared libraries.
14135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137 # We preserve .a as extension for shared libraries through AIX4.2
14138 # and later when we are not doing run time linking.
14139 library_names_spec
='${libname}${release}.a $libname.a'
14140 soname_spec
='${libname}${release}${shared_ext}$major'
14142 shlibpath_var
=LIBPATH
14149 # Since July 2007 AmigaOS4 officially supports .so libraries.
14150 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154 library_names_spec
='$libname.ixlibrary $libname.a'
14155 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14156 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'
14162 library_names_spec
='${libname}${shared_ext}'
14163 dynamic_linker
="$host_os ld.so"
14164 shlibpath_var
=LIBRARY_PATH
14170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171 soname_spec
='${libname}${release}${shared_ext}$major'
14172 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14173 shlibpath_var
=LD_LIBRARY_PATH
14174 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14175 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14176 # the default ld.so.conf also contains /usr/contrib/lib and
14177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14178 # libtool to hard-code these into programs
14181 cygwin
* | mingw
* | pw32
* | cegcc
*)
14182 version_type
=windows
14187 case $GCC,$host_os in
14188 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14189 library_names_spec
='$libname.dll.a'
14190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14191 postinstall_cmds
='base_file=`basename \${file}`~
14192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14193 dldir=$destdir/`dirname \$dlpath`~
14194 test -d \$dldir || mkdir -p \$dldir~
14195 $install_prog $dir/$dlname \$dldir/$dlname~
14196 chmod a+x \$dldir/$dlname~
14197 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14198 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14200 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14201 dlpath=$dir/\$dldll~
14203 shlibpath_overrides_runpath
=yes
14207 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14208 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14212 # MinGW DLLs use traditional 'lib' prefix
14213 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14216 # pw32 DLLs use 'pw' prefix rather than 'lib'
14217 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14223 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14226 dynamic_linker
='Win32 ld.exe'
14227 # FIXME: first we should search . and the directory the executable is in
14231 darwin
* | rhapsody
*)
14232 dynamic_linker
="$host_os dyld"
14233 version_type
=darwin
14236 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14237 soname_spec
='${libname}${release}${major}$shared_ext'
14238 shlibpath_overrides_runpath
=yes
14239 shlibpath_var
=DYLD_LIBRARY_PATH
14240 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14242 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14250 soname_spec
='${libname}${release}${shared_ext}$major'
14251 shlibpath_var
=LD_LIBRARY_PATH
14254 freebsd
* | dragonfly
*)
14255 # DragonFly does not have aout. When/if they implement a new
14256 # versioning mechanism, adjust this.
14257 if test -x /usr
/bin
/objformat
; then
14258 objformat
=`/usr/bin/objformat`
14261 freebsd
[23].
*) objformat
=aout
;;
14262 *) objformat
=elf
;;
14265 version_type
=freebsd-
$objformat
14266 case $version_type in
14268 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14273 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14277 shlibpath_var
=LD_LIBRARY_PATH
14280 shlibpath_overrides_runpath
=yes
14282 freebsd3.
[01]* | freebsdelf3.
[01]*)
14283 shlibpath_overrides_runpath
=yes
14284 hardcode_into_libs
=yes
14286 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14287 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14288 shlibpath_overrides_runpath
=no
14289 hardcode_into_libs
=yes
14291 *) # from 4.6 on, and DragonFly
14292 shlibpath_overrides_runpath
=yes
14293 hardcode_into_libs
=yes
14302 dynamic_linker
="$host_os runtime_loader"
14303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14304 soname_spec
='${libname}${release}${shared_ext}$major'
14305 shlibpath_var
=LIBRARY_PATH
14306 shlibpath_overrides_runpath
=yes
14307 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14308 hardcode_into_libs
=yes
14311 hpux9
* | hpux10
* | hpux11
*)
14312 # Give a soname corresponding to the major version so that dld.sl refuses to
14313 # link against other versions.
14320 hardcode_into_libs
=yes
14321 dynamic_linker
="$host_os dld.so"
14322 shlibpath_var
=LD_LIBRARY_PATH
14323 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14325 soname_spec
='${libname}${release}${shared_ext}$major'
14326 if test "X$HPUX_IA64_MODE" = X32
; then
14327 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14329 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14331 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14335 hardcode_into_libs
=yes
14336 dynamic_linker
="$host_os dld.sl"
14337 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14338 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14340 soname_spec
='${libname}${release}${shared_ext}$major'
14341 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14342 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14346 dynamic_linker
="$host_os dld.sl"
14347 shlibpath_var
=SHLIB_PATH
14348 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14350 soname_spec
='${libname}${release}${shared_ext}$major'
14353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14354 postinstall_cmds
='chmod 555 $lib'
14355 # or fails outright, so override atomically:
14356 install_override_mode
=555
14363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14364 soname_spec
='${libname}${release}${shared_ext}$major'
14365 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14366 shlibpath_var
=LD_LIBRARY_PATH
14367 shlibpath_overrides_runpath
=no
14368 hardcode_into_libs
=yes
14371 irix5
* | irix6
* | nonstopux
*)
14373 nonstopux
*) version_type
=nonstopux
;;
14375 if test "$lt_cv_prog_gnu_ld" = yes; then
14383 soname_spec
='${libname}${release}${shared_ext}$major'
14384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14386 irix5
* | nonstopux
*)
14387 libsuff
= shlibsuff
=
14390 case $LD in # libtool.m4 will add one of these switches to LD
14391 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14392 libsuff
= shlibsuff
= libmagic
=32-bit;;
14393 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14394 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14395 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14396 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14397 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14401 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14402 shlibpath_overrides_runpath
=no
14403 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14404 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14405 hardcode_into_libs
=yes
14408 # No shared lib support for Linux oldld, aout, or coff.
14409 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14413 # This must be Linux ELF.
14414 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
14418 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419 soname_spec
='${libname}${release}${shared_ext}$major'
14420 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14421 shlibpath_var
=LD_LIBRARY_PATH
14422 shlibpath_overrides_runpath
=no
14424 # Some binutils ld are patched to set DT_RUNPATH
14425 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14426 $as_echo_n "(cached) " >&6
14428 lt_cv_shlibpath_overrides_runpath
=no
14429 save_LDFLAGS
=$LDFLAGS
14430 save_libdir
=$libdir
14431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14444 if ac_fn_cxx_try_link
"$LINENO"; then :
14445 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14446 lt_cv_shlibpath_overrides_runpath
=yes
14449 rm -f core conftest.err conftest.
$ac_objext \
14450 conftest
$ac_exeext conftest.
$ac_ext
14451 LDFLAGS
=$save_LDFLAGS
14452 libdir
=$save_libdir
14456 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14458 # This implies no fast_install, which is unacceptable.
14459 # Some rework will be needed to allow for fast_install
14460 # before this can be enabled.
14461 hardcode_into_libs
=yes
14463 # Append ld.so.conf contents to the search path
14464 if test -f /etc
/ld.so.conf
; then
14465 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' ' '`
14466 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14469 # We used to test for /lib/ld.so.1 and disable shared libraries on
14470 # powerpc, because MkLinux only supported shared libraries with the
14471 # GNU dynamic linker. Since this was broken with cross compilers,
14472 # most powerpc-linux boxes support dynamic linking these days and
14473 # people can always --disable-shared, the test was removed, and we
14474 # assume the GNU/Linux dynamic linker is in use.
14475 dynamic_linker
='GNU/Linux ld.so'
14482 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14484 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14485 dynamic_linker
='NetBSD (a.out) ld.so'
14487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14488 soname_spec
='${libname}${release}${shared_ext}$major'
14489 dynamic_linker
='NetBSD ld.elf_so'
14491 shlibpath_var
=LD_LIBRARY_PATH
14492 shlibpath_overrides_runpath
=yes
14493 hardcode_into_libs
=yes
14498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499 shlibpath_var
=LD_LIBRARY_PATH
14500 shlibpath_overrides_runpath
=yes
14507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508 soname_spec
='${libname}${release}${shared_ext}$major'
14509 shlibpath_var
=LD_LIBRARY_PATH
14510 shlibpath_overrides_runpath
=no
14511 hardcode_into_libs
=yes
14512 dynamic_linker
='ldqnx.so'
14517 sys_lib_dlsearch_path_spec
="/usr/lib"
14519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14521 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14522 *) need_version
=no
;;
14524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14525 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14526 shlibpath_var
=LD_LIBRARY_PATH
14527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14529 openbsd2.
[89] | openbsd2.
[89].
*)
14530 shlibpath_overrides_runpath
=no
14533 shlibpath_overrides_runpath
=yes
14537 shlibpath_overrides_runpath
=yes
14542 libname_spec
='$name'
14545 library_names_spec
='$libname${shared_ext} $libname.a'
14546 dynamic_linker
='OS/2 ld.exe'
14547 shlibpath_var
=LIBPATH
14550 osf3
* | osf4
* | osf5
*)
14554 soname_spec
='${libname}${release}${shared_ext}$major'
14555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14556 shlibpath_var
=LD_LIBRARY_PATH
14557 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14558 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14569 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14570 soname_spec
='${libname}${release}${shared_ext}$major'
14571 shlibpath_var
=LD_LIBRARY_PATH
14572 shlibpath_overrides_runpath
=yes
14573 hardcode_into_libs
=yes
14574 # ldd complains unless libraries are executable
14575 postinstall_cmds
='chmod +x $lib'
14580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14581 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14582 shlibpath_var
=LD_LIBRARY_PATH
14583 shlibpath_overrides_runpath
=yes
14584 if test "$with_gnu_ld" = yes; then
14592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14593 soname_spec
='${libname}${release}${shared_ext}$major'
14594 shlibpath_var
=LD_LIBRARY_PATH
14595 case $host_vendor in
14597 shlibpath_overrides_runpath
=no
14599 runpath_var
=LD_RUN_PATH
14607 shlibpath_overrides_runpath
=no
14608 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14614 if test -d /usr
/nec
;then
14616 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14617 soname_spec
='$libname${shared_ext}.$major'
14618 shlibpath_var
=LD_LIBRARY_PATH
14622 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14623 version_type
=freebsd-elf
14626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14627 soname_spec
='${libname}${release}${shared_ext}$major'
14628 shlibpath_var
=LD_LIBRARY_PATH
14629 shlibpath_overrides_runpath
=yes
14630 hardcode_into_libs
=yes
14631 if test "$with_gnu_ld" = yes; then
14632 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14634 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14637 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14641 sys_lib_dlsearch_path_spec
='/usr/lib'
14645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14650 shlibpath_var
=LD_LIBRARY_PATH
14651 shlibpath_overrides_runpath
=no
14652 hardcode_into_libs
=yes
14657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658 soname_spec
='${libname}${release}${shared_ext}$major'
14659 shlibpath_var
=LD_LIBRARY_PATH
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14667 $as_echo "$dynamic_linker" >&6; }
14668 test "$dynamic_linker" = no
&& can_build_shared
=no
14670 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14671 if test "$GCC" = yes; then
14672 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14675 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14676 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14678 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14679 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14720 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14721 hardcode_action_CXX
=
14722 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14723 test -n "$runpath_var_CXX" ||
14724 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14726 # We can hardcode non-existent directories.
14727 if test "$hardcode_direct_CXX" != no
&&
14728 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14729 # have to relink, otherwise we might link with an installed library
14730 # when we should be linking with a yet-to-be-installed one
14731 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14732 test "$hardcode_minus_L_CXX" != no
; then
14733 # Linking always hardcodes the temporary library directory.
14734 hardcode_action_CXX
=relink
14736 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14737 hardcode_action_CXX
=immediate
14740 # We cannot hardcode anything, or else we can only hardcode existing
14742 hardcode_action_CXX
=unsupported
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14745 $as_echo "$hardcode_action_CXX" >&6; }
14747 if test "$hardcode_action_CXX" = relink ||
14748 test "$inherit_rpath_CXX" = yes; then
14749 # Fast installation is not supported
14750 enable_fast_install
=no
14751 elif test "$shlibpath_overrides_runpath" = yes ||
14752 test "$enable_shared" = no
; then
14753 # Fast installation is not necessary
14754 enable_fast_install
=needless
14763 fi # test -n "$compiler"
14769 with_gnu_ld
=$lt_save_with_gnu_ld
14770 lt_cv_path_LDCXX
=$lt_cv_path_LD
14771 lt_cv_path_LD
=$lt_save_path_LD
14772 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14773 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14774 fi # test "$_lt_caught_CXX_error" != yes
14777 ac_cpp
='$CPP $CPPFLAGS'
14778 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14779 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14780 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14794 ac_config_commands
="$ac_config_commands libtool"
14799 # Only expand once:
14802 # ... and we need it soon, since it is used by some of the
14803 # link tests in the configure script.
14804 : ${CONFIG_LT=./config.lt}
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14806 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
14808 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14810 # Generated by $as_me.
14811 # Run this file to recreate a libtool stub with the current configuration.
14812 SHELL=\${CONFIG_SHELL-$SHELL}
14815 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail
=1
14816 ## -------------------- ##
14817 ## M4sh Initialization. ##
14818 ## -------------------- ##
14820 # Be more Bourne compatible
14821 DUALCASE
=1; export DUALCASE
# for MKS sh
14822 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14825 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14826 # is contrary to our usage. Disable this feature.
14827 alias -g '${1+"$@"}'='"$@"'
14828 setopt NO_GLOB_SUBST
14830 case `(set -o) 2>/dev/null` in #(
14842 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14843 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14844 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14845 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14846 # Prefer a ksh shell builtin over an external printf program on Solaris,
14847 # but without wasting forks for bash or zsh.
14848 if test -z "$BASH_VERSION$ZSH_VERSION" \
14849 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14850 as_echo='print
-r --'
14851 as_echo_n='print
-rn --'
14852 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14853 as_echo='printf %s
\n'
14854 as_echo_n='printf %s
'
14856 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14857 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14858 as_echo_n='/usr
/ucb
/echo -n'
14860 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14861 as_echo_n_body='eval
14865 expr "X$arg" : "X\\(.*\\)$as_nl";
14866 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14868 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14870 export as_echo_n_body
14871 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14873 export as_echo_body
14874 as_echo='sh
-c $as_echo_body as_echo
'
14877 # The user is always right.
14878 if test "${PATH_SEPARATOR+set}" != set; then
14880 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14881 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14888 # We need space, tab and new line, in precisely that order. Quoting is
14889 # there to prevent editors from complaining about space-tab.
14890 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14891 # splitting by setting IFS to empty value.)
14894 # Find who we are. Look in the path if we contain no directory separator.
14897 *[\\/]* ) as_myself=$0 ;;
14898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14899 for as_dir in $PATH
14902 test -z "$as_dir" && as_dir=.
14903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14909 # We did not find ourselves, most probably we were run as `sh COMMAND'
14910 # in which case we are not to be found in the path.
14911 if test "x$as_myself" = x
; then
14914 if test ! -f "$as_myself"; then
14915 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14919 # Unset variables that we do not need and which cause bugs (e.g. in
14920 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14921 # suppresses any "Segmentation fault" message there. '((' could
14922 # trigger a bug in pdksh 5.2.14.
14923 for as_var
in BASH_ENV ENV MAIL MAILPATH
14924 do eval test x\
${$as_var+set} = xset \
14925 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14938 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14941 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14942 # ----------------------------------------
14943 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14944 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14945 # script with STATUS, using 1 if that was 0.
14948 as_status
=$1; test $as_status -eq 0 && as_status
=1
14950 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14951 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14953 $as_echo "$as_me: error: $2" >&2
14954 as_fn_exit
$as_status
14958 # as_fn_set_status STATUS
14959 # -----------------------
14960 # Set $? to STATUS, without forking.
14961 as_fn_set_status
()
14964 } # as_fn_set_status
14966 # as_fn_exit STATUS
14967 # -----------------
14968 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14972 as_fn_set_status
$1
14978 # Portably unset VAR.
14981 { eval $1=; unset $1;}
14983 as_unset
=as_fn_unset
14984 # as_fn_append VAR VALUE
14985 # ----------------------
14986 # Append the text in VALUE to the end of the definition contained in VAR. Take
14987 # advantage of any shell optimizations that allow amortized linear growth over
14988 # repeated appends, instead of the typical quadratic growth present in naive
14990 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14991 eval 'as_fn_append ()
15002 # as_fn_arith ARG...
15003 # ------------------
15004 # Perform arithmetic evaluation on the ARGs, and store the result in the
15005 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15006 # must be portable across $(()) and expr.
15007 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15008 eval 'as_fn_arith ()
15015 as_val
=`expr "$@" || test $? -eq 1`
15020 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15021 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15027 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15028 as_basename
=basename
15033 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15039 as_me
=`$as_basename -- "$0" ||
15040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15041 X"$0" : 'X\(//\)$' \| \
15042 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15044 sed '/^.*\/\([^/][^/]*\)\/*$/{
15058 # Avoid depending upon Character Ranges.
15059 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15060 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15061 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15062 as_cr_digits
='0123456789'
15063 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15065 ECHO_C
= ECHO_N
= ECHO_T
=
15066 case `echo -n x` in #(((((
15068 case `echo 'xy\c'` in
15069 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15071 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15078 rm -f conf$$ conf$$.exe conf$$.
file
15079 if test -d conf$$.dir
; then
15080 rm -f conf$$.dir
/conf$$.
file
15083 mkdir conf$$.dir
2>/dev
/null
15085 if (echo >conf$$.
file) 2>/dev
/null
; then
15086 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15088 # ... but there are two gotchas:
15089 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15090 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15091 # In both cases, we have to default to `cp -pR'.
15092 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15094 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15102 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15103 rmdir conf$$.dir
2>/dev
/null
15108 # Create "$as_dir" as a directory, including parents if necessary.
15113 -*) as_dir
=.
/$as_dir;;
15115 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15119 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15120 *) as_qdir
=$as_dir;;
15122 as_dirs
="'$as_qdir' $as_dirs"
15123 as_dir
=`$as_dirname -- "$as_dir" ||
15124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15125 X"$as_dir" : 'X\(//\)[^/]' \| \
15126 X"$as_dir" : 'X\(//\)$' \| \
15127 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15128 $as_echo X"$as_dir" |
15129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15133 /^X\(\/\/\)[^/].*/{
15146 test -d "$as_dir" && break
15148 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15149 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15153 if mkdir
-p .
2>/dev
/null
; then
15154 as_mkdir_p
='mkdir -p "$as_dir"'
15156 test -d .
/-p && rmdir .
/-p
15161 # as_fn_executable_p FILE
15162 # -----------------------
15163 # Test if FILE is an executable regular file.
15164 as_fn_executable_p
()
15166 test -f "$1" && test -x "$1"
15167 } # as_fn_executable_p
15168 as_test_x
='test -x'
15169 as_executable_p
=as_fn_executable_p
15171 # Sed expression to map a string onto a valid CPP name.
15172 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15174 # Sed expression to map a string onto a valid variable name.
15175 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15179 ## --------------------------------- ##
15180 ## Main body of "$CONFIG_LT" script. ##
15181 ## --------------------------------- ##
15183 test $as_write_fail = 0 && chmod +x
"$CONFIG_LT"
15185 cat >>"$CONFIG_LT" <<\_LTEOF
15190 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15191 ## Running $as_me. ##
15196 \`$as_me' creates a local libtool stub from the current configuration,
15197 for use in further configure time tests before the real libtool is
15200 Usage: $0 [OPTIONS]
15202 -h, --help print this help, then exit
15203 -V, --version print version number, then exit
15204 -q, --quiet do not print progress messages
15205 -d, --debug don't remove temporary files
15207 Report bugs to <bug-libtool@gnu.org>."
15211 configured by $0, generated by GNU Autoconf 2.69.
15213 Copyright (C) 2009 Free Software Foundation, Inc.
15214 This config.lt script is free software; the Free Software Foundation
15215 gives unlimited permision to copy, distribute and modify it."
15220 --version |
--v* |
-V )
15221 echo "$lt_cl_version"; exit 0 ;;
15222 --help |
--h* |
-h )
15223 echo "$lt_cl_help"; exit 0 ;;
15224 --debug |
--d* |
-d )
15226 --quiet |
--q* |
--silent |
--s* |
-q )
15229 -*) as_fn_error $?
"unrecognized option: $1
15230 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15232 *) as_fn_error $?
"unrecognized argument: $1
15233 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15238 if $lt_cl_silent; then
15243 cat >>"$CONFIG_LT" <<_LTEOF
15246 # The HP-UX ksh and POSIX shell print the target directory to stdout
15247 # if CDPATH is set.
15248 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15250 sed_quote_subst='$sed_quote_subst'
15251 double_quote_subst='$double_quote_subst'
15252 delay_variable_subst='$delay_variable_subst'
15253 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15254 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15255 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15256 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15257 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15258 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15259 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15260 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15261 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15262 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15263 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15264 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15265 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15266 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15267 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15268 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15269 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15270 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15271 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15272 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15273 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15274 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15275 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15276 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15277 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15278 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15279 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15280 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15281 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15282 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15283 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15284 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15285 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15286 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15287 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15288 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15289 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15290 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15291 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15292 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15293 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15294 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15295 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15296 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15297 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15298 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15299 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15300 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15301 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"`'
15302 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15303 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15304 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15305 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15306 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15307 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15308 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15309 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15310 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15311 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15312 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15313 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15314 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15315 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15316 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15317 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15318 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15319 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15320 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15321 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15322 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15323 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15324 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15325 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15326 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15327 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15328 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15329 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15330 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15331 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15332 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15333 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15334 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15335 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15336 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15337 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15338 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15339 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15340 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15341 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15342 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15343 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15344 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15345 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15346 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15347 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15348 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15349 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15350 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15351 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15352 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15353 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15354 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15355 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15356 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15357 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15358 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15359 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15360 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15361 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15362 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15363 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15364 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15365 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15366 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15367 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15368 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15369 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15370 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15371 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15372 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15373 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15374 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15375 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15376 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15377 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15378 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15379 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15380 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15381 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15382 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15383 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15384 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15385 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15386 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15387 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15388 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15389 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15390 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15391 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15392 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15393 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15394 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15395 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15396 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15397 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15398 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15399 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15400 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15401 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15402 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15403 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15404 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15405 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15406 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15407 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15408 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15409 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15410 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15411 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15412 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15413 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15414 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15415 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15416 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15417 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15418 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15419 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15420 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15421 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15422 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15423 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15424 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15425 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15426 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15427 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15430 LTCFLAGS='$LTCFLAGS'
15431 compiler='$compiler_DEFAULT'
15433 # A function that is used when there is no print builtin or printf.
15434 func_fallback_echo ()
15436 eval 'cat <<_LTECHO_EOF
15441 # Quote evaled strings.
15455 deplibs_check_method \
15464 lt_cv_sys_global_symbol_pipe \
15465 lt_cv_sys_global_symbol_to_cdecl \
15466 lt_cv_sys_global_symbol_to_c_name_address \
15467 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15468 lt_prog_compiler_no_builtin_flag \
15469 lt_prog_compiler_wl \
15470 lt_prog_compiler_pic \
15471 lt_prog_compiler_static \
15472 lt_cv_prog_compiler_c_o \
15480 export_dynamic_flag_spec \
15481 whole_archive_flag_spec \
15482 compiler_needs_object \
15484 allow_undefined_flag \
15485 no_undefined_flag \
15486 hardcode_libdir_flag_spec \
15487 hardcode_libdir_flag_spec_ld \
15488 hardcode_libdir_separator \
15493 variables_saved_for_relink \
15495 library_names_spec \
15497 install_override_mode \
15501 compiler_lib_search_dirs \
15506 compiler_lib_search_path \
15510 lt_prog_compiler_no_builtin_flag_CXX \
15511 lt_prog_compiler_wl_CXX \
15512 lt_prog_compiler_pic_CXX \
15513 lt_prog_compiler_static_CXX \
15514 lt_cv_prog_compiler_c_o_CXX \
15515 export_dynamic_flag_spec_CXX \
15516 whole_archive_flag_spec_CXX \
15517 compiler_needs_object_CXX \
15519 allow_undefined_flag_CXX \
15520 no_undefined_flag_CXX \
15521 hardcode_libdir_flag_spec_CXX \
15522 hardcode_libdir_flag_spec_ld_CXX \
15523 hardcode_libdir_separator_CXX \
15524 fix_srcfile_path_CXX \
15525 exclude_expsyms_CXX \
15526 include_expsyms_CXX \
15527 file_list_spec_CXX \
15528 compiler_lib_search_dirs_CXX \
15529 predep_objects_CXX \
15530 postdep_objects_CXX \
15533 compiler_lib_search_path_CXX; do
15534 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15535 *[\\\\\\\`\\"\\\$]*)
15536 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15539 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15544 # Double-quote double-evaled strings.
15545 for var in reload_cmds \
15546 old_postinstall_cmds \
15547 old_postuninstall_cmds \
15549 extract_expsyms_cmds \
15550 old_archive_from_new_cmds \
15551 old_archive_from_expsyms_cmds \
15553 archive_expsym_cmds \
15555 module_expsym_cmds \
15556 export_symbols_cmds \
15559 postuninstall_cmds \
15561 sys_lib_search_path_spec \
15562 sys_lib_dlsearch_path_spec \
15564 old_archive_cmds_CXX \
15565 old_archive_from_new_cmds_CXX \
15566 old_archive_from_expsyms_cmds_CXX \
15568 archive_expsym_cmds_CXX \
15570 module_expsym_cmds_CXX \
15571 export_symbols_cmds_CXX \
15572 prelink_cmds_CXX; do
15573 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15574 *[\\\\\\\`\\"\\\$]*)
15575 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15578 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15583 ac_aux_dir='$ac_aux_dir'
15584 xsi_shell='$xsi_shell'
15585 lt_shell_append='$lt_shell_append'
15587 # See if we are running on zsh, and set the options which allow our
15588 # commands through without removal of \ escapes INIT.
15589 if test -n "\${ZSH_VERSION+set}" ; then
15590 setopt NO_GLOB_SUBST
15596 TIMESTAMP='$TIMESTAMP'
15606 cat >>"$CONFIG_LT" <<\_LTEOF
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15608 $as_echo "$as_me: creating $ofile" >&6;}
15611 # See if we are running on zsh, and set the options which allow our
15612 # commands through without removal of \ escapes.
15613 if test -n "${ZSH_VERSION+set}" ; then
15614 setopt NO_GLOB_SUBST
15617 cfgfile
="${ofile}T"
15618 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15621 cat <<_LT_EOF >> "$cfgfile"
15624 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15625 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15626 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15627 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15629 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15630 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15631 # Written by Gordon Matzigkeit, 1996
15633 # This file is part of GNU Libtool.
15635 # GNU Libtool is free software; you can redistribute it and/or
15636 # modify it under the terms of the GNU General Public License as
15637 # published by the Free Software Foundation; either version 2 of
15638 # the License, or (at your option) any later version.
15640 # As a special exception to the GNU General Public License,
15641 # if you distribute this file as part of a program or library that
15642 # is built using GNU Libtool, you may include this file under the
15643 # same distribution terms that you use for the rest of that program.
15645 # GNU Libtool is distributed in the hope that it will be useful,
15646 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15647 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15648 # GNU General Public License for more details.
15650 # You should have received a copy of the GNU General Public License
15651 # along with GNU Libtool; see the file COPYING. If not, a copy
15652 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15653 # obtained by writing to the Free Software Foundation, Inc.,
15654 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15657 # The names of the tagged configurations supported by this script.
15658 available_tags="CXX "
15660 # ### BEGIN LIBTOOL CONFIG
15662 # Which release of libtool.m4 was used?
15663 macro_version=$macro_version
15664 macro_revision=$macro_revision
15666 # Whether or not to build shared libraries.
15667 build_libtool_libs=$enable_shared
15669 # Whether or not to build static libraries.
15670 build_old_libs=$enable_static
15672 # What type of objects to build.
15675 # Whether or not to optimize for fast installation.
15676 fast_install=$enable_fast_install
15678 # Shell to use when invoking shell scripts.
15681 # An echo program that protects backslashes.
15685 host_alias=$host_alias
15689 # The build system.
15690 build_alias=$build_alias
15694 # A sed program that does not truncate output.
15697 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15698 Xsed="\$SED -e 1s/^X//"
15700 # A grep program that handles long lines.
15706 # A literal string matcher.
15709 # A BSD- or MS-compatible name lister.
15712 # Whether we need soft or hard links.
15715 # What is the maximum length of a command?
15716 max_cmd_len=$max_cmd_len
15718 # Object file suffix (normally "o").
15721 # Executable file suffix (normally "").
15724 # whether the shell understands "unset".
15727 # turn spaces into newlines.
15730 # turn newlines into spaces.
15733 # An object symbol dumper.
15734 OBJDUMP=$lt_OBJDUMP
15736 # Method to check whether dependent libraries are shared objects.
15737 deplibs_check_method=$lt_deplibs_check_method
15739 # Command to use when deplibs_check_method == "file_magic".
15740 file_magic_cmd=$lt_file_magic_cmd
15744 AR_FLAGS=$lt_AR_FLAGS
15746 # A symbol stripping program.
15749 # Commands used to install an old-style archive.
15751 old_postinstall_cmds=$lt_old_postinstall_cmds
15752 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15754 # Whether to use a lock for old archive extraction.
15755 lock_old_archive_extraction=$lock_old_archive_extraction
15760 # LTCC compiler flags.
15761 LTCFLAGS=$lt_CFLAGS
15763 # Take the output of nm and produce a listing of raw symbols and C names.
15764 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15766 # Transform the output of nm in a proper C declaration.
15767 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15769 # Transform the output of nm in a C name address pair.
15770 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15772 # Transform the output of nm in a C name address pair when lib prefix is needed.
15773 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15775 # The name of the directory that contains temporary libtool files.
15778 # Used to examine libraries when file_magic_cmd begins with "file".
15779 MAGIC_CMD=$MAGIC_CMD
15781 # Must we lock files when doing compilation?
15782 need_locks=$lt_need_locks
15784 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15785 DSYMUTIL=$lt_DSYMUTIL
15787 # Tool to change global to local symbols on Mac OS X.
15790 # Tool to manipulate fat objects and archives on Mac OS X.
15793 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15796 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15797 OTOOL64=$lt_OTOOL64
15799 # Old archive suffix (normally "a").
15802 # Shared library suffix (normally ".so").
15803 shrext_cmds=$lt_shrext_cmds
15805 # The commands to extract the exported symbol list from a shared archive.
15806 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15808 # Variables whose values should be saved in libtool wrapper scripts and
15809 # restored at link time.
15810 variables_saved_for_relink=$lt_variables_saved_for_relink
15812 # Do we need the "lib" prefix for modules?
15813 need_lib_prefix=$need_lib_prefix
15815 # Do we need a version for libraries?
15816 need_version=$need_version
15818 # Library versioning type.
15819 version_type=$version_type
15821 # Shared library runtime path variable.
15822 runpath_var=$runpath_var
15824 # Shared library path variable.
15825 shlibpath_var=$shlibpath_var
15827 # Is shlibpath searched before the hard-coded library search path?
15828 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15830 # Format of library name prefix.
15831 libname_spec=$lt_libname_spec
15833 # List of archive names. First name is the real one, the rest are links.
15834 # The last name is the one that the linker finds with -lNAME
15835 library_names_spec=$lt_library_names_spec
15837 # The coded name of the library, if different from the real name.
15838 soname_spec=$lt_soname_spec
15840 # Permission mode override for installation of shared libraries.
15841 install_override_mode=$lt_install_override_mode
15843 # Command to use after installation of a shared archive.
15844 postinstall_cmds=$lt_postinstall_cmds
15846 # Command to use after uninstallation of a shared archive.
15847 postuninstall_cmds=$lt_postuninstall_cmds
15849 # Commands used to finish a libtool library installation in a directory.
15850 finish_cmds=$lt_finish_cmds
15852 # As "finish_cmds", except a single script fragment to be evaled but
15854 finish_eval=$lt_finish_eval
15856 # Whether we should hardcode library paths into libraries.
15857 hardcode_into_libs=$hardcode_into_libs
15859 # Compile-time system search path for libraries.
15860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15862 # Run-time system search path for libraries.
15863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15865 # Whether dlopen is supported.
15866 dlopen_support=$enable_dlopen
15868 # Whether dlopen of programs is supported.
15869 dlopen_self=$enable_dlopen_self
15871 # Whether dlopen of statically linked programs is supported.
15872 dlopen_self_static=$enable_dlopen_self_static
15874 # Commands to strip libraries.
15875 old_striplib=$lt_old_striplib
15876 striplib=$lt_striplib
15879 # The linker used to build libraries.
15882 # How to create reloadable object files.
15883 reload_flag=$lt_reload_flag
15884 reload_cmds=$lt_reload_cmds
15886 # Commands used to build an old-style archive.
15887 old_archive_cmds=$lt_old_archive_cmds
15889 # A language specific compiler.
15892 # Is the compiler the GNU compiler?
15895 # Compiler flag to turn off builtin functions.
15896 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15898 # How to pass a linker flag through the compiler.
15899 wl=$lt_lt_prog_compiler_wl
15901 # Additional compiler flags for building library objects.
15902 pic_flag=$lt_lt_prog_compiler_pic
15904 # Compiler flag to prevent dynamic linking.
15905 link_static_flag=$lt_lt_prog_compiler_static
15907 # Does compiler simultaneously support -c and -o options?
15908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15910 # Whether or not to add -lc for building shared libraries.
15911 build_libtool_need_lc=$archive_cmds_need_lc
15913 # Whether or not to disallow shared libs when runtime libs are static.
15914 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15916 # Compiler flag to allow reflexive dlopens.
15917 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15919 # Compiler flag to generate shared objects directly from archives.
15920 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15922 # Whether the compiler copes with passing no objects directly.
15923 compiler_needs_object=$lt_compiler_needs_object
15925 # Create an old-style archive from a shared archive.
15926 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15928 # Create a temporary old-style archive to link instead of a shared archive.
15929 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15931 # Commands used to build a shared archive.
15932 archive_cmds=$lt_archive_cmds
15933 archive_expsym_cmds=$lt_archive_expsym_cmds
15935 # Commands used to build a loadable module if different from building
15936 # a shared archive.
15937 module_cmds=$lt_module_cmds
15938 module_expsym_cmds=$lt_module_expsym_cmds
15940 # Whether we are building with GNU ld or not.
15941 with_gnu_ld=$lt_with_gnu_ld
15943 # Flag that allows shared libraries with undefined symbols to be built.
15944 allow_undefined_flag=$lt_allow_undefined_flag
15946 # Flag that enforces no undefined symbols.
15947 no_undefined_flag=$lt_no_undefined_flag
15949 # Flag to hardcode \$libdir into a binary during linking.
15950 # This must work even if \$libdir does not exist
15951 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15953 # If ld is used when linking, flag to hardcode \$libdir into a binary
15954 # during linking. This must work even if \$libdir does not exist.
15955 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15957 # Whether we need a single "-rpath" flag with a separated argument.
15958 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15960 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15961 # DIR into the resulting binary.
15962 hardcode_direct=$hardcode_direct
15964 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15965 # DIR into the resulting binary and the resulting library dependency is
15966 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15967 # library is relocated.
15968 hardcode_direct_absolute=$hardcode_direct_absolute
15970 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15971 # into the resulting binary.
15972 hardcode_minus_L=$hardcode_minus_L
15974 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15975 # into the resulting binary.
15976 hardcode_shlibpath_var=$hardcode_shlibpath_var
15978 # Set to "yes" if building a shared library automatically hardcodes DIR
15979 # into the library and all subsequent libraries and executables linked
15981 hardcode_automatic=$hardcode_automatic
15983 # Set to yes if linker adds runtime paths of dependent libraries
15984 # to runtime path list.
15985 inherit_rpath=$inherit_rpath
15987 # Whether libtool must link a program against all its dependency libraries.
15988 link_all_deplibs=$link_all_deplibs
15990 # Fix the shell variable \$srcfile for the compiler.
15991 fix_srcfile_path=$lt_fix_srcfile_path
15993 # Set to "yes" if exported symbols are required.
15994 always_export_symbols=$always_export_symbols
15996 # The commands to list exported symbols.
15997 export_symbols_cmds=$lt_export_symbols_cmds
15999 # Symbols that should not be listed in the preloaded symbols.
16000 exclude_expsyms=$lt_exclude_expsyms
16002 # Symbols that must always be exported.
16003 include_expsyms=$lt_include_expsyms
16005 # Commands necessary for linking programs (against libraries) with templates.
16006 prelink_cmds=$lt_prelink_cmds
16008 # Specify filename containing input files.
16009 file_list_spec=$lt_file_list_spec
16011 # How to hardcode a shared library path into an executable.
16012 hardcode_action=$hardcode_action
16014 # The directories searched by this compiler when creating a shared library.
16015 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16017 # Dependencies to place before and after the objects being linked to
16018 # create a shared library.
16019 predep_objects=$lt_predep_objects
16020 postdep_objects=$lt_postdep_objects
16021 predeps=$lt_predeps
16022 postdeps=$lt_postdeps
16024 # The library search path used internally by the compiler when linking
16025 # a shared library.
16026 compiler_lib_search_path=$lt_compiler_lib_search_path
16028 # ### END LIBTOOL CONFIG
16034 cat <<\_LT_EOF
>> "$cfgfile"
16035 # AIX sometimes has problems with the GCC collect2 program. For some
16036 # reason, if we set the COLLECT_NAMES environment variable, the problems
16037 # vanish in a puff of smoke.
16038 if test "X${COLLECT_NAMES+set}" != Xset
; then
16040 export COLLECT_NAMES
16047 ltmain
="$ac_aux_dir/ltmain.sh"
16050 # We use sed instead of cat because bash on DJGPP gets confused if
16051 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16052 # text mode, it properly converts lines to CR/LF. This bash problem
16053 # is reportedly fixed, but why not run on old versions too?
16054 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16055 ||
(rm -f "$cfgfile"; exit 1)
16059 cat << \_LT_EOF
>> "$cfgfile"
16061 # func_dirname file append nondir_replacement
16062 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16063 # otherwise set result to NONDIR_REPLACEMENT.
16067 */*) func_dirname_result
="${1%/*}${2}" ;;
16068 * ) func_dirname_result
="${3}" ;;
16072 # func_basename file
16075 func_basename_result
="${1##*/}"
16078 # func_dirname_and_basename file append nondir_replacement
16079 # perform func_basename and func_dirname in a single function
16081 # dirname: Compute the dirname of FILE. If nonempty,
16082 # add APPEND to the result, otherwise set result
16083 # to NONDIR_REPLACEMENT.
16084 # value returned in "$func_dirname_result"
16085 # basename: Compute filename of FILE.
16086 # value retuned in "$func_basename_result"
16087 # Implementation must be kept synchronized with func_dirname
16088 # and func_basename. For efficiency, we do not delegate to
16089 # those functions but instead duplicate the functionality here.
16090 func_dirname_and_basename
()
16093 */*) func_dirname_result
="${1%/*}${2}" ;;
16094 * ) func_dirname_result
="${3}" ;;
16096 func_basename_result
="${1##*/}"
16099 # func_stripname prefix suffix name
16100 # strip PREFIX and SUFFIX off of NAME.
16101 # PREFIX and SUFFIX must not contain globbing or regex special
16102 # characters, hashes, percent signs, but SUFFIX may contain a leading
16103 # dot (in which case that matches only a dot).
16106 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16107 # positional parameters, so assign one to ordinary parameter first.
16108 func_stripname_result
=${3}
16109 func_stripname_result
=${func_stripname_result#"${1}"}
16110 func_stripname_result
=${func_stripname_result%"${2}"}
16116 func_opt_split_opt
=${1%%=*}
16117 func_opt_split_arg
=${1#*=}
16124 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
16125 *) func_lo2o_result
=${1} ;;
16129 # func_xform libobj-or-source
16132 func_xform_result
=${1%.*}.lo
16135 # func_arith arithmetic-term...
16138 func_arith_result
=$
(( $
* ))
16142 # STRING may not start with a hyphen.
16145 func_len_result
=${#1}
16150 *) # Bourne compatible functions.
16151 cat << \_LT_EOF
>> "$cfgfile"
16153 # func_dirname file append nondir_replacement
16154 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16155 # otherwise set result to NONDIR_REPLACEMENT.
16158 # Extract subdirectory from the argument.
16159 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
16160 if test "X$func_dirname_result" = "X${1}"; then
16161 func_dirname_result
="${3}"
16163 func_dirname_result
="$func_dirname_result${2}"
16167 # func_basename file
16170 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
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).
16179 # func_strip_suffix prefix name
16183 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16184 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16189 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
16190 my_sed_long_arg
='1s/^-[^=]*=//'
16195 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16196 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16202 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
16205 # func_xform libobj-or-source
16208 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16211 # func_arith arithmetic-term...
16214 func_arith_result
=`expr "$@"`
16218 # STRING may not start with a hyphen.
16221 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16227 case $lt_shell_append in
16229 cat << \_LT_EOF
>> "$cfgfile"
16231 # func_append var value
16232 # Append VALUE to the end of shell variable VAR.
16240 cat << \_LT_EOF
>> "$cfgfile"
16242 # func_append var value
16243 # Append VALUE to the end of shell variable VAR.
16254 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16255 ||
(rm -f "$cfgfile"; exit 1)
16257 mv -f "$cfgfile" "$ofile" ||
16258 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16262 cat <<_LT_EOF >> "$ofile"
16264 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16266 # The linker used to build libraries.
16269 # How to create reloadable object files.
16270 reload_flag=$lt_reload_flag_CXX
16271 reload_cmds=$lt_reload_cmds_CXX
16273 # Commands used to build an old-style archive.
16274 old_archive_cmds=$lt_old_archive_cmds_CXX
16276 # A language specific compiler.
16277 CC=$lt_compiler_CXX
16279 # Is the compiler the GNU compiler?
16282 # Compiler flag to turn off builtin functions.
16283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16285 # How to pass a linker flag through the compiler.
16286 wl=$lt_lt_prog_compiler_wl_CXX
16288 # Additional compiler flags for building library objects.
16289 pic_flag=$lt_lt_prog_compiler_pic_CXX
16291 # Compiler flag to prevent dynamic linking.
16292 link_static_flag=$lt_lt_prog_compiler_static_CXX
16294 # Does compiler simultaneously support -c and -o options?
16295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16297 # Whether or not to add -lc for building shared libraries.
16298 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16300 # Whether or not to disallow shared libs when runtime libs are static.
16301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16303 # Compiler flag to allow reflexive dlopens.
16304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16306 # Compiler flag to generate shared objects directly from archives.
16307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16309 # Whether the compiler copes with passing no objects directly.
16310 compiler_needs_object=$lt_compiler_needs_object_CXX
16312 # Create an old-style archive from a shared archive.
16313 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16315 # Create a temporary old-style archive to link instead of a shared archive.
16316 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16318 # Commands used to build a shared archive.
16319 archive_cmds=$lt_archive_cmds_CXX
16320 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16322 # Commands used to build a loadable module if different from building
16323 # a shared archive.
16324 module_cmds=$lt_module_cmds_CXX
16325 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16327 # Whether we are building with GNU ld or not.
16328 with_gnu_ld=$lt_with_gnu_ld_CXX
16330 # Flag that allows shared libraries with undefined symbols to be built.
16331 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16333 # Flag that enforces no undefined symbols.
16334 no_undefined_flag=$lt_no_undefined_flag_CXX
16336 # Flag to hardcode \$libdir into a binary during linking.
16337 # This must work even if \$libdir does not exist
16338 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16340 # If ld is used when linking, flag to hardcode \$libdir into a binary
16341 # during linking. This must work even if \$libdir does not exist.
16342 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16344 # Whether we need a single "-rpath" flag with a separated argument.
16345 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16347 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16348 # DIR into the resulting binary.
16349 hardcode_direct=$hardcode_direct_CXX
16351 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16352 # DIR into the resulting binary and the resulting library dependency is
16353 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16354 # library is relocated.
16355 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16357 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16358 # into the resulting binary.
16359 hardcode_minus_L=$hardcode_minus_L_CXX
16361 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16362 # into the resulting binary.
16363 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16365 # Set to "yes" if building a shared library automatically hardcodes DIR
16366 # into the library and all subsequent libraries and executables linked
16368 hardcode_automatic=$hardcode_automatic_CXX
16370 # Set to yes if linker adds runtime paths of dependent libraries
16371 # to runtime path list.
16372 inherit_rpath=$inherit_rpath_CXX
16374 # Whether libtool must link a program against all its dependency libraries.
16375 link_all_deplibs=$link_all_deplibs_CXX
16377 # Fix the shell variable \$srcfile for the compiler.
16378 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16380 # Set to "yes" if exported symbols are required.
16381 always_export_symbols=$always_export_symbols_CXX
16383 # The commands to list exported symbols.
16384 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16386 # Symbols that should not be listed in the preloaded symbols.
16387 exclude_expsyms=$lt_exclude_expsyms_CXX
16389 # Symbols that must always be exported.
16390 include_expsyms=$lt_include_expsyms_CXX
16392 # Commands necessary for linking programs (against libraries) with templates.
16393 prelink_cmds=$lt_prelink_cmds_CXX
16395 # Specify filename containing input files.
16396 file_list_spec=$lt_file_list_spec_CXX
16398 # How to hardcode a shared library path into an executable.
16399 hardcode_action=$hardcode_action_CXX
16401 # The directories searched by this compiler when creating a shared library.
16402 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16404 # Dependencies to place before and after the objects being linked to
16405 # create a shared library.
16406 predep_objects=$lt_predep_objects_CXX
16407 postdep_objects=$lt_postdep_objects_CXX
16408 predeps=$lt_predeps_CXX
16409 postdeps=$lt_postdeps_CXX
16411 # The library search path used internally by the compiler when linking
16412 # a shared library.
16413 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16415 # ### END LIBTOOL TAG CONFIG: CXX
16421 chmod +x
"$CONFIG_LT"
16423 # configure is writing to config.log, but config.lt does its own redirection,
16424 # appending to config.log, which fails on DOS, as config.log is still kept
16425 # open by configure. Here we exec the FD to /dev/null, effectively closing
16426 # config.log, so it can be properly (re)opened and appended to by config.lt.
16428 test "$silent" = yes &&
16429 lt_config_lt_args
="$lt_config_lt_args --quiet"
16431 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success
=false
16433 $lt_cl_success || as_fn_exit
1
16436 # We require a C++11 compiler. Check if one is available, and if
16437 # necessary, set CXX_DIALECT to some -std=xxx switch.
16438 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
16440 ac_cpp
='$CXXCPP $CPPFLAGS'
16441 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16442 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16443 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16447 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16448 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
16449 $as_echo_n "(cached) " >&6
16451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16455 // If the compiler admits that it is not ready for C++11, why torture it?
16456 // Hopefully, this will speed up the test.
16458 #ifndef __cplusplus
16460 #error "This is not a C++ compiler"
16462 #elif __cplusplus < 201103L
16464 #error "This is not a C++11 compiler"
16471 namespace test_static_assert
16474 template <typename T>
16477 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16482 namespace test_final_override
16487 virtual void f() {}
16490 struct Derived : public Base
16492 virtual void f() override {}
16497 namespace test_double_right_angle_brackets
16500 template < typename T >
16503 typedef check<void> single_type;
16504 typedef check<check<void>> double_type;
16505 typedef check<check<check<void>>> triple_type;
16506 typedef check<check<check<check<void>>>> quadruple_type;
16510 namespace test_decltype
16523 namespace test_type_deduction
16526 template < typename T1, typename T2 >
16529 static const bool value = false;
16532 template < typename T >
16533 struct is_same<T, T>
16535 static const bool value = true;
16538 template < typename T1, typename T2 >
16540 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16546 test(const int c, volatile int v)
16548 static_assert(is_same<int, decltype(0)>::value == true, "");
16549 static_assert(is_same<int, decltype(c)>::value == false, "");
16550 static_assert(is_same<int, decltype(v)>::value == false, "");
16553 auto sumi = ac + av + 'x';
16554 auto sumf = ac + av + 1.0;
16555 static_assert(is_same<int, decltype(ac)>::value == true, "");
16556 static_assert(is_same<int, decltype(av)>::value == true, "");
16557 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16558 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16559 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16560 return (sumf > 0.0) ? sumi : add(c, v);
16565 namespace test_noexcept
16568 int f() { return 0; }
16569 int g() noexcept { return 0; }
16571 static_assert(noexcept(f()) == false, "");
16572 static_assert(noexcept(g()) == true, "");
16576 namespace test_constexpr
16579 template < typename CharT >
16580 unsigned long constexpr
16581 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16583 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16586 template < typename CharT >
16587 unsigned long constexpr
16588 strlen_c(const CharT *const s) noexcept
16590 return strlen_c_r(s, 0UL);
16593 static_assert(strlen_c("") == 0UL, "");
16594 static_assert(strlen_c("1") == 1UL, "");
16595 static_assert(strlen_c("example") == 7UL, "");
16596 static_assert(strlen_c("another\0example") == 7UL, "");
16600 namespace test_rvalue_references
16606 static constexpr int value = N;
16609 answer<1> f(int&) { return answer<1>(); }
16610 answer<2> f(const int&) { return answer<2>(); }
16611 answer<3> f(int&&) { return answer<3>(); }
16618 static_assert(decltype(f(i))::value == 1, "");
16619 static_assert(decltype(f(c))::value == 2, "");
16620 static_assert(decltype(f(0))::value == 3, "");
16625 namespace test_uniform_initialization
16630 static const int zero {};
16631 static const int one {1};
16634 static_assert(test::zero == 0, "");
16635 static_assert(test::one == 1, "");
16639 namespace test_lambdas
16645 auto lambda1 = [](){};
16646 auto lambda2 = lambda1;
16654 auto a = [](int i, int j){ return i + j; }(1, 2);
16655 auto b = []() -> int { return '0'; }();
16656 auto c = [=](){ return a + b; }();
16657 auto d = [&](){ return c; }();
16658 auto e = [a, &b](int x) mutable {
16659 const auto identity = [](int y){ return y; };
16660 for (auto i = 0; i < a; ++i)
16662 return x + identity(a + b);
16664 return a + b + c + d + e;
16670 const auto nullary = [](){ return 0; };
16671 const auto unary = [](int x){ return x; };
16672 using nullary_t = decltype(nullary);
16673 using unary_t = decltype(unary);
16674 const auto higher1st = [](nullary_t f){ return f(); };
16675 const auto higher2nd = [unary](nullary_t f1){
16676 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16678 return higher1st(nullary) + higher2nd(nullary)(unary);
16683 namespace test_variadic_templates
16689 template <int N0, int... N1toN>
16690 struct sum<N0, N1toN...>
16692 static constexpr auto value = N0 + sum<N1toN...>::value;
16698 static constexpr auto value = 0;
16701 static_assert(sum<>::value == 0, "");
16702 static_assert(sum<1>::value == 1, "");
16703 static_assert(sum<23>::value == 23, "");
16704 static_assert(sum<1, 2>::value == 3, "");
16705 static_assert(sum<5, 5, 11>::value == 21, "");
16706 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16710 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16711 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16712 // because of this.
16713 namespace test_template_alias_sfinae
16718 template<typename T>
16719 using member = typename T::member_type;
16721 template<typename T>
16724 template<typename T>
16725 void func(member<T>*) {}
16729 void test() { func<foo>(0); }
16733 } // namespace cxx11
16735 #endif // __cplusplus >= 201103L
16740 if ac_fn_cxx_try_compile
"$LINENO"; then :
16741 ax_cv_cxx_compile_cxx11
=yes
16743 ax_cv_cxx_compile_cxx11
=no
16745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16748 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16749 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
16753 if test x
$ac_success = xno
; then
16754 for alternative
in ${ax_cxx_compile_alternatives}; do
16755 switch
="-std=gnu++${alternative}"
16756 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16758 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16759 if eval \
${$cachevar+:} false
; then :
16760 $as_echo_n "(cached) " >&6
16764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16765 /* end confdefs.h. */
16768 // If the compiler admits that it is not ready for C++11, why torture it?
16769 // Hopefully, this will speed up the test.
16771 #ifndef __cplusplus
16773 #error "This is not a C++ compiler"
16775 #elif __cplusplus < 201103L
16777 #error "This is not a C++11 compiler"
16784 namespace test_static_assert
16787 template <typename T>
16790 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16795 namespace test_final_override
16800 virtual void f() {}
16803 struct Derived : public Base
16805 virtual void f() override {}
16810 namespace test_double_right_angle_brackets
16813 template < typename T >
16816 typedef check<void> single_type;
16817 typedef check<check<void>> double_type;
16818 typedef check<check<check<void>>> triple_type;
16819 typedef check<check<check<check<void>>>> quadruple_type;
16823 namespace test_decltype
16836 namespace test_type_deduction
16839 template < typename T1, typename T2 >
16842 static const bool value = false;
16845 template < typename T >
16846 struct is_same<T, T>
16848 static const bool value = true;
16851 template < typename T1, typename T2 >
16853 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16859 test(const int c, volatile int v)
16861 static_assert(is_same<int, decltype(0)>::value == true, "");
16862 static_assert(is_same<int, decltype(c)>::value == false, "");
16863 static_assert(is_same<int, decltype(v)>::value == false, "");
16866 auto sumi = ac + av + 'x';
16867 auto sumf = ac + av + 1.0;
16868 static_assert(is_same<int, decltype(ac)>::value == true, "");
16869 static_assert(is_same<int, decltype(av)>::value == true, "");
16870 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16871 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16872 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16873 return (sumf > 0.0) ? sumi : add(c, v);
16878 namespace test_noexcept
16881 int f() { return 0; }
16882 int g() noexcept { return 0; }
16884 static_assert(noexcept(f()) == false, "");
16885 static_assert(noexcept(g()) == true, "");
16889 namespace test_constexpr
16892 template < typename CharT >
16893 unsigned long constexpr
16894 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16896 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16899 template < typename CharT >
16900 unsigned long constexpr
16901 strlen_c(const CharT *const s) noexcept
16903 return strlen_c_r(s, 0UL);
16906 static_assert(strlen_c("") == 0UL, "");
16907 static_assert(strlen_c("1") == 1UL, "");
16908 static_assert(strlen_c("example") == 7UL, "");
16909 static_assert(strlen_c("another\0example") == 7UL, "");
16913 namespace test_rvalue_references
16919 static constexpr int value = N;
16922 answer<1> f(int&) { return answer<1>(); }
16923 answer<2> f(const int&) { return answer<2>(); }
16924 answer<3> f(int&&) { return answer<3>(); }
16931 static_assert(decltype(f(i))::value == 1, "");
16932 static_assert(decltype(f(c))::value == 2, "");
16933 static_assert(decltype(f(0))::value == 3, "");
16938 namespace test_uniform_initialization
16943 static const int zero {};
16944 static const int one {1};
16947 static_assert(test::zero == 0, "");
16948 static_assert(test::one == 1, "");
16952 namespace test_lambdas
16958 auto lambda1 = [](){};
16959 auto lambda2 = lambda1;
16967 auto a = [](int i, int j){ return i + j; }(1, 2);
16968 auto b = []() -> int { return '0'; }();
16969 auto c = [=](){ return a + b; }();
16970 auto d = [&](){ return c; }();
16971 auto e = [a, &b](int x) mutable {
16972 const auto identity = [](int y){ return y; };
16973 for (auto i = 0; i < a; ++i)
16975 return x + identity(a + b);
16977 return a + b + c + d + e;
16983 const auto nullary = [](){ return 0; };
16984 const auto unary = [](int x){ return x; };
16985 using nullary_t = decltype(nullary);
16986 using unary_t = decltype(unary);
16987 const auto higher1st = [](nullary_t f){ return f(); };
16988 const auto higher2nd = [unary](nullary_t f1){
16989 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16991 return higher1st(nullary) + higher2nd(nullary)(unary);
16996 namespace test_variadic_templates
17002 template <int N0, int... N1toN>
17003 struct sum<N0, N1toN...>
17005 static constexpr auto value = N0 + sum<N1toN...>::value;
17011 static constexpr auto value = 0;
17014 static_assert(sum<>::value == 0, "");
17015 static_assert(sum<1>::value == 1, "");
17016 static_assert(sum<23>::value == 23, "");
17017 static_assert(sum<1, 2>::value == 3, "");
17018 static_assert(sum<5, 5, 11>::value == 21, "");
17019 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17023 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17024 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17025 // because of this.
17026 namespace test_template_alias_sfinae
17031 template<typename T>
17032 using member = typename T::member_type;
17034 template<typename T>
17037 template<typename T>
17038 void func(member<T>*) {}
17042 void test() { func<foo>(0); }
17046 } // namespace cxx11
17048 #endif // __cplusplus >= 201103L
17053 if ac_fn_cxx_try_compile
"$LINENO"; then :
17058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17061 eval ac_res
=\$
$cachevar
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17063 $as_echo "$ac_res" >&6; }
17064 if eval test x\$
$cachevar = xyes
; then
17065 CXX_DIALECT
="$switch"
17067 if test -n "$CXXCPP" ; then
17068 CXXCPP
="$CXXCPP $switch"
17076 if test x
$ac_success = xno
; then
17077 for alternative
in ${ax_cxx_compile_alternatives}; do
17078 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
17079 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
17081 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
17082 if eval \${$cachevar+:} false; then :
17083 $as_echo_n "(cached
) " >&6
17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088 /* end confdefs.h. */
17091 // If the compiler admits that it is not ready for C++11, why torture it?
17092 // Hopefully, this will speed up the test.
17094 #ifndef __cplusplus
17096 #error "This is not a C
++ compiler
"
17098 #elif __cplusplus < 201103L
17100 #error "This is not a C
++11 compiler
"
17107 namespace test_static_assert
17110 template <typename T>
17113 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
17118 namespace test_final_override
17123 virtual void f() {}
17126 struct Derived : public Base
17128 virtual void f() override {}
17133 namespace test_double_right_angle_brackets
17136 template < typename T >
17139 typedef check<void> single_type;
17140 typedef check<check<void>> double_type;
17141 typedef check<check<check<void>>> triple_type;
17142 typedef check<check<check<check<void>>>> quadruple_type;
17146 namespace test_decltype
17159 namespace test_type_deduction
17162 template < typename T1, typename T2 >
17165 static const bool value = false;
17168 template < typename T >
17169 struct is_same<T, T>
17171 static const bool value = true;
17174 template < typename T1, typename T2 >
17176 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17182 test(const int c, volatile int v)
17184 static_assert(is_same<int, decltype(0)>::value == true, "");
17185 static_assert(is_same<int, decltype(c)>::value == false, "");
17186 static_assert(is_same<int, decltype(v)>::value == false, "");
17189 auto sumi = ac + av + 'x';
17190 auto sumf = ac + av + 1.0;
17191 static_assert(is_same<int, decltype(ac)>::value == true, "");
17192 static_assert(is_same<int, decltype(av)>::value == true, "");
17193 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17194 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17195 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17196 return (sumf > 0.0) ? sumi : add(c, v);
17201 namespace test_noexcept
17204 int f() { return 0; }
17205 int g() noexcept { return 0; }
17207 static_assert(noexcept(f()) == false, "");
17208 static_assert(noexcept(g()) == true, "");
17212 namespace test_constexpr
17215 template < typename CharT >
17216 unsigned long constexpr
17217 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17219 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17222 template < typename CharT >
17223 unsigned long constexpr
17224 strlen_c(const CharT *const s) noexcept
17226 return strlen_c_r(s, 0UL);
17229 static_assert(strlen_c("") == 0UL, "");
17230 static_assert(strlen_c("1") == 1UL, "");
17231 static_assert(strlen_c("example
") == 7UL, "");
17232 static_assert(strlen_c("another\
0example
") == 7UL, "");
17236 namespace test_rvalue_references
17242 static constexpr int value = N;
17245 answer<1> f(int&) { return answer<1>(); }
17246 answer<2> f(const int&) { return answer<2>(); }
17247 answer<3> f(int&&) { return answer<3>(); }
17254 static_assert(decltype(f(i))::value == 1, "");
17255 static_assert(decltype(f(c))::value == 2, "");
17256 static_assert(decltype(f(0))::value == 3, "");
17261 namespace test_uniform_initialization
17266 static const int zero {};
17267 static const int one {1};
17270 static_assert(test::zero == 0, "");
17271 static_assert(test::one == 1, "");
17275 namespace test_lambdas
17281 auto lambda1 = [](){};
17282 auto lambda2 = lambda1;
17290 auto a = [](int i, int j){ return i + j; }(1, 2);
17291 auto b = []() -> int { return '0'; }();
17292 auto c = [=](){ return a + b; }();
17293 auto d = [&](){ return c; }();
17294 auto e = [a, &b](int x) mutable {
17295 const auto identity = [](int y){ return y; };
17296 for (auto i = 0; i < a; ++i)
17298 return x + identity(a + b);
17300 return a + b + c + d + e;
17306 const auto nullary = [](){ return 0; };
17307 const auto unary = [](int x){ return x; };
17308 using nullary_t = decltype(nullary);
17309 using unary_t = decltype(unary);
17310 const auto higher1st = [](nullary_t f){ return f(); };
17311 const auto higher2nd = [unary](nullary_t f1){
17312 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17314 return higher1st(nullary) + higher2nd(nullary)(unary);
17319 namespace test_variadic_templates
17325 template <int N0, int... N1toN>
17326 struct sum<N0, N1toN...>
17328 static constexpr auto value = N0 + sum<N1toN...>::value;
17334 static constexpr auto value = 0;
17337 static_assert(sum<>::value == 0, "");
17338 static_assert(sum<1>::value == 1, "");
17339 static_assert(sum<23>::value == 23, "");
17340 static_assert(sum<1, 2>::value == 3, "");
17341 static_assert(sum<5, 5, 11>::value == 21, "");
17342 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17346 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17347 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17348 // because of this.
17349 namespace test_template_alias_sfinae
17354 template<typename T>
17355 using member = typename T::member_type;
17357 template<typename T>
17360 template<typename T>
17361 void func(member<T>*) {}
17365 void test() { func<foo>(0); }
17369 } // namespace cxx11
17371 #endif // __cplusplus >= 201103L
17376 if ac_fn_cxx_try_compile "$LINENO"; then :
17381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17384 eval ac_res=\$$cachevar
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
17386 $as_echo "$ac_res" >&6; }
17387 if eval test x\$$cachevar = xyes; then
17388 CXX_DIALECT="$switch"
17390 if test -n "$CXXCPP" ; then
17391 CXXCPP="$CXXCPP $switch"
17397 if test x$ac_success = xyes; then
17403 ac_cpp='$CPP $CPPFLAGS'
17404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17408 if test x$ax_cxx_compile_cxx11_required = xtrue; then
17409 if test x$ac_success = xno; then
17410 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
17413 if test x$ac_success = xno; then
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
17416 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
17420 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
17427 # Dependency checking.
17428 rm -rf .tst
2>/dev
/null
17429 mkdir .tst
2>/dev
/null
17430 if test -d .tst
; then
17435 rmdir .tst
2>/dev
/null
17437 DEPDIR
="${am__leading_dot}deps"
17439 ac_config_commands
="$ac_config_commands depdir"
17442 depcc
="$CC" am_compiler_list
=
17444 am_depcomp
=$ac_aux_dir/depcomp
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17446 $as_echo_n "checking dependency style of $depcc... " >&6; }
17447 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
17448 $as_echo_n "(cached) " >&6
17450 if test -f "$am_depcomp"; then
17451 # We make a subdir and do the tests there. Otherwise we can end up
17452 # making bogus files that we don't know about and never remove. For
17453 # instance it was reported that on HP-UX the gcc test will end up
17454 # making a dummy file named `D' -- because `-MD' means `put the output
17457 # Copy depcomp to subdir because otherwise we won't find it if we're
17458 # using a relative directory.
17459 cp "$am_depcomp" conftest.dir
17461 # We will build objects and dependencies in a subdirectory because
17462 # it helps to detect inapplicable dependency modes. For instance
17463 # both Tru64's cc and ICC support -MD to output dependencies as a
17464 # side effect of compilation, but ICC will put the dependencies in
17465 # the current directory while Tru64 will put them in the object
17469 am_cv_CC_dependencies_compiler_type
=none
17470 if test "$am_compiler_list" = ""; then
17471 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17473 for depmode
in $am_compiler_list; do
17474 if test $depmode = none
; then break; fi
17476 $as_echo "$as_me:$LINENO: trying $depmode" >&5
17477 # Setup a source with many dependencies, because some compilers
17478 # like to wrap large dependency lists on column 80 (with \), and
17479 # we should not choose a depcomp mode which is confused by this.
17481 # We need to recreate these files for each test, as the compiler may
17482 # overwrite some of them when testing with obscure command lines.
17483 # This happens at least with the AIX C compiler.
17485 for i
in 1 2 3 4 5 6; do
17486 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
17487 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17488 # Solaris 8's {/usr,}/bin/sh.
17489 touch sub
/conftst
$i.h
17491 echo "include sub/conftest.Po" > confmf
17493 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17494 # mode. It turns out that the SunPro C++ compiler does not properly
17495 # handle `-M -o', and we need to detect this.
17496 depcmd
="depmode=$depmode \
17497 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
17498 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17499 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
17500 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
17501 if env
$depcmd > conftest.err
2>&1 &&
17502 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
17503 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
17504 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
17505 # icc doesn't choke on unknown options, it will just issue warnings
17506 # or remarks (even with -Werror). So we grep stderr for any message
17507 # that says an option was ignored or not supported.
17508 # When given -MP, icc 7.0 and 7.1 complain thusly:
17509 # icc: Command line warning: ignoring option '-M'; no argument required
17510 # The diagnosis changed in icc 8.0:
17511 # icc: Command line remark: option '-MP' not supported
17512 if (grep 'ignoring option' conftest.err ||
17513 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
17514 am_cv_CC_dependencies_compiler_type
=$depmode
17515 $as_echo "$as_me:$LINENO: success" >&5
17519 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
17520 sed -e 's/^/| /' < conftest.err
>&5
17524 rm -rf conftest.dir
17526 am_cv_CC_dependencies_compiler_type
=none
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17531 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17532 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
17533 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
17534 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
17539 # Since the first call to PKG_CHECK_MODULES may not happen (is guarded by
17540 # a condition), we must call PKG_PROG_PKG_CONFIG explicitly to probe for
17549 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17550 if test -n "$ac_tool_prefix"; then
17551 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17552 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17554 $as_echo_n "checking for $ac_word... " >&6; }
17555 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
17556 $as_echo_n "(cached) " >&6
17558 case $PKG_CONFIG in
17560 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
17563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17564 for as_dir
in $PATH
17567 test -z "$as_dir" && as_dir
=.
17568 for ac_exec_ext
in '' $ac_executable_extensions; do
17569 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17570 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
17571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17581 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
17582 if test -n "$PKG_CONFIG"; then
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17584 $as_echo "$PKG_CONFIG" >&6; }
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17587 $as_echo "no" >&6; }
17592 if test -z "$ac_cv_path_PKG_CONFIG"; then
17593 ac_pt_PKG_CONFIG
=$PKG_CONFIG
17594 # Extract the first word of "pkg-config", so it can be a program name with args.
17595 set dummy pkg-config
; ac_word
=$2
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17597 $as_echo_n "checking for $ac_word... " >&6; }
17598 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
17599 $as_echo_n "(cached) " >&6
17601 case $ac_pt_PKG_CONFIG in
17603 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17607 for as_dir
in $PATH
17610 test -z "$as_dir" && as_dir
=.
17611 for ac_exec_ext
in '' $ac_executable_extensions; do
17612 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17613 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
17614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17624 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
17625 if test -n "$ac_pt_PKG_CONFIG"; then
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17627 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17630 $as_echo "no" >&6; }
17633 if test "x$ac_pt_PKG_CONFIG" = x
; then
17636 case $cross_compiling:$ac_tool_warned in
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17640 ac_tool_warned
=yes ;;
17642 PKG_CONFIG
=$ac_pt_PKG_CONFIG
17645 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
17649 if test -n "$PKG_CONFIG"; then
17650 _pkg_min_version
=0.9.0
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17652 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17653 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17655 $as_echo "yes" >&6; }
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17658 $as_echo "no" >&6; }
17674 # If we haven't got the data from the intl directory,
17675 # assume NLS is disabled.
17684 if test -f ..
/intl
/config.intl
; then
17685 . ..
/intl
/config.intl
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17688 $as_echo_n "checking whether NLS is requested... " >&6; }
17689 if test x
"$USE_NLS" != xyes
; then
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17691 $as_echo "no" >&6; }
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17694 $as_echo "yes" >&6; }
17696 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
17700 $as_echo_n "checking for catalogs to be installed... " >&6; }
17701 # Look for .po and .gmo files in the source directory.
17704 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
17705 # If there aren't any .gmo files the shell will give us the
17706 # literal string "../path/to/srcdir/po/*.gmo" which has to be
17708 case "$cat" in *\
**)
17711 # The quadruple backslash is collapsed to a double backslash
17712 # by the backticks, then collapsed again by the double quotes,
17713 # leaving us with one backslash in the sed expression (right
17714 # before the dot that mustn't act as a wildcard).
17715 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
17716 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
17717 # The user is allowed to set LINGUAS to a list of languages to
17718 # install catalogs for. If it's empty that means "all of them."
17719 if test "x$LINGUAS" = x
; then
17720 CATALOGS
="$CATALOGS $cat"
17721 XLINGUAS
="$XLINGUAS $lang"
17723 case "$LINGUAS" in *$lang*)
17724 CATALOGS
="$CATALOGS $cat"
17725 XLINGUAS
="$XLINGUAS $lang"
17730 LINGUAS
="$XLINGUAS"
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
17732 $as_echo "$LINGUAS" >&6; }
17745 localedir
='${datadir}/locale'
17748 if test x
"$USE_NLS" = xyes
; then
17749 CONFIG_ALL
="$CONFIG_ALL all-po"
17750 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
17751 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
17752 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
17757 cat >>confdefs.h
<<_ACEOF
17758 #define PACKAGE "$PACKAGE"
17763 # We never need to detect it in this sub-configure.
17764 # But preserve it for config.status --recheck.
17768 MAKEINFO_EXTRA_FLAGS
=""
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
17770 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
17771 if ${gdb_cv_have_makeinfo_click+:} false
; then :
17772 $as_echo_n "(cached) " >&6
17774 echo '@clicksequence{a @click{} b}' >conftest.texinfo
17775 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
17776 gdb_cv_have_makeinfo_click
=yes
17778 gdb_cv_have_makeinfo_click
=no
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
17782 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
17783 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
17784 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
17790 # Check whether --with-separate-debug-dir was given.
17791 if test "${with_separate_debug_dir+set}" = set; then :
17792 withval
=$with_separate_debug_dir;
17795 DEBUGDIR
=${libdir}/debug
17799 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
17800 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17801 ac_define_dir
=`eval echo $DEBUGDIR`
17802 ac_define_dir
=`eval echo $ac_define_dir`
17804 cat >>confdefs.h
<<_ACEOF
17805 #define DEBUGDIR "$ac_define_dir"
17811 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
17812 if test "x$prefix" = xNONE
; then
17813 test_prefix
=/usr
/local
17815 test_prefix
=$prefix
17818 test_prefix
=$exec_prefix
17821 case ${ac_define_dir} in
17822 "${test_prefix}"|
"${test_prefix}/"*|\
17823 '${exec_prefix}'|
'${exec_prefix}/'*)
17828 cat >>confdefs.h
<<_ACEOF
17829 #define DEBUGDIR_RELOCATABLE $value
17835 # We can't pass paths as command line arguments.
17836 # Mingw32 tries to be clever and will convert the paths for us.
17837 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
17838 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
17839 # This breaks GDB's relocatable path conversions since paths passed in
17840 # config.h would not get so translated, the path prefixes no longer match.
17842 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
17843 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17844 ac_define_dir
=`eval echo $bindir`
17845 ac_define_dir
=`eval echo $ac_define_dir`
17847 cat >>confdefs.h
<<_ACEOF
17848 #define BINDIR "$ac_define_dir"
17853 # GDB's datadir relocation
17857 # Check whether --with-gdb-datadir was given.
17858 if test "${with_gdb_datadir+set}" = set; then :
17859 withval
=$with_gdb_datadir;
17860 GDB_DATADIR
=$withval
17862 GDB_DATADIR
=${datadir}/gdb
17866 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
17867 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17868 ac_define_dir
=`eval echo $GDB_DATADIR`
17869 ac_define_dir
=`eval echo $ac_define_dir`
17871 cat >>confdefs.h
<<_ACEOF
17872 #define GDB_DATADIR "$ac_define_dir"
17878 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
17879 if test "x$prefix" = xNONE
; then
17880 test_prefix
=/usr
/local
17882 test_prefix
=$prefix
17885 test_prefix
=$exec_prefix
17888 case ${ac_define_dir} in
17889 "${test_prefix}"|
"${test_prefix}/"*|\
17890 '${exec_prefix}'|
'${exec_prefix}/'*)
17895 cat >>confdefs.h
<<_ACEOF
17896 #define GDB_DATADIR_RELOCATABLE $value
17903 # Check whether --with-relocated-sources was given.
17904 if test "${with_relocated_sources+set}" = set; then :
17905 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
17907 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
17908 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17909 ac_define_dir
=`eval echo $reloc_srcdir`
17910 ac_define_dir
=`eval echo $ac_define_dir`
17912 cat >>confdefs.h
<<_ACEOF
17913 #define RELOC_SRCDIR "$ac_define_dir"
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
17922 $as_echo_n "checking for default auto-load directory... " >&6; }
17924 # Check whether --with-auto-load-dir was given.
17925 if test "${with_auto_load_dir+set}" = set; then :
17926 withval
=$with_auto_load_dir;
17928 with_auto_load_dir
='$debugdir:$datadir/auto-load'
17931 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
17933 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
17934 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17935 ac_define_dir
=`eval echo $escape_dir`
17936 ac_define_dir
=`eval echo $ac_define_dir`
17938 cat >>confdefs.h
<<_ACEOF
17939 #define AUTO_LOAD_DIR "$ac_define_dir"
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
17944 $as_echo "$with_auto_load_dir" >&6; }
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
17947 $as_echo_n "checking for default auto-load safe-path... " >&6; }
17949 # Check whether --with-auto-load-safe-path was given.
17950 if test "${with_auto_load_safe_path+set}" = set; then :
17951 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
17952 with_auto_load_safe_path
="/"
17955 with_auto_load_safe_path
="$with_auto_load_dir"
17958 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
17960 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
17961 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17962 ac_define_dir
=`eval echo $escape_dir`
17963 ac_define_dir
=`eval echo $ac_define_dir`
17965 cat >>confdefs.h
<<_ACEOF
17966 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
17971 $as_echo "$with_auto_load_safe_path" >&6; }
17975 subdirs
="$subdirs testsuite"
17978 # Check whether to support alternative target configurations
17979 # Check whether --enable-targets was given.
17980 if test "${enable_targets+set}" = set; then :
17981 enableval
=$enable_targets; case "${enableval}" in
17982 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
17984 no
) enable_targets
= ;;
17985 *) enable_targets
=$enableval ;;
17990 # Check whether --enable-64-bit-bfd was given.
17991 if test "${enable_64_bit_bfd+set}" = set; then :
17992 enableval
=$enable_64_bit_bfd; case $enableval in #(
17996 as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
18001 enable_64_bit_bfd
=no
18005 if test "x$enable_64_bit_bfd" = "xno"; then :
18006 # The cast to long int works around a bug in the HP C Compiler
18007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18009 # This bug is HP SR number 8606223364.
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18011 $as_echo_n "checking size of void *... " >&6; }
18012 if ${ac_cv_sizeof_void_p+:} false
; then :
18013 $as_echo_n "(cached) " >&6
18015 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
18018 if test "$ac_cv_type_void_p" = yes; then
18019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18021 as_fn_error
77 "cannot compute sizeof (void *)
18022 See \`config.log' for more details" "$LINENO" 5; }
18024 ac_cv_sizeof_void_p
=0
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18030 $as_echo "$ac_cv_sizeof_void_p" >&6; }
18034 cat >>confdefs.h
<<_ACEOF
18035 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18039 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
18040 enable_64_bit_bfd
=yes
18045 if test "x$enable_64_bit_bfd" = "xyes"; then
18046 ENABLE_BFD_64_BIT_TRUE
=
18047 ENABLE_BFD_64_BIT_FALSE
='#'
18049 ENABLE_BFD_64_BIT_TRUE
='#'
18050 ENABLE_BFD_64_BIT_FALSE
=
18055 # Provide defaults for some variables set by the per-host and per-target
18057 gdb_host_obs
=posix-hdep.o
18059 if test "${target}" = "${host}"; then
18065 .
$srcdir/configure.
host
18067 # Accumulate some settings from configure.tgt over all enabled targets
18071 HAVE_NATIVE_GCORE_TARGET
=
18073 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
18075 if test "$targ_alias" = "all"; then
18078 # Canonicalize the secondary target names.
18079 result
=`$ac_config_sub $targ_alias 2>/dev/null`
18080 if test -n "$result"; then
18086 .
${srcdir}/configure.tgt
18088 if test -z "${gdb_target_obs}"; then :
18089 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
18092 # Target-specific object files
18093 for i
in ${gdb_target_obs}; do
18094 case " $TARGET_OBS " in
18097 TARGET_OBS
="$TARGET_OBS ${i}"
18102 # Check whether this target needs 64-bit CORE_ADDR
18103 if test x
${enable_64_bit_bfd} = xno
; then
18104 .
${srcdir}/..
/bfd
/config.bfd
18107 # Check whether this target is native and supports gcore.
18108 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
18109 && $gdb_have_gcore; then
18110 HAVE_NATIVE_GCORE_TARGET
=1
18115 if test x
${all_targets} = xtrue
; then
18116 if test x
${enable_64_bit_bfd} = xyes
; then
18117 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
18119 TARGET_OBS
='$(ALL_TARGET_OBS)'
18123 # AMD debugger API support.
18126 # Check whether --with-amd-dbgapi was given.
18127 if test "${with_amd_dbgapi+set}" = set; then :
18128 withval
=$with_amd_dbgapi;
18133 as_fn_error $?
"bad value $withval for --with-amd-dbgapi" "$LINENO" 5
18138 with_amd_dbgapi
=auto
18142 # If the user passes --without-amd-dbgapi but also explicitly enables a target
18143 # that requires amd-dbgapi, it is an error.
18144 if test "$with_amd_dbgapi" = no
-a "$gdb_require_amd_dbgapi" = true
; then
18145 as_fn_error $?
"an explicitly enabled target requires amd-dbgapi, but amd-dbgapi is explicitly disabled" "$LINENO" 5
18148 # Look for amd-dbgapi if:
18150 # - a target architecture requiring it has explicitly been enabled, or
18151 # - --enable-targets=all was provided and the user did not explicitly disable
18152 # amd-dbgapi support
18153 if test "$gdb_require_amd_dbgapi" = true \
18154 -o \
( "$all_targets" = true
-a "$with_amd_dbgapi" != no \
); then
18155 # amd-dbgapi version 0.68 is part of ROCm 5.4. There is no guarantee of API
18156 # stability until amd-dbgapi hits 1.0, but for convenience, still check for
18157 # greater or equal that version. It can be handy when testing with a newer
18158 # version of the library.
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.68.0" >&5
18162 $as_echo_n "checking for amd-dbgapi >= 0.68.0... " >&6; }
18164 if test -n "$AMD_DBGAPI_CFLAGS"; then
18165 pkg_cv_AMD_DBGAPI_CFLAGS
="$AMD_DBGAPI_CFLAGS"
18166 elif test -n "$PKG_CONFIG"; then
18167 if test -n "$PKG_CONFIG" && \
18168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
18169 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
18171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18172 test $ac_status = 0; }; then
18173 pkg_cv_AMD_DBGAPI_CFLAGS
=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.68.0" 2>/dev/null`
18174 test "x$?" != "x0" && pkg_failed
=yes
18181 if test -n "$AMD_DBGAPI_LIBS"; then
18182 pkg_cv_AMD_DBGAPI_LIBS
="$AMD_DBGAPI_LIBS"
18183 elif test -n "$PKG_CONFIG"; then
18184 if test -n "$PKG_CONFIG" && \
18185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
18186 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
18188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18189 test $ac_status = 0; }; then
18190 pkg_cv_AMD_DBGAPI_LIBS
=`$PKG_CONFIG --libs "amd-dbgapi >= 0.68.0" 2>/dev/null`
18191 test "x$?" != "x0" && pkg_failed
=yes
18199 if test $pkg_failed = no
; then
18200 pkg_save_LDFLAGS
="$LDFLAGS"
18201 LDFLAGS
="$LDFLAGS $pkg_cv_AMD_DBGAPI_LIBS"
18202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18203 /* end confdefs.h. */
18213 if ac_fn_c_try_link
"$LINENO"; then :
18218 rm -f core conftest.err conftest.
$ac_objext \
18219 conftest
$ac_exeext conftest.
$ac_ext
18220 LDFLAGS
=$pkg_save_LDFLAGS
18225 if test $pkg_failed = yes; then
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18227 $as_echo "no" >&6; }
18229 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18230 _pkg_short_errors_supported
=yes
18232 _pkg_short_errors_supported
=no
18234 if test $_pkg_short_errors_supported = yes; then
18235 AMD_DBGAPI_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
18237 AMD_DBGAPI_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
18239 # Put the nasty error message in config.log where it belongs
18240 echo "$AMD_DBGAPI_PKG_ERRORS" >&5
18243 elif test $pkg_failed = untried
; then
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18245 $as_echo "no" >&6; }
18248 AMD_DBGAPI_CFLAGS
=$pkg_cv_AMD_DBGAPI_CFLAGS
18249 AMD_DBGAPI_LIBS
=$pkg_cv_AMD_DBGAPI_LIBS
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18251 $as_echo "yes" >&6; }
18255 if test "$has_amd_dbgapi" = "yes"; then
18257 $as_echo "#define HAVE_AMD_DBGAPI 1" >>confdefs.h
18259 TARGET_OBS
="$TARGET_OBS amd-dbgapi-target.o"
18261 # If --enable-targets=all was provided, use the list of all files depending
18262 # on amd-dbgapi that is hardcoded in the Makefile. Else, the appropriate
18263 # architecture entry in configure.tgt will have added the files to
18265 if test "$all_targets" = true
; then
18266 TARGET_OBS
="$TARGET_OBS \$(ALL_AMD_DBGAPI_TARGET_OBS)"
18268 elif test "$gdb_require_amd_dbgapi" = true
-o "$with_amd_dbgapi" = yes; then
18269 # amd-dbgapi was not found and...
18271 # - a target requiring it was explicitly enabled, or
18272 # - the user explicitly wants to enable amd-dbgapi
18273 as_fn_error $?
"amd-dbgapi is required, but cannot find an appropriate version: $AMD_DBGAPI_PKG_ERRORS" "$LINENO" 5
18280 # For other settings, only the main target counts.
18283 targ
=$target; .
${srcdir}/configure.tgt
18285 # Fetch the default architecture and default target vector from BFD.
18286 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
18288 # We only want the first architecture, so strip off the others if
18289 # there is more than one.
18290 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
18292 if test "x$targ_archs" != x
; then
18294 cat >>confdefs.h
<<_ACEOF
18295 #define DEFAULT_BFD_ARCH $targ_archs
18299 if test "x$targ_defvec" != x
; then
18301 cat >>confdefs.h
<<_ACEOF
18302 #define DEFAULT_BFD_VEC $targ_defvec
18308 # Check whether --enable-gdbmi was given.
18309 if test "${enable_gdbmi+set}" = set; then :
18310 enableval
=$enable_gdbmi;
18315 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5
18323 if test x
"$enable_gdbmi" = xyes
; then
18324 if test -d "$srcdir/mi"; then
18325 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
18326 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
18327 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
18328 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
18333 # Check whether --enable-tui was given.
18334 if test "${enable_tui+set}" = set; then :
18335 enableval
=$enable_tui;
18340 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5
18350 # Check whether --enable-gdbtk was given.
18351 if test "${enable_gdbtk+set}" = set; then :
18352 enableval
=$enable_gdbtk;
18357 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5
18362 if test -d "$srcdir/gdbtk"; then
18369 # We unconditionally disable gdbtk tests on selected platforms.
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
18373 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
18377 # Handle optional debuginfod support
18379 # Handle optional debuginfod support
18381 # Check whether --with-debuginfod was given.
18382 if test "${with_debuginfod+set}" = set; then :
18383 withval
=$with_debuginfod;
18385 with_debuginfod
=auto
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
18389 $as_echo_n "checking whether to use debuginfod... " >&6; }
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
18391 $as_echo "$with_debuginfod" >&6; }
18393 if test "x$with_debuginfod" != xno
; then
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
18397 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
18399 if test -n "$DEBUGINFOD_CFLAGS"; then
18400 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
18401 elif test -n "$PKG_CONFIG"; then
18402 if test -n "$PKG_CONFIG" && \
18403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
18404 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
18406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18407 test $ac_status = 0; }; then
18408 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
18409 test "x$?" != "x0" && pkg_failed
=yes
18416 if test -n "$DEBUGINFOD_LIBS"; then
18417 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
18418 elif test -n "$PKG_CONFIG"; then
18419 if test -n "$PKG_CONFIG" && \
18420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
18421 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
18423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18424 test $ac_status = 0; }; then
18425 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
18426 test "x$?" != "x0" && pkg_failed
=yes
18434 if test $pkg_failed = no
; then
18435 pkg_save_LDFLAGS
="$LDFLAGS"
18436 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
18437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18448 if ac_fn_c_try_link
"$LINENO"; then :
18453 rm -f core conftest.err conftest.
$ac_objext \
18454 conftest
$ac_exeext conftest.
$ac_ext
18455 LDFLAGS
=$pkg_save_LDFLAGS
18460 if test $pkg_failed = yes; then
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18462 $as_echo "no" >&6; }
18464 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18465 _pkg_short_errors_supported
=yes
18467 _pkg_short_errors_supported
=no
18469 if test $_pkg_short_errors_supported = yes; then
18470 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
18472 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
18474 # Put the nasty error message in config.log where it belongs
18475 echo "$DEBUGINFOD_PKG_ERRORS" >&5
18477 if test "x$with_debuginfod" = xyes
; then
18478 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
18481 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
18483 elif test $pkg_failed = untried
; then
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18485 $as_echo "no" >&6; }
18486 if test "x$with_debuginfod" = xyes
; then
18487 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
18490 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
18493 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
18494 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18496 $as_echo "yes" >&6; }
18498 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
18503 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
18507 # Libunwind support for ia64.
18509 # Check whether --with-libunwind-ia64 was given.
18510 if test "${with_libunwind_ia64+set}" = set; then :
18511 withval
=$with_libunwind_ia64;
18513 with_libunwind_ia64
=auto
18517 # Backward compatibility option.
18518 if test "${with_libunwind+set}" = set; then
18519 if test x
"$with_libunwind_ia64" != xauto
; then
18520 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
18523 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
18524 with_libunwind_ia64
="$with_libunwind"
18527 case "$with_libunwind_ia64" in
18531 for ac_header
in libunwind-ia64.h
18533 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
18534 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
18535 cat >>confdefs.h
<<_ACEOF
18536 #define HAVE_LIBUNWIND_IA64_H 1
18543 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
18546 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
18550 if test x
"$with_libunwind_ia64" = xyes
; then
18551 for ac_header
in libunwind-ia64.h
18553 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
18554 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
18555 cat >>confdefs.h
<<_ACEOF
18556 #define HAVE_LIBUNWIND_IA64_H 1
18563 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
18564 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
18566 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
18567 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
18568 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
18573 # Check whether --with-curses was given.
18574 if test "${with_curses+set}" = set; then :
18575 withval
=$with_curses; opt_curses
=$withval
18580 if test "$opt_curses" = "yes"; then
18584 # Profiling support.
18585 # Check whether --enable-profiling was given.
18586 if test "${enable_profiling+set}" = set; then :
18587 enableval
=$enable_profiling;
18592 as_fn_error $?
"bad value $enableval for --enable-profiling" "$LINENO" 5
18597 enable_profiling
=no
18601 for ac_func
in monstartup _mcleanup
18603 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18604 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18605 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
18606 cat >>confdefs.h
<<_ACEOF
18607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
18614 $as_echo_n "checking for _etext... " >&6; }
18615 if ${ac_cv_var__etext+:} false
; then :
18616 $as_echo_n "(cached) " >&6
18618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18619 /* end confdefs.h. */
18620 #include <stdlib.h>
18621 extern char _etext;
18631 if ac_fn_c_try_link
"$LINENO"; then :
18632 ac_cv_var__etext
=yes
18634 ac_cv_var__etext
=no
18637 rm -f core conftest.err conftest.
$ac_objext \
18638 conftest
$ac_exeext conftest.
$ac_ext
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
18642 $as_echo "$ac_cv_var__etext" >&6; }
18643 if test "$ac_cv_var__etext" = yes; then
18645 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
18649 $as_echo_n "checking for etext... " >&6; }
18650 if ${ac_cv_var_etext+:} false
; then :
18651 $as_echo_n "(cached) " >&6
18653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18654 /* end confdefs.h. */
18655 #include <stdlib.h>
18666 if ac_fn_c_try_link
"$LINENO"; then :
18667 ac_cv_var_etext
=yes
18672 rm -f core conftest.err conftest.
$ac_objext \
18673 conftest
$ac_exeext conftest.
$ac_ext
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
18677 $as_echo "$ac_cv_var_etext" >&6; }
18678 if test "$ac_cv_var_etext" = yes; then
18680 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
18683 if test "$enable_profiling" = yes ; then
18684 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
18685 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
18688 OLD_CFLAGS
="$CFLAGS"
18689 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
18692 $as_echo_n "checking whether $CC supports -pg... " >&6; }
18693 if ${ac_cv_cc_supports_pg+:} false
; then :
18694 $as_echo_n "(cached) " >&6
18696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18707 if ac_fn_c_try_compile
"$LINENO"; then :
18708 ac_cv_cc_supports_pg
=yes
18710 ac_cv_cc_supports_pg
=no
18713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
18717 $as_echo "$ac_cv_cc_supports_pg" >&6; }
18719 if test "$ac_cv_cc_supports_pg" = no
; then
18720 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
18723 CFLAGS
="$OLD_CFLAGS"
18727 # Check whether --enable-codesign was given.
18728 if test "${enable_codesign+set}" = set; then :
18729 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
18736 # Check whether --with-pkgversion was given.
18737 if test "${with_pkgversion+set}" = set; then :
18738 withval
=$with_pkgversion; case "$withval" in
18739 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
18741 *) PKGVERSION
="($withval) " ;;
18744 PKGVERSION
="(GDB) "
18752 # Check whether --with-bugurl was given.
18753 if test "${with_bugurl+set}" = set; then :
18754 withval
=$with_bugurl; case "$withval" in
18755 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
18758 *) BUGURL
="$withval"
18762 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
18772 REPORT_BUGS_TO
="<$BUGURL>"
18773 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
18780 cat >>confdefs.h
<<_ACEOF
18781 #define PKGVERSION "$PKGVERSION"
18785 cat >>confdefs.h
<<_ACEOF
18786 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
18790 # --------------------- #
18791 # Checks for programs. #
18792 # --------------------- #
18794 for ac_prog
in gawk mawk nawk
awk
18796 # Extract the first word of "$ac_prog", so it can be a program name with args.
18797 set dummy
$ac_prog; ac_word
=$2
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18799 $as_echo_n "checking for $ac_word... " >&6; }
18800 if ${ac_cv_prog_AWK+:} false
; then :
18801 $as_echo_n "(cached) " >&6
18803 if test -n "$AWK"; then
18804 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
18806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18807 for as_dir
in $PATH
18810 test -z "$as_dir" && as_dir
=.
18811 for ac_exec_ext
in '' $ac_executable_extensions; do
18812 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18813 ac_cv_prog_AWK
="$ac_prog"
18814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18823 AWK
=$ac_cv_prog_AWK
18824 if test -n "$AWK"; then
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18826 $as_echo "$AWK" >&6; }
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18829 $as_echo "no" >&6; }
18833 test -n "$AWK" && break
18836 # Find a good install program. We prefer a C program (faster),
18837 # so one script is as good as another. But avoid the broken or
18838 # incompatible versions:
18839 # SysV /etc/install, /usr/sbin/install
18840 # SunOS /usr/etc/install
18841 # IRIX /sbin/install
18843 # AmigaOS /C/install, which installs bootblocks on floppy discs
18844 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18847 # OS/2's system install, which has a completely different semantic
18848 # ./install, which can be erroneously created by make from ./install.sh.
18849 # Reject install programs that cannot install multiple files.
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18851 $as_echo_n "checking for a BSD-compatible install... " >&6; }
18852 if test -z "$INSTALL"; then
18853 if ${ac_cv_path_install+:} false
; then :
18854 $as_echo_n "(cached) " >&6
18856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18857 for as_dir
in $PATH
18860 test -z "$as_dir" && as_dir
=.
18861 # Account for people who put trailing slashes in PATH elements.
18862 case $as_dir/ in #((
18863 .
/ | .
// |
/[cC
]/* | \
18864 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
18865 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
18868 # OSF1 and SCO ODT 3.0 have their own names for install.
18869 # Don't use installbsd from OSF since it installs stuff as root
18871 for ac_prog
in ginstall scoinst
install; do
18872 for ac_exec_ext
in '' $ac_executable_extensions; do
18873 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
18874 if test $ac_prog = install &&
18875 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
18876 # AIX install. It has an incompatible calling convention.
18878 elif test $ac_prog = install &&
18879 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
18880 # program-specific install script used by HP pwplus--don't use.
18883 rm -rf conftest.one conftest.two conftest.dir
18884 echo one
> conftest.one
18885 echo two
> conftest.two
18887 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
18888 test -s conftest.one
&& test -s conftest.two
&&
18889 test -s conftest.dir
/conftest.one
&&
18890 test -s conftest.dir
/conftest.two
18892 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
18905 rm -rf conftest.one conftest.two conftest.dir
18908 if test "${ac_cv_path_install+set}" = set; then
18909 INSTALL
=$ac_cv_path_install
18911 # As a last resort, use the slow shell script. Don't cache a
18912 # value for INSTALL within a source directory, because that will
18913 # break other packages using the cache if that directory is
18914 # removed, or if the value is a relative name.
18915 INSTALL
=$ac_install_sh
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18919 $as_echo "$INSTALL" >&6; }
18921 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18922 # It thinks the first close brace ends the variable substitution.
18923 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
18925 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
18927 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18930 $as_echo_n "checking whether ln -s works... " >&6; }
18932 if test "$LN_S" = "ln -s"; then
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18934 $as_echo "yes" >&6; }
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18937 $as_echo "no, using $LN_S" >&6; }
18940 if test -n "$ac_tool_prefix"; then
18941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18942 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18944 $as_echo_n "checking for $ac_word... " >&6; }
18945 if ${ac_cv_prog_RANLIB+:} false
; then :
18946 $as_echo_n "(cached) " >&6
18948 if test -n "$RANLIB"; then
18949 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
18951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18952 for as_dir
in $PATH
18955 test -z "$as_dir" && as_dir
=.
18956 for ac_exec_ext
in '' $ac_executable_extensions; do
18957 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18958 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
18959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18968 RANLIB
=$ac_cv_prog_RANLIB
18969 if test -n "$RANLIB"; then
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18971 $as_echo "$RANLIB" >&6; }
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18974 $as_echo "no" >&6; }
18979 if test -z "$ac_cv_prog_RANLIB"; then
18980 ac_ct_RANLIB
=$RANLIB
18981 # Extract the first word of "ranlib", so it can be a program name with args.
18982 set dummy ranlib
; ac_word
=$2
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18984 $as_echo_n "checking for $ac_word... " >&6; }
18985 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
18986 $as_echo_n "(cached) " >&6
18988 if test -n "$ac_ct_RANLIB"; then
18989 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
18991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18992 for as_dir
in $PATH
18995 test -z "$as_dir" && as_dir
=.
18996 for ac_exec_ext
in '' $ac_executable_extensions; do
18997 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18998 ac_cv_prog_ac_ct_RANLIB
="ranlib"
18999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19008 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
19009 if test -n "$ac_ct_RANLIB"; then
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19011 $as_echo "$ac_ct_RANLIB" >&6; }
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19014 $as_echo "no" >&6; }
19017 if test "x$ac_ct_RANLIB" = x
; then
19020 case $cross_compiling:$ac_tool_warned in
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19024 ac_tool_warned
=yes ;;
19026 RANLIB
=$ac_ct_RANLIB
19029 RANLIB
="$ac_cv_prog_RANLIB"
19032 for ac_prog
in 'bison -y' byacc
19034 # Extract the first word of "$ac_prog", so it can be a program name with args.
19035 set dummy
$ac_prog; ac_word
=$2
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19037 $as_echo_n "checking for $ac_word... " >&6; }
19038 if ${ac_cv_prog_YACC+:} false
; then :
19039 $as_echo_n "(cached) " >&6
19041 if test -n "$YACC"; then
19042 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
19044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19045 for as_dir
in $PATH
19048 test -z "$as_dir" && as_dir
=.
19049 for ac_exec_ext
in '' $ac_executable_extensions; do
19050 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19051 ac_cv_prog_YACC
="$ac_prog"
19052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19061 YACC
=$ac_cv_prog_YACC
19062 if test -n "$YACC"; then
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
19064 $as_echo "$YACC" >&6; }
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19067 $as_echo "no" >&6; }
19071 test -n "$YACC" && break
19073 test -n "$YACC" || YACC
="yacc"
19076 if test -n "$ac_tool_prefix"; then
19077 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19078 set dummy
${ac_tool_prefix}ar; ac_word
=$2
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19080 $as_echo_n "checking for $ac_word... " >&6; }
19081 if ${ac_cv_prog_AR+:} false
; then :
19082 $as_echo_n "(cached) " >&6
19084 if test -n "$AR"; then
19085 ac_cv_prog_AR
="$AR" # Let the user override the test.
19087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19088 for as_dir
in $PATH
19091 test -z "$as_dir" && as_dir
=.
19092 for ac_exec_ext
in '' $ac_executable_extensions; do
19093 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19094 ac_cv_prog_AR
="${ac_tool_prefix}ar"
19095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19105 if test -n "$AR"; then
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19107 $as_echo "$AR" >&6; }
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19110 $as_echo "no" >&6; }
19115 if test -z "$ac_cv_prog_AR"; then
19117 # Extract the first word of "ar", so it can be a program name with args.
19118 set dummy
ar; ac_word
=$2
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19120 $as_echo_n "checking for $ac_word... " >&6; }
19121 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
19122 $as_echo_n "(cached) " >&6
19124 if test -n "$ac_ct_AR"; then
19125 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
19127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19128 for as_dir
in $PATH
19131 test -z "$as_dir" && as_dir
=.
19132 for ac_exec_ext
in '' $ac_executable_extensions; do
19133 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19134 ac_cv_prog_ac_ct_AR
="ar"
19135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19144 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
19145 if test -n "$ac_ct_AR"; then
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19147 $as_echo "$ac_ct_AR" >&6; }
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19150 $as_echo "no" >&6; }
19153 if test "x$ac_ct_AR" = x
; then
19156 case $cross_compiling:$ac_tool_warned in
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19160 ac_tool_warned
=yes ;;
19165 AR
="$ac_cv_prog_AR"
19168 if test -n "$ac_tool_prefix"; then
19169 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
19170 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19172 $as_echo_n "checking for $ac_word... " >&6; }
19173 if ${ac_cv_prog_DLLTOOL+:} false
; then :
19174 $as_echo_n "(cached) " >&6
19176 if test -n "$DLLTOOL"; then
19177 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
19179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19180 for as_dir
in $PATH
19183 test -z "$as_dir" && as_dir
=.
19184 for ac_exec_ext
in '' $ac_executable_extensions; do
19185 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19186 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
19187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19196 DLLTOOL
=$ac_cv_prog_DLLTOOL
19197 if test -n "$DLLTOOL"; then
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
19199 $as_echo "$DLLTOOL" >&6; }
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19202 $as_echo "no" >&6; }
19207 if test -z "$ac_cv_prog_DLLTOOL"; then
19208 ac_ct_DLLTOOL
=$DLLTOOL
19209 # Extract the first word of "dlltool", so it can be a program name with args.
19210 set dummy dlltool
; ac_word
=$2
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19212 $as_echo_n "checking for $ac_word... " >&6; }
19213 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
19214 $as_echo_n "(cached) " >&6
19216 if test -n "$ac_ct_DLLTOOL"; then
19217 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
19219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19220 for as_dir
in $PATH
19223 test -z "$as_dir" && as_dir
=.
19224 for ac_exec_ext
in '' $ac_executable_extensions; do
19225 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19226 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
19227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19236 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
19237 if test -n "$ac_ct_DLLTOOL"; then
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
19239 $as_echo "$ac_ct_DLLTOOL" >&6; }
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19242 $as_echo "no" >&6; }
19245 if test "x$ac_ct_DLLTOOL" = x
; then
19248 case $cross_compiling:$ac_tool_warned in
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19252 ac_tool_warned
=yes ;;
19254 DLLTOOL
=$ac_ct_DLLTOOL
19257 DLLTOOL
="$ac_cv_prog_DLLTOOL"
19260 if test -n "$ac_tool_prefix"; then
19261 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19262 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19264 $as_echo_n "checking for $ac_word... " >&6; }
19265 if ${ac_cv_prog_WINDRES+:} false
; then :
19266 $as_echo_n "(cached) " >&6
19268 if test -n "$WINDRES"; then
19269 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
19271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19272 for as_dir
in $PATH
19275 test -z "$as_dir" && as_dir
=.
19276 for ac_exec_ext
in '' $ac_executable_extensions; do
19277 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19278 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
19279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19288 WINDRES
=$ac_cv_prog_WINDRES
19289 if test -n "$WINDRES"; then
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19291 $as_echo "$WINDRES" >&6; }
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19294 $as_echo "no" >&6; }
19299 if test -z "$ac_cv_prog_WINDRES"; then
19300 ac_ct_WINDRES
=$WINDRES
19301 # Extract the first word of "windres", so it can be a program name with args.
19302 set dummy windres
; ac_word
=$2
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19304 $as_echo_n "checking for $ac_word... " >&6; }
19305 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
19306 $as_echo_n "(cached) " >&6
19308 if test -n "$ac_ct_WINDRES"; then
19309 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
19311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19312 for as_dir
in $PATH
19315 test -z "$as_dir" && as_dir
=.
19316 for ac_exec_ext
in '' $ac_executable_extensions; do
19317 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19318 ac_cv_prog_ac_ct_WINDRES
="windres"
19319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19328 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
19329 if test -n "$ac_ct_WINDRES"; then
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19331 $as_echo "$ac_ct_WINDRES" >&6; }
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19334 $as_echo "no" >&6; }
19337 if test "x$ac_ct_WINDRES" = x
; then
19340 case $cross_compiling:$ac_tool_warned in
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19344 ac_tool_warned
=yes ;;
19346 WINDRES
=$ac_ct_WINDRES
19349 WINDRES
="$ac_cv_prog_WINDRES"
19355 # Needed for GNU Hurd hosts.
19356 if test -n "$ac_tool_prefix"; then
19357 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
19358 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19360 $as_echo_n "checking for $ac_word... " >&6; }
19361 if ${ac_cv_prog_MIG+:} false
; then :
19362 $as_echo_n "(cached) " >&6
19364 if test -n "$MIG"; then
19365 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
19367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19368 for as_dir
in $PATH
19371 test -z "$as_dir" && as_dir
=.
19372 for ac_exec_ext
in '' $ac_executable_extensions; do
19373 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19374 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
19375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19384 MIG
=$ac_cv_prog_MIG
19385 if test -n "$MIG"; then
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
19387 $as_echo "$MIG" >&6; }
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19390 $as_echo "no" >&6; }
19395 if test -z "$ac_cv_prog_MIG"; then
19397 # Extract the first word of "mig", so it can be a program name with args.
19398 set dummy mig
; ac_word
=$2
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19400 $as_echo_n "checking for $ac_word... " >&6; }
19401 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
19402 $as_echo_n "(cached) " >&6
19404 if test -n "$ac_ct_MIG"; then
19405 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
19407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19408 for as_dir
in $PATH
19411 test -z "$as_dir" && as_dir
=.
19412 for ac_exec_ext
in '' $ac_executable_extensions; do
19413 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19414 ac_cv_prog_ac_ct_MIG
="mig"
19415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19424 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
19425 if test -n "$ac_ct_MIG"; then
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
19427 $as_echo "$ac_ct_MIG" >&6; }
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19430 $as_echo "no" >&6; }
19433 if test "x$ac_ct_MIG" = x
; then
19436 case $cross_compiling:$ac_tool_warned in
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19440 ac_tool_warned
=yes ;;
19445 MIG
="$ac_cv_prog_MIG"
19448 if test x
"$MIG" = x
; then
19449 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
19454 # ---------------------- #
19455 # Checks for libraries. #
19456 # ---------------------- #
19458 # We might need to link with -lm; most simulators need it.
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
19460 $as_echo_n "checking for main in -lm... " >&6; }
19461 if ${ac_cv_lib_m_main+:} false
; then :
19462 $as_echo_n "(cached) " >&6
19464 ac_check_lib_save_LIBS
=$LIBS
19466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19467 /* end confdefs.h. */
19478 if ac_fn_c_try_link
"$LINENO"; then :
19479 ac_cv_lib_m_main
=yes
19481 ac_cv_lib_m_main
=no
19483 rm -f core conftest.err conftest.
$ac_objext \
19484 conftest
$ac_exeext conftest.
$ac_ext
19485 LIBS
=$ac_check_lib_save_LIBS
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
19488 $as_echo "$ac_cv_lib_m_main" >&6; }
19489 if test "x$ac_cv_lib_m_main" = xyes
; then :
19490 cat >>confdefs.h
<<_ACEOF
19491 #define HAVE_LIBM 1
19499 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19501 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19502 if ${ac_cv_search_gethostbyname+:} false
; then :
19503 $as_echo_n "(cached) " >&6
19505 ac_func_search_save_LIBS
=$LIBS
19506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19509 /* Override any GCC internal prototype to avoid an error.
19510 Use char because int might match the return type of a GCC
19511 builtin and then its argument prototype would still apply. */
19515 char gethostbyname ();
19519 return gethostbyname ();
19524 for ac_lib
in '' nsl
; do
19525 if test -z "$ac_lib"; then
19526 ac_res
="none required"
19529 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19531 if ac_fn_c_try_link
"$LINENO"; then :
19532 ac_cv_search_gethostbyname
=$ac_res
19534 rm -f core conftest.err conftest.
$ac_objext \
19536 if ${ac_cv_search_gethostbyname+:} false
; then :
19540 if ${ac_cv_search_gethostbyname+:} false
; then :
19543 ac_cv_search_gethostbyname
=no
19545 rm conftest.
$ac_ext
19546 LIBS
=$ac_func_search_save_LIBS
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19549 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19550 ac_res
=$ac_cv_search_gethostbyname
19551 if test "$ac_res" != no
; then :
19552 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19557 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
19559 $as_echo_n "checking for library containing socketpair... " >&6; }
19560 if ${ac_cv_search_socketpair+:} false
; then :
19561 $as_echo_n "(cached) " >&6
19563 ac_func_search_save_LIBS
=$LIBS
19564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19565 /* end confdefs.h. */
19567 /* Override any GCC internal prototype to avoid an error.
19568 Use char because int might match the return type of a GCC
19569 builtin and then its argument prototype would still apply. */
19573 char socketpair ();
19577 return socketpair ();
19582 for ac_lib
in '' socket
; do
19583 if test -z "$ac_lib"; then
19584 ac_res
="none required"
19587 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19589 if ac_fn_c_try_link
"$LINENO"; then :
19590 ac_cv_search_socketpair
=$ac_res
19592 rm -f core conftest.err conftest.
$ac_objext \
19594 if ${ac_cv_search_socketpair+:} false
; then :
19598 if ${ac_cv_search_socketpair+:} false
; then :
19601 ac_cv_search_socketpair
=no
19603 rm conftest.
$ac_ext
19604 LIBS
=$ac_func_search_save_LIBS
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
19607 $as_echo "$ac_cv_search_socketpair" >&6; }
19608 ac_res
=$ac_cv_search_socketpair
19609 if test "$ac_res" != no
; then :
19610 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19615 # Link in zlib/zstd if we can. This allows us to read compressed debug
19618 # Use the system's zlib library.
19619 zlibdir
="-L\$(top_builddir)/../zlib"
19620 zlibinc
="-I\$(top_srcdir)/../zlib"
19622 # Check whether --with-system-zlib was given.
19623 if test "${with_system_zlib+set}" = set; then :
19624 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
19636 # Check whether --with-zstd was given.
19637 if test "${with_zstd+set}" = set; then :
19638 withval
=$with_zstd;
19644 if test "$with_zstd" != no
; then :
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19648 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19650 if test -n "$ZSTD_CFLAGS"; then
19651 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
19652 elif test -n "$PKG_CONFIG"; then
19653 if test -n "$PKG_CONFIG" && \
19654 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19655 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19658 test $ac_status = 0; }; then
19659 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19660 test "x$?" != "x0" && pkg_failed
=yes
19667 if test -n "$ZSTD_LIBS"; then
19668 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
19669 elif test -n "$PKG_CONFIG"; then
19670 if test -n "$PKG_CONFIG" && \
19671 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19672 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19675 test $ac_status = 0; }; then
19676 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19677 test "x$?" != "x0" && pkg_failed
=yes
19685 if test $pkg_failed = no
; then
19686 pkg_save_LDFLAGS
="$LDFLAGS"
19687 LDFLAGS
="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19699 if ac_fn_c_try_link
"$LINENO"; then :
19704 rm -f core conftest.err conftest.
$ac_objext \
19705 conftest
$ac_exeext conftest.
$ac_ext
19706 LDFLAGS
=$pkg_save_LDFLAGS
19711 if test $pkg_failed = yes; then
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19713 $as_echo "no" >&6; }
19715 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19716 _pkg_short_errors_supported
=yes
19718 _pkg_short_errors_supported
=no
19720 if test $_pkg_short_errors_supported = yes; then
19721 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19723 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19725 # Put the nasty error message in config.log where it belongs
19726 echo "$ZSTD_PKG_ERRORS" >&5
19729 if test "$with_zstd" = yes; then
19730 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19733 elif test $pkg_failed = untried
; then
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19735 $as_echo "no" >&6; }
19737 if test "$with_zstd" = yes; then
19738 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19742 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
19743 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19745 $as_echo "yes" >&6; }
19748 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19757 if test "X$prefix" = "XNONE"; then
19758 acl_final_prefix
="$ac_default_prefix"
19760 acl_final_prefix
="$prefix"
19762 if test "X$exec_prefix" = "XNONE"; then
19763 acl_final_exec_prefix
='${prefix}'
19765 acl_final_exec_prefix
="$exec_prefix"
19767 acl_save_prefix
="$prefix"
19768 prefix
="$acl_final_prefix"
19769 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
19770 prefix
="$acl_save_prefix"
19773 # Check whether --with-gnu-ld was given.
19774 if test "${with_gnu_ld+set}" = set; then :
19775 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19780 # Prepare PATH_SEPARATOR.
19781 # The user is always right.
19782 if test "${PATH_SEPARATOR+set}" != set; then
19783 echo "#! /bin/sh" >conf$$.sh
19784 echo "exit 0" >>conf$$.sh
19786 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19794 if test "$GCC" = yes; then
19795 # Check if gcc -print-prog-name=ld gives a path.
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
19797 $as_echo_n "checking for ld used by GCC... " >&6; }
19800 # gcc leaves a trailing carriage return which upsets mingw
19801 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19803 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19806 # Accept absolute paths.
19807 [\\/]* |
[A-Za-z
]:[\\/]*)
19808 re_direlt
='/[^/][^/]*/\.\./'
19809 # Canonicalize the path of ld
19810 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
19811 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
19812 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
19814 test -z "$LD" && LD
="$ac_prog"
19817 # If it fails, then pretend we aren't using GCC.
19821 # If it is relative, then search for the first ld in PATH.
19822 with_gnu_ld
=unknown
19825 elif test "$with_gnu_ld" = yes; then
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19827 $as_echo_n "checking for GNU ld... " >&6; }
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19830 $as_echo_n "checking for non-GNU ld... " >&6; }
19832 if ${acl_cv_path_LD+:} false
; then :
19833 $as_echo_n "(cached) " >&6
19835 if test -z "$LD"; then
19836 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19837 for ac_dir
in $PATH; do
19838 test -z "$ac_dir" && ac_dir
=.
19839 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19840 acl_cv_path_LD
="$ac_dir/$ac_prog"
19841 # Check to see if the program is GNU ld. I'd rather use --version,
19842 # but apparently some GNU ld's only accept -v.
19843 # Break only if it was the GNU/non-GNU ld that we prefer.
19844 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
19845 test "$with_gnu_ld" != no
&& break
19847 test "$with_gnu_ld" != yes && break
19853 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
19857 LD
="$acl_cv_path_LD"
19858 if test -n "$LD"; then
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19860 $as_echo "$LD" >&6; }
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19863 $as_echo "no" >&6; }
19865 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19867 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19868 if ${acl_cv_prog_gnu_ld+:} false
; then :
19869 $as_echo_n "(cached) " >&6
19871 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19872 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
19873 acl_cv_prog_gnu_ld
=yes
19875 acl_cv_prog_gnu_ld
=no
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19879 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
19880 with_gnu_ld
=$acl_cv_prog_gnu_ld
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19885 $as_echo_n "checking for shared library run path origin... " >&6; }
19886 if ${acl_cv_rpath+:} false
; then :
19887 $as_echo_n "(cached) " >&6
19890 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
19891 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19893 rm -f .
/conftest.sh
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19898 $as_echo "$acl_cv_rpath" >&6; }
19900 libext
="$acl_cv_libext"
19901 shlibext
="$acl_cv_shlibext"
19902 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
19903 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
19904 hardcode_direct
="$acl_cv_hardcode_direct"
19905 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
19906 # Check whether --enable-rpath was given.
19907 if test "${enable_rpath+set}" = set; then :
19908 enableval
=$enable_rpath; :
19922 acl_save_prefix
="$prefix"
19923 prefix
="$acl_final_prefix"
19924 acl_save_exec_prefix
="$exec_prefix"
19925 exec_prefix
="$acl_final_exec_prefix"
19927 eval additional_includedir
=\"$includedir\"
19928 eval additional_libdir
=\"$libdir\"
19930 exec_prefix
="$acl_save_exec_prefix"
19931 prefix
="$acl_save_prefix"
19934 # Check whether --with-libiconv-prefix was given.
19935 if test "${with_libiconv_prefix+set}" = set; then :
19936 withval
=$with_libiconv_prefix;
19937 if test "X$withval" = "Xno"; then
19940 if test "X$withval" = "X"; then
19942 acl_save_prefix
="$prefix"
19943 prefix
="$acl_final_prefix"
19944 acl_save_exec_prefix
="$exec_prefix"
19945 exec_prefix
="$acl_final_exec_prefix"
19947 eval additional_includedir
=\"$includedir\"
19948 eval additional_libdir
=\"$libdir\"
19950 exec_prefix
="$acl_save_exec_prefix"
19951 prefix
="$acl_save_prefix"
19954 additional_includedir
="$withval/include"
19955 additional_libdir
="$withval/lib"
19962 # Check whether --with-libiconv-type was given.
19963 if test "${with_libiconv_type+set}" = set; then :
19964 withval
=$with_libiconv_type; with_libiconv_type
=$withval
19966 with_libiconv_type
=auto
19969 lib_type
=`eval echo \$with_libiconv_type`
19976 names_already_handled
=
19977 names_next_round
='iconv '
19978 while test -n "$names_next_round"; do
19979 names_this_round
="$names_next_round"
19981 for name
in $names_this_round; do
19983 for n
in $names_already_handled; do
19984 if test "$n" = "$name"; then
19985 already_handled
=yes
19989 if test -z "$already_handled"; then
19990 names_already_handled
="$names_already_handled $name"
19991 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19992 eval value
=\"\
$HAVE_LIB$uppername\"
19993 if test -n "$value"; then
19994 if test "$value" = yes; then
19995 eval value
=\"\
$LIB$uppername\"
19996 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
19997 eval value
=\"\
$LTLIB$uppername\"
19998 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
20007 if test $use_additional = yes; then
20008 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
20009 found_dir
="$additional_libdir"
20010 found_so
="$additional_libdir/lib$name.$shlibext"
20011 if test -f "$additional_libdir/lib$name.la"; then
20012 found_la
="$additional_libdir/lib$name.la"
20014 elif test x
$lib_type != xshared
; then
20015 if test -f "$additional_libdir/lib$name.$libext"; then
20016 found_dir
="$additional_libdir"
20017 found_a
="$additional_libdir/lib$name.$libext"
20018 if test -f "$additional_libdir/lib$name.la"; then
20019 found_la
="$additional_libdir/lib$name.la"
20024 if test "X$found_dir" = "X"; then
20025 for x
in $LDFLAGS $LTLIBICONV; do
20027 acl_save_prefix
="$prefix"
20028 prefix
="$acl_final_prefix"
20029 acl_save_exec_prefix
="$exec_prefix"
20030 exec_prefix
="$acl_final_exec_prefix"
20032 exec_prefix
="$acl_save_exec_prefix"
20033 prefix
="$acl_save_prefix"
20037 dir
=`echo "X$x" | sed -e 's/^X-L//'`
20038 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
20040 found_so
="$dir/lib$name.$shlibext"
20041 if test -f "$dir/lib$name.la"; then
20042 found_la
="$dir/lib$name.la"
20044 elif test x
$lib_type != xshared
; then
20045 if test -f "$dir/lib$name.$libext"; then
20047 found_a
="$dir/lib$name.$libext"
20048 if test -f "$dir/lib$name.la"; then
20049 found_la
="$dir/lib$name.la"
20055 if test "X$found_dir" != "X"; then
20060 if test "X$found_dir" != "X"; then
20061 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20062 if test "X$found_so" != "X"; then
20063 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
20064 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
20067 for x
in $ltrpathdirs; do
20068 if test "X$x" = "X$found_dir"; then
20073 if test -z "$haveit"; then
20074 ltrpathdirs
="$ltrpathdirs $found_dir"
20076 if test "$hardcode_direct" = yes; then
20077 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
20079 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
20080 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
20082 for x
in $rpathdirs; do
20083 if test "X$x" = "X$found_dir"; then
20088 if test -z "$haveit"; then
20089 rpathdirs
="$rpathdirs $found_dir"
20093 for x
in $LDFLAGS $LIBICONV; do
20095 acl_save_prefix
="$prefix"
20096 prefix
="$acl_final_prefix"
20097 acl_save_exec_prefix
="$exec_prefix"
20098 exec_prefix
="$acl_final_exec_prefix"
20100 exec_prefix
="$acl_save_exec_prefix"
20101 prefix
="$acl_save_prefix"
20103 if test "X$x" = "X-L$found_dir"; then
20108 if test -z "$haveit"; then
20109 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20111 if test "$hardcode_minus_L" != no
; then
20112 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
20114 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
20120 if test "X$found_a" != "X"; then
20121 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
20123 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20126 additional_includedir
=
20127 case "$found_dir" in
20129 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20130 additional_includedir
="$basedir/include"
20133 if test "X$additional_includedir" != "X"; then
20134 if test "X$additional_includedir" != "X/usr/include"; then
20136 if test "X$additional_includedir" = "X/usr/local/include"; then
20137 if test -n "$GCC"; then
20139 linux
*) haveit
=yes;;
20143 if test -z "$haveit"; then
20144 for x
in $CPPFLAGS $INCICONV; do
20146 acl_save_prefix
="$prefix"
20147 prefix
="$acl_final_prefix"
20148 acl_save_exec_prefix
="$exec_prefix"
20149 exec_prefix
="$acl_final_exec_prefix"
20151 exec_prefix
="$acl_save_exec_prefix"
20152 prefix
="$acl_save_prefix"
20154 if test "X$x" = "X-I$additional_includedir"; then
20159 if test -z "$haveit"; then
20160 if test -d "$additional_includedir"; then
20161 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20167 if test -n "$found_la"; then
20168 save_libdir
="$libdir"
20169 case "$found_la" in
20170 */* |
*\\*) .
"$found_la" ;;
20171 *) .
"./$found_la" ;;
20173 libdir
="$save_libdir"
20174 for dep
in $dependency_libs; do
20177 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
20178 if test "X$additional_libdir" != "X/usr/lib"; then
20180 if test "X$additional_libdir" = "X/usr/local/lib"; then
20181 if test -n "$GCC"; then
20183 linux
*) haveit
=yes;;
20187 if test -z "$haveit"; then
20189 for x
in $LDFLAGS $LIBICONV; do
20191 acl_save_prefix
="$prefix"
20192 prefix
="$acl_final_prefix"
20193 acl_save_exec_prefix
="$exec_prefix"
20194 exec_prefix
="$acl_final_exec_prefix"
20196 exec_prefix
="$acl_save_exec_prefix"
20197 prefix
="$acl_save_prefix"
20199 if test "X$x" = "X-L$additional_libdir"; then
20204 if test -z "$haveit"; then
20205 if test -d "$additional_libdir"; then
20206 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20210 for x
in $LDFLAGS $LTLIBICONV; do
20212 acl_save_prefix
="$prefix"
20213 prefix
="$acl_final_prefix"
20214 acl_save_exec_prefix
="$exec_prefix"
20215 exec_prefix
="$acl_final_exec_prefix"
20217 exec_prefix
="$acl_save_exec_prefix"
20218 prefix
="$acl_save_prefix"
20220 if test "X$x" = "X-L$additional_libdir"; then
20225 if test -z "$haveit"; then
20226 if test -d "$additional_libdir"; then
20227 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20234 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
20235 if test "$enable_rpath" != no
; then
20237 for x
in $rpathdirs; do
20238 if test "X$x" = "X$dir"; then
20243 if test -z "$haveit"; then
20244 rpathdirs
="$rpathdirs $dir"
20247 for x
in $ltrpathdirs; do
20248 if test "X$x" = "X$dir"; then
20253 if test -z "$haveit"; then
20254 ltrpathdirs
="$ltrpathdirs $dir"
20259 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20262 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20265 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
20266 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20272 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
20273 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
20274 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20276 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
20277 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
20284 if test "X$rpathdirs" != "X"; then
20285 if test -n "$hardcode_libdir_separator"; then
20287 for found_dir
in $rpathdirs; do
20288 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20290 acl_save_libdir
="$libdir"
20292 eval flag
=\"$hardcode_libdir_flag_spec\"
20293 libdir
="$acl_save_libdir"
20294 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
20296 for found_dir
in $rpathdirs; do
20297 acl_save_libdir
="$libdir"
20298 libdir
="$found_dir"
20299 eval flag
=\"$hardcode_libdir_flag_spec\"
20300 libdir
="$acl_save_libdir"
20301 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
20305 if test "X$ltrpathdirs" != "X"; then
20306 for found_dir
in $ltrpathdirs; do
20307 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20318 $as_echo_n "checking for iconv... " >&6; }
20319 if ${am_cv_func_iconv+:} false
; then :
20320 $as_echo_n "(cached) " >&6
20323 am_cv_func_iconv
="no, consider installing GNU libiconv"
20325 am_save_CPPFLAGS
="$CPPFLAGS"
20326 CPPFLAGS
="$CPPFLAGS $INCICONV"
20327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20329 #include <stdlib.h>
20334 iconv_t cd = iconv_open("","");
20335 iconv(cd,NULL,NULL,NULL,NULL);
20341 if ac_fn_c_try_link
"$LINENO"; then :
20342 am_cv_func_iconv
=yes
20344 rm -f core conftest.err conftest.
$ac_objext \
20345 conftest
$ac_exeext conftest.
$ac_ext
20346 CPPFLAGS
="$am_save_CPPFLAGS"
20348 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
20349 for _libs
in .libs _libs
; do
20350 am_save_CPPFLAGS
="$CPPFLAGS"
20351 am_save_LIBS
="$LIBS"
20352 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
20353 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
20354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h. */
20356 #include <stdlib.h>
20361 iconv_t cd = iconv_open("","");
20362 iconv(cd,NULL,NULL,NULL,NULL);
20368 if ac_fn_c_try_link
"$LINENO"; then :
20369 INCICONV
="-I../libiconv/include"
20370 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
20371 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
20372 am_cv_lib_iconv
=yes
20373 am_cv_func_iconv
=yes
20375 rm -f core conftest.err conftest.
$ac_objext \
20376 conftest
$ac_exeext conftest.
$ac_ext
20377 CPPFLAGS
="$am_save_CPPFLAGS"
20378 LIBS
="$am_save_LIBS"
20379 if test "$am_cv_func_iconv" = "yes"; then
20385 if test "$am_cv_func_iconv" != yes; then
20386 am_save_CPPFLAGS
="$CPPFLAGS"
20387 am_save_LIBS
="$LIBS"
20388 CPPFLAGS
="$CPPFLAGS $INCICONV"
20389 LIBS
="$LIBS $LIBICONV"
20390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20391 /* end confdefs.h. */
20392 #include <stdlib.h>
20397 iconv_t cd = iconv_open("","");
20398 iconv(cd,NULL,NULL,NULL,NULL);
20404 if ac_fn_c_try_link
"$LINENO"; then :
20405 am_cv_lib_iconv
=yes
20406 am_cv_func_iconv
=yes
20408 rm -f core conftest.err conftest.
$ac_objext \
20409 conftest
$ac_exeext conftest.
$ac_ext
20410 CPPFLAGS
="$am_save_CPPFLAGS"
20411 LIBS
="$am_save_LIBS"
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20416 $as_echo "$am_cv_func_iconv" >&6; }
20417 if test "$am_cv_func_iconv" = yes; then
20419 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20422 if test "$am_cv_lib_iconv" = yes; then
20424 for element
in $INCICONV; do
20426 for x
in $CPPFLAGS; do
20428 acl_save_prefix
="$prefix"
20429 prefix
="$acl_final_prefix"
20430 acl_save_exec_prefix
="$exec_prefix"
20431 exec_prefix
="$acl_final_exec_prefix"
20433 exec_prefix
="$acl_save_exec_prefix"
20434 prefix
="$acl_save_prefix"
20436 if test "X$x" = "X$element"; then
20441 if test -z "$haveit"; then
20442 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20447 $as_echo_n "checking how to link with libiconv... " >&6; }
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20449 $as_echo "$LIBICONV" >&6; }
20457 if test "$am_cv_func_iconv" = yes; then
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20459 $as_echo_n "checking for iconv declaration... " >&6; }
20460 if ${am_cv_proto_iconv+:} false
; then :
20461 $as_echo_n "(cached) " >&6
20464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20465 /* end confdefs.h. */
20467 #include <stdlib.h>
20473 #if defined(__STDC__) || defined(__cplusplus)
20474 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20487 if ac_fn_c_try_compile
"$LINENO"; then :
20488 am_cv_proto_iconv_arg1
=""
20490 am_cv_proto_iconv_arg1
="const"
20492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20493 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20496 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20498 }$am_cv_proto_iconv" >&5
20500 }$am_cv_proto_iconv" >&6; }
20502 cat >>confdefs.h
<<_ACEOF
20503 #define ICONV_CONST $am_cv_proto_iconv_arg1
20509 # GDB may fork/exec the iconv program to get the list of supported character
20510 # sets. Allow the user to specify where to find it.
20511 # There are several factors affecting the choice of option name:
20512 # - There is already --with-libiconv-prefix but we can't use it, it specifies
20513 # the build-time location of libiconv files.
20514 # - The program we need to find is iconv, which comes with glibc. The user
20515 # doesn't necessarily have libiconv installed. Therefore naming this
20516 # --with-libiconv-foo feels wrong.
20517 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
20518 # defined to work on directories not files (though it really doesn't know
20520 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
20521 # with --with-libiconv-prefix.
20522 # Putting these together is why the option name is --with-iconv-bin.
20525 # Check whether --with-iconv-bin was given.
20526 if test "${with_iconv_bin+set}" = set; then :
20527 withval
=$with_iconv_bin; iconv_bin
="${withval}"
20529 cat >>confdefs.h
<<_ACEOF
20530 #define ICONV_BIN "${iconv_bin}"
20534 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
20535 if test "x$prefix" = xNONE
; then
20536 test_prefix
=/usr
/local
20538 test_prefix
=$prefix
20541 test_prefix
=$exec_prefix
20544 case ${iconv_bin} in
20545 "${test_prefix}"|
"${test_prefix}/"*|\
20546 '${exec_prefix}'|
'${exec_prefix}/'*)
20551 cat >>confdefs.h
<<_ACEOF
20552 #define ICONV_BIN_RELOCATABLE $value
20560 # For the TUI, we need enhanced curses functionality.
20561 if test x
"$enable_tui" != xno
; then
20566 if test x
"$prefer_curses" = xyes
; then
20567 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
20568 # curses library because the latter might not provide all the
20569 # functionality we need. However, this leads to problems on systems
20570 # where the linker searches /usr/local/lib, but the compiler doesn't
20571 # search /usr/local/include, if ncurses is installed in /usr/local. A
20572 # default installation of ncurses on alpha*-dec-osf* will lead to such
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
20575 $as_echo_n "checking for library containing waddstr... " >&6; }
20576 if ${ac_cv_search_waddstr+:} false
; then :
20577 $as_echo_n "(cached) " >&6
20579 ac_func_search_save_LIBS
=$LIBS
20580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20581 /* end confdefs.h. */
20583 /* Override any GCC internal prototype to avoid an error.
20584 Use char because int might match the return type of a GCC
20585 builtin and then its argument prototype would still apply. */
20598 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
20599 if test -z "$ac_lib"; then
20600 ac_res
="none required"
20603 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20605 if ac_fn_c_try_link
"$LINENO"; then :
20606 ac_cv_search_waddstr
=$ac_res
20608 rm -f core conftest.err conftest.
$ac_objext \
20610 if ${ac_cv_search_waddstr+:} false
; then :
20614 if ${ac_cv_search_waddstr+:} false
; then :
20617 ac_cv_search_waddstr
=no
20619 rm conftest.
$ac_ext
20620 LIBS
=$ac_func_search_save_LIBS
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
20623 $as_echo "$ac_cv_search_waddstr" >&6; }
20624 ac_res
=$ac_cv_search_waddstr
20625 if test "$ac_res" != no
; then :
20626 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20631 if test "$ac_cv_search_waddstr" != no
; then
20636 # Check whether we should enable the TUI, but only do so if we really
20638 if test x
"$enable_tui" != xno
; then
20639 if test -d "$srcdir/tui"; then
20640 if test "$curses_found" != no
; then
20641 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
20642 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
20643 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
20644 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
20646 if test x
"$enable_tui" = xyes
; then
20647 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
20650 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
20656 # Since GDB uses Readline, we need termcap functionality. In many
20657 # cases this will be provided by the curses library, but some systems
20658 # have a separate termcap library, or no curses library at all.
20662 if test -d "$srcdir/libtermcap"; then
20663 LIBS
="../libtermcap/libtermcap.a $LIBS"
20664 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
20667 ac_cv_search_tgetent
="none required"
20671 # These are the libraries checked by Readline.
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
20673 $as_echo_n "checking for library containing tgetent... " >&6; }
20674 if ${ac_cv_search_tgetent+:} false
; then :
20675 $as_echo_n "(cached) " >&6
20677 ac_func_search_save_LIBS
=$LIBS
20678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20679 /* end confdefs.h. */
20681 /* Override any GCC internal prototype to avoid an error.
20682 Use char because int might match the return type of a GCC
20683 builtin and then its argument prototype would still apply. */
20696 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
20697 if test -z "$ac_lib"; then
20698 ac_res
="none required"
20701 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20703 if ac_fn_c_try_link
"$LINENO"; then :
20704 ac_cv_search_tgetent
=$ac_res
20706 rm -f core conftest.err conftest.
$ac_objext \
20708 if ${ac_cv_search_tgetent+:} false
; then :
20712 if ${ac_cv_search_tgetent+:} false
; then :
20715 ac_cv_search_tgetent
=no
20717 rm conftest.
$ac_ext
20718 LIBS
=$ac_func_search_save_LIBS
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
20721 $as_echo "$ac_cv_search_tgetent" >&6; }
20722 ac_res
=$ac_cv_search_tgetent
20723 if test "$ac_res" != no
; then :
20724 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20729 if test "$ac_cv_search_tgetent" = no
; then
20730 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
20734 # Check whether --with-system-readline was given.
20735 if test "${with_system_readline+set}" = set; then :
20736 withval
=$with_system_readline;
20740 if test "$with_system_readline" = yes; then
20741 for ac_header
in readline
/readline.h
20743 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
20744 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
20745 cat >>confdefs.h
<<_ACEOF
20746 #define HAVE_READLINE_READLINE_H 1
20755 if test "$readline_h" = "no"; then
20756 as_fn_error $?
"readline development packages are probably missing" "$LINENO" 5
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
20759 $as_echo_n "checking whether system readline is new enough... " >&6; }
20760 if ${gdb_cv_readline_ok+:} false
; then :
20761 $as_echo_n "(cached) " >&6
20763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20764 /* end confdefs.h. */
20766 #include <readline/readline.h>
20770 #if RL_VERSION_MAJOR < 7
20771 # error "readline version 7 required"
20778 if ac_fn_c_try_compile
"$LINENO"; then :
20779 gdb_cv_readline_ok
=yes
20781 gdb_cv_readline_ok
=no
20784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
20788 $as_echo "$gdb_cv_readline_ok" >&6; }
20789 if test "$gdb_cv_readline_ok" != yes; then
20790 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
20793 READLINE
=-lreadline
20796 READLINE_TEXI_INCFLAG
=
20797 READLINE_DOC_SOURCE_INCLUDES
='$(READLINE_SYSTEM_DOC_INCLUDES)'
20799 READLINE
='$(READLINE_DIR)/libreadline.a'
20800 READLINE_DEPS
='$(READLINE)'
20801 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
20802 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
20803 READLINE_DOC_SOURCE_INCLUDES
='$(READLINE_INTREE_DOC_INCLUDES)'
20811 # Generate jit-reader.h
20813 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
20816 # The cast to long int works around a bug in the HP C Compiler
20817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20819 # This bug is HP SR number 8606223364.
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
20821 $as_echo_n "checking size of unsigned long long... " >&6; }
20822 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
20823 $as_echo_n "(cached) " >&6
20825 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
20828 if test "$ac_cv_type_unsigned_long_long" = yes; then
20829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20831 as_fn_error
77 "cannot compute sizeof (unsigned long long)
20832 See \`config.log' for more details" "$LINENO" 5; }
20834 ac_cv_sizeof_unsigned_long_long
=0
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
20840 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20844 cat >>confdefs.h
<<_ACEOF
20845 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20849 # The cast to long int works around a bug in the HP C Compiler
20850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20852 # This bug is HP SR number 8606223364.
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20854 $as_echo_n "checking size of unsigned long... " >&6; }
20855 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
20856 $as_echo_n "(cached) " >&6
20858 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20861 if test "$ac_cv_type_unsigned_long" = yes; then
20862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20864 as_fn_error
77 "cannot compute sizeof (unsigned long)
20865 See \`config.log' for more details" "$LINENO" 5; }
20867 ac_cv_sizeof_unsigned_long
=0
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20873 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20877 cat >>confdefs.h
<<_ACEOF
20878 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20882 # The cast to long int works around a bug in the HP C Compiler
20883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20885 # This bug is HP SR number 8606223364.
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
20887 $as_echo_n "checking size of unsigned __int128... " >&6; }
20888 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
20889 $as_echo_n "(cached) " >&6
20891 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
20894 if test "$ac_cv_type_unsigned___int128" = yes; then
20895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20897 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
20898 See \`config.log' for more details" "$LINENO" 5; }
20900 ac_cv_sizeof_unsigned___int128
=0
20905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
20906 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
20910 cat >>confdefs.h
<<_ACEOF
20911 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
20916 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
20917 TARGET_PTR
="unsigned long"
20918 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
20919 TARGET_PTR
="unsigned long long"
20920 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
20921 TARGET_PTR
="unsigned __int128"
20923 TARGET_PTR
="unsigned long"
20927 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20931 $as_echo_n "checking for library containing dlopen... " >&6; }
20932 if ${ac_cv_search_dlopen+:} false
; then :
20933 $as_echo_n "(cached) " >&6
20935 ac_func_search_save_LIBS
=$LIBS
20936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h. */
20939 /* Override any GCC internal prototype to avoid an error.
20940 Use char because int might match the return type of a GCC
20941 builtin and then its argument prototype would still apply. */
20954 for ac_lib
in '' dl
; do
20955 if test -z "$ac_lib"; then
20956 ac_res
="none required"
20959 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20961 if ac_fn_c_try_link
"$LINENO"; then :
20962 ac_cv_search_dlopen
=$ac_res
20964 rm -f core conftest.err conftest.
$ac_objext \
20966 if ${ac_cv_search_dlopen+:} false
; then :
20970 if ${ac_cv_search_dlopen+:} false
; then :
20973 ac_cv_search_dlopen
=no
20975 rm conftest.
$ac_ext
20976 LIBS
=$ac_func_search_save_LIBS
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20979 $as_echo "$ac_cv_search_dlopen" >&6; }
20980 ac_res
=$ac_cv_search_dlopen
20981 if test "$ac_res" != no
; then :
20982 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20989 # Check whether --with-jit-reader-dir was given.
20990 if test "${with_jit_reader_dir+set}" = set; then :
20991 withval
=$with_jit_reader_dir;
20992 JIT_READER_DIR
=$withval
20994 JIT_READER_DIR
=${libdir}/gdb
20998 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
20999 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21000 ac_define_dir
=`eval echo $JIT_READER_DIR`
21001 ac_define_dir
=`eval echo $ac_define_dir`
21003 cat >>confdefs.h
<<_ACEOF
21004 #define JIT_READER_DIR "$ac_define_dir"
21010 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
21011 if test "x$prefix" = xNONE
; then
21012 test_prefix
=/usr
/local
21014 test_prefix
=$prefix
21017 test_prefix
=$exec_prefix
21020 case ${ac_define_dir} in
21021 "${test_prefix}"|
"${test_prefix}/"*|\
21022 '${exec_prefix}'|
'${exec_prefix}/'*)
21027 cat >>confdefs.h
<<_ACEOF
21028 #define JIT_READER_DIR_RELOCATABLE $value
21035 # Check whether --with-expat was given.
21036 if test "${with_expat+set}" = set; then :
21037 withval
=$with_expat;
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
21043 $as_echo_n "checking whether to use expat... " >&6; }
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
21045 $as_echo "$with_expat" >&6; }
21047 if test "${with_expat}" = no
; then
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
21049 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
21062 acl_save_prefix
="$prefix"
21063 prefix
="$acl_final_prefix"
21064 acl_save_exec_prefix
="$exec_prefix"
21065 exec_prefix
="$acl_final_exec_prefix"
21067 eval additional_includedir
=\"$includedir\"
21068 eval additional_libdir
=\"$libdir\"
21070 exec_prefix
="$acl_save_exec_prefix"
21071 prefix
="$acl_save_prefix"
21074 # Check whether --with-libexpat-prefix was given.
21075 if test "${with_libexpat_prefix+set}" = set; then :
21076 withval
=$with_libexpat_prefix;
21077 if test "X$withval" = "Xno"; then
21080 if test "X$withval" = "X"; then
21082 acl_save_prefix
="$prefix"
21083 prefix
="$acl_final_prefix"
21084 acl_save_exec_prefix
="$exec_prefix"
21085 exec_prefix
="$acl_final_exec_prefix"
21087 eval additional_includedir
=\"$includedir\"
21088 eval additional_libdir
=\"$libdir\"
21090 exec_prefix
="$acl_save_exec_prefix"
21091 prefix
="$acl_save_prefix"
21094 additional_includedir
="$withval/include"
21095 additional_libdir
="$withval/lib"
21102 # Check whether --with-libexpat-type was given.
21103 if test "${with_libexpat_type+set}" = set; then :
21104 withval
=$with_libexpat_type; with_libexpat_type
=$withval
21106 with_libexpat_type
=auto
21109 lib_type
=`eval echo \$with_libexpat_type`
21116 names_already_handled
=
21117 names_next_round
='expat '
21118 while test -n "$names_next_round"; do
21119 names_this_round
="$names_next_round"
21121 for name
in $names_this_round; do
21123 for n
in $names_already_handled; do
21124 if test "$n" = "$name"; then
21125 already_handled
=yes
21129 if test -z "$already_handled"; then
21130 names_already_handled
="$names_already_handled $name"
21131 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21132 eval value
=\"\
$HAVE_LIB$uppername\"
21133 if test -n "$value"; then
21134 if test "$value" = yes; then
21135 eval value
=\"\
$LIB$uppername\"
21136 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
21137 eval value
=\"\
$LTLIB$uppername\"
21138 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
21147 if test $use_additional = yes; then
21148 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
21149 found_dir
="$additional_libdir"
21150 found_so
="$additional_libdir/lib$name.$shlibext"
21151 if test -f "$additional_libdir/lib$name.la"; then
21152 found_la
="$additional_libdir/lib$name.la"
21154 elif test x
$lib_type != xshared
; then
21155 if test -f "$additional_libdir/lib$name.$libext"; then
21156 found_dir
="$additional_libdir"
21157 found_a
="$additional_libdir/lib$name.$libext"
21158 if test -f "$additional_libdir/lib$name.la"; then
21159 found_la
="$additional_libdir/lib$name.la"
21164 if test "X$found_dir" = "X"; then
21165 for x
in $LDFLAGS $LTLIBEXPAT; do
21167 acl_save_prefix
="$prefix"
21168 prefix
="$acl_final_prefix"
21169 acl_save_exec_prefix
="$exec_prefix"
21170 exec_prefix
="$acl_final_exec_prefix"
21172 exec_prefix
="$acl_save_exec_prefix"
21173 prefix
="$acl_save_prefix"
21177 dir
=`echo "X$x" | sed -e 's/^X-L//'`
21178 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
21180 found_so
="$dir/lib$name.$shlibext"
21181 if test -f "$dir/lib$name.la"; then
21182 found_la
="$dir/lib$name.la"
21184 elif test x
$lib_type != xshared
; then
21185 if test -f "$dir/lib$name.$libext"; then
21187 found_a
="$dir/lib$name.$libext"
21188 if test -f "$dir/lib$name.la"; then
21189 found_la
="$dir/lib$name.la"
21195 if test "X$found_dir" != "X"; then
21200 if test "X$found_dir" != "X"; then
21201 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
21202 if test "X$found_so" != "X"; then
21203 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
21204 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21207 for x
in $ltrpathdirs; do
21208 if test "X$x" = "X$found_dir"; then
21213 if test -z "$haveit"; then
21214 ltrpathdirs
="$ltrpathdirs $found_dir"
21216 if test "$hardcode_direct" = yes; then
21217 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21219 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
21220 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21222 for x
in $rpathdirs; do
21223 if test "X$x" = "X$found_dir"; then
21228 if test -z "$haveit"; then
21229 rpathdirs
="$rpathdirs $found_dir"
21233 for x
in $LDFLAGS $LIBEXPAT; do
21235 acl_save_prefix
="$prefix"
21236 prefix
="$acl_final_prefix"
21237 acl_save_exec_prefix
="$exec_prefix"
21238 exec_prefix
="$acl_final_exec_prefix"
21240 exec_prefix
="$acl_save_exec_prefix"
21241 prefix
="$acl_save_prefix"
21243 if test "X$x" = "X-L$found_dir"; then
21248 if test -z "$haveit"; then
21249 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
21251 if test "$hardcode_minus_L" != no
; then
21252 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21254 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
21260 if test "X$found_a" != "X"; then
21261 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
21263 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
21266 additional_includedir
=
21267 case "$found_dir" in
21269 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21270 additional_includedir
="$basedir/include"
21273 if test "X$additional_includedir" != "X"; then
21274 if test "X$additional_includedir" != "X/usr/include"; then
21276 if test "X$additional_includedir" = "X/usr/local/include"; then
21277 if test -n "$GCC"; then
21279 linux
*) haveit
=yes;;
21283 if test -z "$haveit"; then
21284 for x
in $CPPFLAGS $INCEXPAT; do
21286 acl_save_prefix
="$prefix"
21287 prefix
="$acl_final_prefix"
21288 acl_save_exec_prefix
="$exec_prefix"
21289 exec_prefix
="$acl_final_exec_prefix"
21291 exec_prefix
="$acl_save_exec_prefix"
21292 prefix
="$acl_save_prefix"
21294 if test "X$x" = "X-I$additional_includedir"; then
21299 if test -z "$haveit"; then
21300 if test -d "$additional_includedir"; then
21301 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
21307 if test -n "$found_la"; then
21308 save_libdir
="$libdir"
21309 case "$found_la" in
21310 */* |
*\\*) .
"$found_la" ;;
21311 *) .
"./$found_la" ;;
21313 libdir
="$save_libdir"
21314 for dep
in $dependency_libs; do
21317 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
21318 if test "X$additional_libdir" != "X/usr/lib"; then
21320 if test "X$additional_libdir" = "X/usr/local/lib"; then
21321 if test -n "$GCC"; then
21323 linux
*) haveit
=yes;;
21327 if test -z "$haveit"; then
21329 for x
in $LDFLAGS $LIBEXPAT; 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 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
21350 for x
in $LDFLAGS $LTLIBEXPAT; do
21352 acl_save_prefix
="$prefix"
21353 prefix
="$acl_final_prefix"
21354 acl_save_exec_prefix
="$exec_prefix"
21355 exec_prefix
="$acl_final_exec_prefix"
21357 exec_prefix
="$acl_save_exec_prefix"
21358 prefix
="$acl_save_prefix"
21360 if test "X$x" = "X-L$additional_libdir"; then
21365 if test -z "$haveit"; then
21366 if test -d "$additional_libdir"; then
21367 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
21374 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
21375 if test "$enable_rpath" != no
; then
21377 for x
in $rpathdirs; do
21378 if test "X$x" = "X$dir"; then
21383 if test -z "$haveit"; then
21384 rpathdirs
="$rpathdirs $dir"
21387 for x
in $ltrpathdirs; do
21388 if test "X$x" = "X$dir"; then
21393 if test -z "$haveit"; then
21394 ltrpathdirs
="$ltrpathdirs $dir"
21399 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21402 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21405 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
21406 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
21412 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
21413 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
21414 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
21416 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
21417 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
21424 if test "X$rpathdirs" != "X"; then
21425 if test -n "$hardcode_libdir_separator"; then
21427 for found_dir
in $rpathdirs; do
21428 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21430 acl_save_libdir
="$libdir"
21432 eval flag
=\"$hardcode_libdir_flag_spec\"
21433 libdir
="$acl_save_libdir"
21434 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
21436 for found_dir
in $rpathdirs; do
21437 acl_save_libdir
="$libdir"
21438 libdir
="$found_dir"
21439 eval flag
=\"$hardcode_libdir_flag_spec\"
21440 libdir
="$acl_save_libdir"
21441 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
21445 if test "X$ltrpathdirs" != "X"; then
21446 for found_dir
in $ltrpathdirs; do
21447 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
21452 ac_save_CPPFLAGS
="$CPPFLAGS"
21454 for element
in $INCEXPAT; do
21456 for x
in $CPPFLAGS; do
21458 acl_save_prefix
="$prefix"
21459 prefix
="$acl_final_prefix"
21460 acl_save_exec_prefix
="$exec_prefix"
21461 exec_prefix
="$acl_final_exec_prefix"
21463 exec_prefix
="$acl_save_exec_prefix"
21464 prefix
="$acl_save_prefix"
21466 if test "X$x" = "X$element"; then
21471 if test -z "$haveit"; then
21472 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
21478 $as_echo_n "checking for libexpat... " >&6; }
21479 if ${ac_cv_libexpat+:} false
; then :
21480 $as_echo_n "(cached) " >&6
21483 ac_save_LIBS
="$LIBS"
21484 LIBS
="$LIBS $LIBEXPAT"
21485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21486 /* end confdefs.h. */
21491 XML_Parser p = XML_ParserCreate (0);
21496 if ac_fn_c_try_link
"$LINENO"; then :
21501 rm -f core conftest.err conftest.
$ac_objext \
21502 conftest
$ac_exeext conftest.
$ac_ext
21503 LIBS
="$ac_save_LIBS"
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
21507 $as_echo "$ac_cv_libexpat" >&6; }
21508 if test "$ac_cv_libexpat" = yes; then
21511 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
21514 $as_echo_n "checking how to link with libexpat... " >&6; }
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
21516 $as_echo "$LIBEXPAT" >&6; }
21519 CPPFLAGS
="$ac_save_CPPFLAGS"
21529 if test "$HAVE_LIBEXPAT" != yes; then
21530 if test "$with_expat" = yes; then
21531 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
21534 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
21538 LIBS
="$LIBS $LIBEXPAT"
21539 for ac_func
in XML_StopParser
21541 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
21542 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
21543 cat >>confdefs.h
<<_ACEOF
21544 #define HAVE_XML_STOPPARSER 1
21557 # --------------------- #
21558 # Check for libpython. #
21559 # --------------------- #
21566 # Check whether --with-python was given.
21567 if test "${with_python+set}" = set; then :
21568 withval
=$with_python;
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
21574 $as_echo_n "checking whether to use python... " >&6; }
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
21576 $as_echo "$with_python" >&6; }
21578 if test "${with_python}" = no
; then
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
21580 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
21583 case "${with_python}" in
21585 if test -d "${with_python}"; then
21586 # Assume the python binary is ${with_python}/bin/python.
21587 python_prog
="${with_python}/bin/python"
21589 # If python does not exit ${with_python}/bin, then try in
21590 # ${with_python}. On Windows/MinGW, this is where the Python
21592 if test ! -x "${python_prog}"; then
21593 python_prog
="${with_python}/python"
21596 if test ! -x "${python_prog}"; then
21597 # Fall back to gdb 7.0/7.1 behaviour.
21598 python_prog
=missing
21599 python_prefix
=${with_python}
21601 elif test -x "${with_python}"; then
21602 # While we can't run python compiled for $host (unless host == build),
21603 # the user could write a script that provides the needed information,
21604 # so we support that.
21605 python_prog
=${with_python}
21608 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
21612 # Disallow --with-python=foo/bar.
21613 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
21616 # The user has either specified auto, yes, or the name of the python
21617 # program assumed to be in $PATH.
21619 case "${with_python}" in
21621 if test "${build}" = "${host}"; then
21622 # Look first for 'python', then 'python3'.
21623 for ac_prog
in python python3
21625 # Extract the first word of "$ac_prog", so it can be a program name with args.
21626 set dummy
$ac_prog; ac_word
=$2
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21628 $as_echo_n "checking for $ac_word... " >&6; }
21629 if ${ac_cv_path_python_prog_path+:} false
; then :
21630 $as_echo_n "(cached) " >&6
21632 case $python_prog_path in
21634 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
21637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21638 for as_dir
in $PATH
21641 test -z "$as_dir" && as_dir
=.
21642 for ac_exec_ext
in '' $ac_executable_extensions; do
21643 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
21644 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
21645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21655 python_prog_path
=$ac_cv_path_python_prog_path
21656 if test -n "$python_prog_path"; then
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
21658 $as_echo "$python_prog_path" >&6; }
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21661 $as_echo "no" >&6; }
21665 test -n "$python_prog_path" && break
21667 test -n "$python_prog_path" || python_prog_path
="missing"
21669 if test "${python_prog_path}" = missing
; then
21670 python_prog
=missing
21672 python_prog
=${python_prog_path}
21675 # Not much we can do except assume the cross-compiler will find the
21677 python_prog
=missing
21681 # While we can't run python compiled for $host (unless host == build),
21682 # the user could write a script that provides the needed information,
21683 # so we support that.
21684 python_prog
="${with_python}"
21685 # Extract the first word of "${python_prog}", so it can be a program name with args.
21686 set dummy
${python_prog}; ac_word
=$2
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21688 $as_echo_n "checking for $ac_word... " >&6; }
21689 if ${ac_cv_path_python_prog_path+:} false
; then :
21690 $as_echo_n "(cached) " >&6
21692 case $python_prog_path in
21694 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
21697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21698 for as_dir
in $PATH
21701 test -z "$as_dir" && as_dir
=.
21702 for ac_exec_ext
in '' $ac_executable_extensions; do
21703 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
21704 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
21705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21712 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
21716 python_prog_path
=$ac_cv_path_python_prog_path
21717 if test -n "$python_prog_path"; then
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
21719 $as_echo "$python_prog_path" >&6; }
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21722 $as_echo "no" >&6; }
21726 if test "${python_prog_path}" = missing
; then
21727 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
21733 if test "${python_prog}" != missing
; then
21734 # We have a python program to use, but it may be too old.
21735 # Don't flag an error for --with-python=auto (the default).
21736 have_python_config
=yes
21737 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
21738 if test $?
!= 0; then
21739 have_python_config
=failed
21740 if test "${with_python}" != auto
; then
21741 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
21744 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
21745 if test $?
!= 0; then
21746 have_python_config
=failed
21747 if test "${with_python}" != auto
; then
21748 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
21751 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
21752 if test $?
!= 0; then
21753 have_python_config
=failed
21754 if test "${with_python}" != auto
; then
21755 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
21759 # We do not have a python executable we can use to determine where
21760 # to find the Python headers and libs. We cannot guess the include
21761 # path from the python_prefix either, because that include path
21762 # depends on the Python version. So, there is nothing much we can
21763 # do except assume that the compiler will be able to find those files.
21766 have_python_config
=no
21769 # If we have python-config, only try the configuration it provides.
21770 # Otherwise fallback on the old way of trying different versions of
21774 if test "${have_python_config}" = yes; then
21777 new_CPPFLAGS
=${python_includes}
21778 new_LIBS
=${python_libs}
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
21780 $as_echo_n "checking for python... " >&6; }
21781 save_CPPFLAGS
=$CPPFLAGS
21783 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
21784 LIBS
="$new_LIBS $LIBS"
21785 found_usable_python
=no
21786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21787 /* end confdefs.h. */
21788 #include "Python.h"
21793 #if PY_MAJOR_VERSION != 3
21794 # error "We only support Python 3"
21802 if ac_fn_c_try_link
"$LINENO"; then :
21804 found_usable_python
=yes
21805 PYTHON_CPPFLAGS
=$new_CPPFLAGS
21806 PYTHON_LIBS
=$new_LIBS
21808 rm -f core conftest.err conftest.
$ac_objext \
21809 conftest
$ac_exeext conftest.
$ac_ext
21810 CPPFLAGS
=$save_CPPFLAGS
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
21813 $as_echo "${found_usable_python}" >&6; }
21817 if test "${have_libpython}" = no
; then
21818 case "${with_python}" in
21820 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
21824 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
21827 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
21831 if test -n "${python_prefix}"; then
21833 cat >>confdefs.h
<<_ACEOF
21834 #define WITH_PYTHON_PATH "${python_prefix}"
21838 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
21839 if test "x$prefix" = xNONE
; then
21840 test_prefix
=/usr
/local
21842 test_prefix
=$prefix
21845 test_prefix
=$exec_prefix
21848 case ${python_prefix} in
21849 "${test_prefix}"|
"${test_prefix}/"*|\
21850 '${exec_prefix}'|
'${exec_prefix}/'*)
21855 cat >>confdefs.h
<<_ACEOF
21856 #define PYTHON_PATH_RELOCATABLE $value
21865 # Check whether --with-python-libdir was given.
21866 if test "${with_python_libdir+set}" = set; then :
21867 withval
=$with_python_libdir;
21870 # If no python libdir is specified then select one based on
21871 # python's prefix path.
21872 if test -n "${python_prefix}"; then
21873 with_python_libdir
=${python_prefix}/lib
21879 if test "${have_libpython}" != no
; then
21881 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21883 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
21884 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
21885 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
21886 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
21887 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
21889 if test -n "${with_python_libdir}"; then
21891 cat >>confdefs.h
<<_ACEOF
21892 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
21896 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
21897 if test "x$prefix" = xNONE
; then
21898 test_prefix
=/usr
/local
21900 test_prefix
=$prefix
21903 test_prefix
=$exec_prefix
21906 case ${with_python_libdir} in
21907 "${test_prefix}"|
"${test_prefix}/"*|\
21908 '${exec_prefix}'|
'${exec_prefix}/'*)
21913 cat >>confdefs.h
<<_ACEOF
21914 #define PYTHON_LIBDIR_RELOCATABLE $value
21920 # Flags needed to compile Python code (taken from python-config --cflags).
21921 # We cannot call python-config directly because it will output whatever was
21922 # used when compiling the Python interpreter itself, including flags which
21923 # would make the python-related objects be compiled differently from the
21924 # rest of GDB (e.g., -O2 and -fPIC).
21925 if test "${GCC}" = yes; then
21926 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
21927 # Python headers recommend -DNDEBUG, but it's unclear if that just
21928 # refers to building Python itself. In release mode, though, it
21929 # doesn't hurt for the Python code in gdb to follow.
21930 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
21933 if test "x${tentative_python_cflags}" != x
; then
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
21935 $as_echo_n "checking compiler flags for python code... " >&6; }
21936 for flag
in ${tentative_python_cflags}; do
21937 # Check that the compiler accepts it
21938 saved_CFLAGS
="$CFLAGS"
21939 CFLAGS
="$CFLAGS $flag"
21940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21941 /* end confdefs.h. */
21951 if ac_fn_c_try_compile
"$LINENO"; then :
21952 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
21954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21955 CFLAGS
="$saved_CFLAGS"
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
21958 $as_echo "${PYTHON_CFLAGS}" >&6; }
21961 # On x64 Windows, Python's include headers, and pyconfig.h in
21962 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
21963 # version of Windows. Unfortunately, MS_WIN64 is only defined if
21964 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
21965 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
21966 # The issue was reported to the Python community, but still isn't
21967 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
21969 case "$gdb_host" in
21971 if test "${GCC}" = yes; then
21972 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
21977 # Even if Python support is not compiled in, we need to have this file
21978 # included so that the "python" command, et.al., still exists.
21979 CONFIG_OBS
="$CONFIG_OBS python/python.o"
21980 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
21983 # Work around Python http://bugs.python.org/issue10112. See also
21984 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
21985 # no effect. Note that the only test after this that uses Python is
21986 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
21987 # run without -export-dynamic too.
21988 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
21993 if test "${have_libpython}" != no
; then
21995 HAVE_PYTHON_FALSE
='#'
21997 HAVE_PYTHON_TRUE
='#'
22002 # -------------------- #
22003 # Check for libguile. #
22004 # -------------------- #
22011 # Check whether --with-guile was given.
22012 if test "${with_guile+set}" = set; then :
22013 withval
=$with_guile;
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
22019 $as_echo_n "checking whether to use guile... " >&6; }
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
22021 $as_echo "$with_guile" >&6; }
22023 # Extract the first word of "pkg-config", so it can be a program name with args.
22024 set dummy pkg-config
; ac_word
=$2
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22026 $as_echo_n "checking for $ac_word... " >&6; }
22027 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
22028 $as_echo_n "(cached) " >&6
22030 case $pkg_config_prog_path in
22032 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
22035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22036 for as_dir
in $PATH
22039 test -z "$as_dir" && as_dir
=.
22040 for ac_exec_ext
in '' $ac_executable_extensions; do
22041 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22042 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
22043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22050 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
22054 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
22055 if test -n "$pkg_config_prog_path"; then
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
22057 $as_echo "$pkg_config_prog_path" >&6; }
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22060 $as_echo "no" >&6; }
22065 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
22067 case "${with_guile}" in
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
22070 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
22073 if test "${pkg_config_prog_path}" = "missing"; then
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
22075 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
22078 pkg_config
=${pkg_config_prog_path}
22079 guile_version_list
=${try_guile_versions}
22082 found_usable_guile
=checking
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22084 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22085 for guile_version
in ${guile_version_list}; do
22086 ${pkg_config} --exists ${guile_version} 2>/dev
/null
22087 if test $?
!= 0; then
22090 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
22091 if test $?
!= 0; then
22092 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22094 new_LIBS
=`${pkg_config} --libs ${guile_version}`
22095 if test $?
!= 0; then
22096 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22098 found_usable_guile
=${guile_version}
22101 if test "${found_usable_guile}" = "checking"; then
22102 if test "${flag_errors}" = "yes"; then
22103 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22105 found_usable_guile
=no
22108 if test "${found_usable_guile}" != no
; then
22109 save_CPPFLAGS
=$CPPFLAGS
22111 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
22112 LIBS
="$LIBS $new_LIBS"
22113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22114 /* end confdefs.h. */
22115 #include "libguile.h"
22124 if ac_fn_c_try_link
"$LINENO"; then :
22126 GUILE_CPPFLAGS
=$new_CPPFLAGS
22127 GUILE_LIBS
=$new_LIBS
22129 found_usable_guile
=no
22131 rm -f core conftest.err conftest.
$ac_objext \
22132 conftest
$ac_exeext conftest.
$ac_ext
22133 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22134 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
22136 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22141 CPPFLAGS
=$save_CPPFLAGS
22143 if test "${found_usable_guile}" = no
; then
22144 if test "${flag_errors}" = yes; then
22145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22147 as_fn_error $?
"linking guile version ${guile_version} test program failed
22148 See \`config.log' for more details" "$LINENO" 5; }
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22153 $as_echo "${found_usable_guile}" >&6; }
22158 if test "${pkg_config_prog_path}" = "missing"; then
22159 as_fn_error $?
"pkg-config not found" "$LINENO" 5
22162 pkg_config
=${pkg_config_prog_path}
22163 guile_version_list
=${try_guile_versions}
22166 found_usable_guile
=checking
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22168 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22169 for guile_version
in ${guile_version_list}; do
22170 ${pkg_config} --exists ${guile_version} 2>/dev
/null
22171 if test $?
!= 0; then
22174 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
22175 if test $?
!= 0; then
22176 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22178 new_LIBS
=`${pkg_config} --libs ${guile_version}`
22179 if test $?
!= 0; then
22180 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22182 found_usable_guile
=${guile_version}
22185 if test "${found_usable_guile}" = "checking"; then
22186 if test "${flag_errors}" = "yes"; then
22187 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22189 found_usable_guile
=no
22192 if test "${found_usable_guile}" != no
; then
22193 save_CPPFLAGS
=$CPPFLAGS
22195 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
22196 LIBS
="$LIBS $new_LIBS"
22197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22198 /* end confdefs.h. */
22199 #include "libguile.h"
22208 if ac_fn_c_try_link
"$LINENO"; then :
22210 GUILE_CPPFLAGS
=$new_CPPFLAGS
22211 GUILE_LIBS
=$new_LIBS
22213 found_usable_guile
=no
22215 rm -f core conftest.err conftest.
$ac_objext \
22216 conftest
$ac_exeext conftest.
$ac_ext
22217 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22218 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
22220 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22225 CPPFLAGS
=$save_CPPFLAGS
22227 if test "${found_usable_guile}" = no
; then
22228 if test "${flag_errors}" = yes; then
22229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22231 as_fn_error $?
"linking guile version ${guile_version} test program failed
22232 See \`config.log' for more details" "$LINENO" 5; }
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22237 $as_echo "${found_usable_guile}" >&6; }
22241 if test -x "${with_guile}"; then
22243 pkg_config
=${with_guile}
22244 guile_version_list
=${try_guile_versions}
22247 found_usable_guile
=checking
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22249 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22250 for guile_version
in ${guile_version_list}; do
22251 ${pkg_config} --exists ${guile_version} 2>/dev
/null
22252 if test $?
!= 0; then
22255 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
22256 if test $?
!= 0; then
22257 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22259 new_LIBS
=`${pkg_config} --libs ${guile_version}`
22260 if test $?
!= 0; then
22261 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22263 found_usable_guile
=${guile_version}
22266 if test "${found_usable_guile}" = "checking"; then
22267 if test "${flag_errors}" = "yes"; then
22268 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22270 found_usable_guile
=no
22273 if test "${found_usable_guile}" != no
; then
22274 save_CPPFLAGS
=$CPPFLAGS
22276 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
22277 LIBS
="$LIBS $new_LIBS"
22278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22279 /* end confdefs.h. */
22280 #include "libguile.h"
22289 if ac_fn_c_try_link
"$LINENO"; then :
22291 GUILE_CPPFLAGS
=$new_CPPFLAGS
22292 GUILE_LIBS
=$new_LIBS
22294 found_usable_guile
=no
22296 rm -f core conftest.err conftest.
$ac_objext \
22297 conftest
$ac_exeext conftest.
$ac_ext
22298 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22299 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
22301 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22306 CPPFLAGS
=$save_CPPFLAGS
22308 if test "${found_usable_guile}" = no
; then
22309 if test "${flag_errors}" = yes; then
22310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22312 as_fn_error $?
"linking guile version ${guile_version} test program failed
22313 See \`config.log' for more details" "$LINENO" 5; }
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22318 $as_echo "${found_usable_guile}" >&6; }
22321 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
22325 # Disallow --with=guile="" and --with-guile=foo/bar.
22326 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
22329 # A space separate list of guile versions to try, in order.
22330 if test "${pkg_config_prog_path}" = "missing"; then
22331 as_fn_error $?
"pkg-config not found" "$LINENO" 5
22334 pkg_config
=${pkg_config_prog_path}
22335 guile_version_list
=${with_guile}
22338 found_usable_guile
=checking
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22340 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22341 for guile_version
in ${guile_version_list}; do
22342 ${pkg_config} --exists ${guile_version} 2>/dev
/null
22343 if test $?
!= 0; then
22346 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
22347 if test $?
!= 0; then
22348 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22350 new_LIBS
=`${pkg_config} --libs ${guile_version}`
22351 if test $?
!= 0; then
22352 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22354 found_usable_guile
=${guile_version}
22357 if test "${found_usable_guile}" = "checking"; then
22358 if test "${flag_errors}" = "yes"; then
22359 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22361 found_usable_guile
=no
22364 if test "${found_usable_guile}" != no
; then
22365 save_CPPFLAGS
=$CPPFLAGS
22367 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
22368 LIBS
="$LIBS $new_LIBS"
22369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22370 /* end confdefs.h. */
22371 #include "libguile.h"
22380 if ac_fn_c_try_link
"$LINENO"; then :
22382 GUILE_CPPFLAGS
=$new_CPPFLAGS
22383 GUILE_LIBS
=$new_LIBS
22385 found_usable_guile
=no
22387 rm -f core conftest.err conftest.
$ac_objext \
22388 conftest
$ac_exeext conftest.
$ac_ext
22389 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22390 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
22392 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22397 CPPFLAGS
=$save_CPPFLAGS
22399 if test "${found_usable_guile}" = no
; then
22400 if test "${flag_errors}" = yes; then
22401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22403 as_fn_error $?
"linking guile version ${guile_version} test program failed
22404 See \`config.log' for more details" "$LINENO" 5; }
22408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22409 $as_echo "${found_usable_guile}" >&6; }
22414 if test "${have_libguile}" != no
; then
22415 case "${with_guile}" in
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
22419 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
22420 if ${ac_cv_guild_program_name+:} false
; then :
22421 $as_echo_n "(cached) " >&6
22423 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
22425 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
22426 # the 'guild' and 'bindir' variables. In that case, try to guess
22427 # what the program name is, at the risk of getting it wrong if
22428 # Guile was configured with '--program-suffix' or similar.
22429 if test "x$ac_cv_guild_program_name" = "x"; then
22430 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
22431 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
22436 $as_echo "$ac_cv_guild_program_name" >&6; }
22438 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
22439 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
22442 GUILD
="$ac_cv_guild_program_name"
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
22449 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
22450 if ${ac_cv_guild_program_name+:} false
; then :
22451 $as_echo_n "(cached) " >&6
22453 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
22455 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
22456 # the 'guild' and 'bindir' variables. In that case, try to guess
22457 # what the program name is, at the risk of getting it wrong if
22458 # Guile was configured with '--program-suffix' or similar.
22459 if test "x$ac_cv_guild_program_name" = "x"; then
22460 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
22461 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
22466 $as_echo "$ac_cv_guild_program_name" >&6; }
22468 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
22469 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
22472 GUILD
="$ac_cv_guild_program_name"
22479 if test "$cross_compiling" = no
; then
22482 GUILD_TARGET_FLAG
="--target=$host"
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
22489 $as_echo_n "checking whether guild supports this host... " >&6; }
22490 if ${ac_cv_guild_ok+:} false
; then :
22491 $as_echo_n "(cached) " >&6
22493 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
22494 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
22501 $as_echo "$ac_cv_guild_ok" >&6; }
22503 if test "$ac_cv_guild_ok" = no
; then
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
22506 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
22510 if test "${have_libguile}" != no
; then
22512 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
22514 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
22515 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
22516 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
22517 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
22518 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
22521 save_CPPFLAGS
="$CPPFLAGS"
22523 CPPFLAGS
="$GUILE_CPPFLAGS"
22524 for ac_func
in scm_new_smob
22526 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
22527 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
22528 cat >>confdefs.h
<<_ACEOF
22529 #define HAVE_SCM_NEW_SMOB 1
22536 CPPFLAGS
="$save_CPPFLAGS"
22538 # Even if Guile support is not compiled in, we need to have these files
22540 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
22541 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
22545 if test "${have_libguile}" != no
; then
22547 HAVE_GUILE_FALSE
='#'
22549 HAVE_GUILE_TRUE
='#'
22554 # ---------------------------- #
22555 # Check for source highlight. #
22556 # ---------------------------- #
22561 # Check whether --enable-source-highlight was given.
22562 if test "${enable_source_highlight+set}" = set; then :
22563 enableval
=$enable_source_highlight;
22568 as_fn_error $?
"bad value $enableval for --enable-source-highlight" "$LINENO" 5
22573 enable_source_highlight
=auto
22577 if test "${enable_source_highlight}" != "no"; then
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
22579 $as_echo_n "checking for the source-highlight library... " >&6; }
22580 if test "${pkg_config_prog_path}" = "missing"; then
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
22582 $as_echo "no - pkg-config not found" >&6; }
22583 if test "${enable_source_highlight}" = "yes"; then
22584 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
22587 if ${pkg_config_prog_path} --exists source-highlight
; then
22590 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
22594 srchigh_pkg_cflags
=`${pkg_config_prog_path} --cflags source-highlight`
22595 srchigh_pkg_libs
=`${pkg_config_prog_path} --libs source-highlight`
22597 # Now that we have found a source-highlight library, check if we can use
22598 # it. In particular, we're trying to detect the situation that the
22599 # library is using the new libstdc++ library abi ( see
22600 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
22601 # while the compiler being used to compile gdb is using the old abi.
22602 # Such a situation will result in an undefined reference to
22603 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
22604 # This situation can occur for instance when using a source highlight
22605 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
22607 ac_cpp
='$CXXCPP $CPPFLAGS'
22608 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22609 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22610 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22612 save_CXXFLAGS
="$CXXFLAGS"
22614 CXXFLAGS
="$CXXFLAGS $srchigh_pkg_cflags"
22615 LIBS
="$LIBS $srchigh_pkg_libs"
22616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h. */
22618 #include <srchilite/sourcehighlight.h>
22622 std::string outlang = "esc.outlang";
22623 new srchilite::SourceHighlight (outlang);
22629 if ac_fn_cxx_try_link
"$LINENO"; then :
22630 have_usable_source_highlight
=yes
22632 have_usable_source_highlight
=no
22635 rm -f core conftest.err conftest.
$ac_objext \
22636 conftest
$ac_exeext conftest.
$ac_ext
22637 CXXFLAGS
="$save_CXXFLAGS"
22640 ac_cpp
='$CPP $CPPFLAGS'
22641 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22642 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22643 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
22646 if test "${have_usable_source_highlight}" = "yes"; then
22648 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22651 $as_echo "yes" >&6; }
22652 SRCHIGH_CFLAGS
="$srchigh_pkg_cflags"
22653 SRCHIGH_LIBS
="$srchigh_pkg_libs"
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22656 $as_echo "no" >&6; }
22657 if test "${enable_source_highlight}" = "yes"; then
22658 as_fn_error $?
"source-highlight in your system could not be used" "$LINENO" 5
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22663 $as_echo "no" >&6; }
22664 if test "${enable_source_highlight}" = "yes"; then
22665 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
22673 # ------------------------- #
22674 # Checks for header files. #
22675 # ------------------------- #
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22678 $as_echo_n "checking for ANSI C header files... " >&6; }
22679 if ${ac_cv_header_stdc+:} false
; then :
22680 $as_echo_n "(cached) " >&6
22682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22683 /* end confdefs.h. */
22684 #include <stdlib.h>
22685 #include <stdarg.h>
22686 #include <string.h>
22697 if ac_fn_c_try_compile
"$LINENO"; then :
22698 ac_cv_header_stdc
=yes
22700 ac_cv_header_stdc
=no
22702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22704 if test $ac_cv_header_stdc = yes; then
22705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22707 /* end confdefs.h. */
22708 #include <string.h>
22711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22712 $EGREP "memchr" >/dev
/null
2>&1; then :
22715 ac_cv_header_stdc
=no
22721 if test $ac_cv_header_stdc = yes; then
22722 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22724 /* end confdefs.h. */
22725 #include <stdlib.h>
22728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22729 $EGREP "free" >/dev
/null
2>&1; then :
22732 ac_cv_header_stdc
=no
22738 if test $ac_cv_header_stdc = yes; then
22739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22740 if test "$cross_compiling" = yes; then :
22743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22744 /* end confdefs.h. */
22746 #include <stdlib.h>
22747 #if ((' ' & 0x0FF) == 0x020)
22748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22751 # define ISLOWER(c) \
22752 (('a' <= (c) && (c) <= 'i') \
22753 || ('j' <= (c) && (c) <= 'r') \
22754 || ('s' <= (c) && (c) <= 'z'))
22755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22763 for (i = 0; i < 256; i++)
22764 if (XOR (islower (i), ISLOWER (i))
22765 || toupper (i) != TOUPPER (i))
22770 if ac_fn_c_try_run
"$LINENO"; then :
22773 ac_cv_header_stdc
=no
22775 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22776 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22782 $as_echo "$ac_cv_header_stdc" >&6; }
22783 if test $ac_cv_header_stdc = yes; then
22785 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
22789 # elf_hp.h is for HP/UX 64-bit shared library support.
22790 for ac_header
in nlist.h machine
/reg.h \
22792 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
22793 sys
/procctl.h sys
/resource.h sys
/ptrace.h ptrace.h \
22794 sys
/reg.h sys
/debugreg.h \
22797 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22798 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22799 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
22800 cat >>confdefs.h
<<_ACEOF
22801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22808 for ac_header
in sys
/user.h
22810 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
22811 # include <sys/param.h>
22815 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
22816 cat >>confdefs.h
<<_ACEOF
22817 #define HAVE_SYS_USER_H 1
22825 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
22827 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22828 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22829 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
22830 cat >>confdefs.h
<<_ACEOF
22831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22838 for ac_header
in term.h
22840 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
22841 # include <curses.h>
22845 if test "x$ac_cv_header_term_h" = xyes
; then :
22846 cat >>confdefs.h
<<_ACEOF
22847 #define HAVE_TERM_H 1
22855 for ac_header
in sys
/socket.h
22857 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
22858 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
22859 cat >>confdefs.h
<<_ACEOF
22860 #define HAVE_SYS_SOCKET_H 1
22867 for ac_header
in ws2tcpip.h
22869 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
22870 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
22871 cat >>confdefs.h
<<_ACEOF
22872 #define HAVE_WS2TCPIP_H 1
22879 for ac_header
in execinfo.h
22881 ac_fn_c_check_header_mongrel
"$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
22882 if test "x$ac_cv_header_execinfo_h" = xyes
; then :
22883 cat >>confdefs.h
<<_ACEOF
22884 #define HAVE_EXECINFO_H 1
22892 # ------------------------- #
22893 # Checks for declarations. #
22894 # ------------------------- #
22897 # Check for presence and size of long long.
22898 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22899 if test "x$ac_cv_type_long_long" = xyes
; then :
22901 cat >>confdefs.h
<<_ACEOF
22902 #define HAVE_LONG_LONG 1
22905 # The cast to long int works around a bug in the HP C Compiler
22906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22908 # This bug is HP SR number 8606223364.
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
22910 $as_echo_n "checking size of long long... " >&6; }
22911 if ${ac_cv_sizeof_long_long+:} false
; then :
22912 $as_echo_n "(cached) " >&6
22914 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
22917 if test "$ac_cv_type_long_long" = yes; then
22918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22920 as_fn_error
77 "cannot compute sizeof (long long)
22921 See \`config.log' for more details" "$LINENO" 5; }
22923 ac_cv_sizeof_long_long
=0
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
22929 $as_echo "$ac_cv_sizeof_long_long" >&6; }
22933 cat >>confdefs.h
<<_ACEOF
22934 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22941 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
22942 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
22943 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
22949 cat >>confdefs.h
<<_ACEOF
22950 #define HAVE_DECL_BASENAME $ac_have_decl
22952 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
22953 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
22959 cat >>confdefs.h
<<_ACEOF
22960 #define HAVE_DECL_FFS $ac_have_decl
22962 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
22963 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
22969 cat >>confdefs.h
<<_ACEOF
22970 #define HAVE_DECL_ASPRINTF $ac_have_decl
22972 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
22973 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
22979 cat >>confdefs.h
<<_ACEOF
22980 #define HAVE_DECL_VASPRINTF $ac_have_decl
22982 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
22983 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
22989 cat >>confdefs.h
<<_ACEOF
22990 #define HAVE_DECL_SNPRINTF $ac_have_decl
22992 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
22993 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
22999 cat >>confdefs.h
<<_ACEOF
23000 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23003 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
23004 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
23010 cat >>confdefs.h
<<_ACEOF
23011 #define HAVE_DECL_STRTOL $ac_have_decl
23013 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
23014 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
23020 cat >>confdefs.h
<<_ACEOF
23021 #define HAVE_DECL_STRTOUL $ac_have_decl
23023 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23024 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
23030 cat >>confdefs.h
<<_ACEOF
23031 #define HAVE_DECL_STRTOLL $ac_have_decl
23033 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23034 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
23040 cat >>confdefs.h
<<_ACEOF
23041 #define HAVE_DECL_STRTOULL $ac_have_decl
23044 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
23045 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
23051 cat >>confdefs.h
<<_ACEOF
23052 #define HAVE_DECL_STRVERSCMP $ac_have_decl
23057 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23058 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
23064 cat >>confdefs.h
<<_ACEOF
23065 #define HAVE_DECL_SNPRINTF $ac_have_decl
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
23070 $as_echo_n "checking for LC_MESSAGES... " >&6; }
23071 if ${am_cv_val_LC_MESSAGES+:} false
; then :
23072 $as_echo_n "(cached) " >&6
23074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23075 /* end confdefs.h. */
23076 #include <locale.h>
23085 if ac_fn_c_try_link
"$LINENO"; then :
23086 am_cv_val_LC_MESSAGES
=yes
23088 am_cv_val_LC_MESSAGES
=no
23090 rm -f core conftest.err conftest.
$ac_objext \
23091 conftest
$ac_exeext conftest.
$ac_ext
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
23094 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
23095 if test $am_cv_val_LC_MESSAGES = yes; then
23097 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
23102 # ------------------ #
23103 # Checks for types. #
23104 # ------------------ #
23106 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
23107 #if HAVE_SYS_SOCKET_H
23108 # include <sys/socket.h>
23109 #elif HAVE_WS2TCPIP_H
23110 # include <ws2tcpip.h>
23114 if test "x$ac_cv_type_socklen_t" = xyes
; then :
23116 cat >>confdefs.h
<<_ACEOF
23117 #define HAVE_SOCKLEN_T 1
23124 # ------------------------------------- #
23125 # Checks for compiler characteristics. #
23126 # ------------------------------------- #
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23129 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23130 if ${ac_cv_c_const+:} false
; then :
23131 $as_echo_n "(cached) " >&6
23133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23134 /* end confdefs.h. */
23140 #ifndef __cplusplus
23141 /* Ultrix mips cc rejects this sort of thing. */
23142 typedef int charset[2];
23143 const charset cs = { 0, 0 };
23144 /* SunOS 4.1.1 cc rejects this. */
23145 char const *const *pcpcc;
23147 /* NEC SVR4.0.2 mips cc rejects this. */
23148 struct point {int x, y;};
23149 static struct point const zero = {0,0};
23150 /* AIX XL C 1.02.0.0 rejects this.
23151 It does not let you subtract one const X* pointer from another in
23152 an arm of an if-expression whose if-part is not a constant
23154 const char *g = "string";
23155 pcpcc = &g + (g ? g-g : 0);
23156 /* HPUX 7.0 cc rejects these. */
23158 ppc = (char**) pcpcc;
23159 pcpcc = (char const *const *) ppc;
23160 { /* SCO 3.2v4 cc rejects this sort of thing. */
23163 char const *s = 0 ? (char *) 0 : (char const *) 0;
23168 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23169 int x[] = {25, 17};
23170 const int *foo = &x[0];
23173 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23174 typedef const int *iptr;
23178 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23179 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23180 struct s { int j; const int *ap[3]; } bx;
23181 struct s *b = &bx; b->j = 5;
23183 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23184 const int foo = 10;
23185 if (!foo) return 0;
23187 return !cs[0] && !zero.x;
23194 if ac_fn_c_try_compile
"$LINENO"; then :
23199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23202 $as_echo "$ac_cv_c_const" >&6; }
23203 if test $ac_cv_c_const = no
; then
23205 $as_echo "#define const /**/" >>confdefs.h
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
23210 $as_echo_n "checking for inline... " >&6; }
23211 if ${ac_cv_c_inline+:} false
; then :
23212 $as_echo_n "(cached) " >&6
23215 for ac_kw
in inline __inline__ __inline
; do
23216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23217 /* end confdefs.h. */
23218 #ifndef __cplusplus
23220 static $ac_kw foo_t static_foo () {return 0; }
23221 $ac_kw foo_t foo () {return 0; }
23225 if ac_fn_c_try_compile
"$LINENO"; then :
23226 ac_cv_c_inline
=$ac_kw
23228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23229 test "$ac_cv_c_inline" != no
&& break
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23234 $as_echo "$ac_cv_c_inline" >&6; }
23236 case $ac_cv_c_inline in
23239 case $ac_cv_c_inline in
23241 *) ac_val
=$ac_cv_c_inline;;
23243 cat >>confdefs.h
<<_ACEOF
23244 #ifndef __cplusplus
23245 #define inline $ac_val
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23252 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23253 if ${ac_cv_c_bigendian+:} false
; then :
23254 $as_echo_n "(cached) " >&6
23256 ac_cv_c_bigendian
=unknown
23257 # See if we're dealing with a universal compiler.
23258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23259 /* end confdefs.h. */
23260 #ifndef __APPLE_CC__
23261 not a universal capable compiler
23266 if ac_fn_c_try_compile
"$LINENO"; then :
23268 # Check for potential -arch flags. It is not universal unless
23269 # there are at least two -arch flags with different values.
23272 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23273 if test -n "$ac_prev"; then
23275 i?
86 | x86_64 | ppc | ppc64
)
23276 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
23279 ac_cv_c_bigendian
=universal
23285 elif test "x$ac_word" = "x-arch"; then
23290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23291 if test $ac_cv_c_bigendian = unknown
; then
23292 # See if sys/param.h defines the BYTE_ORDER macro.
23293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23294 /* end confdefs.h. */
23295 #include <sys/types.h>
23296 #include <sys/param.h>
23301 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23302 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23304 bogus endian macros
23311 if ac_fn_c_try_compile
"$LINENO"; then :
23312 # It does; now see whether it defined to BIG_ENDIAN or not.
23313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23314 /* end confdefs.h. */
23315 #include <sys/types.h>
23316 #include <sys/param.h>
23321 #if BYTE_ORDER != BIG_ENDIAN
23329 if ac_fn_c_try_compile
"$LINENO"; then :
23330 ac_cv_c_bigendian
=yes
23332 ac_cv_c_bigendian
=no
23334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23338 if test $ac_cv_c_bigendian = unknown
; then
23339 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23341 /* end confdefs.h. */
23342 #include <limits.h>
23347 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23348 bogus endian macros
23355 if ac_fn_c_try_compile
"$LINENO"; then :
23356 # It does; now see whether it defined to _BIG_ENDIAN or not.
23357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23358 /* end confdefs.h. */
23359 #include <limits.h>
23364 #ifndef _BIG_ENDIAN
23372 if ac_fn_c_try_compile
"$LINENO"; then :
23373 ac_cv_c_bigendian
=yes
23375 ac_cv_c_bigendian
=no
23377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23381 if test $ac_cv_c_bigendian = unknown
; then
23382 # Compile a test program.
23383 if test "$cross_compiling" = yes; then :
23384 # Try to guess by grepping values from an object file.
23385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23386 /* end confdefs.h. */
23387 short int ascii_mm[] =
23388 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23389 short int ascii_ii[] =
23390 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23391 int use_ascii (int i) {
23392 return ascii_mm[i] + ascii_ii[i];
23394 short int ebcdic_ii[] =
23395 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23396 short int ebcdic_mm[] =
23397 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23398 int use_ebcdic (int i) {
23399 return ebcdic_mm[i] + ebcdic_ii[i];
23406 return use_ascii (foo) == use_ebcdic (foo);
23411 if ac_fn_c_try_compile
"$LINENO"; then :
23412 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
23413 ac_cv_c_bigendian
=yes
23415 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
23416 if test "$ac_cv_c_bigendian" = unknown
; then
23417 ac_cv_c_bigendian
=no
23419 # finding both strings is unlikely to happen, but who knows?
23420 ac_cv_c_bigendian
=unknown
23424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23427 /* end confdefs.h. */
23428 $ac_includes_default
23433 /* Are we little or big endian? From Harbison&Steele. */
23437 char c[sizeof (long int)];
23440 return u.c[sizeof (long int) - 1] == 1;
23446 if ac_fn_c_try_run
"$LINENO"; then :
23447 ac_cv_c_bigendian
=no
23449 ac_cv_c_bigendian
=yes
23451 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23452 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23458 $as_echo "$ac_cv_c_bigendian" >&6; }
23459 case $ac_cv_c_bigendian in #(
23461 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23467 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23471 as_fn_error $?
"unknown endianness
23472 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23476 # ------------------------------ #
23477 # Checks for library functions. #
23478 # ------------------------------ #
23480 for ac_func
in getuid getgid \
23481 pipe pread pread64 pwrite resize_term \
23483 sigaction sigsetmask socketpair \
23484 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
23485 setrlimit getrlimit posix_madvise waitpid \
23488 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23489 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
23490 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
23491 cat >>confdefs.h
<<_ACEOF
23492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23500 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23501 if ${am_cv_langinfo_codeset+:} false
; then :
23502 $as_echo_n "(cached) " >&6
23504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23505 /* end confdefs.h. */
23506 #include <langinfo.h>
23510 char* cs = nl_langinfo(CODESET);
23515 if ac_fn_c_try_link
"$LINENO"; then :
23516 am_cv_langinfo_codeset
=yes
23518 am_cv_langinfo_codeset
=no
23520 rm -f core conftest.err conftest.
$ac_objext \
23521 conftest
$ac_exeext conftest.
$ac_ext
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
23525 $as_echo "$am_cv_langinfo_codeset" >&6; }
23526 if test $am_cv_langinfo_codeset = yes; then
23528 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23532 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23533 if test "x$ac_cv_type_size_t" = xyes
; then :
23537 cat >>confdefs.h
<<_ACEOF
23538 #define size_t unsigned int
23546 for ac_header
in $ac_header_list
23548 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23549 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23551 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
23552 cat >>confdefs.h
<<_ACEOF
23553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23566 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23567 if test "x$ac_cv_type_pid_t" = xyes
; then :
23571 cat >>confdefs.h
<<_ACEOF
23578 # Set the 'development' global.
23579 .
$srcdir/..
/bfd
/development.sh
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23582 $as_echo_n "checking for ANSI C header files... " >&6; }
23583 if ${ac_cv_header_stdc+:} false
; then :
23584 $as_echo_n "(cached) " >&6
23586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23587 /* end confdefs.h. */
23588 #include <stdlib.h>
23589 #include <stdarg.h>
23590 #include <string.h>
23601 if ac_fn_c_try_compile
"$LINENO"; then :
23602 ac_cv_header_stdc
=yes
23604 ac_cv_header_stdc
=no
23606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23608 if test $ac_cv_header_stdc = yes; then
23609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23611 /* end confdefs.h. */
23612 #include <string.h>
23615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23616 $EGREP "memchr" >/dev
/null
2>&1; then :
23619 ac_cv_header_stdc
=no
23625 if test $ac_cv_header_stdc = yes; then
23626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23628 /* end confdefs.h. */
23629 #include <stdlib.h>
23632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23633 $EGREP "free" >/dev
/null
2>&1; then :
23636 ac_cv_header_stdc
=no
23642 if test $ac_cv_header_stdc = yes; then
23643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23644 if test "$cross_compiling" = yes; then :
23647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23648 /* end confdefs.h. */
23650 #include <stdlib.h>
23651 #if ((' ' & 0x0FF) == 0x020)
23652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23655 # define ISLOWER(c) \
23656 (('a' <= (c) && (c) <= 'i') \
23657 || ('j' <= (c) && (c) <= 'r') \
23658 || ('s' <= (c) && (c) <= 'z'))
23659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23667 for (i = 0; i < 256; i++)
23668 if (XOR (islower (i), ISLOWER (i))
23669 || toupper (i) != TOUPPER (i))
23674 if ac_fn_c_try_run
"$LINENO"; then :
23677 ac_cv_header_stdc
=no
23679 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23680 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23686 $as_echo "$ac_cv_header_stdc" >&6; }
23687 if test $ac_cv_header_stdc = yes; then
23689 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
23693 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23694 # for constant arguments. Useless!
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
23696 $as_echo_n "checking for working alloca.h... " >&6; }
23697 if ${ac_cv_working_alloca_h+:} false
; then :
23698 $as_echo_n "(cached) " >&6
23700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23701 /* end confdefs.h. */
23702 #include <alloca.h>
23706 char *p = (char *) alloca (2 * sizeof (int));
23712 if ac_fn_c_try_link
"$LINENO"; then :
23713 ac_cv_working_alloca_h
=yes
23715 ac_cv_working_alloca_h
=no
23717 rm -f core conftest.err conftest.
$ac_objext \
23718 conftest
$ac_exeext conftest.
$ac_ext
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
23721 $as_echo "$ac_cv_working_alloca_h" >&6; }
23722 if test $ac_cv_working_alloca_h = yes; then
23724 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
23729 $as_echo_n "checking for alloca... " >&6; }
23730 if ${ac_cv_func_alloca_works+:} false
; then :
23731 $as_echo_n "(cached) " >&6
23733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23734 /* end confdefs.h. */
23736 # define alloca __builtin_alloca
23739 # include <malloc.h>
23740 # define alloca _alloca
23742 # ifdef HAVE_ALLOCA_H
23743 # include <alloca.h>
23748 # ifndef alloca /* predefined by HP cc +Olibcalls */
23749 void *alloca (size_t);
23759 char *p = (char *) alloca (1);
23765 if ac_fn_c_try_link
"$LINENO"; then :
23766 ac_cv_func_alloca_works
=yes
23768 ac_cv_func_alloca_works
=no
23770 rm -f core conftest.err conftest.
$ac_objext \
23771 conftest
$ac_exeext conftest.
$ac_ext
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
23774 $as_echo "$ac_cv_func_alloca_works" >&6; }
23776 if test $ac_cv_func_alloca_works = yes; then
23778 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
23781 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23782 # that cause trouble. Some versions do not even contain alloca or
23783 # contain a buggy version. If you still want to use their alloca,
23784 # use ar to extract alloca.o from them instead of compiling alloca.c.
23786 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
23788 $as_echo "#define C_ALLOCA 1" >>confdefs.h
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
23792 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
23793 if ${ac_cv_os_cray+:} false
; then :
23794 $as_echo_n "(cached) " >&6
23796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23797 /* end confdefs.h. */
23798 #if defined CRAY && ! defined CRAY2
23805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23806 $EGREP "webecray" >/dev
/null
2>&1; then :
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
23815 $as_echo "$ac_cv_os_cray" >&6; }
23816 if test $ac_cv_os_cray = yes; then
23817 for ac_func
in _getb67 GETB67 getb67
; do
23818 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23819 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
23820 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
23822 cat >>confdefs.h
<<_ACEOF
23823 #define CRAY_STACKSEG_END $ac_func
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
23833 $as_echo_n "checking stack direction for C alloca... " >&6; }
23834 if ${ac_cv_c_stack_direction+:} false
; then :
23835 $as_echo_n "(cached) " >&6
23837 if test "$cross_compiling" = yes; then :
23838 ac_cv_c_stack_direction
=0
23840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23841 /* end confdefs.h. */
23842 $ac_includes_default
23844 find_stack_direction (int *addr, int depth)
23846 int dir, dummy = 0;
23849 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
23850 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
23851 return dir + dummy;
23855 main (int argc, char **argv)
23857 return find_stack_direction (0, argc + !argv + 20) < 0;
23860 if ac_fn_c_try_run
"$LINENO"; then :
23861 ac_cv_c_stack_direction
=1
23863 ac_cv_c_stack_direction
=-1
23865 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23866 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
23871 $as_echo "$ac_cv_c_stack_direction" >&6; }
23872 cat >>confdefs.h
<<_ACEOF
23873 #define STACK_DIRECTION $ac_cv_c_stack_direction
23884 $as_echo "#define USE_WIN32API 1" >>confdefs.h
23886 WIN32APILIBS
="-lws2_32"
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23892 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23893 if ${am_cv_langinfo_codeset+:} false
; then :
23894 $as_echo_n "(cached) " >&6
23896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23897 /* end confdefs.h. */
23898 #include <langinfo.h>
23902 char* cs = nl_langinfo(CODESET);
23907 if ac_fn_c_try_link
"$LINENO"; then :
23908 am_cv_langinfo_codeset
=yes
23910 am_cv_langinfo_codeset
=no
23912 rm -f core conftest.err conftest.
$ac_objext \
23913 conftest
$ac_exeext conftest.
$ac_ext
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
23917 $as_echo "$am_cv_langinfo_codeset" >&6; }
23918 if test $am_cv_langinfo_codeset = yes; then
23920 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23925 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h linux
/elf.h proc_service.h poll.h sys
/poll.h sys
/select.h
23927 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23928 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23929 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
23930 cat >>confdefs.h
<<_ACEOF
23931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23940 for ac_func
in getpagesize
23942 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23943 if test "x$ac_cv_func_getpagesize" = xyes
; then :
23944 cat >>confdefs.h
<<_ACEOF
23945 #define HAVE_GETPAGESIZE 1
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
23952 $as_echo_n "checking for working mmap... " >&6; }
23953 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
23954 $as_echo_n "(cached) " >&6
23956 if test "$cross_compiling" = yes; then :
23957 ac_cv_func_mmap_fixed_mapped
=no
23959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h. */
23961 $ac_includes_default
23962 /* malloc might have been renamed as rpl_malloc. */
23965 /* Thanks to Mike Haertel and Jim Avera for this test.
23966 Here is a matrix of mmap possibilities:
23967 mmap private not fixed
23968 mmap private fixed at somewhere currently unmapped
23969 mmap private fixed at somewhere already mapped
23970 mmap shared not fixed
23971 mmap shared fixed at somewhere currently unmapped
23972 mmap shared fixed at somewhere already mapped
23973 For private mappings, we should verify that changes cannot be read()
23974 back from the file, nor mmap's back from the file at a different
23975 address. (There have been systems where private was not correctly
23976 implemented like the infamous i386 svr4.0, and systems where the
23977 VM page cache was not coherent with the file system buffer cache
23978 like early versions of FreeBSD and possibly contemporary NetBSD.)
23979 For shared mappings, we should conversely verify that changes get
23980 propagated back to all the places they're supposed to be.
23982 Grep wants private fixed already mapped.
23983 The main things grep needs to know about mmap are:
23984 * does it exist and is it safe to write into the mmap'd area
23985 * how to use it (BSD variants) */
23988 #include <sys/mman.h>
23990 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23994 /* This mess was copied from the GNU getpagesize.h. */
23995 #ifndef HAVE_GETPAGESIZE
23996 # ifdef _SC_PAGESIZE
23997 # define getpagesize() sysconf(_SC_PAGESIZE)
23998 # else /* no _SC_PAGESIZE */
23999 # ifdef HAVE_SYS_PARAM_H
24000 # include <sys/param.h>
24001 # ifdef EXEC_PAGESIZE
24002 # define getpagesize() EXEC_PAGESIZE
24003 # else /* no EXEC_PAGESIZE */
24005 # define getpagesize() NBPG * CLSIZE
24008 # endif /* no CLSIZE */
24009 # else /* no NBPG */
24011 # define getpagesize() NBPC
24012 # else /* no NBPC */
24014 # define getpagesize() PAGESIZE
24015 # endif /* PAGESIZE */
24016 # endif /* no NBPC */
24017 # endif /* no NBPG */
24018 # endif /* no EXEC_PAGESIZE */
24019 # else /* no HAVE_SYS_PARAM_H */
24020 # define getpagesize() 8192 /* punt totally */
24021 # endif /* no HAVE_SYS_PARAM_H */
24022 # endif /* no _SC_PAGESIZE */
24024 #endif /* no HAVE_GETPAGESIZE */
24029 char *data, *data2, *data3;
24030 const char *cdata2;
24034 pagesize = getpagesize ();
24036 /* First, make a file with some known garbage in it. */
24037 data = (char *) malloc (pagesize);
24040 for (i = 0; i < pagesize; ++i)
24041 *(data + i) = rand ();
24043 fd = creat ("conftest.mmap", 0600);
24046 if (write (fd, data, pagesize) != pagesize)
24050 /* Next, check that the tail of a page is zero-filled. File must have
24051 non-zero length, otherwise we risk SIGBUS for entire page. */
24052 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24056 if (write (fd2, cdata2, 1) != 1)
24058 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24059 if (data2 == MAP_FAILED)
24061 for (i = 0; i < pagesize; ++i)
24065 if (munmap (data2, pagesize))
24068 /* Next, try to mmap the file at a fixed address which already has
24069 something else allocated at it. If we can, also make sure that
24070 we see the same garbage. */
24071 fd = open ("conftest.mmap", O_RDWR);
24074 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24075 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24077 for (i = 0; i < pagesize; ++i)
24078 if (*(data + i) != *(data2 + i))
24081 /* Finally, make sure that changes to the mapped area do not
24082 percolate back to the file as seen by read(). (This is a bug on
24083 some variants of i386 svr4.0.) */
24084 for (i = 0; i < pagesize; ++i)
24085 *(data2 + i) = *(data2 + i) + 1;
24086 data3 = (char *) malloc (pagesize);
24089 if (read (fd, data3, pagesize) != pagesize)
24091 for (i = 0; i < pagesize; ++i)
24092 if (*(data + i) != *(data3 + i))
24098 if ac_fn_c_try_run
"$LINENO"; then :
24099 ac_cv_func_mmap_fixed_mapped
=yes
24101 ac_cv_func_mmap_fixed_mapped
=no
24103 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24104 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24109 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24110 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24112 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
24115 rm -f conftest.mmap conftest.txt
24117 for ac_header
in vfork.h
24119 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24120 if test "x$ac_cv_header_vfork_h" = xyes
; then :
24121 cat >>confdefs.h
<<_ACEOF
24122 #define HAVE_VFORK_H 1
24129 for ac_func
in fork vfork
24131 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24132 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
24133 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
24134 cat >>confdefs.h
<<_ACEOF
24135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24141 if test "x$ac_cv_func_fork" = xyes
; then
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24143 $as_echo_n "checking for working fork... " >&6; }
24144 if ${ac_cv_func_fork_works+:} false
; then :
24145 $as_echo_n "(cached) " >&6
24147 if test "$cross_compiling" = yes; then :
24148 ac_cv_func_fork_works
=cross
24150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24151 /* end confdefs.h. */
24152 $ac_includes_default
24157 /* By Ruediger Kuhlmann. */
24158 return fork () < 0;
24164 if ac_fn_c_try_run
"$LINENO"; then :
24165 ac_cv_func_fork_works
=yes
24167 ac_cv_func_fork_works
=no
24169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24170 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24175 $as_echo "$ac_cv_func_fork_works" >&6; }
24178 ac_cv_func_fork_works
=$ac_cv_func_fork
24180 if test "x$ac_cv_func_fork_works" = xcross
; then
24182 *-*-amigaos* |
*-*-msdosdjgpp*)
24183 # Override, as these systems have only a dummy fork() stub
24184 ac_cv_func_fork_works
=no
24187 ac_cv_func_fork_works
=yes
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24191 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24193 ac_cv_func_vfork_works
=$ac_cv_func_vfork
24194 if test "x$ac_cv_func_vfork" = xyes
; then
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24196 $as_echo_n "checking for working vfork... " >&6; }
24197 if ${ac_cv_func_vfork_works+:} false
; then :
24198 $as_echo_n "(cached) " >&6
24200 if test "$cross_compiling" = yes; then :
24201 ac_cv_func_vfork_works
=cross
24203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24204 /* end confdefs.h. */
24205 /* Thanks to Paul Eggert for this test. */
24206 $ac_includes_default
24207 #include <sys/wait.h>
24208 #ifdef HAVE_VFORK_H
24209 # include <vfork.h>
24211 /* On some sparc systems, changes by the child to local and incoming
24212 argument registers are propagated back to the parent. The compiler
24213 is told about this with #include <vfork.h>, but some compilers
24214 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24215 static variable whose address is put into a register that is
24216 clobbered by the vfork. */
24219 sparc_address_test (int arg)
24221 sparc_address_test (arg) int arg;
24224 static pid_t child;
24242 pid_t parent = getpid ();
24245 sparc_address_test (0);
24250 /* Here is another test for sparc vfork register problems. This
24251 test uses lots of local variables, at least as many local
24252 variables as main has allocated so far including compiler
24253 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24254 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24255 reuse the register of parent for one of the local variables,
24256 since it will think that parent can't possibly be used any more
24257 in this routine. Assigning to the local variable will thus
24258 munge parent in the parent process. */
24260 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24261 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24262 /* Convince the compiler that p..p7 are live; otherwise, it might
24263 use the same hardware register for all 8 local variables. */
24264 if (p != p1 || p != p2 || p != p3 || p != p4
24265 || p != p5 || p != p6 || p != p7)
24268 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24269 from child file descriptors. If the child closes a descriptor
24270 before it execs or exits, this munges the parent's descriptor
24271 as well. Test for this by closing stdout in the child. */
24272 _exit(close(fileno(stdout)) != 0);
24277 while (wait(&status) != child)
24280 /* Was there some problem with vforking? */
24283 /* Did the child fail? (This shouldn't happen.) */
24286 /* Did the vfork/compiler bug occur? */
24287 || parent != getpid()
24289 /* Did the file descriptor bug occur? */
24290 || fstat(fileno(stdout), &st) != 0
24295 if ac_fn_c_try_run
"$LINENO"; then :
24296 ac_cv_func_vfork_works
=yes
24298 ac_cv_func_vfork_works
=no
24300 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24301 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24306 $as_echo "$ac_cv_func_vfork_works" >&6; }
24309 if test "x$ac_cv_func_fork_works" = xcross
; then
24310 ac_cv_func_vfork_works
=$ac_cv_func_vfork
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24312 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24315 if test "x$ac_cv_func_vfork_works" = xyes
; then
24317 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24321 $as_echo "#define vfork fork" >>confdefs.h
24324 if test "x$ac_cv_func_fork_works" = xyes
; then
24326 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24330 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
24331 ptrace64 sbrk setns sigaltstack sigprocmask \
24332 setpgid setpgrp getrusage getauxval sigtimedwait
24334 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24335 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
24336 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
24337 cat >>confdefs.h
<<_ACEOF
24338 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24345 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
24346 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
24347 # only in linux/personality.h.
24348 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
24350 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
24356 cat >>confdefs.h
<<_ACEOF
24357 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
24361 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
24362 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
24368 cat >>confdefs.h
<<_ACEOF
24369 #define HAVE_DECL_STRSTR $ac_have_decl
24373 # ----------------------- #
24374 # Checks for structures. #
24375 # ----------------------- #
24377 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
24378 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
24380 cat >>confdefs.h
<<_ACEOF
24381 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
24386 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
24387 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
24389 cat >>confdefs.h
<<_ACEOF
24390 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
24397 # On FreeBSD we need libutil for the kinfo_get* functions. On
24398 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
24399 # Figure out which one to use.
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
24401 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
24402 if ${ac_cv_search_kinfo_getfile+:} false
; then :
24403 $as_echo_n "(cached) " >&6
24405 ac_func_search_save_LIBS
=$LIBS
24406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24407 /* end confdefs.h. */
24409 /* Override any GCC internal prototype to avoid an error.
24410 Use char because int might match the return type of a GCC
24411 builtin and then its argument prototype would still apply. */
24415 char kinfo_getfile ();
24419 return kinfo_getfile ();
24424 for ac_lib
in '' util util-freebsd
; do
24425 if test -z "$ac_lib"; then
24426 ac_res
="none required"
24429 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24431 if ac_fn_c_try_link
"$LINENO"; then :
24432 ac_cv_search_kinfo_getfile
=$ac_res
24434 rm -f core conftest.err conftest.
$ac_objext \
24436 if ${ac_cv_search_kinfo_getfile+:} false
; then :
24440 if ${ac_cv_search_kinfo_getfile+:} false
; then :
24443 ac_cv_search_kinfo_getfile
=no
24445 rm conftest.
$ac_ext
24446 LIBS
=$ac_func_search_save_LIBS
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
24449 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
24450 ac_res
=$ac_cv_search_kinfo_getfile
24451 if test "$ac_res" != no
; then :
24452 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24457 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
24458 for ac_func
in kinfo_getfile
24460 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
24461 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
24462 cat >>confdefs.h
<<_ACEOF
24463 #define HAVE_KINFO_GETFILE 1
24470 # ----------------------- #
24471 # Check for threading. #
24472 # ----------------------- #
24474 # Check whether --enable-threading was given.
24475 if test "${enable_threading+set}" = set; then :
24476 enableval
=$enable_threading; case "$enableval" in
24477 yes) want_threading
=yes ;;
24478 no
) want_threading
=no
;;
24479 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
24486 # Check for std::thread. This does not work on some platforms, like
24489 ac_cpp
='$CXXCPP $CPPFLAGS'
24490 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24491 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24492 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
24499 ac_cpp
='$CPP $CPPFLAGS'
24500 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24501 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24502 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24506 # We used to check for pthread.h first, but this fails if pthread.h
24507 # requires special compiler flags (e.g. on Tru64 or Sequent).
24508 # It gets checked for in the link test anyway.
24510 # First of all, check if the user has set any of the PTHREAD_LIBS,
24511 # etcetera environment variables, and if threads linking works using
24513 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
24514 ax_pthread_save_CC
="$CC"
24515 ax_pthread_save_CFLAGS
="$CFLAGS"
24516 ax_pthread_save_LIBS
="$LIBS"
24517 if test "x$PTHREAD_CC" != "x"; then :
24520 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
24521 LIBS
="$PTHREAD_LIBS $LIBS"
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
24523 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
24524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24525 /* end confdefs.h. */
24527 /* Override any GCC internal prototype to avoid an error.
24528 Use char because int might match the return type of a GCC
24529 builtin and then its argument prototype would still apply. */
24533 char pthread_join ();
24537 return pthread_join ();
24542 if ac_fn_c_try_link
"$LINENO"; then :
24545 rm -f core conftest.err conftest.
$ac_objext \
24546 conftest
$ac_exeext conftest.
$ac_ext
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
24548 $as_echo "$ax_pthread_ok" >&6; }
24549 if test "x$ax_pthread_ok" = "xno"; then
24553 CC
="$ax_pthread_save_CC"
24554 CFLAGS
="$ax_pthread_save_CFLAGS"
24555 LIBS
="$ax_pthread_save_LIBS"
24558 # We must check for the threads library under a number of different
24559 # names; the ordering is very important because some systems
24560 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
24561 # libraries is broken (non-POSIX).
24563 # Create a list of thread flags to try. Items starting with a "-" are
24564 # C compiler flags, and other items are library names, except for "none"
24565 # which indicates that we try without any flags at all, and "pthread-config"
24566 # which is a program returning the flags for the Pth emulation library.
24568 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
24570 # The ordering *is* (sometimes) important. Some notes on the
24571 # individual items follow:
24573 # pthreads: AIX (must check this before -lpthread)
24574 # none: in case threads are in libc; should be tried before -Kthread and
24575 # other compiler flags to prevent continual compiler warnings
24576 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
24577 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
24578 # (Note: HP C rejects this with "bad form for `-t' option")
24579 # -pthreads: Solaris/gcc (Note: HP C also rejects)
24580 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
24581 # doesn't hurt to check since this sometimes defines pthreads and
24582 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
24583 # is present but should not be used directly; and before -mthreads,
24584 # because the compiler interprets this as "-mt" + "-hreads")
24585 # -mthreads: Mingw32/gcc, Lynx/gcc
24586 # pthread: Linux, etcetera
24587 # --thread-safe: KAI C++
24588 # pthread-config: use pthread-config program (for GNU Pth library)
24594 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
24595 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
24597 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
24602 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
24603 # multi-threading and also sets -lpthread."
24605 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
24610 # IBM z/OS requires a feature-test macro to be defined in order to
24611 # enable POSIX threads at all, so give the user a hint if this is
24612 # not set. (We don't define these ourselves, as they can affect
24613 # other portions of the system API in unpredictable ways.)
24615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24616 /* end confdefs.h. */
24618 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
24619 AX_PTHREAD_ZOS_MISSING
24623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24624 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
24626 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
24634 # On Solaris (at least, for some versions), libc contains stubbed
24635 # (non-functional) versions of the pthreads routines, so link-based
24636 # tests will erroneously succeed. (N.B.: The stubs are missing
24637 # pthread_cleanup_push, or rather a function called by this macro,
24638 # so we could check for that, but who knows whether they'll stub
24639 # that too in a future libc.) So we'll check first for the
24640 # standard Solaris way of linking pthreads (-mt -lpthread).
24642 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
24646 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
24648 if test "x$GCC" = "xyes"; then :
24649 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
24652 # The presence of a feature test macro requesting re-entrant function
24653 # definitions is, on some systems, a strong hint that pthreads support is
24654 # correctly enabled
24657 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
24658 ax_pthread_check_macro
="_REENTRANT"
24662 ax_pthread_check_macro
="_THREAD_SAFE"
24666 ax_pthread_check_macro
="--"
24669 if test "x$ax_pthread_check_macro" = "x--"; then :
24670 ax_pthread_check_cond
=0
24672 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
24675 # Are we compiling with Clang?
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
24678 $as_echo_n "checking whether $CC is Clang... " >&6; }
24679 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
24680 $as_echo_n "(cached) " >&6
24682 ax_cv_PTHREAD_CLANG
=no
24683 # Note that Autoconf sets GCC=yes for Clang as well as GCC
24684 if test "x$GCC" = "xyes"; then
24685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24686 /* end confdefs.h. */
24687 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
24688 # if defined(__clang__) && defined(__llvm__)
24689 AX_PTHREAD_CC_IS_CLANG
24693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24694 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
24695 ax_cv_PTHREAD_CLANG
=yes
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
24703 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
24704 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
24706 ax_pthread_clang_warning
=no
24708 # Clang needs special handling, because older versions handle the -pthread
24709 # option in a rather... idiosyncratic way
24711 if test "x$ax_pthread_clang" = "xyes"; then
24713 # Clang takes -pthread; it has never supported any other flag
24715 # (Note 1: This will need to be revisited if a system that Clang
24716 # supports has POSIX threads in a separate library. This tends not
24717 # to be the way of modern systems, but it's conceivable.)
24719 # (Note 2: On some systems, notably Darwin, -pthread is not needed
24720 # to get POSIX threads support; the API is always present and
24721 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
24722 # -pthread does define _REENTRANT, and while the Darwin headers
24723 # ignore this macro, third-party headers might not.)
24725 PTHREAD_CFLAGS
="-pthread"
24730 # However, older versions of Clang make a point of warning the user
24731 # that, in an invocation where only linking and no compilation is
24732 # taking place, the -pthread option has no effect ("argument unused
24733 # during compilation"). They expect -pthread to be passed in only
24734 # when source code is being compiled.
24736 # Problem is, this is at odds with the way Automake and most other
24737 # C build frameworks function, which is that the same flags used in
24738 # compilation (CFLAGS) are also used in linking. Many systems
24739 # supported by AX_PTHREAD require exactly this for POSIX threads
24740 # support, and in fact it is often not straightforward to specify a
24741 # flag that is used only in the compilation phase and not in
24742 # linking. Such a scenario is extremely rare in practice.
24744 # Even though use of the -pthread flag in linking would only print
24745 # a warning, this can be a nuisance for well-run software projects
24746 # that build with -Werror. So if the active version of Clang has
24747 # this misfeature, we search for an option to squash it.
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
24750 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
24751 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
24752 $as_echo_n "(cached) " >&6
24754 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
24755 # Create an alternate version of $ac_link that compiles and
24756 # links in two steps (.c -> .o, .o -> exe) instead of one
24757 # (.c -> exe), because the warning occurs only in the second
24759 ax_pthread_save_ac_link
="$ac_link"
24760 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
24761 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
24762 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
24763 ax_pthread_save_CFLAGS
="$CFLAGS"
24764 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
24765 if test "x$ax_pthread_try" = "xunknown"; then :
24768 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
24769 ac_link
="$ax_pthread_save_ac_link"
24770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24771 /* end confdefs.h. */
24772 int main(void){return 0;}
24774 if ac_fn_c_try_link
"$LINENO"; then :
24775 ac_link
="$ax_pthread_2step_ac_link"
24776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24777 /* end confdefs.h. */
24778 int main(void){return 0;}
24780 if ac_fn_c_try_link
"$LINENO"; then :
24783 rm -f core conftest.err conftest.
$ac_objext \
24784 conftest
$ac_exeext conftest.
$ac_ext
24787 rm -f core conftest.err conftest.
$ac_objext \
24788 conftest
$ac_exeext conftest.
$ac_ext
24790 ac_link
="$ax_pthread_save_ac_link"
24791 CFLAGS
="$ax_pthread_save_CFLAGS"
24792 if test "x$ax_pthread_try" = "x"; then :
24795 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
24799 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
24801 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
24803 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
24806 fi # $ax_pthread_clang = yes
24808 if test "x$ax_pthread_ok" = "xno"; then
24809 for ax_pthread_try_flag
in $ax_pthread_flags; do
24811 case $ax_pthread_try_flag in
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
24814 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
24819 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
24820 PTHREAD_CFLAGS
="-mt"
24821 PTHREAD_LIBS
="-lpthread"
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
24826 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
24827 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
24831 # Extract the first word of "pthread-config", so it can be a program name with args.
24832 set dummy pthread-config
; ac_word
=$2
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24834 $as_echo_n "checking for $ac_word... " >&6; }
24835 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
24836 $as_echo_n "(cached) " >&6
24838 if test -n "$ax_pthread_config"; then
24839 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
24841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24842 for as_dir
in $PATH
24845 test -z "$as_dir" && as_dir
=.
24846 for ac_exec_ext
in '' $ac_executable_extensions; do
24847 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24848 ac_cv_prog_ax_pthread_config
="yes"
24849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24856 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
24859 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
24860 if test -n "$ax_pthread_config"; then
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
24862 $as_echo "$ax_pthread_config" >&6; }
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24865 $as_echo "no" >&6; }
24869 if test "x$ax_pthread_config" = "xno"; then :
24872 PTHREAD_CFLAGS
="`pthread-config --cflags`"
24873 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
24878 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
24879 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
24883 ax_pthread_save_CFLAGS
="$CFLAGS"
24884 ax_pthread_save_LIBS
="$LIBS"
24885 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
24886 LIBS
="$PTHREAD_LIBS $LIBS"
24888 # Check for various functions. We must include pthread.h,
24889 # since some functions may be macros. (On the Sequent, we
24890 # need a special flag -Kthread to make this header compile.)
24891 # We check for pthread_join because it is in -lpthread on IRIX
24892 # while pthread_create is in libc. We check for pthread_attr_init
24893 # due to DEC craziness with -lpthreads. We check for
24894 # pthread_cleanup_push because it is one of the few pthread
24895 # functions on Solaris that doesn't have a non-functional libc stub.
24896 # We try pthread_create on general principles.
24898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24899 /* end confdefs.h. */
24900 #include <pthread.h>
24901 # if $ax_pthread_check_cond
24902 # error "$ax_pthread_check_macro must be defined"
24904 static void routine(void *a) { a = 0; }
24905 static void *start_routine(void *a) { return a; }
24909 pthread_t th; pthread_attr_t attr;
24910 pthread_create(&th, 0, start_routine, 0);
24911 pthread_join(th, 0);
24912 pthread_attr_init(&attr);
24913 pthread_cleanup_push(routine, 0);
24914 pthread_cleanup_pop(0) /* ; */
24919 if ac_fn_c_try_link
"$LINENO"; then :
24922 rm -f core conftest.err conftest.
$ac_objext \
24923 conftest
$ac_exeext conftest.
$ac_ext
24925 CFLAGS
="$ax_pthread_save_CFLAGS"
24926 LIBS
="$ax_pthread_save_LIBS"
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
24929 $as_echo "$ax_pthread_ok" >&6; }
24930 if test "x$ax_pthread_ok" = "xyes"; then :
24939 # Various other checks:
24940 if test "x$ax_pthread_ok" = "xyes"; then
24941 ax_pthread_save_CFLAGS
="$CFLAGS"
24942 ax_pthread_save_LIBS
="$LIBS"
24943 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
24944 LIBS
="$PTHREAD_LIBS $LIBS"
24946 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
24948 $as_echo_n "checking for joinable pthread attribute... " >&6; }
24949 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
24950 $as_echo_n "(cached) " >&6
24952 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
24953 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
24954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24955 /* end confdefs.h. */
24956 #include <pthread.h>
24960 int attr = $ax_pthread_attr; return attr /* ; */
24965 if ac_fn_c_try_link
"$LINENO"; then :
24966 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
24968 rm -f core conftest.err conftest.
$ac_objext \
24969 conftest
$ac_exeext conftest.
$ac_ext
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
24974 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
24975 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
24976 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
24977 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
24979 cat >>confdefs.h
<<_ACEOF
24980 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
24983 ax_pthread_joinable_attr_defined
=yes
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
24988 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
24989 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
24990 $as_echo_n "(cached) " >&6
24992 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
24995 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
25001 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
25002 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
25003 test "x$ax_pthread_special_flags_added" != "xyes"; then :
25004 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
25005 ax_pthread_special_flags_added
=yes
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
25009 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
25010 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
25011 $as_echo_n "(cached) " >&6
25013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25014 /* end confdefs.h. */
25015 #include <pthread.h>
25019 int i = PTHREAD_PRIO_INHERIT;
25024 if ac_fn_c_try_link
"$LINENO"; then :
25025 ax_cv_PTHREAD_PRIO_INHERIT
=yes
25027 ax_cv_PTHREAD_PRIO_INHERIT
=no
25029 rm -f core conftest.err conftest.
$ac_objext \
25030 conftest
$ac_exeext conftest.
$ac_ext
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
25034 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
25035 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
25036 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
25038 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
25040 ax_pthread_prio_inherit_defined
=yes
25044 CFLAGS
="$ax_pthread_save_CFLAGS"
25045 LIBS
="$ax_pthread_save_LIBS"
25047 # More AIX lossage: compile with *_r variant
25048 if test "x$GCC" != "xyes"; then
25052 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
25053 #handle absolute path differently from PATH based program lookup
25056 if as_fn_executable_p
${CC}_r
; then :
25057 PTHREAD_CC
="${CC}_r"
25060 for ac_prog
in ${CC}_r
25062 # Extract the first word of "$ac_prog", so it can be a program name with args.
25063 set dummy
$ac_prog; ac_word
=$2
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25065 $as_echo_n "checking for $ac_word... " >&6; }
25066 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
25067 $as_echo_n "(cached) " >&6
25069 if test -n "$PTHREAD_CC"; then
25070 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
25072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25073 for as_dir
in $PATH
25076 test -z "$as_dir" && as_dir
=.
25077 for ac_exec_ext
in '' $ac_executable_extensions; do
25078 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25079 ac_cv_prog_PTHREAD_CC
="$ac_prog"
25080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25089 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
25090 if test -n "$PTHREAD_CC"; then
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
25092 $as_echo "$PTHREAD_CC" >&6; }
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25095 $as_echo "no" >&6; }
25099 test -n "$PTHREAD_CC" && break
25101 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
25112 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
25118 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
25119 if test "x$ax_pthread_ok" = "xyes"; then
25127 ac_cpp
='$CXXCPP $CPPFLAGS'
25128 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25129 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25130 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
25134 LIBS
="$PTHREAD_LIBS $LIBS"
25135 save_CXXFLAGS
="$CXXFLAGS"
25136 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
25138 $as_echo_n "checking for std::thread... " >&6; }
25139 if ${gdb_cv_cxx_std_thread+:} false
; then :
25140 $as_echo_n "(cached) " >&6
25142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25143 /* end confdefs.h. */
25144 #if defined (__MINGW32__) || defined (__CYGWIN__)
25145 # ifdef _WIN32_WINNT
25146 # if _WIN32_WINNT < 0x0501
25147 # undef _WIN32_WINNT
25148 # define _WIN32_WINNT 0x0501
25151 # define _WIN32_WINNT 0x0501
25153 #endif /* __MINGW32__ || __CYGWIN__ */
25155 void callback() { }
25159 std::thread t(callback);
25164 if ac_fn_cxx_try_compile
"$LINENO"; then :
25165 gdb_cv_cxx_std_thread
=yes
25167 gdb_cv_cxx_std_thread
=no
25169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
25172 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
25174 if test "$threads" = "yes"; then
25175 # This check must be here, while LIBS includes any necessary
25176 # threading library.
25177 for ac_func
in pthread_sigmask pthread_setname_np
25179 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25180 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25181 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
25182 cat >>confdefs.h
<<_ACEOF
25183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25191 CXXFLAGS
="$save_CXXFLAGS"
25193 if test "$want_threading" = "yes"; then
25194 if test "$gdb_cv_cxx_std_thread" = "yes"; then
25196 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
25201 ac_cpp
='$CPP $CPPFLAGS'
25202 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25203 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25204 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
25208 $as_echo_n "checking for sigsetjmp... " >&6; }
25209 if ${gdb_cv_func_sigsetjmp+:} false
; then :
25210 $as_echo_n "(cached) " >&6
25212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25213 /* end confdefs.h. */
25214 #include <setjmp.h>
25219 while (! sigsetjmp (env, 1))
25220 siglongjmp (env, 1);
25226 if ac_fn_c_try_compile
"$LINENO"; then :
25227 gdb_cv_func_sigsetjmp
=yes
25229 gdb_cv_func_sigsetjmp
=no
25232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
25236 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
25237 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
25239 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
25244 # Check whether --with-intel_pt was given.
25245 if test "${with_intel_pt+set}" = set; then :
25246 withval
=$with_intel_pt;
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
25252 $as_echo_n "checking whether to use intel pt... " >&6; }
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
25254 $as_echo "$with_intel_pt" >&6; }
25256 if test "${with_intel_pt}" = no
; then
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
25258 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
25261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25262 /* end confdefs.h. */
25264 #include <linux/perf_event.h>
25265 #ifndef PERF_ATTR_SIZE_VER5
25270 if ac_fn_c_try_cpp
"$LINENO"; then :
25275 rm -f conftest.err conftest.i conftest.
$ac_ext
25276 if test "$perf_event" != yes; then
25277 if test "$with_intel_pt" = yes; then
25278 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
25281 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
25295 acl_save_prefix
="$prefix"
25296 prefix
="$acl_final_prefix"
25297 acl_save_exec_prefix
="$exec_prefix"
25298 exec_prefix
="$acl_final_exec_prefix"
25300 eval additional_includedir
=\"$includedir\"
25301 eval additional_libdir
=\"$libdir\"
25303 exec_prefix
="$acl_save_exec_prefix"
25304 prefix
="$acl_save_prefix"
25307 # Check whether --with-libipt-prefix was given.
25308 if test "${with_libipt_prefix+set}" = set; then :
25309 withval
=$with_libipt_prefix;
25310 if test "X$withval" = "Xno"; then
25313 if test "X$withval" = "X"; then
25315 acl_save_prefix
="$prefix"
25316 prefix
="$acl_final_prefix"
25317 acl_save_exec_prefix
="$exec_prefix"
25318 exec_prefix
="$acl_final_exec_prefix"
25320 eval additional_includedir
=\"$includedir\"
25321 eval additional_libdir
=\"$libdir\"
25323 exec_prefix
="$acl_save_exec_prefix"
25324 prefix
="$acl_save_prefix"
25327 additional_includedir
="$withval/include"
25328 additional_libdir
="$withval/lib"
25335 # Check whether --with-libipt-type was given.
25336 if test "${with_libipt_type+set}" = set; then :
25337 withval
=$with_libipt_type; with_libipt_type
=$withval
25339 with_libipt_type
=auto
25342 lib_type
=`eval echo \$with_libipt_type`
25349 names_already_handled
=
25350 names_next_round
='ipt '
25351 while test -n "$names_next_round"; do
25352 names_this_round
="$names_next_round"
25354 for name
in $names_this_round; do
25356 for n
in $names_already_handled; do
25357 if test "$n" = "$name"; then
25358 already_handled
=yes
25362 if test -z "$already_handled"; then
25363 names_already_handled
="$names_already_handled $name"
25364 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25365 eval value
=\"\
$HAVE_LIB$uppername\"
25366 if test -n "$value"; then
25367 if test "$value" = yes; then
25368 eval value
=\"\
$LIB$uppername\"
25369 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
25370 eval value
=\"\
$LTLIB$uppername\"
25371 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
25380 if test $use_additional = yes; then
25381 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
25382 found_dir
="$additional_libdir"
25383 found_so
="$additional_libdir/lib$name.$shlibext"
25384 if test -f "$additional_libdir/lib$name.la"; then
25385 found_la
="$additional_libdir/lib$name.la"
25387 elif test x
$lib_type != xshared
; then
25388 if test -f "$additional_libdir/lib$name.$libext"; then
25389 found_dir
="$additional_libdir"
25390 found_a
="$additional_libdir/lib$name.$libext"
25391 if test -f "$additional_libdir/lib$name.la"; then
25392 found_la
="$additional_libdir/lib$name.la"
25397 if test "X$found_dir" = "X"; then
25398 for x
in $LDFLAGS $LTLIBIPT; do
25400 acl_save_prefix
="$prefix"
25401 prefix
="$acl_final_prefix"
25402 acl_save_exec_prefix
="$exec_prefix"
25403 exec_prefix
="$acl_final_exec_prefix"
25405 exec_prefix
="$acl_save_exec_prefix"
25406 prefix
="$acl_save_prefix"
25410 dir
=`echo "X$x" | sed -e 's/^X-L//'`
25411 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
25413 found_so
="$dir/lib$name.$shlibext"
25414 if test -f "$dir/lib$name.la"; then
25415 found_la
="$dir/lib$name.la"
25417 elif test x
$lib_type != xshared
; then
25418 if test -f "$dir/lib$name.$libext"; then
25420 found_a
="$dir/lib$name.$libext"
25421 if test -f "$dir/lib$name.la"; then
25422 found_la
="$dir/lib$name.la"
25428 if test "X$found_dir" != "X"; then
25433 if test "X$found_dir" != "X"; then
25434 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
25435 if test "X$found_so" != "X"; then
25436 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
25437 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
25440 for x
in $ltrpathdirs; do
25441 if test "X$x" = "X$found_dir"; then
25446 if test -z "$haveit"; then
25447 ltrpathdirs
="$ltrpathdirs $found_dir"
25449 if test "$hardcode_direct" = yes; then
25450 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
25452 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
25453 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
25455 for x
in $rpathdirs; do
25456 if test "X$x" = "X$found_dir"; then
25461 if test -z "$haveit"; then
25462 rpathdirs
="$rpathdirs $found_dir"
25466 for x
in $LDFLAGS $LIBIPT; do
25468 acl_save_prefix
="$prefix"
25469 prefix
="$acl_final_prefix"
25470 acl_save_exec_prefix
="$exec_prefix"
25471 exec_prefix
="$acl_final_exec_prefix"
25473 exec_prefix
="$acl_save_exec_prefix"
25474 prefix
="$acl_save_prefix"
25476 if test "X$x" = "X-L$found_dir"; then
25481 if test -z "$haveit"; then
25482 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
25484 if test "$hardcode_minus_L" != no
; then
25485 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
25487 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
25493 if test "X$found_a" != "X"; then
25494 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
25496 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
25499 additional_includedir
=
25500 case "$found_dir" in
25502 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
25503 additional_includedir
="$basedir/include"
25506 if test "X$additional_includedir" != "X"; then
25507 if test "X$additional_includedir" != "X/usr/include"; then
25509 if test "X$additional_includedir" = "X/usr/local/include"; then
25510 if test -n "$GCC"; then
25512 linux
*) haveit
=yes;;
25516 if test -z "$haveit"; then
25517 for x
in $CPPFLAGS $INCIPT; do
25519 acl_save_prefix
="$prefix"
25520 prefix
="$acl_final_prefix"
25521 acl_save_exec_prefix
="$exec_prefix"
25522 exec_prefix
="$acl_final_exec_prefix"
25524 exec_prefix
="$acl_save_exec_prefix"
25525 prefix
="$acl_save_prefix"
25527 if test "X$x" = "X-I$additional_includedir"; then
25532 if test -z "$haveit"; then
25533 if test -d "$additional_includedir"; then
25534 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
25540 if test -n "$found_la"; then
25541 save_libdir
="$libdir"
25542 case "$found_la" in
25543 */* |
*\\*) .
"$found_la" ;;
25544 *) .
"./$found_la" ;;
25546 libdir
="$save_libdir"
25547 for dep
in $dependency_libs; do
25550 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
25551 if test "X$additional_libdir" != "X/usr/lib"; then
25553 if test "X$additional_libdir" = "X/usr/local/lib"; then
25554 if test -n "$GCC"; then
25556 linux
*) haveit
=yes;;
25560 if test -z "$haveit"; then
25562 for x
in $LDFLAGS $LIBIPT; do
25564 acl_save_prefix
="$prefix"
25565 prefix
="$acl_final_prefix"
25566 acl_save_exec_prefix
="$exec_prefix"
25567 exec_prefix
="$acl_final_exec_prefix"
25569 exec_prefix
="$acl_save_exec_prefix"
25570 prefix
="$acl_save_prefix"
25572 if test "X$x" = "X-L$additional_libdir"; then
25577 if test -z "$haveit"; then
25578 if test -d "$additional_libdir"; then
25579 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
25583 for x
in $LDFLAGS $LTLIBIPT; do
25585 acl_save_prefix
="$prefix"
25586 prefix
="$acl_final_prefix"
25587 acl_save_exec_prefix
="$exec_prefix"
25588 exec_prefix
="$acl_final_exec_prefix"
25590 exec_prefix
="$acl_save_exec_prefix"
25591 prefix
="$acl_save_prefix"
25593 if test "X$x" = "X-L$additional_libdir"; then
25598 if test -z "$haveit"; then
25599 if test -d "$additional_libdir"; then
25600 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
25607 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
25608 if test "$enable_rpath" != no
; then
25610 for x
in $rpathdirs; do
25611 if test "X$x" = "X$dir"; then
25616 if test -z "$haveit"; then
25617 rpathdirs
="$rpathdirs $dir"
25620 for x
in $ltrpathdirs; do
25621 if test "X$x" = "X$dir"; then
25626 if test -z "$haveit"; then
25627 ltrpathdirs
="$ltrpathdirs $dir"
25632 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25635 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25638 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
25639 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
25645 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
25646 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
25647 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
25649 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
25650 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
25657 if test "X$rpathdirs" != "X"; then
25658 if test -n "$hardcode_libdir_separator"; then
25660 for found_dir
in $rpathdirs; do
25661 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25663 acl_save_libdir
="$libdir"
25665 eval flag
=\"$hardcode_libdir_flag_spec\"
25666 libdir
="$acl_save_libdir"
25667 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
25669 for found_dir
in $rpathdirs; do
25670 acl_save_libdir
="$libdir"
25671 libdir
="$found_dir"
25672 eval flag
=\"$hardcode_libdir_flag_spec\"
25673 libdir
="$acl_save_libdir"
25674 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
25678 if test "X$ltrpathdirs" != "X"; then
25679 for found_dir
in $ltrpathdirs; do
25680 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
25685 ac_save_CPPFLAGS
="$CPPFLAGS"
25687 for element
in $INCIPT; do
25689 for x
in $CPPFLAGS; do
25691 acl_save_prefix
="$prefix"
25692 prefix
="$acl_final_prefix"
25693 acl_save_exec_prefix
="$exec_prefix"
25694 exec_prefix
="$acl_final_exec_prefix"
25696 exec_prefix
="$acl_save_exec_prefix"
25697 prefix
="$acl_save_prefix"
25699 if test "X$x" = "X$element"; then
25704 if test -z "$haveit"; then
25705 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
25711 $as_echo_n "checking for libipt... " >&6; }
25712 if ${ac_cv_libipt+:} false
; then :
25713 $as_echo_n "(cached) " >&6
25716 ac_save_LIBS
="$LIBS"
25717 LIBS
="$LIBS $LIBIPT"
25718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25719 /* end confdefs.h. */
25720 #include "intel-pt.h"
25724 pt_insn_alloc_decoder (0);
25729 if ac_fn_c_try_link
"$LINENO"; then :
25734 rm -f core conftest.err conftest.
$ac_objext \
25735 conftest
$ac_exeext conftest.
$ac_ext
25736 LIBS
="$ac_save_LIBS"
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
25740 $as_echo "$ac_cv_libipt" >&6; }
25741 if test "$ac_cv_libipt" = yes; then
25744 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
25747 $as_echo_n "checking how to link with libipt... " >&6; }
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
25749 $as_echo "$LIBIPT" >&6; }
25752 CPPFLAGS
="$ac_save_CPPFLAGS"
25762 if test "$HAVE_LIBIPT" != yes; then
25763 if test "$with_intel_pt" = yes; then
25764 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
25767 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
25771 LIBS
="$LIBS $LIBIPT"
25772 for ac_func
in pt_insn_event
25774 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
25775 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
25776 cat >>confdefs.h
<<_ACEOF
25777 #define HAVE_PT_INSN_EVENT 1
25783 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
25785 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
25787 cat >>confdefs.h
<<_ACEOF
25788 #define HAVE_STRUCT_PT_INSN_ENABLED 1
25793 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
25795 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
25797 cat >>confdefs.h
<<_ACEOF
25798 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
25808 # Check if the compiler and runtime support printing long longs.
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
25811 $as_echo_n "checking for long long support in printf... " >&6; }
25812 if ${gdb_cv_printf_has_long_long+:} false
; then :
25813 $as_echo_n "(cached) " >&6
25815 if test "$cross_compiling" = yes; then :
25816 gdb_cv_printf_has_long_long
=no
25818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25819 /* end confdefs.h. */
25820 $ac_includes_default
25826 l = (l << 16) + 0x0123;
25827 l = (l << 16) + 0x4567;
25828 l = (l << 16) + 0x89ab;
25829 l = (l << 16) + 0xcdef;
25830 sprintf (buf, "0x%016llx", l);
25831 return (strcmp ("0x0123456789abcdef", buf));
25836 if ac_fn_c_try_run
"$LINENO"; then :
25837 gdb_cv_printf_has_long_long
=yes
25839 gdb_cv_printf_has_long_long
=no
25841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25842 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
25847 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
25848 if test "$gdb_cv_printf_has_long_long" = yes; then
25850 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
25855 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
25857 for ac_header
in sys
/procfs.h
25859 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
25860 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
25861 cat >>confdefs.h
<<_ACEOF
25862 #define HAVE_SYS_PROCFS_H 1
25869 if test "$ac_cv_header_sys_procfs_h" = yes; then
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
25872 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
25873 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
25874 $as_echo_n "(cached) " >&6
25876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25877 /* end confdefs.h. */
25880 #include <sys/procfs.h>
25889 if ac_fn_c_try_compile
"$LINENO"; then :
25890 bfd_cv_have_sys_procfs_type_gregset_t
=yes
25892 bfd_cv_have_sys_procfs_type_gregset_t
=no
25895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25898 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
25900 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
25904 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
25908 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
25909 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
25910 $as_echo_n "(cached) " >&6
25912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25913 /* end confdefs.h. */
25916 #include <sys/procfs.h>
25925 if ac_fn_c_try_compile
"$LINENO"; then :
25926 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
25928 bfd_cv_have_sys_procfs_type_fpregset_t
=no
25931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25934 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
25936 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
25940 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
25944 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
25945 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
25946 $as_echo_n "(cached) " >&6
25948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25949 /* end confdefs.h. */
25952 #include <sys/procfs.h>
25961 if ac_fn_c_try_compile
"$LINENO"; then :
25962 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
25964 bfd_cv_have_sys_procfs_type_prgregset_t
=no
25967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25970 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
25972 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
25976 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
25980 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
25981 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
25982 $as_echo_n "(cached) " >&6
25984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25985 /* end confdefs.h. */
25988 #include <sys/procfs.h>
25997 if ac_fn_c_try_compile
"$LINENO"; then :
25998 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
26000 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
26003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26006 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
26008 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
26012 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
26016 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
26017 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
26018 $as_echo_n "(cached) " >&6
26020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26021 /* end confdefs.h. */
26024 #include <sys/procfs.h>
26033 if ac_fn_c_try_compile
"$LINENO"; then :
26034 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
26036 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
26039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26042 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
26044 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
26048 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
26052 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
26053 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
26054 $as_echo_n "(cached) " >&6
26056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26057 /* end confdefs.h. */
26060 #include <sys/procfs.h>
26069 if ac_fn_c_try_compile
"$LINENO"; then :
26070 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
26072 bfd_cv_have_sys_procfs_type_lwpid_t
=no
26075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26078 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
26080 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
26084 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
26088 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
26089 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
26090 $as_echo_n "(cached) " >&6
26092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26093 /* end confdefs.h. */
26096 #include <sys/procfs.h>
26105 if ac_fn_c_try_compile
"$LINENO"; then :
26106 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
26108 bfd_cv_have_sys_procfs_type_psaddr_t
=no
26111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26114 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
26116 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
26120 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
26124 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
26125 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
26126 $as_echo_n "(cached) " >&6
26128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26129 /* end confdefs.h. */
26132 #include <sys/procfs.h>
26136 elf_fpregset_t avar
26141 if ac_fn_c_try_compile
"$LINENO"; then :
26142 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
26144 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
26147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26150 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
26152 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
26156 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
26162 # Check whether --with-xxhash was given.
26163 if test "${with_xxhash+set}" = set; then :
26164 withval
=$with_xxhash;
26170 if test "x$with_xxhash" != "xno"; then
26181 acl_save_prefix
="$prefix"
26182 prefix
="$acl_final_prefix"
26183 acl_save_exec_prefix
="$exec_prefix"
26184 exec_prefix
="$acl_final_exec_prefix"
26186 eval additional_includedir
=\"$includedir\"
26187 eval additional_libdir
=\"$libdir\"
26189 exec_prefix
="$acl_save_exec_prefix"
26190 prefix
="$acl_save_prefix"
26193 # Check whether --with-libxxhash-prefix was given.
26194 if test "${with_libxxhash_prefix+set}" = set; then :
26195 withval
=$with_libxxhash_prefix;
26196 if test "X$withval" = "Xno"; then
26199 if test "X$withval" = "X"; then
26201 acl_save_prefix
="$prefix"
26202 prefix
="$acl_final_prefix"
26203 acl_save_exec_prefix
="$exec_prefix"
26204 exec_prefix
="$acl_final_exec_prefix"
26206 eval additional_includedir
=\"$includedir\"
26207 eval additional_libdir
=\"$libdir\"
26209 exec_prefix
="$acl_save_exec_prefix"
26210 prefix
="$acl_save_prefix"
26213 additional_includedir
="$withval/include"
26214 additional_libdir
="$withval/lib"
26221 # Check whether --with-libxxhash-type was given.
26222 if test "${with_libxxhash_type+set}" = set; then :
26223 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
26225 with_libxxhash_type
=auto
26228 lib_type
=`eval echo \$with_libxxhash_type`
26235 names_already_handled
=
26236 names_next_round
='xxhash '
26237 while test -n "$names_next_round"; do
26238 names_this_round
="$names_next_round"
26240 for name
in $names_this_round; do
26242 for n
in $names_already_handled; do
26243 if test "$n" = "$name"; then
26244 already_handled
=yes
26248 if test -z "$already_handled"; then
26249 names_already_handled
="$names_already_handled $name"
26250 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26251 eval value
=\"\
$HAVE_LIB$uppername\"
26252 if test -n "$value"; then
26253 if test "$value" = yes; then
26254 eval value
=\"\
$LIB$uppername\"
26255 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
26256 eval value
=\"\
$LTLIB$uppername\"
26257 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
26266 if test $use_additional = yes; then
26267 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
26268 found_dir
="$additional_libdir"
26269 found_so
="$additional_libdir/lib$name.$shlibext"
26270 if test -f "$additional_libdir/lib$name.la"; then
26271 found_la
="$additional_libdir/lib$name.la"
26273 elif test x
$lib_type != xshared
; then
26274 if test -f "$additional_libdir/lib$name.$libext"; then
26275 found_dir
="$additional_libdir"
26276 found_a
="$additional_libdir/lib$name.$libext"
26277 if test -f "$additional_libdir/lib$name.la"; then
26278 found_la
="$additional_libdir/lib$name.la"
26283 if test "X$found_dir" = "X"; then
26284 for x
in $LDFLAGS $LTLIBXXHASH; do
26286 acl_save_prefix
="$prefix"
26287 prefix
="$acl_final_prefix"
26288 acl_save_exec_prefix
="$exec_prefix"
26289 exec_prefix
="$acl_final_exec_prefix"
26291 exec_prefix
="$acl_save_exec_prefix"
26292 prefix
="$acl_save_prefix"
26296 dir
=`echo "X$x" | sed -e 's/^X-L//'`
26297 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
26299 found_so
="$dir/lib$name.$shlibext"
26300 if test -f "$dir/lib$name.la"; then
26301 found_la
="$dir/lib$name.la"
26303 elif test x
$lib_type != xshared
; then
26304 if test -f "$dir/lib$name.$libext"; then
26306 found_a
="$dir/lib$name.$libext"
26307 if test -f "$dir/lib$name.la"; then
26308 found_la
="$dir/lib$name.la"
26314 if test "X$found_dir" != "X"; then
26319 if test "X$found_dir" != "X"; then
26320 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
26321 if test "X$found_so" != "X"; then
26322 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
26323 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
26326 for x
in $ltrpathdirs; do
26327 if test "X$x" = "X$found_dir"; then
26332 if test -z "$haveit"; then
26333 ltrpathdirs
="$ltrpathdirs $found_dir"
26335 if test "$hardcode_direct" = yes; then
26336 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
26338 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
26339 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
26341 for x
in $rpathdirs; do
26342 if test "X$x" = "X$found_dir"; then
26347 if test -z "$haveit"; then
26348 rpathdirs
="$rpathdirs $found_dir"
26352 for x
in $LDFLAGS $LIBXXHASH; do
26354 acl_save_prefix
="$prefix"
26355 prefix
="$acl_final_prefix"
26356 acl_save_exec_prefix
="$exec_prefix"
26357 exec_prefix
="$acl_final_exec_prefix"
26359 exec_prefix
="$acl_save_exec_prefix"
26360 prefix
="$acl_save_prefix"
26362 if test "X$x" = "X-L$found_dir"; then
26367 if test -z "$haveit"; then
26368 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
26370 if test "$hardcode_minus_L" != no
; then
26371 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
26373 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
26379 if test "X$found_a" != "X"; then
26380 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
26382 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
26385 additional_includedir
=
26386 case "$found_dir" in
26388 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26389 additional_includedir
="$basedir/include"
26392 if test "X$additional_includedir" != "X"; then
26393 if test "X$additional_includedir" != "X/usr/include"; then
26395 if test "X$additional_includedir" = "X/usr/local/include"; then
26396 if test -n "$GCC"; then
26398 linux
*) haveit
=yes;;
26402 if test -z "$haveit"; then
26403 for x
in $CPPFLAGS $INCXXHASH; do
26405 acl_save_prefix
="$prefix"
26406 prefix
="$acl_final_prefix"
26407 acl_save_exec_prefix
="$exec_prefix"
26408 exec_prefix
="$acl_final_exec_prefix"
26410 exec_prefix
="$acl_save_exec_prefix"
26411 prefix
="$acl_save_prefix"
26413 if test "X$x" = "X-I$additional_includedir"; then
26418 if test -z "$haveit"; then
26419 if test -d "$additional_includedir"; then
26420 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
26426 if test -n "$found_la"; then
26427 save_libdir
="$libdir"
26428 case "$found_la" in
26429 */* |
*\\*) .
"$found_la" ;;
26430 *) .
"./$found_la" ;;
26432 libdir
="$save_libdir"
26433 for dep
in $dependency_libs; do
26436 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
26437 if test "X$additional_libdir" != "X/usr/lib"; then
26439 if test "X$additional_libdir" = "X/usr/local/lib"; then
26440 if test -n "$GCC"; then
26442 linux
*) haveit
=yes;;
26446 if test -z "$haveit"; then
26448 for x
in $LDFLAGS $LIBXXHASH; do
26450 acl_save_prefix
="$prefix"
26451 prefix
="$acl_final_prefix"
26452 acl_save_exec_prefix
="$exec_prefix"
26453 exec_prefix
="$acl_final_exec_prefix"
26455 exec_prefix
="$acl_save_exec_prefix"
26456 prefix
="$acl_save_prefix"
26458 if test "X$x" = "X-L$additional_libdir"; then
26463 if test -z "$haveit"; then
26464 if test -d "$additional_libdir"; then
26465 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
26469 for x
in $LDFLAGS $LTLIBXXHASH; do
26471 acl_save_prefix
="$prefix"
26472 prefix
="$acl_final_prefix"
26473 acl_save_exec_prefix
="$exec_prefix"
26474 exec_prefix
="$acl_final_exec_prefix"
26476 exec_prefix
="$acl_save_exec_prefix"
26477 prefix
="$acl_save_prefix"
26479 if test "X$x" = "X-L$additional_libdir"; then
26484 if test -z "$haveit"; then
26485 if test -d "$additional_libdir"; then
26486 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
26493 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
26494 if test "$enable_rpath" != no
; then
26496 for x
in $rpathdirs; do
26497 if test "X$x" = "X$dir"; then
26502 if test -z "$haveit"; then
26503 rpathdirs
="$rpathdirs $dir"
26506 for x
in $ltrpathdirs; do
26507 if test "X$x" = "X$dir"; then
26512 if test -z "$haveit"; then
26513 ltrpathdirs
="$ltrpathdirs $dir"
26518 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26521 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26524 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
26525 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
26531 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
26532 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
26533 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
26535 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
26536 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
26543 if test "X$rpathdirs" != "X"; then
26544 if test -n "$hardcode_libdir_separator"; then
26546 for found_dir
in $rpathdirs; do
26547 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26549 acl_save_libdir
="$libdir"
26551 eval flag
=\"$hardcode_libdir_flag_spec\"
26552 libdir
="$acl_save_libdir"
26553 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
26555 for found_dir
in $rpathdirs; do
26556 acl_save_libdir
="$libdir"
26557 libdir
="$found_dir"
26558 eval flag
=\"$hardcode_libdir_flag_spec\"
26559 libdir
="$acl_save_libdir"
26560 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
26564 if test "X$ltrpathdirs" != "X"; then
26565 for found_dir
in $ltrpathdirs; do
26566 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
26571 ac_save_CPPFLAGS
="$CPPFLAGS"
26573 for element
in $INCXXHASH; do
26575 for x
in $CPPFLAGS; do
26577 acl_save_prefix
="$prefix"
26578 prefix
="$acl_final_prefix"
26579 acl_save_exec_prefix
="$exec_prefix"
26580 exec_prefix
="$acl_final_exec_prefix"
26582 exec_prefix
="$acl_save_exec_prefix"
26583 prefix
="$acl_save_prefix"
26585 if test "X$x" = "X$element"; then
26590 if test -z "$haveit"; then
26591 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
26597 $as_echo_n "checking for libxxhash... " >&6; }
26598 if ${ac_cv_libxxhash+:} false
; then :
26599 $as_echo_n "(cached) " >&6
26602 ac_save_LIBS
="$LIBS"
26603 LIBS
="$LIBS $LIBXXHASH"
26604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26605 /* end confdefs.h. */
26606 #include <xxhash.h>
26610 XXH32("foo", 3, 0);
26616 if ac_fn_c_try_link
"$LINENO"; then :
26617 ac_cv_libxxhash
=yes
26621 rm -f core conftest.err conftest.
$ac_objext \
26622 conftest
$ac_exeext conftest.
$ac_ext
26623 LIBS
="$ac_save_LIBS"
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
26627 $as_echo "$ac_cv_libxxhash" >&6; }
26628 if test "$ac_cv_libxxhash" = yes; then
26631 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
26634 $as_echo_n "checking how to link with libxxhash... " >&6; }
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
26636 $as_echo "$LIBXXHASH" >&6; }
26639 CPPFLAGS
="$ac_save_CPPFLAGS"
26649 if test "$HAVE_LIBXXHASH" != yes; then
26650 if test "$with_xxhash" = yes; then
26651 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
26654 if test "x$with_xxhash" = "xauto"; then
26655 with_xxhash
="$HAVE_LIBXXHASH"
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
26660 $as_echo_n "checking whether to use xxhash... " >&6; }
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
26662 $as_echo "$with_xxhash" >&6; }
26665 # Check the return and argument types of ptrace.
26668 for ac_header
in sys
/ptrace.h ptrace.h
26670 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26671 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26672 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
26673 cat >>confdefs.h
<<_ACEOF
26674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26682 gdb_ptrace_headers
='
26683 #include <sys/types.h>
26684 #if HAVE_SYS_PTRACE_H
26685 # include <sys/ptrace.h>
26688 # include <unistd.h>
26692 # Check return type. Varargs (used on GNU/Linux) conflict with the
26693 # empty argument list, so check for that explicitly.
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
26695 $as_echo_n "checking return type of ptrace... " >&6; }
26696 if ${gdb_cv_func_ptrace_ret+:} false
; then :
26697 $as_echo_n "(cached) " >&6
26699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26700 /* end confdefs.h. */
26701 Â $gdb_ptrace_headers
26705 extern long ptrace (enum __ptrace_request, ...);
26711 if ac_fn_c_try_compile
"$LINENO"; then :
26712 gdb_cv_func_ptrace_ret
='long'
26714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26715 /* end confdefs.h. */
26716 $gdb_ptrace_headers
26720 extern int ptrace ();
26726 if ac_fn_c_try_compile
"$LINENO"; then :
26727 gdb_cv_func_ptrace_ret
='int'
26729 gdb_cv_func_ptrace_ret
='long'
26732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
26739 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
26742 cat >>confdefs.h
<<_ACEOF
26743 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
26747 # Check argument types.
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
26749 $as_echo_n "checking types of arguments for ptrace... " >&6; }
26750 if ${gdb_cv_func_ptrace_args+:} false
; then :
26751 $as_echo_n "(cached) " >&6
26753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26754 /* end confdefs.h. */
26755 $gdb_ptrace_headers
26759 extern long ptrace (enum __ptrace_request, ...);
26765 if ac_fn_c_try_compile
"$LINENO"; then :
26766 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
26768 for gdb_arg1
in 'int' 'long'; do
26769 for gdb_arg2
in 'pid_t' 'int' 'long'; do
26770 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
26771 for gdb_arg4
in 'int' 'long' 'void *'; do
26772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26773 /* end confdefs.h. */
26774 $gdb_ptrace_headers
26778 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
26784 if ac_fn_c_try_compile
"$LINENO"; then :
26785 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
26789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26791 for gdb_arg5
in 'int *' 'int' 'long'; do
26792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26793 /* end confdefs.h. */
26794 $gdb_ptrace_headers
26798 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
26804 if ac_fn_c_try_compile
"$LINENO"; then :
26805 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
26809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26815 # Provide a safe default value.
26816 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
26819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
26823 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
26825 ac_save_IFS
=$IFS; IFS
=','
26826 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
26830 cat >>confdefs.h
<<_ACEOF
26831 #define PTRACE_TYPE_ARG1 $1
26835 cat >>confdefs.h
<<_ACEOF
26836 #define PTRACE_TYPE_ARG3 $3
26840 cat >>confdefs.h
<<_ACEOF
26841 #define PTRACE_TYPE_ARG4 $4
26844 if test -n "$5"; then
26846 cat >>confdefs.h
<<_ACEOF
26847 #define PTRACE_TYPE_ARG5 $5
26853 if test "$cross_compiling" = no
; then
26854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
26855 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
26856 if ${ac_cv_func_setpgrp_void+:} false
; then :
26857 $as_echo_n "(cached) " >&6
26859 if test "$cross_compiling" = yes; then :
26860 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
26862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26863 /* end confdefs.h. */
26864 $ac_includes_default
26868 /* If this system has a BSD-style setpgrp which takes arguments,
26869 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
26870 exit successfully. */
26871 return setpgrp (1,1) != -1;
26876 if ac_fn_c_try_run
"$LINENO"; then :
26877 ac_cv_func_setpgrp_void
=no
26879 ac_cv_func_setpgrp_void
=yes
26881 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26882 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
26887 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
26888 if test $ac_cv_func_setpgrp_void = yes; then
26890 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
26896 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
26897 if ${ac_cv_func_setpgrp_void+:} false
; then :
26898 $as_echo_n "(cached) " >&6
26900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26901 /* end confdefs.h. */
26902 #include <unistd.h>
26906 if (setpgrp(1,1) == -1)
26915 if ac_fn_c_try_compile
"$LINENO"; then :
26916 ac_cv_func_setpgrp_void
=no
26918 ac_cv_func_setpgrp_void
=yes
26921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
26925 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
26926 if test "$ac_cv_func_setpgrp_void" = yes; then
26927 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
26932 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
26933 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
26934 #include <sys/proc.h>
26937 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
26939 cat >>confdefs.h
<<_ACEOF
26940 #define HAVE_STRUCT_THREAD_TD_PCB 1
26947 # See if <sys/lwp.h> defines `struct lwp`.
26948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
26949 $as_echo_n "checking for struct lwp... " >&6; }
26950 if ${gdb_cv_struct_lwp+:} false
; then :
26951 $as_echo_n "(cached) " >&6
26953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26954 /* end confdefs.h. */
26955 #include <sys/param.h>
26957 #include <sys/lwp.h>
26967 if ac_fn_c_try_compile
"$LINENO"; then :
26968 gdb_cv_struct_lwp
=yes
26970 gdb_cv_struct_lwp
=no
26973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
26977 $as_echo "$gdb_cv_struct_lwp" >&6; }
26978 if test "$gdb_cv_struct_lwp" = yes; then
26980 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
26984 # See if <machine/reg.h> degines `struct reg'.
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
26986 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
26987 if ${gdb_cv_struct_reg+:} false
; then :
26988 $as_echo_n "(cached) " >&6
26990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26991 /* end confdefs.h. */
26992 #include <sys/types.h>
26993 #include <machine/reg.h>
27003 if ac_fn_c_try_compile
"$LINENO"; then :
27004 gdb_cv_struct_reg
=yes
27006 gdb_cv_struct_reg
=no
27009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
27013 $as_echo "$gdb_cv_struct_reg" >&6; }
27014 if test "$gdb_cv_struct_reg" = yes; then
27016 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
27020 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
27021 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
27022 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
27023 #include <machine/reg.h>
27025 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
27027 cat >>confdefs.h
<<_ACEOF
27028 #define HAVE_STRUCT_REG_R_FS 1
27033 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
27034 #include <machine/reg.h>
27036 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
27038 cat >>confdefs.h
<<_ACEOF
27039 #define HAVE_STRUCT_REG_R_GS 1
27046 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
27048 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
27049 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
27050 $as_echo_n "(cached) " >&6
27052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27053 /* end confdefs.h. */
27054 #include <sys/ptrace.h>
27063 if ac_fn_c_try_compile
"$LINENO"; then :
27064 gdb_cv_have_ptrace_getregs
=yes
27066 gdb_cv_have_ptrace_getregs
=no
27069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
27074 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
27075 if test "$gdb_cv_have_ptrace_getregs" = yes; then
27077 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
27081 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
27083 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
27084 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
27085 $as_echo_n "(cached) " >&6
27087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27088 /* end confdefs.h. */
27089 #include <sys/ptrace.h>
27098 if ac_fn_c_try_compile
"$LINENO"; then :
27099 gdb_cv_have_ptrace_getfpxregs
=yes
27101 gdb_cv_have_ptrace_getfpxregs
=no
27104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
27109 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
27110 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
27112 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
27116 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
27118 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
27119 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
27120 $as_echo_n "(cached) " >&6
27122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27123 /* end confdefs.h. */
27124 #include <sys/types.h>
27125 #include <sys/ptrace.h>
27135 if ac_fn_c_try_compile
"$LINENO"; then :
27136 gdb_cv_have_pt_getdbregs
=yes
27138 gdb_cv_have_pt_getdbregs
=no
27141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
27146 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
27147 if test "$gdb_cv_have_pt_getdbregs" = yes; then
27149 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
27153 # See if <sys/ptrace.h> supports LWP names on FreeBSD
27154 # Older FreeBSD versions don't have the pl_tdname member of
27155 # `struct ptrace_lwpinfo'.
27156 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
27158 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
27160 cat >>confdefs.h
<<_ACEOF
27161 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
27168 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
27169 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
27171 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>
27173 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
27175 cat >>confdefs.h
<<_ACEOF
27176 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
27183 # Check if the compiler supports the `long long' type.
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
27186 $as_echo_n "checking for long long support in compiler... " >&6; }
27187 if ${gdb_cv_c_long_long+:} false
; then :
27188 $as_echo_n "(cached) " >&6
27190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27191 /* end confdefs.h. */
27192 extern long long foo;
27196 switch (foo & 2) { case 0: return 1; }
27201 if ac_fn_c_try_compile
"$LINENO"; then :
27202 gdb_cv_c_long_long
=yes
27204 gdb_cv_c_long_long
=no
27206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
27209 $as_echo "$gdb_cv_c_long_long" >&6; }
27210 if test "$gdb_cv_c_long_long" != yes; then
27211 # libdecnumber requires long long.
27212 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
27215 # Check if the compiler and runtime support printing decfloats.
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
27218 $as_echo_n "checking for decfloat support in printf... " >&6; }
27219 if ${gdb_cv_printf_has_decfloat+:} false
; then :
27220 $as_echo_n "(cached) " >&6
27222 if test "$cross_compiling" = yes; then :
27223 gdb_cv_printf_has_decfloat
=no
27225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27226 /* end confdefs.h. */
27227 $ac_includes_default
27232 _Decimal32 d32 = 1.2345df;
27233 _Decimal64 d64 = 1.2345dd;
27234 _Decimal128 d128 = 1.2345dl;
27235 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
27236 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
27241 if ac_fn_c_try_run
"$LINENO"; then :
27242 gdb_cv_printf_has_decfloat
=yes
27244 gdb_cv_printf_has_decfloat
=no
27246 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27247 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
27252 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
27253 if test "$gdb_cv_printf_has_decfloat" = yes; then
27255 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
27259 # Check if the compiler supports the `long double' type. We can't use
27260 # AC_C_LONG_DOUBLE because that one does additional checks on the
27261 # constants defined in <float.h> that fail on some systems,
27262 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
27265 $as_echo_n "checking for long double support in compiler... " >&6; }
27266 if ${gdb_cv_c_long_double+:} false
; then :
27267 $as_echo_n "(cached) " >&6
27269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27270 /* end confdefs.h. */
27273 if ac_fn_c_try_compile
"$LINENO"; then :
27274 gdb_cv_c_long_double
=yes
27276 gdb_cv_c_long_double
=no
27278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
27281 $as_echo "$gdb_cv_c_long_double" >&6; }
27282 if test "$gdb_cv_c_long_double" = yes; then
27284 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
27288 # Check if the compiler and runtime support printing long doubles.
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
27291 $as_echo_n "checking for long double support in printf... " >&6; }
27292 if ${gdb_cv_printf_has_long_double+:} false
; then :
27293 $as_echo_n "(cached) " >&6
27295 if test "$cross_compiling" = yes; then :
27296 gdb_cv_printf_has_long_double
=no
27298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27299 /* end confdefs.h. */
27300 $ac_includes_default
27305 long double f = 3.141592653;
27306 sprintf (buf, "%Lg", f);
27307 return (strncmp ("3.14159", buf, 7));
27312 if ac_fn_c_try_run
"$LINENO"; then :
27313 gdb_cv_printf_has_long_double
=yes
27315 gdb_cv_printf_has_long_double
=no
27317 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27318 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
27323 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
27324 if test "$gdb_cv_printf_has_long_double" = yes; then
27326 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
27330 # Check if the compiler and runtime support scanning long doubles.
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
27333 $as_echo_n "checking for long double support in scanf... " >&6; }
27334 if ${gdb_cv_scanf_has_long_double+:} false
; then :
27335 $as_echo_n "(cached) " >&6
27337 if test "$cross_compiling" = yes; then :
27338 gdb_cv_scanf_has_long_double
=no
27340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27341 /* end confdefs.h. */
27346 char *buf = "3.141592653";
27348 sscanf (buf, "%Lg", &f);
27349 return !(f > 3.14159 && f < 3.14160);
27354 if ac_fn_c_try_run
"$LINENO"; then :
27355 gdb_cv_scanf_has_long_double
=yes
27357 gdb_cv_scanf_has_long_double
=no
27359 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27360 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
27365 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
27366 if test "$gdb_cv_scanf_has_long_double" = yes; then
27368 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
27375 $as_echo_n "checking for -bbigtoc option... " >&6; }
27376 if ${gdb_cv_bigtoc+:} false
; then :
27377 $as_echo_n "(cached) " >&6
27379 SAVE_LDFLAGS
=$LDFLAGS
27382 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
27383 *) gdb_cv_bigtoc
=-bbigtoc ;;
27386 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
27387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27388 /* end confdefs.h. */
27398 if ac_fn_c_try_link
"$LINENO"; then :
27404 rm -f core conftest.err conftest.
$ac_objext \
27405 conftest
$ac_exeext conftest.
$ac_ext
27406 LDFLAGS
="${SAVE_LDFLAGS}"
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
27410 $as_echo "$gdb_cv_bigtoc" >&6; }
27411 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
27415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
27416 $as_echo_n "checking for the dynamic export flag... " >&6; }
27418 if test "${gdb_native}" = yes; then
27419 # The dynamically loaded libthread_db needs access to symbols in the gdb
27420 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
27421 # may not be supported there.
27422 old_LDFLAGS
="$LDFLAGS"
27423 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
27424 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
27425 LDFLAGS
="$LDFLAGS $RDYNAMIC"
27426 if test "${have_libpython}" = no
; then
27427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27428 /* end confdefs.h. */
27438 if ac_fn_c_try_link
"$LINENO"; then :
27441 rm -f core conftest.err conftest.
$ac_objext \
27442 conftest
$ac_exeext conftest.
$ac_ext
27444 # Workaround http://bugs.python.org/issue4434 where static
27445 # libpythonX.Y.a would get its symbols required for
27446 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
27447 # Problem does not happen for the recommended libpythonX.Y.so linkage.
27449 # Note the workaround for Python
27450 # http://bugs.python.org/issue10112 earlier has removed
27451 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
27452 # here too, as otherwise it'd make this -Wl,--dynamic-list test
27454 old_CFLAGS
="$CFLAGS"
27455 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
27457 LIBS
="$LIBS $PYTHON_LIBS"
27458 old_CPPFLAGS
="$CPPFLAGS"
27459 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
27460 if test "$cross_compiling" = yes; then :
27463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27464 /* end confdefs.h. */
27465 #include "Python.h"
27471 err = PyRun_SimpleString ("import ctypes\n");
27473 return err == 0 ? 0 : 1;
27478 if ac_fn_c_try_run
"$LINENO"; then :
27481 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27482 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27486 CFLAGS
="$old_CFLAGS"
27487 CPPFLAGS
="$old_CPPFLAGS"
27489 LDFLAGS
="$old_LDFLAGS"
27491 if $dynamic_list; then
27492 found
="-Wl,--dynamic-list"
27493 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
27496 RDYNAMIC
="-rdynamic"
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
27500 $as_echo "$found" >&6; }
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
27503 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
27504 if ${gdb_cv_execinfo_backtrace+:} false
; then :
27505 $as_echo_n "(cached) " >&6
27507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27508 /* end confdefs.h. */
27510 #include <execinfo.h>
27518 f = backtrace (b, 2);
27519 backtrace_symbols_fd (b, f, 2);
27525 if ac_fn_c_try_link
"$LINENO"; then :
27526 gdb_cv_execinfo_backtrace
=yes
27528 gdb_cv_execinfo_backtrace
=no
27530 rm -f core conftest.err conftest.
$ac_objext \
27531 conftest
$ac_exeext conftest.
$ac_ext
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
27534 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
27535 if test "$gdb_cv_execinfo_backtrace" = yes; then
27537 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
27542 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
27546 $as_echo_n "checking for AiX thread debugging library... " >&6; }
27547 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
27548 $as_echo_n "(cached) " >&6
27550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27551 /* end confdefs.h. */
27552 #include <sys/pthdebug.h>
27556 #ifndef PTHDB_VERSION_3
27564 if ac_fn_c_try_compile
"$LINENO"; then :
27565 gdb_cv_have_aix_thread_debug
=yes
27567 gdb_cv_have_aix_thread_debug
=no
27570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
27575 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
27576 if test "$gdb_cv_have_aix_thread_debug" = yes; then
27577 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
27578 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
27579 LIBS
="$LIBS -lpthdebug"
27581 # Older versions of AIX do not provide the declaration for
27582 # the getthrds function (it appears that it was introduced
27584 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
27586 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
27592 cat >>confdefs.h
<<_ACEOF
27593 #define HAVE_DECL_GETTHRDS $ac_have_decl
27602 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
27604 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
27605 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
27606 $as_echo_n "(cached) " >&6
27608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27609 /* end confdefs.h. */
27610 #include <thread_db.h>
27614 int i = TD_NOTALLOC;
27620 if ac_fn_c_try_compile
"$LINENO"; then :
27621 gdb_cv_thread_db_h_has_td_notalloc
=yes
27623 gdb_cv_thread_db_h_has_td_notalloc
=no
27626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
27630 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
27633 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
27634 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
27635 $as_echo_n "(cached) " >&6
27637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27638 /* end confdefs.h. */
27639 #include <thread_db.h>
27643 int i = TD_VERSION;
27649 if ac_fn_c_try_compile
"$LINENO"; then :
27650 gdb_cv_thread_db_h_has_td_version
=yes
27652 gdb_cv_thread_db_h_has_td_version
=no
27655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
27659 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
27662 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
27663 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
27664 $as_echo_n "(cached) " >&6
27666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27667 /* end confdefs.h. */
27668 #include <thread_db.h>
27678 if ac_fn_c_try_compile
"$LINENO"; then :
27679 gdb_cv_thread_db_h_has_td_notls
=yes
27681 gdb_cv_thread_db_h_has_td_notls
=no
27684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
27688 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
27690 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
27692 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
27695 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
27697 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
27700 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
27702 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
27715 cat >>confdefs.h
<<_ACEOF
27716 #define GDBINIT "$gdbinit"
27721 cat >>confdefs.h
<<_ACEOF
27722 #define GDBEARLYINIT ".gdbearlyinit"
27727 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
27728 # except that the argument to --with-sysroot is optional.
27729 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
27730 if test "x$with_sysroot" = xyes
; then
27731 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
27734 # Check whether --with-sysroot was given.
27735 if test "${with_sysroot+set}" = set; then :
27736 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
27738 TARGET_SYSTEM_ROOT
=
27742 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
27743 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27744 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
27745 ac_define_dir
=`eval echo $ac_define_dir`
27747 cat >>confdefs.h
<<_ACEOF
27748 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
27754 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
27755 if test "x$prefix" = xNONE
; then
27756 test_prefix
=/usr
/local
27758 test_prefix
=$prefix
27761 test_prefix
=$exec_prefix
27764 case ${ac_define_dir} in
27765 "${test_prefix}"|
"${test_prefix}/"*|\
27766 '${exec_prefix}'|
'${exec_prefix}/'*)
27771 cat >>confdefs.h
<<_ACEOF
27772 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
27779 # Check whether --with-system-gdbinit was given.
27780 if test "${with_system_gdbinit+set}" = set; then :
27781 withval
=$with_system_gdbinit;
27782 SYSTEM_GDBINIT
=$withval
27788 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
27789 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27790 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
27791 ac_define_dir
=`eval echo $ac_define_dir`
27793 cat >>confdefs.h
<<_ACEOF
27794 #define SYSTEM_GDBINIT "$ac_define_dir"
27800 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
27801 if test "x$prefix" = xNONE
; then
27802 test_prefix
=/usr
/local
27804 test_prefix
=$prefix
27807 test_prefix
=$exec_prefix
27810 case ${ac_define_dir} in
27811 "${test_prefix}"|
"${test_prefix}/"*|\
27812 '${exec_prefix}'|
'${exec_prefix}/'*)
27817 cat >>confdefs.h
<<_ACEOF
27818 #define SYSTEM_GDBINIT_RELOCATABLE $value
27825 # Check whether --with-system-gdbinit-dir was given.
27826 if test "${with_system_gdbinit_dir+set}" = set; then :
27827 withval
=$with_system_gdbinit_dir;
27828 SYSTEM_GDBINIT_DIR
=$withval
27830 SYSTEM_GDBINIT_DIR
=
27834 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
27835 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27836 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
27837 ac_define_dir
=`eval echo $ac_define_dir`
27839 cat >>confdefs.h
<<_ACEOF
27840 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
27846 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
27847 if test "x$prefix" = xNONE
; then
27848 test_prefix
=/usr
/local
27850 test_prefix
=$prefix
27853 test_prefix
=$exec_prefix
27856 case ${ac_define_dir} in
27857 "${test_prefix}"|
"${test_prefix}/"*|\
27858 '${exec_prefix}'|
'${exec_prefix}/'*)
27863 cat >>confdefs.h
<<_ACEOF
27864 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
27873 $as_echo_n "checking the compiler type... " >&6; }
27874 if ${gdb_cv_compiler_type+:} false
; then :
27875 $as_echo_n "(cached) " >&6
27877 gdb_cv_compiler_type
=unknown
27878 if test "$gdb_cv_compiler_type" = unknown
; then
27879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27880 /* end confdefs.h. */
27886 #if !defined __GNUC__ || defined __clang__
27894 if ac_fn_c_try_compile
"$LINENO"; then :
27895 gdb_cv_compiler_type
=gcc
27897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27900 if test "$gdb_cv_compiler_type" = unknown
; then
27901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27902 /* end confdefs.h. */
27916 if ac_fn_c_try_compile
"$LINENO"; then :
27917 gdb_cv_compiler_type
=clang
27919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
27924 $as_echo "$gdb_cv_compiler_type" >&6; }
27926 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
27929 # Check whether --enable-werror was given.
27930 if test "${enable_werror+set}" = set; then :
27931 enableval
=$enable_werror; case "${enableval}" in
27932 yes | y
) ERROR_ON_WARNING
="yes" ;;
27933 no | n
) ERROR_ON_WARNING
="no" ;;
27934 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
27939 # Enable -Werror by default when using gcc. Turn it off for releases.
27940 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
27941 ERROR_ON_WARNING
=yes
27945 if test "${ERROR_ON_WARNING}" = yes ; then
27946 WERROR_CFLAGS
="-Werror"
27949 # The options we'll try to enable.
27950 build_warnings
="-Wall -Wpointer-arith \
27951 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
27952 -Wno-switch -Wno-char-subscripts \
27953 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
27954 -Wno-sign-compare -Wno-error=maybe-uninitialized \
27955 -Wno-mismatched-tags \
27956 -Wno-error=deprecated-register \
27957 -Wsuggest-override \
27958 -Wimplicit-fallthrough=3 \
27959 -Wduplicated-cond \
27961 -Wdeprecated-copy \
27962 -Wdeprecated-copy-dtor \
27964 -Wmissing-declarations \
27965 -Wstrict-null-sentinel \
27968 # The -Wmissing-prototypes flag will be accepted by GCC, but results
27969 # in a warning being printed about the flag not being valid for C++,
27970 # this is something to do with using ccache, and argument ordering.
27971 if test "$GDB_COMPILER_TYPE" != gcc
; then
27972 build_warnings
="$build_warnings -Wmissing-prototypes"
27977 # Enable -Wno-format by default when using gcc on mingw since many
27978 # GCC versions complain about %I64.
27979 build_warnings
="$build_warnings -Wno-format" ;;
27981 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
27982 # doesn't understand.
27983 build_warnings
="$build_warnings -Wno-unknown-pragmas"
27984 # Solaris 11 <unistd.h> marks vfork deprecated.
27985 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
27987 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
27988 # but there's a special case for this below.
27989 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
27992 # Check whether --enable-build-warnings was given.
27993 if test "${enable_build_warnings+set}" = set; then :
27994 enableval
=$enable_build_warnings; case "${enableval}" in
27996 no
) build_warnings
="-w";;
27997 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
27998 build_warnings
="${build_warnings} ${t}";;
27999 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
28000 build_warnings
="${t} ${build_warnings}";;
28001 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
28003 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
28004 echo "Setting compiler warning flags = $build_warnings" 6>&1
28007 # Check whether --enable-gdb-build-warnings was given.
28008 if test "${enable_gdb_build_warnings+set}" = set; then :
28009 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
28011 no
) build_warnings
="-w";;
28012 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
28013 build_warnings
="${build_warnings} ${t}";;
28014 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
28015 build_warnings
="${t} ${build_warnings}";;
28016 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
28018 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
28019 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
28023 # The set of warnings supported by a C++ compiler is not the same as
28024 # of the C compiler.
28026 ac_cpp
='$CXXCPP $CPPFLAGS'
28027 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28028 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28029 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
28033 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
28036 $as_echo_n "checking compiler warning flags... " >&6; }
28037 # Separate out the -Werror flag as some files just cannot be
28038 # compiled with it enabled.
28039 for w
in ${build_warnings}; do
28040 # GCC does not complain about -Wno-unknown-warning. Invert
28041 # and test -Wunknown-warning instead.
28044 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
28045 -Wformat-nonliteral)
28046 # gcc requires -Wformat before -Wformat-nonliteral
28047 # will work, so stick them together.
28056 -Werr*) WERROR_CFLAGS
=-Werror ;;
28058 # Check whether GCC accepts it.
28059 saved_CFLAGS
="$CFLAGS"
28060 CFLAGS
="$CFLAGS -Werror $wtest"
28061 saved_CXXFLAGS
="$CXXFLAGS"
28062 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
28063 if test "x$w" = "x-Wunused-variable"; then
28064 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
28065 # fixed in GCC 4.9. This test is derived from the gdb
28066 # source code that triggered this bug in GCC.
28067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28068 /* end confdefs.h. */
28069 struct scoped_restore_base {};
28070 struct scoped_restore_tmpl : public scoped_restore_base {
28071 ~scoped_restore_tmpl() {}
28076 const scoped_restore_base &b = scoped_restore_tmpl();
28082 if ac_fn_cxx_try_compile
"$LINENO"; then :
28083 WARN_CFLAGS
="${WARN_CFLAGS} $w"
28085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28088 /* end confdefs.h. */
28098 if ac_fn_cxx_try_compile
"$LINENO"; then :
28099 WARN_CFLAGS
="${WARN_CFLAGS} $w"
28101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28103 CFLAGS
="$saved_CFLAGS"
28104 CXXFLAGS
="$saved_CXXFLAGS"
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
28108 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
28114 ac_cpp='$CPP $CPPFLAGS'
28115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28121 # Check whether --enable-ubsan was given.
28122 if test "${enable_ubsan+set}" = set; then :
28123 enableval=$enable_ubsan;
28128 if test "x
$enable_ubsan" = xauto; then
28129 if $development; then
28134 ac_cpp='$CXXCPP $CPPFLAGS'
28135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28139 if test "x
$enable_ubsan" = xyes; then
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
28141 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
28142 saved_CXXFLAGS="$CXXFLAGS"
28143 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
28144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28145 /* end confdefs.h. */
28155 if ac_fn_cxx_try_link "$LINENO"; then :
28161 rm -f core conftest.err conftest.$ac_objext \
28162 conftest$ac_exeext conftest.$ac_ext
28163 CXXFLAGS="$saved_CXXFLAGS"
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
28165 $as_echo "$enable_ubsan" >&6; }
28166 if test "x
$enable_ubsan" = xyes; then
28167 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
28168 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
28172 ac_cpp='$CPP $CPPFLAGS'
28173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28179 # In the Cygwin environment, we need some additional flags.
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
28181 $as_echo_n "checking
for cygwin...
" >&6; }
28182 if ${gdb_cv_os_cygwin+:} false; then :
28183 $as_echo_n "(cached
) " >&6
28185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28186 /* end confdefs.h. */
28188 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
28192 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
28193 $EGREP "^lose$
" >/dev/null 2>&1; then :
28194 gdb_cv_os_cygwin=yes
28196 gdb_cv_os_cygwin=no
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
28202 $as_echo "$gdb_cv_os_cygwin" >&6; }
28205 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
28207 *go32* ) SER_HARDWIRE=ser-go32.o ;;
28208 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
28209 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
28210 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
28214 # libreadline needs libuser32.a in a cygwin environment
28216 if test x"$gdb_cv_os_cygwin" = xyes; then
28217 WIN32LIBS="-luser32"
28218 case "${target}" in
28219 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
28224 # The ser-tcp.c module requires sockets.
28225 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
28226 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
28228 # Add ELF support to GDB, but only if BFD includes ELF support.
28231 OLD_LDFLAGS=$LDFLAGS
28234 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
28235 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
28236 # always want our bfd.
28237 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
28238 LDFLAGS="-L..
/bfd
-L..
/libiberty
"
28239 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
28240 LIBS="-lbfd -liberty $intl $LIBS"
28241 CC=".
/libtool
--quiet --mode=link
$CC"
28242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
28243 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
28244 if ${gdb_cv_var_elf+:} false; then :
28245 $as_echo_n "(cached
) " >&6
28247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28248 /* end confdefs.h. */
28249 #include <stdlib.h>
28250 #include <string.h>
28252 #include "elf-bfd.h
"
28256 return bfd_get_elf_phdr_upper_bound (NULL);
28262 if ac_fn_c_try_link "$LINENO"; then :
28268 rm -f core conftest.err conftest.$ac_objext \
28269 conftest$ac_exeext conftest.$ac_ext
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
28273 $as_echo "$gdb_cv_var_elf" >&6; }
28276 LDFLAGS=$OLD_LDFLAGS
28278 if test "$gdb_cv_var_elf" = yes; then
28279 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
28280 gcore-elf.o elf-none-tdep.o
"
28282 $as_echo "#define HAVE_ELF 1" >>confdefs.h
28284 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
28285 if test "$plugins" = "yes"; then
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28287 $as_echo_n "checking for library containing dlopen... " >&6; }
28288 if ${ac_cv_search_dlopen+:} false
; then :
28289 $as_echo_n "(cached) " >&6
28291 ac_func_search_save_LIBS
=$LIBS
28292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28293 /* end confdefs.h. */
28295 /* Override any GCC internal prototype to avoid an error.
28296 Use char because int might match the return type of a GCC
28297 builtin and then its argument prototype would still apply. */
28310 for ac_lib
in '' dl
; do
28311 if test -z "$ac_lib"; then
28312 ac_res
="none required"
28315 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28317 if ac_fn_c_try_link
"$LINENO"; then :
28318 ac_cv_search_dlopen
=$ac_res
28320 rm -f core conftest.err conftest.
$ac_objext \
28322 if ${ac_cv_search_dlopen+:} false
; then :
28326 if ${ac_cv_search_dlopen+:} false
; then :
28329 ac_cv_search_dlopen
=no
28331 rm conftest.
$ac_ext
28332 LIBS
=$ac_func_search_save_LIBS
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28335 $as_echo "$ac_cv_search_dlopen" >&6; }
28336 ac_res
=$ac_cv_search_dlopen
28337 if test "$ac_res" != no
; then :
28338 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28345 # Add macho support to GDB, but only if BFD includes it.
28348 OLD_LDFLAGS
=$LDFLAGS
28351 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
28352 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
28353 # always want our bfd.
28354 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
28355 LDFLAGS
="-L../bfd -L../libiberty"
28356 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
28357 LIBS
="-lbfd -liberty $intl $LIBS"
28358 CC
="./libtool --quiet --mode=link $CC"
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
28360 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
28361 if ${gdb_cv_var_macho+:} false
; then :
28362 $as_echo_n "(cached) " >&6
28364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28365 /* end confdefs.h. */
28366 #include <stdlib.h>
28367 #include <string.h>
28369 #include "mach-o.h"
28373 return bfd_mach_o_lookup_command (NULL, 0, NULL);
28379 if ac_fn_c_try_link
"$LINENO"; then :
28380 gdb_cv_var_macho
=yes
28382 gdb_cv_var_macho
=no
28385 rm -f core conftest.err conftest.
$ac_objext \
28386 conftest
$ac_exeext conftest.
$ac_ext
28389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
28390 $as_echo "$gdb_cv_var_macho" >&6; }
28393 LDFLAGS
=$OLD_LDFLAGS
28395 if test "$gdb_cv_var_macho" = yes; then
28396 CONFIG_OBS
="$CONFIG_OBS machoread.o"
28399 # Add any host-specific objects to GDB.
28400 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
28402 # If building on ELF, look for lzma support for embedded compressed debug info.
28403 if test "$gdb_cv_var_elf" = yes; then
28405 # Check whether --with-lzma was given.
28406 if test "${with_lzma+set}" = set; then :
28407 withval
=$with_lzma;
28412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
28413 $as_echo_n "checking whether to use lzma... " >&6; }
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
28415 $as_echo "$with_lzma" >&6; }
28417 if test "${with_lzma}" != no
; then
28428 acl_save_prefix
="$prefix"
28429 prefix
="$acl_final_prefix"
28430 acl_save_exec_prefix
="$exec_prefix"
28431 exec_prefix
="$acl_final_exec_prefix"
28433 eval additional_includedir
=\"$includedir\"
28434 eval additional_libdir
=\"$libdir\"
28436 exec_prefix
="$acl_save_exec_prefix"
28437 prefix
="$acl_save_prefix"
28440 # Check whether --with-liblzma-prefix was given.
28441 if test "${with_liblzma_prefix+set}" = set; then :
28442 withval
=$with_liblzma_prefix;
28443 if test "X$withval" = "Xno"; then
28446 if test "X$withval" = "X"; then
28448 acl_save_prefix
="$prefix"
28449 prefix
="$acl_final_prefix"
28450 acl_save_exec_prefix
="$exec_prefix"
28451 exec_prefix
="$acl_final_exec_prefix"
28453 eval additional_includedir
=\"$includedir\"
28454 eval additional_libdir
=\"$libdir\"
28456 exec_prefix
="$acl_save_exec_prefix"
28457 prefix
="$acl_save_prefix"
28460 additional_includedir
="$withval/include"
28461 additional_libdir
="$withval/lib"
28468 # Check whether --with-liblzma-type was given.
28469 if test "${with_liblzma_type+set}" = set; then :
28470 withval
=$with_liblzma_type; with_liblzma_type
=$withval
28472 with_liblzma_type
=auto
28475 lib_type
=`eval echo \$with_liblzma_type`
28482 names_already_handled
=
28483 names_next_round
='lzma '
28484 while test -n "$names_next_round"; do
28485 names_this_round
="$names_next_round"
28487 for name
in $names_this_round; do
28489 for n
in $names_already_handled; do
28490 if test "$n" = "$name"; then
28491 already_handled
=yes
28495 if test -z "$already_handled"; then
28496 names_already_handled
="$names_already_handled $name"
28497 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28498 eval value
=\"\
$HAVE_LIB$uppername\"
28499 if test -n "$value"; then
28500 if test "$value" = yes; then
28501 eval value
=\"\
$LIB$uppername\"
28502 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
28503 eval value
=\"\
$LTLIB$uppername\"
28504 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
28513 if test $use_additional = yes; then
28514 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
28515 found_dir
="$additional_libdir"
28516 found_so
="$additional_libdir/lib$name.$shlibext"
28517 if test -f "$additional_libdir/lib$name.la"; then
28518 found_la
="$additional_libdir/lib$name.la"
28520 elif test x
$lib_type != xshared
; then
28521 if test -f "$additional_libdir/lib$name.$libext"; then
28522 found_dir
="$additional_libdir"
28523 found_a
="$additional_libdir/lib$name.$libext"
28524 if test -f "$additional_libdir/lib$name.la"; then
28525 found_la
="$additional_libdir/lib$name.la"
28530 if test "X$found_dir" = "X"; then
28531 for x
in $LDFLAGS $LTLIBLZMA; do
28533 acl_save_prefix
="$prefix"
28534 prefix
="$acl_final_prefix"
28535 acl_save_exec_prefix
="$exec_prefix"
28536 exec_prefix
="$acl_final_exec_prefix"
28538 exec_prefix
="$acl_save_exec_prefix"
28539 prefix
="$acl_save_prefix"
28543 dir
=`echo "X$x" | sed -e 's/^X-L//'`
28544 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
28546 found_so
="$dir/lib$name.$shlibext"
28547 if test -f "$dir/lib$name.la"; then
28548 found_la
="$dir/lib$name.la"
28550 elif test x
$lib_type != xshared
; then
28551 if test -f "$dir/lib$name.$libext"; then
28553 found_a
="$dir/lib$name.$libext"
28554 if test -f "$dir/lib$name.la"; then
28555 found_la
="$dir/lib$name.la"
28561 if test "X$found_dir" != "X"; then
28566 if test "X$found_dir" != "X"; then
28567 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
28568 if test "X$found_so" != "X"; then
28569 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
28570 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
28573 for x
in $ltrpathdirs; do
28574 if test "X$x" = "X$found_dir"; then
28579 if test -z "$haveit"; then
28580 ltrpathdirs
="$ltrpathdirs $found_dir"
28582 if test "$hardcode_direct" = yes; then
28583 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
28585 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
28586 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
28588 for x
in $rpathdirs; do
28589 if test "X$x" = "X$found_dir"; then
28594 if test -z "$haveit"; then
28595 rpathdirs
="$rpathdirs $found_dir"
28599 for x
in $LDFLAGS $LIBLZMA; do
28601 acl_save_prefix
="$prefix"
28602 prefix
="$acl_final_prefix"
28603 acl_save_exec_prefix
="$exec_prefix"
28604 exec_prefix
="$acl_final_exec_prefix"
28606 exec_prefix
="$acl_save_exec_prefix"
28607 prefix
="$acl_save_prefix"
28609 if test "X$x" = "X-L$found_dir"; then
28614 if test -z "$haveit"; then
28615 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
28617 if test "$hardcode_minus_L" != no
; then
28618 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
28620 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
28626 if test "X$found_a" != "X"; then
28627 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
28629 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
28632 additional_includedir
=
28633 case "$found_dir" in
28635 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28636 additional_includedir
="$basedir/include"
28639 if test "X$additional_includedir" != "X"; then
28640 if test "X$additional_includedir" != "X/usr/include"; then
28642 if test "X$additional_includedir" = "X/usr/local/include"; then
28643 if test -n "$GCC"; then
28645 linux
*) haveit
=yes;;
28649 if test -z "$haveit"; then
28650 for x
in $CPPFLAGS $INCLZMA; do
28652 acl_save_prefix
="$prefix"
28653 prefix
="$acl_final_prefix"
28654 acl_save_exec_prefix
="$exec_prefix"
28655 exec_prefix
="$acl_final_exec_prefix"
28657 exec_prefix
="$acl_save_exec_prefix"
28658 prefix
="$acl_save_prefix"
28660 if test "X$x" = "X-I$additional_includedir"; then
28665 if test -z "$haveit"; then
28666 if test -d "$additional_includedir"; then
28667 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
28673 if test -n "$found_la"; then
28674 save_libdir
="$libdir"
28675 case "$found_la" in
28676 */* |
*\\*) .
"$found_la" ;;
28677 *) .
"./$found_la" ;;
28679 libdir
="$save_libdir"
28680 for dep
in $dependency_libs; do
28683 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
28684 if test "X$additional_libdir" != "X/usr/lib"; then
28686 if test "X$additional_libdir" = "X/usr/local/lib"; then
28687 if test -n "$GCC"; then
28689 linux
*) haveit
=yes;;
28693 if test -z "$haveit"; then
28695 for x
in $LDFLAGS $LIBLZMA; do
28697 acl_save_prefix
="$prefix"
28698 prefix
="$acl_final_prefix"
28699 acl_save_exec_prefix
="$exec_prefix"
28700 exec_prefix
="$acl_final_exec_prefix"
28702 exec_prefix
="$acl_save_exec_prefix"
28703 prefix
="$acl_save_prefix"
28705 if test "X$x" = "X-L$additional_libdir"; then
28710 if test -z "$haveit"; then
28711 if test -d "$additional_libdir"; then
28712 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
28716 for x
in $LDFLAGS $LTLIBLZMA; do
28718 acl_save_prefix
="$prefix"
28719 prefix
="$acl_final_prefix"
28720 acl_save_exec_prefix
="$exec_prefix"
28721 exec_prefix
="$acl_final_exec_prefix"
28723 exec_prefix
="$acl_save_exec_prefix"
28724 prefix
="$acl_save_prefix"
28726 if test "X$x" = "X-L$additional_libdir"; then
28731 if test -z "$haveit"; then
28732 if test -d "$additional_libdir"; then
28733 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
28740 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
28741 if test "$enable_rpath" != no
; then
28743 for x
in $rpathdirs; do
28744 if test "X$x" = "X$dir"; then
28749 if test -z "$haveit"; then
28750 rpathdirs
="$rpathdirs $dir"
28753 for x
in $ltrpathdirs; do
28754 if test "X$x" = "X$dir"; then
28759 if test -z "$haveit"; then
28760 ltrpathdirs
="$ltrpathdirs $dir"
28765 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28768 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28771 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
28772 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
28778 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
28779 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
28780 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
28782 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
28783 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
28790 if test "X$rpathdirs" != "X"; then
28791 if test -n "$hardcode_libdir_separator"; then
28793 for found_dir
in $rpathdirs; do
28794 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28796 acl_save_libdir
="$libdir"
28798 eval flag
=\"$hardcode_libdir_flag_spec\"
28799 libdir
="$acl_save_libdir"
28800 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
28802 for found_dir
in $rpathdirs; do
28803 acl_save_libdir
="$libdir"
28804 libdir
="$found_dir"
28805 eval flag
=\"$hardcode_libdir_flag_spec\"
28806 libdir
="$acl_save_libdir"
28807 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
28811 if test "X$ltrpathdirs" != "X"; then
28812 for found_dir
in $ltrpathdirs; do
28813 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
28818 ac_save_CPPFLAGS
="$CPPFLAGS"
28820 for element
in $INCLZMA; do
28822 for x
in $CPPFLAGS; do
28824 acl_save_prefix
="$prefix"
28825 prefix
="$acl_final_prefix"
28826 acl_save_exec_prefix
="$exec_prefix"
28827 exec_prefix
="$acl_final_exec_prefix"
28829 exec_prefix
="$acl_save_exec_prefix"
28830 prefix
="$acl_save_prefix"
28832 if test "X$x" = "X$element"; then
28837 if test -z "$haveit"; then
28838 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
28844 $as_echo_n "checking for liblzma... " >&6; }
28845 if ${ac_cv_liblzma+:} false
; then :
28846 $as_echo_n "(cached) " >&6
28849 ac_save_LIBS
="$LIBS"
28850 LIBS
="$LIBS $LIBLZMA"
28851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28852 /* end confdefs.h. */
28857 lzma_index_iter iter;
28858 lzma_index_iter_init (&iter, 0);
28859 lzma_mf_is_supported (LZMA_MF_HC3);
28864 if ac_fn_c_try_link
"$LINENO"; then :
28869 rm -f core conftest.err conftest.
$ac_objext \
28870 conftest
$ac_exeext conftest.
$ac_ext
28871 LIBS
="$ac_save_LIBS"
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
28875 $as_echo "$ac_cv_liblzma" >&6; }
28876 if test "$ac_cv_liblzma" = yes; then
28879 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
28881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
28882 $as_echo_n "checking how to link with liblzma... " >&6; }
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
28884 $as_echo "$LIBLZMA" >&6; }
28887 CPPFLAGS
="$ac_save_CPPFLAGS"
28897 if test "$HAVE_LIBLZMA" != yes; then
28898 if test "$with_lzma" = yes; then
28899 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
28905 LIBGUI
="../libgui/src/libgui.a"
28906 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
28915 *-*-cygwin* |
*-*-mingw* )
28924 if test "${enable_gdbtk}" = "yes"; then
28926 # Gdbtk must have an absolute path to srcdir in order to run
28927 # properly when not installed.
28930 GDBTK_SRC_DIR
=`pwd`
28935 # Ok, lets find the tcl configuration
28936 # First, look for one uninstalled.
28937 # the alternative search directory is invoked by --with-tcl
28940 if test x
"${no_tcl}" = x
; then
28941 # we reset no_tcl in case something fails here
28944 # Check whether --with-tcl was given.
28945 if test "${with_tcl+set}" = set; then :
28946 withval
=$with_tcl; with_tclconfig
=${withval}
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
28950 $as_echo_n "checking for Tcl configuration... " >&6; }
28951 if ${ac_cv_c_tclconfig+:} false
; then :
28952 $as_echo_n "(cached) " >&6
28956 # First check to see if --with-tcl was specified.
28958 *-*-cygwin*) platDir
="win" ;;
28959 *) platDir
="unix" ;;
28961 if test x
"${with_tclconfig}" != x
; then
28962 if test -f "${with_tclconfig}/tclConfig.sh" ; then
28963 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
28965 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
28969 # then check for a private Tcl installation
28970 if test x
"${ac_cv_c_tclconfig}" = x
; then
28973 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
28974 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
28975 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
28977 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
28978 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
28979 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
28981 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
28982 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
28983 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
28984 if test -f "$i/$platDir/tclConfig.sh" ; then
28985 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
28991 # on Darwin, check in Framework installation locations
28992 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
28993 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
28994 `ls -d /Library/Frameworks 2>/dev/null` \
28995 `ls -d /Network/Library/Frameworks 2>/dev/null` \
28996 `ls -d /System/Library/Frameworks 2>/dev/null` \
28998 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
28999 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
29005 # check in a few common install locations
29006 if test x
"${ac_cv_c_tclconfig}" = x
; then
29007 for i
in `ls -d ${libdir} 2>/dev/null` \
29008 `ls -d ${exec_prefix}/lib 2>/dev/null` \
29009 `ls -d ${prefix}/lib 2>/dev/null` \
29010 `ls -d /usr/local/lib 2>/dev/null` \
29011 `ls -d /usr/contrib/lib 2>/dev/null` \
29012 `ls -d /usr/lib 2>/dev/null` \
29014 if test -f "$i/tclConfig.sh" ; then
29015 ac_cv_c_tclconfig
=`(cd $i; pwd)`
29021 # check in a few other private locations
29022 if test x
"${ac_cv_c_tclconfig}" = x
; then
29025 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29026 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
29027 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
29028 if test -f "$i/$platDir/tclConfig.sh" ; then
29029 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
29038 if test x
"${ac_cv_c_tclconfig}" = x
; then
29039 TCL_BIN_DIR
="# no Tcl configs found"
29040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
29041 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
29044 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
29046 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29051 # If $no_tk is nonempty, then we can't do Tk, and there is no
29052 # point to doing Tcl.
29055 # Ok, lets find the tk configuration
29056 # First, look for one uninstalled.
29057 # the alternative search directory is invoked by --with-tk
29060 if test x
"${no_tk}" = x
; then
29061 # we reset no_tk in case something fails here
29064 # Check whether --with-tk was given.
29065 if test "${with_tk+set}" = set; then :
29066 withval
=$with_tk; with_tkconfig
=${withval}
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
29070 $as_echo_n "checking for Tk configuration... " >&6; }
29071 if ${ac_cv_c_tkconfig+:} false
; then :
29072 $as_echo_n "(cached) " >&6
29076 # First check to see if --with-tkconfig was specified.
29077 if test x
"${with_tkconfig}" != x
; then
29078 if test -f "${with_tkconfig}/tkConfig.sh" ; then
29079 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
29081 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
29085 # then check for a private Tk library
29087 *-*-cygwin*) platDir
="win" ;;
29088 *) platDir
="unix" ;;
29090 if test x
"${ac_cv_c_tkconfig}" = x
; then
29093 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29094 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
29095 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
29097 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29098 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
29099 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
29101 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29102 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
29103 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
29104 if test -f "$i/$platDir/tkConfig.sh" ; then
29105 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
29111 # on Darwin, check in Framework installation locations
29112 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
29113 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
29114 `ls -d /Library/Frameworks 2>/dev/null` \
29115 `ls -d /Network/Library/Frameworks 2>/dev/null` \
29116 `ls -d /System/Library/Frameworks 2>/dev/null` \
29118 if test -f "$i/Tk.framework/tkConfig.sh" ; then
29119 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
29125 # check in a few common install locations
29126 if test x
"${ac_cv_c_tkconfig}" = x
; then
29127 for i
in `ls -d ${libdir} 2>/dev/null` \
29128 `ls -d ${exec_prefix}/lib 2>/dev/null` \
29129 `ls -d ${prefix}/lib 2>/dev/null` \
29130 `ls -d /usr/local/lib 2>/dev/null` \
29131 `ls -d /usr/contrib/lib 2>/dev/null` \
29132 `ls -d /usr/lib 2>/dev/null` \
29134 if test -f "$i/tkConfig.sh" ; then
29135 ac_cv_c_tkconfig
=`(cd $i; pwd)`
29140 # check in a few other private locations
29141 if test x
"${ac_cv_c_tkconfig}" = x
; then
29144 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29145 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
29146 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
29147 if test -f "$i/$platDir/tkConfig.sh" ; then
29148 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
29157 if test x
"${ac_cv_c_tkconfig}" = x
; then
29158 TK_BIN_DIR
="# no Tk configs found"
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
29160 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
29163 TK_BIN_DIR
=${ac_cv_c_tkconfig}
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
29165 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
29170 if test -z "${no_tcl}" -a -z "${no_tk}"; then
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
29173 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
29175 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29177 $as_echo "loading" >&6; }
29178 .
${TCL_BIN_DIR}/tclConfig.sh
29180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
29181 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29184 # eval is required to do the TCL_DBGX substitution
29185 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
29186 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
29188 # If the TCL_BIN_DIR is the build directory (not the install directory),
29189 # then set the common variable name to the value of the build variables.
29190 # For example, the variable TCL_LIB_SPEC will be set to the value
29191 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
29192 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
29193 # installed and uninstalled version of Tcl.
29194 if test -f "${TCL_BIN_DIR}/Makefile" ; then
29195 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
29196 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
29197 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
29198 elif test "`uname -s`" = "Darwin"; then
29199 # If Tcl was built as a framework, attempt to use the libraries
29200 # from the framework at the given location so that linking works
29201 # against Tcl.framework installed in an arbitrary location.
29202 case ${TCL_DEFS} in
29204 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
29205 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
29206 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
29207 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
29208 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
29213 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
29214 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
29215 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
29221 # eval is required to do the TCL_DBGX substitution
29222 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
29223 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
29224 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
29225 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
29241 # Check for in-tree tcl
29248 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
29252 # Find Tcl private headers
29253 if test x
"${intree}" = xno
; then
29255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
29256 $as_echo_n "checking for Tcl private headers... " >&6; }
29258 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
29259 if test -f ${dir}/tclInt.h
; then
29263 if test x
"${private_dir}" = x
; then
29264 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
29266 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
29268 $as_echo "${private_dir}" >&6; }
29271 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
29272 TCL_LIBRARY
="${TCL_LIB_SPEC}"
29275 # If building tcl in the same src tree, private headers
29276 # are not needed, but we need to be sure to use the right
29278 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
29279 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
29280 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
29288 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
29290 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29292 $as_echo "loading" >&6; }
29293 .
${TK_BIN_DIR}/tkConfig.sh
29295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
29296 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
29299 # eval is required to do the TK_DBGX substitution
29300 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
29301 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
29303 # If the TK_BIN_DIR is the build directory (not the install directory),
29304 # then set the common variable name to the value of the build variables.
29305 # For example, the variable TK_LIB_SPEC will be set to the value
29306 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
29307 # instead of TK_BUILD_LIB_SPEC since it will work with both an
29308 # installed and uninstalled version of Tcl.
29309 if test -f "${TK_BIN_DIR}/Makefile" ; then
29310 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
29311 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
29312 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
29313 elif test "`uname -s`" = "Darwin"; then
29314 # If Tk was built as a framework, attempt to use the libraries
29315 # from the framework at the given location so that linking works
29316 # against Tk.framework installed in an arbitrary location.
29319 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
29320 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
29321 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
29322 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
29323 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
29328 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
29329 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
29330 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
29336 # eval is required to do the TK_DBGX substitution
29337 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
29338 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
29339 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
29340 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
29355 # Check for in-tree Tk
29357 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
29361 # Find Tk private headers
29362 if test x
"${intree}" = xno
; then
29364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
29365 $as_echo_n "checking for Tk private headers... " >&6; }
29367 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
29368 if test -f ${dir}/tkInt.h
; then
29372 if test x
"${private_dir}" = x
; then
29373 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
29375 TK_PRIVATE_INCLUDE
="-I${private_dir}"
29376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
29377 $as_echo "${private_dir}" >&6; }
29380 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
29381 TK_LIBRARY
=${TK_LIB_SPEC}
29384 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
29385 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
29386 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
29393 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
29395 # Include some libraries that Tcl and Tk want.
29396 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
29397 # Yes, the ordering seems wrong here. But it isn't.
29398 # TK_LIBS is the list of libraries that need to be linked
29399 # after Tcl/Tk. Note that this isn't put into LIBS. If it
29400 # were in LIBS then any link tests after this point would
29401 # try to include things like `$(LIBGUI)', which wouldn't work.
29402 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
29404 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
29405 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
29406 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
29407 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
29408 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
29409 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
29410 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
29412 if test x
"$gdb_cv_os_cygwin" = xyes
; then
29413 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
29414 WIN32LDAPP
="-Wl,--subsystem,console"
29415 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
29418 subdirs
="$subdirs gdbtk"
29430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
29431 $as_echo_n "checking for X... " >&6; }
29434 # Check whether --with-x was given.
29435 if test "${with_x+set}" = set; then :
29439 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29440 if test "x$with_x" = xno
; then
29441 # The user explicitly disabled X.
29444 case $x_includes,$x_libraries in #(
29445 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
29446 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
29447 $as_echo_n "(cached) " >&6
29449 # One or both of the vars are not set, and there is no cached value.
29450 ac_x_includes
=no ac_x_libraries
=no
29451 rm -f -r conftest.dir
29452 if mkdir conftest.dir
; then
29454 cat >Imakefile
<<'_ACEOF'
29456 @echo incroot='${INCROOT}'
29458 @echo usrlibdir='${USRLIBDIR}'
29460 @echo libdir='${LIBDIR}'
29462 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
29463 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29464 for ac_var
in incroot usrlibdir libdir
; do
29465 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29467 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29468 for ac_extension
in a so sl dylib la dll
; do
29469 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29470 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29471 ac_im_usrlibdir
=$ac_im_libdir; break
29474 # Screen out bogus values from the imake configuration. They are
29475 # bogus both because they are the default anyway, and because
29476 # using them would break gcc on systems where it needs fixed includes.
29477 case $ac_im_incroot in
29478 /usr
/include
) ac_x_includes
= ;;
29479 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
29481 case $ac_im_usrlibdir in
29482 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
29483 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
29487 rm -f -r conftest.dir
29490 # Standard set of common directories for X headers.
29491 # Check X11 before X11Rn because it is often a symlink to the current release.
29505 /usr/local/X11/include
29506 /usr/local/X11R7/include
29507 /usr/local/X11R6/include
29508 /usr/local/X11R5/include
29509 /usr/local/X11R4/include
29511 /usr/local/include/X11
29512 /usr/local/include/X11R7
29513 /usr/local/include/X11R6
29514 /usr/local/include/X11R5
29515 /usr/local/include/X11R4
29519 /usr/XFree86/include/X11
29523 /usr/unsupported/include
29524 /usr/athena/include
29525 /usr/local/x11r5/include
29526 /usr/lpp/Xamples/include
29528 /usr/openwin/include
29529 /usr/openwin/share/include'
29531 if test "$ac_x_includes" = no
; then
29532 # Guess where to find include files, by looking for Xlib.h.
29533 # First, try using that file with no special directory specified.
29534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29535 /* end confdefs.h. */
29536 #include <X11/Xlib.h>
29538 if ac_fn_c_try_cpp
"$LINENO"; then :
29539 # We can compile using X headers with no special include directory.
29542 for ac_dir
in $ac_x_header_dirs; do
29543 if test -r "$ac_dir/X11/Xlib.h"; then
29544 ac_x_includes
=$ac_dir
29549 rm -f conftest.err conftest.i conftest.
$ac_ext
29550 fi # $ac_x_includes = no
29552 if test "$ac_x_libraries" = no
; then
29553 # Check for the libraries.
29554 # See if we find them without any special options.
29555 # Don't add to $LIBS permanently.
29558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29559 /* end confdefs.h. */
29560 #include <X11/Xlib.h>
29569 if ac_fn_c_try_link
"$LINENO"; then :
29571 # We can link X programs with no special library path.
29575 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29577 # Don't even attempt the hair of trying to link an X program!
29578 for ac_extension
in a so sl dylib la dll
; do
29579 if test -r "$ac_dir/libX11.$ac_extension"; then
29580 ac_x_libraries
=$ac_dir
29586 rm -f core conftest.err conftest.
$ac_objext \
29587 conftest
$ac_exeext conftest.
$ac_ext
29588 fi # $ac_x_libraries = no
29590 case $ac_x_includes,$ac_x_libraries in #(
29591 no
,* |
*,no |
*\'*)
29592 # Didn't find X, or a directory has "'" in its name.
29593 ac_cv_have_x
="have_x=no";; #(
29595 # Record where we found X for the cache.
29596 ac_cv_have_x
="have_x=yes\
29597 ac_x_includes='$ac_x_includes'\
29598 ac_x_libraries='$ac_x_libraries'"
29604 eval "$ac_cv_have_x"
29607 if test "$have_x" != yes; then
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
29609 $as_echo "$have_x" >&6; }
29612 # If each of the values was on the command line, it overrides each guess.
29613 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
29614 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
29615 # Update the cache value to reflect the command line values.
29616 ac_cv_have_x
="have_x=yes\
29617 ac_x_includes='$x_includes'\
29618 ac_x_libraries='$x_libraries'"
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
29620 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
29624 # Unlike the sim directory, whether a simulator is linked is controlled by
29625 # presence of a gdb_sim definition in the target configure.tgt entry.
29626 # This code just checks for a few cases where we'd like to ignore those
29627 # definitions, even when they're present in the '.mt' file. These cases
29628 # are when --disable-sim is specified, or if the simulator directory is
29629 # not part of the source tree.
29631 # Check whether --enable-sim was given.
29632 if test "${enable_sim+set}" = set; then :
29633 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
29634 echo "enableval = ${enableval}";
29635 case "${enableval}" in
29636 yes) ignore_sim
=false
;;
29637 no
) ignore_sim
=true
;;
29638 *) ignore_sim
=false
;;
29645 if test ! -d "${srcdir}/../sim"; then
29651 if test "${ignore_sim}" = "false"; then
29652 if test x
"${gdb_sim}" != x
; then
29654 SIM_OBS
="remote-sim.o"
29656 # Some tdep code should only be compiled in when the ppc sim is
29657 # built. PR sim/13418.
29661 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
29681 # List of host floatformats.
29683 cat >>confdefs.h
<<_ACEOF
29684 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
29688 cat >>confdefs.h
<<_ACEOF
29689 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
29693 cat >>confdefs.h
<<_ACEOF
29694 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
29698 # target_subdir is used by the testsuite to find the target libraries.
29700 if test "${host}" != "${target}"; then
29701 target_subdir
="${target_alias}/"
29705 # Import nat definitions.
29706 nat_makefile_frag
=/dev
/null
29707 if test "${gdb_native}" = "yes"; then
29708 .
${srcdir}/configure.nat
29709 nativefile
=$NAT_FILE
29722 if test x
"${gdb_osabi}" != x
; then
29724 cat >>confdefs.h
<<_ACEOF
29725 #define GDB_OSABI_DEFAULT $gdb_osabi
29730 # Setup possible use of libbacktrace.
29731 # Check whether --enable-libbacktrace was given.
29732 if test "${enable_libbacktrace+set}" = set; then :
29733 enableval
=$enable_libbacktrace;
29738 as_fn_error $?
"bad value $enableval for --enable-libbacktrace" "$LINENO" 5
29743 enable_libbacktrace
=yes
29747 if test "${enable_libbacktrace}" = "yes"; then
29748 LIBBACKTRACE_INC
="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
29749 LIBBACKTRACE_LIB
=..
/libbacktrace
/libbacktrace.la
29751 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
29761 # Check for babeltrace and babeltrace-ctf
29763 # Check whether --with-babeltrace was given.
29764 if test "${with_babeltrace+set}" = set; then :
29765 withval
=$with_babeltrace;
29767 with_babeltrace
=auto
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
29771 $as_echo_n "checking whether to use babeltrace... " >&6; }
29772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
29773 $as_echo "$with_babeltrace" >&6; }
29775 if test "x$with_babeltrace" = "xno"; then
29776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
29777 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
29779 # Append -Werror to CFLAGS so that configure can catch the warning
29780 # "assignment from incompatible pointer type", which is related to
29781 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
29782 # in GDB, while babeltrace 1.0.3 is broken.
29783 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
29784 # safe to save and restore CFLAGS here.
29785 saved_CFLAGS
=$CFLAGS
29786 CFLAGS
="$CFLAGS -Werror"
29797 acl_save_prefix
="$prefix"
29798 prefix
="$acl_final_prefix"
29799 acl_save_exec_prefix
="$exec_prefix"
29800 exec_prefix
="$acl_final_exec_prefix"
29802 eval additional_includedir
=\"$includedir\"
29803 eval additional_libdir
=\"$libdir\"
29805 exec_prefix
="$acl_save_exec_prefix"
29806 prefix
="$acl_save_prefix"
29809 # Check whether --with-libbabeltrace-prefix was given.
29810 if test "${with_libbabeltrace_prefix+set}" = set; then :
29811 withval
=$with_libbabeltrace_prefix;
29812 if test "X$withval" = "Xno"; then
29815 if test "X$withval" = "X"; then
29817 acl_save_prefix
="$prefix"
29818 prefix
="$acl_final_prefix"
29819 acl_save_exec_prefix
="$exec_prefix"
29820 exec_prefix
="$acl_final_exec_prefix"
29822 eval additional_includedir
=\"$includedir\"
29823 eval additional_libdir
=\"$libdir\"
29825 exec_prefix
="$acl_save_exec_prefix"
29826 prefix
="$acl_save_prefix"
29829 additional_includedir
="$withval/include"
29830 additional_libdir
="$withval/lib"
29837 # Check whether --with-libbabeltrace-type was given.
29838 if test "${with_libbabeltrace_type+set}" = set; then :
29839 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
29841 with_libbabeltrace_type
=auto
29844 lib_type
=`eval echo \$with_libbabeltrace_type`
29851 names_already_handled
=
29852 names_next_round
='babeltrace babeltrace-ctf'
29853 while test -n "$names_next_round"; do
29854 names_this_round
="$names_next_round"
29856 for name
in $names_this_round; do
29858 for n
in $names_already_handled; do
29859 if test "$n" = "$name"; then
29860 already_handled
=yes
29864 if test -z "$already_handled"; then
29865 names_already_handled
="$names_already_handled $name"
29866 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
29867 eval value
=\"\
$HAVE_LIB$uppername\"
29868 if test -n "$value"; then
29869 if test "$value" = yes; then
29870 eval value
=\"\
$LIB$uppername\"
29871 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
29872 eval value
=\"\
$LTLIB$uppername\"
29873 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
29882 if test $use_additional = yes; then
29883 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
29884 found_dir
="$additional_libdir"
29885 found_so
="$additional_libdir/lib$name.$shlibext"
29886 if test -f "$additional_libdir/lib$name.la"; then
29887 found_la
="$additional_libdir/lib$name.la"
29889 elif test x
$lib_type != xshared
; then
29890 if test -f "$additional_libdir/lib$name.$libext"; then
29891 found_dir
="$additional_libdir"
29892 found_a
="$additional_libdir/lib$name.$libext"
29893 if test -f "$additional_libdir/lib$name.la"; then
29894 found_la
="$additional_libdir/lib$name.la"
29899 if test "X$found_dir" = "X"; then
29900 for x
in $LDFLAGS $LTLIBBABELTRACE; do
29902 acl_save_prefix
="$prefix"
29903 prefix
="$acl_final_prefix"
29904 acl_save_exec_prefix
="$exec_prefix"
29905 exec_prefix
="$acl_final_exec_prefix"
29907 exec_prefix
="$acl_save_exec_prefix"
29908 prefix
="$acl_save_prefix"
29912 dir
=`echo "X$x" | sed -e 's/^X-L//'`
29913 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
29915 found_so
="$dir/lib$name.$shlibext"
29916 if test -f "$dir/lib$name.la"; then
29917 found_la
="$dir/lib$name.la"
29919 elif test x
$lib_type != xshared
; then
29920 if test -f "$dir/lib$name.$libext"; then
29922 found_a
="$dir/lib$name.$libext"
29923 if test -f "$dir/lib$name.la"; then
29924 found_la
="$dir/lib$name.la"
29930 if test "X$found_dir" != "X"; then
29935 if test "X$found_dir" != "X"; then
29936 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
29937 if test "X$found_so" != "X"; then
29938 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
29939 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
29942 for x
in $ltrpathdirs; do
29943 if test "X$x" = "X$found_dir"; then
29948 if test -z "$haveit"; then
29949 ltrpathdirs
="$ltrpathdirs $found_dir"
29951 if test "$hardcode_direct" = yes; then
29952 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
29954 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
29955 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
29957 for x
in $rpathdirs; do
29958 if test "X$x" = "X$found_dir"; then
29963 if test -z "$haveit"; then
29964 rpathdirs
="$rpathdirs $found_dir"
29968 for x
in $LDFLAGS $LIBBABELTRACE; do
29970 acl_save_prefix
="$prefix"
29971 prefix
="$acl_final_prefix"
29972 acl_save_exec_prefix
="$exec_prefix"
29973 exec_prefix
="$acl_final_exec_prefix"
29975 exec_prefix
="$acl_save_exec_prefix"
29976 prefix
="$acl_save_prefix"
29978 if test "X$x" = "X-L$found_dir"; then
29983 if test -z "$haveit"; then
29984 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
29986 if test "$hardcode_minus_L" != no
; then
29987 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
29989 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
29995 if test "X$found_a" != "X"; then
29996 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
29998 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
30001 additional_includedir
=
30002 case "$found_dir" in
30004 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30005 additional_includedir
="$basedir/include"
30008 if test "X$additional_includedir" != "X"; then
30009 if test "X$additional_includedir" != "X/usr/include"; then
30011 if test "X$additional_includedir" = "X/usr/local/include"; then
30012 if test -n "$GCC"; then
30014 linux
*) haveit
=yes;;
30018 if test -z "$haveit"; then
30019 for x
in $CPPFLAGS $INCBABELTRACE; do
30021 acl_save_prefix
="$prefix"
30022 prefix
="$acl_final_prefix"
30023 acl_save_exec_prefix
="$exec_prefix"
30024 exec_prefix
="$acl_final_exec_prefix"
30026 exec_prefix
="$acl_save_exec_prefix"
30027 prefix
="$acl_save_prefix"
30029 if test "X$x" = "X-I$additional_includedir"; then
30034 if test -z "$haveit"; then
30035 if test -d "$additional_includedir"; then
30036 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
30042 if test -n "$found_la"; then
30043 save_libdir
="$libdir"
30044 case "$found_la" in
30045 */* |
*\\*) .
"$found_la" ;;
30046 *) .
"./$found_la" ;;
30048 libdir
="$save_libdir"
30049 for dep
in $dependency_libs; do
30052 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
30053 if test "X$additional_libdir" != "X/usr/lib"; then
30055 if test "X$additional_libdir" = "X/usr/local/lib"; then
30056 if test -n "$GCC"; then
30058 linux
*) haveit
=yes;;
30062 if test -z "$haveit"; then
30064 for x
in $LDFLAGS $LIBBABELTRACE; do
30066 acl_save_prefix
="$prefix"
30067 prefix
="$acl_final_prefix"
30068 acl_save_exec_prefix
="$exec_prefix"
30069 exec_prefix
="$acl_final_exec_prefix"
30071 exec_prefix
="$acl_save_exec_prefix"
30072 prefix
="$acl_save_prefix"
30074 if test "X$x" = "X-L$additional_libdir"; then
30079 if test -z "$haveit"; then
30080 if test -d "$additional_libdir"; then
30081 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
30085 for x
in $LDFLAGS $LTLIBBABELTRACE; do
30087 acl_save_prefix
="$prefix"
30088 prefix
="$acl_final_prefix"
30089 acl_save_exec_prefix
="$exec_prefix"
30090 exec_prefix
="$acl_final_exec_prefix"
30092 exec_prefix
="$acl_save_exec_prefix"
30093 prefix
="$acl_save_prefix"
30095 if test "X$x" = "X-L$additional_libdir"; then
30100 if test -z "$haveit"; then
30101 if test -d "$additional_libdir"; then
30102 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
30109 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
30110 if test "$enable_rpath" != no
; then
30112 for x
in $rpathdirs; do
30113 if test "X$x" = "X$dir"; then
30118 if test -z "$haveit"; then
30119 rpathdirs
="$rpathdirs $dir"
30122 for x
in $ltrpathdirs; do
30123 if test "X$x" = "X$dir"; then
30128 if test -z "$haveit"; then
30129 ltrpathdirs
="$ltrpathdirs $dir"
30134 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30137 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30140 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
30141 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
30147 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
30148 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
30149 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
30151 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
30152 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
30159 if test "X$rpathdirs" != "X"; then
30160 if test -n "$hardcode_libdir_separator"; then
30162 for found_dir
in $rpathdirs; do
30163 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30165 acl_save_libdir
="$libdir"
30167 eval flag
=\"$hardcode_libdir_flag_spec\"
30168 libdir
="$acl_save_libdir"
30169 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
30171 for found_dir
in $rpathdirs; do
30172 acl_save_libdir
="$libdir"
30173 libdir
="$found_dir"
30174 eval flag
=\"$hardcode_libdir_flag_spec\"
30175 libdir
="$acl_save_libdir"
30176 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
30180 if test "X$ltrpathdirs" != "X"; then
30181 for found_dir
in $ltrpathdirs; do
30182 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
30187 ac_save_CPPFLAGS
="$CPPFLAGS"
30189 for element
in $INCBABELTRACE; do
30191 for x
in $CPPFLAGS; do
30193 acl_save_prefix
="$prefix"
30194 prefix
="$acl_final_prefix"
30195 acl_save_exec_prefix
="$exec_prefix"
30196 exec_prefix
="$acl_final_exec_prefix"
30198 exec_prefix
="$acl_save_exec_prefix"
30199 prefix
="$acl_save_prefix"
30201 if test "X$x" = "X$element"; then
30206 if test -z "$haveit"; then
30207 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
30212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
30213 $as_echo_n "checking for libbabeltrace... " >&6; }
30214 if ${ac_cv_libbabeltrace+:} false
; then :
30215 $as_echo_n "(cached) " >&6
30218 ac_save_LIBS
="$LIBS"
30219 LIBS
="$LIBS $LIBBABELTRACE"
30220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30221 /* end confdefs.h. */
30222 #include <babeltrace/babeltrace.h>
30223 #include <babeltrace/ctf/events.h>
30224 #include <babeltrace/ctf/iterator.h>
30228 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
30229 struct bt_ctf_event *event = NULL;
30230 const struct bt_definition *scope;
30232 pos->type = BT_SEEK_BEGIN;
30233 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
30234 scope = bt_ctf_get_top_level_scope (event,
30235 BT_STREAM_EVENT_HEADER);
30236 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
30242 if ac_fn_c_try_link
"$LINENO"; then :
30243 ac_cv_libbabeltrace
=yes
30245 ac_cv_libbabeltrace
=no
30247 rm -f core conftest.err conftest.
$ac_objext \
30248 conftest
$ac_exeext conftest.
$ac_ext
30249 LIBS
="$ac_save_LIBS"
30252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
30253 $as_echo "$ac_cv_libbabeltrace" >&6; }
30254 if test "$ac_cv_libbabeltrace" = yes; then
30255 HAVE_LIBBABELTRACE
=yes
30257 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
30259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
30260 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
30261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
30262 $as_echo "$LIBBABELTRACE" >&6; }
30264 HAVE_LIBBABELTRACE
=no
30265 CPPFLAGS
="$ac_save_CPPFLAGS"
30275 CFLAGS
=$saved_CFLAGS
30277 if test "$HAVE_LIBBABELTRACE" != yes; then
30278 if test "$with_babeltrace" = yes; then
30279 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
30281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
30282 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
30287 # Check whether --enable-libctf was given.
30288 if test "${enable_libctf+set}" = set; then :
30289 enableval
=$enable_libctf;
30290 case "$enableval" in
30292 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
30300 if test "${enable_libctf}" = yes; then
30302 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
30304 LIBCTF
="../libctf/libctf.la"
30305 CTF_DEPS
="../libctf/libctf.la"
30313 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
30318 if test "${nativefile}" != ""; then
30319 case "${nativefile}" in
30320 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
30321 * ) GDB_NM_FILE
="${nativefile}"
30323 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
30326 cat >>confdefs.h
<<_ACEOF
30327 #define GDB_NM_FILE "${GDB_NM_FILE}"
30335 for ac_prog
in xsltproc
30337 # Extract the first word of "$ac_prog", so it can be a program name with args.
30338 set dummy
$ac_prog; ac_word
=$2
30339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30340 $as_echo_n "checking for $ac_word... " >&6; }
30341 if ${ac_cv_path_XSLTPROC+:} false
; then :
30342 $as_echo_n "(cached) " >&6
30346 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
30349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30350 for as_dir
in $PATH
30353 test -z "$as_dir" && as_dir
=.
30354 for ac_exec_ext
in '' $ac_executable_extensions; do
30355 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30356 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
30357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30367 XSLTPROC
=$ac_cv_path_XSLTPROC
30368 if test -n "$XSLTPROC"; then
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
30370 $as_echo "$XSLTPROC" >&6; }
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30373 $as_echo "no" >&6; }
30377 test -n "$XSLTPROC" && break
30379 test -n "$XSLTPROC" || XSLTPROC
="missing"
30381 if test "x$USE_MAINTAINER_MODE" = xyes
; then
30382 if test "${XSLTPROC}" = missing
; then
30383 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
30391 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
30395 # Check whether we will enable the inclusion of unit tests when
30398 # The default value of this option changes depending whether we're on
30399 # development mode (in which case it's "true") or not (in which case
30400 # it's "false"). The $development variable is set by the GDB_AC_COMMON
30401 # macro, which must therefore be used before GDB_AC_SELFTEST.
30403 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
30404 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
30407 # Check whether --enable-unit-tests was given.
30408 if test "${enable_unit_tests+set}" = set; then :
30409 enableval
=$enable_unit_tests; case "${enableval}" in
30410 yes) enable_unittests
=true
;;
30411 no
) enable_unittests
=false
;;
30412 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
30415 enable_unittests
=$development
30419 if $enable_unittests; then
30421 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
30424 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
30425 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
30431 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
30432 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
30433 if test "x$GDB_TRANSFORM_NAME" = x
; then
30434 GDB_TRANSFORM_NAME
=gdb
30439 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
30440 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
30441 if test "x$GCORE_TRANSFORM_NAME" = x
; then
30442 GCORE_TRANSFORM_NAME
=gcore
30446 ac_config_files
="$ac_config_files gcore"
30448 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
30451 cat >confcache
<<\_ACEOF
30452 # This file is a shell script that caches the results of configure
30453 # tests run on this system so they can be shared between configure
30454 # scripts and configure runs, see configure's option --config-cache.
30455 # It is not useful on other systems. If it contains results you don't
30456 # want to keep, you may remove or edit it.
30458 # config.status only pays attention to the cache file if you give it
30459 # the --recheck option to rerun configure.
30461 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30462 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30463 # following values.
30467 # The following way of writing the cache mishandles newlines in values,
30468 # but we know of no workaround that is simple, portable, and efficient.
30469 # So, we kill variables containing newlines.
30470 # Ultrix sh set writes to stderr and can't be redirected directly,
30471 # and sets the high bit in the cache file unless we assign to the vars.
30473 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30474 eval ac_val
=\$
$ac_var
30478 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30479 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30482 _ | IFS | as_nl
) ;; #(
30483 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30484 *) { eval $ac_var=; unset $ac_var;} ;;
30490 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30491 *${as_nl}ac_space
=\
*)
30492 # `set' does not quote correctly, so add quotes: double-quote
30493 # substitution turns \\\\ into \\, and sed turns \\ into \.
30496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30499 # `set' quotes correctly as required by POSIX, so do not add quotes.
30500 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30509 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30511 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30513 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30514 if test -w "$cache_file"; then
30515 if test "x$cache_file" != "x/dev/null"; then
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30517 $as_echo "$as_me: updating cache $cache_file" >&6;}
30518 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
30519 cat confcache
>"$cache_file"
30521 case $cache_file in #(
30523 mv -f confcache
"$cache_file"$$
&&
30524 mv -f "$cache_file"$$
"$cache_file" ;; #(
30526 mv -f confcache
"$cache_file" ;;
30531 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30532 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30537 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30538 # Let make expand exec_prefix.
30539 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30541 DEFS
=-DHAVE_CONFIG_H
30546 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30547 # 1. Remove the extension, and $U if already installed.
30548 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30549 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30551 # will be set to the directory where LIBOBJS objects are built.
30552 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30553 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30555 LIBOBJS
=$ac_libobjs
30557 LTLIBOBJS
=$ac_ltlibobjs
30560 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30561 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
30562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30564 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
30565 as_fn_error $?
"conditional \"ENABLE_BFD_64_BIT\" was never defined.
30566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30568 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
30569 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
30570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30572 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
30573 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
30574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30578 : "${CONFIG_STATUS=./config.status}"
30580 ac_clean_files_save
=$ac_clean_files
30581 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30583 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30585 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30587 # Generated by $as_me.
30588 # Run this file to recreate the current configuration.
30589 # Compiler output produced by configure, useful for debugging
30590 # configure, is in config.log if it exists.
30593 ac_cs_recheck=false
30596 SHELL=\${CONFIG_SHELL-$SHELL}
30599 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30600 ## -------------------- ##
30601 ## M4sh Initialization. ##
30602 ## -------------------- ##
30604 # Be more Bourne compatible
30605 DUALCASE
=1; export DUALCASE
# for MKS sh
30606 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30609 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30610 # is contrary to our usage. Disable this feature.
30611 alias -g '${1+"$@"}'='"$@"'
30612 setopt NO_GLOB_SUBST
30614 case `(set -o) 2>/dev/null` in #(
30626 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30627 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30628 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30629 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30630 # Prefer a ksh shell builtin over an external printf program on Solaris,
30631 # but without wasting forks for bash or zsh.
30632 if test -z "$BASH_VERSION$ZSH_VERSION" \
30633 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30634 as_echo='print
-r --'
30635 as_echo_n='print
-rn --'
30636 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30637 as_echo='printf %s
\n'
30638 as_echo_n='printf %s
'
30640 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30641 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30642 as_echo_n='/usr
/ucb
/echo -n'
30644 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30645 as_echo_n_body='eval
30649 expr "X$arg" : "X\\(.*\\)$as_nl";
30650 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30652 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30654 export as_echo_n_body
30655 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30657 export as_echo_body
30658 as_echo='sh
-c $as_echo_body as_echo
'
30661 # The user is always right.
30662 if test "${PATH_SEPARATOR+set}" != set; then
30664 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30665 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30672 # We need space, tab and new line, in precisely that order. Quoting is
30673 # there to prevent editors from complaining about space-tab.
30674 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30675 # splitting by setting IFS to empty value.)
30678 # Find who we are. Look in the path if we contain no directory separator.
30681 *[\\/]* ) as_myself=$0 ;;
30682 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30683 for as_dir in $PATH
30686 test -z "$as_dir" && as_dir=.
30687 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30693 # We did not find ourselves, most probably we were run as `sh COMMAND'
30694 # in which case we are not to be found in the path.
30695 if test "x$as_myself" = x
; then
30698 if test ! -f "$as_myself"; then
30699 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30703 # Unset variables that we do not need and which cause bugs (e.g. in
30704 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30705 # suppresses any "Segmentation fault" message there. '((' could
30706 # trigger a bug in pdksh 5.2.14.
30707 for as_var
in BASH_ENV ENV MAIL MAILPATH
30708 do eval test x\
${$as_var+set} = xset \
30709 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30722 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30725 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30726 # ----------------------------------------
30727 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30728 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30729 # script with STATUS, using 1 if that was 0.
30732 as_status
=$1; test $as_status -eq 0 && as_status
=1
30734 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30735 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30737 $as_echo "$as_me: error: $2" >&2
30738 as_fn_exit
$as_status
30742 # as_fn_set_status STATUS
30743 # -----------------------
30744 # Set $? to STATUS, without forking.
30745 as_fn_set_status
()
30748 } # as_fn_set_status
30750 # as_fn_exit STATUS
30751 # -----------------
30752 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30756 as_fn_set_status
$1
30762 # Portably unset VAR.
30765 { eval $1=; unset $1;}
30767 as_unset
=as_fn_unset
30768 # as_fn_append VAR VALUE
30769 # ----------------------
30770 # Append the text in VALUE to the end of the definition contained in VAR. Take
30771 # advantage of any shell optimizations that allow amortized linear growth over
30772 # repeated appends, instead of the typical quadratic growth present in naive
30774 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30775 eval 'as_fn_append ()
30786 # as_fn_arith ARG...
30787 # ------------------
30788 # Perform arithmetic evaluation on the ARGs, and store the result in the
30789 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30790 # must be portable across $(()) and expr.
30791 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30792 eval 'as_fn_arith ()
30799 as_val
=`expr "$@" || test $? -eq 1`
30804 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30805 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30811 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30812 as_basename
=basename
30817 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30823 as_me
=`$as_basename -- "$0" ||
30824 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30825 X"$0" : 'X\(//\)$' \| \
30826 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30828 sed '/^.*\/\([^/][^/]*\)\/*$/{
30842 # Avoid depending upon Character Ranges.
30843 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30844 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30845 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30846 as_cr_digits
='0123456789'
30847 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30849 ECHO_C
= ECHO_N
= ECHO_T
=
30850 case `echo -n x` in #(((((
30852 case `echo 'xy\c'` in
30853 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30855 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30862 rm -f conf$$ conf$$.exe conf$$.
file
30863 if test -d conf$$.dir
; then
30864 rm -f conf$$.dir
/conf$$.
file
30867 mkdir conf$$.dir
2>/dev
/null
30869 if (echo >conf$$.
file) 2>/dev
/null
; then
30870 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30872 # ... but there are two gotchas:
30873 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30874 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30875 # In both cases, we have to default to `cp -pR'.
30876 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30878 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30886 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30887 rmdir conf$$.dir
2>/dev
/null
30892 # Create "$as_dir" as a directory, including parents if necessary.
30897 -*) as_dir
=.
/$as_dir;;
30899 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30903 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30904 *) as_qdir
=$as_dir;;
30906 as_dirs
="'$as_qdir' $as_dirs"
30907 as_dir
=`$as_dirname -- "$as_dir" ||
30908 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30909 X"$as_dir" : 'X\(//\)[^/]' \| \
30910 X"$as_dir" : 'X\(//\)$' \| \
30911 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30912 $as_echo X"$as_dir" |
30913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30917 /^X\(\/\/\)[^/].*/{
30930 test -d "$as_dir" && break
30932 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30933 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
30937 if mkdir
-p .
2>/dev
/null
; then
30938 as_mkdir_p
='mkdir -p "$as_dir"'
30940 test -d .
/-p && rmdir .
/-p
30945 # as_fn_executable_p FILE
30946 # -----------------------
30947 # Test if FILE is an executable regular file.
30948 as_fn_executable_p
()
30950 test -f "$1" && test -x "$1"
30951 } # as_fn_executable_p
30952 as_test_x
='test -x'
30953 as_executable_p
=as_fn_executable_p
30955 # Sed expression to map a string onto a valid CPP name.
30956 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30958 # Sed expression to map a string onto a valid variable name.
30959 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30963 ## ----------------------------------- ##
30964 ## Main body of $CONFIG_STATUS script. ##
30965 ## ----------------------------------- ##
30967 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30970 # Save the log message, to keep $0 and so on meaningful, and to
30971 # report actual input values of CONFIG_FILES etc. instead of their
30972 # values after options handling.
30974 This file was extended by $as_me, which was
30975 generated by GNU Autoconf 2.69. Invocation command line was
30977 CONFIG_FILES = $CONFIG_FILES
30978 CONFIG_HEADERS = $CONFIG_HEADERS
30979 CONFIG_LINKS = $CONFIG_LINKS
30980 CONFIG_COMMANDS = $CONFIG_COMMANDS
30983 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30988 case $ac_config_files in *"
30989 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30992 case $ac_config_headers in *"
30993 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30998 # Files that config.status was made for.
30999 config_files="$ac_config_files"
31000 config_headers="$ac_config_headers"
31001 config_links="$ac_config_links"
31002 config_commands="$ac_config_commands"
31006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31008 \`$as_me' instantiates files and other configuration actions
31009 from templates according to the current configuration. Unless the files
31010 and actions are specified as TAGs, all are instantiated by default.
31012 Usage: $0 [OPTION]... [TAG]...
31014 -h, --help print this help, then exit
31015 -V, --version print version number and configuration settings, then exit
31016 --config print configuration, then exit
31017 -q, --quiet, --silent
31018 do not print progress messages
31019 -d, --debug don't remove temporary files
31020 --recheck update $as_me by reconfiguring in the same conditions
31021 --file=FILE[:TEMPLATE]
31022 instantiate the configuration file FILE
31023 --header=FILE[:TEMPLATE]
31024 instantiate the configuration header FILE
31026 Configuration files:
31029 Configuration headers:
31032 Configuration links:
31035 Configuration commands:
31038 Report bugs to the package provider."
31041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31042 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31045 configured by $0, generated by GNU Autoconf 2.69,
31046 with options \\"\$ac_cs_config\\"
31048 Copyright (C) 2012 Free Software Foundation, Inc.
31049 This config.status script is free software; the Free Software Foundation
31050 gives unlimited permission to copy, distribute and modify it."
31056 test -n "\$AWK" || AWK=awk
31059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31060 # The default lists apply if the user does not specify any file.
31066 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31067 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31071 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31083 # Handling of the options.
31084 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31086 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31087 $as_echo "$ac_cs_version"; exit ;;
31088 --config |
--confi |
--conf |
--con |
--co |
--c )
31089 $as_echo "$ac_cs_config"; exit ;;
31090 --debug |
--debu |
--deb |
--de |
--d |
-d )
31092 --file |
--fil |
--fi |
--f )
31095 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31096 '') as_fn_error $?
"missing file argument" ;;
31098 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31099 ac_need_defaults
=false
;;
31100 --header |
--heade |
--head |
--hea )
31103 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31105 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31106 ac_need_defaults
=false
;;
31108 # Conflict between --help and --header
31109 as_fn_error $?
"ambiguous option: \`$1'
31110 Try \`$0 --help' for more information.";;
31111 --help |
--hel |
-h )
31112 $as_echo "$ac_cs_usage"; exit ;;
31113 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31114 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31117 # This is an error.
31118 -*) as_fn_error $?
"unrecognized option: \`$1'
31119 Try \`$0 --help' for more information." ;;
31121 *) as_fn_append ac_config_targets
" $1"
31122 ac_need_defaults
=false
;;
31128 ac_configure_extra_args
=
31130 if $ac_cs_silent; then
31132 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31137 if \$ac_cs_recheck; then
31138 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31140 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31141 CONFIG_SHELL='$SHELL'
31142 export CONFIG_SHELL
31147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31152 ## Running $as_me. ##
31158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31164 # The HP-UX ksh and POSIX shell print the target directory to stdout
31165 # if CDPATH is set.
31166 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31168 sed_quote_subst='$sed_quote_subst'
31169 double_quote_subst='$double_quote_subst'
31170 delay_variable_subst='$delay_variable_subst'
31171 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31172 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31173 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31174 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31175 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31176 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31177 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31178 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31179 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31180 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31181 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31182 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31183 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31184 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31185 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31186 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31187 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31188 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31189 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31190 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31191 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31192 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31193 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31194 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31195 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31196 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31197 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31198 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31199 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31200 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31201 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31202 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31203 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31204 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31205 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31206 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31207 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31208 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31209 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31210 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31211 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31212 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31213 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31214 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31215 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31216 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31217 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31218 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31219 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"`'
31220 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31221 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31222 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31223 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31224 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31225 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31226 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31227 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31228 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31229 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31230 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31231 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31232 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31233 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31234 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31235 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31236 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31237 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31238 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31239 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31240 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31241 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31242 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31243 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31244 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31245 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31246 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31247 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31248 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31249 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31250 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31251 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31252 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31253 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31254 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31255 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31256 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31257 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31258 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31259 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31260 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
31261 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31262 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31263 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31264 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31265 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31266 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31267 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31268 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31269 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31270 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31271 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31272 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31273 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31274 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31275 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31276 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31277 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31278 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31279 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31280 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31281 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31282 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31283 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31284 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31285 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31286 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31287 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31288 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31289 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31290 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31291 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31292 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31293 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31294 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31295 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31296 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31297 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31298 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31299 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31300 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31301 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31302 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31303 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31304 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31305 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31306 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31307 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31308 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31309 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31310 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31311 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31312 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31313 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31314 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31315 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31316 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31317 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31318 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31319 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31320 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31321 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31322 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31323 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31324 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31325 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31326 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31327 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31328 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31329 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31330 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31331 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31332 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
31333 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31334 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31335 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31336 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31337 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31338 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31339 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31340 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31341 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31342 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31343 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31344 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31345 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31348 LTCFLAGS='$LTCFLAGS'
31349 compiler='$compiler_DEFAULT'
31351 # A function that is used when there is no print builtin or printf.
31352 func_fallback_echo ()
31354 eval 'cat <<_LTECHO_EOF
31359 # Quote evaled strings.
31373 deplibs_check_method \
31382 lt_cv_sys_global_symbol_pipe \
31383 lt_cv_sys_global_symbol_to_cdecl \
31384 lt_cv_sys_global_symbol_to_c_name_address \
31385 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31386 lt_prog_compiler_no_builtin_flag \
31387 lt_prog_compiler_wl \
31388 lt_prog_compiler_pic \
31389 lt_prog_compiler_static \
31390 lt_cv_prog_compiler_c_o \
31398 export_dynamic_flag_spec \
31399 whole_archive_flag_spec \
31400 compiler_needs_object \
31402 allow_undefined_flag \
31403 no_undefined_flag \
31404 hardcode_libdir_flag_spec \
31405 hardcode_libdir_flag_spec_ld \
31406 hardcode_libdir_separator \
31411 variables_saved_for_relink \
31413 library_names_spec \
31415 install_override_mode \
31419 compiler_lib_search_dirs \
31424 compiler_lib_search_path \
31428 lt_prog_compiler_no_builtin_flag_CXX \
31429 lt_prog_compiler_wl_CXX \
31430 lt_prog_compiler_pic_CXX \
31431 lt_prog_compiler_static_CXX \
31432 lt_cv_prog_compiler_c_o_CXX \
31433 export_dynamic_flag_spec_CXX \
31434 whole_archive_flag_spec_CXX \
31435 compiler_needs_object_CXX \
31437 allow_undefined_flag_CXX \
31438 no_undefined_flag_CXX \
31439 hardcode_libdir_flag_spec_CXX \
31440 hardcode_libdir_flag_spec_ld_CXX \
31441 hardcode_libdir_separator_CXX \
31442 fix_srcfile_path_CXX \
31443 exclude_expsyms_CXX \
31444 include_expsyms_CXX \
31445 file_list_spec_CXX \
31446 compiler_lib_search_dirs_CXX \
31447 predep_objects_CXX \
31448 postdep_objects_CXX \
31451 compiler_lib_search_path_CXX; do
31452 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31453 *[\\\\\\\`\\"\\\$]*)
31454 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31457 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31462 # Double-quote double-evaled strings.
31463 for var in reload_cmds \
31464 old_postinstall_cmds \
31465 old_postuninstall_cmds \
31467 extract_expsyms_cmds \
31468 old_archive_from_new_cmds \
31469 old_archive_from_expsyms_cmds \
31471 archive_expsym_cmds \
31473 module_expsym_cmds \
31474 export_symbols_cmds \
31477 postuninstall_cmds \
31479 sys_lib_search_path_spec \
31480 sys_lib_dlsearch_path_spec \
31482 old_archive_cmds_CXX \
31483 old_archive_from_new_cmds_CXX \
31484 old_archive_from_expsyms_cmds_CXX \
31486 archive_expsym_cmds_CXX \
31488 module_expsym_cmds_CXX \
31489 export_symbols_cmds_CXX \
31490 prelink_cmds_CXX; do
31491 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31492 *[\\\\\\\`\\"\\\$]*)
31493 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31496 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31501 ac_aux_dir='$ac_aux_dir'
31502 xsi_shell='$xsi_shell'
31503 lt_shell_append='$lt_shell_append'
31505 # See if we are running on zsh, and set the options which allow our
31506 # commands through without removal of \ escapes INIT.
31507 if test -n "\${ZSH_VERSION+set}" ; then
31508 setopt NO_GLOB_SUBST
31514 TIMESTAMP='$TIMESTAMP'
31520 ac_aux_dir='$ac_aux_dir'
31523 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31524 GDB_NM_FILE=$GDB_NM_FILE
31528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31530 # Handling of arguments.
31531 for ac_config_target
in $ac_config_targets
31533 case $ac_config_target in
31534 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
31535 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
31536 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
31537 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
31538 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
31539 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
31540 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
31541 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
31542 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
31543 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
31544 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
31546 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31551 # If the user did not use the arguments to specify the items to instantiate,
31552 # then the envvar interface is used. Set only those that are not.
31553 # We use the long form for the default assignment because of an extremely
31554 # bizarre bug on SunOS 4.1.3.
31555 if $ac_need_defaults; then
31556 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
31557 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
31558 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
31559 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
31562 # Have a temporary directory for convenience. Make it in the build tree
31563 # simply because there is no reason against having it here, and in addition,
31564 # creating and moving files from /tmp can sometimes cause problems.
31565 # Hook for its removal unless debugging.
31566 # Note that there is a small window in which the directory will not be cleaned:
31567 # after its creation but before its name has been assigned to `$tmp'.
31571 trap 'exit_status=$?
31572 : "${ac_tmp:=$tmp}"
31573 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31575 trap 'as_fn_exit 1' 1 2 13 15
31577 # Create a (secure) tmp directory for tmp files.
31580 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31584 tmp
=.
/conf$$
-$RANDOM
31585 (umask 077 && mkdir
"$tmp")
31586 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
31589 # Set up the scripts for CONFIG_FILES section.
31590 # No need to generate them if there are no CONFIG_FILES.
31591 # This happens for instance with `./config.status config.h'.
31592 if test -n "$CONFIG_FILES"; then
31594 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
31595 ac_cs_awk_getline
=:
31596 ac_cs_awk_pipe_init
=
31597 ac_cs_awk_read_file
='
31598 while ((getline aline < (F[key])) > 0)
31601 ac_cs_awk_pipe_fini
=
31603 ac_cs_awk_getline
=false
31604 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
31605 ac_cs_awk_read_file
='
31607 print "cat " F[key] " &&"
31608 '$ac_cs_awk_pipe_init
31609 # The final `:' finishes the AND list.
31610 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
31612 ac_cr
=`echo X | tr X '\015'`
31613 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31614 # But we know of no other shell where ac_cr would be empty at this
31615 # point, so we can use a bashism as a fallback.
31616 if test "x$ac_cr" = x
; then
31617 eval ac_cr
=\$
\'\\r
\'
31619 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31620 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31623 ac_cs_awk_cr
=$ac_cr
31626 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31629 # Create commands to substitute file output variables.
31631 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31632 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31633 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
31636 } >conf$
$files.sh
&&
31637 . .
/conf$
$files.sh ||
31638 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
31639 rm -f conf$
$files.sh
31642 echo "cat >conf$$subs.awk <<_ACEOF" &&
31643 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31645 } >conf$$subs.sh ||
31646 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31647 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31649 for ac_last_try in false false false false false :; do
31650 . ./conf$$subs.sh ||
31651 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31653 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31654 if test $ac_delim_n = $ac_delim_num; then
31656 elif $ac_last_try; then
31657 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31659 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31662 rm -f conf$$subs.sh
31664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31665 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
31669 s/^/S["/; s
/!.
*/"]=/
31679 s/\(.\{148\}\)..*/\1/
31681 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31686 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31693 s/\(.\{148\}\)..*/\1/
31695 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31699 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31704 ' <conf$$subs.awk | sed '
31709 ' >>$CONFIG_STATUS || ac_write_fail=1
31710 rm -f conf$$subs.awk
31711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31713 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
31714 for (key in S) S_is_set[key] = 1
31716 \$ac_cs_awk_pipe_init
31720 nfields = split(line, field, "@
")
31722 len = length(field[1])
31723 for (i = 2; i < nfields; i++) {
31725 keylen = length(key)
31726 if (S_is_set[key]) {
31728 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31729 len += length(value) + length(field[++i])
31734 if (nfields == 3 && !substed) {
31736 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31737 \$ac_cs_awk_read_file
31743 \$ac_cs_awk_pipe_fini
31746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31747 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31748 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31751 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
31752 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
31755 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31756 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
31757 # trailing colons and then remove the whole line if VPATH becomes empty
31758 # (actually we leave an empty line to preserve line numbers).
31759 if test "x
$srcdir" = x.; then
31760 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31779 fi # test -n "$CONFIG_FILES"
31781 # Set up the scripts for CONFIG_HEADERS section.
31782 # No need to generate them if there are no CONFIG_HEADERS.
31783 # This happens for instance with `./config.status Makefile'.
31784 if test -n "$CONFIG_HEADERS"; then
31785 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
31789 # Transform confdefs.h into an awk script `defines.awk', embedded as
31790 # here-document in config.status, that substitutes the proper values into
31791 # config.h.in to produce config.h.
31793 # Create a delimiter string that does not exist in confdefs.h, to ease
31794 # handling of long lines.
31796 for ac_last_try in false false :; do
31797 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
31798 if test -z "$ac_tt"; then
31800 elif $ac_last_try; then
31801 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
31803 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31807 # For the awk script, D is an array of macro values keyed by name,
31808 # likewise P contains macro parameters if any. Preserve backslash
31809 # newline sequences.
31811 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31813 s/.\{148\}/&'"$ac_delim"'/g
31816 s/^[ ]*#[ ]*define[ ][ ]*/ /
31823 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31825 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31829 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31830 D["\
1"]=" \
3\\\\\\n
"\\/p
31832 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31837 s/.\{148\}/&'"$ac_delim"'/g
31842 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31845 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31847 ' <confdefs.h | sed '
31848 s/'"$ac_delim"'/"\\\
31849 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31852 for (key in D) D_is_set[key] = 1
31855 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31857 split(line, arg, " ")
31858 if (arg[1] == "#") {
31862 defundef
= substr
(arg
[1], 2)
31865 split(mac1
, mac2
, "(") #)
31867 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31868 if (D_is_set
[macro
]) {
31869 # Preserve the white space surrounding the "#".
31870 print prefix
"define", macro P
[macro
] D
[macro
]
31873 # Replace #undef with comments. This is necessary, for example,
31874 # in the case of _POSIX_SOURCE, which is predefined and required
31875 # on some systems where configure will not decide to define it.
31876 if (defundef
== "undef") {
31877 print
"/*", prefix defundef
, macro
, "*/"
31885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31886 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
31887 fi # test -n "$CONFIG_HEADERS"
31890 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31895 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31897 case $ac_mode$ac_tag in
31899 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31900 :[FH
]-) ac_tag
=-:-;;
31901 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31918 -) ac_f
="$ac_tmp/stdin";;
31919 *) # Look for the file first in the build tree, then in the source tree
31920 # (if the path is not absolute). The absolute path cannot be DOS-style,
31921 # because $ac_f cannot contain `:'.
31925 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31927 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31929 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31930 as_fn_append ac_file_inputs
" '$ac_f'"
31933 # Let's still pretend it is `configure' which instantiates (i.e., don't
31934 # use $as_me), people would be surprised to read:
31935 # /* config.h. Generated by config.status. */
31936 configure_input
='Generated from '`
31937 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31939 if test x
"$ac_file" != x-
; then
31940 configure_input
="$ac_file. $configure_input"
31941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31942 $as_echo "$as_me: creating $ac_file" >&6;}
31944 # Neutralize special characters interpreted by sed in replacement strings.
31945 case $configure_input in #(
31946 *\
&* |
*\|
* |
*\\* )
31947 ac_sed_conf_input
=`$as_echo "$configure_input" |
31948 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31949 *) ac_sed_conf_input
=$configure_input;;
31953 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
31954 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
31959 ac_dir
=`$as_dirname -- "$ac_file" ||
31960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31961 X"$ac_file" : 'X\(//\)[^/]' \| \
31962 X"$ac_file" : 'X\(//\)$' \| \
31963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31964 $as_echo X"$ac_file" |
31965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31969 /^X\(\/\/\)[^/].*/{
31982 as_dir
="$ac_dir"; as_fn_mkdir_p
31986 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31988 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31989 # A ".." for each directory in $ac_dir_suffix.
31990 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31991 case $ac_top_builddir_sub in
31992 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31993 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31996 ac_abs_top_builddir
=$ac_pwd
31997 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31998 # for backward compatibility:
31999 ac_top_builddir
=$ac_top_build_prefix
32002 .
) # We are building in place.
32004 ac_top_srcdir
=$ac_top_builddir_sub
32005 ac_abs_top_srcdir
=$ac_pwd ;;
32006 [\\/]* | ?
:[\\/]* ) # Absolute name.
32007 ac_srcdir
=$srcdir$ac_dir_suffix;
32008 ac_top_srcdir
=$srcdir
32009 ac_abs_top_srcdir
=$srcdir ;;
32010 *) # Relative name.
32011 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32012 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32013 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32015 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32025 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32026 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32031 # If the template does not know about datarootdir, expand it.
32032 # FIXME: This hack should be removed a few years after 2.60.
32033 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32044 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32045 *datarootdir
*) ac_datarootdir_seen
=yes;;
32046 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32048 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32051 ac_datarootdir_hack='
32052 s&@datadir@&$datadir&g
32053 s&@docdir@&$docdir&g
32054 s&@infodir@&$infodir&g
32055 s&@localedir@&$localedir&g
32056 s&@mandir@&$mandir&g
32057 s&\\\${datarootdir}&$datarootdir&g' ;;
32061 # Neutralize VPATH when `$srcdir' = `.'.
32062 # Shell code in configure.ac might set extrasub.
32063 # FIXME: do we really want to maintain this feature?
32064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32065 ac_sed_extra="$ac_vpsub
32068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32070 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32071 s|@configure_input@|
$ac_sed_conf_input|
;t t
32072 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32073 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
32074 s
&@srcdir@
&$ac_srcdir&;t t
32075 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32076 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32077 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32078 s
&@builddir@
&$ac_builddir&;t t
32079 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32080 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32081 s
&@INSTALL@
&$ac_INSTALL&;t t
32082 $ac_datarootdir_hack
32084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32085 if $ac_cs_awk_getline; then
32086 $AWK -f "$ac_tmp/subs.
awk"
32088 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
32090 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
32092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32093 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
32094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32095 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
32096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32097 which seems to be undefined. Please make sure it is defined" >&5
32098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32099 which seems to be undefined. Please make sure it is defined" >&2;}
32101 rm -f "$ac_tmp/stdin"
32103 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32104 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32112 if test x"$ac_file" != x-; then
32114 $as_echo "/* $configure_input */" \
32115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32116 } >"$ac_tmp/config.h" \
32117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32118 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32119 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32123 mv "$ac_tmp/config.h" "$ac_file" \
32124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32127 $as_echo "/* $configure_input */" \
32128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32129 || as_fn_error $? "could not create -" "$LINENO" 5
32137 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
32140 # Prefer the file from the source tree if names are identical.
32141 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32142 ac_source=$srcdir/$ac_source
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32146 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32148 if test ! -r "$ac_source"; then
32149 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32153 # Try a relative symlink, then a hard link, then a copy.
32155 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32156 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32158 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32159 ln "$ac_source" "$ac_file" 2>/dev/null ||
32160 cp -p "$ac_source" "$ac_file" ||
32161 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32164 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32165 $as_echo "$as_me: executing $ac_file commands" >&6;}
32170 case $ac_file$ac_mode in
32171 "config.h":H) echo > stamp-h ;;
32174 # See if we are running on zsh, and set the options which allow our
32175 # commands through without removal of \ escapes.
32176 if test -n "${ZSH_VERSION+set}" ; then
32177 setopt NO_GLOB_SUBST
32180 cfgfile="${ofile}T"
32181 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32184 cat <<_LT_EOF >> "$cfgfile"
32187 # `$ECHO "$ofile" | sed 's
%^.
*/%%'` - Provide generalized library-building support services.
32188 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32189 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32190 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32192 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32193 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
32194 # Written by Gordon Matzigkeit, 1996
32196 # This file is part of GNU Libtool.
32198 # GNU Libtool is free software; you can redistribute it and/or
32199 # modify it under the terms of the GNU General Public License as
32200 # published by the Free Software Foundation; either version 2 of
32201 # the License, or (at your option) any later version.
32203 # As a special exception to the GNU General Public License,
32204 # if you distribute this file as part of a program or library that
32205 # is built using GNU Libtool, you may include this file under the
32206 # same distribution terms that you use for the rest of that program.
32208 # GNU Libtool is distributed in the hope that it will be useful,
32209 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32210 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32211 # GNU General Public License for more details.
32213 # You should have received a copy of the GNU General Public License
32214 # along with GNU Libtool; see the file COPYING. If not, a copy
32215 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32216 # obtained by writing to the Free Software Foundation, Inc.,
32217 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32220 # The names of the tagged configurations supported by this script.
32221 available_tags="CXX "
32223 # ### BEGIN LIBTOOL CONFIG
32225 # Which release of libtool.m4 was used?
32226 macro_version=$macro_version
32227 macro_revision=$macro_revision
32229 # Whether or not to build shared libraries.
32230 build_libtool_libs=$enable_shared
32232 # Whether or not to build static libraries.
32233 build_old_libs=$enable_static
32235 # What type of objects to build.
32238 # Whether or not to optimize for fast installation.
32239 fast_install=$enable_fast_install
32241 # Shell to use when invoking shell scripts.
32244 # An echo program that protects backslashes.
32248 host_alias=$host_alias
32252 # The build system.
32253 build_alias=$build_alias
32257 # A sed program that does not truncate output.
32260 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32261 Xsed="\$SED -e 1s/^X//"
32263 # A grep program that handles long lines.
32269 # A literal string matcher.
32272 # A BSD- or MS-compatible name lister.
32275 # Whether we need soft or hard links.
32278 # What is the maximum length of a command?
32279 max_cmd_len=$max_cmd_len
32281 # Object file suffix (normally "o").
32284 # Executable file suffix (normally "").
32287 # whether the shell understands "unset".
32290 # turn spaces into newlines.
32293 # turn newlines into spaces.
32296 # An object symbol dumper.
32297 OBJDUMP=$lt_OBJDUMP
32299 # Method to check whether dependent libraries are shared objects.
32300 deplibs_check_method=$lt_deplibs_check_method
32302 # Command to use when deplibs_check_method == "file_magic".
32303 file_magic_cmd=$lt_file_magic_cmd
32307 AR_FLAGS=$lt_AR_FLAGS
32309 # A symbol stripping program.
32312 # Commands used to install an old-style archive.
32314 old_postinstall_cmds=$lt_old_postinstall_cmds
32315 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32317 # Whether to use a lock for old archive extraction.
32318 lock_old_archive_extraction=$lock_old_archive_extraction
32323 # LTCC compiler flags.
32324 LTCFLAGS=$lt_CFLAGS
32326 # Take the output of nm and produce a listing of raw symbols and C names.
32327 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32329 # Transform the output of nm in a proper C declaration.
32330 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32332 # Transform the output of nm in a C name address pair.
32333 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32335 # Transform the output of nm in a C name address pair when lib prefix is needed.
32336 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32338 # The name of the directory that contains temporary libtool files.
32341 # Used to examine libraries when file_magic_cmd begins with "file".
32342 MAGIC_CMD=$MAGIC_CMD
32344 # Must we lock files when doing compilation?
32345 need_locks=$lt_need_locks
32347 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32348 DSYMUTIL=$lt_DSYMUTIL
32350 # Tool to change global to local symbols on Mac OS X.
32353 # Tool to manipulate fat objects and archives on Mac OS X.
32356 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32359 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32360 OTOOL64=$lt_OTOOL64
32362 # Old archive suffix (normally "a").
32365 # Shared library suffix (normally ".so").
32366 shrext_cmds=$lt_shrext_cmds
32368 # The commands to extract the exported symbol list from a shared archive.
32369 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32371 # Variables whose values should be saved in libtool wrapper scripts and
32372 # restored at link time.
32373 variables_saved_for_relink=$lt_variables_saved_for_relink
32375 # Do we need the "lib" prefix for modules?
32376 need_lib_prefix=$need_lib_prefix
32378 # Do we need a version for libraries?
32379 need_version=$need_version
32381 # Library versioning type.
32382 version_type=$version_type
32384 # Shared library runtime path variable.
32385 runpath_var=$runpath_var
32387 # Shared library path variable.
32388 shlibpath_var=$shlibpath_var
32390 # Is shlibpath searched before the hard-coded library search path?
32391 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32393 # Format of library name prefix.
32394 libname_spec=$lt_libname_spec
32396 # List of archive names. First name is the real one, the rest are links.
32397 # The last name is the one that the linker finds with -lNAME
32398 library_names_spec=$lt_library_names_spec
32400 # The coded name of the library, if different from the real name.
32401 soname_spec=$lt_soname_spec
32403 # Permission mode override for installation of shared libraries.
32404 install_override_mode=$lt_install_override_mode
32406 # Command to use after installation of a shared archive.
32407 postinstall_cmds=$lt_postinstall_cmds
32409 # Command to use after uninstallation of a shared archive.
32410 postuninstall_cmds=$lt_postuninstall_cmds
32412 # Commands used to finish a libtool library installation in a directory.
32413 finish_cmds=$lt_finish_cmds
32415 # As "finish_cmds", except a single script fragment to be evaled but
32417 finish_eval=$lt_finish_eval
32419 # Whether we should hardcode library paths into libraries.
32420 hardcode_into_libs=$hardcode_into_libs
32422 # Compile-time system search path for libraries.
32423 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32425 # Run-time system search path for libraries.
32426 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32428 # Whether dlopen is supported.
32429 dlopen_support=$enable_dlopen
32431 # Whether dlopen of programs is supported.
32432 dlopen_self=$enable_dlopen_self
32434 # Whether dlopen of statically linked programs is supported.
32435 dlopen_self_static=$enable_dlopen_self_static
32437 # Commands to strip libraries.
32438 old_striplib=$lt_old_striplib
32439 striplib=$lt_striplib
32442 # The linker used to build libraries.
32445 # How to create reloadable object files.
32446 reload_flag=$lt_reload_flag
32447 reload_cmds=$lt_reload_cmds
32449 # Commands used to build an old-style archive.
32450 old_archive_cmds=$lt_old_archive_cmds
32452 # A language specific compiler.
32455 # Is the compiler the GNU compiler?
32458 # Compiler flag to turn off builtin functions.
32459 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32461 # How to pass a linker flag through the compiler.
32462 wl=$lt_lt_prog_compiler_wl
32464 # Additional compiler flags for building library objects.
32465 pic_flag=$lt_lt_prog_compiler_pic
32467 # Compiler flag to prevent dynamic linking.
32468 link_static_flag=$lt_lt_prog_compiler_static
32470 # Does compiler simultaneously support -c and -o options?
32471 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32473 # Whether or not to add -lc for building shared libraries.
32474 build_libtool_need_lc=$archive_cmds_need_lc
32476 # Whether or not to disallow shared libs when runtime libs are static.
32477 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32479 # Compiler flag to allow reflexive dlopens.
32480 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32482 # Compiler flag to generate shared objects directly from archives.
32483 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32485 # Whether the compiler copes with passing no objects directly.
32486 compiler_needs_object=$lt_compiler_needs_object
32488 # Create an old-style archive from a shared archive.
32489 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32491 # Create a temporary old-style archive to link instead of a shared archive.
32492 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32494 # Commands used to build a shared archive.
32495 archive_cmds=$lt_archive_cmds
32496 archive_expsym_cmds=$lt_archive_expsym_cmds
32498 # Commands used to build a loadable module if different from building
32499 # a shared archive.
32500 module_cmds=$lt_module_cmds
32501 module_expsym_cmds=$lt_module_expsym_cmds
32503 # Whether we are building with GNU ld or not.
32504 with_gnu_ld=$lt_with_gnu_ld
32506 # Flag that allows shared libraries with undefined symbols to be built.
32507 allow_undefined_flag=$lt_allow_undefined_flag
32509 # Flag that enforces no undefined symbols.
32510 no_undefined_flag=$lt_no_undefined_flag
32512 # Flag to hardcode \$libdir into a binary during linking.
32513 # This must work even if \$libdir does not exist
32514 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32516 # If ld is used when linking, flag to hardcode \$libdir into a binary
32517 # during linking. This must work even if \$libdir does not exist.
32518 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32520 # Whether we need a single "-rpath" flag with a separated argument.
32521 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32523 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32524 # DIR into the resulting binary.
32525 hardcode_direct=$hardcode_direct
32527 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32528 # DIR into the resulting binary and the resulting library dependency is
32529 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32530 # library is relocated.
32531 hardcode_direct_absolute=$hardcode_direct_absolute
32533 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32534 # into the resulting binary.
32535 hardcode_minus_L=$hardcode_minus_L
32537 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32538 # into the resulting binary.
32539 hardcode_shlibpath_var=$hardcode_shlibpath_var
32541 # Set to "yes" if building a shared library automatically hardcodes DIR
32542 # into the library and all subsequent libraries and executables linked
32544 hardcode_automatic=$hardcode_automatic
32546 # Set to yes if linker adds runtime paths of dependent libraries
32547 # to runtime path list.
32548 inherit_rpath=$inherit_rpath
32550 # Whether libtool must link a program against all its dependency libraries.
32551 link_all_deplibs=$link_all_deplibs
32553 # Fix the shell variable \$srcfile for the compiler.
32554 fix_srcfile_path=$lt_fix_srcfile_path
32556 # Set to "yes" if exported symbols are required.
32557 always_export_symbols=$always_export_symbols
32559 # The commands to list exported symbols.
32560 export_symbols_cmds=$lt_export_symbols_cmds
32562 # Symbols that should not be listed in the preloaded symbols.
32563 exclude_expsyms=$lt_exclude_expsyms
32565 # Symbols that must always be exported.
32566 include_expsyms=$lt_include_expsyms
32568 # Commands necessary for linking programs (against libraries) with templates.
32569 prelink_cmds=$lt_prelink_cmds
32571 # Specify filename containing input files.
32572 file_list_spec=$lt_file_list_spec
32574 # How to hardcode a shared library path into an executable.
32575 hardcode_action=$hardcode_action
32577 # The directories searched by this compiler when creating a shared library.
32578 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32580 # Dependencies to place before and after the objects being linked to
32581 # create a shared library.
32582 predep_objects=$lt_predep_objects
32583 postdep_objects=$lt_postdep_objects
32584 predeps=$lt_predeps
32585 postdeps=$lt_postdeps
32587 # The library search path used internally by the compiler when linking
32588 # a shared library.
32589 compiler_lib_search_path=$lt_compiler_lib_search_path
32591 # ### END LIBTOOL CONFIG
32597 cat <<\_LT_EOF >> "$cfgfile"
32598 # AIX sometimes has problems with the GCC collect2 program. For some
32599 # reason, if we set the COLLECT_NAMES environment variable, the problems
32600 # vanish in a puff of smoke.
32601 if test "X${COLLECT_NAMES+set}" != Xset; then
32603 export COLLECT_NAMES
32610 ltmain="$ac_aux_dir/ltmain.sh"
32613 # We use sed instead of cat because bash on DJGPP gets confused if
32614 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32615 # text mode, it properly converts lines to CR/LF. This bash problem
32616 # is reportedly fixed, but why not run on old versions too?
32617 sed '/^
# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32618 ||
(rm -f "$cfgfile"; exit 1)
32622 cat << \_LT_EOF
>> "$cfgfile"
32624 # func_dirname file append nondir_replacement
32625 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32626 # otherwise set result to NONDIR_REPLACEMENT.
32630 */*) func_dirname_result
="${1%/*}${2}" ;;
32631 * ) func_dirname_result
="${3}" ;;
32635 # func_basename file
32638 func_basename_result
="${1##*/}"
32641 # func_dirname_and_basename file append nondir_replacement
32642 # perform func_basename and func_dirname in a single function
32644 # dirname: Compute the dirname of FILE. If nonempty,
32645 # add APPEND to the result, otherwise set result
32646 # to NONDIR_REPLACEMENT.
32647 # value returned in "$func_dirname_result"
32648 # basename: Compute filename of FILE.
32649 # value retuned in "$func_basename_result"
32650 # Implementation must be kept synchronized with func_dirname
32651 # and func_basename. For efficiency, we do not delegate to
32652 # those functions but instead duplicate the functionality here.
32653 func_dirname_and_basename
()
32656 */*) func_dirname_result
="${1%/*}${2}" ;;
32657 * ) func_dirname_result
="${3}" ;;
32659 func_basename_result
="${1##*/}"
32662 # func_stripname prefix suffix name
32663 # strip PREFIX and SUFFIX off of NAME.
32664 # PREFIX and SUFFIX must not contain globbing or regex special
32665 # characters, hashes, percent signs, but SUFFIX may contain a leading
32666 # dot (in which case that matches only a dot).
32669 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32670 # positional parameters, so assign one to ordinary parameter first.
32671 func_stripname_result
=${3}
32672 func_stripname_result
=${func_stripname_result#"${1}"}
32673 func_stripname_result
=${func_stripname_result%"${2}"}
32679 func_opt_split_opt
=${1%%=*}
32680 func_opt_split_arg
=${1#*=}
32687 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
32688 *) func_lo2o_result
=${1} ;;
32692 # func_xform libobj-or-source
32695 func_xform_result
=${1%.*}.lo
32698 # func_arith arithmetic-term...
32701 func_arith_result
=$
(( $
* ))
32705 # STRING may not start with a hyphen.
32708 func_len_result
=${#1}
32713 *) # Bourne compatible functions.
32714 cat << \_LT_EOF
>> "$cfgfile"
32716 # func_dirname file append nondir_replacement
32717 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32718 # otherwise set result to NONDIR_REPLACEMENT.
32721 # Extract subdirectory from the argument.
32722 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
32723 if test "X$func_dirname_result" = "X${1}"; then
32724 func_dirname_result
="${3}"
32726 func_dirname_result
="$func_dirname_result${2}"
32730 # func_basename file
32733 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
32737 # func_stripname prefix suffix name
32738 # strip PREFIX and SUFFIX off of NAME.
32739 # PREFIX and SUFFIX must not contain globbing or regex special
32740 # characters, hashes, percent signs, but SUFFIX may contain a leading
32741 # dot (in which case that matches only a dot).
32742 # func_strip_suffix prefix name
32746 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
32747 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
32752 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
32753 my_sed_long_arg
='1s/^-[^=]*=//'
32758 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
32759 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
32765 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
32768 # func_xform libobj-or-source
32771 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
32774 # func_arith arithmetic-term...
32777 func_arith_result
=`expr "$@"`
32781 # STRING may not start with a hyphen.
32784 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32790 case $lt_shell_append in
32792 cat << \_LT_EOF
>> "$cfgfile"
32794 # func_append var value
32795 # Append VALUE to the end of shell variable VAR.
32803 cat << \_LT_EOF
>> "$cfgfile"
32805 # func_append var value
32806 # Append VALUE to the end of shell variable VAR.
32817 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32818 ||
(rm -f "$cfgfile"; exit 1)
32820 mv -f "$cfgfile" "$ofile" ||
32821 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32825 cat <<_LT_EOF >> "$ofile"
32827 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32829 # The linker used to build libraries.
32832 # How to create reloadable object files.
32833 reload_flag=$lt_reload_flag_CXX
32834 reload_cmds=$lt_reload_cmds_CXX
32836 # Commands used to build an old-style archive.
32837 old_archive_cmds=$lt_old_archive_cmds_CXX
32839 # A language specific compiler.
32840 CC=$lt_compiler_CXX
32842 # Is the compiler the GNU compiler?
32845 # Compiler flag to turn off builtin functions.
32846 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32848 # How to pass a linker flag through the compiler.
32849 wl=$lt_lt_prog_compiler_wl_CXX
32851 # Additional compiler flags for building library objects.
32852 pic_flag=$lt_lt_prog_compiler_pic_CXX
32854 # Compiler flag to prevent dynamic linking.
32855 link_static_flag=$lt_lt_prog_compiler_static_CXX
32857 # Does compiler simultaneously support -c and -o options?
32858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32860 # Whether or not to add -lc for building shared libraries.
32861 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32863 # Whether or not to disallow shared libs when runtime libs are static.
32864 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32866 # Compiler flag to allow reflexive dlopens.
32867 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32869 # Compiler flag to generate shared objects directly from archives.
32870 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32872 # Whether the compiler copes with passing no objects directly.
32873 compiler_needs_object=$lt_compiler_needs_object_CXX
32875 # Create an old-style archive from a shared archive.
32876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32878 # Create a temporary old-style archive to link instead of a shared archive.
32879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32881 # Commands used to build a shared archive.
32882 archive_cmds=$lt_archive_cmds_CXX
32883 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32885 # Commands used to build a loadable module if different from building
32886 # a shared archive.
32887 module_cmds=$lt_module_cmds_CXX
32888 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32890 # Whether we are building with GNU ld or not.
32891 with_gnu_ld=$lt_with_gnu_ld_CXX
32893 # Flag that allows shared libraries with undefined symbols to be built.
32894 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32896 # Flag that enforces no undefined symbols.
32897 no_undefined_flag=$lt_no_undefined_flag_CXX
32899 # Flag to hardcode \$libdir into a binary during linking.
32900 # This must work even if \$libdir does not exist
32901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32903 # If ld is used when linking, flag to hardcode \$libdir into a binary
32904 # during linking. This must work even if \$libdir does not exist.
32905 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32907 # Whether we need a single "-rpath" flag with a separated argument.
32908 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32910 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32911 # DIR into the resulting binary.
32912 hardcode_direct=$hardcode_direct_CXX
32914 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32915 # DIR into the resulting binary and the resulting library dependency is
32916 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32917 # library is relocated.
32918 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32920 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32921 # into the resulting binary.
32922 hardcode_minus_L=$hardcode_minus_L_CXX
32924 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32925 # into the resulting binary.
32926 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32928 # Set to "yes" if building a shared library automatically hardcodes DIR
32929 # into the library and all subsequent libraries and executables linked
32931 hardcode_automatic=$hardcode_automatic_CXX
32933 # Set to yes if linker adds runtime paths of dependent libraries
32934 # to runtime path list.
32935 inherit_rpath=$inherit_rpath_CXX
32937 # Whether libtool must link a program against all its dependency libraries.
32938 link_all_deplibs=$link_all_deplibs_CXX
32940 # Fix the shell variable \$srcfile for the compiler.
32941 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32943 # Set to "yes" if exported symbols are required.
32944 always_export_symbols=$always_export_symbols_CXX
32946 # The commands to list exported symbols.
32947 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32949 # Symbols that should not be listed in the preloaded symbols.
32950 exclude_expsyms=$lt_exclude_expsyms_CXX
32952 # Symbols that must always be exported.
32953 include_expsyms=$lt_include_expsyms_CXX
32955 # Commands necessary for linking programs (against libraries) with templates.
32956 prelink_cmds=$lt_prelink_cmds_CXX
32958 # Specify filename containing input files.
32959 file_list_spec=$lt_file_list_spec_CXX
32961 # How to hardcode a shared library path into an executable.
32962 hardcode_action=$hardcode_action_CXX
32964 # The directories searched by this compiler when creating a shared library.
32965 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32967 # Dependencies to place before and after the objects being linked to
32968 # create a shared library.
32969 predep_objects=$lt_predep_objects_CXX
32970 postdep_objects=$lt_postdep_objects_CXX
32971 predeps=$lt_predeps_CXX
32972 postdeps=$lt_postdeps_CXX
32974 # The library search path used internally by the compiler when linking
32975 # a shared library.
32976 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32978 # ### END LIBTOOL TAG CONFIG: CXX
32982 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
32983 "nm.h":L
) echo > stamp-nmh
;;
32984 "gcore":F
) chmod +x gcore
;;
32992 ac_clean_files
=$ac_clean_files_save
32994 test $ac_write_fail = 0 ||
32995 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
32998 # configure is writing to config.log, and then calls config.status.
32999 # config.status does its own redirection, appending to config.log.
33000 # Unfortunately, on DOS this fails, as config.log is still kept open
33001 # by configure, so config.status won't be able to write to it; its
33002 # output is simply discarded. So we exec the FD to /dev/null,
33003 # effectively closing config.log, so it can be properly (re)opened and
33004 # appended to by config.status. When coming back to configure, we
33005 # need to make the FD available again.
33006 if test "$no_create" != yes; then
33008 ac_config_status_args
=
33009 test "$silent" = yes &&
33010 ac_config_status_args
="$ac_config_status_args --quiet"
33012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33015 # would make configure fail if this is the last instruction.
33016 $ac_cs_success || as_fn_exit
1
33020 # CONFIG_SUBDIRS section.
33022 if test "$no_recursion" != yes; then
33024 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
33025 # so they do not pile up.
33026 ac_sub_configure_args
=
33028 eval "set x $ac_configure_args"
33032 if test -n "$ac_prev"; then
33037 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
33038 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
33039 ac_prev
=cache_file
;;
33040 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
33041 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
33044 --config-cache |
-C)
33046 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
33048 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
33050 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
33052 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
33054 --disable-option-checking)
33058 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33060 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
33064 # Always prepend --prefix to ensure using the same prefix
33065 # in subdir configurations.
33066 ac_arg
="--prefix=$prefix"
33068 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33070 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
33073 if test "$silent" = yes; then
33074 ac_sub_configure_args
="--silent $ac_sub_configure_args"
33077 # Always prepend --disable-option-checking to silence warnings, since
33078 # different subdirs can have different --enable and --with options.
33079 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
33082 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
33084 # Do not complain, so a configure script can configure whichever
33085 # parts of a large source tree are present.
33086 test -d "$srcdir/$ac_dir" ||
continue
33088 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33089 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
33090 $as_echo "$ac_msg" >&6
33091 as_dir
="$ac_dir"; as_fn_mkdir_p
33095 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33097 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33098 # A ".." for each directory in $ac_dir_suffix.
33099 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33100 case $ac_top_builddir_sub in
33101 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33102 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33105 ac_abs_top_builddir
=$ac_pwd
33106 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33107 # for backward compatibility:
33108 ac_top_builddir
=$ac_top_build_prefix
33111 .
) # We are building in place.
33113 ac_top_srcdir
=$ac_top_builddir_sub
33114 ac_abs_top_srcdir
=$ac_pwd ;;
33115 [\\/]* | ?
:[\\/]* ) # Absolute name.
33116 ac_srcdir
=$srcdir$ac_dir_suffix;
33117 ac_top_srcdir
=$srcdir
33118 ac_abs_top_srcdir
=$srcdir ;;
33119 *) # Relative name.
33120 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33121 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33122 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33124 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33129 # Check for guested configure; otherwise get Cygnus style configure.
33130 if test -f "$ac_srcdir/configure.gnu"; then
33131 ac_sub_configure
=$ac_srcdir/configure.gnu
33132 elif test -f "$ac_srcdir/configure"; then
33133 ac_sub_configure
=$ac_srcdir/configure
33134 elif test -f "$ac_srcdir/configure.in"; then
33135 # This should be Cygnus configure.
33136 ac_sub_configure
=$ac_aux_dir/configure
33138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
33139 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33143 # The recursion is here.
33144 if test -n "$ac_sub_configure"; then
33145 # Make the cache file name correct relative to the subdirectory.
33146 case $cache_file in
33147 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
33148 *) # Relative name.
33149 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
33152 { $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
33153 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33154 # The eval makes quoting arguments work.
33155 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33156 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33157 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
33163 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
33164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33165 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}