More updated translations
[binutils-gdb.git] / gdb / configure
blob1531f62f76a0e23d7d181e0781f179d9924e0f72
1 #! /bin/sh
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 :
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
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
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
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
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
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 || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
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
156 as_fn_exit 255
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 :
162 emulate sh
163 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
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; }
183 exitcode=0
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || 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 :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
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 :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
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
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
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.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
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
265 exit 255
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."
274 else
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."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
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 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
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
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
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 :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
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.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
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
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
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. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
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).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
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
530 as_ln_s='ln -s'
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 ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
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"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
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
568 exec 6>&1
570 # Name of the host.
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`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
595 ac_unique_file="main.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_header_list=
633 gt_needs=
634 enable_option_checking=no
635 ac_subst_vars='LTLIBOBJS
636 LIBOBJS
637 GCORE_TRANSFORM_NAME
638 GDB_TRANSFORM_NAME
639 XSLTPROC
640 NM_H
641 GDB_NM_FILE
642 CTF_DEPS
643 LIBCTF
644 LTLIBBABELTRACE
645 LIBBABELTRACE
646 HAVE_LIBBABELTRACE
647 LIBBACKTRACE_LIB
648 LIBBACKTRACE_INC
649 HAVE_NATIVE_GCORE_HOST
650 NAT_GENERATED_FILES
651 XM_CLIBS
652 MH_CFLAGS
653 LOADLIBES
654 NAT_CDEPS
655 NATDEPFILES
656 NAT_FILE
657 target_subdir
658 CONFIG_UNINSTALL
659 CONFIG_INSTALL
660 CONFIG_CLEAN
661 CONFIG_ALL
662 CONFIG_SRCS
663 CONFIG_DEPS
664 CONFIG_OBS
665 PROFILE_CFLAGS
666 ENABLE_CFLAGS
667 SIM_OBS
669 XMKMF
670 GDBTK_SRC_DIR
671 GDBTK_CFLAGS
672 GDBTKLIBS
673 X_LIBS
674 X_LDFLAGS
675 X_CFLAGS
676 TK_XINCLUDES
677 TK_DEPS
678 TK_LIBRARY
679 TK_INCLUDE
680 TK_STUB_LIB_SPEC
681 TK_STUB_LIB_FLAG
682 TK_STUB_LIB_FILE
683 TK_LIB_SPEC
684 TK_LIB_FLAG
685 TK_LIB_FILE
686 TK_SRC_DIR
687 TK_BIN_DIR
688 TK_VERSION
689 TCL_DEPS
690 TCL_LIBRARY
691 TCL_INCLUDE
692 TCL_STUB_LIB_SPEC
693 TCL_STUB_LIB_FLAG
694 TCL_STUB_LIB_FILE
695 TCL_LIB_SPEC
696 TCL_LIB_FLAG
697 TCL_LIB_FILE
698 TCL_SRC_DIR
699 TCL_BIN_DIR
700 TCL_PATCH_LEVEL
701 TCL_VERSION
702 WIN32LDAPP
703 WIN32LIBS
704 GUI_CFLAGS_X
705 LIBGUI
706 LTLIBLZMA
707 LIBLZMA
708 HAVE_LIBLZMA
709 SER_HARDWIRE
710 WERROR_CFLAGS
711 WARN_CFLAGS
712 SYSTEM_GDBINIT_DIR
713 SYSTEM_GDBINIT
714 TARGET_SYSTEM_ROOT
715 CONFIG_LDFLAGS
716 RDYNAMIC
717 SRCHIGH_CFLAGS
718 SRCHIGH_LIBS
719 HAVE_GUILE_FALSE
720 HAVE_GUILE_TRUE
721 GUILE_LIBS
722 GUILE_CPPFLAGS
723 GUILD_TARGET_FLAG
724 GUILD
725 pkg_config_prog_path
726 HAVE_PYTHON_FALSE
727 HAVE_PYTHON_TRUE
728 PYTHON_LIBS
729 PYTHON_CPPFLAGS
730 PYTHON_CFLAGS
731 python_prog_path
732 GMPINC
733 GMPLIBS
734 LTLIBEXPAT
735 LIBEXPAT
736 HAVE_LIBEXPAT
737 JIT_READER_DIR
738 TARGET_PTR
739 READLINE_DOC_SOURCE_INCLUDES
740 READLINE_TEXI_INCFLAG
741 READLINE_CFLAGS
742 READLINE_DEPS
743 READLINE
744 ZSTD_LIBS
745 ZSTD_CFLAGS
746 zlibinc
747 zlibdir
749 WINDRES
750 DLLTOOL
751 YFLAGS
752 YACC
753 REPORT_BUGS_TEXI
754 REPORT_BUGS_TO
755 PKGVERSION
756 CODESIGN_CERT
757 DEBUGINFOD_LIBS
758 DEBUGINFOD_CFLAGS
759 HAVE_NATIVE_GCORE_TARGET
760 TARGET_OBS
761 AMD_DBGAPI_LIBS
762 AMD_DBGAPI_CFLAGS
763 HAVE_GSTACK
764 ENABLE_BFD_64_BIT_FALSE
765 ENABLE_BFD_64_BIT_TRUE
766 subdirs
767 GDB_DATADIR
768 DEBUGDIR
769 MAKEINFO_EXTRA_FLAGS
770 MAKEINFOFLAGS
771 MAKEINFO
772 PACKAGE
773 CATOBJEXT
774 GENCAT
775 INSTOBJEXT
776 DATADIRNAME
777 CATALOGS
778 INCINTL
779 LIBINTL_DEP
780 POSUB
781 LTLIBINTL
782 LIBINTL
783 INTLLIBS
784 LTLIBICONV
785 LIBICONV
786 INTL_MACOSX_LIBS
787 MSGMERGE
788 XGETTEXT
789 GMSGFMT
790 MSGFMT
791 USE_NLS
792 MKINSTALLDIRS
793 INSTALL_DATA
794 INSTALL_SCRIPT
795 INSTALL_PROGRAM
796 SET_MAKE
797 PKG_CONFIG_LIBDIR
798 PKG_CONFIG_PATH
799 PKG_CONFIG
800 CCDEPMODE
801 DEPDIR
802 am__leading_dot
803 LTLIBXXHASH
804 LIBXXHASH
805 HAVE_LIBXXHASH
806 LTLIBIPT
807 LIBIPT
808 HAVE_LIBIPT
809 PTHREAD_CFLAGS
810 PTHREAD_LIBS
811 PTHREAD_CC
812 ax_pthread_config
813 ALLOCA
814 CXX_DIALECT
815 HAVE_CXX17
816 CXXCPP
817 OTOOL64
818 OTOOL
819 LIPO
820 NMEDIT
821 DSYMUTIL
823 RANLIB
825 OBJDUMP
826 LN_S
828 ac_ct_DUMPBIN
829 DUMPBIN
831 FGREP
833 LIBTOOL
834 target_noncanonical
835 INSTALL_STRIP_PROGRAM
836 STRIP
837 install_sh
838 LARGEFILE_CPPFLAGS
839 target_os
840 target_vendor
841 target_cpu
842 target
843 host_os
844 host_vendor
845 host_cpu
846 host
847 build_os
848 build_vendor
849 build_cpu
850 build
851 EGREP
852 GREP
854 ac_ct_CXX
855 CXXFLAGS
857 OBJEXT
858 EXEEXT
859 ac_ct_CC
860 CPPFLAGS
861 LDFLAGS
862 CFLAGS
864 MAINT
865 MAINTAINER_MODE_FALSE
866 MAINTAINER_MODE_TRUE
867 target_alias
868 host_alias
869 build_alias
870 LIBS
871 ECHO_T
872 ECHO_N
873 ECHO_C
874 DEFS
875 mandir
876 localedir
877 libdir
878 psdir
879 pdfdir
880 dvidir
881 htmldir
882 infodir
883 docdir
884 oldincludedir
885 includedir
886 localstatedir
887 sharedstatedir
888 sysconfdir
889 datadir
890 datarootdir
891 libexecdir
892 sbindir
893 bindir
894 program_transform_name
895 prefix
896 exec_prefix
897 PACKAGE_URL
898 PACKAGE_BUGREPORT
899 PACKAGE_STRING
900 PACKAGE_VERSION
901 PACKAGE_TARNAME
902 PACKAGE_NAME
903 PATH_SEPARATOR
904 SHELL'
905 ac_subst_files='nat_makefile_frag'
906 ac_user_opts='
907 enable_option_checking
908 enable_maintainer_mode
909 enable_plugins
910 enable_largefile
911 enable_shared
912 enable_static
913 with_pic
914 enable_fast_install
915 with_gnu_ld
916 enable_libtool_lock
917 enable_threading
918 with_intel_pt
919 enable_rpath
920 with_libipt_prefix
921 with_libipt_type
922 with_xxhash
923 with_libxxhash_prefix
924 with_libxxhash_type
925 enable_nls
926 with_libiconv_prefix
927 with_libiconv_type
928 with_libintl_prefix
929 with_libintl_type
930 with_separate_debug_dir
931 with_additional_debug_dirs
932 with_gdb_datadir
933 with_relocated_sources
934 with_auto_load_dir
935 with_auto_load_safe_path
936 enable_targets
937 enable_64_bit_bfd
938 with_amd_dbgapi
939 enable_tui
940 enable_gdbtk
941 with_debuginfod
942 with_libunwind_ia64
943 with_curses
944 enable_profiling
945 enable_codesign
946 with_pkgversion
947 with_bugurl
948 with_system_zlib
949 with_zstd
950 with_iconv_bin
951 with_system_readline
952 with_jit_reader_dir
953 with_expat
954 with_libexpat_prefix
955 with_libexpat_type
956 with_python
957 with_python_libdir
958 with_guile
959 enable_source_highlight
960 with_sysroot
961 with_system_gdbinit
962 with_system_gdbinit_dir
963 enable_werror
964 enable_build_warnings
965 enable_gdb_build_warnings
966 enable_ubsan
967 with_lzma
968 with_liblzma_prefix
969 with_liblzma_type
970 with_tcl
971 with_tk
972 with_x
973 enable_sim
974 enable_libbacktrace
975 with_babeltrace
976 with_libbabeltrace_prefix
977 with_libbabeltrace_type
978 enable_libctf
979 enable_unit_tests
981 ac_precious_vars='build_alias
982 host_alias
983 target_alias
985 CFLAGS
986 LDFLAGS
987 LIBS
988 CPPFLAGS
990 CXXFLAGS
993 CXXCPP
994 PKG_CONFIG
995 PKG_CONFIG_PATH
996 PKG_CONFIG_LIBDIR
997 MAKEINFO
998 MAKEINFOFLAGS
999 AMD_DBGAPI_CFLAGS
1000 AMD_DBGAPI_LIBS
1001 DEBUGINFOD_CFLAGS
1002 DEBUGINFOD_LIBS
1003 YACC
1004 YFLAGS
1005 ZSTD_CFLAGS
1006 ZSTD_LIBS
1007 GMPLIBS
1008 GMPINC
1009 XMKMF'
1010 ac_subdirs_all='testsuite
1011 gdbtk'
1013 # Initialize some variables set by options.
1014 ac_init_help=
1015 ac_init_version=false
1016 ac_unrecognized_opts=
1017 ac_unrecognized_sep=
1018 # The variables have the same names as the options, with
1019 # dashes changed to underlines.
1020 cache_file=/dev/null
1021 exec_prefix=NONE
1022 no_create=
1023 no_recursion=
1024 prefix=NONE
1025 program_prefix=NONE
1026 program_suffix=NONE
1027 program_transform_name=s,x,x,
1028 silent=
1029 site=
1030 srcdir=
1031 verbose=
1032 x_includes=NONE
1033 x_libraries=NONE
1035 # Installation directory options.
1036 # These are left unexpanded so users can "make install exec_prefix=/foo"
1037 # and all the variables that are supposed to be based on exec_prefix
1038 # by default will actually change.
1039 # Use braces instead of parens because sh, perl, etc. also accept them.
1040 # (The list follows the same order as the GNU Coding Standards.)
1041 bindir='${exec_prefix}/bin'
1042 sbindir='${exec_prefix}/sbin'
1043 libexecdir='${exec_prefix}/libexec'
1044 datarootdir='${prefix}/share'
1045 datadir='${datarootdir}'
1046 sysconfdir='${prefix}/etc'
1047 sharedstatedir='${prefix}/com'
1048 localstatedir='${prefix}/var'
1049 includedir='${prefix}/include'
1050 oldincludedir='/usr/include'
1051 docdir='${datarootdir}/doc/${PACKAGE}'
1052 infodir='${datarootdir}/info'
1053 htmldir='${docdir}'
1054 dvidir='${docdir}'
1055 pdfdir='${docdir}'
1056 psdir='${docdir}'
1057 libdir='${exec_prefix}/lib'
1058 localedir='${datarootdir}/locale'
1059 mandir='${datarootdir}/man'
1061 ac_prev=
1062 ac_dashdash=
1063 for ac_option
1065 # If the previous option needs an argument, assign it.
1066 if test -n "$ac_prev"; then
1067 eval $ac_prev=\$ac_option
1068 ac_prev=
1069 continue
1072 case $ac_option in
1073 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1074 *=) ac_optarg= ;;
1075 *) ac_optarg=yes ;;
1076 esac
1078 # Accept the important Cygnus configure options, so we can diagnose typos.
1080 case $ac_dashdash$ac_option in
1082 ac_dashdash=yes ;;
1084 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1085 ac_prev=bindir ;;
1086 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1087 bindir=$ac_optarg ;;
1089 -build | --build | --buil | --bui | --bu)
1090 ac_prev=build_alias ;;
1091 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1092 build_alias=$ac_optarg ;;
1094 -cache-file | --cache-file | --cache-fil | --cache-fi \
1095 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1096 ac_prev=cache_file ;;
1097 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1098 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1099 cache_file=$ac_optarg ;;
1101 --config-cache | -C)
1102 cache_file=config.cache ;;
1104 -datadir | --datadir | --datadi | --datad)
1105 ac_prev=datadir ;;
1106 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1107 datadir=$ac_optarg ;;
1109 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1110 | --dataroo | --dataro | --datar)
1111 ac_prev=datarootdir ;;
1112 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1113 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1114 datarootdir=$ac_optarg ;;
1116 -disable-* | --disable-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid feature name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "enable_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval enable_$ac_useropt=no ;;
1132 -docdir | --docdir | --docdi | --doc | --do)
1133 ac_prev=docdir ;;
1134 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1135 docdir=$ac_optarg ;;
1137 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1138 ac_prev=dvidir ;;
1139 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1140 dvidir=$ac_optarg ;;
1142 -enable-* | --enable-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid feature name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "enable_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval enable_$ac_useropt=\$ac_optarg ;;
1158 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1159 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1160 | --exec | --exe | --ex)
1161 ac_prev=exec_prefix ;;
1162 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1163 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1164 | --exec=* | --exe=* | --ex=*)
1165 exec_prefix=$ac_optarg ;;
1167 -gas | --gas | --ga | --g)
1168 # Obsolete; use --with-gas.
1169 with_gas=yes ;;
1171 -help | --help | --hel | --he | -h)
1172 ac_init_help=long ;;
1173 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1174 ac_init_help=recursive ;;
1175 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1176 ac_init_help=short ;;
1178 -host | --host | --hos | --ho)
1179 ac_prev=host_alias ;;
1180 -host=* | --host=* | --hos=* | --ho=*)
1181 host_alias=$ac_optarg ;;
1183 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1184 ac_prev=htmldir ;;
1185 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1186 | --ht=*)
1187 htmldir=$ac_optarg ;;
1189 -includedir | --includedir | --includedi | --included | --include \
1190 | --includ | --inclu | --incl | --inc)
1191 ac_prev=includedir ;;
1192 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1193 | --includ=* | --inclu=* | --incl=* | --inc=*)
1194 includedir=$ac_optarg ;;
1196 -infodir | --infodir | --infodi | --infod | --info | --inf)
1197 ac_prev=infodir ;;
1198 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1199 infodir=$ac_optarg ;;
1201 -libdir | --libdir | --libdi | --libd)
1202 ac_prev=libdir ;;
1203 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1204 libdir=$ac_optarg ;;
1206 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1207 | --libexe | --libex | --libe)
1208 ac_prev=libexecdir ;;
1209 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1210 | --libexe=* | --libex=* | --libe=*)
1211 libexecdir=$ac_optarg ;;
1213 -localedir | --localedir | --localedi | --localed | --locale)
1214 ac_prev=localedir ;;
1215 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1216 localedir=$ac_optarg ;;
1218 -localstatedir | --localstatedir | --localstatedi | --localstated \
1219 | --localstate | --localstat | --localsta | --localst | --locals)
1220 ac_prev=localstatedir ;;
1221 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1222 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1223 localstatedir=$ac_optarg ;;
1225 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1226 ac_prev=mandir ;;
1227 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1228 mandir=$ac_optarg ;;
1230 -nfp | --nfp | --nf)
1231 # Obsolete; use --without-fp.
1232 with_fp=no ;;
1234 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1235 | --no-cr | --no-c | -n)
1236 no_create=yes ;;
1238 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1239 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1240 no_recursion=yes ;;
1242 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1243 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1244 | --oldin | --oldi | --old | --ol | --o)
1245 ac_prev=oldincludedir ;;
1246 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1247 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1248 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1249 oldincludedir=$ac_optarg ;;
1251 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1252 ac_prev=prefix ;;
1253 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1254 prefix=$ac_optarg ;;
1256 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1257 | --program-pre | --program-pr | --program-p)
1258 ac_prev=program_prefix ;;
1259 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1260 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1261 program_prefix=$ac_optarg ;;
1263 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1264 | --program-suf | --program-su | --program-s)
1265 ac_prev=program_suffix ;;
1266 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1267 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1268 program_suffix=$ac_optarg ;;
1270 -program-transform-name | --program-transform-name \
1271 | --program-transform-nam | --program-transform-na \
1272 | --program-transform-n | --program-transform- \
1273 | --program-transform | --program-transfor \
1274 | --program-transfo | --program-transf \
1275 | --program-trans | --program-tran \
1276 | --progr-tra | --program-tr | --program-t)
1277 ac_prev=program_transform_name ;;
1278 -program-transform-name=* | --program-transform-name=* \
1279 | --program-transform-nam=* | --program-transform-na=* \
1280 | --program-transform-n=* | --program-transform-=* \
1281 | --program-transform=* | --program-transfor=* \
1282 | --program-transfo=* | --program-transf=* \
1283 | --program-trans=* | --program-tran=* \
1284 | --progr-tra=* | --program-tr=* | --program-t=*)
1285 program_transform_name=$ac_optarg ;;
1287 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1288 ac_prev=pdfdir ;;
1289 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1290 pdfdir=$ac_optarg ;;
1292 -psdir | --psdir | --psdi | --psd | --ps)
1293 ac_prev=psdir ;;
1294 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1295 psdir=$ac_optarg ;;
1297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1298 | -silent | --silent | --silen | --sile | --sil)
1299 silent=yes ;;
1301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1302 ac_prev=sbindir ;;
1303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1304 | --sbi=* | --sb=*)
1305 sbindir=$ac_optarg ;;
1307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1309 | --sharedst | --shareds | --shared | --share | --shar \
1310 | --sha | --sh)
1311 ac_prev=sharedstatedir ;;
1312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1315 | --sha=* | --sh=*)
1316 sharedstatedir=$ac_optarg ;;
1318 -site | --site | --sit)
1319 ac_prev=site ;;
1320 -site=* | --site=* | --sit=*)
1321 site=$ac_optarg ;;
1323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1324 ac_prev=srcdir ;;
1325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1326 srcdir=$ac_optarg ;;
1328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1329 | --syscon | --sysco | --sysc | --sys | --sy)
1330 ac_prev=sysconfdir ;;
1331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1333 sysconfdir=$ac_optarg ;;
1335 -target | --target | --targe | --targ | --tar | --ta | --t)
1336 ac_prev=target_alias ;;
1337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1338 target_alias=$ac_optarg ;;
1340 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1341 verbose=yes ;;
1343 -version | --version | --versio | --versi | --vers | -V)
1344 ac_init_version=: ;;
1346 -with-* | --with-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350 as_fn_error $? "invalid package name: $ac_useropt"
1351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1355 "with_$ac_useropt"
1356 "*) ;;
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1359 esac
1360 eval with_$ac_useropt=\$ac_optarg ;;
1362 -without-* | --without-*)
1363 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1364 # Reject names that are not valid shell variable names.
1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366 as_fn_error $? "invalid package name: $ac_useropt"
1367 ac_useropt_orig=$ac_useropt
1368 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1371 "with_$ac_useropt"
1372 "*) ;;
1373 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1374 ac_unrecognized_sep=', ';;
1375 esac
1376 eval with_$ac_useropt=no ;;
1378 --x)
1379 # Obsolete; use --with-x.
1380 with_x=yes ;;
1382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1383 | --x-incl | --x-inc | --x-in | --x-i)
1384 ac_prev=x_includes ;;
1385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1387 x_includes=$ac_optarg ;;
1389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1391 ac_prev=x_libraries ;;
1392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1394 x_libraries=$ac_optarg ;;
1396 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1397 Try \`$0 --help' for more information"
1400 *=*)
1401 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1402 # Reject names that are not valid shell variable names.
1403 case $ac_envvar in #(
1404 '' | [0-9]* | *[!_$as_cr_alnum]* )
1405 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1406 esac
1407 eval $ac_envvar=\$ac_optarg
1408 export $ac_envvar ;;
1411 # FIXME: should be removed in autoconf 3.0.
1412 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1413 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1414 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1415 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1418 esac
1419 done
1421 if test -n "$ac_prev"; then
1422 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1423 as_fn_error $? "missing argument to $ac_option"
1426 if test -n "$ac_unrecognized_opts"; then
1427 case $enable_option_checking in
1428 no) ;;
1429 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1430 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1431 esac
1434 # Check all directory arguments for consistency.
1435 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1436 datadir sysconfdir sharedstatedir localstatedir includedir \
1437 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1438 libdir localedir mandir
1440 eval ac_val=\$$ac_var
1441 # Remove trailing slashes.
1442 case $ac_val in
1443 */ )
1444 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1445 eval $ac_var=\$ac_val;;
1446 esac
1447 # Be sure to have absolute directory names.
1448 case $ac_val in
1449 [\\/$]* | ?:[\\/]* ) continue;;
1450 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1451 esac
1452 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1453 done
1455 # There might be people who depend on the old broken behavior: `$host'
1456 # used to hold the argument of --host etc.
1457 # FIXME: To remove some day.
1458 build=$build_alias
1459 host=$host_alias
1460 target=$target_alias
1462 # FIXME: To remove some day.
1463 if test "x$host_alias" != x; then
1464 if test "x$build_alias" = x; then
1465 cross_compiling=maybe
1466 elif test "x$build_alias" != "x$host_alias"; then
1467 cross_compiling=yes
1471 ac_tool_prefix=
1472 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1474 test "$silent" = yes && exec 6>/dev/null
1477 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di=`ls -di .` &&
1479 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1480 as_fn_error $? "working directory cannot be determined"
1481 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1482 as_fn_error $? "pwd does not report name of working directory"
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487 ac_srcdir_defaulted=yes
1488 # Try the directory containing this script, then the parent directory.
1489 ac_confdir=`$as_dirname -- "$as_myself" ||
1490 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491 X"$as_myself" : 'X\(//\)[^/]' \| \
1492 X"$as_myself" : 'X\(//\)$' \| \
1493 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1494 $as_echo X"$as_myself" |
1495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1496 s//\1/
1499 /^X\(\/\/\)[^/].*/{
1500 s//\1/
1503 /^X\(\/\/\)$/{
1504 s//\1/
1507 /^X\(\/\).*/{
1508 s//\1/
1511 s/.*/./; q'`
1512 srcdir=$ac_confdir
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1514 srcdir=..
1516 else
1517 ac_srcdir_defaulted=no
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1521 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1523 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1524 ac_abs_confdir=`(
1525 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1526 pwd)`
1527 # When building in place, set srcdir=.
1528 if test "$ac_abs_confdir" = "$ac_pwd"; then
1529 srcdir=.
1531 # Remove unnecessary trailing slashes from srcdir.
1532 # Double slashes in file names in object file debugging info
1533 # mess up M-x gdb in Emacs.
1534 case $srcdir in
1535 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1536 esac
1537 for ac_var in $ac_precious_vars; do
1538 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_env_${ac_var}_value=\$${ac_var}
1540 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1541 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1542 done
1545 # Report the --help message.
1547 if test "$ac_init_help" = "long"; then
1548 # Omit some internal or obsolete options to make the list less imposing.
1549 # This message is too long to be a string in the A/UX 3.1 sh.
1550 cat <<_ACEOF
1551 \`configure' configures this package to adapt to many kinds of systems.
1553 Usage: $0 [OPTION]... [VAR=VALUE]...
1555 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1556 VAR=VALUE. See below for descriptions of some of the useful variables.
1558 Defaults for the options are specified in brackets.
1560 Configuration:
1561 -h, --help display this help and exit
1562 --help=short display options specific to this package
1563 --help=recursive display the short help of all the included packages
1564 -V, --version display version information and exit
1565 -q, --quiet, --silent do not print \`checking ...' messages
1566 --cache-file=FILE cache test results in FILE [disabled]
1567 -C, --config-cache alias for \`--cache-file=config.cache'
1568 -n, --no-create do not create output files
1569 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1571 Installation directories:
1572 --prefix=PREFIX install architecture-independent files in PREFIX
1573 [$ac_default_prefix]
1574 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1575 [PREFIX]
1577 By default, \`make install' will install all the files in
1578 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1579 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1580 for instance \`--prefix=\$HOME'.
1582 For better control, use the options below.
1584 Fine tuning of the installation directories:
1585 --bindir=DIR user executables [EPREFIX/bin]
1586 --sbindir=DIR system admin executables [EPREFIX/sbin]
1587 --libexecdir=DIR program executables [EPREFIX/libexec]
1588 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1589 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1590 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1591 --libdir=DIR object code libraries [EPREFIX/lib]
1592 --includedir=DIR C header files [PREFIX/include]
1593 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1594 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1595 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1596 --infodir=DIR info documentation [DATAROOTDIR/info]
1597 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1598 --mandir=DIR man documentation [DATAROOTDIR/man]
1599 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1600 --htmldir=DIR html documentation [DOCDIR]
1601 --dvidir=DIR dvi documentation [DOCDIR]
1602 --pdfdir=DIR pdf documentation [DOCDIR]
1603 --psdir=DIR ps documentation [DOCDIR]
1604 _ACEOF
1606 cat <<\_ACEOF
1608 Program names:
1609 --program-prefix=PREFIX prepend PREFIX to installed program names
1610 --program-suffix=SUFFIX append SUFFIX to installed program names
1611 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1613 X features:
1614 --x-includes=DIR X include files are in DIR
1615 --x-libraries=DIR X library files are in DIR
1617 System types:
1618 --build=BUILD configure for building on BUILD [guessed]
1619 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1620 --target=TARGET configure for building compilers for TARGET [HOST]
1621 _ACEOF
1624 if test -n "$ac_init_help"; then
1626 cat <<\_ACEOF
1628 Optional Features:
1629 --disable-option-checking ignore unrecognized --enable/--with options
1630 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1631 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1632 --enable-maintainer-mode
1633 enable make rules and dependencies not useful (and
1634 sometimes confusing) to the casual installer
1635 --enable-plugins Enable support for plugins
1636 --disable-largefile omit support for large files
1637 --enable-shared[=PKGS] build shared libraries [default=yes]
1638 --enable-static[=PKGS] build static libraries [default=yes]
1639 --enable-fast-install[=PKGS]
1640 optimize for fast installation [default=yes]
1641 --disable-libtool-lock avoid locking (might break parallel builds)
1642 --enable-threading include support for parallel processing of data
1643 (yes/no)
1644 --disable-rpath do not hardcode runtime library paths
1645 --disable-nls do not use Native Language Support
1646 --enable-targets=TARGETS
1647 alternative target configurations
1648 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1649 --enable-tui enable full-screen terminal user interface (TUI)
1650 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1651 --enable-profiling enable profiling of GDB
1652 --enable-codesign=CERT sign gdb with 'codesign -s CERT'
1653 --enable-source-highlight
1654 enable source-highlight for source listings
1655 --enable-werror treat compile warnings as errors
1656 --enable-build-warnings enable build-time compiler warnings if gcc is used
1657 --enable-gdb-build-warnings
1658 enable GDB specific build-time compiler warnings if
1659 gcc is used
1660 --enable-ubsan enable undefined behavior sanitizer (auto/yes/no)
1661 --enable-sim link gdb with simulator
1662 --enable-libbacktrace use libbacktrace to write a backtrace after a fatal
1663 signal.
1664 --enable-libctf Handle .ctf type-info sections [default=yes]
1665 --enable-unit-tests Enable the inclusion of unit tests when compiling
1668 Optional Packages:
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-pic try to use only PIC/non-PIC objects [default=use
1672 both]
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1675 --with-gnu-ld assume the C compiler uses GNU ld default=no
1676 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1677 --without-libipt-prefix don't search for libipt in includedir and libdir
1678 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1679 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1680 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1681 --without-libxxhash-prefix don't search for libxxhash in includedir and libdir
1682 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1683 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1684 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1685 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1686 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1687 --without-libintl-prefix don't search for libintl in includedir and libdir
1688 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1689 --with-separate-debug-dir=PATH
1690 look for global separate debug info in this path
1691 [LIBDIR/debug]
1692 --with-additional-debug-dirs=PATHs
1693 colon-separated list of additional directories to
1694 search for separate debug info
1695 --with-gdb-datadir=PATH look for global separate data files in this path
1696 [DATADIR/gdb]
1697 --with-relocated-sources=PATH
1698 automatically relocate this path for source files
1699 --with-auto-load-dir=PATH
1700 directories from which to load auto-loaded scripts
1701 [$debugdir:$datadir/auto-load]
1702 --with-auto-load-safe-path=PATH
1703 directories safe to hold auto-loaded files
1704 [--with-auto-load-dir]
1705 --without-auto-load-safe-path
1706 do not restrict auto-loaded files locations
1707 --with-amd-dbgapi support for the amd-dbgapi target (yes / no / auto)
1708 --with-debuginfod Enable debuginfo lookups with debuginfod
1709 (auto/yes/no)
1710 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1711 --with-curses use the curses library instead of the termcap
1712 library
1713 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1714 --with-bugurl=URL Direct users to URL to report a bug
1715 --with-system-zlib use installed libz
1716 --with-zstd support zstd compressed debug sections
1717 (default=auto)
1718 --with-iconv-bin=PATH specify where to find the iconv program
1719 --with-system-readline use installed readline library
1720 --with-jit-reader-dir=PATH
1721 directory to load the JIT readers from
1722 --with-expat include expat support (auto/yes/no)
1723 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1724 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1725 --with-libexpat-type=TYPE type of library to search for (auto/static/shared)
1726 --with-python[=PYTHON] include python support
1727 (auto/yes/no/<python-program>)
1728 --with-python-libdir[=DIR]
1729 search for python's libraries in DIR
1730 --with-guile[=GUILE] include guile support
1731 (auto/yes/no/<guile-version>/<pkg-config-program>)
1732 --with-sysroot[=DIR] search for usr/lib et al within DIR
1733 --with-system-gdbinit=PATH
1734 automatically load a system-wide gdbinit file
1735 --with-system-gdbinit-dir=PATH
1736 automatically load system-wide gdbinit files from
1737 this directory
1738 --with-lzma support lzma compression (auto/yes/no)
1739 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1740 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1741 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1742 --with-tcl directory containing tcl configuration (tclConfig.sh)
1743 --with-tk directory containing tk configuration (tkConfig.sh)
1744 --with-x use the X Window System
1745 --with-babeltrace include babeltrace support (auto/yes/no)
1746 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1747 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1748 --with-libbabeltrace-type=TYPE type of library to search for (auto/static/shared)
1750 Some influential environment variables:
1751 CC C compiler command
1752 CFLAGS C compiler flags
1753 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1754 nonstandard directory <lib dir>
1755 LIBS libraries to pass to the linker, e.g. -l<library>
1756 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1757 you have headers in a nonstandard directory <include dir>
1758 CXX C++ compiler command
1759 CXXFLAGS C++ compiler flags
1760 CPP C preprocessor
1761 CXXCPP C++ preprocessor
1762 PKG_CONFIG path to pkg-config utility
1763 PKG_CONFIG_PATH
1764 directories to add to pkg-config's search path
1765 PKG_CONFIG_LIBDIR
1766 path overriding pkg-config's built-in search path
1767 MAKEINFO Parent configure detects if it is of sufficient version.
1768 MAKEINFOFLAGS
1769 Parameters for MAKEINFO.
1770 AMD_DBGAPI_CFLAGS
1771 C compiler flags for AMD_DBGAPI, overriding pkg-config
1772 AMD_DBGAPI_LIBS
1773 linker flags for AMD_DBGAPI, overriding pkg-config
1774 DEBUGINFOD_CFLAGS
1775 C compiler flags for DEBUGINFOD, overriding pkg-config
1776 DEBUGINFOD_LIBS
1777 linker flags for DEBUGINFOD, overriding pkg-config
1778 YACC The `Yet Another Compiler Compiler' implementation to use.
1779 Defaults to the first program found out of: `bison -y', `byacc',
1780 `yacc'.
1781 YFLAGS The list of arguments that will be passed by default to $YACC.
1782 This script will default YFLAGS to the empty string to avoid a
1783 default value of `-d' given by some make applications.
1784 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1785 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1786 GMPLIBS How to link GMP
1787 GMPINC How to find GMP include files
1788 XMKMF Path to xmkmf, Makefile generator for X Window System
1790 Use these variables to override the choices made by `configure' or to help
1791 it to find libraries and programs with nonstandard names/locations.
1793 Report bugs to the package provider.
1794 _ACEOF
1795 ac_status=$?
1798 if test "$ac_init_help" = "recursive"; then
1799 # If there are subdirs, report their specific --help.
1800 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1801 test -d "$ac_dir" ||
1802 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1803 continue
1804 ac_builddir=.
1806 case "$ac_dir" in
1807 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1809 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1810 # A ".." for each directory in $ac_dir_suffix.
1811 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1812 case $ac_top_builddir_sub in
1813 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1814 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1815 esac ;;
1816 esac
1817 ac_abs_top_builddir=$ac_pwd
1818 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1819 # for backward compatibility:
1820 ac_top_builddir=$ac_top_build_prefix
1822 case $srcdir in
1823 .) # We are building in place.
1824 ac_srcdir=.
1825 ac_top_srcdir=$ac_top_builddir_sub
1826 ac_abs_top_srcdir=$ac_pwd ;;
1827 [\\/]* | ?:[\\/]* ) # Absolute name.
1828 ac_srcdir=$srcdir$ac_dir_suffix;
1829 ac_top_srcdir=$srcdir
1830 ac_abs_top_srcdir=$srcdir ;;
1831 *) # Relative name.
1832 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1833 ac_top_srcdir=$ac_top_build_prefix$srcdir
1834 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1835 esac
1836 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1838 cd "$ac_dir" || { ac_status=$?; continue; }
1839 # Check for guested configure.
1840 if test -f "$ac_srcdir/configure.gnu"; then
1841 echo &&
1842 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1843 elif test -f "$ac_srcdir/configure"; then
1844 echo &&
1845 $SHELL "$ac_srcdir/configure" --help=recursive
1846 else
1847 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1848 fi || ac_status=$?
1849 cd "$ac_pwd" || { ac_status=$?; break; }
1850 done
1853 test -n "$ac_init_help" && exit $ac_status
1854 if $ac_init_version; then
1855 cat <<\_ACEOF
1856 configure
1857 generated by GNU Autoconf 2.69
1859 Copyright (C) 2012 Free Software Foundation, Inc.
1860 This configure script is free software; the Free Software Foundation
1861 gives unlimited permission to copy, distribute and modify it.
1862 _ACEOF
1863 exit
1866 ## ------------------------ ##
1867 ## Autoconf initialization. ##
1868 ## ------------------------ ##
1870 # ac_fn_c_try_compile LINENO
1871 # --------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_compile ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.$ac_objext; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=1
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1906 } # ac_fn_c_try_compile
1908 # ac_fn_cxx_try_compile LINENO
1909 # ----------------------------
1910 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_compile ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 rm -f conftest.$ac_objext
1915 if { { ac_try="$ac_compile"
1916 case "(($ac_try" in
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_compile") 2>conftest.err
1923 ac_status=$?
1924 if test -s conftest.err; then
1925 grep -v '^ *+' conftest.err >conftest.er1
1926 cat conftest.er1 >&5
1927 mv -f conftest.er1 conftest.err
1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; } && {
1931 test -z "$ac_cxx_werror_flag" ||
1932 test ! -s conftest.err
1933 } && test -s conftest.$ac_objext; then :
1934 ac_retval=0
1935 else
1936 $as_echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1939 ac_retval=1
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 as_fn_set_status $ac_retval
1944 } # ac_fn_cxx_try_compile
1946 # ac_fn_c_try_cpp LINENO
1947 # ----------------------
1948 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1949 ac_fn_c_try_cpp ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if { { ac_try="$ac_cpp conftest.$ac_ext"
1953 case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960 ac_status=$?
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } > conftest.i && {
1968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1970 }; then :
1971 ac_retval=0
1972 else
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1976 ac_retval=1
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status $ac_retval
1981 } # ac_fn_c_try_cpp
1983 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1984 # -------------------------------------------------------
1985 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1986 # the include files in INCLUDES and setting the cache variable VAR
1987 # accordingly.
1988 ac_fn_c_check_header_mongrel ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 if eval \${$3+:} false; then :
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995 $as_echo_n "(cached) " >&6
1997 eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 else
2001 # Is the header compilable?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2003 $as_echo_n "checking $2 usability... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2007 #include <$2>
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010 ac_header_compiler=yes
2011 else
2012 ac_header_compiler=no
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2016 $as_echo "$ac_header_compiler" >&6; }
2018 # Is the header present?
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2020 $as_echo_n "checking $2 presence... " >&6; }
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 #include <$2>
2024 _ACEOF
2025 if ac_fn_c_try_cpp "$LINENO"; then :
2026 ac_header_preproc=yes
2027 else
2028 ac_header_preproc=no
2030 rm -f conftest.err conftest.i conftest.$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2032 $as_echo "$ac_header_preproc" >&6; }
2034 # So? What about this header?
2035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2036 yes:no: )
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2038 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 no:yes:* )
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2044 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2046 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2048 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2050 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2052 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054 esac
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2059 else
2060 eval "$3=\$ac_header_compiler"
2062 eval ac_res=\$$3
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 } # ac_fn_c_check_header_mongrel
2070 # ac_fn_c_try_run LINENO
2071 # ----------------------
2072 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2073 # that executables *can* be run.
2074 ac_fn_c_try_run ()
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 if { { ac_try="$ac_link"
2078 case "(($ac_try" in
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2081 esac
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_link") 2>&5
2085 ac_status=$?
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2088 { { case "(($ac_try" in
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2091 esac
2092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093 $as_echo "$ac_try_echo"; } >&5
2094 (eval "$ac_try") 2>&5
2095 ac_status=$?
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; }; }; then :
2098 ac_retval=0
2099 else
2100 $as_echo "$as_me: program exited with status $ac_status" >&5
2101 $as_echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2104 ac_retval=$ac_status
2106 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 as_fn_set_status $ac_retval
2110 } # ac_fn_c_try_run
2112 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2113 # -------------------------------------------------------
2114 # Tests whether HEADER exists and can be compiled using the include files in
2115 # INCLUDES, setting the cache variable VAR accordingly.
2116 ac_fn_c_check_header_compile ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if eval \${$3+:} false; then :
2122 $as_echo_n "(cached) " >&6
2123 else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 eval "$3=yes"
2131 else
2132 eval "$3=no"
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 eval ac_res=\$$3
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 } # ac_fn_c_check_header_compile
2143 # ac_fn_c_try_link LINENO
2144 # -----------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded.
2146 ac_fn_c_try_link ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 rm -f conftest.$ac_objext conftest$ac_exeext
2150 if { { ac_try="$ac_link"
2151 case "(($ac_try" in
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2154 esac
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_link") 2>conftest.err
2158 ac_status=$?
2159 if test -s conftest.err; then
2160 grep -v '^ *+' conftest.err >conftest.er1
2161 cat conftest.er1 >&5
2162 mv -f conftest.er1 conftest.err
2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165 test $ac_status = 0; } && {
2166 test -z "$ac_c_werror_flag" ||
2167 test ! -s conftest.err
2168 } && test -s conftest$ac_exeext && {
2169 test "$cross_compiling" = yes ||
2170 test -x conftest$ac_exeext
2171 }; then :
2172 ac_retval=0
2173 else
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2177 ac_retval=1
2179 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2180 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2181 # interfere with the next link command; also delete a directory that is
2182 # left behind by Apple's compiler. We do this before executing the actions.
2183 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185 as_fn_set_status $ac_retval
2187 } # ac_fn_c_try_link
2189 # ac_fn_c_check_func LINENO FUNC VAR
2190 # ----------------------------------
2191 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2192 ac_fn_c_check_func ()
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if eval \${$3+:} false; then :
2198 $as_echo_n "(cached) " >&6
2199 else
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2204 #define $2 innocuous_$2
2206 /* System header to define __stub macros and hopefully few prototypes,
2207 which can conflict with char $2 (); below.
2208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2209 <limits.h> exists even on freestanding compilers. */
2211 #ifdef __STDC__
2212 # include <limits.h>
2213 #else
2214 # include <assert.h>
2215 #endif
2217 #undef $2
2219 /* Override any GCC internal prototype to avoid an error.
2220 Use char because int might match the return type of a GCC
2221 builtin and then its argument prototype would still apply. */
2222 #ifdef __cplusplus
2223 extern "C"
2224 #endif
2225 char $2 ();
2226 /* The GNU C library defines this for functions which it implements
2227 to always fail with ENOSYS. Some functions are actually named
2228 something starting with __ and the normal name is an alias. */
2229 #if defined __stub_$2 || defined __stub___$2
2230 choke me
2231 #endif
2234 main ()
2236 return $2 ();
2238 return 0;
2240 _ACEOF
2241 if ac_fn_c_try_link "$LINENO"; then :
2242 eval "$3=yes"
2243 else
2244 eval "$3=no"
2246 rm -f core conftest.err conftest.$ac_objext \
2247 conftest$ac_exeext conftest.$ac_ext
2249 eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 } # ac_fn_c_check_func
2256 # ac_fn_cxx_try_cpp LINENO
2257 # ------------------------
2258 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2259 ac_fn_cxx_try_cpp ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 if { { ac_try="$ac_cpp conftest.$ac_ext"
2263 case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2266 esac
2267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268 $as_echo "$ac_try_echo"; } >&5
2269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2270 ac_status=$?
2271 if test -s conftest.err; then
2272 grep -v '^ *+' conftest.err >conftest.er1
2273 cat conftest.er1 >&5
2274 mv -f conftest.er1 conftest.err
2276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277 test $ac_status = 0; } > conftest.i && {
2278 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2279 test ! -s conftest.err
2280 }; then :
2281 ac_retval=0
2282 else
2283 $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2286 ac_retval=1
2288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 as_fn_set_status $ac_retval
2291 } # ac_fn_cxx_try_cpp
2293 # ac_fn_cxx_try_link LINENO
2294 # -------------------------
2295 # Try to link conftest.$ac_ext, and return whether this succeeded.
2296 ac_fn_cxx_try_link ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 rm -f conftest.$ac_objext conftest$ac_exeext
2300 if { { ac_try="$ac_link"
2301 case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2304 esac
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_link") 2>conftest.err
2308 ac_status=$?
2309 if test -s conftest.err; then
2310 grep -v '^ *+' conftest.err >conftest.er1
2311 cat conftest.er1 >&5
2312 mv -f conftest.er1 conftest.err
2314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2315 test $ac_status = 0; } && {
2316 test -z "$ac_cxx_werror_flag" ||
2317 test ! -s conftest.err
2318 } && test -s conftest$ac_exeext && {
2319 test "$cross_compiling" = yes ||
2320 test -x conftest$ac_exeext
2321 }; then :
2322 ac_retval=0
2323 else
2324 $as_echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 ac_retval=1
2329 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2330 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2331 # interfere with the next link command; also delete a directory that is
2332 # left behind by Apple's compiler. We do this before executing the actions.
2333 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335 as_fn_set_status $ac_retval
2337 } # ac_fn_cxx_try_link
2339 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2340 # -------------------------------------------
2341 # Tests whether TYPE exists after having included INCLUDES, setting cache
2342 # variable VAR accordingly.
2343 ac_fn_c_check_type ()
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347 $as_echo_n "checking for $2... " >&6; }
2348 if eval \${$3+:} false; then :
2349 $as_echo_n "(cached) " >&6
2350 else
2351 eval "$3=no"
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2356 main ()
2358 if (sizeof ($2))
2359 return 0;
2361 return 0;
2363 _ACEOF
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2369 main ()
2371 if (sizeof (($2)))
2372 return 0;
2374 return 0;
2376 _ACEOF
2377 if ac_fn_c_try_compile "$LINENO"; then :
2379 else
2380 eval "$3=yes"
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 eval ac_res=\$$3
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2391 } # ac_fn_c_check_type
2393 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2394 # ---------------------------------------------
2395 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2396 # accordingly.
2397 ac_fn_c_check_decl ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 as_decl_name=`echo $2|sed 's/ *(.*//'`
2401 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2403 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2404 if eval \${$3+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2411 main ()
2413 #ifndef $as_decl_name
2414 #ifdef __cplusplus
2415 (void) $as_decl_use;
2416 #else
2417 (void) $as_decl_name;
2418 #endif
2419 #endif
2422 return 0;
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426 eval "$3=yes"
2427 else
2428 eval "$3=no"
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 eval ac_res=\$$3
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2434 $as_echo "$ac_res" >&6; }
2435 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437 } # ac_fn_c_check_decl
2439 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2440 # ----------------------------------------------------
2441 # Tries to find if the field MEMBER exists in type AGGR, after including
2442 # INCLUDES, setting cache variable VAR accordingly.
2443 ac_fn_c_check_member ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2447 $as_echo_n "checking for $2.$3... " >&6; }
2448 if eval \${$4+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2455 main ()
2457 static $2 ac_aggr;
2458 if (ac_aggr.$3)
2459 return 0;
2461 return 0;
2463 _ACEOF
2464 if ac_fn_c_try_compile "$LINENO"; then :
2465 eval "$4=yes"
2466 else
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2471 main ()
2473 static $2 ac_aggr;
2474 if (sizeof ac_aggr.$3)
2475 return 0;
2477 return 0;
2479 _ACEOF
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481 eval "$4=yes"
2482 else
2483 eval "$4=no"
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 eval ac_res=\$$4
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494 } # ac_fn_c_check_member
2496 # ac_fn_cxx_check_func LINENO FUNC VAR
2497 # ------------------------------------
2498 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2499 ac_fn_cxx_check_func ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2503 $as_echo_n "checking for $2... " >&6; }
2504 if eval \${$3+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2511 #define $2 innocuous_$2
2513 /* System header to define __stub macros and hopefully few prototypes,
2514 which can conflict with char $2 (); below.
2515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2516 <limits.h> exists even on freestanding compilers. */
2518 #ifdef __STDC__
2519 # include <limits.h>
2520 #else
2521 # include <assert.h>
2522 #endif
2524 #undef $2
2526 /* Override any GCC internal prototype to avoid an error.
2527 Use char because int might match the return type of a GCC
2528 builtin and then its argument prototype would still apply. */
2529 #ifdef __cplusplus
2530 extern "C"
2531 #endif
2532 char $2 ();
2533 /* The GNU C library defines this for functions which it implements
2534 to always fail with ENOSYS. Some functions are actually named
2535 something starting with __ and the normal name is an alias. */
2536 #if defined __stub_$2 || defined __stub___$2
2537 choke me
2538 #endif
2541 main ()
2543 return $2 ();
2545 return 0;
2547 _ACEOF
2548 if ac_fn_cxx_try_link "$LINENO"; then :
2549 eval "$3=yes"
2550 else
2551 eval "$3=no"
2553 rm -f core conftest.err conftest.$ac_objext \
2554 conftest$ac_exeext conftest.$ac_ext
2556 eval ac_res=\$$3
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2558 $as_echo "$ac_res" >&6; }
2559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2561 } # ac_fn_cxx_check_func
2563 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2564 # --------------------------------------------
2565 # Tries to find the compile-time value of EXPR in a program that includes
2566 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2567 # computed
2568 ac_fn_c_compute_int ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 if test "$cross_compiling" = yes; then
2572 # Depending upon the size, compute the lo and hi bounds.
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2577 main ()
2579 static int test_array [1 - 2 * !(($2) >= 0)];
2580 test_array [0] = 0;
2581 return test_array [0];
2584 return 0;
2586 _ACEOF
2587 if ac_fn_c_try_compile "$LINENO"; then :
2588 ac_lo=0 ac_mid=0
2589 while :; do
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2594 main ()
2596 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2597 test_array [0] = 0;
2598 return test_array [0];
2601 return 0;
2603 _ACEOF
2604 if ac_fn_c_try_compile "$LINENO"; then :
2605 ac_hi=$ac_mid; break
2606 else
2607 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2608 if test $ac_lo -le $ac_mid; then
2609 ac_lo= ac_hi=
2610 break
2612 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 done
2616 else
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2621 main ()
2623 static int test_array [1 - 2 * !(($2) < 0)];
2624 test_array [0] = 0;
2625 return test_array [0];
2628 return 0;
2630 _ACEOF
2631 if ac_fn_c_try_compile "$LINENO"; then :
2632 ac_hi=-1 ac_mid=-1
2633 while :; do
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2638 main ()
2640 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2641 test_array [0] = 0;
2642 return test_array [0];
2645 return 0;
2647 _ACEOF
2648 if ac_fn_c_try_compile "$LINENO"; then :
2649 ac_lo=$ac_mid; break
2650 else
2651 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2652 if test $ac_mid -le $ac_hi; then
2653 ac_lo= ac_hi=
2654 break
2656 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 done
2660 else
2661 ac_lo= ac_hi=
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 # Binary search between lo and hi bounds.
2667 while test "x$ac_lo" != "x$ac_hi"; do
2668 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2673 main ()
2675 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2676 test_array [0] = 0;
2677 return test_array [0];
2680 return 0;
2682 _ACEOF
2683 if ac_fn_c_try_compile "$LINENO"; then :
2684 ac_hi=$ac_mid
2685 else
2686 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 done
2690 case $ac_lo in #((
2691 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2692 '') ac_retval=1 ;;
2693 esac
2694 else
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2698 static long int longval () { return $2; }
2699 static unsigned long int ulongval () { return $2; }
2700 #include <stdio.h>
2701 #include <stdlib.h>
2703 main ()
2706 FILE *f = fopen ("conftest.val", "w");
2707 if (! f)
2708 return 1;
2709 if (($2) < 0)
2711 long int i = longval ();
2712 if (i != ($2))
2713 return 1;
2714 fprintf (f, "%ld", i);
2716 else
2718 unsigned long int i = ulongval ();
2719 if (i != ($2))
2720 return 1;
2721 fprintf (f, "%lu", i);
2723 /* Do not output a trailing newline, as this causes \r\n confusion
2724 on some platforms. */
2725 return ferror (f) || fclose (f) != 0;
2728 return 0;
2730 _ACEOF
2731 if ac_fn_c_try_run "$LINENO"; then :
2732 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2733 else
2734 ac_retval=1
2736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2737 conftest.$ac_objext conftest.beam conftest.$ac_ext
2738 rm -f conftest.val
2741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2742 as_fn_set_status $ac_retval
2744 } # ac_fn_c_compute_int
2745 cat >config.log <<_ACEOF
2746 This file contains any messages produced by compilers while
2747 running configure, to aid debugging if configure makes a mistake.
2749 It was created by $as_me, which was
2750 generated by GNU Autoconf 2.69. Invocation command line was
2752 $ $0 $@
2754 _ACEOF
2755 exec 5>>config.log
2757 cat <<_ASUNAME
2758 ## --------- ##
2759 ## Platform. ##
2760 ## --------- ##
2762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2774 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2779 _ASUNAME
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 $as_echo "PATH: $as_dir"
2787 done
2788 IFS=$as_save_IFS
2790 } >&5
2792 cat >&5 <<_ACEOF
2795 ## ----------- ##
2796 ## Core tests. ##
2797 ## ----------- ##
2799 _ACEOF
2802 # Keep a trace of the command line.
2803 # Strip out --no-create and --no-recursion so they do not pile up.
2804 # Strip out --silent because we don't want to record it for future runs.
2805 # Also quote any args containing shell meta-characters.
2806 # Make two passes to allow for proper duplicate-argument suppression.
2807 ac_configure_args=
2808 ac_configure_args0=
2809 ac_configure_args1=
2810 ac_must_keep_next=false
2811 for ac_pass in 1 2
2813 for ac_arg
2815 case $ac_arg in
2816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2818 | -silent | --silent | --silen | --sile | --sil)
2819 continue ;;
2820 *\'*)
2821 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2822 esac
2823 case $ac_pass in
2824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2826 as_fn_append ac_configure_args1 " '$ac_arg'"
2827 if test $ac_must_keep_next = true; then
2828 ac_must_keep_next=false # Got value, back to normal.
2829 else
2830 case $ac_arg in
2831 *=* | --config-cache | -C | -disable-* | --disable-* \
2832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2834 | -with-* | --with-* | -without-* | --without-* | --x)
2835 case "$ac_configure_args0 " in
2836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2837 esac
2839 -* ) ac_must_keep_next=true ;;
2840 esac
2842 as_fn_append ac_configure_args " '$ac_arg'"
2844 esac
2845 done
2846 done
2847 { ac_configure_args0=; unset ac_configure_args0;}
2848 { ac_configure_args1=; unset ac_configure_args1;}
2850 # When interrupted or exit'd, cleanup temporary files, and complete
2851 # config.log. We remove comments because anyway the quotes in there
2852 # would cause problems or look ugly.
2853 # WARNING: Use '\'' to represent an apostrophe within the trap.
2854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2855 trap 'exit_status=$?
2856 # Save into config.log some information that might help in debugging.
2858 echo
2860 $as_echo "## ---------------- ##
2861 ## Cache variables. ##
2862 ## ---------------- ##"
2863 echo
2864 # The following way of writing the cache mishandles newlines in values,
2866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2867 eval ac_val=\$$ac_var
2868 case $ac_val in #(
2869 *${as_nl}*)
2870 case $ac_var in #(
2871 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2873 esac
2874 case $ac_var in #(
2875 _ | IFS | as_nl) ;; #(
2876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2877 *) { eval $ac_var=; unset $ac_var;} ;;
2878 esac ;;
2879 esac
2880 done
2881 (set) 2>&1 |
2882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2883 *${as_nl}ac_space=\ *)
2884 sed -n \
2885 "s/'\''/'\''\\\\'\'''\''/g;
2886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2887 ;; #(
2889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2891 esac |
2892 sort
2894 echo
2896 $as_echo "## ----------------- ##
2897 ## Output variables. ##
2898 ## ----------------- ##"
2899 echo
2900 for ac_var in $ac_subst_vars
2902 eval ac_val=\$$ac_var
2903 case $ac_val in
2904 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2905 esac
2906 $as_echo "$ac_var='\''$ac_val'\''"
2907 done | sort
2908 echo
2910 if test -n "$ac_subst_files"; then
2911 $as_echo "## ------------------- ##
2912 ## File substitutions. ##
2913 ## ------------------- ##"
2914 echo
2915 for ac_var in $ac_subst_files
2917 eval ac_val=\$$ac_var
2918 case $ac_val in
2919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2920 esac
2921 $as_echo "$ac_var='\''$ac_val'\''"
2922 done | sort
2923 echo
2926 if test -s confdefs.h; then
2927 $as_echo "## ----------- ##
2928 ## confdefs.h. ##
2929 ## ----------- ##"
2930 echo
2931 cat confdefs.h
2932 echo
2934 test "$ac_signal" != 0 &&
2935 $as_echo "$as_me: caught signal $ac_signal"
2936 $as_echo "$as_me: exit $exit_status"
2937 } >&5
2938 rm -f core *.core core.conftest.* &&
2939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2940 exit $exit_status
2942 for ac_signal in 1 2 13 15; do
2943 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2944 done
2945 ac_signal=0
2947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2948 rm -f -r conftest* confdefs.h
2950 $as_echo "/* confdefs.h */" > confdefs.h
2952 # Predefined preprocessor variables.
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE_NAME "$PACKAGE_NAME"
2956 _ACEOF
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2960 _ACEOF
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2964 _ACEOF
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE_STRING "$PACKAGE_STRING"
2968 _ACEOF
2970 cat >>confdefs.h <<_ACEOF
2971 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2972 _ACEOF
2974 cat >>confdefs.h <<_ACEOF
2975 #define PACKAGE_URL "$PACKAGE_URL"
2976 _ACEOF
2979 # Let the site file select an alternate cache file if it wants to.
2980 # Prefer an explicitly selected file to automatically selected ones.
2981 ac_site_file1=NONE
2982 ac_site_file2=NONE
2983 if test -n "$CONFIG_SITE"; then
2984 # We do not want a PATH search for config.site.
2985 case $CONFIG_SITE in #((
2986 -*) ac_site_file1=./$CONFIG_SITE;;
2987 */*) ac_site_file1=$CONFIG_SITE;;
2988 *) ac_site_file1=./$CONFIG_SITE;;
2989 esac
2990 elif test "x$prefix" != xNONE; then
2991 ac_site_file1=$prefix/share/config.site
2992 ac_site_file2=$prefix/etc/config.site
2993 else
2994 ac_site_file1=$ac_default_prefix/share/config.site
2995 ac_site_file2=$ac_default_prefix/etc/config.site
2997 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2999 test "x$ac_site_file" = xNONE && continue
3000 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3003 sed 's/^/| /' "$ac_site_file" >&5
3004 . "$ac_site_file" \
3005 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 as_fn_error $? "failed to load site script $ac_site_file
3008 See \`config.log' for more details" "$LINENO" 5; }
3010 done
3012 if test -r "$cache_file"; then
3013 # Some versions of bash will fail to source /dev/null (special files
3014 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3015 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3017 $as_echo "$as_me: loading cache $cache_file" >&6;}
3018 case $cache_file in
3019 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3020 *) . "./$cache_file";;
3021 esac
3023 else
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3025 $as_echo "$as_me: creating cache $cache_file" >&6;}
3026 >$cache_file
3029 as_fn_append ac_header_list " stdlib.h"
3030 as_fn_append ac_header_list " unistd.h"
3031 as_fn_append ac_header_list " sys/param.h"
3032 gt_needs="$gt_needs "
3033 # Check that the precious variables saved in the cache have kept the same
3034 # value.
3035 ac_cache_corrupted=false
3036 for ac_var in $ac_precious_vars; do
3037 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3038 eval ac_new_set=\$ac_env_${ac_var}_set
3039 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3040 eval ac_new_val=\$ac_env_${ac_var}_value
3041 case $ac_old_set,$ac_new_set in
3042 set,)
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3044 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3045 ac_cache_corrupted=: ;;
3046 ,set)
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3048 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3049 ac_cache_corrupted=: ;;
3050 ,);;
3052 if test "x$ac_old_val" != "x$ac_new_val"; then
3053 # differences in whitespace do not lead to failure.
3054 ac_old_val_w=`echo x $ac_old_val`
3055 ac_new_val_w=`echo x $ac_new_val`
3056 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3058 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3059 ac_cache_corrupted=:
3060 else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3062 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3063 eval $ac_var=\$ac_old_val
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3066 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3068 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3069 fi;;
3070 esac
3071 # Pass precious variables to config.status.
3072 if test "$ac_new_set" = set; then
3073 case $ac_new_val in
3074 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3075 *) ac_arg=$ac_var=$ac_new_val ;;
3076 esac
3077 case " $ac_configure_args " in
3078 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3079 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3080 esac
3082 done
3083 if $ac_cache_corrupted; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3087 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3088 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3090 ## -------------------- ##
3091 ## Main body of script. ##
3092 ## -------------------- ##
3094 ac_ext=c
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106 ac_config_headers="$ac_config_headers config.h:config.in"
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3110 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3111 # Check whether --enable-maintainer-mode was given.
3112 if test "${enable_maintainer_mode+set}" = set; then :
3113 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3114 else
3115 USE_MAINTAINER_MODE=no
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3119 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3120 if test $USE_MAINTAINER_MODE = yes; then
3121 MAINTAINER_MODE_TRUE=
3122 MAINTAINER_MODE_FALSE='#'
3123 else
3124 MAINTAINER_MODE_TRUE='#'
3125 MAINTAINER_MODE_FALSE=
3128 MAINT=$MAINTAINER_MODE_TRUE
3132 ac_ext=c
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_CC+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3159 done
3160 done
3161 IFS=$as_save_IFS
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3176 if test -z "$ac_cv_prog_CC"; then
3177 ac_ct_CC=$CC
3178 # Extract the first word of "gcc", so it can be a program name with args.
3179 set dummy gcc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$ac_ct_CC"; then
3186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_ac_ct_CC="gcc"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3199 done
3200 done
3201 IFS=$as_save_IFS
3205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206 if test -n "$ac_ct_CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208 $as_echo "$ac_ct_CC" >&6; }
3209 else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3214 if test "x$ac_ct_CC" = x; then
3215 CC=""
3216 else
3217 case $cross_compiling:$ac_tool_warned in
3218 yes:)
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3222 esac
3223 CC=$ac_ct_CC
3225 else
3226 CC="$ac_cv_prog_CC"
3229 if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}cc; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_CC+:} false; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 if test -n "$CC"; then
3239 ac_cv_prog_CC="$CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_CC="${ac_tool_prefix}cc"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3252 done
3253 done
3254 IFS=$as_save_IFS
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3270 if test -z "$CC"; then
3271 # Extract the first word of "cc", so it can be a program name with args.
3272 set dummy cc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 ac_prog_rejected=no
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3290 ac_prog_rejected=yes
3291 continue
3293 ac_cv_prog_CC="cc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3299 IFS=$as_save_IFS
3301 if test $ac_prog_rejected = yes; then
3302 # We found a bogon in the path, so make sure we never use it.
3303 set dummy $ac_cv_prog_CC
3304 shift
3305 if test $# != 0; then
3306 # We chose a different compiler from the bogus one.
3307 # However, it has the same basename, so the bogon will be chosen
3308 # first if we set CC to just the basename; use the full file name.
3309 shift
3310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3315 CC=$ac_cv_prog_CC
3316 if test -n "$CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3326 if test -z "$CC"; then
3327 if test -n "$ac_tool_prefix"; then
3328 for ac_prog in cl.exe
3330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_CC+:} false; then :
3335 $as_echo_n "(cached) " >&6
3336 else
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3351 done
3352 done
3353 IFS=$as_save_IFS
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3367 test -n "$CC" && break
3368 done
3370 if test -z "$CC"; then
3371 ac_ct_CC=$CC
3372 for ac_prog in cl.exe
3374 # Extract the first word of "$ac_prog", so it can be a program name with args.
3375 set dummy $ac_prog; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 if test -n "$ac_ct_CC"; then
3382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_ac_ct_CC="$ac_prog"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3395 done
3396 done
3397 IFS=$as_save_IFS
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3411 test -n "$ac_ct_CC" && break
3412 done
3414 if test "x$ac_ct_CC" = x; then
3415 CC=""
3416 else
3417 case $cross_compiling:$ac_tool_warned in
3418 yes:)
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421 ac_tool_warned=yes ;;
3422 esac
3423 CC=$ac_ct_CC
3430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "no acceptable C compiler found in \$PATH
3433 See \`config.log' for more details" "$LINENO" 5; }
3435 # Provide some information about the compiler.
3436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3437 set X $ac_compile
3438 ac_compiler=$2
3439 for ac_option in --version -v -V -qversion; do
3440 { { ac_try="$ac_compiler $ac_option >&5"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3448 ac_status=$?
3449 if test -s conftest.err; then
3450 sed '10a\
3451 ... rest of stderr output deleted ...
3452 10q' conftest.err >conftest.er1
3453 cat conftest.er1 >&5
3455 rm -f conftest.er1 conftest.err
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }
3458 done
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3464 main ()
3468 return 0;
3470 _ACEOF
3471 ac_clean_files_save=$ac_clean_files
3472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3473 # Try to create an executable without -o first, disregard a.out.
3474 # It will help us diagnose broken compilers, and finding out an intuition
3475 # of exeext.
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3477 $as_echo_n "checking whether the C compiler works... " >&6; }
3478 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3480 # The possible output files:
3481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3483 ac_rmfiles=
3484 for ac_file in $ac_files
3486 case $ac_file in
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3489 esac
3490 done
3491 rm -f $ac_rmfiles
3493 if { { ac_try="$ac_link_default"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_link_default") 2>&5
3501 ac_status=$?
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; then :
3504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3506 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3507 # so that the user can short-circuit this test for compilers unknown to
3508 # Autoconf.
3509 for ac_file in $ac_files ''
3511 test -f "$ac_file" || continue
3512 case $ac_file in
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3515 [ab].out )
3516 # We found the default executable, but exeext='' is most
3517 # certainly right.
3518 break;;
3519 *.* )
3520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3521 then :; else
3522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524 # We set ac_cv_exeext here because the later test for it is not
3525 # safe: cross compilers may not add the suffix if given an `-o'
3526 # argument, so we may need to know it at that point already.
3527 # Even if this section looks crufty: it has the advantage of
3528 # actually working.
3529 break;;
3531 break;;
3532 esac
3533 done
3534 test "$ac_cv_exeext" = no && ac_cv_exeext=
3536 else
3537 ac_file=''
3539 if test -z "$ac_file"; then :
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error 77 "C compiler cannot create executables
3548 See \`config.log' for more details" "$LINENO" 5; }
3549 else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3554 $as_echo_n "checking for C compiler default output file name... " >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 ac_exeext=$ac_cv_exeext
3559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3560 ac_clean_files=$ac_clean_files_save
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3562 $as_echo_n "checking for suffix of executables... " >&6; }
3563 if { { ac_try="$ac_link"
3564 case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_link") 2>&5
3571 ac_status=$?
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; then :
3574 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3575 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3576 # work properly (i.e., refer to `conftest.exe'), while it won't with
3577 # `rm'.
3578 for ac_file in conftest.exe conftest conftest.*; do
3579 test -f "$ac_file" || continue
3580 case $ac_file in
3581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3583 break;;
3584 * ) break;;
3585 esac
3586 done
3587 else
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3591 See \`config.log' for more details" "$LINENO" 5; }
3593 rm -f conftest conftest$ac_cv_exeext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3595 $as_echo "$ac_cv_exeext" >&6; }
3597 rm -f conftest.$ac_ext
3598 EXEEXT=$ac_cv_exeext
3599 ac_exeext=$EXEEXT
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602 #include <stdio.h>
3604 main ()
3606 FILE *f = fopen ("conftest.out", "w");
3607 return ferror (f) || fclose (f) != 0;
3610 return 0;
3612 _ACEOF
3613 ac_clean_files="$ac_clean_files conftest.out"
3614 # Check that the compiler produces executables we can run. If not, either
3615 # the compiler is broken, or we cross compile.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3617 $as_echo_n "checking whether we are cross compiling... " >&6; }
3618 if test "$cross_compiling" != yes; then
3619 { { ac_try="$ac_link"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_link") 2>&5
3627 ac_status=$?
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }
3630 if { ac_try='./conftest$ac_cv_exeext'
3631 { { case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_try") 2>&5
3638 ac_status=$?
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }; }; then
3641 cross_compiling=no
3642 else
3643 if test "$cross_compiling" = maybe; then
3644 cross_compiling=yes
3645 else
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $? "cannot run C compiled programs.
3649 If you meant to cross compile, use \`--host'.
3650 See \`config.log' for more details" "$LINENO" 5; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3655 $as_echo "$cross_compiling" >&6; }
3657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3658 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660 $as_echo_n "checking for suffix of object files... " >&6; }
3661 if ${ac_cv_objext+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3668 main ()
3672 return 0;
3674 _ACEOF
3675 rm -f conftest.o conftest.obj
3676 if { { ac_try="$ac_compile"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_compile") 2>&5
3684 ac_status=$?
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; then :
3687 for ac_file in conftest.o conftest.obj conftest.*; do
3688 test -f "$ac_file" || continue;
3689 case $ac_file in
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3692 break;;
3693 esac
3694 done
3695 else
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error $? "cannot compute suffix of object files: cannot compile
3702 See \`config.log' for more details" "$LINENO" 5; }
3704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707 $as_echo "$ac_cv_objext" >&6; }
3708 OBJEXT=$ac_cv_objext
3709 ac_objext=$OBJEXT
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712 if ${ac_cv_c_compiler_gnu+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3719 main ()
3721 #ifndef __GNUC__
3722 choke me
3723 #endif
3726 return 0;
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_compiler_gnu=yes
3731 else
3732 ac_compiler_gnu=no
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3741 GCC=yes
3742 else
3743 GCC=
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if ${ac_cv_prog_cc_g+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 ac_save_c_werror_flag=$ac_c_werror_flag
3753 ac_c_werror_flag=yes
3754 ac_cv_prog_cc_g=no
3755 CFLAGS="-g"
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3760 main ()
3764 return 0;
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_cv_prog_cc_g=yes
3769 else
3770 CFLAGS=""
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3775 main ()
3779 return 0;
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3784 else
3785 ac_c_werror_flag=$ac_save_c_werror_flag
3786 CFLAGS="-g"
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3791 main ()
3795 return 0;
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then
3814 CFLAGS="-g -O2"
3815 else
3816 CFLAGS="-g"
3818 else
3819 if test "$GCC" = yes; then
3820 CFLAGS="-O2"
3821 else
3822 CFLAGS=
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if ${ac_cv_prog_cc_c89+:} false; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 ac_cv_prog_cc_c89=no
3831 ac_save_CC=$CC
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834 #include <stdarg.h>
3835 #include <stdio.h>
3836 struct stat;
3837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3838 struct buf { int x; };
3839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3840 static char *e (p, i)
3841 char **p;
3842 int i;
3844 return p[i];
3846 static char *f (char * (*g) (char **, int), char **p, ...)
3848 char *s;
3849 va_list v;
3850 va_start (v,p);
3851 s = g (p, va_arg (v,int));
3852 va_end (v);
3853 return s;
3856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3857 function prototypes and stuff, but not '\xHH' hex character constants.
3858 These don't provoke an error unfortunately, instead are silently treated
3859 as 'x'. The following induces an error, until -std is added to get
3860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3861 array size at least. It's necessary to write '\x00'==0 to get something
3862 that's true only with -std. */
3863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3866 inside strings and character constants. */
3867 #define FOO(x) 'x'
3868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3870 int test (int i, double x);
3871 struct s1 {int (*f) (int a);};
3872 struct s2 {int (*f) (double a);};
3873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3874 int argc;
3875 char **argv;
3877 main ()
3879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3881 return 0;
3883 _ACEOF
3884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3887 CC="$ac_save_CC $ac_arg"
3888 if ac_fn_c_try_compile "$LINENO"; then :
3889 ac_cv_prog_cc_c89=$ac_arg
3891 rm -f core conftest.err conftest.$ac_objext
3892 test "x$ac_cv_prog_cc_c89" != "xno" && break
3893 done
3894 rm -f conftest.$ac_ext
3895 CC=$ac_save_CC
3898 # AC_CACHE_VAL
3899 case "x$ac_cv_prog_cc_c89" in
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3902 $as_echo "none needed" >&6; } ;;
3903 xno)
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3905 $as_echo "unsupported" >&6; } ;;
3907 CC="$CC $ac_cv_prog_cc_c89"
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3910 esac
3911 if test "x$ac_cv_prog_cc_c89" != xno; then :
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 ac_ext=cpp
3922 ac_cpp='$CXXCPP $CPPFLAGS'
3923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3926 if test -z "$CXX"; then
3927 if test -n "$CCC"; then
3928 CXX=$CCC
3929 else
3930 if test -n "$ac_tool_prefix"; then
3931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if ${ac_cv_prog_CXX+:} false; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 if test -n "$CXX"; then
3941 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3954 done
3955 done
3956 IFS=$as_save_IFS
3960 CXX=$ac_cv_prog_CXX
3961 if test -n "$CXX"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3963 $as_echo "$CXX" >&6; }
3964 else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3970 test -n "$CXX" && break
3971 done
3973 if test -z "$CXX"; then
3974 ac_ct_CXX=$CXX
3975 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3977 # Extract the first word of "$ac_prog", so it can be a program name with args.
3978 set dummy $ac_prog; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 if test -n "$ac_ct_CXX"; then
3985 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3986 else
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_ac_ct_CXX="$ac_prog"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2
3998 done
3999 done
4000 IFS=$as_save_IFS
4004 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4005 if test -n "$ac_ct_CXX"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4007 $as_echo "$ac_ct_CXX" >&6; }
4008 else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4014 test -n "$ac_ct_CXX" && break
4015 done
4017 if test "x$ac_ct_CXX" = x; then
4018 CXX="g++"
4019 else
4020 case $cross_compiling:$ac_tool_warned in
4021 yes:)
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4024 ac_tool_warned=yes ;;
4025 esac
4026 CXX=$ac_ct_CXX
4032 # Provide some information about the compiler.
4033 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4034 set X $ac_compile
4035 ac_compiler=$2
4036 for ac_option in --version -v -V -qversion; do
4037 { { ac_try="$ac_compiler $ac_option >&5"
4038 case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4045 ac_status=$?
4046 if test -s conftest.err; then
4047 sed '10a\
4048 ... rest of stderr output deleted ...
4049 10q' conftest.err >conftest.er1
4050 cat conftest.er1 >&5
4052 rm -f conftest.er1 conftest.err
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }
4055 done
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4058 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4059 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4066 main ()
4068 #ifndef __GNUC__
4069 choke me
4070 #endif
4073 return 0;
4075 _ACEOF
4076 if ac_fn_cxx_try_compile "$LINENO"; then :
4077 ac_compiler_gnu=yes
4078 else
4079 ac_compiler_gnu=no
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4086 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4087 if test $ac_compiler_gnu = yes; then
4088 GXX=yes
4089 else
4090 GXX=
4092 ac_test_CXXFLAGS=${CXXFLAGS+set}
4093 ac_save_CXXFLAGS=$CXXFLAGS
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4095 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4096 if ${ac_cv_prog_cxx_g+:} false; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4100 ac_cxx_werror_flag=yes
4101 ac_cv_prog_cxx_g=no
4102 CXXFLAGS="-g"
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4107 main ()
4111 return 0;
4113 _ACEOF
4114 if ac_fn_cxx_try_compile "$LINENO"; then :
4115 ac_cv_prog_cxx_g=yes
4116 else
4117 CXXFLAGS=""
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4122 main ()
4126 return 0;
4128 _ACEOF
4129 if ac_fn_cxx_try_compile "$LINENO"; then :
4131 else
4132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4133 CXXFLAGS="-g"
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4138 main ()
4142 return 0;
4144 _ACEOF
4145 if ac_fn_cxx_try_compile "$LINENO"; then :
4146 ac_cv_prog_cxx_g=yes
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4156 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4157 if test "$ac_test_CXXFLAGS" = set; then
4158 CXXFLAGS=$ac_save_CXXFLAGS
4159 elif test $ac_cv_prog_cxx_g = yes; then
4160 if test "$GXX" = yes; then
4161 CXXFLAGS="-g -O2"
4162 else
4163 CXXFLAGS="-g"
4165 else
4166 if test "$GXX" = yes; then
4167 CXXFLAGS="-O2"
4168 else
4169 CXXFLAGS=
4172 ac_ext=c
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 ac_ext=c
4181 ac_cpp='$CPP $CPPFLAGS'
4182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4186 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4187 # On Suns, sometimes $CPP names a directory.
4188 if test -n "$CPP" && test -d "$CPP"; then
4189 CPP=
4191 if test -z "$CPP"; then
4192 if ${ac_cv_prog_CPP+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 # Double quotes because CPP needs to be expanded
4196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4198 ac_preproc_ok=false
4199 for ac_c_preproc_warn_flag in '' yes
4201 # Use a header file that comes with gcc, so configuring glibc
4202 # with a fresh cross-compiler works.
4203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4204 # <limits.h> exists even on freestanding compilers.
4205 # On the NeXT, cc -E runs the code through the compiler's parser,
4206 # not just through cpp. "Syntax error" is here to catch this case.
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #ifdef __STDC__
4210 # include <limits.h>
4211 #else
4212 # include <assert.h>
4213 #endif
4214 Syntax error
4215 _ACEOF
4216 if ac_fn_c_try_cpp "$LINENO"; then :
4218 else
4219 # Broken: fails on valid input.
4220 continue
4222 rm -f conftest.err conftest.i conftest.$ac_ext
4224 # OK, works on sane cases. Now check whether nonexistent headers
4225 # can be detected and how.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #include <ac_nonexistent.h>
4229 _ACEOF
4230 if ac_fn_c_try_cpp "$LINENO"; then :
4231 # Broken: success on invalid input.
4232 continue
4233 else
4234 # Passes both tests.
4235 ac_preproc_ok=:
4236 break
4238 rm -f conftest.err conftest.i conftest.$ac_ext
4240 done
4241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242 rm -f conftest.i conftest.err conftest.$ac_ext
4243 if $ac_preproc_ok; then :
4244 break
4247 done
4248 ac_cv_prog_CPP=$CPP
4251 CPP=$ac_cv_prog_CPP
4252 else
4253 ac_cv_prog_CPP=$CPP
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4256 $as_echo "$CPP" >&6; }
4257 ac_preproc_ok=false
4258 for ac_c_preproc_warn_flag in '' yes
4260 # Use a header file that comes with gcc, so configuring glibc
4261 # with a fresh cross-compiler works.
4262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4263 # <limits.h> exists even on freestanding compilers.
4264 # On the NeXT, cc -E runs the code through the compiler's parser,
4265 # not just through cpp. "Syntax error" is here to catch this case.
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268 #ifdef __STDC__
4269 # include <limits.h>
4270 #else
4271 # include <assert.h>
4272 #endif
4273 Syntax error
4274 _ACEOF
4275 if ac_fn_c_try_cpp "$LINENO"; then :
4277 else
4278 # Broken: fails on valid input.
4279 continue
4281 rm -f conftest.err conftest.i conftest.$ac_ext
4283 # OK, works on sane cases. Now check whether nonexistent headers
4284 # can be detected and how.
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287 #include <ac_nonexistent.h>
4288 _ACEOF
4289 if ac_fn_c_try_cpp "$LINENO"; then :
4290 # Broken: success on invalid input.
4291 continue
4292 else
4293 # Passes both tests.
4294 ac_preproc_ok=:
4295 break
4297 rm -f conftest.err conftest.i conftest.$ac_ext
4299 done
4300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4301 rm -f conftest.i conftest.err conftest.$ac_ext
4302 if $ac_preproc_ok; then :
4304 else
4305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4307 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4308 See \`config.log' for more details" "$LINENO" 5; }
4311 ac_ext=c
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4319 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4320 if ${ac_cv_path_GREP+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if test -z "$GREP"; then
4324 ac_path_GREP_found=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_prog in grep ggrep; do
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4334 as_fn_executable_p "$ac_path_GREP" || continue
4335 # Check for GNU ac_path_GREP and select it if it is found.
4336 # Check for GNU $ac_path_GREP
4337 case `"$ac_path_GREP" --version 2>&1` in
4338 *GNU*)
4339 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4341 ac_count=0
4342 $as_echo_n 0123456789 >"conftest.in"
4343 while :
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'GREP' >> "conftest.nl"
4349 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4351 as_fn_arith $ac_count + 1 && ac_count=$as_val
4352 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_GREP="$ac_path_GREP"
4355 ac_path_GREP_max=$ac_count
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4359 done
4360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361 esac
4363 $ac_path_GREP_found && break 3
4364 done
4365 done
4366 done
4367 IFS=$as_save_IFS
4368 if test -z "$ac_cv_path_GREP"; then
4369 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4371 else
4372 ac_cv_path_GREP=$GREP
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4377 $as_echo "$ac_cv_path_GREP" >&6; }
4378 GREP="$ac_cv_path_GREP"
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4382 $as_echo_n "checking for egrep... " >&6; }
4383 if ${ac_cv_path_EGREP+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4387 then ac_cv_path_EGREP="$GREP -E"
4388 else
4389 if test -z "$EGREP"; then
4390 ac_path_EGREP_found=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_prog in egrep; do
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4400 as_fn_executable_p "$ac_path_EGREP" || continue
4401 # Check for GNU ac_path_EGREP and select it if it is found.
4402 # Check for GNU $ac_path_EGREP
4403 case `"$ac_path_EGREP" --version 2>&1` in
4404 *GNU*)
4405 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4407 ac_count=0
4408 $as_echo_n 0123456789 >"conftest.in"
4409 while :
4411 cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 mv "conftest.tmp" "conftest.in"
4413 cp "conftest.in" "conftest.nl"
4414 $as_echo 'EGREP' >> "conftest.nl"
4415 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417 as_fn_arith $ac_count + 1 && ac_count=$as_val
4418 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4419 # Best one so far, save it but keep looking for a better one
4420 ac_cv_path_EGREP="$ac_path_EGREP"
4421 ac_path_EGREP_max=$ac_count
4423 # 10*(2^10) chars as input seems more than enough
4424 test $ac_count -gt 10 && break
4425 done
4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427 esac
4429 $ac_path_EGREP_found && break 3
4430 done
4431 done
4432 done
4433 IFS=$as_save_IFS
4434 if test -z "$ac_cv_path_EGREP"; then
4435 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4437 else
4438 ac_cv_path_EGREP=$EGREP
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4444 $as_echo "$ac_cv_path_EGREP" >&6; }
4445 EGREP="$ac_cv_path_EGREP"
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4449 $as_echo_n "checking for ANSI C header files... " >&6; }
4450 if ${ac_cv_header_stdc+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455 #include <stdlib.h>
4456 #include <stdarg.h>
4457 #include <string.h>
4458 #include <float.h>
4461 main ()
4465 return 0;
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"; then :
4469 ac_cv_header_stdc=yes
4470 else
4471 ac_cv_header_stdc=no
4473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 if test $ac_cv_header_stdc = yes; then
4476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 #include <string.h>
4481 _ACEOF
4482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4483 $EGREP "memchr" >/dev/null 2>&1; then :
4485 else
4486 ac_cv_header_stdc=no
4488 rm -f conftest*
4492 if test $ac_cv_header_stdc = yes; then
4493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #include <stdlib.h>
4498 _ACEOF
4499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4500 $EGREP "free" >/dev/null 2>&1; then :
4502 else
4503 ac_cv_header_stdc=no
4505 rm -f conftest*
4509 if test $ac_cv_header_stdc = yes; then
4510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4511 if test "$cross_compiling" = yes; then :
4513 else
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516 #include <ctype.h>
4517 #include <stdlib.h>
4518 #if ((' ' & 0x0FF) == 0x020)
4519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4521 #else
4522 # define ISLOWER(c) \
4523 (('a' <= (c) && (c) <= 'i') \
4524 || ('j' <= (c) && (c) <= 'r') \
4525 || ('s' <= (c) && (c) <= 'z'))
4526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4527 #endif
4529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4531 main ()
4533 int i;
4534 for (i = 0; i < 256; i++)
4535 if (XOR (islower (i), ISLOWER (i))
4536 || toupper (i) != TOUPPER (i))
4537 return 2;
4538 return 0;
4540 _ACEOF
4541 if ac_fn_c_try_run "$LINENO"; then :
4543 else
4544 ac_cv_header_stdc=no
4546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4547 conftest.$ac_objext conftest.beam conftest.$ac_ext
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4553 $as_echo "$ac_cv_header_stdc" >&6; }
4554 if test $ac_cv_header_stdc = yes; then
4556 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4560 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4561 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4562 inttypes.h stdint.h unistd.h
4563 do :
4564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4565 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4567 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4568 cat >>confdefs.h <<_ACEOF
4569 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4570 _ACEOF
4574 done
4578 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4579 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4580 MINIX=yes
4581 else
4582 MINIX=
4586 if test "$MINIX" = yes; then
4588 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4591 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4594 $as_echo "#define _MINIX 1" >>confdefs.h
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4600 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4601 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4607 # define __EXTENSIONS__ 1
4608 $ac_includes_default
4610 main ()
4614 return 0;
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618 ac_cv_safe_to_define___extensions__=yes
4619 else
4620 ac_cv_safe_to_define___extensions__=no
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4625 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4626 test $ac_cv_safe_to_define___extensions__ = yes &&
4627 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4629 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4631 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4633 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4635 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4638 ac_aux_dir=
4639 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4640 if test -f "$ac_dir/install-sh"; then
4641 ac_aux_dir=$ac_dir
4642 ac_install_sh="$ac_aux_dir/install-sh -c"
4643 break
4644 elif test -f "$ac_dir/install.sh"; then
4645 ac_aux_dir=$ac_dir
4646 ac_install_sh="$ac_aux_dir/install.sh -c"
4647 break
4648 elif test -f "$ac_dir/shtool"; then
4649 ac_aux_dir=$ac_dir
4650 ac_install_sh="$ac_aux_dir/shtool install -c"
4651 break
4653 done
4654 if test -z "$ac_aux_dir"; then
4655 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4658 # These three variables are undocumented and unsupported,
4659 # and are intended to be withdrawn in a future Autoconf release.
4660 # They can cause serious problems if a builder's source tree is in a directory
4661 # whose full name contains unusual characters.
4662 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4663 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4664 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4667 # Make sure we can run config.sub.
4668 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4669 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4672 $as_echo_n "checking build system type... " >&6; }
4673 if ${ac_cv_build+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 ac_build_alias=$build_alias
4677 test "x$ac_build_alias" = x &&
4678 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4679 test "x$ac_build_alias" = x &&
4680 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4681 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4682 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4686 $as_echo "$ac_cv_build" >&6; }
4687 case $ac_cv_build in
4688 *-*-*) ;;
4689 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4690 esac
4691 build=$ac_cv_build
4692 ac_save_IFS=$IFS; IFS='-'
4693 set x $ac_cv_build
4694 shift
4695 build_cpu=$1
4696 build_vendor=$2
4697 shift; shift
4698 # Remember, the first character of IFS is used to create $*,
4699 # except with old shells:
4700 build_os=$*
4701 IFS=$ac_save_IFS
4702 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4706 $as_echo_n "checking host system type... " >&6; }
4707 if ${ac_cv_host+:} false; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 if test "x$host_alias" = x; then
4711 ac_cv_host=$ac_cv_build
4712 else
4713 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4714 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4719 $as_echo "$ac_cv_host" >&6; }
4720 case $ac_cv_host in
4721 *-*-*) ;;
4722 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4723 esac
4724 host=$ac_cv_host
4725 ac_save_IFS=$IFS; IFS='-'
4726 set x $ac_cv_host
4727 shift
4728 host_cpu=$1
4729 host_vendor=$2
4730 shift; shift
4731 # Remember, the first character of IFS is used to create $*,
4732 # except with old shells:
4733 host_os=$*
4734 IFS=$ac_save_IFS
4735 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4739 $as_echo_n "checking target system type... " >&6; }
4740 if ${ac_cv_target+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test "x$target_alias" = x; then
4744 ac_cv_target=$ac_cv_host
4745 else
4746 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4747 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4752 $as_echo "$ac_cv_target" >&6; }
4753 case $ac_cv_target in
4754 *-*-*) ;;
4755 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4756 esac
4757 target=$ac_cv_target
4758 ac_save_IFS=$IFS; IFS='-'
4759 set x $ac_cv_target
4760 shift
4761 target_cpu=$1
4762 target_vendor=$2
4763 shift; shift
4764 # Remember, the first character of IFS is used to create $*,
4765 # except with old shells:
4766 target_os=$*
4767 IFS=$ac_save_IFS
4768 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4771 # The aliases save the names the user supplied, while $host etc.
4772 # will get canonicalized.
4773 test -n "$target_alias" &&
4774 test "$program_prefix$program_suffix$program_transform_name" = \
4775 NONENONEs,x,x, &&
4776 program_prefix=${target_alias}-
4778 # The tests for host and target for $enable_largefile require
4779 # canonical names.
4783 # As the $enable_largefile decision depends on --enable-plugins we must set it
4784 # even in directories otherwise not depending on the $plugins option.
4787 maybe_plugins=no
4788 for ac_header in dlfcn.h
4789 do :
4790 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4792 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4793 cat >>confdefs.h <<_ACEOF
4794 #define HAVE_DLFCN_H 1
4795 _ACEOF
4796 maybe_plugins=yes
4799 done
4801 for ac_header in windows.h
4802 do :
4803 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4805 if test "x$ac_cv_header_windows_h" = xyes; then :
4806 cat >>confdefs.h <<_ACEOF
4807 #define HAVE_WINDOWS_H 1
4808 _ACEOF
4809 maybe_plugins=yes
4812 done
4815 # Check whether --enable-plugins was given.
4816 if test "${enable_plugins+set}" = set; then :
4817 enableval=$enable_plugins; case "${enableval}" in
4818 no) plugins=no ;;
4819 *) plugins=yes
4820 if test "$maybe_plugins" != "yes" ; then
4821 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4822 fi ;;
4823 esac
4824 else
4825 plugins=$maybe_plugins
4829 if test "$plugins" = "yes"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4831 $as_echo_n "checking for library containing dlsym... " >&6; }
4832 if ${ac_cv_search_dlsym+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 ac_func_search_save_LIBS=$LIBS
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4839 /* Override any GCC internal prototype to avoid an error.
4840 Use char because int might match the return type of a GCC
4841 builtin and then its argument prototype would still apply. */
4842 #ifdef __cplusplus
4843 extern "C"
4844 #endif
4845 char dlsym ();
4847 main ()
4849 return dlsym ();
4851 return 0;
4853 _ACEOF
4854 for ac_lib in '' dl; do
4855 if test -z "$ac_lib"; then
4856 ac_res="none required"
4857 else
4858 ac_res=-l$ac_lib
4859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4861 if ac_fn_c_try_link "$LINENO"; then :
4862 ac_cv_search_dlsym=$ac_res
4864 rm -f core conftest.err conftest.$ac_objext \
4865 conftest$ac_exeext
4866 if ${ac_cv_search_dlsym+:} false; then :
4867 break
4869 done
4870 if ${ac_cv_search_dlsym+:} false; then :
4872 else
4873 ac_cv_search_dlsym=no
4875 rm conftest.$ac_ext
4876 LIBS=$ac_func_search_save_LIBS
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4879 $as_echo "$ac_cv_search_dlsym" >&6; }
4880 ac_res=$ac_cv_search_dlsym
4881 if test "$ac_res" != no; then :
4882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4889 case "${host}" in
4890 sparc-*-solaris*|i?86-*-solaris*)
4891 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4892 # were mutually exclusive until Solaris 11.3. Without procfs support,
4893 # the bfd/ elf module cannot provide certain routines such as
4894 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4895 # explicitly requested large-file support through the
4896 # --enable-largefile switch, disable large-file support in favor of
4897 # procfs support.
4899 # Check if <sys/procfs.h> is incompatible with large-file support.
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 #define _FILE_OFFSET_BITS 64
4903 #define _STRUCTURED_PROC 1
4904 #include <sys/procfs.h>
4906 main ()
4910 return 0;
4912 _ACEOF
4913 if ac_fn_c_try_compile "$LINENO"; then :
4914 acx_cv_procfs_lfs=yes
4915 else
4916 acx_cv_procfs_lfs=no
4918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920 # Forcefully disable large-file support only if necessary, gdb is in
4921 # tree and enabled.
4922 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4923 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
4924 : ${enable_largefile="no"}
4925 if test "$plugins" = yes; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4927 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4928 $as_echo "$as_me: WARNING:
4929 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4930 plugins=no
4934 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4935 # benefit of g++ 9+ which predefines it on Solaris.
4936 if test "$enable_largefile" = no; then
4937 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
4941 esac
4943 # Check whether --enable-largefile was given.
4944 if test "${enable_largefile+set}" = set; then :
4945 enableval=$enable_largefile;
4948 if test "$enable_largefile" != no; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4951 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4952 if ${ac_cv_sys_largefile_CC+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 ac_cv_sys_largefile_CC=no
4956 if test "$GCC" != yes; then
4957 ac_save_CC=$CC
4958 while :; do
4959 # IRIX 6.2 and later do not support large files by default,
4960 # so use the C compiler's -n32 option if that helps.
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 #include <sys/types.h>
4964 /* Check that off_t can represent 2**63 - 1 correctly.
4965 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4966 since some C++ compilers masquerading as C compilers
4967 incorrectly reject 9223372036854775807. */
4968 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4969 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4970 && LARGE_OFF_T % 2147483647 == 1)
4971 ? 1 : -1];
4973 main ()
4977 return 0;
4979 _ACEOF
4980 if ac_fn_c_try_compile "$LINENO"; then :
4981 break
4983 rm -f core conftest.err conftest.$ac_objext
4984 CC="$CC -n32"
4985 if ac_fn_c_try_compile "$LINENO"; then :
4986 ac_cv_sys_largefile_CC=' -n32'; break
4988 rm -f core conftest.err conftest.$ac_objext
4989 break
4990 done
4991 CC=$ac_save_CC
4992 rm -f conftest.$ac_ext
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4996 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4997 if test "$ac_cv_sys_largefile_CC" != no; then
4998 CC=$CC$ac_cv_sys_largefile_CC
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5002 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5003 if ${ac_cv_sys_file_offset_bits+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 while :; do
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5009 #include <sys/types.h>
5010 /* Check that off_t can represent 2**63 - 1 correctly.
5011 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5012 since some C++ compilers masquerading as C compilers
5013 incorrectly reject 9223372036854775807. */
5014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5016 && LARGE_OFF_T % 2147483647 == 1)
5017 ? 1 : -1];
5019 main ()
5023 return 0;
5025 _ACEOF
5026 if ac_fn_c_try_compile "$LINENO"; then :
5027 ac_cv_sys_file_offset_bits=no; break
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032 #define _FILE_OFFSET_BITS 64
5033 #include <sys/types.h>
5034 /* Check that off_t can represent 2**63 - 1 correctly.
5035 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5036 since some C++ compilers masquerading as C compilers
5037 incorrectly reject 9223372036854775807. */
5038 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5039 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5040 && LARGE_OFF_T % 2147483647 == 1)
5041 ? 1 : -1];
5043 main ()
5047 return 0;
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051 ac_cv_sys_file_offset_bits=64; break
5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054 ac_cv_sys_file_offset_bits=unknown
5055 break
5056 done
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5059 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5060 case $ac_cv_sys_file_offset_bits in #(
5061 no | unknown) ;;
5063 cat >>confdefs.h <<_ACEOF
5064 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5065 _ACEOF
5067 esac
5068 rm -rf conftest*
5069 if test $ac_cv_sys_file_offset_bits = unknown; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5071 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5072 if ${ac_cv_sys_large_files+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 while :; do
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 #include <sys/types.h>
5079 /* Check that off_t can represent 2**63 - 1 correctly.
5080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5081 since some C++ compilers masquerading as C compilers
5082 incorrectly reject 9223372036854775807. */
5083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5085 && LARGE_OFF_T % 2147483647 == 1)
5086 ? 1 : -1];
5088 main ()
5092 return 0;
5094 _ACEOF
5095 if ac_fn_c_try_compile "$LINENO"; then :
5096 ac_cv_sys_large_files=no; break
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5101 #define _LARGE_FILES 1
5102 #include <sys/types.h>
5103 /* Check that off_t can represent 2**63 - 1 correctly.
5104 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5105 since some C++ compilers masquerading as C compilers
5106 incorrectly reject 9223372036854775807. */
5107 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5108 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5109 && LARGE_OFF_T % 2147483647 == 1)
5110 ? 1 : -1];
5112 main ()
5116 return 0;
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120 ac_cv_sys_large_files=1; break
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 ac_cv_sys_large_files=unknown
5124 break
5125 done
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5128 $as_echo "$ac_cv_sys_large_files" >&6; }
5129 case $ac_cv_sys_large_files in #(
5130 no | unknown) ;;
5132 cat >>confdefs.h <<_ACEOF
5133 #define _LARGE_FILES $ac_cv_sys_large_files
5134 _ACEOF
5136 esac
5137 rm -rf conftest*
5144 # Expand $ac_aux_dir to an absolute path.
5145 am_aux_dir=`cd "$ac_aux_dir" && pwd`
5147 if test x"${install_sh+set}" != xset; then
5148 case $am_aux_dir in
5149 *\ * | *\ *)
5150 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5152 install_sh="\${SHELL} $am_aux_dir/install-sh"
5153 esac
5156 # Installed binaries are usually stripped using 'strip' when the user
5157 # run "make install-strip". However 'strip' might not be the right
5158 # tool to use in cross-compilation environments, therefore Automake
5159 # will honor the 'STRIP' environment variable to overrule this program.
5160 if test "$cross_compiling" != no; then
5161 if test -n "$ac_tool_prefix"; then
5162 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5163 set dummy ${ac_tool_prefix}strip; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if ${ac_cv_prog_STRIP+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if test -n "$STRIP"; then
5170 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5183 done
5184 done
5185 IFS=$as_save_IFS
5189 STRIP=$ac_cv_prog_STRIP
5190 if test -n "$STRIP"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5192 $as_echo "$STRIP" >&6; }
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5200 if test -z "$ac_cv_prog_STRIP"; then
5201 ac_ct_STRIP=$STRIP
5202 # Extract the first word of "strip", so it can be a program name with args.
5203 set dummy strip; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 if test -n "$ac_ct_STRIP"; then
5210 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5211 else
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219 ac_cv_prog_ac_ct_STRIP="strip"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5223 done
5224 done
5225 IFS=$as_save_IFS
5229 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5230 if test -n "$ac_ct_STRIP"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5232 $as_echo "$ac_ct_STRIP" >&6; }
5233 else
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5238 if test "x$ac_ct_STRIP" = x; then
5239 STRIP=":"
5240 else
5241 case $cross_compiling:$ac_tool_warned in
5242 yes:)
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245 ac_tool_warned=yes ;;
5246 esac
5247 STRIP=$ac_ct_STRIP
5249 else
5250 STRIP="$ac_cv_prog_STRIP"
5254 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5257 ac_aux_dir=
5258 for ac_dir in .. "$srcdir"/..; do
5259 if test -f "$ac_dir/install-sh"; then
5260 ac_aux_dir=$ac_dir
5261 ac_install_sh="$ac_aux_dir/install-sh -c"
5262 break
5263 elif test -f "$ac_dir/install.sh"; then
5264 ac_aux_dir=$ac_dir
5265 ac_install_sh="$ac_aux_dir/install.sh -c"
5266 break
5267 elif test -f "$ac_dir/shtool"; then
5268 ac_aux_dir=$ac_dir
5269 ac_install_sh="$ac_aux_dir/shtool install -c"
5270 break
5272 done
5273 if test -z "$ac_aux_dir"; then
5274 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5277 # These three variables are undocumented and unsupported,
5278 # and are intended to be withdrawn in a future Autoconf release.
5279 # They can cause serious problems if a builder's source tree is in a directory
5280 # whose full name contains unusual characters.
5281 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5282 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5283 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5287 # Set build, build_cpu, build_vendor and build_os.
5290 # Set host, host_cpu, host_vendor, and host_os.
5293 # Set target, target_cpu, target_vendor, and target_os.
5296 case ${build_alias} in
5297 "") build_noncanonical=${build} ;;
5298 *) build_noncanonical=${build_alias} ;;
5299 esac
5301 case ${host_alias} in
5302 "") host_noncanonical=${build_noncanonical} ;;
5303 *) host_noncanonical=${host_alias} ;;
5304 esac
5306 case ${target_alias} in
5307 "") target_noncanonical=${host_noncanonical} ;;
5308 *) target_noncanonical=${target_alias} ;;
5309 esac
5314 test "$program_prefix" != NONE &&
5315 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5316 # Use a double $ so make ignores it.
5317 test "$program_suffix" != NONE &&
5318 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5319 # Double any \ or $.
5320 # By default was `s,x,x', remove it if useless.
5321 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5322 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5325 # We require libtool to link with the in-tree libtool libraries
5326 # the proper way.
5327 case `pwd` in
5328 *\ * | *\ *)
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5330 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5331 esac
5335 macro_version='2.2.7a'
5336 macro_revision='1.3134'
5350 ltmain="$ac_aux_dir/ltmain.sh"
5352 # Backslashify metacharacters that are still active within
5353 # double-quoted strings.
5354 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5356 # Same as above, but do not quote variable references.
5357 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5359 # Sed substitution to delay expansion of an escaped shell variable in a
5360 # double_quote_subst'ed string.
5361 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5363 # Sed substitution to delay expansion of an escaped single quote.
5364 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5366 # Sed substitution to avoid accidental globbing in evaled expressions
5367 no_glob_subst='s/\*/\\\*/g'
5369 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5370 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5371 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5374 $as_echo_n "checking how to print strings... " >&6; }
5375 # Test print first, because it will be a builtin if present.
5376 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5377 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5378 ECHO='print -r --'
5379 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5380 ECHO='printf %s\n'
5381 else
5382 # Use this function as a fallback that always works.
5383 func_fallback_echo ()
5385 eval 'cat <<_LTECHO_EOF
5387 _LTECHO_EOF'
5389 ECHO='func_fallback_echo'
5392 # func_echo_all arg...
5393 # Invoke $ECHO with all args, space-separated.
5394 func_echo_all ()
5396 $ECHO ""
5399 case "$ECHO" in
5400 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5401 $as_echo "printf" >&6; } ;;
5402 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5403 $as_echo "print -r" >&6; } ;;
5404 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5405 $as_echo "cat" >&6; } ;;
5406 esac
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5422 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5423 if ${ac_cv_path_SED+:} false; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5427 for ac_i in 1 2 3 4 5 6 7; do
5428 ac_script="$ac_script$as_nl$ac_script"
5429 done
5430 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5431 { ac_script=; unset ac_script;}
5432 if test -z "$SED"; then
5433 ac_path_SED_found=false
5434 # Loop through the user's path and test for each of PROGNAME-LIST
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_prog in sed gsed; do
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5443 as_fn_executable_p "$ac_path_SED" || continue
5444 # Check for GNU ac_path_SED and select it if it is found.
5445 # Check for GNU $ac_path_SED
5446 case `"$ac_path_SED" --version 2>&1` in
5447 *GNU*)
5448 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5450 ac_count=0
5451 $as_echo_n 0123456789 >"conftest.in"
5452 while :
5454 cat "conftest.in" "conftest.in" >"conftest.tmp"
5455 mv "conftest.tmp" "conftest.in"
5456 cp "conftest.in" "conftest.nl"
5457 $as_echo '' >> "conftest.nl"
5458 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5459 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5460 as_fn_arith $ac_count + 1 && ac_count=$as_val
5461 if test $ac_count -gt ${ac_path_SED_max-0}; then
5462 # Best one so far, save it but keep looking for a better one
5463 ac_cv_path_SED="$ac_path_SED"
5464 ac_path_SED_max=$ac_count
5466 # 10*(2^10) chars as input seems more than enough
5467 test $ac_count -gt 10 && break
5468 done
5469 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5470 esac
5472 $ac_path_SED_found && break 3
5473 done
5474 done
5475 done
5476 IFS=$as_save_IFS
5477 if test -z "$ac_cv_path_SED"; then
5478 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5480 else
5481 ac_cv_path_SED=$SED
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5486 $as_echo "$ac_cv_path_SED" >&6; }
5487 SED="$ac_cv_path_SED"
5488 rm -f conftest.sed
5490 test -z "$SED" && SED=sed
5491 Xsed="$SED -e 1s/^X//"
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5504 $as_echo_n "checking for fgrep... " >&6; }
5505 if ${ac_cv_path_FGREP+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5509 then ac_cv_path_FGREP="$GREP -F"
5510 else
5511 if test -z "$FGREP"; then
5512 ac_path_FGREP_found=false
5513 # Loop through the user's path and test for each of PROGNAME-LIST
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_prog in fgrep; do
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5522 as_fn_executable_p "$ac_path_FGREP" || continue
5523 # Check for GNU ac_path_FGREP and select it if it is found.
5524 # Check for GNU $ac_path_FGREP
5525 case `"$ac_path_FGREP" --version 2>&1` in
5526 *GNU*)
5527 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5529 ac_count=0
5530 $as_echo_n 0123456789 >"conftest.in"
5531 while :
5533 cat "conftest.in" "conftest.in" >"conftest.tmp"
5534 mv "conftest.tmp" "conftest.in"
5535 cp "conftest.in" "conftest.nl"
5536 $as_echo 'FGREP' >> "conftest.nl"
5537 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5539 as_fn_arith $ac_count + 1 && ac_count=$as_val
5540 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5541 # Best one so far, save it but keep looking for a better one
5542 ac_cv_path_FGREP="$ac_path_FGREP"
5543 ac_path_FGREP_max=$ac_count
5545 # 10*(2^10) chars as input seems more than enough
5546 test $ac_count -gt 10 && break
5547 done
5548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5549 esac
5551 $ac_path_FGREP_found && break 3
5552 done
5553 done
5554 done
5555 IFS=$as_save_IFS
5556 if test -z "$ac_cv_path_FGREP"; then
5557 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5559 else
5560 ac_cv_path_FGREP=$FGREP
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5566 $as_echo "$ac_cv_path_FGREP" >&6; }
5567 FGREP="$ac_cv_path_FGREP"
5570 test -z "$GREP" && GREP=grep
5590 # Check whether --with-gnu-ld was given.
5591 if test "${with_gnu_ld+set}" = set; then :
5592 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5593 else
5594 with_gnu_ld=no
5597 ac_prog=ld
5598 if test "$GCC" = yes; then
5599 # Check if gcc -print-prog-name=ld gives a path.
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5601 $as_echo_n "checking for ld used by $CC... " >&6; }
5602 case $host in
5603 *-*-mingw*)
5604 # gcc leaves a trailing carriage return which upsets mingw
5605 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5607 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5608 esac
5609 case $ac_prog in
5610 # Accept absolute paths.
5611 [\\/]* | ?:[\\/]*)
5612 re_direlt='/[^/][^/]*/\.\./'
5613 # Canonicalize the pathname of ld
5614 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5615 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5616 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5617 done
5618 test -z "$LD" && LD="$ac_prog"
5621 # If it fails, then pretend we aren't using GCC.
5622 ac_prog=ld
5625 # If it is relative, then search for the first ld in PATH.
5626 with_gnu_ld=unknown
5628 esac
5629 elif test "$with_gnu_ld" = yes; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5631 $as_echo_n "checking for GNU ld... " >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5634 $as_echo_n "checking for non-GNU ld... " >&6; }
5636 if ${lt_cv_path_LD+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 if test -z "$LD"; then
5640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5641 for ac_dir in $PATH; do
5642 IFS="$lt_save_ifs"
5643 test -z "$ac_dir" && ac_dir=.
5644 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5645 lt_cv_path_LD="$ac_dir/$ac_prog"
5646 # Check to see if the program is GNU ld. I'd rather use --version,
5647 # but apparently some variants of GNU ld only accept -v.
5648 # Break only if it was the GNU/non-GNU ld that we prefer.
5649 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5650 *GNU* | *'with BFD'*)
5651 test "$with_gnu_ld" != no && break
5654 test "$with_gnu_ld" != yes && break
5656 esac
5658 done
5659 IFS="$lt_save_ifs"
5660 else
5661 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5665 LD="$lt_cv_path_LD"
5666 if test -n "$LD"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5668 $as_echo "$LD" >&6; }
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5673 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5675 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5676 if ${lt_cv_prog_gnu_ld+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5680 case `$LD -v 2>&1 </dev/null` in
5681 *GNU* | *'with BFD'*)
5682 lt_cv_prog_gnu_ld=yes
5685 lt_cv_prog_gnu_ld=no
5687 esac
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5690 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5691 with_gnu_ld=$lt_cv_prog_gnu_ld
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5702 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5703 if ${lt_cv_path_NM+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 if test -n "$NM"; then
5707 # Let the user override the nm to test.
5708 lt_nm_to_check="$NM"
5709 else
5710 lt_nm_to_check="${ac_tool_prefix}nm"
5711 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5712 lt_nm_to_check="$lt_nm_to_check nm"
5715 for lt_tmp_nm in "$lt_nm_to_check"; do
5716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5717 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5718 IFS="$lt_save_ifs"
5719 test -z "$ac_dir" && ac_dir=.
5720 # Strip out any user-provided options from the nm to test twice,
5721 # the first time to test to see if nm (rather than its options) has
5722 # an explicit path, the second time to yield a file which can be
5723 # nm'ed itself.
5724 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5725 case "$tmp_nm_path" in
5726 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5727 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5728 esac
5729 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5730 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5731 # Check to see if the nm accepts a BSD-compat flag.
5732 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5733 # nm: unknown option "B" ignored
5734 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5735 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5736 break
5739 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5740 *$tmp_nm*)
5741 lt_cv_path_NM="$tmp_nm -p"
5742 break
5745 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5746 continue # so that we can try to find one that supports BSD flags
5748 esac
5750 esac
5752 done
5753 IFS="$lt_save_ifs"
5754 done
5755 : ${lt_cv_path_NM=no}
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5758 $as_echo "$lt_cv_path_NM" >&6; }
5759 if test "$lt_cv_path_NM" != "no"; then
5760 NM="$lt_cv_path_NM"
5761 else
5762 # Didn't find any BSD compatible name lister, look for dumpbin.
5763 if test -n "$DUMPBIN"; then :
5764 # Let the user override the test.
5765 else
5766 if test -n "$ac_tool_prefix"; then
5767 for ac_prog in dumpbin "link -dump"
5769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 $as_echo_n "checking for $ac_word... " >&6; }
5773 if ${ac_cv_prog_DUMPBIN+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 if test -n "$DUMPBIN"; then
5777 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5790 done
5791 done
5792 IFS=$as_save_IFS
5796 DUMPBIN=$ac_cv_prog_DUMPBIN
5797 if test -n "$DUMPBIN"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5799 $as_echo "$DUMPBIN" >&6; }
5800 else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5806 test -n "$DUMPBIN" && break
5807 done
5809 if test -z "$DUMPBIN"; then
5810 ac_ct_DUMPBIN=$DUMPBIN
5811 for ac_prog in dumpbin "link -dump"
5813 # Extract the first word of "$ac_prog", so it can be a program name with args.
5814 set dummy $ac_prog; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 if test -n "$ac_ct_DUMPBIN"; then
5821 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5834 done
5835 done
5836 IFS=$as_save_IFS
5840 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5841 if test -n "$ac_ct_DUMPBIN"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5843 $as_echo "$ac_ct_DUMPBIN" >&6; }
5844 else
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5850 test -n "$ac_ct_DUMPBIN" && break
5851 done
5853 if test "x$ac_ct_DUMPBIN" = x; then
5854 DUMPBIN=":"
5855 else
5856 case $cross_compiling:$ac_tool_warned in
5857 yes:)
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5860 ac_tool_warned=yes ;;
5861 esac
5862 DUMPBIN=$ac_ct_DUMPBIN
5866 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5867 *COFF*)
5868 DUMPBIN="$DUMPBIN -symbols"
5871 DUMPBIN=:
5873 esac
5876 if test "$DUMPBIN" != ":"; then
5877 NM="$DUMPBIN"
5880 test -z "$NM" && NM=nm
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5888 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5889 if ${lt_cv_nm_interface+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 lt_cv_nm_interface="BSD nm"
5893 echo "int some_variable = 0;" > conftest.$ac_ext
5894 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5895 (eval "$ac_compile" 2>conftest.err)
5896 cat conftest.err >&5
5897 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5898 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5899 cat conftest.err >&5
5900 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5901 cat conftest.out >&5
5902 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5903 lt_cv_nm_interface="MS dumpbin"
5905 rm -f conftest*
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5908 $as_echo "$lt_cv_nm_interface" >&6; }
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5911 $as_echo_n "checking whether ln -s works... " >&6; }
5912 LN_S=$as_ln_s
5913 if test "$LN_S" = "ln -s"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5915 $as_echo "yes" >&6; }
5916 else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5918 $as_echo "no, using $LN_S" >&6; }
5921 # find the maximum length of command line arguments
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5923 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5924 if ${lt_cv_sys_max_cmd_len+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5928 teststring="ABCD"
5930 case $build_os in
5931 msdosdjgpp*)
5932 # On DJGPP, this test can blow up pretty badly due to problems in libc
5933 # (any single argument exceeding 2000 bytes causes a buffer overrun
5934 # during glob expansion). Even if it were fixed, the result of this
5935 # check would be larger than it should be.
5936 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5939 gnu*)
5940 # Under GNU Hurd, this test is not required because there is
5941 # no limit to the length of command line arguments.
5942 # Libtool will interpret -1 as no limit whatsoever
5943 lt_cv_sys_max_cmd_len=-1;
5946 cygwin* | mingw* | cegcc*)
5947 # On Win9x/ME, this test blows up -- it succeeds, but takes
5948 # about 5 minutes as the teststring grows exponentially.
5949 # Worse, since 9x/ME are not pre-emptively multitasking,
5950 # you end up with a "frozen" computer, even though with patience
5951 # the test eventually succeeds (with a max line length of 256k).
5952 # Instead, let's just punt: use the minimum linelength reported by
5953 # all of the supported platforms: 8192 (on NT/2K/XP).
5954 lt_cv_sys_max_cmd_len=8192;
5957 mint*)
5958 # On MiNT this can take a long time and run out of memory.
5959 lt_cv_sys_max_cmd_len=8192;
5962 amigaos*)
5963 # On AmigaOS with pdksh, this test takes hours, literally.
5964 # So we just punt and use a minimum line length of 8192.
5965 lt_cv_sys_max_cmd_len=8192;
5968 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5969 # This has been around since 386BSD, at least. Likely further.
5970 if test -x /sbin/sysctl; then
5971 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5972 elif test -x /usr/sbin/sysctl; then
5973 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5974 else
5975 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5977 # And add a safety zone
5978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5982 interix*)
5983 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5984 lt_cv_sys_max_cmd_len=196608
5987 osf*)
5988 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5989 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5990 # nice to cause kernel panics so lets avoid the loop below.
5991 # First set a reasonable default.
5992 lt_cv_sys_max_cmd_len=16384
5994 if test -x /sbin/sysconfig; then
5995 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5996 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5997 esac
6000 sco3.2v5*)
6001 lt_cv_sys_max_cmd_len=102400
6003 sysv5* | sco5v6* | sysv4.2uw2*)
6004 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6005 if test -n "$kargmax"; then
6006 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6007 else
6008 lt_cv_sys_max_cmd_len=32768
6012 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6013 if test -n "$lt_cv_sys_max_cmd_len"; then
6014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6016 else
6017 # Make teststring a little bigger before we do anything with it.
6018 # a 1K string should be a reasonable start.
6019 for i in 1 2 3 4 5 6 7 8 ; do
6020 teststring=$teststring$teststring
6021 done
6022 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6023 # If test is not a shell built-in, we'll probably end up computing a
6024 # maximum length that is only half of the actual maximum length, but
6025 # we can't tell.
6026 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6027 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6028 test $i != 17 # 1/2 MB should be enough
6030 i=`expr $i + 1`
6031 teststring=$teststring$teststring
6032 done
6033 # Only check the string length outside the loop.
6034 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6035 teststring=
6036 # Add a significant safety factor because C++ compilers can tack on
6037 # massive amounts of additional arguments before passing them to the
6038 # linker. It appears as though 1/2 is a usable value.
6039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6042 esac
6046 if test -n $lt_cv_sys_max_cmd_len ; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6048 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6049 else
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6051 $as_echo "none" >&6; }
6053 max_cmd_len=$lt_cv_sys_max_cmd_len
6060 : ${CP="cp -f"}
6061 : ${MV="mv -f"}
6062 : ${RM="rm -f"}
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6065 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6066 # Try some XSI features
6067 xsi_shell=no
6068 ( _lt_dummy="a/b/c"
6069 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6070 = c,a/b,, \
6071 && eval 'test $(( 1 + 1 )) -eq 2 \
6072 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6073 && xsi_shell=yes
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6075 $as_echo "$xsi_shell" >&6; }
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6079 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6080 lt_shell_append=no
6081 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6082 >/dev/null 2>&1 \
6083 && lt_shell_append=yes
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6085 $as_echo "$lt_shell_append" >&6; }
6088 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6089 lt_unset=unset
6090 else
6091 lt_unset=false
6098 # test EBCDIC or ASCII
6099 case `echo X|tr X '\101'` in
6100 A) # ASCII based system
6101 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6102 lt_SP2NL='tr \040 \012'
6103 lt_NL2SP='tr \015\012 \040\040'
6105 *) # EBCDIC based system
6106 lt_SP2NL='tr \100 \n'
6107 lt_NL2SP='tr \r\n \100\100'
6109 esac
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6120 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6121 if ${lt_cv_ld_reload_flag+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 lt_cv_ld_reload_flag='-r'
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6127 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6128 reload_flag=$lt_cv_ld_reload_flag
6129 case $reload_flag in
6130 "" | " "*) ;;
6131 *) reload_flag=" $reload_flag" ;;
6132 esac
6133 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6134 case $host_os in
6135 darwin*)
6136 if test "$GCC" = yes; then
6137 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6138 else
6139 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6142 esac
6152 if test -n "$ac_tool_prefix"; then
6153 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6154 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if ${ac_cv_prog_OBJDUMP+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if test -n "$OBJDUMP"; then
6161 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6174 done
6175 done
6176 IFS=$as_save_IFS
6180 OBJDUMP=$ac_cv_prog_OBJDUMP
6181 if test -n "$OBJDUMP"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6183 $as_echo "$OBJDUMP" >&6; }
6184 else
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6191 if test -z "$ac_cv_prog_OBJDUMP"; then
6192 ac_ct_OBJDUMP=$OBJDUMP
6193 # Extract the first word of "objdump", so it can be a program name with args.
6194 set dummy objdump; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 if test -n "$ac_ct_OBJDUMP"; then
6201 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6214 done
6215 done
6216 IFS=$as_save_IFS
6220 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6221 if test -n "$ac_ct_OBJDUMP"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6223 $as_echo "$ac_ct_OBJDUMP" >&6; }
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6229 if test "x$ac_ct_OBJDUMP" = x; then
6230 OBJDUMP="false"
6231 else
6232 case $cross_compiling:$ac_tool_warned in
6233 yes:)
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236 ac_tool_warned=yes ;;
6237 esac
6238 OBJDUMP=$ac_ct_OBJDUMP
6240 else
6241 OBJDUMP="$ac_cv_prog_OBJDUMP"
6244 test -z "$OBJDUMP" && OBJDUMP=objdump
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6255 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6256 if ${lt_cv_deplibs_check_method+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 lt_cv_file_magic_cmd='$MAGIC_CMD'
6260 lt_cv_file_magic_test_file=
6261 lt_cv_deplibs_check_method='unknown'
6262 # Need to set the preceding variable on all platforms that support
6263 # interlibrary dependencies.
6264 # 'none' -- dependencies not supported.
6265 # `unknown' -- same as none, but documents that we really don't know.
6266 # 'pass_all' -- all dependencies passed with no checks.
6267 # 'test_compile' -- check by making test program.
6268 # 'file_magic [[regex]]' -- check by looking for files in library path
6269 # which responds to the $file_magic_cmd with a given extended regex.
6270 # If you have `file' or equivalent on your system and you're not sure
6271 # whether `pass_all' will *always* work, you probably want this one.
6273 case $host_os in
6274 aix[4-9]*)
6275 lt_cv_deplibs_check_method=pass_all
6278 beos*)
6279 lt_cv_deplibs_check_method=pass_all
6282 bsdi[45]*)
6283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6284 lt_cv_file_magic_cmd='/usr/bin/file -L'
6285 lt_cv_file_magic_test_file=/shlib/libc.so
6288 cygwin*)
6289 # func_win32_libid is a shell function defined in ltmain.sh
6290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6291 lt_cv_file_magic_cmd='func_win32_libid'
6294 mingw* | pw32*)
6295 # Base MSYS/MinGW do not provide the 'file' command needed by
6296 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6297 # unless we find 'file', for example because we are cross-compiling.
6298 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6299 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6301 lt_cv_file_magic_cmd='func_win32_libid'
6302 else
6303 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6304 lt_cv_file_magic_cmd='$OBJDUMP -f'
6308 cegcc*)
6309 # use the weaker test based on 'objdump'. See mingw*.
6310 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6311 lt_cv_file_magic_cmd='$OBJDUMP -f'
6314 darwin* | rhapsody*)
6315 lt_cv_deplibs_check_method=pass_all
6318 freebsd* | dragonfly*)
6319 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6320 case $host_cpu in
6321 i*86 )
6322 # Not sure whether the presence of OpenBSD here was a mistake.
6323 # Let's accept both of them until this is cleared up.
6324 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6325 lt_cv_file_magic_cmd=/usr/bin/file
6326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6328 esac
6329 else
6330 lt_cv_deplibs_check_method=pass_all
6334 gnu*)
6335 lt_cv_deplibs_check_method=pass_all
6338 haiku*)
6339 lt_cv_deplibs_check_method=pass_all
6342 hpux10.20* | hpux11*)
6343 lt_cv_file_magic_cmd=/usr/bin/file
6344 case $host_cpu in
6345 ia64*)
6346 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6347 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6349 hppa*64*)
6350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6351 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6354 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6355 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6357 esac
6360 interix[3-9]*)
6361 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6365 irix5* | irix6* | nonstopux*)
6366 case $LD in
6367 *-32|*"-32 ") libmagic=32-bit;;
6368 *-n32|*"-n32 ") libmagic=N32;;
6369 *-64|*"-64 ") libmagic=64-bit;;
6370 *) libmagic=never-match;;
6371 esac
6372 lt_cv_deplibs_check_method=pass_all
6375 # This must be Linux ELF.
6376 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6377 lt_cv_deplibs_check_method=pass_all
6380 netbsd*)
6381 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6383 else
6384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6388 newos6*)
6389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6390 lt_cv_file_magic_cmd=/usr/bin/file
6391 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6394 *nto* | *qnx*)
6395 lt_cv_deplibs_check_method=pass_all
6398 openbsd*)
6399 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6401 else
6402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6406 osf3* | osf4* | osf5*)
6407 lt_cv_deplibs_check_method=pass_all
6410 rdos*)
6411 lt_cv_deplibs_check_method=pass_all
6414 solaris*)
6415 lt_cv_deplibs_check_method=pass_all
6418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6419 lt_cv_deplibs_check_method=pass_all
6422 sysv4 | sysv4.3*)
6423 case $host_vendor in
6424 motorola)
6425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6426 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6428 ncr)
6429 lt_cv_deplibs_check_method=pass_all
6431 sequent)
6432 lt_cv_file_magic_cmd='/bin/file'
6433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6435 sni)
6436 lt_cv_file_magic_cmd='/bin/file'
6437 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6438 lt_cv_file_magic_test_file=/lib/libc.so
6440 siemens)
6441 lt_cv_deplibs_check_method=pass_all
6444 lt_cv_deplibs_check_method=pass_all
6446 esac
6449 tpf*)
6450 lt_cv_deplibs_check_method=pass_all
6452 vxworks*)
6453 # Assume VxWorks cross toolchains are built on Linux, possibly
6454 # as canadian for Windows hosts.
6455 lt_cv_deplibs_check_method=pass_all
6457 esac
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6461 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6462 file_magic_cmd=$lt_cv_file_magic_cmd
6463 deplibs_check_method=$lt_cv_deplibs_check_method
6464 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6477 plugin_option=
6478 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6479 for plugin in $plugin_names; do
6480 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6481 if test x$plugin_so = x$plugin; then
6482 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6484 if test x$plugin_so != x$plugin; then
6485 plugin_option="--plugin $plugin_so"
6486 break
6488 done
6490 if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}ar; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if ${ac_cv_prog_AR+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 if test -n "$AR"; then
6499 ac_cv_prog_AR="$AR" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508 ac_cv_prog_AR="${ac_tool_prefix}ar"
6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 break 2
6512 done
6513 done
6514 IFS=$as_save_IFS
6518 AR=$ac_cv_prog_AR
6519 if test -n "$AR"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6521 $as_echo "$AR" >&6; }
6522 else
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6529 if test -z "$ac_cv_prog_AR"; then
6530 ac_ct_AR=$AR
6531 # Extract the first word of "ar", so it can be a program name with args.
6532 set dummy ar; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 if test -n "$ac_ct_AR"; then
6539 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_ac_ct_AR="ar"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6552 done
6553 done
6554 IFS=$as_save_IFS
6558 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6559 if test -n "$ac_ct_AR"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6561 $as_echo "$ac_ct_AR" >&6; }
6562 else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6567 if test "x$ac_ct_AR" = x; then
6568 AR="false"
6569 else
6570 case $cross_compiling:$ac_tool_warned in
6571 yes:)
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6574 ac_tool_warned=yes ;;
6575 esac
6576 AR=$ac_ct_AR
6578 else
6579 AR="$ac_cv_prog_AR"
6582 test -z "$AR" && AR=ar
6583 if test -n "$plugin_option"; then
6584 if $AR --help 2>&1 | grep -q "\--plugin"; then
6585 touch conftest.c
6586 $AR $plugin_option rc conftest.a conftest.c
6587 if test "$?" != 0; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6589 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6590 else
6591 AR="$AR $plugin_option"
6593 rm -f conftest.*
6596 test -z "$AR_FLAGS" && AR_FLAGS=cru
6608 if test -n "$ac_tool_prefix"; then
6609 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}strip; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_STRIP+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 if test -n "$STRIP"; then
6617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6630 done
6631 done
6632 IFS=$as_save_IFS
6636 STRIP=$ac_cv_prog_STRIP
6637 if test -n "$STRIP"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6639 $as_echo "$STRIP" >&6; }
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6647 if test -z "$ac_cv_prog_STRIP"; then
6648 ac_ct_STRIP=$STRIP
6649 # Extract the first word of "strip", so it can be a program name with args.
6650 set dummy strip; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 if test -n "$ac_ct_STRIP"; then
6657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6662 IFS=$as_save_IFS
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666 ac_cv_prog_ac_ct_STRIP="strip"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 break 2
6670 done
6671 done
6672 IFS=$as_save_IFS
6676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6677 if test -n "$ac_ct_STRIP"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6679 $as_echo "$ac_ct_STRIP" >&6; }
6680 else
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6685 if test "x$ac_ct_STRIP" = x; then
6686 STRIP=":"
6687 else
6688 case $cross_compiling:$ac_tool_warned in
6689 yes:)
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692 ac_tool_warned=yes ;;
6693 esac
6694 STRIP=$ac_ct_STRIP
6696 else
6697 STRIP="$ac_cv_prog_STRIP"
6700 test -z "$STRIP" && STRIP=:
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_RANLIB+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$RANLIB"; then
6716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6729 done
6730 done
6731 IFS=$as_save_IFS
6735 RANLIB=$ac_cv_prog_RANLIB
6736 if test -n "$RANLIB"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6738 $as_echo "$RANLIB" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6746 if test -z "$ac_cv_prog_RANLIB"; then
6747 ac_ct_RANLIB=$RANLIB
6748 # Extract the first word of "ranlib", so it can be a program name with args.
6749 set dummy ranlib; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 if test -n "$ac_ct_RANLIB"; then
6756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765 ac_cv_prog_ac_ct_RANLIB="ranlib"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6769 done
6770 done
6771 IFS=$as_save_IFS
6775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6776 if test -n "$ac_ct_RANLIB"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6778 $as_echo "$ac_ct_RANLIB" >&6; }
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6784 if test "x$ac_ct_RANLIB" = x; then
6785 RANLIB=":"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793 RANLIB=$ac_ct_RANLIB
6795 else
6796 RANLIB="$ac_cv_prog_RANLIB"
6799 test -z "$RANLIB" && RANLIB=:
6800 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6801 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6802 RANLIB="$RANLIB $plugin_option"
6811 # Determine commands to create old-style static archives.
6812 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6813 old_postinstall_cmds='chmod 644 $oldlib'
6814 old_postuninstall_cmds=
6816 if test -n "$RANLIB"; then
6817 case $host_os in
6818 openbsd*)
6819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6824 esac
6825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6828 case $host_os in
6829 darwin*)
6830 lock_old_archive_extraction=yes ;;
6832 lock_old_archive_extraction=no ;;
6833 esac
6855 for ac_prog in gawk mawk nawk awk
6857 # Extract the first word of "$ac_prog", so it can be a program name with args.
6858 set dummy $ac_prog; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if ${ac_cv_prog_AWK+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 if test -n "$AWK"; then
6865 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_AWK="$ac_prog"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6878 done
6879 done
6880 IFS=$as_save_IFS
6884 AWK=$ac_cv_prog_AWK
6885 if test -n "$AWK"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6887 $as_echo "$AWK" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6894 test -n "$AWK" && break
6895 done
6915 # If no C compiler was specified, use CC.
6916 LTCC=${LTCC-"$CC"}
6918 # If no C compiler flags were specified, use CFLAGS.
6919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6921 # Allow CC to be a program name with arguments.
6922 compiler=$CC
6925 # Check for command to grab the raw symbol name followed by C symbol from nm.
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6927 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6928 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6932 # These are sane defaults that work on at least a few old systems.
6933 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6935 # Character class describing NM global symbol codes.
6936 symcode='[BCDEGRST]'
6938 # Regexp to match symbols that can be accessed directly from C.
6939 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6941 # Define system-specific variables.
6942 case $host_os in
6943 aix*)
6944 symcode='[BCDT]'
6946 cygwin* | mingw* | pw32* | cegcc*)
6947 symcode='[ABCDGISTW]'
6949 hpux*)
6950 if test "$host_cpu" = ia64; then
6951 symcode='[ABCDEGRST]'
6954 irix* | nonstopux*)
6955 symcode='[BCDEGRST]'
6957 osf*)
6958 symcode='[BCDEGQRST]'
6960 solaris*)
6961 symcode='[BCDRT]'
6963 sco3.2v5*)
6964 symcode='[DT]'
6966 sysv4.2uw2*)
6967 symcode='[DT]'
6969 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6970 symcode='[ABDT]'
6972 sysv4)
6973 symcode='[DFNSTU]'
6975 esac
6977 # If we're using GNU nm, then use its standard symbol codes.
6978 case `$NM -V 2>&1` in
6979 *GNU* | *'with BFD'*)
6980 symcode='[ABCDGIRSTW]' ;;
6981 esac
6983 # Transform an extracted symbol line into a proper C declaration.
6984 # Some systems (esp. on ia64) link data and code symbols differently,
6985 # so use this general approach.
6986 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6988 # Transform an extracted symbol line into symbol name and symbol address
6989 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6990 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6992 # Handle CRLF in mingw tool chain
6993 opt_cr=
6994 case $build_os in
6995 mingw*)
6996 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6998 esac
7000 # Try without a prefix underscore, then with it.
7001 for ac_symprfx in "" "_"; do
7003 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7004 symxfrm="\\1 $ac_symprfx\\2 \\2"
7006 # Write the raw and C identifiers.
7007 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7008 # Fake it for dumpbin and say T for any non-static function
7009 # and D for any global variable.
7010 # Also find C++ and __fastcall symbols from MSVC++,
7011 # which start with @ or ?.
7012 lt_cv_sys_global_symbol_pipe="$AWK '"\
7013 " {last_section=section; section=\$ 3};"\
7014 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7015 " \$ 0!~/External *\|/{next};"\
7016 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7017 " {if(hide[section]) next};"\
7018 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7019 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7020 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7021 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7022 " ' prfx=^$ac_symprfx"
7023 else
7024 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7027 # Check to see that the pipe works correctly.
7028 pipe_works=no
7030 rm -f conftest*
7031 cat > conftest.$ac_ext <<_LT_EOF
7032 #ifdef __cplusplus
7033 extern "C" {
7034 #endif
7035 char nm_test_var;
7036 void nm_test_func(void);
7037 void nm_test_func(void){}
7038 #ifdef __cplusplus
7040 #endif
7041 int main(){nm_test_var='a';nm_test_func();return(0);}
7042 _LT_EOF
7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045 (eval $ac_compile) 2>&5
7046 ac_status=$?
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }; then
7049 # Now try to grab the symbols.
7050 nlist=conftest.nm
7051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7052 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7053 ac_status=$?
7054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7055 test $ac_status = 0; } && test -s "$nlist"; then
7056 # Try sorting and uniquifying the output.
7057 if sort "$nlist" | uniq > "$nlist"T; then
7058 mv -f "$nlist"T "$nlist"
7059 else
7060 rm -f "$nlist"T
7063 # Make sure that we snagged all the symbols we need.
7064 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7065 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7066 cat <<_LT_EOF > conftest.$ac_ext
7067 #ifdef __cplusplus
7068 extern "C" {
7069 #endif
7071 _LT_EOF
7072 # Now generate the symbol file.
7073 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7075 cat <<_LT_EOF >> conftest.$ac_ext
7077 /* The mapping between symbol names and symbols. */
7078 const struct {
7079 const char *name;
7080 void *address;
7082 lt__PROGRAM__LTX_preloaded_symbols[] =
7084 { "@PROGRAM@", (void *) 0 },
7085 _LT_EOF
7086 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7087 cat <<\_LT_EOF >> conftest.$ac_ext
7088 {0, (void *) 0}
7091 /* This works around a problem in FreeBSD linker */
7092 #ifdef FREEBSD_WORKAROUND
7093 static const void *lt_preloaded_setup() {
7094 return lt__PROGRAM__LTX_preloaded_symbols;
7096 #endif
7098 #ifdef __cplusplus
7100 #endif
7101 _LT_EOF
7102 # Now try linking the two files.
7103 mv conftest.$ac_objext conftstm.$ac_objext
7104 lt_save_LIBS="$LIBS"
7105 lt_save_CFLAGS="$CFLAGS"
7106 LIBS="conftstm.$ac_objext"
7107 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7109 (eval $ac_link) 2>&5
7110 ac_status=$?
7111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7112 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7113 pipe_works=yes
7115 LIBS="$lt_save_LIBS"
7116 CFLAGS="$lt_save_CFLAGS"
7117 else
7118 echo "cannot find nm_test_func in $nlist" >&5
7120 else
7121 echo "cannot find nm_test_var in $nlist" >&5
7123 else
7124 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7126 else
7127 echo "$progname: failed program was:" >&5
7128 cat conftest.$ac_ext >&5
7130 rm -rf conftest* conftst*
7132 # Do not use the global_symbol_pipe unless it works.
7133 if test "$pipe_works" = yes; then
7134 break
7135 else
7136 lt_cv_sys_global_symbol_pipe=
7138 done
7142 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7143 lt_cv_sys_global_symbol_to_cdecl=
7145 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7147 $as_echo "failed" >&6; }
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7150 $as_echo "ok" >&6; }
7174 # Check whether --enable-libtool-lock was given.
7175 if test "${enable_libtool_lock+set}" = set; then :
7176 enableval=$enable_libtool_lock;
7179 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7181 # Some flags need to be propagated to the compiler or linker for good
7182 # libtool support.
7183 case $host in
7184 ia64-*-hpux*)
7185 # Find out which ABI we are using.
7186 echo 'int i;' > conftest.$ac_ext
7187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7188 (eval $ac_compile) 2>&5
7189 ac_status=$?
7190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7191 test $ac_status = 0; }; then
7192 case `/usr/bin/file conftest.$ac_objext` in
7193 *ELF-32*)
7194 HPUX_IA64_MODE="32"
7196 *ELF-64*)
7197 HPUX_IA64_MODE="64"
7199 esac
7201 rm -rf conftest*
7203 *-*-irix6*)
7204 # Find out which ABI we are using.
7205 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207 (eval $ac_compile) 2>&5
7208 ac_status=$?
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; }; then
7211 if test "$lt_cv_prog_gnu_ld" = yes; then
7212 case `/usr/bin/file conftest.$ac_objext` in
7213 *32-bit*)
7214 LD="${LD-ld} -melf32bsmip"
7216 *N32*)
7217 LD="${LD-ld} -melf32bmipn32"
7219 *64-bit*)
7220 LD="${LD-ld} -melf64bmip"
7222 esac
7223 else
7224 case `/usr/bin/file conftest.$ac_objext` in
7225 *32-bit*)
7226 LD="${LD-ld} -32"
7228 *N32*)
7229 LD="${LD-ld} -n32"
7231 *64-bit*)
7232 LD="${LD-ld} -64"
7234 esac
7237 rm -rf conftest*
7240 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7241 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7242 # Find out which ABI we are using.
7243 echo 'int i;' > conftest.$ac_ext
7244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7245 (eval $ac_compile) 2>&5
7246 ac_status=$?
7247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248 test $ac_status = 0; }; then
7249 case `/usr/bin/file conftest.o` in
7250 *32-bit*)
7251 case $host in
7252 x86_64-*kfreebsd*-gnu)
7253 LD="${LD-ld} -m elf_i386_fbsd"
7255 x86_64-*linux*)
7256 case `/usr/bin/file conftest.o` in
7257 *x86-64*)
7258 LD="${LD-ld} -m elf32_x86_64"
7261 LD="${LD-ld} -m elf_i386"
7263 esac
7265 powerpc64le-*linux*)
7266 LD="${LD-ld} -m elf32lppclinux"
7268 powerpc64-*linux*)
7269 LD="${LD-ld} -m elf32ppclinux"
7271 s390x-*linux*)
7272 LD="${LD-ld} -m elf_s390"
7274 sparc64-*linux*)
7275 LD="${LD-ld} -m elf32_sparc"
7277 esac
7279 *64-bit*)
7280 case $host in
7281 x86_64-*kfreebsd*-gnu)
7282 LD="${LD-ld} -m elf_x86_64_fbsd"
7284 x86_64-*linux*)
7285 LD="${LD-ld} -m elf_x86_64"
7287 powerpcle-*linux*)
7288 LD="${LD-ld} -m elf64lppc"
7290 powerpc-*linux*)
7291 LD="${LD-ld} -m elf64ppc"
7293 s390*-*linux*|s390*-*tpf*)
7294 LD="${LD-ld} -m elf64_s390"
7296 sparc*-*linux*)
7297 LD="${LD-ld} -m elf64_sparc"
7299 esac
7301 esac
7303 rm -rf conftest*
7306 *-*-sco3.2v5*)
7307 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7308 SAVE_CFLAGS="$CFLAGS"
7309 CFLAGS="$CFLAGS -belf"
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7311 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7312 if ${lt_cv_cc_needs_belf+:} false; then :
7313 $as_echo_n "(cached) " >&6
7314 else
7315 ac_ext=c
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7325 main ()
7329 return 0;
7331 _ACEOF
7332 if ac_fn_c_try_link "$LINENO"; then :
7333 lt_cv_cc_needs_belf=yes
7334 else
7335 lt_cv_cc_needs_belf=no
7337 rm -f core conftest.err conftest.$ac_objext \
7338 conftest$ac_exeext conftest.$ac_ext
7339 ac_ext=c
7340 ac_cpp='$CPP $CPPFLAGS'
7341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7347 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7348 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7349 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7350 CFLAGS="$SAVE_CFLAGS"
7353 sparc*-*solaris*)
7354 # Find out which ABI we are using.
7355 echo 'int i;' > conftest.$ac_ext
7356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357 (eval $ac_compile) 2>&5
7358 ac_status=$?
7359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7360 test $ac_status = 0; }; then
7361 case `/usr/bin/file conftest.o` in
7362 *64-bit*)
7363 case $lt_cv_prog_gnu_ld in
7364 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7366 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7367 LD="${LD-ld} -64"
7370 esac
7372 esac
7374 rm -rf conftest*
7376 esac
7378 need_locks="$enable_libtool_lock"
7381 case $host_os in
7382 rhapsody* | darwin*)
7383 if test -n "$ac_tool_prefix"; then
7384 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7385 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 if test -n "$DSYMUTIL"; then
7392 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7405 done
7406 done
7407 IFS=$as_save_IFS
7411 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7412 if test -n "$DSYMUTIL"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7414 $as_echo "$DSYMUTIL" >&6; }
7415 else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7422 if test -z "$ac_cv_prog_DSYMUTIL"; then
7423 ac_ct_DSYMUTIL=$DSYMUTIL
7424 # Extract the first word of "dsymutil", so it can be a program name with args.
7425 set dummy dsymutil; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 if test -n "$ac_ct_DSYMUTIL"; then
7432 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7433 else
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7445 done
7446 done
7447 IFS=$as_save_IFS
7451 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7452 if test -n "$ac_ct_DSYMUTIL"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7454 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7455 else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7460 if test "x$ac_ct_DSYMUTIL" = x; then
7461 DSYMUTIL=":"
7462 else
7463 case $cross_compiling:$ac_tool_warned in
7464 yes:)
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7467 ac_tool_warned=yes ;;
7468 esac
7469 DSYMUTIL=$ac_ct_DSYMUTIL
7471 else
7472 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7475 if test -n "$ac_tool_prefix"; then
7476 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_NMEDIT+:} false; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 if test -n "$NMEDIT"; then
7484 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7497 done
7498 done
7499 IFS=$as_save_IFS
7503 NMEDIT=$ac_cv_prog_NMEDIT
7504 if test -n "$NMEDIT"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7506 $as_echo "$NMEDIT" >&6; }
7507 else
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7514 if test -z "$ac_cv_prog_NMEDIT"; then
7515 ac_ct_NMEDIT=$NMEDIT
7516 # Extract the first word of "nmedit", so it can be a program name with args.
7517 set dummy nmedit; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 if test -n "$ac_ct_NMEDIT"; then
7524 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7537 done
7538 done
7539 IFS=$as_save_IFS
7543 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7544 if test -n "$ac_ct_NMEDIT"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7546 $as_echo "$ac_ct_NMEDIT" >&6; }
7547 else
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7552 if test "x$ac_ct_NMEDIT" = x; then
7553 NMEDIT=":"
7554 else
7555 case $cross_compiling:$ac_tool_warned in
7556 yes:)
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7560 esac
7561 NMEDIT=$ac_ct_NMEDIT
7563 else
7564 NMEDIT="$ac_cv_prog_NMEDIT"
7567 if test -n "$ac_tool_prefix"; then
7568 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_LIPO+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 if test -n "$LIPO"; then
7576 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7581 IFS=$as_save_IFS
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 break 2
7589 done
7590 done
7591 IFS=$as_save_IFS
7595 LIPO=$ac_cv_prog_LIPO
7596 if test -n "$LIPO"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7598 $as_echo "$LIPO" >&6; }
7599 else
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7606 if test -z "$ac_cv_prog_LIPO"; then
7607 ac_ct_LIPO=$LIPO
7608 # Extract the first word of "lipo", so it can be a program name with args.
7609 set dummy lipo; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 if test -n "$ac_ct_LIPO"; then
7616 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_ac_ct_LIPO="lipo"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7629 done
7630 done
7631 IFS=$as_save_IFS
7635 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7636 if test -n "$ac_ct_LIPO"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7638 $as_echo "$ac_ct_LIPO" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7644 if test "x$ac_ct_LIPO" = x; then
7645 LIPO=":"
7646 else
7647 case $cross_compiling:$ac_tool_warned in
7648 yes:)
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7652 esac
7653 LIPO=$ac_ct_LIPO
7655 else
7656 LIPO="$ac_cv_prog_LIPO"
7659 if test -n "$ac_tool_prefix"; then
7660 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}otool; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_prog_OTOOL+:} false; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 if test -n "$OTOOL"; then
7668 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 break 2
7681 done
7682 done
7683 IFS=$as_save_IFS
7687 OTOOL=$ac_cv_prog_OTOOL
7688 if test -n "$OTOOL"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7690 $as_echo "$OTOOL" >&6; }
7691 else
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7698 if test -z "$ac_cv_prog_OTOOL"; then
7699 ac_ct_OTOOL=$OTOOL
7700 # Extract the first word of "otool", so it can be a program name with args.
7701 set dummy otool; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 if test -n "$ac_ct_OTOOL"; then
7708 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_ac_ct_OTOOL="otool"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7721 done
7722 done
7723 IFS=$as_save_IFS
7727 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7728 if test -n "$ac_ct_OTOOL"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7730 $as_echo "$ac_ct_OTOOL" >&6; }
7731 else
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7736 if test "x$ac_ct_OTOOL" = x; then
7737 OTOOL=":"
7738 else
7739 case $cross_compiling:$ac_tool_warned in
7740 yes:)
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7743 ac_tool_warned=yes ;;
7744 esac
7745 OTOOL=$ac_ct_OTOOL
7747 else
7748 OTOOL="$ac_cv_prog_OTOOL"
7751 if test -n "$ac_tool_prefix"; then
7752 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if ${ac_cv_prog_OTOOL64+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 if test -n "$OTOOL64"; then
7760 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7773 done
7774 done
7775 IFS=$as_save_IFS
7779 OTOOL64=$ac_cv_prog_OTOOL64
7780 if test -n "$OTOOL64"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7782 $as_echo "$OTOOL64" >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7790 if test -z "$ac_cv_prog_OTOOL64"; then
7791 ac_ct_OTOOL64=$OTOOL64
7792 # Extract the first word of "otool64", so it can be a program name with args.
7793 set dummy otool64; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 if test -n "$ac_ct_OTOOL64"; then
7800 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_prog_ac_ct_OTOOL64="otool64"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7813 done
7814 done
7815 IFS=$as_save_IFS
7819 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7820 if test -n "$ac_ct_OTOOL64"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7822 $as_echo "$ac_ct_OTOOL64" >&6; }
7823 else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7828 if test "x$ac_ct_OTOOL64" = x; then
7829 OTOOL64=":"
7830 else
7831 case $cross_compiling:$ac_tool_warned in
7832 yes:)
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 ac_tool_warned=yes ;;
7836 esac
7837 OTOOL64=$ac_ct_OTOOL64
7839 else
7840 OTOOL64="$ac_cv_prog_OTOOL64"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7870 $as_echo_n "checking for -single_module linker flag... " >&6; }
7871 if ${lt_cv_apple_cc_single_mod+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 lt_cv_apple_cc_single_mod=no
7875 if test -z "${LT_MULTI_MODULE}"; then
7876 # By default we will add the -single_module flag. You can override
7877 # by either setting the environment variable LT_MULTI_MODULE
7878 # non-empty at configure time, or by adding -multi_module to the
7879 # link flags.
7880 rm -rf libconftest.dylib*
7881 echo "int foo(void){return 1;}" > conftest.c
7882 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7883 -dynamiclib -Wl,-single_module conftest.c" >&5
7884 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7885 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7886 _lt_result=$?
7887 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7888 lt_cv_apple_cc_single_mod=yes
7889 else
7890 cat conftest.err >&5
7892 rm -rf libconftest.dylib*
7893 rm -f conftest.*
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7897 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7899 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7900 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 lt_cv_ld_exported_symbols_list=no
7904 save_LDFLAGS=$LDFLAGS
7905 echo "_main" > conftest.sym
7906 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7911 main ()
7915 return 0;
7917 _ACEOF
7918 if ac_fn_c_try_link "$LINENO"; then :
7919 lt_cv_ld_exported_symbols_list=yes
7920 else
7921 lt_cv_ld_exported_symbols_list=no
7923 rm -f core conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925 LDFLAGS="$save_LDFLAGS"
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7929 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7931 $as_echo_n "checking for -force_load linker flag... " >&6; }
7932 if ${lt_cv_ld_force_load+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 lt_cv_ld_force_load=no
7936 cat > conftest.c << _LT_EOF
7937 int forced_loaded() { return 2;}
7938 _LT_EOF
7939 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7940 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7941 echo "$AR cru libconftest.a conftest.o" >&5
7942 $AR cru libconftest.a conftest.o 2>&5
7943 cat > conftest.c << _LT_EOF
7944 int main() { return 0;}
7945 _LT_EOF
7946 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7947 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7948 _lt_result=$?
7949 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7950 lt_cv_ld_force_load=yes
7951 else
7952 cat conftest.err >&5
7954 rm -f conftest.err libconftest.a conftest conftest.c
7955 rm -rf conftest.dSYM
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7959 $as_echo "$lt_cv_ld_force_load" >&6; }
7960 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7961 # build without first building modern cctools / linker.
7962 case $host_cpu-$host_os in
7963 *-rhapsody* | *-darwin1.[012])
7964 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7965 *-darwin1.*)
7966 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7967 *-darwin*)
7968 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7969 # deployment target is forced to an earlier version.
7970 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7971 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7973 10.[012][,.]*)
7974 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7978 esac
7980 esac
7981 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7982 _lt_dar_single_mod='$single_module'
7984 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7985 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7986 else
7987 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7989 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7990 _lt_dsymutil='~$DSYMUTIL $lib || :'
7991 else
7992 _lt_dsymutil=
7995 esac
7997 for ac_header in dlfcn.h
7998 do :
7999 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8001 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8002 cat >>confdefs.h <<_ACEOF
8003 #define HAVE_DLFCN_H 1
8004 _ACEOF
8008 done
8015 # Set options
8019 enable_dlopen=no
8022 enable_win32_dll=no
8025 # Check whether --enable-shared was given.
8026 if test "${enable_shared+set}" = set; then :
8027 enableval=$enable_shared; p=${PACKAGE-default}
8028 case $enableval in
8029 yes) enable_shared=yes ;;
8030 no) enable_shared=no ;;
8032 enable_shared=no
8033 # Look at the argument we got. We use all the common list separators.
8034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8035 for pkg in $enableval; do
8036 IFS="$lt_save_ifs"
8037 if test "X$pkg" = "X$p"; then
8038 enable_shared=yes
8040 done
8041 IFS="$lt_save_ifs"
8043 esac
8044 else
8045 enable_shared=yes
8056 # Check whether --enable-static was given.
8057 if test "${enable_static+set}" = set; then :
8058 enableval=$enable_static; p=${PACKAGE-default}
8059 case $enableval in
8060 yes) enable_static=yes ;;
8061 no) enable_static=no ;;
8063 enable_static=no
8064 # Look at the argument we got. We use all the common list separators.
8065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8066 for pkg in $enableval; do
8067 IFS="$lt_save_ifs"
8068 if test "X$pkg" = "X$p"; then
8069 enable_static=yes
8071 done
8072 IFS="$lt_save_ifs"
8074 esac
8075 else
8076 enable_static=yes
8088 # Check whether --with-pic was given.
8089 if test "${with_pic+set}" = set; then :
8090 withval=$with_pic; pic_mode="$withval"
8091 else
8092 pic_mode=default
8096 test -z "$pic_mode" && pic_mode=default
8104 # Check whether --enable-fast-install was given.
8105 if test "${enable_fast_install+set}" = set; then :
8106 enableval=$enable_fast_install; p=${PACKAGE-default}
8107 case $enableval in
8108 yes) enable_fast_install=yes ;;
8109 no) enable_fast_install=no ;;
8111 enable_fast_install=no
8112 # Look at the argument we got. We use all the common list separators.
8113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114 for pkg in $enableval; do
8115 IFS="$lt_save_ifs"
8116 if test "X$pkg" = "X$p"; then
8117 enable_fast_install=yes
8119 done
8120 IFS="$lt_save_ifs"
8122 esac
8123 else
8124 enable_fast_install=yes
8137 # This can be used to rebuild libtool when needed
8138 LIBTOOL_DEPS="$ltmain"
8140 # Always use our own libtool.
8141 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8168 test -z "$LN_S" && LN_S="ln -s"
8183 if test -n "${ZSH_VERSION+set}" ; then
8184 setopt NO_GLOB_SUBST
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188 $as_echo_n "checking for objdir... " >&6; }
8189 if ${lt_cv_objdir+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 rm -f .libs 2>/dev/null
8193 mkdir .libs 2>/dev/null
8194 if test -d .libs; then
8195 lt_cv_objdir=.libs
8196 else
8197 # MS-DOS does not allow filenames that begin with a dot.
8198 lt_cv_objdir=_libs
8200 rmdir .libs 2>/dev/null
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8203 $as_echo "$lt_cv_objdir" >&6; }
8204 objdir=$lt_cv_objdir
8210 cat >>confdefs.h <<_ACEOF
8211 #define LT_OBJDIR "$lt_cv_objdir/"
8212 _ACEOF
8217 case $host_os in
8218 aix3*)
8219 # AIX sometimes has problems with the GCC collect2 program. For some
8220 # reason, if we set the COLLECT_NAMES environment variable, the problems
8221 # vanish in a puff of smoke.
8222 if test "X${COLLECT_NAMES+set}" != Xset; then
8223 COLLECT_NAMES=
8224 export COLLECT_NAMES
8227 esac
8229 # Global variables:
8230 ofile=libtool
8231 can_build_shared=yes
8233 # All known linkers require a `.a' archive for static linking (except MSVC,
8234 # which needs '.lib').
8235 libext=a
8237 with_gnu_ld="$lt_cv_prog_gnu_ld"
8239 old_CC="$CC"
8240 old_CFLAGS="$CFLAGS"
8242 # Set sane defaults for various variables
8243 test -z "$CC" && CC=cc
8244 test -z "$LTCC" && LTCC=$CC
8245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246 test -z "$LD" && LD=ld
8247 test -z "$ac_objext" && ac_objext=o
8249 for cc_temp in $compiler""; do
8250 case $cc_temp in
8251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8253 \-*) ;;
8254 *) break;;
8255 esac
8256 done
8257 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8260 # Only perform the check for file, if the check method requires it
8261 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8262 case $deplibs_check_method in
8263 file_magic*)
8264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8266 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8267 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 case $MAGIC_CMD in
8271 [\\/*] | ?:[\\/]*)
8272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8275 lt_save_MAGIC_CMD="$MAGIC_CMD"
8276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278 for ac_dir in $ac_dummy; do
8279 IFS="$lt_save_ifs"
8280 test -z "$ac_dir" && ac_dir=.
8281 if test -f $ac_dir/${ac_tool_prefix}file; then
8282 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283 if test -n "$file_magic_test_file"; then
8284 case $deplibs_check_method in
8285 "file_magic "*)
8286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289 $EGREP "$file_magic_regex" > /dev/null; then
8291 else
8292 cat <<_LT_EOF 1>&2
8294 *** Warning: the command libtool uses to detect shared libraries,
8295 *** $file_magic_cmd, produces output that libtool cannot recognize.
8296 *** The result is that libtool may fail to recognize shared libraries
8297 *** as such. This will affect the creation of libtool libraries that
8298 *** depend on shared libraries, but programs linked with such libtool
8299 *** libraries will work regardless of this problem. Nevertheless, you
8300 *** may want to report the problem to your system manager and/or to
8301 *** bug-libtool@gnu.org
8303 _LT_EOF
8304 fi ;;
8305 esac
8307 break
8309 done
8310 IFS="$lt_save_ifs"
8311 MAGIC_CMD="$lt_save_MAGIC_CMD"
8313 esac
8316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317 if test -n "$MAGIC_CMD"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8319 $as_echo "$MAGIC_CMD" >&6; }
8320 else
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8329 if test -z "$lt_cv_path_MAGIC_CMD"; then
8330 if test -n "$ac_tool_prefix"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8332 $as_echo_n "checking for file... " >&6; }
8333 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 case $MAGIC_CMD in
8337 [\\/*] | ?:[\\/]*)
8338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8341 lt_save_MAGIC_CMD="$MAGIC_CMD"
8342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344 for ac_dir in $ac_dummy; do
8345 IFS="$lt_save_ifs"
8346 test -z "$ac_dir" && ac_dir=.
8347 if test -f $ac_dir/file; then
8348 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8349 if test -n "$file_magic_test_file"; then
8350 case $deplibs_check_method in
8351 "file_magic "*)
8352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355 $EGREP "$file_magic_regex" > /dev/null; then
8357 else
8358 cat <<_LT_EOF 1>&2
8360 *** Warning: the command libtool uses to detect shared libraries,
8361 *** $file_magic_cmd, produces output that libtool cannot recognize.
8362 *** The result is that libtool may fail to recognize shared libraries
8363 *** as such. This will affect the creation of libtool libraries that
8364 *** depend on shared libraries, but programs linked with such libtool
8365 *** libraries will work regardless of this problem. Nevertheless, you
8366 *** may want to report the problem to your system manager and/or to
8367 *** bug-libtool@gnu.org
8369 _LT_EOF
8370 fi ;;
8371 esac
8373 break
8375 done
8376 IFS="$lt_save_ifs"
8377 MAGIC_CMD="$lt_save_MAGIC_CMD"
8379 esac
8382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383 if test -n "$MAGIC_CMD"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385 $as_echo "$MAGIC_CMD" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8392 else
8393 MAGIC_CMD=:
8399 esac
8401 # Use C for the default configuration in the libtool script
8403 lt_save_CC="$CC"
8404 ac_ext=c
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8411 # Source file extension for C test sources.
8412 ac_ext=c
8414 # Object file extension for compiled C test sources.
8415 objext=o
8416 objext=$objext
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable = 0;"
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}'
8430 # If no C compiler was specified, use CC.
8431 LTCC=${LTCC-"$CC"}
8433 # If no C compiler flags were specified, use CFLAGS.
8434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8436 # Allow CC to be a program name with arguments.
8437 compiler=$CC
8439 # Save the default compiler, since it gets overwritten when the other
8440 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8441 compiler_DEFAULT=$CC
8443 # save warnings/boilerplate of simple test code
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447 _lt_compiler_boilerplate=`cat conftest.err`
8448 $RM conftest*
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453 _lt_linker_boilerplate=`cat conftest.err`
8454 $RM -r conftest*
8457 ## CAVEAT EMPTOR:
8458 ## There is no encapsulation within the following macros, do not change
8459 ## the running order or otherwise move them around unless you know exactly
8460 ## what you are doing...
8461 if test -n "$compiler"; then
8463 lt_prog_compiler_no_builtin_flag=
8465 if test "$GCC" = yes; then
8466 case $cc_basename in
8467 nvcc*)
8468 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8470 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8471 esac
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8474 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8475 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 lt_cv_prog_compiler_rtti_exceptions=no
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481 lt_compiler_flag="-fno-rtti -fno-exceptions"
8482 # Insert the option either (1) after the last *FLAGS variable, or
8483 # (2) before a word containing "conftest.", or (3) at the end.
8484 # Note that $ac_compile itself does not contain backslashes and begins
8485 # with a dollar sign (not a hyphen), so the echo should work correctly.
8486 # The option is referenced via a variable to avoid confusing sed.
8487 lt_compile=`echo "$ac_compile" | $SED \
8488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490 -e 's:$: $lt_compiler_flag:'`
8491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8492 (eval "$lt_compile" 2>conftest.err)
8493 ac_status=$?
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 if (exit $ac_status) && test -s "$ac_outfile"; then
8497 # The compiler can only warn and ignore the option if not recognized
8498 # So say no if there are warnings other than the usual output.
8499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8502 lt_cv_prog_compiler_rtti_exceptions=yes
8505 $RM conftest*
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8509 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8511 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8512 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8513 else
8524 lt_prog_compiler_wl=
8525 lt_prog_compiler_pic=
8526 lt_prog_compiler_static=
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8529 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8531 if test "$GCC" = yes; then
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_static='-static'
8535 case $host_os in
8536 aix*)
8537 # All AIX code is PIC.
8538 if test "$host_cpu" = ia64; then
8539 # AIX 5 now supports IA64 processor
8540 lt_prog_compiler_static='-Bstatic'
8542 lt_prog_compiler_pic='-fPIC'
8545 amigaos*)
8546 case $host_cpu in
8547 powerpc)
8548 # see comment about AmigaOS4 .so support
8549 lt_prog_compiler_pic='-fPIC'
8551 m68k)
8552 # FIXME: we need at least 68020 code to build shared libraries, but
8553 # adding the `-m68020' flag to GCC prevents building anything better,
8554 # like `-m68040'.
8555 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8557 esac
8560 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8561 # PIC is the default for these OSes.
8564 mingw* | cygwin* | pw32* | os2* | cegcc*)
8565 # This hack is so that the source file can tell whether it is being
8566 # built for inclusion in a dll (and should export symbols for example).
8567 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8568 # (--disable-auto-import) libraries
8569 lt_prog_compiler_pic='-DDLL_EXPORT'
8572 darwin* | rhapsody*)
8573 # PIC is the default on this platform
8574 # Common symbols not allowed in MH_DYLIB files
8575 lt_prog_compiler_pic='-fno-common'
8578 haiku*)
8579 # PIC is the default for Haiku.
8580 # The "-static" flag exists, but is broken.
8581 lt_prog_compiler_static=
8584 hpux*)
8585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8587 # sets the default TLS model and affects inlining.
8588 case $host_cpu in
8589 hppa*64*)
8590 # +Z the default
8593 lt_prog_compiler_pic='-fPIC'
8595 esac
8598 interix[3-9]*)
8599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8600 # Instead, we relocate shared libraries at runtime.
8603 msdosdjgpp*)
8604 # Just because we use GCC doesn't mean we suddenly get shared libraries
8605 # on systems that don't support them.
8606 lt_prog_compiler_can_build_shared=no
8607 enable_shared=no
8610 *nto* | *qnx*)
8611 # QNX uses GNU C++, but need to define -shared option too, otherwise
8612 # it will coredump.
8613 lt_prog_compiler_pic='-fPIC -shared'
8616 sysv4*MP*)
8617 if test -d /usr/nec; then
8618 lt_prog_compiler_pic=-Kconform_pic
8623 lt_prog_compiler_pic='-fPIC'
8625 esac
8627 case $cc_basename in
8628 nvcc*) # Cuda Compiler Driver 2.2
8629 lt_prog_compiler_wl='-Xlinker '
8630 lt_prog_compiler_pic='-Xcompiler -fPIC'
8632 esac
8633 else
8634 # PORTME Check for flag to pass linker flags through the system compiler.
8635 case $host_os in
8636 aix*)
8637 lt_prog_compiler_wl='-Wl,'
8638 if test "$host_cpu" = ia64; then
8639 # AIX 5 now supports IA64 processor
8640 lt_prog_compiler_static='-Bstatic'
8641 else
8642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8646 mingw* | cygwin* | pw32* | os2* | cegcc*)
8647 # This hack is so that the source file can tell whether it is being
8648 # built for inclusion in a dll (and should export symbols for example).
8649 lt_prog_compiler_pic='-DDLL_EXPORT'
8652 hpux9* | hpux10* | hpux11*)
8653 lt_prog_compiler_wl='-Wl,'
8654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8655 # not for PA HP-UX.
8656 case $host_cpu in
8657 hppa*64*|ia64*)
8658 # +Z the default
8661 lt_prog_compiler_pic='+Z'
8663 esac
8664 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8665 lt_prog_compiler_static='${wl}-a ${wl}archive'
8668 irix5* | irix6* | nonstopux*)
8669 lt_prog_compiler_wl='-Wl,'
8670 # PIC (with -KPIC) is the default.
8671 lt_prog_compiler_static='-non_shared'
8674 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8675 case $cc_basename in
8676 # old Intel for x86_64 which still supported -KPIC.
8677 ecc*)
8678 lt_prog_compiler_wl='-Wl,'
8679 lt_prog_compiler_pic='-KPIC'
8680 lt_prog_compiler_static='-static'
8682 # icc used to be incompatible with GCC.
8683 # ICC 10 doesn't accept -KPIC any more.
8684 icc* | ifort*)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-fPIC'
8687 lt_prog_compiler_static='-static'
8689 # Lahey Fortran 8.1.
8690 lf95*)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_pic='--shared'
8693 lt_prog_compiler_static='--static'
8695 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8696 # Portland Group compilers (*not* the Pentium gcc compiler,
8697 # which looks to be a dead project)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='-fpic'
8700 lt_prog_compiler_static='-Bstatic'
8702 ccc*)
8703 lt_prog_compiler_wl='-Wl,'
8704 # All Alpha code is PIC.
8705 lt_prog_compiler_static='-non_shared'
8707 xl* | bgxl* | bgf* | mpixl*)
8708 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8709 lt_prog_compiler_wl='-Wl,'
8710 lt_prog_compiler_pic='-qpic'
8711 lt_prog_compiler_static='-qstaticlink'
8714 case `$CC -V 2>&1 | sed 5q` in
8715 *Sun\ F* | *Sun*Fortran*)
8716 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8717 lt_prog_compiler_pic='-KPIC'
8718 lt_prog_compiler_static='-Bstatic'
8719 lt_prog_compiler_wl=''
8721 *Sun\ C*)
8722 # Sun C 5.9
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_wl='-Wl,'
8727 esac
8729 esac
8732 newsos6)
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-Bstatic'
8737 *nto* | *qnx*)
8738 # QNX uses GNU C++, but need to define -shared option too, otherwise
8739 # it will coredump.
8740 lt_prog_compiler_pic='-fPIC -shared'
8743 osf3* | osf4* | osf5*)
8744 lt_prog_compiler_wl='-Wl,'
8745 # All OSF/1 code is PIC.
8746 lt_prog_compiler_static='-non_shared'
8749 rdos*)
8750 lt_prog_compiler_static='-non_shared'
8753 solaris*)
8754 lt_prog_compiler_pic='-KPIC'
8755 lt_prog_compiler_static='-Bstatic'
8756 case $cc_basename in
8757 f77* | f90* | f95*)
8758 lt_prog_compiler_wl='-Qoption ld ';;
8760 lt_prog_compiler_wl='-Wl,';;
8761 esac
8764 sunos4*)
8765 lt_prog_compiler_wl='-Qoption ld '
8766 lt_prog_compiler_pic='-PIC'
8767 lt_prog_compiler_static='-Bstatic'
8770 sysv4 | sysv4.2uw2* | sysv4.3*)
8771 lt_prog_compiler_wl='-Wl,'
8772 lt_prog_compiler_pic='-KPIC'
8773 lt_prog_compiler_static='-Bstatic'
8776 sysv4*MP*)
8777 if test -d /usr/nec ;then
8778 lt_prog_compiler_pic='-Kconform_pic'
8779 lt_prog_compiler_static='-Bstatic'
8783 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8784 lt_prog_compiler_wl='-Wl,'
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8789 unicos*)
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_can_build_shared=no
8794 uts4*)
8795 lt_prog_compiler_pic='-pic'
8796 lt_prog_compiler_static='-Bstatic'
8800 lt_prog_compiler_can_build_shared=no
8802 esac
8805 case $host_os in
8806 # For platforms which do not support PIC, -DPIC is meaningless:
8807 *djgpp*)
8808 lt_prog_compiler_pic=
8811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8813 esac
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8815 $as_echo "$lt_prog_compiler_pic" >&6; }
8823 # Check to make sure the PIC flag actually works.
8825 if test -n "$lt_prog_compiler_pic"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8827 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8828 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 lt_cv_prog_compiler_pic_works=no
8832 ac_outfile=conftest.$ac_objext
8833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8834 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8835 # Insert the option either (1) after the last *FLAGS variable, or
8836 # (2) before a word containing "conftest.", or (3) at the end.
8837 # Note that $ac_compile itself does not contain backslashes and begins
8838 # with a dollar sign (not a hyphen), so the echo should work correctly.
8839 # The option is referenced via a variable to avoid confusing sed.
8840 lt_compile=`echo "$ac_compile" | $SED \
8841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8843 -e 's:$: $lt_compiler_flag:'`
8844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8845 (eval "$lt_compile" 2>conftest.err)
8846 ac_status=$?
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 if (exit $ac_status) && test -s "$ac_outfile"; then
8850 # The compiler can only warn and ignore the option if not recognized
8851 # So say no if there are warnings other than the usual output.
8852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8855 lt_cv_prog_compiler_pic_works=yes
8858 $RM conftest*
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8862 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8864 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8865 case $lt_prog_compiler_pic in
8866 "" | " "*) ;;
8867 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8868 esac
8869 else
8870 lt_prog_compiler_pic=
8871 lt_prog_compiler_can_build_shared=no
8882 # Check to make sure the static flag actually works.
8884 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8886 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8887 if ${lt_cv_prog_compiler_static_works+:} false; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 lt_cv_prog_compiler_static_works=no
8891 save_LDFLAGS="$LDFLAGS"
8892 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8893 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8895 # The linker can only warn and ignore the option if not recognized
8896 # So say no if there are warnings
8897 if test -s conftest.err; then
8898 # Append any errors to the config.log.
8899 cat conftest.err 1>&5
8900 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8902 if diff conftest.exp conftest.er2 >/dev/null; then
8903 lt_cv_prog_compiler_static_works=yes
8905 else
8906 lt_cv_prog_compiler_static_works=yes
8909 $RM -r conftest*
8910 LDFLAGS="$save_LDFLAGS"
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8914 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8916 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8918 else
8919 lt_prog_compiler_static=
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8930 if ${lt_cv_prog_compiler_c_o+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 lt_cv_prog_compiler_c_o=no
8934 $RM -r conftest 2>/dev/null
8935 mkdir conftest
8936 cd conftest
8937 mkdir out
8938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8940 lt_compiler_flag="-o out/conftest2.$ac_objext"
8941 # Insert the option either (1) after the last *FLAGS variable, or
8942 # (2) before a word containing "conftest.", or (3) at the end.
8943 # Note that $ac_compile itself does not contain backslashes and begins
8944 # with a dollar sign (not a hyphen), so the echo should work correctly.
8945 lt_compile=`echo "$ac_compile" | $SED \
8946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948 -e 's:$: $lt_compiler_flag:'`
8949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8950 (eval "$lt_compile" 2>out/conftest.err)
8951 ac_status=$?
8952 cat out/conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8955 then
8956 # The compiler can only warn and ignore the option if not recognized
8957 # So say no if there are warnings
8958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8961 lt_cv_prog_compiler_c_o=yes
8964 chmod u+w . 2>&5
8965 $RM conftest*
8966 # SGI C++ compiler will create directory out/ii_files/ for
8967 # template instantiation
8968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8969 $RM out/* && rmdir out
8970 cd ..
8971 $RM -r conftest
8972 $RM conftest*
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8976 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8985 if ${lt_cv_prog_compiler_c_o+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 lt_cv_prog_compiler_c_o=no
8989 $RM -r conftest 2>/dev/null
8990 mkdir conftest
8991 cd conftest
8992 mkdir out
8993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8995 lt_compiler_flag="-o out/conftest2.$ac_objext"
8996 # Insert the option either (1) after the last *FLAGS variable, or
8997 # (2) before a word containing "conftest.", or (3) at the end.
8998 # Note that $ac_compile itself does not contain backslashes and begins
8999 # with a dollar sign (not a hyphen), so the echo should work correctly.
9000 lt_compile=`echo "$ac_compile" | $SED \
9001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9003 -e 's:$: $lt_compiler_flag:'`
9004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9005 (eval "$lt_compile" 2>out/conftest.err)
9006 ac_status=$?
9007 cat out/conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9010 then
9011 # The compiler can only warn and ignore the option if not recognized
9012 # So say no if there are warnings
9013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9016 lt_cv_prog_compiler_c_o=yes
9019 chmod u+w . 2>&5
9020 $RM conftest*
9021 # SGI C++ compiler will create directory out/ii_files/ for
9022 # template instantiation
9023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9024 $RM out/* && rmdir out
9025 cd ..
9026 $RM -r conftest
9027 $RM conftest*
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9036 hard_links="nottested"
9037 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9038 # do not overwrite the value of need_locks provided by the user
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9040 $as_echo_n "checking if we can lock with hard links... " >&6; }
9041 hard_links=yes
9042 $RM conftest*
9043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9044 touch conftest.a
9045 ln conftest.a conftest.b 2>&5 || hard_links=no
9046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9048 $as_echo "$hard_links" >&6; }
9049 if test "$hard_links" = no; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9051 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9052 need_locks=warn
9054 else
9055 need_locks=no
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9066 runpath_var=
9067 allow_undefined_flag=
9068 always_export_symbols=no
9069 archive_cmds=
9070 archive_expsym_cmds=
9071 compiler_needs_object=no
9072 enable_shared_with_static_runtimes=no
9073 export_dynamic_flag_spec=
9074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9075 hardcode_automatic=no
9076 hardcode_direct=no
9077 hardcode_direct_absolute=no
9078 hardcode_libdir_flag_spec=
9079 hardcode_libdir_flag_spec_ld=
9080 hardcode_libdir_separator=
9081 hardcode_minus_L=no
9082 hardcode_shlibpath_var=unsupported
9083 inherit_rpath=no
9084 link_all_deplibs=unknown
9085 module_cmds=
9086 module_expsym_cmds=
9087 old_archive_from_new_cmds=
9088 old_archive_from_expsyms_cmds=
9089 thread_safe_flag_spec=
9090 whole_archive_flag_spec=
9091 # include_expsyms should be a list of space-separated symbols to be *always*
9092 # included in the symbol list
9093 include_expsyms=
9094 # exclude_expsyms can be an extended regexp of symbols to exclude
9095 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9096 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9097 # as well as any symbol that contains `d'.
9098 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9099 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9100 # platforms (ab)use it in PIC code, but their linkers get confused if
9101 # the symbol is explicitly referenced. Since portable code cannot
9102 # rely on this symbol name, it's probably fine to never include it in
9103 # preloaded symbol tables.
9104 # Exclude shared library initialization/finalization symbols.
9105 extract_expsyms_cmds=
9107 case $host_os in
9108 cygwin* | mingw* | pw32* | cegcc*)
9109 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9110 # When not using gcc, we currently assume that we are using
9111 # Microsoft Visual C++.
9112 if test "$GCC" != yes; then
9113 with_gnu_ld=no
9116 interix*)
9117 # we just hope/assume this is gcc and not c89 (= MSVC++)
9118 with_gnu_ld=yes
9120 openbsd*)
9121 with_gnu_ld=no
9123 esac
9125 ld_shlibs=yes
9127 # On some targets, GNU ld is compatible enough with the native linker
9128 # that we're better off using the native interface for both.
9129 lt_use_gnu_ld_interface=no
9130 if test "$with_gnu_ld" = yes; then
9131 case $host_os in
9132 aix*)
9133 # The AIX port of GNU ld has always aspired to compatibility
9134 # with the native linker. However, as the warning in the GNU ld
9135 # block says, versions before 2.19.5* couldn't really create working
9136 # shared libraries, regardless of the interface used.
9137 case `$LD -v 2>&1` in
9138 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9139 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9140 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9142 lt_use_gnu_ld_interface=yes
9144 esac
9147 lt_use_gnu_ld_interface=yes
9149 esac
9152 if test "$lt_use_gnu_ld_interface" = yes; then
9153 # If archive_cmds runs LD, not CC, wlarc should be empty
9154 wlarc='${wl}'
9156 # Set some defaults for GNU ld with shared library support. These
9157 # are reset later if shared libraries are not supported. Putting them
9158 # here allows them to be overridden if necessary.
9159 runpath_var=LD_RUN_PATH
9160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161 export_dynamic_flag_spec='${wl}--export-dynamic'
9162 # ancient GNU ld didn't support --whole-archive et. al.
9163 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9164 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9165 else
9166 whole_archive_flag_spec=
9168 supports_anon_versioning=no
9169 case `$LD -v 2>&1` in
9170 *GNU\ gold*) supports_anon_versioning=yes ;;
9171 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9172 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9173 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9174 *\ 2.11.*) ;; # other 2.11 versions
9175 *) supports_anon_versioning=yes ;;
9176 esac
9178 # See if GNU ld supports shared libraries.
9179 case $host_os in
9180 aix[3-9]*)
9181 # On AIX/PPC, the GNU linker is very broken
9182 if test "$host_cpu" != ia64; then
9183 ld_shlibs=no
9184 cat <<_LT_EOF 1>&2
9186 *** Warning: the GNU linker, at least up to release 2.19, is reported
9187 *** to be unable to reliably create shared libraries on AIX.
9188 *** Therefore, libtool is disabling shared libraries support. If you
9189 *** really care for shared libraries, you may want to install binutils
9190 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9191 *** You will then need to restart the configuration process.
9193 _LT_EOF
9197 amigaos*)
9198 case $host_cpu in
9199 powerpc)
9200 # see comment about AmigaOS4 .so support
9201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202 archive_expsym_cmds=''
9204 m68k)
9205 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9206 hardcode_libdir_flag_spec='-L$libdir'
9207 hardcode_minus_L=yes
9209 esac
9212 beos*)
9213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9214 allow_undefined_flag=unsupported
9215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9216 # support --undefined. This deserves some investigation. FIXME
9217 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218 else
9219 ld_shlibs=no
9223 cygwin* | mingw* | pw32* | cegcc*)
9224 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9225 # as there is no search path for DLLs.
9226 hardcode_libdir_flag_spec='-L$libdir'
9227 export_dynamic_flag_spec='${wl}--export-all-symbols'
9228 allow_undefined_flag=unsupported
9229 always_export_symbols=no
9230 enable_shared_with_static_runtimes=yes
9231 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9233 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9235 # If the export-symbols file already is a .def file (1st line
9236 # is EXPORTS), use it as is; otherwise, prepend...
9237 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9238 cp $export_symbols $output_objdir/$soname.def;
9239 else
9240 echo EXPORTS > $output_objdir/$soname.def;
9241 cat $export_symbols >> $output_objdir/$soname.def;
9243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9244 else
9245 ld_shlibs=no
9249 haiku*)
9250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 link_all_deplibs=yes
9254 interix[3-9]*)
9255 hardcode_direct=no
9256 hardcode_shlibpath_var=no
9257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9258 export_dynamic_flag_spec='${wl}-E'
9259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9260 # Instead, shared libraries are loaded at an image base (0x10000000 by
9261 # default) and relocated if they conflict, which is a slow very memory
9262 # consuming and fragmenting process. To avoid this, we pick a random,
9263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9265 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9266 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9269 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9270 tmp_diet=no
9271 if test "$host_os" = linux-dietlibc; then
9272 case $cc_basename in
9273 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9274 esac
9276 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9277 && test "$tmp_diet" = no
9278 then
9279 tmp_addflag=' $pic_flag'
9280 tmp_sharedflag='-shared'
9281 case $cc_basename,$host_cpu in
9282 pgcc*) # Portland Group C compiler
9283 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9284 tmp_addflag=' $pic_flag'
9286 pgf77* | pgf90* | pgf95* | pgfortran*)
9287 # Portland Group f77 and f90 compilers
9288 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9289 tmp_addflag=' $pic_flag -Mnomain' ;;
9290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9291 tmp_addflag=' -i_dynamic' ;;
9292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9293 tmp_addflag=' -i_dynamic -nofor_main' ;;
9294 ifc* | ifort*) # Intel Fortran compiler
9295 tmp_addflag=' -nofor_main' ;;
9296 lf95*) # Lahey Fortran 8.1
9297 whole_archive_flag_spec=
9298 tmp_sharedflag='--shared' ;;
9299 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9300 tmp_sharedflag='-qmkshrobj'
9301 tmp_addflag= ;;
9302 nvcc*) # Cuda Compiler Driver 2.2
9303 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9304 compiler_needs_object=yes
9306 esac
9307 case `$CC -V 2>&1 | sed 5q` in
9308 *Sun\ C*) # Sun C 5.9
9309 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9310 compiler_needs_object=yes
9311 tmp_sharedflag='-G' ;;
9312 *Sun\ F*) # Sun Fortran 8.3
9313 tmp_sharedflag='-G' ;;
9314 esac
9315 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 if test "x$supports_anon_versioning" = xyes; then
9318 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9320 echo "local: *; };" >> $output_objdir/$libname.ver~
9321 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9324 case $cc_basename in
9325 xlf* | bgf* | bgxlf* | mpixlf*)
9326 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9327 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9328 hardcode_libdir_flag_spec=
9329 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9330 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9331 if test "x$supports_anon_versioning" = xyes; then
9332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334 echo "local: *; };" >> $output_objdir/$libname.ver~
9335 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9338 esac
9339 else
9340 ld_shlibs=no
9344 netbsd*)
9345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9346 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9347 wlarc=
9348 else
9349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9354 solaris*)
9355 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9356 ld_shlibs=no
9357 cat <<_LT_EOF 1>&2
9359 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9360 *** create shared libraries on Solaris systems. Therefore, libtool
9361 *** is disabling shared libraries support. We urge you to upgrade GNU
9362 *** binutils to release 2.9.1 or newer. Another option is to modify
9363 *** your PATH or compiler configuration so that the native linker is
9364 *** used, and then restart.
9366 _LT_EOF
9367 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9370 else
9371 ld_shlibs=no
9375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9376 case `$LD -v 2>&1` in
9377 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9378 ld_shlibs=no
9379 cat <<_LT_EOF 1>&2
9381 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9382 *** reliably create shared libraries on SCO systems. Therefore, libtool
9383 *** is disabling shared libraries support. We urge you to upgrade GNU
9384 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9385 *** your PATH or compiler configuration so that the native linker is
9386 *** used, and then restart.
9388 _LT_EOF
9391 # For security reasons, it is highly recommended that you always
9392 # use absolute paths for naming shared libraries, and exclude the
9393 # DT_RUNPATH tag from executables and libraries. But doing so
9394 # requires that you compile everything twice, which is a pain.
9395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9399 else
9400 ld_shlibs=no
9403 esac
9406 sunos4*)
9407 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9408 wlarc=
9409 hardcode_direct=yes
9410 hardcode_shlibpath_var=no
9414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9417 else
9418 ld_shlibs=no
9421 esac
9423 if test "$ld_shlibs" = no; then
9424 runpath_var=
9425 hardcode_libdir_flag_spec=
9426 export_dynamic_flag_spec=
9427 whole_archive_flag_spec=
9429 else
9430 # PORTME fill in a description of your system's linker (not GNU ld)
9431 case $host_os in
9432 aix3*)
9433 allow_undefined_flag=unsupported
9434 always_export_symbols=yes
9435 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9436 # Note: this linker hardcodes the directories in LIBPATH if there
9437 # are no directories specified by -L.
9438 hardcode_minus_L=yes
9439 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9440 # Neither direct hardcoding nor static linking is supported with a
9441 # broken collect2.
9442 hardcode_direct=unsupported
9446 aix[4-9]*)
9447 if test "$host_cpu" = ia64; then
9448 # On IA64, the linker does run time linking by default, so we don't
9449 # have to do anything special.
9450 aix_use_runtimelinking=no
9451 exp_sym_flag='-Bexport'
9452 no_entry_flag=""
9453 else
9454 # If we're using GNU nm, then we don't want the "-C" option.
9455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9456 # Also, AIX nm treats weak defined symbols like other global
9457 # defined symbols, whereas GNU nm marks them as "W".
9458 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9459 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9460 else
9461 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9463 aix_use_runtimelinking=no
9465 # Test if we are trying to use run time linking or normal
9466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9467 # need to do runtime linking.
9468 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9469 for ld_flag in $LDFLAGS; do
9470 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9471 aix_use_runtimelinking=yes
9472 break
9474 done
9476 esac
9478 exp_sym_flag='-bexport'
9479 no_entry_flag='-bnoentry'
9482 # When large executables or shared objects are built, AIX ld can
9483 # have problems creating the table of contents. If linking a library
9484 # or program results in "error TOC overflow" add -mminimal-toc to
9485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9488 archive_cmds=''
9489 hardcode_direct=yes
9490 hardcode_direct_absolute=yes
9491 hardcode_libdir_separator=':'
9492 link_all_deplibs=yes
9493 file_list_spec='${wl}-f,'
9495 if test "$GCC" = yes; then
9496 case $host_os in aix4.[012]|aix4.[012].*)
9497 # We only want to do this on AIX 4.2 and lower, the check
9498 # below for broken collect2 doesn't work under 4.3+
9499 collect2name=`${CC} -print-prog-name=collect2`
9500 if test -f "$collect2name" &&
9501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9502 then
9503 # We have reworked collect2
9505 else
9506 # We have old collect2
9507 hardcode_direct=unsupported
9508 # It fails to find uninstalled libraries when the uninstalled
9509 # path is not listed in the libpath. Setting hardcode_minus_L
9510 # to unsupported forces relinking
9511 hardcode_minus_L=yes
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_libdir_separator=
9516 esac
9517 shared_flag='-shared'
9518 if test "$aix_use_runtimelinking" = yes; then
9519 shared_flag="$shared_flag "'${wl}-G'
9521 else
9522 # not using gcc
9523 if test "$host_cpu" = ia64; then
9524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9525 # chokes on -Wl,-G. The following line is correct:
9526 shared_flag='-G'
9527 else
9528 if test "$aix_use_runtimelinking" = yes; then
9529 shared_flag='${wl}-G'
9530 else
9531 shared_flag='${wl}-bM:SRE'
9536 export_dynamic_flag_spec='${wl}-bexpall'
9537 # It seems that -bexpall does not export symbols beginning with
9538 # underscore (_), so it is better to generate a list of symbols to export.
9539 always_export_symbols=yes
9540 if test "$aix_use_runtimelinking" = yes; then
9541 # Warning - without using the other runtime loading flags (-brtl),
9542 # -berok will link without error, but may produce a broken library.
9543 allow_undefined_flag='-berok'
9544 # Determine the default libpath from the value encoded in an
9545 # empty executable.
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9550 main ()
9554 return 0;
9556 _ACEOF
9557 if ac_fn_c_try_link "$LINENO"; then :
9559 lt_aix_libpath_sed='
9560 /Import File Strings/,/^$/ {
9561 /^0/ {
9562 s/^0 *\(.*\)$/\1/
9566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9567 # Check for a 64-bit object if we didn't find anything.
9568 if test -z "$aix_libpath"; then
9569 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9576 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9577 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9578 else
9579 if test "$host_cpu" = ia64; then
9580 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9581 allow_undefined_flag="-z nodefs"
9582 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9583 else
9584 # Determine the default libpath from the value encoded in an
9585 # empty executable.
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9590 main ()
9594 return 0;
9596 _ACEOF
9597 if ac_fn_c_try_link "$LINENO"; then :
9599 lt_aix_libpath_sed='
9600 /Import File Strings/,/^$/ {
9601 /^0/ {
9602 s/^0 *\(.*\)$/\1/
9606 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9607 # Check for a 64-bit object if we didn't find anything.
9608 if test -z "$aix_libpath"; then
9609 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9612 rm -f core conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9616 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9617 # Warning - without using the other run time loading flags,
9618 # -berok will link without error, but may produce a broken library.
9619 no_undefined_flag=' ${wl}-bernotok'
9620 allow_undefined_flag=' ${wl}-berok'
9621 if test "$with_gnu_ld" = yes; then
9622 # We only use this code for GNU lds that support --whole-archive.
9623 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9624 else
9625 # Exported symbols can be pulled into shared objects from archives
9626 whole_archive_flag_spec='$convenience'
9628 archive_cmds_need_lc=yes
9629 # This is similar to how AIX traditionally builds its shared libraries.
9630 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9635 amigaos*)
9636 case $host_cpu in
9637 powerpc)
9638 # see comment about AmigaOS4 .so support
9639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9640 archive_expsym_cmds=''
9642 m68k)
9643 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_minus_L=yes
9647 esac
9650 bsdi[45]*)
9651 export_dynamic_flag_spec=-rdynamic
9654 cygwin* | mingw* | pw32* | cegcc*)
9655 # When not using gcc, we currently assume that we are using
9656 # Microsoft Visual C++.
9657 # hardcode_libdir_flag_spec is actually meaningless, as there is
9658 # no search path for DLLs.
9659 hardcode_libdir_flag_spec=' '
9660 allow_undefined_flag=unsupported
9661 # Tell ltmain to make .lib files, not .a files.
9662 libext=lib
9663 # Tell ltmain to make .dll files, not .so files.
9664 shrext_cmds=".dll"
9665 # FIXME: Setting linknames here is a bad hack.
9666 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9667 # The linker will automatically build a .lib file if we build a DLL.
9668 old_archive_from_new_cmds='true'
9669 # FIXME: Should let the user specify the lib program.
9670 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9671 fix_srcfile_path='`cygpath -w "$srcfile"`'
9672 enable_shared_with_static_runtimes=yes
9675 darwin* | rhapsody*)
9678 archive_cmds_need_lc=no
9679 hardcode_direct=no
9680 hardcode_automatic=yes
9681 hardcode_shlibpath_var=unsupported
9682 if test "$lt_cv_ld_force_load" = "yes"; then
9683 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9684 else
9685 whole_archive_flag_spec=''
9687 link_all_deplibs=yes
9688 allow_undefined_flag="$_lt_dar_allow_undefined"
9689 case $cc_basename in
9690 ifort*) _lt_dar_can_shared=yes ;;
9691 *) _lt_dar_can_shared=$GCC ;;
9692 esac
9693 if test "$_lt_dar_can_shared" = "yes"; then
9694 output_verbose_link_cmd=func_echo_all
9695 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9696 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9697 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9698 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9700 else
9701 ld_shlibs=no
9706 dgux*)
9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_libdir_flag_spec='-L$libdir'
9709 hardcode_shlibpath_var=no
9712 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9713 # support. Future versions do this automatically, but an explicit c++rt0.o
9714 # does not break anything, and helps significantly (at the cost of a little
9715 # extra space).
9716 freebsd2.2*)
9717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9718 hardcode_libdir_flag_spec='-R$libdir'
9719 hardcode_direct=yes
9720 hardcode_shlibpath_var=no
9723 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9724 freebsd2.*)
9725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9726 hardcode_direct=yes
9727 hardcode_minus_L=yes
9728 hardcode_shlibpath_var=no
9731 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9732 freebsd* | dragonfly*)
9733 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9734 hardcode_libdir_flag_spec='-R$libdir'
9735 hardcode_direct=yes
9736 hardcode_shlibpath_var=no
9739 hpux9*)
9740 if test "$GCC" = yes; then
9741 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9742 else
9743 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9746 hardcode_libdir_separator=:
9747 hardcode_direct=yes
9749 # hardcode_minus_L: Not really in the search PATH,
9750 # but as the default location of the library.
9751 hardcode_minus_L=yes
9752 export_dynamic_flag_spec='${wl}-E'
9755 hpux10*)
9756 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9758 else
9759 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9761 if test "$with_gnu_ld" = no; then
9762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9763 hardcode_libdir_flag_spec_ld='+b $libdir'
9764 hardcode_libdir_separator=:
9765 hardcode_direct=yes
9766 hardcode_direct_absolute=yes
9767 export_dynamic_flag_spec='${wl}-E'
9768 # hardcode_minus_L: Not really in the search PATH,
9769 # but as the default location of the library.
9770 hardcode_minus_L=yes
9774 hpux11*)
9775 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9776 case $host_cpu in
9777 hppa*64*)
9778 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9780 ia64*)
9781 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9786 esac
9787 else
9788 case $host_cpu in
9789 hppa*64*)
9790 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9792 ia64*)
9793 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9797 # Older versions of the 11.00 compiler do not understand -b yet
9798 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9800 $as_echo_n "checking if $CC understands -b... " >&6; }
9801 if ${lt_cv_prog_compiler__b+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 lt_cv_prog_compiler__b=no
9805 save_LDFLAGS="$LDFLAGS"
9806 LDFLAGS="$LDFLAGS -b"
9807 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9808 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9809 # The linker can only warn and ignore the option if not recognized
9810 # So say no if there are warnings
9811 if test -s conftest.err; then
9812 # Append any errors to the config.log.
9813 cat conftest.err 1>&5
9814 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9816 if diff conftest.exp conftest.er2 >/dev/null; then
9817 lt_cv_prog_compiler__b=yes
9819 else
9820 lt_cv_prog_compiler__b=yes
9823 $RM -r conftest*
9824 LDFLAGS="$save_LDFLAGS"
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9828 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9830 if test x"$lt_cv_prog_compiler__b" = xyes; then
9831 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9832 else
9833 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9837 esac
9839 if test "$with_gnu_ld" = no; then
9840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9841 hardcode_libdir_separator=:
9843 case $host_cpu in
9844 hppa*64*|ia64*)
9845 hardcode_direct=no
9846 hardcode_shlibpath_var=no
9849 hardcode_direct=yes
9850 hardcode_direct_absolute=yes
9851 export_dynamic_flag_spec='${wl}-E'
9853 # hardcode_minus_L: Not really in the search PATH,
9854 # but as the default location of the library.
9855 hardcode_minus_L=yes
9857 esac
9861 irix5* | irix6* | nonstopux*)
9862 if test "$GCC" = yes; then
9863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9864 # Try to use the -exported_symbol ld option, if it does not
9865 # work, assume that -exports_file does not work either and
9866 # implicitly export all symbols.
9867 save_LDFLAGS="$LDFLAGS"
9868 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 int foo(void) {}
9872 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
9874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9877 rm -f core conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
9879 LDFLAGS="$save_LDFLAGS"
9880 else
9881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9882 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9884 archive_cmds_need_lc='no'
9885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9886 hardcode_libdir_separator=:
9887 inherit_rpath=yes
9888 link_all_deplibs=yes
9891 netbsd*)
9892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9894 else
9895 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9897 hardcode_libdir_flag_spec='-R$libdir'
9898 hardcode_direct=yes
9899 hardcode_shlibpath_var=no
9902 newsos6)
9903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904 hardcode_direct=yes
9905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9906 hardcode_libdir_separator=:
9907 hardcode_shlibpath_var=no
9910 *nto* | *qnx*)
9913 openbsd*)
9914 if test -f /usr/libexec/ld.so; then
9915 hardcode_direct=yes
9916 hardcode_shlibpath_var=no
9917 hardcode_direct_absolute=yes
9918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9920 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9921 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9922 export_dynamic_flag_spec='${wl}-E'
9923 else
9924 case $host_os in
9925 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9927 hardcode_libdir_flag_spec='-R$libdir'
9930 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9933 esac
9935 else
9936 ld_shlibs=no
9940 os2*)
9941 hardcode_libdir_flag_spec='-L$libdir'
9942 hardcode_minus_L=yes
9943 allow_undefined_flag=unsupported
9944 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9945 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9948 osf3*)
9949 if test "$GCC" = yes; then
9950 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9951 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9952 else
9953 allow_undefined_flag=' -expect_unresolved \*'
9954 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9956 archive_cmds_need_lc='no'
9957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958 hardcode_libdir_separator=:
9961 osf4* | osf5*) # as osf3* with the addition of -msym flag
9962 if test "$GCC" = yes; then
9963 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9964 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9966 else
9967 allow_undefined_flag=' -expect_unresolved \*'
9968 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9969 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9970 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9972 # Both c and cxx compiler support -rpath directly
9973 hardcode_libdir_flag_spec='-rpath $libdir'
9975 archive_cmds_need_lc='no'
9976 hardcode_libdir_separator=:
9979 solaris*)
9980 no_undefined_flag=' -z defs'
9981 if test "$GCC" = yes; then
9982 wlarc='${wl}'
9983 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9985 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9986 else
9987 case `$CC -V 2>&1` in
9988 *"Compilers 5.0"*)
9989 wlarc=''
9990 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9992 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9995 wlarc='${wl}'
9996 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9998 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10000 esac
10002 hardcode_libdir_flag_spec='-R$libdir'
10003 hardcode_shlibpath_var=no
10004 case $host_os in
10005 solaris2.[0-5] | solaris2.[0-5].*) ;;
10007 # The compiler driver will combine and reorder linker options,
10008 # but understands `-z linker_flag'. GCC discards it without `$wl',
10009 # but is careful enough not to reorder.
10010 # Supported since Solaris 2.6 (maybe 2.5.1?)
10011 if test "$GCC" = yes; then
10012 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10013 else
10014 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10017 esac
10018 link_all_deplibs=yes
10021 sunos4*)
10022 if test "x$host_vendor" = xsequent; then
10023 # Use $CC to link under sequent, because it throws in some extra .o
10024 # files that make .init and .fini sections work.
10025 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10026 else
10027 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10029 hardcode_libdir_flag_spec='-L$libdir'
10030 hardcode_direct=yes
10031 hardcode_minus_L=yes
10032 hardcode_shlibpath_var=no
10035 sysv4)
10036 case $host_vendor in
10037 sni)
10038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_direct=yes # is this really true???
10041 siemens)
10042 ## LD is ld it makes a PLAMLIB
10043 ## CC just makes a GrossModule.
10044 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10045 reload_cmds='$CC -r -o $output$reload_objs'
10046 hardcode_direct=no
10048 motorola)
10049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10052 esac
10053 runpath_var='LD_RUN_PATH'
10054 hardcode_shlibpath_var=no
10057 sysv4.3*)
10058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_shlibpath_var=no
10060 export_dynamic_flag_spec='-Bexport'
10063 sysv4*MP*)
10064 if test -d /usr/nec; then
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_shlibpath_var=no
10067 runpath_var=LD_RUN_PATH
10068 hardcode_runpath_var=yes
10069 ld_shlibs=yes
10073 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10074 no_undefined_flag='${wl}-z,text'
10075 archive_cmds_need_lc=no
10076 hardcode_shlibpath_var=no
10077 runpath_var='LD_RUN_PATH'
10079 if test "$GCC" = yes; then
10080 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 else
10083 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 sysv5* | sco3.2v5* | sco5v6*)
10089 # Note: We can NOT use -z defs as we might desire, because we do not
10090 # link with -lc, and that would cause any symbols used from libc to
10091 # always be unresolved, which means just about no library would
10092 # ever link correctly. If we're not using GNU ld we use -z text
10093 # though, which does catch some bad symbols but isn't as heavy-handed
10094 # as -z defs.
10095 no_undefined_flag='${wl}-z,text'
10096 allow_undefined_flag='${wl}-z,nodefs'
10097 archive_cmds_need_lc=no
10098 hardcode_shlibpath_var=no
10099 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10100 hardcode_libdir_separator=':'
10101 link_all_deplibs=yes
10102 export_dynamic_flag_spec='${wl}-Bexport'
10103 runpath_var='LD_RUN_PATH'
10105 if test "$GCC" = yes; then
10106 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108 else
10109 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 uts4*)
10115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116 hardcode_libdir_flag_spec='-L$libdir'
10117 hardcode_shlibpath_var=no
10121 ld_shlibs=no
10123 esac
10125 if test x$host_vendor = xsni; then
10126 case $host in
10127 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10128 export_dynamic_flag_spec='${wl}-Blargedynsym'
10130 esac
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10135 $as_echo "$ld_shlibs" >&6; }
10136 test "$ld_shlibs" = no && can_build_shared=no
10138 with_gnu_ld=$with_gnu_ld
10155 # Do we need to explicitly link libc?
10157 case "x$archive_cmds_need_lc" in
10158 x|xyes)
10159 # Assume -lc should be added
10160 archive_cmds_need_lc=yes
10162 if test "$enable_shared" = yes && test "$GCC" = yes; then
10163 case $archive_cmds in
10164 *'~'*)
10165 # FIXME: we may have to deal with multi-command sequences.
10167 '$CC '*)
10168 # Test whether the compiler implicitly links with -lc since on some
10169 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10170 # to ld, don't add -lc before -lgcc.
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10172 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10173 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 $RM conftest*
10177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10180 (eval $ac_compile) 2>&5
10181 ac_status=$?
10182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10183 test $ac_status = 0; } 2>conftest.err; then
10184 soname=conftest
10185 lib=conftest
10186 libobjs=conftest.$ac_objext
10187 deplibs=
10188 wl=$lt_prog_compiler_wl
10189 pic_flag=$lt_prog_compiler_pic
10190 compiler_flags=-v
10191 linker_flags=-v
10192 verstring=
10193 output_objdir=.
10194 libname=conftest
10195 lt_save_allow_undefined_flag=$allow_undefined_flag
10196 allow_undefined_flag=
10197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10198 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10199 ac_status=$?
10200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10201 test $ac_status = 0; }
10202 then
10203 lt_cv_archive_cmds_need_lc=no
10204 else
10205 lt_cv_archive_cmds_need_lc=yes
10207 allow_undefined_flag=$lt_save_allow_undefined_flag
10208 else
10209 cat conftest.err 1>&5
10211 $RM conftest*
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10215 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10216 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10218 esac
10221 esac
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10380 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10382 if test "$GCC" = yes; then
10383 case $host_os in
10384 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10385 *) lt_awk_arg="/^libraries:/" ;;
10386 esac
10387 case $host_os in
10388 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10389 *) lt_sed_strip_eq="s,=/,/,g" ;;
10390 esac
10391 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10392 case $lt_search_path_spec in
10393 *\;*)
10394 # if the path contains ";" then we assume it to be the separator
10395 # otherwise default to the standard path separator (i.e. ":") - it is
10396 # assumed that no part of a normal pathname contains ";" but that should
10397 # okay in the real world where ";" in dirpaths is itself problematic.
10398 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10401 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10403 esac
10404 # Ok, now we have the path, separated by spaces, we can step through it
10405 # and add multilib dir if necessary.
10406 lt_tmp_lt_search_path_spec=
10407 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10408 for lt_sys_path in $lt_search_path_spec; do
10409 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10411 else
10412 test -d "$lt_sys_path" && \
10413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10415 done
10416 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10417 BEGIN {RS=" "; FS="/|\n";} {
10418 lt_foo="";
10419 lt_count=0;
10420 for (lt_i = NF; lt_i > 0; lt_i--) {
10421 if ($lt_i != "" && $lt_i != ".") {
10422 if ($lt_i == "..") {
10423 lt_count++;
10424 } else {
10425 if (lt_count == 0) {
10426 lt_foo="/" $lt_i lt_foo;
10427 } else {
10428 lt_count--;
10433 if (lt_foo != "") { lt_freq[lt_foo]++; }
10434 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10436 # AWK program above erroneously prepends '/' to C:/dos/paths
10437 # for these hosts.
10438 case $host_os in
10439 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10440 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10441 esac
10442 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10443 else
10444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10446 library_names_spec=
10447 libname_spec='lib$name'
10448 soname_spec=
10449 shrext_cmds=".so"
10450 postinstall_cmds=
10451 postuninstall_cmds=
10452 finish_cmds=
10453 finish_eval=
10454 shlibpath_var=
10455 shlibpath_overrides_runpath=unknown
10456 version_type=none
10457 dynamic_linker="$host_os ld.so"
10458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10459 need_lib_prefix=unknown
10460 hardcode_into_libs=no
10462 # when you set need_version to no, make sure it does not cause -set_version
10463 # flags to be left without arguments
10464 need_version=unknown
10466 case $host_os in
10467 aix3*)
10468 version_type=linux
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10470 shlibpath_var=LIBPATH
10472 # AIX 3 has no versioning support, so we append a major version to the name.
10473 soname_spec='${libname}${release}${shared_ext}$major'
10476 aix[4-9]*)
10477 version_type=linux
10478 need_lib_prefix=no
10479 need_version=no
10480 hardcode_into_libs=yes
10481 if test "$host_cpu" = ia64; then
10482 # AIX 5 supports IA64
10483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 else
10486 # With GCC up to 2.95.x, collect2 would create an import file
10487 # for dependence libraries. The import file would start with
10488 # the line `#! .'. This would cause the generated library to
10489 # depend on `.', always an invalid library. This was fixed in
10490 # development snapshots of GCC prior to 3.0.
10491 case $host_os in
10492 aix4 | aix4.[01] | aix4.[01].*)
10493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10494 echo ' yes '
10495 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10497 else
10498 can_build_shared=no
10501 esac
10502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10503 # soname into executable. Probably we can add versioning support to
10504 # collect2, so additional links can be useful in future.
10505 if test "$aix_use_runtimelinking" = yes; then
10506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10507 # instead of lib<name>.a to let people know that these are not
10508 # typical AIX shared libraries.
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510 else
10511 # We preserve .a as extension for shared libraries through AIX4.2
10512 # and later when we are not doing run time linking.
10513 library_names_spec='${libname}${release}.a $libname.a'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10516 shlibpath_var=LIBPATH
10520 amigaos*)
10521 case $host_cpu in
10522 powerpc)
10523 # Since July 2007 AmigaOS4 officially supports .so libraries.
10524 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 m68k)
10528 library_names_spec='$libname.ixlibrary $libname.a'
10529 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10530 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10532 esac
10535 beos*)
10536 library_names_spec='${libname}${shared_ext}'
10537 dynamic_linker="$host_os ld.so"
10538 shlibpath_var=LIBRARY_PATH
10541 bsdi[45]*)
10542 version_type=linux
10543 need_version=no
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10550 # the default ld.so.conf also contains /usr/contrib/lib and
10551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10552 # libtool to hard-code these into programs
10555 cygwin* | mingw* | pw32* | cegcc*)
10556 version_type=windows
10557 shrext_cmds=".dll"
10558 need_version=no
10559 need_lib_prefix=no
10561 case $GCC,$host_os in
10562 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10563 library_names_spec='$libname.dll.a'
10564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10565 postinstall_cmds='base_file=`basename \${file}`~
10566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10567 dldir=$destdir/`dirname \$dlpath`~
10568 test -d \$dldir || mkdir -p \$dldir~
10569 $install_prog $dir/$dlname \$dldir/$dlname~
10570 chmod a+x \$dldir/$dlname~
10571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10575 dlpath=$dir/\$dldll~
10576 $RM \$dlpath'
10577 shlibpath_overrides_runpath=yes
10579 case $host_os in
10580 cygwin*)
10581 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10582 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10584 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10586 mingw* | cegcc*)
10587 # MinGW DLLs use traditional 'lib' prefix
10588 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10590 pw32*)
10591 # pw32 DLLs use 'pw' prefix rather than 'lib'
10592 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10594 esac
10598 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10600 esac
10601 dynamic_linker='Win32 ld.exe'
10602 # FIXME: first we should search . and the directory the executable is in
10603 shlibpath_var=PATH
10606 darwin* | rhapsody*)
10607 dynamic_linker="$host_os dyld"
10608 version_type=darwin
10609 need_lib_prefix=no
10610 need_version=no
10611 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10612 soname_spec='${libname}${release}${major}$shared_ext'
10613 shlibpath_overrides_runpath=yes
10614 shlibpath_var=DYLD_LIBRARY_PATH
10615 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10617 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10618 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10621 dgux*)
10622 version_type=linux
10623 need_lib_prefix=no
10624 need_version=no
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 shlibpath_var=LD_LIBRARY_PATH
10630 freebsd* | dragonfly*)
10631 # DragonFly does not have aout. When/if they implement a new
10632 # versioning mechanism, adjust this.
10633 if test -x /usr/bin/objformat; then
10634 objformat=`/usr/bin/objformat`
10635 else
10636 case $host_os in
10637 freebsd[23].*) objformat=aout ;;
10638 *) objformat=elf ;;
10639 esac
10641 version_type=freebsd-$objformat
10642 case $version_type in
10643 freebsd-elf*)
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10645 need_version=no
10646 need_lib_prefix=no
10648 freebsd-*)
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10650 need_version=yes
10652 esac
10653 shlibpath_var=LD_LIBRARY_PATH
10654 case $host_os in
10655 freebsd2.*)
10656 shlibpath_overrides_runpath=yes
10658 freebsd3.[01]* | freebsdelf3.[01]*)
10659 shlibpath_overrides_runpath=yes
10660 hardcode_into_libs=yes
10662 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10663 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10664 shlibpath_overrides_runpath=no
10665 hardcode_into_libs=yes
10667 *) # from 4.6 on, and DragonFly
10668 shlibpath_overrides_runpath=yes
10669 hardcode_into_libs=yes
10671 esac
10674 haiku*)
10675 version_type=linux
10676 need_lib_prefix=no
10677 need_version=no
10678 dynamic_linker="$host_os runtime_loader"
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10680 soname_spec='${libname}${release}${shared_ext}$major'
10681 shlibpath_var=LIBRARY_PATH
10682 shlibpath_overrides_runpath=yes
10683 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10684 hardcode_into_libs=yes
10687 hpux9* | hpux10* | hpux11*)
10688 # Give a soname corresponding to the major version so that dld.sl refuses to
10689 # link against other versions.
10690 version_type=sunos
10691 need_lib_prefix=no
10692 need_version=no
10693 case $host_cpu in
10694 ia64*)
10695 shrext_cmds='.so'
10696 hardcode_into_libs=yes
10697 dynamic_linker="$host_os dld.so"
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 if test "X$HPUX_IA64_MODE" = X32; then
10703 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10704 else
10705 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10709 hppa*64*)
10710 shrext_cmds='.sl'
10711 hardcode_into_libs=yes
10712 dynamic_linker="$host_os dld.sl"
10713 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10721 shrext_cmds='.sl'
10722 dynamic_linker="$host_os dld.sl"
10723 shlibpath_var=SHLIB_PATH
10724 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10728 esac
10729 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10730 postinstall_cmds='chmod 555 $lib'
10731 # or fails outright, so override atomically:
10732 install_override_mode=555
10735 interix[3-9]*)
10736 version_type=linux
10737 need_lib_prefix=no
10738 need_version=no
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10740 soname_spec='${libname}${release}${shared_ext}$major'
10741 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10742 shlibpath_var=LD_LIBRARY_PATH
10743 shlibpath_overrides_runpath=no
10744 hardcode_into_libs=yes
10747 irix5* | irix6* | nonstopux*)
10748 case $host_os in
10749 nonstopux*) version_type=nonstopux ;;
10751 if test "$lt_cv_prog_gnu_ld" = yes; then
10752 version_type=linux
10753 else
10754 version_type=irix
10755 fi ;;
10756 esac
10757 need_lib_prefix=no
10758 need_version=no
10759 soname_spec='${libname}${release}${shared_ext}$major'
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10761 case $host_os in
10762 irix5* | nonstopux*)
10763 libsuff= shlibsuff=
10766 case $LD in # libtool.m4 will add one of these switches to LD
10767 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10768 libsuff= shlibsuff= libmagic=32-bit;;
10769 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10770 libsuff=32 shlibsuff=N32 libmagic=N32;;
10771 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10772 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10773 *) libsuff= shlibsuff= libmagic=never-match;;
10774 esac
10776 esac
10777 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10778 shlibpath_overrides_runpath=no
10779 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10780 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10781 hardcode_into_libs=yes
10784 # No shared lib support for Linux oldld, aout, or coff.
10785 linux*oldld* | linux*aout* | linux*coff*)
10786 dynamic_linker=no
10789 # This must be Linux ELF.
10791 # uclinux* changes (here and below) have been submitted to the libtool
10792 # project, but have not yet been accepted: they are GCC-local changes
10793 # for the time being. (See
10794 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10795 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10796 version_type=linux
10797 need_lib_prefix=no
10798 need_version=no
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 shlibpath_overrides_runpath=no
10805 # Some binutils ld are patched to set DT_RUNPATH
10806 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10807 $as_echo_n "(cached) " >&6
10808 else
10809 lt_cv_shlibpath_overrides_runpath=no
10810 save_LDFLAGS=$LDFLAGS
10811 save_libdir=$libdir
10812 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10813 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10818 main ()
10822 return 0;
10824 _ACEOF
10825 if ac_fn_c_try_link "$LINENO"; then :
10826 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10827 lt_cv_shlibpath_overrides_runpath=yes
10830 rm -f core conftest.err conftest.$ac_objext \
10831 conftest$ac_exeext conftest.$ac_ext
10832 LDFLAGS=$save_LDFLAGS
10833 libdir=$save_libdir
10837 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10839 # This implies no fast_install, which is unacceptable.
10840 # Some rework will be needed to allow for fast_install
10841 # before this can be enabled.
10842 hardcode_into_libs=yes
10844 # Append ld.so.conf contents to the search path
10845 if test -f /etc/ld.so.conf; then
10846 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10850 # We used to test for /lib/ld.so.1 and disable shared libraries on
10851 # powerpc, because MkLinux only supported shared libraries with the
10852 # GNU dynamic linker. Since this was broken with cross compilers,
10853 # most powerpc-linux boxes support dynamic linking these days and
10854 # people can always --disable-shared, the test was removed, and we
10855 # assume the GNU/Linux dynamic linker is in use.
10856 dynamic_linker='GNU/Linux ld.so'
10859 netbsd*)
10860 version_type=sunos
10861 need_lib_prefix=no
10862 need_version=no
10863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10866 dynamic_linker='NetBSD (a.out) ld.so'
10867 else
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 dynamic_linker='NetBSD ld.elf_so'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 shlibpath_overrides_runpath=yes
10874 hardcode_into_libs=yes
10877 newsos6)
10878 version_type=linux
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 shlibpath_var=LD_LIBRARY_PATH
10881 shlibpath_overrides_runpath=yes
10884 *nto* | *qnx*)
10885 version_type=qnx
10886 need_lib_prefix=no
10887 need_version=no
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=no
10892 hardcode_into_libs=yes
10893 dynamic_linker='ldqnx.so'
10896 openbsd*)
10897 version_type=sunos
10898 sys_lib_dlsearch_path_spec="/usr/lib"
10899 need_lib_prefix=no
10900 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10901 case $host_os in
10902 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10903 *) need_version=no ;;
10904 esac
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10909 case $host_os in
10910 openbsd2.[89] | openbsd2.[89].*)
10911 shlibpath_overrides_runpath=no
10914 shlibpath_overrides_runpath=yes
10916 esac
10917 else
10918 shlibpath_overrides_runpath=yes
10922 os2*)
10923 libname_spec='$name'
10924 shrext_cmds=".dll"
10925 need_lib_prefix=no
10926 library_names_spec='$libname${shared_ext} $libname.a'
10927 dynamic_linker='OS/2 ld.exe'
10928 shlibpath_var=LIBPATH
10931 osf3* | osf4* | osf5*)
10932 version_type=osf
10933 need_lib_prefix=no
10934 need_version=no
10935 soname_spec='${libname}${release}${shared_ext}$major'
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 shlibpath_var=LD_LIBRARY_PATH
10938 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10939 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10942 rdos*)
10943 dynamic_linker=no
10946 solaris*)
10947 version_type=linux
10948 need_lib_prefix=no
10949 need_version=no
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath=yes
10954 hardcode_into_libs=yes
10955 # ldd complains unless libraries are executable
10956 postinstall_cmds='chmod +x $lib'
10959 sunos4*)
10960 version_type=sunos
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10962 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10963 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=yes
10965 if test "$with_gnu_ld" = yes; then
10966 need_lib_prefix=no
10968 need_version=yes
10971 sysv4 | sysv4.3*)
10972 version_type=linux
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 case $host_vendor in
10977 sni)
10978 shlibpath_overrides_runpath=no
10979 need_lib_prefix=no
10980 runpath_var=LD_RUN_PATH
10982 siemens)
10983 need_lib_prefix=no
10985 motorola)
10986 need_lib_prefix=no
10987 need_version=no
10988 shlibpath_overrides_runpath=no
10989 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10991 esac
10994 sysv4*MP*)
10995 if test -d /usr/nec ;then
10996 version_type=linux
10997 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10998 soname_spec='$libname${shared_ext}.$major'
10999 shlibpath_var=LD_LIBRARY_PATH
11003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11004 version_type=freebsd-elf
11005 need_lib_prefix=no
11006 need_version=no
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 shlibpath_overrides_runpath=yes
11011 hardcode_into_libs=yes
11012 if test "$with_gnu_ld" = yes; then
11013 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11014 else
11015 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11016 case $host_os in
11017 sco3.2v5*)
11018 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11020 esac
11022 sys_lib_dlsearch_path_spec='/usr/lib'
11025 tpf*)
11026 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11027 version_type=linux
11028 need_lib_prefix=no
11029 need_version=no
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath=no
11033 hardcode_into_libs=yes
11036 uts4*)
11037 version_type=linux
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039 soname_spec='${libname}${release}${shared_ext}$major'
11040 shlibpath_var=LD_LIBRARY_PATH
11043 # Shared libraries for VwWorks, >= 7 only at this stage
11044 # and (fpic) still incompatible with "large" code models
11045 # in a few configurations. Only for RTP mode in any case,
11046 # and upon explicit request at configure time.
11047 vxworks7*)
11048 dynamic_linker=no
11049 case ${with_multisubdir}-${enable_shared} in
11050 *large*)
11052 *mrtp*-yes)
11053 version_type=linux
11054 need_lib_prefix=no
11055 need_version=no
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 dynamic_linker="$host_os module_loader"
11060 esac
11063 dynamic_linker=no
11065 esac
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11067 $as_echo "$dynamic_linker" >&6; }
11068 test "$dynamic_linker" = no && can_build_shared=no
11070 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11071 if test "$GCC" = yes; then
11072 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11075 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11076 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11078 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11079 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11174 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11175 hardcode_action=
11176 if test -n "$hardcode_libdir_flag_spec" ||
11177 test -n "$runpath_var" ||
11178 test "X$hardcode_automatic" = "Xyes" ; then
11180 # We can hardcode non-existent directories.
11181 if test "$hardcode_direct" != no &&
11182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11183 # have to relink, otherwise we might link with an installed library
11184 # when we should be linking with a yet-to-be-installed one
11185 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11186 test "$hardcode_minus_L" != no; then
11187 # Linking always hardcodes the temporary library directory.
11188 hardcode_action=relink
11189 else
11190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11191 hardcode_action=immediate
11193 else
11194 # We cannot hardcode anything, or else we can only hardcode existing
11195 # directories.
11196 hardcode_action=unsupported
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11199 $as_echo "$hardcode_action" >&6; }
11201 if test "$hardcode_action" = relink ||
11202 test "$inherit_rpath" = yes; then
11203 # Fast installation is not supported
11204 enable_fast_install=no
11205 elif test "$shlibpath_overrides_runpath" = yes ||
11206 test "$enable_shared" = no; then
11207 # Fast installation is not necessary
11208 enable_fast_install=needless
11216 if test "x$enable_dlopen" != xyes; then
11217 enable_dlopen=unknown
11218 enable_dlopen_self=unknown
11219 enable_dlopen_self_static=unknown
11220 else
11221 lt_cv_dlopen=no
11222 lt_cv_dlopen_libs=
11224 case $host_os in
11225 beos*)
11226 lt_cv_dlopen="load_add_on"
11227 lt_cv_dlopen_libs=
11228 lt_cv_dlopen_self=yes
11231 mingw* | pw32* | cegcc*)
11232 lt_cv_dlopen="LoadLibrary"
11233 lt_cv_dlopen_libs=
11236 cygwin*)
11237 lt_cv_dlopen="dlopen"
11238 lt_cv_dlopen_libs=
11241 darwin*)
11242 # if libdl is installed we need to link against it
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11244 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11245 if ${ac_cv_lib_dl_dlopen+:} false; then :
11246 $as_echo_n "(cached) " >&6
11247 else
11248 ac_check_lib_save_LIBS=$LIBS
11249 LIBS="-ldl $LIBS"
11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11253 /* Override any GCC internal prototype to avoid an error.
11254 Use char because int might match the return type of a GCC
11255 builtin and then its argument prototype would still apply. */
11256 #ifdef __cplusplus
11257 extern "C"
11258 #endif
11259 char dlopen ();
11261 main ()
11263 return dlopen ();
11265 return 0;
11267 _ACEOF
11268 if ac_fn_c_try_link "$LINENO"; then :
11269 ac_cv_lib_dl_dlopen=yes
11270 else
11271 ac_cv_lib_dl_dlopen=no
11273 rm -f core conftest.err conftest.$ac_objext \
11274 conftest$ac_exeext conftest.$ac_ext
11275 LIBS=$ac_check_lib_save_LIBS
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11278 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11279 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11280 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11281 else
11283 lt_cv_dlopen="dyld"
11284 lt_cv_dlopen_libs=
11285 lt_cv_dlopen_self=yes
11292 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11293 if test "x$ac_cv_func_shl_load" = xyes; then :
11294 lt_cv_dlopen="shl_load"
11295 else
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11297 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11298 if ${ac_cv_lib_dld_shl_load+:} false; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 ac_check_lib_save_LIBS=$LIBS
11302 LIBS="-ldld $LIBS"
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 char shl_load ();
11314 main ()
11316 return shl_load ();
11318 return 0;
11320 _ACEOF
11321 if ac_fn_c_try_link "$LINENO"; then :
11322 ac_cv_lib_dld_shl_load=yes
11323 else
11324 ac_cv_lib_dld_shl_load=no
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11331 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11332 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11333 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11334 else
11335 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11336 if test "x$ac_cv_func_dlopen" = xyes; then :
11337 lt_cv_dlopen="dlopen"
11338 else
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11340 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11341 if ${ac_cv_lib_dl_dlopen+:} false; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 ac_check_lib_save_LIBS=$LIBS
11345 LIBS="-ldl $LIBS"
11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11349 /* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 char dlopen ();
11357 main ()
11359 return dlopen ();
11361 return 0;
11363 _ACEOF
11364 if ac_fn_c_try_link "$LINENO"; then :
11365 ac_cv_lib_dl_dlopen=yes
11366 else
11367 ac_cv_lib_dl_dlopen=no
11369 rm -f core conftest.err conftest.$ac_objext \
11370 conftest$ac_exeext conftest.$ac_ext
11371 LIBS=$ac_check_lib_save_LIBS
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11375 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11379 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11380 if ${ac_cv_lib_svld_dlopen+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 ac_check_lib_save_LIBS=$LIBS
11384 LIBS="-lsvld $LIBS"
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char dlopen ();
11396 main ()
11398 return dlopen ();
11400 return 0;
11402 _ACEOF
11403 if ac_fn_c_try_link "$LINENO"; then :
11404 ac_cv_lib_svld_dlopen=yes
11405 else
11406 ac_cv_lib_svld_dlopen=no
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 LIBS=$ac_check_lib_save_LIBS
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11413 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11414 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11416 else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11418 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11419 if ${ac_cv_lib_dld_dld_link+:} false; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 ac_check_lib_save_LIBS=$LIBS
11423 LIBS="-ldld $LIBS"
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11427 /* Override any GCC internal prototype to avoid an error.
11428 Use char because int might match the return type of a GCC
11429 builtin and then its argument prototype would still apply. */
11430 #ifdef __cplusplus
11431 extern "C"
11432 #endif
11433 char dld_link ();
11435 main ()
11437 return dld_link ();
11439 return 0;
11441 _ACEOF
11442 if ac_fn_c_try_link "$LINENO"; then :
11443 ac_cv_lib_dld_dld_link=yes
11444 else
11445 ac_cv_lib_dld_dld_link=no
11447 rm -f core conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext conftest.$ac_ext
11449 LIBS=$ac_check_lib_save_LIBS
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11452 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11453 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11454 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11473 esac
11475 if test "x$lt_cv_dlopen" != xno; then
11476 enable_dlopen=yes
11477 else
11478 enable_dlopen=no
11481 case $lt_cv_dlopen in
11482 dlopen)
11483 save_CPPFLAGS="$CPPFLAGS"
11484 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11486 save_LDFLAGS="$LDFLAGS"
11487 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11489 save_LIBS="$LIBS"
11490 LIBS="$lt_cv_dlopen_libs $LIBS"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11493 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11494 if ${lt_cv_dlopen_self+:} false; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 if test "$cross_compiling" = yes; then :
11498 lt_cv_dlopen_self=cross
11499 else
11500 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11501 lt_status=$lt_dlunknown
11502 cat > conftest.$ac_ext <<_LT_EOF
11503 #line 11503 "configure"
11504 #include "confdefs.h"
11506 #if HAVE_DLFCN_H
11507 #include <dlfcn.h>
11508 #endif
11510 #include <stdio.h>
11512 #ifdef RTLD_GLOBAL
11513 # define LT_DLGLOBAL RTLD_GLOBAL
11514 #else
11515 # ifdef DL_GLOBAL
11516 # define LT_DLGLOBAL DL_GLOBAL
11517 # else
11518 # define LT_DLGLOBAL 0
11519 # endif
11520 #endif
11522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11523 find out it does not work in some platform. */
11524 #ifndef LT_DLLAZY_OR_NOW
11525 # ifdef RTLD_LAZY
11526 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11527 # else
11528 # ifdef DL_LAZY
11529 # define LT_DLLAZY_OR_NOW DL_LAZY
11530 # else
11531 # ifdef RTLD_NOW
11532 # define LT_DLLAZY_OR_NOW RTLD_NOW
11533 # else
11534 # ifdef DL_NOW
11535 # define LT_DLLAZY_OR_NOW DL_NOW
11536 # else
11537 # define LT_DLLAZY_OR_NOW 0
11538 # endif
11539 # endif
11540 # endif
11541 # endif
11542 #endif
11544 /* When -fvisbility=hidden is used, assume the code has been annotated
11545 correspondingly for the symbols needed. */
11546 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11547 void fnord () __attribute__((visibility("default")));
11548 #endif
11550 void fnord () { int i=42; }
11551 int main ()
11553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11554 int status = $lt_dlunknown;
11556 if (self)
11558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11559 else
11561 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11562 else puts (dlerror ());
11564 /* dlclose (self); */
11566 else
11567 puts (dlerror ());
11569 return status;
11571 _LT_EOF
11572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11573 (eval $ac_link) 2>&5
11574 ac_status=$?
11575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11576 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11577 (./conftest; exit; ) >&5 2>/dev/null
11578 lt_status=$?
11579 case x$lt_status in
11580 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11581 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11582 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11583 esac
11584 else :
11585 # compilation failed
11586 lt_cv_dlopen_self=no
11589 rm -fr conftest*
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11594 $as_echo "$lt_cv_dlopen_self" >&6; }
11596 if test "x$lt_cv_dlopen_self" = xyes; then
11597 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11599 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11600 if ${lt_cv_dlopen_self_static+:} false; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 if test "$cross_compiling" = yes; then :
11604 lt_cv_dlopen_self_static=cross
11605 else
11606 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11607 lt_status=$lt_dlunknown
11608 cat > conftest.$ac_ext <<_LT_EOF
11609 #line 11609 "configure"
11610 #include "confdefs.h"
11612 #if HAVE_DLFCN_H
11613 #include <dlfcn.h>
11614 #endif
11616 #include <stdio.h>
11618 #ifdef RTLD_GLOBAL
11619 # define LT_DLGLOBAL RTLD_GLOBAL
11620 #else
11621 # ifdef DL_GLOBAL
11622 # define LT_DLGLOBAL DL_GLOBAL
11623 # else
11624 # define LT_DLGLOBAL 0
11625 # endif
11626 #endif
11628 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11629 find out it does not work in some platform. */
11630 #ifndef LT_DLLAZY_OR_NOW
11631 # ifdef RTLD_LAZY
11632 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11633 # else
11634 # ifdef DL_LAZY
11635 # define LT_DLLAZY_OR_NOW DL_LAZY
11636 # else
11637 # ifdef RTLD_NOW
11638 # define LT_DLLAZY_OR_NOW RTLD_NOW
11639 # else
11640 # ifdef DL_NOW
11641 # define LT_DLLAZY_OR_NOW DL_NOW
11642 # else
11643 # define LT_DLLAZY_OR_NOW 0
11644 # endif
11645 # endif
11646 # endif
11647 # endif
11648 #endif
11650 /* When -fvisbility=hidden is used, assume the code has been annotated
11651 correspondingly for the symbols needed. */
11652 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11653 void fnord () __attribute__((visibility("default")));
11654 #endif
11656 void fnord () { int i=42; }
11657 int main ()
11659 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11660 int status = $lt_dlunknown;
11662 if (self)
11664 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11665 else
11667 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11668 else puts (dlerror ());
11670 /* dlclose (self); */
11672 else
11673 puts (dlerror ());
11675 return status;
11677 _LT_EOF
11678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11679 (eval $ac_link) 2>&5
11680 ac_status=$?
11681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11682 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11683 (./conftest; exit; ) >&5 2>/dev/null
11684 lt_status=$?
11685 case x$lt_status in
11686 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11687 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11688 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11689 esac
11690 else :
11691 # compilation failed
11692 lt_cv_dlopen_self_static=no
11695 rm -fr conftest*
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11700 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11703 CPPFLAGS="$save_CPPFLAGS"
11704 LDFLAGS="$save_LDFLAGS"
11705 LIBS="$save_LIBS"
11707 esac
11709 case $lt_cv_dlopen_self in
11710 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11711 *) enable_dlopen_self=unknown ;;
11712 esac
11714 case $lt_cv_dlopen_self_static in
11715 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11716 *) enable_dlopen_self_static=unknown ;;
11717 esac
11736 striplib=
11737 old_striplib=
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11739 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11740 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11741 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11742 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11744 $as_echo "yes" >&6; }
11745 else
11746 # FIXME - insert some real tests, host_os isn't really good enough
11747 case $host_os in
11748 darwin*)
11749 if test -n "$STRIP" ; then
11750 striplib="$STRIP -x"
11751 old_striplib="$STRIP -S"
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753 $as_echo "yes" >&6; }
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761 $as_echo "no" >&6; }
11763 esac
11777 # Report which library types will actually be built
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11779 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11781 $as_echo "$can_build_shared" >&6; }
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11784 $as_echo_n "checking whether to build shared libraries... " >&6; }
11785 test "$can_build_shared" = "no" && enable_shared=no
11787 # On AIX, shared libraries and static libraries use the same namespace, and
11788 # are all built from PIC.
11789 case $host_os in
11790 aix3*)
11791 test "$enable_shared" = yes && enable_static=no
11792 if test -n "$RANLIB"; then
11793 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11794 postinstall_cmds='$RANLIB $lib'
11798 aix[4-9]*)
11799 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11800 test "$enable_shared" = yes && enable_static=no
11803 esac
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11805 $as_echo "$enable_shared" >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11808 $as_echo_n "checking whether to build static libraries... " >&6; }
11809 # Make sure either enable_shared or enable_static is yes.
11810 test "$enable_shared" = yes || enable_static=yes
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11812 $as_echo "$enable_static" >&6; }
11818 ac_ext=c
11819 ac_cpp='$CPP $CPPFLAGS'
11820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11824 CC="$lt_save_CC"
11826 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11827 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11828 (test "X$CXX" != "Xg++"))) ; then
11829 ac_ext=cpp
11830 ac_cpp='$CXXCPP $CPPFLAGS'
11831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11835 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11836 if test -z "$CXXCPP"; then
11837 if ${ac_cv_prog_CXXCPP+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 # Double quotes because CXXCPP needs to be expanded
11841 for CXXCPP in "$CXX -E" "/lib/cpp"
11843 ac_preproc_ok=false
11844 for ac_cxx_preproc_warn_flag in '' yes
11846 # Use a header file that comes with gcc, so configuring glibc
11847 # with a fresh cross-compiler works.
11848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11849 # <limits.h> exists even on freestanding compilers.
11850 # On the NeXT, cc -E runs the code through the compiler's parser,
11851 # not just through cpp. "Syntax error" is here to catch this case.
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854 #ifdef __STDC__
11855 # include <limits.h>
11856 #else
11857 # include <assert.h>
11858 #endif
11859 Syntax error
11860 _ACEOF
11861 if ac_fn_cxx_try_cpp "$LINENO"; then :
11863 else
11864 # Broken: fails on valid input.
11865 continue
11867 rm -f conftest.err conftest.i conftest.$ac_ext
11869 # OK, works on sane cases. Now check whether nonexistent headers
11870 # can be detected and how.
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873 #include <ac_nonexistent.h>
11874 _ACEOF
11875 if ac_fn_cxx_try_cpp "$LINENO"; then :
11876 # Broken: success on invalid input.
11877 continue
11878 else
11879 # Passes both tests.
11880 ac_preproc_ok=:
11881 break
11883 rm -f conftest.err conftest.i conftest.$ac_ext
11885 done
11886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11887 rm -f conftest.i conftest.err conftest.$ac_ext
11888 if $ac_preproc_ok; then :
11889 break
11892 done
11893 ac_cv_prog_CXXCPP=$CXXCPP
11896 CXXCPP=$ac_cv_prog_CXXCPP
11897 else
11898 ac_cv_prog_CXXCPP=$CXXCPP
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11901 $as_echo "$CXXCPP" >&6; }
11902 ac_preproc_ok=false
11903 for ac_cxx_preproc_warn_flag in '' yes
11905 # Use a header file that comes with gcc, so configuring glibc
11906 # with a fresh cross-compiler works.
11907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11908 # <limits.h> exists even on freestanding compilers.
11909 # On the NeXT, cc -E runs the code through the compiler's parser,
11910 # not just through cpp. "Syntax error" is here to catch this case.
11911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h. */
11913 #ifdef __STDC__
11914 # include <limits.h>
11915 #else
11916 # include <assert.h>
11917 #endif
11918 Syntax error
11919 _ACEOF
11920 if ac_fn_cxx_try_cpp "$LINENO"; then :
11922 else
11923 # Broken: fails on valid input.
11924 continue
11926 rm -f conftest.err conftest.i conftest.$ac_ext
11928 # OK, works on sane cases. Now check whether nonexistent headers
11929 # can be detected and how.
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include <ac_nonexistent.h>
11933 _ACEOF
11934 if ac_fn_cxx_try_cpp "$LINENO"; then :
11935 # Broken: success on invalid input.
11936 continue
11937 else
11938 # Passes both tests.
11939 ac_preproc_ok=:
11940 break
11942 rm -f conftest.err conftest.i conftest.$ac_ext
11944 done
11945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11946 rm -f conftest.i conftest.err conftest.$ac_ext
11947 if $ac_preproc_ok; then :
11949 else
11950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11952 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11953 See \`config.log' for more details" "$LINENO" 5; }
11956 ac_ext=c
11957 ac_cpp='$CPP $CPPFLAGS'
11958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11962 else
11963 _lt_caught_CXX_error=yes
11966 ac_ext=cpp
11967 ac_cpp='$CXXCPP $CPPFLAGS'
11968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11972 archive_cmds_need_lc_CXX=no
11973 allow_undefined_flag_CXX=
11974 always_export_symbols_CXX=no
11975 archive_expsym_cmds_CXX=
11976 compiler_needs_object_CXX=no
11977 export_dynamic_flag_spec_CXX=
11978 hardcode_direct_CXX=no
11979 hardcode_direct_absolute_CXX=no
11980 hardcode_libdir_flag_spec_CXX=
11981 hardcode_libdir_flag_spec_ld_CXX=
11982 hardcode_libdir_separator_CXX=
11983 hardcode_minus_L_CXX=no
11984 hardcode_shlibpath_var_CXX=unsupported
11985 hardcode_automatic_CXX=no
11986 inherit_rpath_CXX=no
11987 module_cmds_CXX=
11988 module_expsym_cmds_CXX=
11989 link_all_deplibs_CXX=unknown
11990 old_archive_cmds_CXX=$old_archive_cmds
11991 reload_flag_CXX=$reload_flag
11992 reload_cmds_CXX=$reload_cmds
11993 no_undefined_flag_CXX=
11994 whole_archive_flag_spec_CXX=
11995 enable_shared_with_static_runtimes_CXX=no
11997 # Source file extension for C++ test sources.
11998 ac_ext=cpp
12000 # Object file extension for compiled C++ test sources.
12001 objext=o
12002 objext_CXX=$objext
12004 # No sense in running all these tests if we already determined that
12005 # the CXX compiler isn't working. Some variables (like enable_shared)
12006 # are currently assumed to apply to all compilers on this platform,
12007 # and will be corrupted by setting them based on a non-working compiler.
12008 if test "$_lt_caught_CXX_error" != yes; then
12009 # Code to be used in simple compile tests
12010 lt_simple_compile_test_code="int some_variable = 0;"
12012 # Code to be used in simple link tests
12013 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12015 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12022 # If no C compiler was specified, use CC.
12023 LTCC=${LTCC-"$CC"}
12025 # If no C compiler flags were specified, use CFLAGS.
12026 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12028 # Allow CC to be a program name with arguments.
12029 compiler=$CC
12032 # save warnings/boilerplate of simple test code
12033 ac_outfile=conftest.$ac_objext
12034 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12035 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12036 _lt_compiler_boilerplate=`cat conftest.err`
12037 $RM conftest*
12039 ac_outfile=conftest.$ac_objext
12040 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12041 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12042 _lt_linker_boilerplate=`cat conftest.err`
12043 $RM -r conftest*
12046 # Allow CC to be a program name with arguments.
12047 lt_save_CC=$CC
12048 lt_save_LD=$LD
12049 lt_save_GCC=$GCC
12050 GCC=$GXX
12051 lt_save_with_gnu_ld=$with_gnu_ld
12052 lt_save_path_LD=$lt_cv_path_LD
12053 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12054 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12055 else
12056 $as_unset lt_cv_prog_gnu_ld
12058 if test -n "${lt_cv_path_LDCXX+set}"; then
12059 lt_cv_path_LD=$lt_cv_path_LDCXX
12060 else
12061 $as_unset lt_cv_path_LD
12063 test -z "${LDCXX+set}" || LD=$LDCXX
12064 CC=${CXX-"c++"}
12065 compiler=$CC
12066 compiler_CXX=$CC
12067 for cc_temp in $compiler""; do
12068 case $cc_temp in
12069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12071 \-*) ;;
12072 *) break;;
12073 esac
12074 done
12075 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12078 if test -n "$compiler"; then
12079 # We don't want -fno-exception when compiling C++ code, so set the
12080 # no_builtin_flag separately
12081 if test "$GXX" = yes; then
12082 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12083 else
12084 lt_prog_compiler_no_builtin_flag_CXX=
12087 if test "$GXX" = yes; then
12088 # Set up default GNU C++ configuration
12092 # Check whether --with-gnu-ld was given.
12093 if test "${with_gnu_ld+set}" = set; then :
12094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12095 else
12096 with_gnu_ld=no
12099 ac_prog=ld
12100 if test "$GCC" = yes; then
12101 # Check if gcc -print-prog-name=ld gives a path.
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12103 $as_echo_n "checking for ld used by $CC... " >&6; }
12104 case $host in
12105 *-*-mingw*)
12106 # gcc leaves a trailing carriage return which upsets mingw
12107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12110 esac
12111 case $ac_prog in
12112 # Accept absolute paths.
12113 [\\/]* | ?:[\\/]*)
12114 re_direlt='/[^/][^/]*/\.\./'
12115 # Canonicalize the pathname of ld
12116 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12117 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12118 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12119 done
12120 test -z "$LD" && LD="$ac_prog"
12123 # If it fails, then pretend we aren't using GCC.
12124 ac_prog=ld
12127 # If it is relative, then search for the first ld in PATH.
12128 with_gnu_ld=unknown
12130 esac
12131 elif test "$with_gnu_ld" = yes; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12133 $as_echo_n "checking for GNU ld... " >&6; }
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12136 $as_echo_n "checking for non-GNU ld... " >&6; }
12138 if ${lt_cv_path_LD+:} false; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 if test -z "$LD"; then
12142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12143 for ac_dir in $PATH; do
12144 IFS="$lt_save_ifs"
12145 test -z "$ac_dir" && ac_dir=.
12146 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12147 lt_cv_path_LD="$ac_dir/$ac_prog"
12148 # Check to see if the program is GNU ld. I'd rather use --version,
12149 # but apparently some variants of GNU ld only accept -v.
12150 # Break only if it was the GNU/non-GNU ld that we prefer.
12151 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12152 *GNU* | *'with BFD'*)
12153 test "$with_gnu_ld" != no && break
12156 test "$with_gnu_ld" != yes && break
12158 esac
12160 done
12161 IFS="$lt_save_ifs"
12162 else
12163 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12167 LD="$lt_cv_path_LD"
12168 if test -n "$LD"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12170 $as_echo "$LD" >&6; }
12171 else
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173 $as_echo "no" >&6; }
12175 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12177 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12178 if ${lt_cv_prog_gnu_ld+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12182 case `$LD -v 2>&1 </dev/null` in
12183 *GNU* | *'with BFD'*)
12184 lt_cv_prog_gnu_ld=yes
12187 lt_cv_prog_gnu_ld=no
12189 esac
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12192 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12193 with_gnu_ld=$lt_cv_prog_gnu_ld
12201 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12202 # archiving commands below assume that GNU ld is being used.
12203 if test "$with_gnu_ld" = yes; then
12204 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12205 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12208 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12210 # If archive_cmds runs LD, not CC, wlarc should be empty
12211 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12212 # investigate it a little bit more. (MM)
12213 wlarc='${wl}'
12215 # ancient GNU ld didn't support --whole-archive et. al.
12216 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12217 $GREP 'no-whole-archive' > /dev/null; then
12218 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12219 else
12220 whole_archive_flag_spec_CXX=
12222 else
12223 with_gnu_ld=no
12224 wlarc=
12226 # A generic and very simple default shared library creation
12227 # command for GNU C++ for the case where it uses the native
12228 # linker, instead of GNU ld. If possible, this setting should
12229 # overridden to take advantage of the native linker features on
12230 # the platform it is being used on.
12231 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12234 # Commands to make compiler produce verbose output that lists
12235 # what "hidden" libraries, object files and flags are used when
12236 # linking a shared library.
12237 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12239 else
12240 GXX=no
12241 with_gnu_ld=no
12242 wlarc=
12245 # PORTME: fill in a description of your system's C++ link characteristics
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12247 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12248 ld_shlibs_CXX=yes
12249 case $host_os in
12250 aix3*)
12251 # FIXME: insert proper C++ library support
12252 ld_shlibs_CXX=no
12254 aix[4-9]*)
12255 if test "$host_cpu" = ia64; then
12256 # On IA64, the linker does run time linking by default, so we don't
12257 # have to do anything special.
12258 aix_use_runtimelinking=no
12259 exp_sym_flag='-Bexport'
12260 no_entry_flag=""
12261 else
12262 aix_use_runtimelinking=no
12264 # Test if we are trying to use run time linking or normal
12265 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12266 # need to do runtime linking.
12267 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12268 for ld_flag in $LDFLAGS; do
12269 case $ld_flag in
12270 *-brtl*)
12271 aix_use_runtimelinking=yes
12272 break
12274 esac
12275 done
12277 esac
12279 exp_sym_flag='-bexport'
12280 no_entry_flag='-bnoentry'
12283 # When large executables or shared objects are built, AIX ld can
12284 # have problems creating the table of contents. If linking a library
12285 # or program results in "error TOC overflow" add -mminimal-toc to
12286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12289 archive_cmds_CXX=''
12290 hardcode_direct_CXX=yes
12291 hardcode_direct_absolute_CXX=yes
12292 hardcode_libdir_separator_CXX=':'
12293 link_all_deplibs_CXX=yes
12294 file_list_spec_CXX='${wl}-f,'
12296 if test "$GXX" = yes; then
12297 case $host_os in aix4.[012]|aix4.[012].*)
12298 # We only want to do this on AIX 4.2 and lower, the check
12299 # below for broken collect2 doesn't work under 4.3+
12300 collect2name=`${CC} -print-prog-name=collect2`
12301 if test -f "$collect2name" &&
12302 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12303 then
12304 # We have reworked collect2
12306 else
12307 # We have old collect2
12308 hardcode_direct_CXX=unsupported
12309 # It fails to find uninstalled libraries when the uninstalled
12310 # path is not listed in the libpath. Setting hardcode_minus_L
12311 # to unsupported forces relinking
12312 hardcode_minus_L_CXX=yes
12313 hardcode_libdir_flag_spec_CXX='-L$libdir'
12314 hardcode_libdir_separator_CXX=
12316 esac
12317 shared_flag='-shared'
12318 if test "$aix_use_runtimelinking" = yes; then
12319 shared_flag="$shared_flag "'${wl}-G'
12321 else
12322 # not using gcc
12323 if test "$host_cpu" = ia64; then
12324 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12325 # chokes on -Wl,-G. The following line is correct:
12326 shared_flag='-G'
12327 else
12328 if test "$aix_use_runtimelinking" = yes; then
12329 shared_flag='${wl}-G'
12330 else
12331 shared_flag='${wl}-bM:SRE'
12336 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12337 # It seems that -bexpall does not export symbols beginning with
12338 # underscore (_), so it is better to generate a list of symbols to
12339 # export.
12340 always_export_symbols_CXX=yes
12341 if test "$aix_use_runtimelinking" = yes; then
12342 # Warning - without using the other runtime loading flags (-brtl),
12343 # -berok will link without error, but may produce a broken library.
12344 allow_undefined_flag_CXX='-berok'
12345 # Determine the default libpath from the value encoded in an empty
12346 # executable.
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12351 main ()
12355 return 0;
12357 _ACEOF
12358 if ac_fn_cxx_try_link "$LINENO"; then :
12360 lt_aix_libpath_sed='
12361 /Import File Strings/,/^$/ {
12362 /^0/ {
12363 s/^0 *\(.*\)$/\1/
12367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12368 # Check for a 64-bit object if we didn't find anything.
12369 if test -z "$aix_libpath"; then
12370 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12373 rm -f core conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12377 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12379 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12380 else
12381 if test "$host_cpu" = ia64; then
12382 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12383 allow_undefined_flag_CXX="-z nodefs"
12384 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12385 else
12386 # Determine the default libpath from the value encoded in an
12387 # empty executable.
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12392 main ()
12396 return 0;
12398 _ACEOF
12399 if ac_fn_cxx_try_link "$LINENO"; then :
12401 lt_aix_libpath_sed='
12402 /Import File Strings/,/^$/ {
12403 /^0/ {
12404 s/^0 *\(.*\)$/\1/
12408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12409 # Check for a 64-bit object if we didn't find anything.
12410 if test -z "$aix_libpath"; then
12411 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12414 rm -f core conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
12416 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12418 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12419 # Warning - without using the other run time loading flags,
12420 # -berok will link without error, but may produce a broken library.
12421 no_undefined_flag_CXX=' ${wl}-bernotok'
12422 allow_undefined_flag_CXX=' ${wl}-berok'
12423 if test "$with_gnu_ld" = yes; then
12424 # We only use this code for GNU lds that support --whole-archive.
12425 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12426 else
12427 # Exported symbols can be pulled into shared objects from archives
12428 whole_archive_flag_spec_CXX='$convenience'
12430 archive_cmds_need_lc_CXX=yes
12431 # This is similar to how AIX traditionally builds its shared
12432 # libraries.
12433 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12438 beos*)
12439 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12440 allow_undefined_flag_CXX=unsupported
12441 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12442 # support --undefined. This deserves some investigation. FIXME
12443 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12444 else
12445 ld_shlibs_CXX=no
12449 chorus*)
12450 case $cc_basename in
12452 # FIXME: insert proper C++ library support
12453 ld_shlibs_CXX=no
12455 esac
12458 cygwin* | mingw* | pw32* | cegcc*)
12459 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12460 # as there is no search path for DLLs.
12461 hardcode_libdir_flag_spec_CXX='-L$libdir'
12462 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12463 allow_undefined_flag_CXX=unsupported
12464 always_export_symbols_CXX=no
12465 enable_shared_with_static_runtimes_CXX=yes
12467 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12468 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12469 # If the export-symbols file already is a .def file (1st line
12470 # is EXPORTS), use it as is; otherwise, prepend...
12471 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12472 cp $export_symbols $output_objdir/$soname.def;
12473 else
12474 echo EXPORTS > $output_objdir/$soname.def;
12475 cat $export_symbols >> $output_objdir/$soname.def;
12477 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12478 else
12479 ld_shlibs_CXX=no
12482 darwin* | rhapsody*)
12485 archive_cmds_need_lc_CXX=no
12486 hardcode_direct_CXX=no
12487 hardcode_automatic_CXX=yes
12488 hardcode_shlibpath_var_CXX=unsupported
12489 if test "$lt_cv_ld_force_load" = "yes"; then
12490 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12491 else
12492 whole_archive_flag_spec_CXX=''
12494 link_all_deplibs_CXX=yes
12495 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12496 case $cc_basename in
12497 ifort*) _lt_dar_can_shared=yes ;;
12498 *) _lt_dar_can_shared=$GCC ;;
12499 esac
12500 if test "$_lt_dar_can_shared" = "yes"; then
12501 output_verbose_link_cmd=func_echo_all
12502 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12503 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12504 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12505 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12506 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12507 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12508 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12511 else
12512 ld_shlibs_CXX=no
12517 dgux*)
12518 case $cc_basename in
12519 ec++*)
12520 # FIXME: insert proper C++ library support
12521 ld_shlibs_CXX=no
12523 ghcx*)
12524 # Green Hills C++ Compiler
12525 # FIXME: insert proper C++ library support
12526 ld_shlibs_CXX=no
12529 # FIXME: insert proper C++ library support
12530 ld_shlibs_CXX=no
12532 esac
12535 freebsd2.*)
12536 # C++ shared libraries reported to be fairly broken before
12537 # switch to ELF
12538 ld_shlibs_CXX=no
12541 freebsd-elf*)
12542 archive_cmds_need_lc_CXX=no
12545 freebsd* | dragonfly*)
12546 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12547 # conventions
12548 ld_shlibs_CXX=yes
12551 gnu*)
12554 haiku*)
12555 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12556 link_all_deplibs_CXX=yes
12559 hpux9*)
12560 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12561 hardcode_libdir_separator_CXX=:
12562 export_dynamic_flag_spec_CXX='${wl}-E'
12563 hardcode_direct_CXX=yes
12564 hardcode_minus_L_CXX=yes # Not in the search PATH,
12565 # but as the default
12566 # location of the library.
12568 case $cc_basename in
12569 CC*)
12570 # FIXME: insert proper C++ library support
12571 ld_shlibs_CXX=no
12573 aCC*)
12574 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12575 # Commands to make compiler produce verbose output that lists
12576 # what "hidden" libraries, object files and flags are used when
12577 # linking a shared library.
12579 # There doesn't appear to be a way to prevent this compiler from
12580 # explicitly linking system object files so we need to strip them
12581 # from the output so that they don't get included in the library
12582 # dependencies.
12583 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12586 if test "$GXX" = yes; then
12587 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12588 else
12589 # FIXME: insert proper C++ library support
12590 ld_shlibs_CXX=no
12593 esac
12596 hpux10*|hpux11*)
12597 if test $with_gnu_ld = no; then
12598 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12599 hardcode_libdir_separator_CXX=:
12601 case $host_cpu in
12602 hppa*64*|ia64*)
12605 export_dynamic_flag_spec_CXX='${wl}-E'
12607 esac
12609 case $host_cpu in
12610 hppa*64*|ia64*)
12611 hardcode_direct_CXX=no
12612 hardcode_shlibpath_var_CXX=no
12615 hardcode_direct_CXX=yes
12616 hardcode_direct_absolute_CXX=yes
12617 hardcode_minus_L_CXX=yes # Not in the search PATH,
12618 # but as the default
12619 # location of the library.
12621 esac
12623 case $cc_basename in
12624 CC*)
12625 # FIXME: insert proper C++ library support
12626 ld_shlibs_CXX=no
12628 aCC*)
12629 case $host_cpu in
12630 hppa*64*)
12631 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12633 ia64*)
12634 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12637 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12639 esac
12640 # Commands to make compiler produce verbose output that lists
12641 # what "hidden" libraries, object files and flags are used when
12642 # linking a shared library.
12644 # There doesn't appear to be a way to prevent this compiler from
12645 # explicitly linking system object files so we need to strip them
12646 # from the output so that they don't get included in the library
12647 # dependencies.
12648 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12651 if test "$GXX" = yes; then
12652 if test $with_gnu_ld = no; then
12653 case $host_cpu in
12654 hppa*64*)
12655 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12657 ia64*)
12658 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12661 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12663 esac
12665 else
12666 # FIXME: insert proper C++ library support
12667 ld_shlibs_CXX=no
12670 esac
12673 interix[3-9]*)
12674 hardcode_direct_CXX=no
12675 hardcode_shlibpath_var_CXX=no
12676 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12677 export_dynamic_flag_spec_CXX='${wl}-E'
12678 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12679 # Instead, shared libraries are loaded at an image base (0x10000000 by
12680 # default) and relocated if they conflict, which is a slow very memory
12681 # consuming and fragmenting process. To avoid this, we pick a random,
12682 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12683 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12684 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12685 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12687 irix5* | irix6*)
12688 case $cc_basename in
12689 CC*)
12690 # SGI C++
12691 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12693 # Archives containing C++ object files must be created using
12694 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12695 # necessary to make sure instantiated templates are included
12696 # in the archive.
12697 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12700 if test "$GXX" = yes; then
12701 if test "$with_gnu_ld" = no; then
12702 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12703 else
12704 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12707 link_all_deplibs_CXX=yes
12709 esac
12710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12711 hardcode_libdir_separator_CXX=:
12712 inherit_rpath_CXX=yes
12715 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12716 case $cc_basename in
12717 KCC*)
12718 # Kuck and Associates, Inc. (KAI) C++ Compiler
12720 # KCC will only create a shared library if the output file
12721 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12722 # to its proper name (with version) after linking.
12723 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12724 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12725 # Commands to make compiler produce verbose output that lists
12726 # what "hidden" libraries, object files and flags are used when
12727 # linking a shared library.
12729 # There doesn't appear to be a way to prevent this compiler from
12730 # explicitly linking system object files so we need to strip them
12731 # from the output so that they don't get included in the library
12732 # dependencies.
12733 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12735 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12736 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12738 # Archives containing C++ object files must be created using
12739 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12740 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12742 icpc* | ecpc* )
12743 # Intel C++
12744 with_gnu_ld=yes
12745 # version 8.0 and above of icpc choke on multiply defined symbols
12746 # if we add $predep_objects and $postdep_objects, however 7.1 and
12747 # earlier do not add the objects themselves.
12748 case `$CC -V 2>&1` in
12749 *"Version 7."*)
12750 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12751 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12753 *) # Version 8.0 or newer
12754 tmp_idyn=
12755 case $host_cpu in
12756 ia64*) tmp_idyn=' -i_dynamic';;
12757 esac
12758 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12759 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12761 esac
12762 archive_cmds_need_lc_CXX=no
12763 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12764 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12765 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12767 pgCC* | pgcpp*)
12768 # Portland Group C++ compiler
12769 case `$CC -V` in
12770 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12771 prelink_cmds_CXX='tpldir=Template.dir~
12772 rm -rf $tpldir~
12773 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12774 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12775 old_archive_cmds_CXX='tpldir=Template.dir~
12776 rm -rf $tpldir~
12777 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12778 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12779 $RANLIB $oldlib'
12780 archive_cmds_CXX='tpldir=Template.dir~
12781 rm -rf $tpldir~
12782 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12783 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12784 archive_expsym_cmds_CXX='tpldir=Template.dir~
12785 rm -rf $tpldir~
12786 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12787 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12789 *) # Version 6 and above use weak symbols
12790 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12791 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12793 esac
12795 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12797 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12799 cxx*)
12800 # Compaq C++
12801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12802 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12804 runpath_var=LD_RUN_PATH
12805 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12806 hardcode_libdir_separator_CXX=:
12808 # Commands to make compiler produce verbose output that lists
12809 # what "hidden" libraries, object files and flags are used when
12810 # linking a shared library.
12812 # There doesn't appear to be a way to prevent this compiler from
12813 # explicitly linking system object files so we need to strip them
12814 # from the output so that they don't get included in the library
12815 # dependencies.
12816 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12818 xl* | mpixl* | bgxl*)
12819 # IBM XL 8.0 on PPC, with GNU ld
12820 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12822 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823 if test "x$supports_anon_versioning" = xyes; then
12824 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12825 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12826 echo "local: *; };" >> $output_objdir/$libname.ver~
12827 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12831 case `$CC -V 2>&1 | sed 5q` in
12832 *Sun\ C*)
12833 # Sun C++ 5.9
12834 no_undefined_flag_CXX=' -zdefs'
12835 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12836 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12837 hardcode_libdir_flag_spec_CXX='-R$libdir'
12838 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12839 compiler_needs_object_CXX=yes
12841 # Not sure whether something based on
12842 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12843 # would be better.
12844 output_verbose_link_cmd='func_echo_all'
12846 # Archives containing C++ object files must be created using
12847 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12848 # necessary to make sure instantiated templates are included
12849 # in the archive.
12850 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12852 esac
12854 esac
12857 lynxos*)
12858 # FIXME: insert proper C++ library support
12859 ld_shlibs_CXX=no
12862 m88k*)
12863 # FIXME: insert proper C++ library support
12864 ld_shlibs_CXX=no
12867 mvs*)
12868 case $cc_basename in
12869 cxx*)
12870 # FIXME: insert proper C++ library support
12871 ld_shlibs_CXX=no
12874 # FIXME: insert proper C++ library support
12875 ld_shlibs_CXX=no
12877 esac
12880 netbsd*)
12881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12882 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12883 wlarc=
12884 hardcode_libdir_flag_spec_CXX='-R$libdir'
12885 hardcode_direct_CXX=yes
12886 hardcode_shlibpath_var_CXX=no
12888 # Workaround some broken pre-1.5 toolchains
12889 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12892 *nto* | *qnx*)
12893 ld_shlibs_CXX=yes
12896 openbsd2*)
12897 # C++ shared libraries are fairly broken
12898 ld_shlibs_CXX=no
12901 openbsd*)
12902 if test -f /usr/libexec/ld.so; then
12903 hardcode_direct_CXX=yes
12904 hardcode_shlibpath_var_CXX=no
12905 hardcode_direct_absolute_CXX=yes
12906 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12907 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12909 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12910 export_dynamic_flag_spec_CXX='${wl}-E'
12911 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12913 output_verbose_link_cmd=func_echo_all
12914 else
12915 ld_shlibs_CXX=no
12919 osf3* | osf4* | osf5*)
12920 case $cc_basename in
12921 KCC*)
12922 # Kuck and Associates, Inc. (KAI) C++ Compiler
12924 # KCC will only create a shared library if the output file
12925 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12926 # to its proper name (with version) after linking.
12927 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12929 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12930 hardcode_libdir_separator_CXX=:
12932 # Archives containing C++ object files must be created using
12933 # the KAI C++ compiler.
12934 case $host in
12935 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12936 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12937 esac
12939 RCC*)
12940 # Rational C++ 2.4.1
12941 # FIXME: insert proper C++ library support
12942 ld_shlibs_CXX=no
12944 cxx*)
12945 case $host in
12946 osf3*)
12947 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12948 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12949 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12952 allow_undefined_flag_CXX=' -expect_unresolved \*'
12953 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12954 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12955 echo "-hidden">> $lib.exp~
12956 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12957 $RM $lib.exp'
12958 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12960 esac
12962 hardcode_libdir_separator_CXX=:
12964 # Commands to make compiler produce verbose output that lists
12965 # what "hidden" libraries, object files and flags are used when
12966 # linking a shared library.
12968 # There doesn't appear to be a way to prevent this compiler from
12969 # explicitly linking system object files so we need to strip them
12970 # from the output so that they don't get included in the library
12971 # dependencies.
12972 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12975 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12976 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12977 case $host in
12978 osf3*)
12979 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12982 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12984 esac
12986 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12987 hardcode_libdir_separator_CXX=:
12989 # Commands to make compiler produce verbose output that lists
12990 # what "hidden" libraries, object files and flags are used when
12991 # linking a shared library.
12992 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12994 else
12995 # FIXME: insert proper C++ library support
12996 ld_shlibs_CXX=no
12999 esac
13002 psos*)
13003 # FIXME: insert proper C++ library support
13004 ld_shlibs_CXX=no
13007 sunos4*)
13008 case $cc_basename in
13009 CC*)
13010 # Sun C++ 4.x
13011 # FIXME: insert proper C++ library support
13012 ld_shlibs_CXX=no
13014 lcc*)
13015 # Lucid
13016 # FIXME: insert proper C++ library support
13017 ld_shlibs_CXX=no
13020 # FIXME: insert proper C++ library support
13021 ld_shlibs_CXX=no
13023 esac
13026 solaris*)
13027 case $cc_basename in
13028 CC*)
13029 # Sun C++ 4.2, 5.x and Centerline C++
13030 archive_cmds_need_lc_CXX=yes
13031 no_undefined_flag_CXX=' -zdefs'
13032 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13033 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13034 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13036 hardcode_libdir_flag_spec_CXX='-R$libdir'
13037 hardcode_shlibpath_var_CXX=no
13038 case $host_os in
13039 solaris2.[0-5] | solaris2.[0-5].*) ;;
13041 # The compiler driver will combine and reorder linker options,
13042 # but understands `-z linker_flag'.
13043 # Supported since Solaris 2.6 (maybe 2.5.1?)
13044 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13046 esac
13047 link_all_deplibs_CXX=yes
13049 output_verbose_link_cmd='func_echo_all'
13051 # Archives containing C++ object files must be created using
13052 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13053 # necessary to make sure instantiated templates are included
13054 # in the archive.
13055 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13057 gcx*)
13058 # Green Hills C++ Compiler
13059 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13061 # The C++ compiler must be used to create the archive.
13062 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13065 # GNU C++ compiler with Solaris linker
13066 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13067 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13068 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13069 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13070 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13071 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13073 # Commands to make compiler produce verbose output that lists
13074 # what "hidden" libraries, object files and flags are used when
13075 # linking a shared library.
13076 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13077 else
13078 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13079 # platform.
13080 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13081 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13082 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13084 # Commands to make compiler produce verbose output that lists
13085 # what "hidden" libraries, object files and flags are used when
13086 # linking a shared library.
13087 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13090 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13091 case $host_os in
13092 solaris2.[0-5] | solaris2.[0-5].*) ;;
13094 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13096 esac
13099 esac
13102 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13103 no_undefined_flag_CXX='${wl}-z,text'
13104 archive_cmds_need_lc_CXX=no
13105 hardcode_shlibpath_var_CXX=no
13106 runpath_var='LD_RUN_PATH'
13108 case $cc_basename in
13109 CC*)
13110 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13111 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13114 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13115 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13117 esac
13120 sysv5* | sco3.2v5* | sco5v6*)
13121 # Note: We can NOT use -z defs as we might desire, because we do not
13122 # link with -lc, and that would cause any symbols used from libc to
13123 # always be unresolved, which means just about no library would
13124 # ever link correctly. If we're not using GNU ld we use -z text
13125 # though, which does catch some bad symbols but isn't as heavy-handed
13126 # as -z defs.
13127 no_undefined_flag_CXX='${wl}-z,text'
13128 allow_undefined_flag_CXX='${wl}-z,nodefs'
13129 archive_cmds_need_lc_CXX=no
13130 hardcode_shlibpath_var_CXX=no
13131 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13132 hardcode_libdir_separator_CXX=':'
13133 link_all_deplibs_CXX=yes
13134 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13135 runpath_var='LD_RUN_PATH'
13137 case $cc_basename in
13138 CC*)
13139 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13140 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13141 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13142 '"$old_archive_cmds_CXX"
13143 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13144 '"$reload_cmds_CXX"
13147 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13148 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13150 esac
13153 tandem*)
13154 case $cc_basename in
13155 NCC*)
13156 # NonStop-UX NCC 3.20
13157 # FIXME: insert proper C++ library support
13158 ld_shlibs_CXX=no
13161 # FIXME: insert proper C++ library support
13162 ld_shlibs_CXX=no
13164 esac
13167 vxworks*)
13168 # For VxWorks ports, we assume the use of a GNU linker with
13169 # standard elf conventions.
13170 ld_shlibs_CXX=yes
13174 # FIXME: insert proper C++ library support
13175 ld_shlibs_CXX=no
13177 esac
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13180 $as_echo "$ld_shlibs_CXX" >&6; }
13181 test "$ld_shlibs_CXX" = no && can_build_shared=no
13183 GCC_CXX="$GXX"
13184 LD_CXX="$LD"
13186 ## CAVEAT EMPTOR:
13187 ## There is no encapsulation within the following macros, do not change
13188 ## the running order or otherwise move them around unless you know exactly
13189 ## what you are doing...
13190 # Dependencies to place before and after the object being linked:
13191 predep_objects_CXX=
13192 postdep_objects_CXX=
13193 predeps_CXX=
13194 postdeps_CXX=
13195 compiler_lib_search_path_CXX=
13197 cat > conftest.$ac_ext <<_LT_EOF
13198 class Foo
13200 public:
13201 Foo (void) { a = 0; }
13202 private:
13203 int a;
13205 _LT_EOF
13207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13208 (eval $ac_compile) 2>&5
13209 ac_status=$?
13210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13211 test $ac_status = 0; }; then
13212 # Parse the compiler output and extract the necessary
13213 # objects, libraries and library flags.
13215 # Sentinel used to keep track of whether or not we are before
13216 # the conftest object file.
13217 pre_test_object_deps_done=no
13219 for p in `eval "$output_verbose_link_cmd"`; do
13220 case $p in
13222 -L* | -R* | -l*)
13223 # Some compilers place space between "-{L,R}" and the path.
13224 # Remove the space.
13225 if test $p = "-L" ||
13226 test $p = "-R"; then
13227 prev=$p
13228 continue
13229 else
13230 prev=
13233 if test "$pre_test_object_deps_done" = no; then
13234 case $p in
13235 -L* | -R*)
13236 # Internal compiler library paths should come after those
13237 # provided the user. The postdeps already come after the
13238 # user supplied libs so there is no need to process them.
13239 if test -z "$compiler_lib_search_path_CXX"; then
13240 compiler_lib_search_path_CXX="${prev}${p}"
13241 else
13242 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13245 # The "-l" case would never come before the object being
13246 # linked, so don't bother handling this case.
13247 esac
13248 else
13249 if test -z "$postdeps_CXX"; then
13250 postdeps_CXX="${prev}${p}"
13251 else
13252 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13257 *.$objext)
13258 # This assumes that the test object file only shows up
13259 # once in the compiler output.
13260 if test "$p" = "conftest.$objext"; then
13261 pre_test_object_deps_done=yes
13262 continue
13265 if test "$pre_test_object_deps_done" = no; then
13266 if test -z "$predep_objects_CXX"; then
13267 predep_objects_CXX="$p"
13268 else
13269 predep_objects_CXX="$predep_objects_CXX $p"
13271 else
13272 if test -z "$postdep_objects_CXX"; then
13273 postdep_objects_CXX="$p"
13274 else
13275 postdep_objects_CXX="$postdep_objects_CXX $p"
13280 *) ;; # Ignore the rest.
13282 esac
13283 done
13285 # Clean up.
13286 rm -f a.out a.exe
13287 else
13288 echo "libtool.m4: error: problem compiling CXX test program"
13291 $RM -f confest.$objext
13293 # PORTME: override above test on systems where it is broken
13294 case $host_os in
13295 interix[3-9]*)
13296 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13297 # hack all around it, let's just trust "g++" to DTRT.
13298 predep_objects_CXX=
13299 postdep_objects_CXX=
13300 postdeps_CXX=
13303 linux*)
13304 case `$CC -V 2>&1 | sed 5q` in
13305 *Sun\ C*)
13306 # Sun C++ 5.9
13308 # The more standards-conforming stlport4 library is
13309 # incompatible with the Cstd library. Avoid specifying
13310 # it if it's in CXXFLAGS. Ignore libCrun as
13311 # -library=stlport4 depends on it.
13312 case " $CXX $CXXFLAGS " in
13313 *" -library=stlport4 "*)
13314 solaris_use_stlport4=yes
13316 esac
13318 if test "$solaris_use_stlport4" != yes; then
13319 postdeps_CXX='-library=Cstd -library=Crun'
13322 esac
13325 solaris*)
13326 case $cc_basename in
13327 CC*)
13328 # The more standards-conforming stlport4 library is
13329 # incompatible with the Cstd library. Avoid specifying
13330 # it if it's in CXXFLAGS. Ignore libCrun as
13331 # -library=stlport4 depends on it.
13332 case " $CXX $CXXFLAGS " in
13333 *" -library=stlport4 "*)
13334 solaris_use_stlport4=yes
13336 esac
13338 # Adding this requires a known-good setup of shared libraries for
13339 # Sun compiler versions before 5.6, else PIC objects from an old
13340 # archive will be linked into the output, leading to subtle bugs.
13341 if test "$solaris_use_stlport4" != yes; then
13342 postdeps_CXX='-library=Cstd -library=Crun'
13345 esac
13347 esac
13350 case " $postdeps_CXX " in
13351 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13352 esac
13353 compiler_lib_search_dirs_CXX=
13354 if test -n "${compiler_lib_search_path_CXX}"; then
13355 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13388 lt_prog_compiler_wl_CXX=
13389 lt_prog_compiler_pic_CXX=
13390 lt_prog_compiler_static_CXX=
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13393 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13395 # C++ specific cases for pic, static, wl, etc.
13396 if test "$GXX" = yes; then
13397 lt_prog_compiler_wl_CXX='-Wl,'
13398 lt_prog_compiler_static_CXX='-static'
13400 case $host_os in
13401 aix*)
13402 # All AIX code is PIC.
13403 if test "$host_cpu" = ia64; then
13404 # AIX 5 now supports IA64 processor
13405 lt_prog_compiler_static_CXX='-Bstatic'
13407 lt_prog_compiler_pic_CXX='-fPIC'
13410 amigaos*)
13411 case $host_cpu in
13412 powerpc)
13413 # see comment about AmigaOS4 .so support
13414 lt_prog_compiler_pic_CXX='-fPIC'
13416 m68k)
13417 # FIXME: we need at least 68020 code to build shared libraries, but
13418 # adding the `-m68020' flag to GCC prevents building anything better,
13419 # like `-m68040'.
13420 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13422 esac
13425 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13426 # PIC is the default for these OSes.
13428 mingw* | cygwin* | os2* | pw32* | cegcc*)
13429 # This hack is so that the source file can tell whether it is being
13430 # built for inclusion in a dll (and should export symbols for example).
13431 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13432 # (--disable-auto-import) libraries
13433 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13435 darwin* | rhapsody*)
13436 # PIC is the default on this platform
13437 # Common symbols not allowed in MH_DYLIB files
13438 lt_prog_compiler_pic_CXX='-fno-common'
13440 *djgpp*)
13441 # DJGPP does not support shared libraries at all
13442 lt_prog_compiler_pic_CXX=
13444 haiku*)
13445 # PIC is the default for Haiku.
13446 # The "-static" flag exists, but is broken.
13447 lt_prog_compiler_static_CXX=
13449 interix[3-9]*)
13450 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13451 # Instead, we relocate shared libraries at runtime.
13453 sysv4*MP*)
13454 if test -d /usr/nec; then
13455 lt_prog_compiler_pic_CXX=-Kconform_pic
13458 hpux*)
13459 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13460 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13461 # sets the default TLS model and affects inlining.
13462 case $host_cpu in
13463 hppa*64*)
13466 lt_prog_compiler_pic_CXX='-fPIC'
13468 esac
13470 *qnx* | *nto*)
13471 # QNX uses GNU C++, but need to define -shared option too, otherwise
13472 # it will coredump.
13473 lt_prog_compiler_pic_CXX='-fPIC -shared'
13476 lt_prog_compiler_pic_CXX='-fPIC'
13478 esac
13479 else
13480 case $host_os in
13481 aix[4-9]*)
13482 # All AIX code is PIC.
13483 if test "$host_cpu" = ia64; then
13484 # AIX 5 now supports IA64 processor
13485 lt_prog_compiler_static_CXX='-Bstatic'
13486 else
13487 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13490 chorus*)
13491 case $cc_basename in
13492 cxch68*)
13493 # Green Hills C++ Compiler
13494 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13496 esac
13498 dgux*)
13499 case $cc_basename in
13500 ec++*)
13501 lt_prog_compiler_pic_CXX='-KPIC'
13503 ghcx*)
13504 # Green Hills C++ Compiler
13505 lt_prog_compiler_pic_CXX='-pic'
13509 esac
13511 freebsd* | dragonfly*)
13512 # FreeBSD uses GNU C++
13514 hpux9* | hpux10* | hpux11*)
13515 case $cc_basename in
13516 CC*)
13517 lt_prog_compiler_wl_CXX='-Wl,'
13518 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13519 if test "$host_cpu" != ia64; then
13520 lt_prog_compiler_pic_CXX='+Z'
13523 aCC*)
13524 lt_prog_compiler_wl_CXX='-Wl,'
13525 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13526 case $host_cpu in
13527 hppa*64*|ia64*)
13528 # +Z the default
13531 lt_prog_compiler_pic_CXX='+Z'
13533 esac
13537 esac
13539 interix*)
13540 # This is c89, which is MS Visual C++ (no shared libs)
13541 # Anyone wants to do a port?
13543 irix5* | irix6* | nonstopux*)
13544 case $cc_basename in
13545 CC*)
13546 lt_prog_compiler_wl_CXX='-Wl,'
13547 lt_prog_compiler_static_CXX='-non_shared'
13548 # CC pic flag -KPIC is the default.
13552 esac
13554 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13555 case $cc_basename in
13556 KCC*)
13557 # KAI C++ Compiler
13558 lt_prog_compiler_wl_CXX='--backend -Wl,'
13559 lt_prog_compiler_pic_CXX='-fPIC'
13561 ecpc* )
13562 # old Intel C++ for x86_64 which still supported -KPIC.
13563 lt_prog_compiler_wl_CXX='-Wl,'
13564 lt_prog_compiler_pic_CXX='-KPIC'
13565 lt_prog_compiler_static_CXX='-static'
13567 icpc* )
13568 # Intel C++, used to be incompatible with GCC.
13569 # ICC 10 doesn't accept -KPIC any more.
13570 lt_prog_compiler_wl_CXX='-Wl,'
13571 lt_prog_compiler_pic_CXX='-fPIC'
13572 lt_prog_compiler_static_CXX='-static'
13574 pgCC* | pgcpp*)
13575 # Portland Group C++ compiler
13576 lt_prog_compiler_wl_CXX='-Wl,'
13577 lt_prog_compiler_pic_CXX='-fpic'
13578 lt_prog_compiler_static_CXX='-Bstatic'
13580 cxx*)
13581 # Compaq C++
13582 # Make sure the PIC flag is empty. It appears that all Alpha
13583 # Linux and Compaq Tru64 Unix objects are PIC.
13584 lt_prog_compiler_pic_CXX=
13585 lt_prog_compiler_static_CXX='-non_shared'
13587 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13588 # IBM XL 8.0, 9.0 on PPC and BlueGene
13589 lt_prog_compiler_wl_CXX='-Wl,'
13590 lt_prog_compiler_pic_CXX='-qpic'
13591 lt_prog_compiler_static_CXX='-qstaticlink'
13594 case `$CC -V 2>&1 | sed 5q` in
13595 *Sun\ C*)
13596 # Sun C++ 5.9
13597 lt_prog_compiler_pic_CXX='-KPIC'
13598 lt_prog_compiler_static_CXX='-Bstatic'
13599 lt_prog_compiler_wl_CXX='-Qoption ld '
13601 esac
13603 esac
13605 lynxos*)
13607 m88k*)
13609 mvs*)
13610 case $cc_basename in
13611 cxx*)
13612 lt_prog_compiler_pic_CXX='-W c,exportall'
13616 esac
13618 netbsd*)
13620 *qnx* | *nto*)
13621 # QNX uses GNU C++, but need to define -shared option too, otherwise
13622 # it will coredump.
13623 lt_prog_compiler_pic_CXX='-fPIC -shared'
13625 osf3* | osf4* | osf5*)
13626 case $cc_basename in
13627 KCC*)
13628 lt_prog_compiler_wl_CXX='--backend -Wl,'
13630 RCC*)
13631 # Rational C++ 2.4.1
13632 lt_prog_compiler_pic_CXX='-pic'
13634 cxx*)
13635 # Digital/Compaq C++
13636 lt_prog_compiler_wl_CXX='-Wl,'
13637 # Make sure the PIC flag is empty. It appears that all Alpha
13638 # Linux and Compaq Tru64 Unix objects are PIC.
13639 lt_prog_compiler_pic_CXX=
13640 lt_prog_compiler_static_CXX='-non_shared'
13644 esac
13646 psos*)
13648 solaris*)
13649 case $cc_basename in
13650 CC*)
13651 # Sun C++ 4.2, 5.x and Centerline C++
13652 lt_prog_compiler_pic_CXX='-KPIC'
13653 lt_prog_compiler_static_CXX='-Bstatic'
13654 lt_prog_compiler_wl_CXX='-Qoption ld '
13656 gcx*)
13657 # Green Hills C++ Compiler
13658 lt_prog_compiler_pic_CXX='-PIC'
13662 esac
13664 sunos4*)
13665 case $cc_basename in
13666 CC*)
13667 # Sun C++ 4.x
13668 lt_prog_compiler_pic_CXX='-pic'
13669 lt_prog_compiler_static_CXX='-Bstatic'
13671 lcc*)
13672 # Lucid
13673 lt_prog_compiler_pic_CXX='-pic'
13677 esac
13679 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13680 case $cc_basename in
13681 CC*)
13682 lt_prog_compiler_wl_CXX='-Wl,'
13683 lt_prog_compiler_pic_CXX='-KPIC'
13684 lt_prog_compiler_static_CXX='-Bstatic'
13686 esac
13688 tandem*)
13689 case $cc_basename in
13690 NCC*)
13691 # NonStop-UX NCC 3.20
13692 lt_prog_compiler_pic_CXX='-KPIC'
13696 esac
13698 vxworks*)
13701 lt_prog_compiler_can_build_shared_CXX=no
13703 esac
13706 case $host_os in
13707 # For platforms which do not support PIC, -DPIC is meaningless:
13708 *djgpp*)
13709 lt_prog_compiler_pic_CXX=
13712 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13714 esac
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13716 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13721 # Check to make sure the PIC flag actually works.
13723 if test -n "$lt_prog_compiler_pic_CXX"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13725 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13726 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 lt_cv_prog_compiler_pic_works_CXX=no
13730 ac_outfile=conftest.$ac_objext
13731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13732 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13733 # Insert the option either (1) after the last *FLAGS variable, or
13734 # (2) before a word containing "conftest.", or (3) at the end.
13735 # Note that $ac_compile itself does not contain backslashes and begins
13736 # with a dollar sign (not a hyphen), so the echo should work correctly.
13737 # The option is referenced via a variable to avoid confusing sed.
13738 lt_compile=`echo "$ac_compile" | $SED \
13739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13741 -e 's:$: $lt_compiler_flag:'`
13742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13743 (eval "$lt_compile" 2>conftest.err)
13744 ac_status=$?
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 if (exit $ac_status) && test -s "$ac_outfile"; then
13748 # The compiler can only warn and ignore the option if not recognized
13749 # So say no if there are warnings other than the usual output.
13750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13752 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13753 lt_cv_prog_compiler_pic_works_CXX=yes
13756 $RM conftest*
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13760 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13762 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13763 case $lt_prog_compiler_pic_CXX in
13764 "" | " "*) ;;
13765 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13766 esac
13767 else
13768 lt_prog_compiler_pic_CXX=
13769 lt_prog_compiler_can_build_shared_CXX=no
13777 # Check to make sure the static flag actually works.
13779 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13781 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13782 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13783 $as_echo_n "(cached) " >&6
13784 else
13785 lt_cv_prog_compiler_static_works_CXX=no
13786 save_LDFLAGS="$LDFLAGS"
13787 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13788 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13789 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13790 # The linker can only warn and ignore the option if not recognized
13791 # So say no if there are warnings
13792 if test -s conftest.err; then
13793 # Append any errors to the config.log.
13794 cat conftest.err 1>&5
13795 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13797 if diff conftest.exp conftest.er2 >/dev/null; then
13798 lt_cv_prog_compiler_static_works_CXX=yes
13800 else
13801 lt_cv_prog_compiler_static_works_CXX=yes
13804 $RM -r conftest*
13805 LDFLAGS="$save_LDFLAGS"
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13809 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13811 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13813 else
13814 lt_prog_compiler_static_CXX=
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13822 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 lt_cv_prog_compiler_c_o_CXX=no
13826 $RM -r conftest 2>/dev/null
13827 mkdir conftest
13828 cd conftest
13829 mkdir out
13830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13832 lt_compiler_flag="-o out/conftest2.$ac_objext"
13833 # Insert the option either (1) after the last *FLAGS variable, or
13834 # (2) before a word containing "conftest.", or (3) at the end.
13835 # Note that $ac_compile itself does not contain backslashes and begins
13836 # with a dollar sign (not a hyphen), so the echo should work correctly.
13837 lt_compile=`echo "$ac_compile" | $SED \
13838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13840 -e 's:$: $lt_compiler_flag:'`
13841 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13842 (eval "$lt_compile" 2>out/conftest.err)
13843 ac_status=$?
13844 cat out/conftest.err >&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13847 then
13848 # The compiler can only warn and ignore the option if not recognized
13849 # So say no if there are warnings
13850 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13853 lt_cv_prog_compiler_c_o_CXX=yes
13856 chmod u+w . 2>&5
13857 $RM conftest*
13858 # SGI C++ compiler will create directory out/ii_files/ for
13859 # template instantiation
13860 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13861 $RM out/* && rmdir out
13862 cd ..
13863 $RM -r conftest
13864 $RM conftest*
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13868 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13874 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 lt_cv_prog_compiler_c_o_CXX=no
13878 $RM -r conftest 2>/dev/null
13879 mkdir conftest
13880 cd conftest
13881 mkdir out
13882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13884 lt_compiler_flag="-o out/conftest2.$ac_objext"
13885 # Insert the option either (1) after the last *FLAGS variable, or
13886 # (2) before a word containing "conftest.", or (3) at the end.
13887 # Note that $ac_compile itself does not contain backslashes and begins
13888 # with a dollar sign (not a hyphen), so the echo should work correctly.
13889 lt_compile=`echo "$ac_compile" | $SED \
13890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13892 -e 's:$: $lt_compiler_flag:'`
13893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13894 (eval "$lt_compile" 2>out/conftest.err)
13895 ac_status=$?
13896 cat out/conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13899 then
13900 # The compiler can only warn and ignore the option if not recognized
13901 # So say no if there are warnings
13902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13905 lt_cv_prog_compiler_c_o_CXX=yes
13908 chmod u+w . 2>&5
13909 $RM conftest*
13910 # SGI C++ compiler will create directory out/ii_files/ for
13911 # template instantiation
13912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13913 $RM out/* && rmdir out
13914 cd ..
13915 $RM -r conftest
13916 $RM conftest*
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13920 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13925 hard_links="nottested"
13926 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13927 # do not overwrite the value of need_locks provided by the user
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13929 $as_echo_n "checking if we can lock with hard links... " >&6; }
13930 hard_links=yes
13931 $RM conftest*
13932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13933 touch conftest.a
13934 ln conftest.a conftest.b 2>&5 || hard_links=no
13935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13937 $as_echo "$hard_links" >&6; }
13938 if test "$hard_links" = no; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13940 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13941 need_locks=warn
13943 else
13944 need_locks=no
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13950 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13952 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13953 case $host_os in
13954 aix[4-9]*)
13955 # If we're using GNU nm, then we don't want the "-C" option.
13956 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13957 # Also, AIX nm treats weak defined symbols like other global defined
13958 # symbols, whereas GNU nm marks them as "W".
13959 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13960 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13961 else
13962 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13965 pw32*)
13966 export_symbols_cmds_CXX="$ltdll_cmds"
13968 cygwin* | mingw* | cegcc*)
13969 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13972 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13974 esac
13975 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13978 $as_echo "$ld_shlibs_CXX" >&6; }
13979 test "$ld_shlibs_CXX" = no && can_build_shared=no
13981 with_gnu_ld_CXX=$with_gnu_ld
13989 # Do we need to explicitly link libc?
13991 case "x$archive_cmds_need_lc_CXX" in
13992 x|xyes)
13993 # Assume -lc should be added
13994 archive_cmds_need_lc_CXX=yes
13996 if test "$enable_shared" = yes && test "$GCC" = yes; then
13997 case $archive_cmds_CXX in
13998 *'~'*)
13999 # FIXME: we may have to deal with multi-command sequences.
14001 '$CC '*)
14002 # Test whether the compiler implicitly links with -lc since on some
14003 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14004 # to ld, don't add -lc before -lgcc.
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14006 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14007 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010 $RM conftest*
14011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14014 (eval $ac_compile) 2>&5
14015 ac_status=$?
14016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14017 test $ac_status = 0; } 2>conftest.err; then
14018 soname=conftest
14019 lib=conftest
14020 libobjs=conftest.$ac_objext
14021 deplibs=
14022 wl=$lt_prog_compiler_wl_CXX
14023 pic_flag=$lt_prog_compiler_pic_CXX
14024 compiler_flags=-v
14025 linker_flags=-v
14026 verstring=
14027 output_objdir=.
14028 libname=conftest
14029 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14030 allow_undefined_flag_CXX=
14031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14032 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14033 ac_status=$?
14034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035 test $ac_status = 0; }
14036 then
14037 lt_cv_archive_cmds_need_lc_CXX=no
14038 else
14039 lt_cv_archive_cmds_need_lc_CXX=yes
14041 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14042 else
14043 cat conftest.err 1>&5
14045 $RM conftest*
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14049 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14050 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14052 esac
14055 esac
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14121 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14123 library_names_spec=
14124 libname_spec='lib$name'
14125 soname_spec=
14126 shrext_cmds=".so"
14127 postinstall_cmds=
14128 postuninstall_cmds=
14129 finish_cmds=
14130 finish_eval=
14131 shlibpath_var=
14132 shlibpath_overrides_runpath=unknown
14133 version_type=none
14134 dynamic_linker="$host_os ld.so"
14135 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14136 need_lib_prefix=unknown
14137 hardcode_into_libs=no
14139 # when you set need_version to no, make sure it does not cause -set_version
14140 # flags to be left without arguments
14141 need_version=unknown
14143 case $host_os in
14144 aix3*)
14145 version_type=linux
14146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14147 shlibpath_var=LIBPATH
14149 # AIX 3 has no versioning support, so we append a major version to the name.
14150 soname_spec='${libname}${release}${shared_ext}$major'
14153 aix[4-9]*)
14154 version_type=linux
14155 need_lib_prefix=no
14156 need_version=no
14157 hardcode_into_libs=yes
14158 if test "$host_cpu" = ia64; then
14159 # AIX 5 supports IA64
14160 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14161 shlibpath_var=LD_LIBRARY_PATH
14162 else
14163 # With GCC up to 2.95.x, collect2 would create an import file
14164 # for dependence libraries. The import file would start with
14165 # the line `#! .'. This would cause the generated library to
14166 # depend on `.', always an invalid library. This was fixed in
14167 # development snapshots of GCC prior to 3.0.
14168 case $host_os in
14169 aix4 | aix4.[01] | aix4.[01].*)
14170 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14171 echo ' yes '
14172 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14174 else
14175 can_build_shared=no
14178 esac
14179 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14180 # soname into executable. Probably we can add versioning support to
14181 # collect2, so additional links can be useful in future.
14182 if test "$aix_use_runtimelinking" = yes; then
14183 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14184 # instead of lib<name>.a to let people know that these are not
14185 # typical AIX shared libraries.
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187 else
14188 # We preserve .a as extension for shared libraries through AIX4.2
14189 # and later when we are not doing run time linking.
14190 library_names_spec='${libname}${release}.a $libname.a'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14193 shlibpath_var=LIBPATH
14197 amigaos*)
14198 case $host_cpu in
14199 powerpc)
14200 # Since July 2007 AmigaOS4 officially supports .so libraries.
14201 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14204 m68k)
14205 library_names_spec='$libname.ixlibrary $libname.a'
14206 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14207 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14209 esac
14212 beos*)
14213 library_names_spec='${libname}${shared_ext}'
14214 dynamic_linker="$host_os ld.so"
14215 shlibpath_var=LIBRARY_PATH
14218 bsdi[45]*)
14219 version_type=linux
14220 need_version=no
14221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14222 soname_spec='${libname}${release}${shared_ext}$major'
14223 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14224 shlibpath_var=LD_LIBRARY_PATH
14225 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14226 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14227 # the default ld.so.conf also contains /usr/contrib/lib and
14228 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14229 # libtool to hard-code these into programs
14232 cygwin* | mingw* | pw32* | cegcc*)
14233 version_type=windows
14234 shrext_cmds=".dll"
14235 need_version=no
14236 need_lib_prefix=no
14238 case $GCC,$host_os in
14239 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14240 library_names_spec='$libname.dll.a'
14241 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14242 postinstall_cmds='base_file=`basename \${file}`~
14243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14244 dldir=$destdir/`dirname \$dlpath`~
14245 test -d \$dldir || mkdir -p \$dldir~
14246 $install_prog $dir/$dlname \$dldir/$dlname~
14247 chmod a+x \$dldir/$dlname~
14248 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14249 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14252 dlpath=$dir/\$dldll~
14253 $RM \$dlpath'
14254 shlibpath_overrides_runpath=yes
14256 case $host_os in
14257 cygwin*)
14258 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14259 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14262 mingw* | cegcc*)
14263 # MinGW DLLs use traditional 'lib' prefix
14264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14266 pw32*)
14267 # pw32 DLLs use 'pw' prefix rather than 'lib'
14268 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14270 esac
14274 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14276 esac
14277 dynamic_linker='Win32 ld.exe'
14278 # FIXME: first we should search . and the directory the executable is in
14279 shlibpath_var=PATH
14282 darwin* | rhapsody*)
14283 dynamic_linker="$host_os dyld"
14284 version_type=darwin
14285 need_lib_prefix=no
14286 need_version=no
14287 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14288 soname_spec='${libname}${release}${major}$shared_ext'
14289 shlibpath_overrides_runpath=yes
14290 shlibpath_var=DYLD_LIBRARY_PATH
14291 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14293 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14296 dgux*)
14297 version_type=linux
14298 need_lib_prefix=no
14299 need_version=no
14300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14301 soname_spec='${libname}${release}${shared_ext}$major'
14302 shlibpath_var=LD_LIBRARY_PATH
14305 freebsd* | dragonfly*)
14306 # DragonFly does not have aout. When/if they implement a new
14307 # versioning mechanism, adjust this.
14308 if test -x /usr/bin/objformat; then
14309 objformat=`/usr/bin/objformat`
14310 else
14311 case $host_os in
14312 freebsd[23].*) objformat=aout ;;
14313 *) objformat=elf ;;
14314 esac
14316 version_type=freebsd-$objformat
14317 case $version_type in
14318 freebsd-elf*)
14319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14320 need_version=no
14321 need_lib_prefix=no
14323 freebsd-*)
14324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14325 need_version=yes
14327 esac
14328 shlibpath_var=LD_LIBRARY_PATH
14329 case $host_os in
14330 freebsd2.*)
14331 shlibpath_overrides_runpath=yes
14333 freebsd3.[01]* | freebsdelf3.[01]*)
14334 shlibpath_overrides_runpath=yes
14335 hardcode_into_libs=yes
14337 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14338 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14339 shlibpath_overrides_runpath=no
14340 hardcode_into_libs=yes
14342 *) # from 4.6 on, and DragonFly
14343 shlibpath_overrides_runpath=yes
14344 hardcode_into_libs=yes
14346 esac
14349 haiku*)
14350 version_type=linux
14351 need_lib_prefix=no
14352 need_version=no
14353 dynamic_linker="$host_os runtime_loader"
14354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14355 soname_spec='${libname}${release}${shared_ext}$major'
14356 shlibpath_var=LIBRARY_PATH
14357 shlibpath_overrides_runpath=yes
14358 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14359 hardcode_into_libs=yes
14362 hpux9* | hpux10* | hpux11*)
14363 # Give a soname corresponding to the major version so that dld.sl refuses to
14364 # link against other versions.
14365 version_type=sunos
14366 need_lib_prefix=no
14367 need_version=no
14368 case $host_cpu in
14369 ia64*)
14370 shrext_cmds='.so'
14371 hardcode_into_libs=yes
14372 dynamic_linker="$host_os dld.so"
14373 shlibpath_var=LD_LIBRARY_PATH
14374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 if test "X$HPUX_IA64_MODE" = X32; then
14378 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14379 else
14380 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14384 hppa*64*)
14385 shrext_cmds='.sl'
14386 hardcode_into_libs=yes
14387 dynamic_linker="$host_os dld.sl"
14388 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391 soname_spec='${libname}${release}${shared_ext}$major'
14392 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14396 shrext_cmds='.sl'
14397 dynamic_linker="$host_os dld.sl"
14398 shlibpath_var=SHLIB_PATH
14399 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401 soname_spec='${libname}${release}${shared_ext}$major'
14403 esac
14404 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14405 postinstall_cmds='chmod 555 $lib'
14406 # or fails outright, so override atomically:
14407 install_override_mode=555
14410 interix[3-9]*)
14411 version_type=linux
14412 need_lib_prefix=no
14413 need_version=no
14414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14415 soname_spec='${libname}${release}${shared_ext}$major'
14416 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14417 shlibpath_var=LD_LIBRARY_PATH
14418 shlibpath_overrides_runpath=no
14419 hardcode_into_libs=yes
14422 irix5* | irix6* | nonstopux*)
14423 case $host_os in
14424 nonstopux*) version_type=nonstopux ;;
14426 if test "$lt_cv_prog_gnu_ld" = yes; then
14427 version_type=linux
14428 else
14429 version_type=irix
14430 fi ;;
14431 esac
14432 need_lib_prefix=no
14433 need_version=no
14434 soname_spec='${libname}${release}${shared_ext}$major'
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14436 case $host_os in
14437 irix5* | nonstopux*)
14438 libsuff= shlibsuff=
14441 case $LD in # libtool.m4 will add one of these switches to LD
14442 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14443 libsuff= shlibsuff= libmagic=32-bit;;
14444 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14445 libsuff=32 shlibsuff=N32 libmagic=N32;;
14446 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14447 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14448 *) libsuff= shlibsuff= libmagic=never-match;;
14449 esac
14451 esac
14452 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14453 shlibpath_overrides_runpath=no
14454 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14455 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14456 hardcode_into_libs=yes
14459 # No shared lib support for Linux oldld, aout, or coff.
14460 linux*oldld* | linux*aout* | linux*coff*)
14461 dynamic_linker=no
14464 # This must be Linux ELF.
14466 # uclinux* changes (here and below) have been submitted to the libtool
14467 # project, but have not yet been accepted: they are GCC-local changes
14468 # for the time being. (See
14469 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14470 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14471 version_type=linux
14472 need_lib_prefix=no
14473 need_version=no
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14477 shlibpath_var=LD_LIBRARY_PATH
14478 shlibpath_overrides_runpath=no
14480 # Some binutils ld are patched to set DT_RUNPATH
14481 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14482 $as_echo_n "(cached) " >&6
14483 else
14484 lt_cv_shlibpath_overrides_runpath=no
14485 save_LDFLAGS=$LDFLAGS
14486 save_libdir=$libdir
14487 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14488 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14493 main ()
14497 return 0;
14499 _ACEOF
14500 if ac_fn_cxx_try_link "$LINENO"; then :
14501 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14502 lt_cv_shlibpath_overrides_runpath=yes
14505 rm -f core conftest.err conftest.$ac_objext \
14506 conftest$ac_exeext conftest.$ac_ext
14507 LDFLAGS=$save_LDFLAGS
14508 libdir=$save_libdir
14512 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14514 # This implies no fast_install, which is unacceptable.
14515 # Some rework will be needed to allow for fast_install
14516 # before this can be enabled.
14517 hardcode_into_libs=yes
14519 # Append ld.so.conf contents to the search path
14520 if test -f /etc/ld.so.conf; then
14521 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14522 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14525 # We used to test for /lib/ld.so.1 and disable shared libraries on
14526 # powerpc, because MkLinux only supported shared libraries with the
14527 # GNU dynamic linker. Since this was broken with cross compilers,
14528 # most powerpc-linux boxes support dynamic linking these days and
14529 # people can always --disable-shared, the test was removed, and we
14530 # assume the GNU/Linux dynamic linker is in use.
14531 dynamic_linker='GNU/Linux ld.so'
14534 netbsd*)
14535 version_type=sunos
14536 need_lib_prefix=no
14537 need_version=no
14538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14541 dynamic_linker='NetBSD (a.out) ld.so'
14542 else
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14544 soname_spec='${libname}${release}${shared_ext}$major'
14545 dynamic_linker='NetBSD ld.elf_so'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath=yes
14549 hardcode_into_libs=yes
14552 newsos6)
14553 version_type=linux
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555 shlibpath_var=LD_LIBRARY_PATH
14556 shlibpath_overrides_runpath=yes
14559 *nto* | *qnx*)
14560 version_type=qnx
14561 need_lib_prefix=no
14562 need_version=no
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 shlibpath_var=LD_LIBRARY_PATH
14566 shlibpath_overrides_runpath=no
14567 hardcode_into_libs=yes
14568 dynamic_linker='ldqnx.so'
14571 openbsd*)
14572 version_type=sunos
14573 sys_lib_dlsearch_path_spec="/usr/lib"
14574 need_lib_prefix=no
14575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14576 case $host_os in
14577 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14578 *) need_version=no ;;
14579 esac
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14582 shlibpath_var=LD_LIBRARY_PATH
14583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14584 case $host_os in
14585 openbsd2.[89] | openbsd2.[89].*)
14586 shlibpath_overrides_runpath=no
14589 shlibpath_overrides_runpath=yes
14591 esac
14592 else
14593 shlibpath_overrides_runpath=yes
14597 os2*)
14598 libname_spec='$name'
14599 shrext_cmds=".dll"
14600 need_lib_prefix=no
14601 library_names_spec='$libname${shared_ext} $libname.a'
14602 dynamic_linker='OS/2 ld.exe'
14603 shlibpath_var=LIBPATH
14606 osf3* | osf4* | osf5*)
14607 version_type=osf
14608 need_lib_prefix=no
14609 need_version=no
14610 soname_spec='${libname}${release}${shared_ext}$major'
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14617 rdos*)
14618 dynamic_linker=no
14621 solaris*)
14622 version_type=linux
14623 need_lib_prefix=no
14624 need_version=no
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 soname_spec='${libname}${release}${shared_ext}$major'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 shlibpath_overrides_runpath=yes
14629 hardcode_into_libs=yes
14630 # ldd complains unless libraries are executable
14631 postinstall_cmds='chmod +x $lib'
14634 sunos4*)
14635 version_type=sunos
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14637 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath=yes
14640 if test "$with_gnu_ld" = yes; then
14641 need_lib_prefix=no
14643 need_version=yes
14646 sysv4 | sysv4.3*)
14647 version_type=linux
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 shlibpath_var=LD_LIBRARY_PATH
14651 case $host_vendor in
14652 sni)
14653 shlibpath_overrides_runpath=no
14654 need_lib_prefix=no
14655 runpath_var=LD_RUN_PATH
14657 siemens)
14658 need_lib_prefix=no
14660 motorola)
14661 need_lib_prefix=no
14662 need_version=no
14663 shlibpath_overrides_runpath=no
14664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14666 esac
14669 sysv4*MP*)
14670 if test -d /usr/nec ;then
14671 version_type=linux
14672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14673 soname_spec='$libname${shared_ext}.$major'
14674 shlibpath_var=LD_LIBRARY_PATH
14678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14679 version_type=freebsd-elf
14680 need_lib_prefix=no
14681 need_version=no
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14683 soname_spec='${libname}${release}${shared_ext}$major'
14684 shlibpath_var=LD_LIBRARY_PATH
14685 shlibpath_overrides_runpath=yes
14686 hardcode_into_libs=yes
14687 if test "$with_gnu_ld" = yes; then
14688 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14689 else
14690 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14691 case $host_os in
14692 sco3.2v5*)
14693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14695 esac
14697 sys_lib_dlsearch_path_spec='/usr/lib'
14700 tpf*)
14701 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14702 version_type=linux
14703 need_lib_prefix=no
14704 need_version=no
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 shlibpath_overrides_runpath=no
14708 hardcode_into_libs=yes
14711 uts4*)
14712 version_type=linux
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714 soname_spec='${libname}${release}${shared_ext}$major'
14715 shlibpath_var=LD_LIBRARY_PATH
14718 # Shared libraries for VwWorks, >= 7 only at this stage
14719 # and (fpic) still incompatible with "large" code models
14720 # in a few configurations. Only for RTP mode in any case,
14721 # and upon explicit request at configure time.
14722 vxworks7*)
14723 dynamic_linker=no
14724 case ${with_multisubdir}-${enable_shared} in
14725 *large*)
14727 *mrtp*-yes)
14728 version_type=linux
14729 need_lib_prefix=no
14730 need_version=no
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732 soname_spec='${libname}${release}${shared_ext}$major'
14733 dynamic_linker="$host_os module_loader"
14735 esac
14738 dynamic_linker=no
14740 esac
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14742 $as_echo "$dynamic_linker" >&6; }
14743 test "$dynamic_linker" = no && can_build_shared=no
14745 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14746 if test "$GCC" = yes; then
14747 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14750 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14751 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14753 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14754 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14795 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14796 hardcode_action_CXX=
14797 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14798 test -n "$runpath_var_CXX" ||
14799 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14801 # We can hardcode non-existent directories.
14802 if test "$hardcode_direct_CXX" != no &&
14803 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14804 # have to relink, otherwise we might link with an installed library
14805 # when we should be linking with a yet-to-be-installed one
14806 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14807 test "$hardcode_minus_L_CXX" != no; then
14808 # Linking always hardcodes the temporary library directory.
14809 hardcode_action_CXX=relink
14810 else
14811 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14812 hardcode_action_CXX=immediate
14814 else
14815 # We cannot hardcode anything, or else we can only hardcode existing
14816 # directories.
14817 hardcode_action_CXX=unsupported
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14820 $as_echo "$hardcode_action_CXX" >&6; }
14822 if test "$hardcode_action_CXX" = relink ||
14823 test "$inherit_rpath_CXX" = yes; then
14824 # Fast installation is not supported
14825 enable_fast_install=no
14826 elif test "$shlibpath_overrides_runpath" = yes ||
14827 test "$enable_shared" = no; then
14828 # Fast installation is not necessary
14829 enable_fast_install=needless
14838 fi # test -n "$compiler"
14840 CC=$lt_save_CC
14841 LDCXX=$LD
14842 LD=$lt_save_LD
14843 GCC=$lt_save_GCC
14844 with_gnu_ld=$lt_save_with_gnu_ld
14845 lt_cv_path_LDCXX=$lt_cv_path_LD
14846 lt_cv_path_LD=$lt_save_path_LD
14847 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14848 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14849 fi # test "$_lt_caught_CXX_error" != yes
14851 ac_ext=c
14852 ac_cpp='$CPP $CPPFLAGS'
14853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14869 ac_config_commands="$ac_config_commands libtool"
14874 # Only expand once:
14877 # ... and we need it soon, since it is used by some of the
14878 # link tests in the configure script.
14879 : ${CONFIG_LT=./config.lt}
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14881 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
14882 as_write_fail=0
14883 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14884 #! $SHELL
14885 # Generated by $as_me.
14886 # Run this file to recreate a libtool stub with the current configuration.
14887 SHELL=\${CONFIG_SHELL-$SHELL}
14888 export SHELL
14889 _ASEOF
14890 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
14891 ## -------------------- ##
14892 ## M4sh Initialization. ##
14893 ## -------------------- ##
14895 # Be more Bourne compatible
14896 DUALCASE=1; export DUALCASE # for MKS sh
14897 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14898 emulate sh
14899 NULLCMD=:
14900 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14901 # is contrary to our usage. Disable this feature.
14902 alias -g '${1+"$@"}'='"$@"'
14903 setopt NO_GLOB_SUBST
14904 else
14905 case `(set -o) 2>/dev/null` in #(
14906 *posix*) :
14907 set -o posix ;; #(
14908 *) :
14910 esac
14914 as_nl='
14916 export as_nl
14917 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14918 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14921 # Prefer a ksh shell builtin over an external printf program on Solaris,
14922 # but without wasting forks for bash or zsh.
14923 if test -z "$BASH_VERSION$ZSH_VERSION" \
14924 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14925 as_echo='print -r --'
14926 as_echo_n='print -rn --'
14927 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14928 as_echo='printf %s\n'
14929 as_echo_n='printf %s'
14930 else
14931 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14932 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14933 as_echo_n='/usr/ucb/echo -n'
14934 else
14935 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14936 as_echo_n_body='eval
14937 arg=$1;
14938 case $arg in #(
14939 *"$as_nl"*)
14940 expr "X$arg" : "X\\(.*\\)$as_nl";
14941 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14942 esac;
14943 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14945 export as_echo_n_body
14946 as_echo_n='sh -c $as_echo_n_body as_echo'
14948 export as_echo_body
14949 as_echo='sh -c $as_echo_body as_echo'
14952 # The user is always right.
14953 if test "${PATH_SEPARATOR+set}" != set; then
14954 PATH_SEPARATOR=:
14955 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14956 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14957 PATH_SEPARATOR=';'
14962 # IFS
14963 # We need space, tab and new line, in precisely that order. Quoting is
14964 # there to prevent editors from complaining about space-tab.
14965 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14966 # splitting by setting IFS to empty value.)
14967 IFS=" "" $as_nl"
14969 # Find who we are. Look in the path if we contain no directory separator.
14970 as_myself=
14971 case $0 in #((
14972 *[\\/]* ) as_myself=$0 ;;
14973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14974 for as_dir in $PATH
14976 IFS=$as_save_IFS
14977 test -z "$as_dir" && as_dir=.
14978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14979 done
14980 IFS=$as_save_IFS
14983 esac
14984 # We did not find ourselves, most probably we were run as `sh COMMAND'
14985 # in which case we are not to be found in the path.
14986 if test "x$as_myself" = x; then
14987 as_myself=$0
14989 if test ! -f "$as_myself"; then
14990 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14991 exit 1
14994 # Unset variables that we do not need and which cause bugs (e.g. in
14995 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14996 # suppresses any "Segmentation fault" message there. '((' could
14997 # trigger a bug in pdksh 5.2.14.
14998 for as_var in BASH_ENV ENV MAIL MAILPATH
14999 do eval test x\${$as_var+set} = xset \
15000 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15001 done
15002 PS1='$ '
15003 PS2='> '
15004 PS4='+ '
15006 # NLS nuisances.
15007 LC_ALL=C
15008 export LC_ALL
15009 LANGUAGE=C
15010 export LANGUAGE
15012 # CDPATH.
15013 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15016 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15017 # ----------------------------------------
15018 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15019 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15020 # script with STATUS, using 1 if that was 0.
15021 as_fn_error ()
15023 as_status=$1; test $as_status -eq 0 && as_status=1
15024 if test "$4"; then
15025 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15026 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15028 $as_echo "$as_me: error: $2" >&2
15029 as_fn_exit $as_status
15030 } # as_fn_error
15033 # as_fn_set_status STATUS
15034 # -----------------------
15035 # Set $? to STATUS, without forking.
15036 as_fn_set_status ()
15038 return $1
15039 } # as_fn_set_status
15041 # as_fn_exit STATUS
15042 # -----------------
15043 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15044 as_fn_exit ()
15046 set +e
15047 as_fn_set_status $1
15048 exit $1
15049 } # as_fn_exit
15051 # as_fn_unset VAR
15052 # ---------------
15053 # Portably unset VAR.
15054 as_fn_unset ()
15056 { eval $1=; unset $1;}
15058 as_unset=as_fn_unset
15059 # as_fn_append VAR VALUE
15060 # ----------------------
15061 # Append the text in VALUE to the end of the definition contained in VAR. Take
15062 # advantage of any shell optimizations that allow amortized linear growth over
15063 # repeated appends, instead of the typical quadratic growth present in naive
15064 # implementations.
15065 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15066 eval 'as_fn_append ()
15068 eval $1+=\$2
15070 else
15071 as_fn_append ()
15073 eval $1=\$$1\$2
15075 fi # as_fn_append
15077 # as_fn_arith ARG...
15078 # ------------------
15079 # Perform arithmetic evaluation on the ARGs, and store the result in the
15080 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15081 # must be portable across $(()) and expr.
15082 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15083 eval 'as_fn_arith ()
15085 as_val=$(( $* ))
15087 else
15088 as_fn_arith ()
15090 as_val=`expr "$@" || test $? -eq 1`
15092 fi # as_fn_arith
15095 if expr a : '\(a\)' >/dev/null 2>&1 &&
15096 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15097 as_expr=expr
15098 else
15099 as_expr=false
15102 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15103 as_basename=basename
15104 else
15105 as_basename=false
15108 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15109 as_dirname=dirname
15110 else
15111 as_dirname=false
15114 as_me=`$as_basename -- "$0" ||
15115 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15116 X"$0" : 'X\(//\)$' \| \
15117 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15118 $as_echo X/"$0" |
15119 sed '/^.*\/\([^/][^/]*\)\/*$/{
15120 s//\1/
15123 /^X\/\(\/\/\)$/{
15124 s//\1/
15127 /^X\/\(\/\).*/{
15128 s//\1/
15131 s/.*/./; q'`
15133 # Avoid depending upon Character Ranges.
15134 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15135 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15136 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15137 as_cr_digits='0123456789'
15138 as_cr_alnum=$as_cr_Letters$as_cr_digits
15140 ECHO_C= ECHO_N= ECHO_T=
15141 case `echo -n x` in #(((((
15142 -n*)
15143 case `echo 'xy\c'` in
15144 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15145 xy) ECHO_C='\c';;
15146 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15147 ECHO_T=' ';;
15148 esac;;
15150 ECHO_N='-n';;
15151 esac
15153 rm -f conf$$ conf$$.exe conf$$.file
15154 if test -d conf$$.dir; then
15155 rm -f conf$$.dir/conf$$.file
15156 else
15157 rm -f conf$$.dir
15158 mkdir conf$$.dir 2>/dev/null
15160 if (echo >conf$$.file) 2>/dev/null; then
15161 if ln -s conf$$.file conf$$ 2>/dev/null; then
15162 as_ln_s='ln -s'
15163 # ... but there are two gotchas:
15164 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15165 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15166 # In both cases, we have to default to `cp -pR'.
15167 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15168 as_ln_s='cp -pR'
15169 elif ln conf$$.file conf$$ 2>/dev/null; then
15170 as_ln_s=ln
15171 else
15172 as_ln_s='cp -pR'
15174 else
15175 as_ln_s='cp -pR'
15177 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15178 rmdir conf$$.dir 2>/dev/null
15181 # as_fn_mkdir_p
15182 # -------------
15183 # Create "$as_dir" as a directory, including parents if necessary.
15184 as_fn_mkdir_p ()
15187 case $as_dir in #(
15188 -*) as_dir=./$as_dir;;
15189 esac
15190 test -d "$as_dir" || eval $as_mkdir_p || {
15191 as_dirs=
15192 while :; do
15193 case $as_dir in #(
15194 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15195 *) as_qdir=$as_dir;;
15196 esac
15197 as_dirs="'$as_qdir' $as_dirs"
15198 as_dir=`$as_dirname -- "$as_dir" ||
15199 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15200 X"$as_dir" : 'X\(//\)[^/]' \| \
15201 X"$as_dir" : 'X\(//\)$' \| \
15202 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15203 $as_echo X"$as_dir" |
15204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15205 s//\1/
15208 /^X\(\/\/\)[^/].*/{
15209 s//\1/
15212 /^X\(\/\/\)$/{
15213 s//\1/
15216 /^X\(\/\).*/{
15217 s//\1/
15220 s/.*/./; q'`
15221 test -d "$as_dir" && break
15222 done
15223 test -z "$as_dirs" || eval "mkdir $as_dirs"
15224 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15227 } # as_fn_mkdir_p
15228 if mkdir -p . 2>/dev/null; then
15229 as_mkdir_p='mkdir -p "$as_dir"'
15230 else
15231 test -d ./-p && rmdir ./-p
15232 as_mkdir_p=false
15236 # as_fn_executable_p FILE
15237 # -----------------------
15238 # Test if FILE is an executable regular file.
15239 as_fn_executable_p ()
15241 test -f "$1" && test -x "$1"
15242 } # as_fn_executable_p
15243 as_test_x='test -x'
15244 as_executable_p=as_fn_executable_p
15246 # Sed expression to map a string onto a valid CPP name.
15247 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15249 # Sed expression to map a string onto a valid variable name.
15250 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15253 exec 6>&1
15254 ## --------------------------------- ##
15255 ## Main body of "$CONFIG_LT" script. ##
15256 ## --------------------------------- ##
15257 _ASEOF
15258 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
15260 cat >>"$CONFIG_LT" <<\_LTEOF
15261 lt_cl_silent=false
15262 exec 5>>config.log
15264 echo
15265 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15266 ## Running $as_me. ##
15267 _ASBOX
15268 } >&5
15270 lt_cl_help="\
15271 \`$as_me' creates a local libtool stub from the current configuration,
15272 for use in further configure time tests before the real libtool is
15273 generated.
15275 Usage: $0 [OPTIONS]
15277 -h, --help print this help, then exit
15278 -V, --version print version number, then exit
15279 -q, --quiet do not print progress messages
15280 -d, --debug don't remove temporary files
15282 Report bugs to <bug-libtool@gnu.org>."
15284 lt_cl_version="\
15285 config.lt
15286 configured by $0, generated by GNU Autoconf 2.69.
15288 Copyright (C) 2009 Free Software Foundation, Inc.
15289 This config.lt script is free software; the Free Software Foundation
15290 gives unlimited permision to copy, distribute and modify it."
15292 while test $# != 0
15294 case $1 in
15295 --version | --v* | -V )
15296 echo "$lt_cl_version"; exit 0 ;;
15297 --help | --h* | -h )
15298 echo "$lt_cl_help"; exit 0 ;;
15299 --debug | --d* | -d )
15300 debug=: ;;
15301 --quiet | --q* | --silent | --s* | -q )
15302 lt_cl_silent=: ;;
15304 -*) as_fn_error $? "unrecognized option: $1
15305 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15307 *) as_fn_error $? "unrecognized argument: $1
15308 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15309 esac
15310 shift
15311 done
15313 if $lt_cl_silent; then
15314 exec 6>/dev/null
15316 _LTEOF
15318 cat >>"$CONFIG_LT" <<_LTEOF
15321 # The HP-UX ksh and POSIX shell print the target directory to stdout
15322 # if CDPATH is set.
15323 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15325 sed_quote_subst='$sed_quote_subst'
15326 double_quote_subst='$double_quote_subst'
15327 delay_variable_subst='$delay_variable_subst'
15328 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15329 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15330 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15331 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15332 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15333 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15334 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15335 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15336 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15337 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15338 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15339 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15340 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15341 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15342 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15343 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15344 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15345 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15346 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15347 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15348 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15349 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15350 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15351 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15352 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15353 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15354 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15355 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15356 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15357 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15358 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15359 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15360 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15361 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15362 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15363 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15364 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15365 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15366 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15367 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15368 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15369 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15370 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15371 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15372 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15373 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15374 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15375 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15376 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15377 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15378 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15379 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15380 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15381 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15382 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15383 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15384 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15385 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15386 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15387 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15388 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15389 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15390 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15391 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15392 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15393 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15394 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15395 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15396 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15397 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15398 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15399 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15400 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15401 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15402 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15403 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15404 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15405 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15406 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15407 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15408 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15409 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15410 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15411 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15412 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15413 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15414 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15415 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15416 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15417 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15418 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15419 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15420 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15421 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15422 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15423 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15424 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15425 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15426 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15427 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15428 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15429 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15430 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15431 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15432 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15433 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15434 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15435 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15436 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15437 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15438 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15439 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15440 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15441 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15442 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15443 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15444 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15445 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15446 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15447 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15448 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15449 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15450 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15451 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15452 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15453 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15454 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15455 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15456 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15457 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15458 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15459 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15460 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15461 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15462 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15463 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15464 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15465 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15466 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15467 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15468 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15469 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15470 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15471 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15472 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15473 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15474 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15475 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15476 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15477 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15478 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15479 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15480 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15481 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15482 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15483 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15484 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15485 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15486 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15487 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15488 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15489 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15490 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15491 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15492 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15493 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15494 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15495 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15496 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15497 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15498 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15499 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15500 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15501 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15502 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15504 LTCC='$LTCC'
15505 LTCFLAGS='$LTCFLAGS'
15506 compiler='$compiler_DEFAULT'
15508 # A function that is used when there is no print builtin or printf.
15509 func_fallback_echo ()
15511 eval 'cat <<_LTECHO_EOF
15513 _LTECHO_EOF'
15516 # Quote evaled strings.
15517 for var in SHELL \
15518 ECHO \
15519 SED \
15520 GREP \
15521 EGREP \
15522 FGREP \
15523 LD \
15524 NM \
15525 LN_S \
15526 lt_SP2NL \
15527 lt_NL2SP \
15528 reload_flag \
15529 OBJDUMP \
15530 deplibs_check_method \
15531 file_magic_cmd \
15532 AR \
15533 AR_FLAGS \
15534 STRIP \
15535 RANLIB \
15536 CC \
15537 CFLAGS \
15538 compiler \
15539 lt_cv_sys_global_symbol_pipe \
15540 lt_cv_sys_global_symbol_to_cdecl \
15541 lt_cv_sys_global_symbol_to_c_name_address \
15542 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15543 lt_prog_compiler_no_builtin_flag \
15544 lt_prog_compiler_wl \
15545 lt_prog_compiler_pic \
15546 lt_prog_compiler_static \
15547 lt_cv_prog_compiler_c_o \
15548 need_locks \
15549 DSYMUTIL \
15550 NMEDIT \
15551 LIPO \
15552 OTOOL \
15553 OTOOL64 \
15554 shrext_cmds \
15555 export_dynamic_flag_spec \
15556 whole_archive_flag_spec \
15557 compiler_needs_object \
15558 with_gnu_ld \
15559 allow_undefined_flag \
15560 no_undefined_flag \
15561 hardcode_libdir_flag_spec \
15562 hardcode_libdir_flag_spec_ld \
15563 hardcode_libdir_separator \
15564 fix_srcfile_path \
15565 exclude_expsyms \
15566 include_expsyms \
15567 file_list_spec \
15568 variables_saved_for_relink \
15569 libname_spec \
15570 library_names_spec \
15571 soname_spec \
15572 install_override_mode \
15573 finish_eval \
15574 old_striplib \
15575 striplib \
15576 compiler_lib_search_dirs \
15577 predep_objects \
15578 postdep_objects \
15579 predeps \
15580 postdeps \
15581 compiler_lib_search_path \
15582 LD_CXX \
15583 reload_flag_CXX \
15584 compiler_CXX \
15585 lt_prog_compiler_no_builtin_flag_CXX \
15586 lt_prog_compiler_wl_CXX \
15587 lt_prog_compiler_pic_CXX \
15588 lt_prog_compiler_static_CXX \
15589 lt_cv_prog_compiler_c_o_CXX \
15590 export_dynamic_flag_spec_CXX \
15591 whole_archive_flag_spec_CXX \
15592 compiler_needs_object_CXX \
15593 with_gnu_ld_CXX \
15594 allow_undefined_flag_CXX \
15595 no_undefined_flag_CXX \
15596 hardcode_libdir_flag_spec_CXX \
15597 hardcode_libdir_flag_spec_ld_CXX \
15598 hardcode_libdir_separator_CXX \
15599 fix_srcfile_path_CXX \
15600 exclude_expsyms_CXX \
15601 include_expsyms_CXX \
15602 file_list_spec_CXX \
15603 compiler_lib_search_dirs_CXX \
15604 predep_objects_CXX \
15605 postdep_objects_CXX \
15606 predeps_CXX \
15607 postdeps_CXX \
15608 compiler_lib_search_path_CXX; do
15609 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15610 *[\\\\\\\`\\"\\\$]*)
15611 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15614 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15616 esac
15617 done
15619 # Double-quote double-evaled strings.
15620 for var in reload_cmds \
15621 old_postinstall_cmds \
15622 old_postuninstall_cmds \
15623 old_archive_cmds \
15624 extract_expsyms_cmds \
15625 old_archive_from_new_cmds \
15626 old_archive_from_expsyms_cmds \
15627 archive_cmds \
15628 archive_expsym_cmds \
15629 module_cmds \
15630 module_expsym_cmds \
15631 export_symbols_cmds \
15632 prelink_cmds \
15633 postinstall_cmds \
15634 postuninstall_cmds \
15635 finish_cmds \
15636 sys_lib_search_path_spec \
15637 sys_lib_dlsearch_path_spec \
15638 reload_cmds_CXX \
15639 old_archive_cmds_CXX \
15640 old_archive_from_new_cmds_CXX \
15641 old_archive_from_expsyms_cmds_CXX \
15642 archive_cmds_CXX \
15643 archive_expsym_cmds_CXX \
15644 module_cmds_CXX \
15645 module_expsym_cmds_CXX \
15646 export_symbols_cmds_CXX \
15647 prelink_cmds_CXX; do
15648 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15649 *[\\\\\\\`\\"\\\$]*)
15650 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15653 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15655 esac
15656 done
15658 ac_aux_dir='$ac_aux_dir'
15659 xsi_shell='$xsi_shell'
15660 lt_shell_append='$lt_shell_append'
15662 # See if we are running on zsh, and set the options which allow our
15663 # commands through without removal of \ escapes INIT.
15664 if test -n "\${ZSH_VERSION+set}" ; then
15665 setopt NO_GLOB_SUBST
15669 PACKAGE='$PACKAGE'
15670 VERSION='$VERSION'
15671 TIMESTAMP='$TIMESTAMP'
15672 RM='$RM'
15673 ofile='$ofile'
15679 _LTEOF
15681 cat >>"$CONFIG_LT" <<\_LTEOF
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15683 $as_echo "$as_me: creating $ofile" >&6;}
15686 # See if we are running on zsh, and set the options which allow our
15687 # commands through without removal of \ escapes.
15688 if test -n "${ZSH_VERSION+set}" ; then
15689 setopt NO_GLOB_SUBST
15692 cfgfile="${ofile}T"
15693 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15694 $RM "$cfgfile"
15696 cat <<_LT_EOF >> "$cfgfile"
15697 #! $SHELL
15699 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15700 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15702 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15704 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15705 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15706 # Written by Gordon Matzigkeit, 1996
15708 # This file is part of GNU Libtool.
15710 # GNU Libtool is free software; you can redistribute it and/or
15711 # modify it under the terms of the GNU General Public License as
15712 # published by the Free Software Foundation; either version 2 of
15713 # the License, or (at your option) any later version.
15715 # As a special exception to the GNU General Public License,
15716 # if you distribute this file as part of a program or library that
15717 # is built using GNU Libtool, you may include this file under the
15718 # same distribution terms that you use for the rest of that program.
15720 # GNU Libtool is distributed in the hope that it will be useful,
15721 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15722 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15723 # GNU General Public License for more details.
15725 # You should have received a copy of the GNU General Public License
15726 # along with GNU Libtool; see the file COPYING. If not, a copy
15727 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15728 # obtained by writing to the Free Software Foundation, Inc.,
15729 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15732 # The names of the tagged configurations supported by this script.
15733 available_tags="CXX "
15735 # ### BEGIN LIBTOOL CONFIG
15737 # Which release of libtool.m4 was used?
15738 macro_version=$macro_version
15739 macro_revision=$macro_revision
15741 # Whether or not to build shared libraries.
15742 build_libtool_libs=$enable_shared
15744 # Whether or not to build static libraries.
15745 build_old_libs=$enable_static
15747 # What type of objects to build.
15748 pic_mode=$pic_mode
15750 # Whether or not to optimize for fast installation.
15751 fast_install=$enable_fast_install
15753 # Shell to use when invoking shell scripts.
15754 SHELL=$lt_SHELL
15756 # An echo program that protects backslashes.
15757 ECHO=$lt_ECHO
15759 # The host system.
15760 host_alias=$host_alias
15761 host=$host
15762 host_os=$host_os
15764 # The build system.
15765 build_alias=$build_alias
15766 build=$build
15767 build_os=$build_os
15769 # A sed program that does not truncate output.
15770 SED=$lt_SED
15772 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15773 Xsed="\$SED -e 1s/^X//"
15775 # A grep program that handles long lines.
15776 GREP=$lt_GREP
15778 # An ERE matcher.
15779 EGREP=$lt_EGREP
15781 # A literal string matcher.
15782 FGREP=$lt_FGREP
15784 # A BSD- or MS-compatible name lister.
15785 NM=$lt_NM
15787 # Whether we need soft or hard links.
15788 LN_S=$lt_LN_S
15790 # What is the maximum length of a command?
15791 max_cmd_len=$max_cmd_len
15793 # Object file suffix (normally "o").
15794 objext=$ac_objext
15796 # Executable file suffix (normally "").
15797 exeext=$exeext
15799 # whether the shell understands "unset".
15800 lt_unset=$lt_unset
15802 # turn spaces into newlines.
15803 SP2NL=$lt_lt_SP2NL
15805 # turn newlines into spaces.
15806 NL2SP=$lt_lt_NL2SP
15808 # An object symbol dumper.
15809 OBJDUMP=$lt_OBJDUMP
15811 # Method to check whether dependent libraries are shared objects.
15812 deplibs_check_method=$lt_deplibs_check_method
15814 # Command to use when deplibs_check_method == "file_magic".
15815 file_magic_cmd=$lt_file_magic_cmd
15817 # The archiver.
15818 AR=$lt_AR
15819 AR_FLAGS=$lt_AR_FLAGS
15821 # A symbol stripping program.
15822 STRIP=$lt_STRIP
15824 # Commands used to install an old-style archive.
15825 RANLIB=$lt_RANLIB
15826 old_postinstall_cmds=$lt_old_postinstall_cmds
15827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15829 # Whether to use a lock for old archive extraction.
15830 lock_old_archive_extraction=$lock_old_archive_extraction
15832 # A C compiler.
15833 LTCC=$lt_CC
15835 # LTCC compiler flags.
15836 LTCFLAGS=$lt_CFLAGS
15838 # Take the output of nm and produce a listing of raw symbols and C names.
15839 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15841 # Transform the output of nm in a proper C declaration.
15842 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15844 # Transform the output of nm in a C name address pair.
15845 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15847 # Transform the output of nm in a C name address pair when lib prefix is needed.
15848 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15850 # The name of the directory that contains temporary libtool files.
15851 objdir=$objdir
15853 # Used to examine libraries when file_magic_cmd begins with "file".
15854 MAGIC_CMD=$MAGIC_CMD
15856 # Must we lock files when doing compilation?
15857 need_locks=$lt_need_locks
15859 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15860 DSYMUTIL=$lt_DSYMUTIL
15862 # Tool to change global to local symbols on Mac OS X.
15863 NMEDIT=$lt_NMEDIT
15865 # Tool to manipulate fat objects and archives on Mac OS X.
15866 LIPO=$lt_LIPO
15868 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15869 OTOOL=$lt_OTOOL
15871 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15872 OTOOL64=$lt_OTOOL64
15874 # Old archive suffix (normally "a").
15875 libext=$libext
15877 # Shared library suffix (normally ".so").
15878 shrext_cmds=$lt_shrext_cmds
15880 # The commands to extract the exported symbol list from a shared archive.
15881 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15883 # Variables whose values should be saved in libtool wrapper scripts and
15884 # restored at link time.
15885 variables_saved_for_relink=$lt_variables_saved_for_relink
15887 # Do we need the "lib" prefix for modules?
15888 need_lib_prefix=$need_lib_prefix
15890 # Do we need a version for libraries?
15891 need_version=$need_version
15893 # Library versioning type.
15894 version_type=$version_type
15896 # Shared library runtime path variable.
15897 runpath_var=$runpath_var
15899 # Shared library path variable.
15900 shlibpath_var=$shlibpath_var
15902 # Is shlibpath searched before the hard-coded library search path?
15903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15905 # Format of library name prefix.
15906 libname_spec=$lt_libname_spec
15908 # List of archive names. First name is the real one, the rest are links.
15909 # The last name is the one that the linker finds with -lNAME
15910 library_names_spec=$lt_library_names_spec
15912 # The coded name of the library, if different from the real name.
15913 soname_spec=$lt_soname_spec
15915 # Permission mode override for installation of shared libraries.
15916 install_override_mode=$lt_install_override_mode
15918 # Command to use after installation of a shared archive.
15919 postinstall_cmds=$lt_postinstall_cmds
15921 # Command to use after uninstallation of a shared archive.
15922 postuninstall_cmds=$lt_postuninstall_cmds
15924 # Commands used to finish a libtool library installation in a directory.
15925 finish_cmds=$lt_finish_cmds
15927 # As "finish_cmds", except a single script fragment to be evaled but
15928 # not shown.
15929 finish_eval=$lt_finish_eval
15931 # Whether we should hardcode library paths into libraries.
15932 hardcode_into_libs=$hardcode_into_libs
15934 # Compile-time system search path for libraries.
15935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15937 # Run-time system search path for libraries.
15938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15940 # Whether dlopen is supported.
15941 dlopen_support=$enable_dlopen
15943 # Whether dlopen of programs is supported.
15944 dlopen_self=$enable_dlopen_self
15946 # Whether dlopen of statically linked programs is supported.
15947 dlopen_self_static=$enable_dlopen_self_static
15949 # Commands to strip libraries.
15950 old_striplib=$lt_old_striplib
15951 striplib=$lt_striplib
15954 # The linker used to build libraries.
15955 LD=$lt_LD
15957 # How to create reloadable object files.
15958 reload_flag=$lt_reload_flag
15959 reload_cmds=$lt_reload_cmds
15961 # Commands used to build an old-style archive.
15962 old_archive_cmds=$lt_old_archive_cmds
15964 # A language specific compiler.
15965 CC=$lt_compiler
15967 # Is the compiler the GNU compiler?
15968 with_gcc=$GCC
15970 # Compiler flag to turn off builtin functions.
15971 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15973 # How to pass a linker flag through the compiler.
15974 wl=$lt_lt_prog_compiler_wl
15976 # Additional compiler flags for building library objects.
15977 pic_flag=$lt_lt_prog_compiler_pic
15979 # Compiler flag to prevent dynamic linking.
15980 link_static_flag=$lt_lt_prog_compiler_static
15982 # Does compiler simultaneously support -c and -o options?
15983 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15985 # Whether or not to add -lc for building shared libraries.
15986 build_libtool_need_lc=$archive_cmds_need_lc
15988 # Whether or not to disallow shared libs when runtime libs are static.
15989 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15991 # Compiler flag to allow reflexive dlopens.
15992 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15994 # Compiler flag to generate shared objects directly from archives.
15995 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15997 # Whether the compiler copes with passing no objects directly.
15998 compiler_needs_object=$lt_compiler_needs_object
16000 # Create an old-style archive from a shared archive.
16001 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16003 # Create a temporary old-style archive to link instead of a shared archive.
16004 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16006 # Commands used to build a shared archive.
16007 archive_cmds=$lt_archive_cmds
16008 archive_expsym_cmds=$lt_archive_expsym_cmds
16010 # Commands used to build a loadable module if different from building
16011 # a shared archive.
16012 module_cmds=$lt_module_cmds
16013 module_expsym_cmds=$lt_module_expsym_cmds
16015 # Whether we are building with GNU ld or not.
16016 with_gnu_ld=$lt_with_gnu_ld
16018 # Flag that allows shared libraries with undefined symbols to be built.
16019 allow_undefined_flag=$lt_allow_undefined_flag
16021 # Flag that enforces no undefined symbols.
16022 no_undefined_flag=$lt_no_undefined_flag
16024 # Flag to hardcode \$libdir into a binary during linking.
16025 # This must work even if \$libdir does not exist
16026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16028 # If ld is used when linking, flag to hardcode \$libdir into a binary
16029 # during linking. This must work even if \$libdir does not exist.
16030 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16032 # Whether we need a single "-rpath" flag with a separated argument.
16033 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16035 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16036 # DIR into the resulting binary.
16037 hardcode_direct=$hardcode_direct
16039 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16040 # DIR into the resulting binary and the resulting library dependency is
16041 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16042 # library is relocated.
16043 hardcode_direct_absolute=$hardcode_direct_absolute
16045 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16046 # into the resulting binary.
16047 hardcode_minus_L=$hardcode_minus_L
16049 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16050 # into the resulting binary.
16051 hardcode_shlibpath_var=$hardcode_shlibpath_var
16053 # Set to "yes" if building a shared library automatically hardcodes DIR
16054 # into the library and all subsequent libraries and executables linked
16055 # against it.
16056 hardcode_automatic=$hardcode_automatic
16058 # Set to yes if linker adds runtime paths of dependent libraries
16059 # to runtime path list.
16060 inherit_rpath=$inherit_rpath
16062 # Whether libtool must link a program against all its dependency libraries.
16063 link_all_deplibs=$link_all_deplibs
16065 # Fix the shell variable \$srcfile for the compiler.
16066 fix_srcfile_path=$lt_fix_srcfile_path
16068 # Set to "yes" if exported symbols are required.
16069 always_export_symbols=$always_export_symbols
16071 # The commands to list exported symbols.
16072 export_symbols_cmds=$lt_export_symbols_cmds
16074 # Symbols that should not be listed in the preloaded symbols.
16075 exclude_expsyms=$lt_exclude_expsyms
16077 # Symbols that must always be exported.
16078 include_expsyms=$lt_include_expsyms
16080 # Commands necessary for linking programs (against libraries) with templates.
16081 prelink_cmds=$lt_prelink_cmds
16083 # Specify filename containing input files.
16084 file_list_spec=$lt_file_list_spec
16086 # How to hardcode a shared library path into an executable.
16087 hardcode_action=$hardcode_action
16089 # The directories searched by this compiler when creating a shared library.
16090 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16092 # Dependencies to place before and after the objects being linked to
16093 # create a shared library.
16094 predep_objects=$lt_predep_objects
16095 postdep_objects=$lt_postdep_objects
16096 predeps=$lt_predeps
16097 postdeps=$lt_postdeps
16099 # The library search path used internally by the compiler when linking
16100 # a shared library.
16101 compiler_lib_search_path=$lt_compiler_lib_search_path
16103 # ### END LIBTOOL CONFIG
16105 _LT_EOF
16107 case $host_os in
16108 aix3*)
16109 cat <<\_LT_EOF >> "$cfgfile"
16110 # AIX sometimes has problems with the GCC collect2 program. For some
16111 # reason, if we set the COLLECT_NAMES environment variable, the problems
16112 # vanish in a puff of smoke.
16113 if test "X${COLLECT_NAMES+set}" != Xset; then
16114 COLLECT_NAMES=
16115 export COLLECT_NAMES
16117 _LT_EOF
16119 esac
16122 ltmain="$ac_aux_dir/ltmain.sh"
16125 # We use sed instead of cat because bash on DJGPP gets confused if
16126 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16127 # text mode, it properly converts lines to CR/LF. This bash problem
16128 # is reportedly fixed, but why not run on old versions too?
16129 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16130 || (rm -f "$cfgfile"; exit 1)
16132 case $xsi_shell in
16133 yes)
16134 cat << \_LT_EOF >> "$cfgfile"
16136 # func_dirname file append nondir_replacement
16137 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16138 # otherwise set result to NONDIR_REPLACEMENT.
16139 func_dirname ()
16141 case ${1} in
16142 */*) func_dirname_result="${1%/*}${2}" ;;
16143 * ) func_dirname_result="${3}" ;;
16144 esac
16147 # func_basename file
16148 func_basename ()
16150 func_basename_result="${1##*/}"
16153 # func_dirname_and_basename file append nondir_replacement
16154 # perform func_basename and func_dirname in a single function
16155 # call:
16156 # dirname: Compute the dirname of FILE. If nonempty,
16157 # add APPEND to the result, otherwise set result
16158 # to NONDIR_REPLACEMENT.
16159 # value returned in "$func_dirname_result"
16160 # basename: Compute filename of FILE.
16161 # value retuned in "$func_basename_result"
16162 # Implementation must be kept synchronized with func_dirname
16163 # and func_basename. For efficiency, we do not delegate to
16164 # those functions but instead duplicate the functionality here.
16165 func_dirname_and_basename ()
16167 case ${1} in
16168 */*) func_dirname_result="${1%/*}${2}" ;;
16169 * ) func_dirname_result="${3}" ;;
16170 esac
16171 func_basename_result="${1##*/}"
16174 # func_stripname prefix suffix name
16175 # strip PREFIX and SUFFIX off of NAME.
16176 # PREFIX and SUFFIX must not contain globbing or regex special
16177 # characters, hashes, percent signs, but SUFFIX may contain a leading
16178 # dot (in which case that matches only a dot).
16179 func_stripname ()
16181 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16182 # positional parameters, so assign one to ordinary parameter first.
16183 func_stripname_result=${3}
16184 func_stripname_result=${func_stripname_result#"${1}"}
16185 func_stripname_result=${func_stripname_result%"${2}"}
16188 # func_opt_split
16189 func_opt_split ()
16191 func_opt_split_opt=${1%%=*}
16192 func_opt_split_arg=${1#*=}
16195 # func_lo2o object
16196 func_lo2o ()
16198 case ${1} in
16199 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16200 *) func_lo2o_result=${1} ;;
16201 esac
16204 # func_xform libobj-or-source
16205 func_xform ()
16207 func_xform_result=${1%.*}.lo
16210 # func_arith arithmetic-term...
16211 func_arith ()
16213 func_arith_result=$(( $* ))
16216 # func_len string
16217 # STRING may not start with a hyphen.
16218 func_len ()
16220 func_len_result=${#1}
16223 _LT_EOF
16225 *) # Bourne compatible functions.
16226 cat << \_LT_EOF >> "$cfgfile"
16228 # func_dirname file append nondir_replacement
16229 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16230 # otherwise set result to NONDIR_REPLACEMENT.
16231 func_dirname ()
16233 # Extract subdirectory from the argument.
16234 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16235 if test "X$func_dirname_result" = "X${1}"; then
16236 func_dirname_result="${3}"
16237 else
16238 func_dirname_result="$func_dirname_result${2}"
16242 # func_basename file
16243 func_basename ()
16245 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16249 # func_stripname prefix suffix name
16250 # strip PREFIX and SUFFIX off of NAME.
16251 # PREFIX and SUFFIX must not contain globbing or regex special
16252 # characters, hashes, percent signs, but SUFFIX may contain a leading
16253 # dot (in which case that matches only a dot).
16254 # func_strip_suffix prefix name
16255 func_stripname ()
16257 case ${2} in
16258 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16259 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16260 esac
16263 # sed scripts:
16264 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16265 my_sed_long_arg='1s/^-[^=]*=//'
16267 # func_opt_split
16268 func_opt_split ()
16270 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16271 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16274 # func_lo2o object
16275 func_lo2o ()
16277 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16280 # func_xform libobj-or-source
16281 func_xform ()
16283 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16286 # func_arith arithmetic-term...
16287 func_arith ()
16289 func_arith_result=`expr "$@"`
16292 # func_len string
16293 # STRING may not start with a hyphen.
16294 func_len ()
16296 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16299 _LT_EOF
16300 esac
16302 case $lt_shell_append in
16303 yes)
16304 cat << \_LT_EOF >> "$cfgfile"
16306 # func_append var value
16307 # Append VALUE to the end of shell variable VAR.
16308 func_append ()
16310 eval "$1+=\$2"
16312 _LT_EOF
16315 cat << \_LT_EOF >> "$cfgfile"
16317 # func_append var value
16318 # Append VALUE to the end of shell variable VAR.
16319 func_append ()
16321 eval "$1=\$$1\$2"
16324 _LT_EOF
16326 esac
16329 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16330 || (rm -f "$cfgfile"; exit 1)
16332 mv -f "$cfgfile" "$ofile" ||
16333 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16334 chmod +x "$ofile"
16337 cat <<_LT_EOF >> "$ofile"
16339 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16341 # The linker used to build libraries.
16342 LD=$lt_LD_CXX
16344 # How to create reloadable object files.
16345 reload_flag=$lt_reload_flag_CXX
16346 reload_cmds=$lt_reload_cmds_CXX
16348 # Commands used to build an old-style archive.
16349 old_archive_cmds=$lt_old_archive_cmds_CXX
16351 # A language specific compiler.
16352 CC=$lt_compiler_CXX
16354 # Is the compiler the GNU compiler?
16355 with_gcc=$GCC_CXX
16357 # Compiler flag to turn off builtin functions.
16358 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16360 # How to pass a linker flag through the compiler.
16361 wl=$lt_lt_prog_compiler_wl_CXX
16363 # Additional compiler flags for building library objects.
16364 pic_flag=$lt_lt_prog_compiler_pic_CXX
16366 # Compiler flag to prevent dynamic linking.
16367 link_static_flag=$lt_lt_prog_compiler_static_CXX
16369 # Does compiler simultaneously support -c and -o options?
16370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16372 # Whether or not to add -lc for building shared libraries.
16373 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16375 # Whether or not to disallow shared libs when runtime libs are static.
16376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16378 # Compiler flag to allow reflexive dlopens.
16379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16381 # Compiler flag to generate shared objects directly from archives.
16382 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16384 # Whether the compiler copes with passing no objects directly.
16385 compiler_needs_object=$lt_compiler_needs_object_CXX
16387 # Create an old-style archive from a shared archive.
16388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16390 # Create a temporary old-style archive to link instead of a shared archive.
16391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16393 # Commands used to build a shared archive.
16394 archive_cmds=$lt_archive_cmds_CXX
16395 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16397 # Commands used to build a loadable module if different from building
16398 # a shared archive.
16399 module_cmds=$lt_module_cmds_CXX
16400 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16402 # Whether we are building with GNU ld or not.
16403 with_gnu_ld=$lt_with_gnu_ld_CXX
16405 # Flag that allows shared libraries with undefined symbols to be built.
16406 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16408 # Flag that enforces no undefined symbols.
16409 no_undefined_flag=$lt_no_undefined_flag_CXX
16411 # Flag to hardcode \$libdir into a binary during linking.
16412 # This must work even if \$libdir does not exist
16413 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16415 # If ld is used when linking, flag to hardcode \$libdir into a binary
16416 # during linking. This must work even if \$libdir does not exist.
16417 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16419 # Whether we need a single "-rpath" flag with a separated argument.
16420 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16422 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16423 # DIR into the resulting binary.
16424 hardcode_direct=$hardcode_direct_CXX
16426 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16427 # DIR into the resulting binary and the resulting library dependency is
16428 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16429 # library is relocated.
16430 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16432 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16433 # into the resulting binary.
16434 hardcode_minus_L=$hardcode_minus_L_CXX
16436 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16437 # into the resulting binary.
16438 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16440 # Set to "yes" if building a shared library automatically hardcodes DIR
16441 # into the library and all subsequent libraries and executables linked
16442 # against it.
16443 hardcode_automatic=$hardcode_automatic_CXX
16445 # Set to yes if linker adds runtime paths of dependent libraries
16446 # to runtime path list.
16447 inherit_rpath=$inherit_rpath_CXX
16449 # Whether libtool must link a program against all its dependency libraries.
16450 link_all_deplibs=$link_all_deplibs_CXX
16452 # Fix the shell variable \$srcfile for the compiler.
16453 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16455 # Set to "yes" if exported symbols are required.
16456 always_export_symbols=$always_export_symbols_CXX
16458 # The commands to list exported symbols.
16459 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16461 # Symbols that should not be listed in the preloaded symbols.
16462 exclude_expsyms=$lt_exclude_expsyms_CXX
16464 # Symbols that must always be exported.
16465 include_expsyms=$lt_include_expsyms_CXX
16467 # Commands necessary for linking programs (against libraries) with templates.
16468 prelink_cmds=$lt_prelink_cmds_CXX
16470 # Specify filename containing input files.
16471 file_list_spec=$lt_file_list_spec_CXX
16473 # How to hardcode a shared library path into an executable.
16474 hardcode_action=$hardcode_action_CXX
16476 # The directories searched by this compiler when creating a shared library.
16477 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16479 # Dependencies to place before and after the objects being linked to
16480 # create a shared library.
16481 predep_objects=$lt_predep_objects_CXX
16482 postdep_objects=$lt_postdep_objects_CXX
16483 predeps=$lt_predeps_CXX
16484 postdeps=$lt_postdeps_CXX
16486 # The library search path used internally by the compiler when linking
16487 # a shared library.
16488 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16490 # ### END LIBTOOL TAG CONFIG: CXX
16491 _LT_EOF
16494 as_fn_exit 0
16495 _LTEOF
16496 chmod +x "$CONFIG_LT"
16498 # configure is writing to config.log, but config.lt does its own redirection,
16499 # appending to config.log, which fails on DOS, as config.log is still kept
16500 # open by configure. Here we exec the FD to /dev/null, effectively closing
16501 # config.log, so it can be properly (re)opened and appended to by config.lt.
16502 lt_cl_success=:
16503 test "$silent" = yes &&
16504 lt_config_lt_args="$lt_config_lt_args --quiet"
16505 exec 5>/dev/null
16506 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16507 exec 5>>config.log
16508 $lt_cl_success || as_fn_exit 1
16511 # We require a C++17 compiler. Check if one is available, and if
16512 # necessary, set CXX_DIALECT to some -std=xxx switch.
16513 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true
16514 ac_ext=cpp
16515 ac_cpp='$CXXCPP $CPPFLAGS'
16516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16519 CXX_DIALECT=""
16520 ac_success=no
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
16523 $as_echo_n "checking whether $CXX supports C++17 features by default... " >&6; }
16524 if ${ax_cv_cxx_compile_cxx17+:} false; then :
16525 $as_echo_n "(cached) " >&6
16526 else
16527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16528 /* end confdefs.h. */
16531 // If the compiler admits that it is not ready for C++11, why torture it?
16532 // Hopefully, this will speed up the test.
16534 #ifndef __cplusplus
16536 #error "This is not a C++ compiler"
16538 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
16539 // only set it correctly if /Zc:__cplusplus is specified as well as a
16540 // /std:c++NN switch:
16541 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
16542 #elif __cplusplus < 201103L && !defined _MSC_VER
16544 #error "This is not a C++11 compiler"
16546 #else
16548 namespace cxx11
16551 namespace test_static_assert
16554 template <typename T>
16555 struct check
16557 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16562 namespace test_final_override
16565 struct Base
16567 virtual ~Base() {}
16568 virtual void f() {}
16571 struct Derived : public Base
16573 virtual ~Derived() override {}
16574 virtual void f() override {}
16579 namespace test_double_right_angle_brackets
16582 template < typename T >
16583 struct check {};
16585 typedef check<void> single_type;
16586 typedef check<check<void>> double_type;
16587 typedef check<check<check<void>>> triple_type;
16588 typedef check<check<check<check<void>>>> quadruple_type;
16592 namespace test_decltype
16598 int a = 1;
16599 decltype(a) b = 2;
16600 return a + b;
16605 namespace test_type_deduction
16608 template < typename T1, typename T2 >
16609 struct is_same
16611 static const bool value = false;
16614 template < typename T >
16615 struct is_same<T, T>
16617 static const bool value = true;
16620 template < typename T1, typename T2 >
16621 auto
16622 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16624 return a1 + a2;
16628 test(const int c, volatile int v)
16630 static_assert(is_same<int, decltype(0)>::value == true, "");
16631 static_assert(is_same<int, decltype(c)>::value == false, "");
16632 static_assert(is_same<int, decltype(v)>::value == false, "");
16633 auto ac = c;
16634 auto av = v;
16635 auto sumi = ac + av + 'x';
16636 auto sumf = ac + av + 1.0;
16637 static_assert(is_same<int, decltype(ac)>::value == true, "");
16638 static_assert(is_same<int, decltype(av)>::value == true, "");
16639 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16640 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16641 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16642 return (sumf > 0.0) ? sumi : add(c, v);
16647 namespace test_noexcept
16650 int f() { return 0; }
16651 int g() noexcept { return 0; }
16653 static_assert(noexcept(f()) == false, "");
16654 static_assert(noexcept(g()) == true, "");
16658 namespace test_constexpr
16661 template < typename CharT >
16662 unsigned long constexpr
16663 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16665 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16668 template < typename CharT >
16669 unsigned long constexpr
16670 strlen_c(const CharT *const s) noexcept
16672 return strlen_c_r(s, 0UL);
16675 static_assert(strlen_c("") == 0UL, "");
16676 static_assert(strlen_c("1") == 1UL, "");
16677 static_assert(strlen_c("example") == 7UL, "");
16678 static_assert(strlen_c("another\0example") == 7UL, "");
16682 namespace test_rvalue_references
16685 template < int N >
16686 struct answer
16688 static constexpr int value = N;
16691 answer<1> f(int&) { return answer<1>(); }
16692 answer<2> f(const int&) { return answer<2>(); }
16693 answer<3> f(int&&) { return answer<3>(); }
16695 void
16696 test()
16698 int i = 0;
16699 const int c = 0;
16700 static_assert(decltype(f(i))::value == 1, "");
16701 static_assert(decltype(f(c))::value == 2, "");
16702 static_assert(decltype(f(0))::value == 3, "");
16707 namespace test_uniform_initialization
16710 struct test
16712 static const int zero {};
16713 static const int one {1};
16716 static_assert(test::zero == 0, "");
16717 static_assert(test::one == 1, "");
16721 namespace test_lambdas
16724 void
16725 test1()
16727 auto lambda1 = [](){};
16728 auto lambda2 = lambda1;
16729 lambda1();
16730 lambda2();
16734 test2()
16736 auto a = [](int i, int j){ return i + j; }(1, 2);
16737 auto b = []() -> int { return '0'; }();
16738 auto c = [=](){ return a + b; }();
16739 auto d = [&](){ return c; }();
16740 auto e = [a, &b](int x) mutable {
16741 const auto identity = [](int y){ return y; };
16742 for (auto i = 0; i < a; ++i)
16743 a += b--;
16744 return x + identity(a + b);
16745 }(0);
16746 return a + b + c + d + e;
16750 test3()
16752 const auto nullary = [](){ return 0; };
16753 const auto unary = [](int x){ return x; };
16754 using nullary_t = decltype(nullary);
16755 using unary_t = decltype(unary);
16756 const auto higher1st = [](nullary_t f){ return f(); };
16757 const auto higher2nd = [unary](nullary_t f1){
16758 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16760 return higher1st(nullary) + higher2nd(nullary)(unary);
16765 namespace test_variadic_templates
16768 template <int...>
16769 struct sum;
16771 template <int N0, int... N1toN>
16772 struct sum<N0, N1toN...>
16774 static constexpr auto value = N0 + sum<N1toN...>::value;
16777 template <>
16778 struct sum<>
16780 static constexpr auto value = 0;
16783 static_assert(sum<>::value == 0, "");
16784 static_assert(sum<1>::value == 1, "");
16785 static_assert(sum<23>::value == 23, "");
16786 static_assert(sum<1, 2>::value == 3, "");
16787 static_assert(sum<5, 5, 11>::value == 21, "");
16788 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16792 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16793 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16794 // because of this.
16795 namespace test_template_alias_sfinae
16798 struct foo {};
16800 template<typename T>
16801 using member = typename T::member_type;
16803 template<typename T>
16804 void func(...) {}
16806 template<typename T>
16807 void func(member<T>*) {}
16809 void test();
16811 void test() { func<foo>(0); }
16815 } // namespace cxx11
16817 #endif // __cplusplus >= 201103L
16822 // If the compiler admits that it is not ready for C++14, why torture it?
16823 // Hopefully, this will speed up the test.
16825 #ifndef __cplusplus
16827 #error "This is not a C++ compiler"
16829 #elif __cplusplus < 201402L && !defined _MSC_VER
16831 #error "This is not a C++14 compiler"
16833 #else
16835 namespace cxx14
16838 namespace test_polymorphic_lambdas
16842 test()
16844 const auto lambda = [](auto&&... args){
16845 const auto istiny = [](auto x){
16846 return (sizeof(x) == 1UL) ? 1 : 0;
16848 const int aretiny[] = { istiny(args)... };
16849 return aretiny[0];
16851 return lambda(1, 1L, 1.0f, '1');
16856 namespace test_binary_literals
16859 constexpr auto ivii = 0b0000000000101010;
16860 static_assert(ivii == 42, "wrong value");
16864 namespace test_generalized_constexpr
16867 template < typename CharT >
16868 constexpr unsigned long
16869 strlen_c(const CharT *const s) noexcept
16871 auto length = 0UL;
16872 for (auto p = s; *p; ++p)
16873 ++length;
16874 return length;
16877 static_assert(strlen_c("") == 0UL, "");
16878 static_assert(strlen_c("x") == 1UL, "");
16879 static_assert(strlen_c("test") == 4UL, "");
16880 static_assert(strlen_c("another\0test") == 7UL, "");
16884 namespace test_lambda_init_capture
16888 test()
16890 auto x = 0;
16891 const auto lambda1 = [a = x](int b){ return a + b; };
16892 const auto lambda2 = [a = lambda1(x)](){ return a; };
16893 return lambda2();
16898 namespace test_digit_separators
16901 constexpr auto ten_million = 100'000'000;
16902 static_assert(ten_million == 100000000, "");
16906 namespace test_return_type_deduction
16909 auto f(int& x) { return x; }
16910 decltype(auto) g(int& x) { return x; }
16912 template < typename T1, typename T2 >
16913 struct is_same
16915 static constexpr auto value = false;
16918 template < typename T >
16919 struct is_same<T, T>
16921 static constexpr auto value = true;
16925 test()
16927 auto x = 0;
16928 static_assert(is_same<int, decltype(f(x))>::value, "");
16929 static_assert(is_same<int&, decltype(g(x))>::value, "");
16930 return x;
16935 } // namespace cxx14
16937 #endif // __cplusplus >= 201402L
16942 // If the compiler admits that it is not ready for C++17, why torture it?
16943 // Hopefully, this will speed up the test.
16945 #ifndef __cplusplus
16947 #error "This is not a C++ compiler"
16949 #elif __cplusplus < 201703L && !defined _MSC_VER
16951 #error "This is not a C++17 compiler"
16953 #else
16955 #include <initializer_list>
16956 #include <utility>
16957 #include <type_traits>
16959 namespace cxx17
16962 namespace test_constexpr_lambdas
16965 constexpr int foo = [](){return 42;}();
16969 namespace test::nested_namespace::definitions
16974 namespace test_fold_expression
16977 template<typename... Args>
16978 int multiply(Args... args)
16980 return (args * ... * 1);
16983 template<typename... Args>
16984 bool all(Args... args)
16986 return (args && ...);
16991 namespace test_extended_static_assert
16994 static_assert (true);
16998 namespace test_auto_brace_init_list
17001 auto foo = {5};
17002 auto bar {5};
17004 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
17005 static_assert(std::is_same<int, decltype(bar)>::value);
17008 namespace test_typename_in_template_template_parameter
17011 template<template<typename> typename X> struct D;
17015 namespace test_fallthrough_nodiscard_maybe_unused_attributes
17018 int f1()
17020 return 42;
17023 [[nodiscard]] int f2()
17025 [[maybe_unused]] auto unused = f1();
17027 switch (f1())
17029 case 17:
17030 f1();
17031 [[fallthrough]];
17032 case 42:
17033 f1();
17035 return f1();
17040 namespace test_extended_aggregate_initialization
17043 struct base1
17045 int b1, b2 = 42;
17048 struct base2
17050 base2() {
17051 b3 = 42;
17053 int b3;
17056 struct derived : base1, base2
17058 int d;
17061 derived d1 {{1, 2}, {}, 4}; // full initialization
17062 derived d2 {{}, {}, 4}; // value-initialized bases
17066 namespace test_general_range_based_for_loop
17069 struct iter
17071 int i;
17073 int& operator* ()
17075 return i;
17078 const int& operator* () const
17080 return i;
17083 iter& operator++()
17085 ++i;
17086 return *this;
17090 struct sentinel
17092 int i;
17095 bool operator== (const iter& i, const sentinel& s)
17097 return i.i == s.i;
17100 bool operator!= (const iter& i, const sentinel& s)
17102 return !(i == s);
17105 struct range
17107 iter begin() const
17109 return {0};
17112 sentinel end() const
17114 return {5};
17118 void f()
17120 range r {};
17122 for (auto i : r)
17124 [[maybe_unused]] auto v = i;
17130 namespace test_lambda_capture_asterisk_this_by_value
17133 struct t
17135 int i;
17136 int foo()
17138 return [*this]()
17140 return i;
17141 }();
17147 namespace test_enum_class_construction
17150 enum class byte : unsigned char
17153 byte foo {42};
17157 namespace test_constexpr_if
17160 template <bool cond>
17161 int f ()
17163 if constexpr(cond)
17165 return 13;
17167 else
17169 return 42;
17175 namespace test_selection_statement_with_initializer
17178 int f()
17180 return 13;
17183 int f2()
17185 if (auto i = f(); i > 0)
17187 return 3;
17190 switch (auto i = f(); i + 4)
17192 case 17:
17193 return 2;
17195 default:
17196 return 1;
17202 namespace test_template_argument_deduction_for_class_templates
17205 template <typename T1, typename T2>
17206 struct pair
17208 pair (T1 p1, T2 p2)
17209 : m1 {p1},
17210 m2 {p2}
17213 T1 m1;
17214 T2 m2;
17217 void f()
17219 [[maybe_unused]] auto p = pair{13, 42u};
17224 namespace test_non_type_auto_template_parameters
17227 template <auto n>
17228 struct B
17231 B<5> b1;
17232 B<'a'> b2;
17236 namespace test_structured_bindings
17239 int arr[2] = { 1, 2 };
17240 std::pair<int, int> pr = { 1, 2 };
17242 auto f1() -> int(&)[2]
17244 return arr;
17247 auto f2() -> std::pair<int, int>&
17249 return pr;
17252 struct S
17254 int x1 : 2;
17255 volatile double y1;
17258 S f3()
17260 return {};
17263 auto [ x1, y1 ] = f1();
17264 auto& [ xr1, yr1 ] = f1();
17265 auto [ x2, y2 ] = f2();
17266 auto& [ xr2, yr2 ] = f2();
17267 const auto [ x3, y3 ] = f3();
17271 namespace test_exception_spec_type_system
17274 struct Good {};
17275 struct Bad {};
17277 void g1() noexcept;
17278 void g2();
17280 template<typename T>
17282 f(T*, T*);
17284 template<typename T1, typename T2>
17285 Good
17286 f(T1*, T2*);
17288 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
17292 namespace test_inline_variables
17295 template<class T> void f(T)
17298 template<class T> inline T g(T)
17300 return T{};
17303 template<> inline void f<>(int)
17306 template<> int g<>(int)
17308 return 5;
17313 } // namespace cxx17
17315 #endif // __cplusplus < 201703L && !defined _MSC_VER
17319 _ACEOF
17320 if ac_fn_cxx_try_compile "$LINENO"; then :
17321 ax_cv_cxx_compile_cxx17=yes
17322 else
17323 ax_cv_cxx_compile_cxx17=no
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
17328 $as_echo "$ax_cv_cxx_compile_cxx17" >&6; }
17329 if test x$ax_cv_cxx_compile_cxx17 = xyes; then
17330 ac_success=yes
17333 if test x$ac_success = xno; then
17334 for alternative in ${ax_cxx_compile_alternatives}; do
17335 switch="-std=gnu++${alternative}"
17336 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
17338 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
17339 if eval \${$cachevar+:} false; then :
17340 $as_echo_n "(cached) " >&6
17341 else
17342 ac_save_CXX="$CXX"
17343 CXX="$CXX $switch"
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17348 // If the compiler admits that it is not ready for C++11, why torture it?
17349 // Hopefully, this will speed up the test.
17351 #ifndef __cplusplus
17353 #error "This is not a C++ compiler"
17355 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
17356 // only set it correctly if /Zc:__cplusplus is specified as well as a
17357 // /std:c++NN switch:
17358 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
17359 #elif __cplusplus < 201103L && !defined _MSC_VER
17361 #error "This is not a C++11 compiler"
17363 #else
17365 namespace cxx11
17368 namespace test_static_assert
17371 template <typename T>
17372 struct check
17374 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17379 namespace test_final_override
17382 struct Base
17384 virtual ~Base() {}
17385 virtual void f() {}
17388 struct Derived : public Base
17390 virtual ~Derived() override {}
17391 virtual void f() override {}
17396 namespace test_double_right_angle_brackets
17399 template < typename T >
17400 struct check {};
17402 typedef check<void> single_type;
17403 typedef check<check<void>> double_type;
17404 typedef check<check<check<void>>> triple_type;
17405 typedef check<check<check<check<void>>>> quadruple_type;
17409 namespace test_decltype
17415 int a = 1;
17416 decltype(a) b = 2;
17417 return a + b;
17422 namespace test_type_deduction
17425 template < typename T1, typename T2 >
17426 struct is_same
17428 static const bool value = false;
17431 template < typename T >
17432 struct is_same<T, T>
17434 static const bool value = true;
17437 template < typename T1, typename T2 >
17438 auto
17439 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17441 return a1 + a2;
17445 test(const int c, volatile int v)
17447 static_assert(is_same<int, decltype(0)>::value == true, "");
17448 static_assert(is_same<int, decltype(c)>::value == false, "");
17449 static_assert(is_same<int, decltype(v)>::value == false, "");
17450 auto ac = c;
17451 auto av = v;
17452 auto sumi = ac + av + 'x';
17453 auto sumf = ac + av + 1.0;
17454 static_assert(is_same<int, decltype(ac)>::value == true, "");
17455 static_assert(is_same<int, decltype(av)>::value == true, "");
17456 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17457 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17458 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17459 return (sumf > 0.0) ? sumi : add(c, v);
17464 namespace test_noexcept
17467 int f() { return 0; }
17468 int g() noexcept { return 0; }
17470 static_assert(noexcept(f()) == false, "");
17471 static_assert(noexcept(g()) == true, "");
17475 namespace test_constexpr
17478 template < typename CharT >
17479 unsigned long constexpr
17480 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17482 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17485 template < typename CharT >
17486 unsigned long constexpr
17487 strlen_c(const CharT *const s) noexcept
17489 return strlen_c_r(s, 0UL);
17492 static_assert(strlen_c("") == 0UL, "");
17493 static_assert(strlen_c("1") == 1UL, "");
17494 static_assert(strlen_c("example") == 7UL, "");
17495 static_assert(strlen_c("another\0example") == 7UL, "");
17499 namespace test_rvalue_references
17502 template < int N >
17503 struct answer
17505 static constexpr int value = N;
17508 answer<1> f(int&) { return answer<1>(); }
17509 answer<2> f(const int&) { return answer<2>(); }
17510 answer<3> f(int&&) { return answer<3>(); }
17512 void
17513 test()
17515 int i = 0;
17516 const int c = 0;
17517 static_assert(decltype(f(i))::value == 1, "");
17518 static_assert(decltype(f(c))::value == 2, "");
17519 static_assert(decltype(f(0))::value == 3, "");
17524 namespace test_uniform_initialization
17527 struct test
17529 static const int zero {};
17530 static const int one {1};
17533 static_assert(test::zero == 0, "");
17534 static_assert(test::one == 1, "");
17538 namespace test_lambdas
17541 void
17542 test1()
17544 auto lambda1 = [](){};
17545 auto lambda2 = lambda1;
17546 lambda1();
17547 lambda2();
17551 test2()
17553 auto a = [](int i, int j){ return i + j; }(1, 2);
17554 auto b = []() -> int { return '0'; }();
17555 auto c = [=](){ return a + b; }();
17556 auto d = [&](){ return c; }();
17557 auto e = [a, &b](int x) mutable {
17558 const auto identity = [](int y){ return y; };
17559 for (auto i = 0; i < a; ++i)
17560 a += b--;
17561 return x + identity(a + b);
17562 }(0);
17563 return a + b + c + d + e;
17567 test3()
17569 const auto nullary = [](){ return 0; };
17570 const auto unary = [](int x){ return x; };
17571 using nullary_t = decltype(nullary);
17572 using unary_t = decltype(unary);
17573 const auto higher1st = [](nullary_t f){ return f(); };
17574 const auto higher2nd = [unary](nullary_t f1){
17575 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17577 return higher1st(nullary) + higher2nd(nullary)(unary);
17582 namespace test_variadic_templates
17585 template <int...>
17586 struct sum;
17588 template <int N0, int... N1toN>
17589 struct sum<N0, N1toN...>
17591 static constexpr auto value = N0 + sum<N1toN...>::value;
17594 template <>
17595 struct sum<>
17597 static constexpr auto value = 0;
17600 static_assert(sum<>::value == 0, "");
17601 static_assert(sum<1>::value == 1, "");
17602 static_assert(sum<23>::value == 23, "");
17603 static_assert(sum<1, 2>::value == 3, "");
17604 static_assert(sum<5, 5, 11>::value == 21, "");
17605 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17609 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17610 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17611 // because of this.
17612 namespace test_template_alias_sfinae
17615 struct foo {};
17617 template<typename T>
17618 using member = typename T::member_type;
17620 template<typename T>
17621 void func(...) {}
17623 template<typename T>
17624 void func(member<T>*) {}
17626 void test();
17628 void test() { func<foo>(0); }
17632 } // namespace cxx11
17634 #endif // __cplusplus >= 201103L
17639 // If the compiler admits that it is not ready for C++14, why torture it?
17640 // Hopefully, this will speed up the test.
17642 #ifndef __cplusplus
17644 #error "This is not a C++ compiler"
17646 #elif __cplusplus < 201402L && !defined _MSC_VER
17648 #error "This is not a C++14 compiler"
17650 #else
17652 namespace cxx14
17655 namespace test_polymorphic_lambdas
17659 test()
17661 const auto lambda = [](auto&&... args){
17662 const auto istiny = [](auto x){
17663 return (sizeof(x) == 1UL) ? 1 : 0;
17665 const int aretiny[] = { istiny(args)... };
17666 return aretiny[0];
17668 return lambda(1, 1L, 1.0f, '1');
17673 namespace test_binary_literals
17676 constexpr auto ivii = 0b0000000000101010;
17677 static_assert(ivii == 42, "wrong value");
17681 namespace test_generalized_constexpr
17684 template < typename CharT >
17685 constexpr unsigned long
17686 strlen_c(const CharT *const s) noexcept
17688 auto length = 0UL;
17689 for (auto p = s; *p; ++p)
17690 ++length;
17691 return length;
17694 static_assert(strlen_c("") == 0UL, "");
17695 static_assert(strlen_c("x") == 1UL, "");
17696 static_assert(strlen_c("test") == 4UL, "");
17697 static_assert(strlen_c("another\0test") == 7UL, "");
17701 namespace test_lambda_init_capture
17705 test()
17707 auto x = 0;
17708 const auto lambda1 = [a = x](int b){ return a + b; };
17709 const auto lambda2 = [a = lambda1(x)](){ return a; };
17710 return lambda2();
17715 namespace test_digit_separators
17718 constexpr auto ten_million = 100'000'000;
17719 static_assert(ten_million == 100000000, "");
17723 namespace test_return_type_deduction
17726 auto f(int& x) { return x; }
17727 decltype(auto) g(int& x) { return x; }
17729 template < typename T1, typename T2 >
17730 struct is_same
17732 static constexpr auto value = false;
17735 template < typename T >
17736 struct is_same<T, T>
17738 static constexpr auto value = true;
17742 test()
17744 auto x = 0;
17745 static_assert(is_same<int, decltype(f(x))>::value, "");
17746 static_assert(is_same<int&, decltype(g(x))>::value, "");
17747 return x;
17752 } // namespace cxx14
17754 #endif // __cplusplus >= 201402L
17759 // If the compiler admits that it is not ready for C++17, why torture it?
17760 // Hopefully, this will speed up the test.
17762 #ifndef __cplusplus
17764 #error "This is not a C++ compiler"
17766 #elif __cplusplus < 201703L && !defined _MSC_VER
17768 #error "This is not a C++17 compiler"
17770 #else
17772 #include <initializer_list>
17773 #include <utility>
17774 #include <type_traits>
17776 namespace cxx17
17779 namespace test_constexpr_lambdas
17782 constexpr int foo = [](){return 42;}();
17786 namespace test::nested_namespace::definitions
17791 namespace test_fold_expression
17794 template<typename... Args>
17795 int multiply(Args... args)
17797 return (args * ... * 1);
17800 template<typename... Args>
17801 bool all(Args... args)
17803 return (args && ...);
17808 namespace test_extended_static_assert
17811 static_assert (true);
17815 namespace test_auto_brace_init_list
17818 auto foo = {5};
17819 auto bar {5};
17821 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
17822 static_assert(std::is_same<int, decltype(bar)>::value);
17825 namespace test_typename_in_template_template_parameter
17828 template<template<typename> typename X> struct D;
17832 namespace test_fallthrough_nodiscard_maybe_unused_attributes
17835 int f1()
17837 return 42;
17840 [[nodiscard]] int f2()
17842 [[maybe_unused]] auto unused = f1();
17844 switch (f1())
17846 case 17:
17847 f1();
17848 [[fallthrough]];
17849 case 42:
17850 f1();
17852 return f1();
17857 namespace test_extended_aggregate_initialization
17860 struct base1
17862 int b1, b2 = 42;
17865 struct base2
17867 base2() {
17868 b3 = 42;
17870 int b3;
17873 struct derived : base1, base2
17875 int d;
17878 derived d1 {{1, 2}, {}, 4}; // full initialization
17879 derived d2 {{}, {}, 4}; // value-initialized bases
17883 namespace test_general_range_based_for_loop
17886 struct iter
17888 int i;
17890 int& operator* ()
17892 return i;
17895 const int& operator* () const
17897 return i;
17900 iter& operator++()
17902 ++i;
17903 return *this;
17907 struct sentinel
17909 int i;
17912 bool operator== (const iter& i, const sentinel& s)
17914 return i.i == s.i;
17917 bool operator!= (const iter& i, const sentinel& s)
17919 return !(i == s);
17922 struct range
17924 iter begin() const
17926 return {0};
17929 sentinel end() const
17931 return {5};
17935 void f()
17937 range r {};
17939 for (auto i : r)
17941 [[maybe_unused]] auto v = i;
17947 namespace test_lambda_capture_asterisk_this_by_value
17950 struct t
17952 int i;
17953 int foo()
17955 return [*this]()
17957 return i;
17958 }();
17964 namespace test_enum_class_construction
17967 enum class byte : unsigned char
17970 byte foo {42};
17974 namespace test_constexpr_if
17977 template <bool cond>
17978 int f ()
17980 if constexpr(cond)
17982 return 13;
17984 else
17986 return 42;
17992 namespace test_selection_statement_with_initializer
17995 int f()
17997 return 13;
18000 int f2()
18002 if (auto i = f(); i > 0)
18004 return 3;
18007 switch (auto i = f(); i + 4)
18009 case 17:
18010 return 2;
18012 default:
18013 return 1;
18019 namespace test_template_argument_deduction_for_class_templates
18022 template <typename T1, typename T2>
18023 struct pair
18025 pair (T1 p1, T2 p2)
18026 : m1 {p1},
18027 m2 {p2}
18030 T1 m1;
18031 T2 m2;
18034 void f()
18036 [[maybe_unused]] auto p = pair{13, 42u};
18041 namespace test_non_type_auto_template_parameters
18044 template <auto n>
18045 struct B
18048 B<5> b1;
18049 B<'a'> b2;
18053 namespace test_structured_bindings
18056 int arr[2] = { 1, 2 };
18057 std::pair<int, int> pr = { 1, 2 };
18059 auto f1() -> int(&)[2]
18061 return arr;
18064 auto f2() -> std::pair<int, int>&
18066 return pr;
18069 struct S
18071 int x1 : 2;
18072 volatile double y1;
18075 S f3()
18077 return {};
18080 auto [ x1, y1 ] = f1();
18081 auto& [ xr1, yr1 ] = f1();
18082 auto [ x2, y2 ] = f2();
18083 auto& [ xr2, yr2 ] = f2();
18084 const auto [ x3, y3 ] = f3();
18088 namespace test_exception_spec_type_system
18091 struct Good {};
18092 struct Bad {};
18094 void g1() noexcept;
18095 void g2();
18097 template<typename T>
18099 f(T*, T*);
18101 template<typename T1, typename T2>
18102 Good
18103 f(T1*, T2*);
18105 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
18109 namespace test_inline_variables
18112 template<class T> void f(T)
18115 template<class T> inline T g(T)
18117 return T{};
18120 template<> inline void f<>(int)
18123 template<> int g<>(int)
18125 return 5;
18130 } // namespace cxx17
18132 #endif // __cplusplus < 201703L && !defined _MSC_VER
18136 _ACEOF
18137 if ac_fn_cxx_try_compile "$LINENO"; then :
18138 eval $cachevar=yes
18139 else
18140 eval $cachevar=no
18142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 CXX="$ac_save_CXX"
18145 eval ac_res=\$$cachevar
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18147 $as_echo "$ac_res" >&6; }
18148 if eval test x\$$cachevar = xyes; then
18149 CXX_DIALECT="$switch"
18150 CXX="$CXX $switch"
18151 if test -n "$CXXCPP" ; then
18152 CXXCPP="$CXXCPP $switch"
18154 ac_success=yes
18155 break
18157 done
18160 if test x$ac_success = xno; then
18161 for alternative in ${ax_cxx_compile_alternatives}; do
18162 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
18163 if test x"$switch" = xMSVC; then
18164 switch=-std:c++${alternative}
18165 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | $as_tr_sh`
18166 else
18167 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
18170 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
18171 if eval \${$cachevar+:} false; then :
18172 $as_echo_n "(cached) " >&6
18173 else
18174 ac_save_CXX="$CXX"
18175 CXX="$CXX $switch"
18176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h. */
18180 // If the compiler admits that it is not ready for C++11, why torture it?
18181 // Hopefully, this will speed up the test.
18183 #ifndef __cplusplus
18185 #error "This is not a C++ compiler"
18187 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
18188 // only set it correctly if /Zc:__cplusplus is specified as well as a
18189 // /std:c++NN switch:
18190 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
18191 #elif __cplusplus < 201103L && !defined _MSC_VER
18193 #error "This is not a C++11 compiler"
18195 #else
18197 namespace cxx11
18200 namespace test_static_assert
18203 template <typename T>
18204 struct check
18206 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18211 namespace test_final_override
18214 struct Base
18216 virtual ~Base() {}
18217 virtual void f() {}
18220 struct Derived : public Base
18222 virtual ~Derived() override {}
18223 virtual void f() override {}
18228 namespace test_double_right_angle_brackets
18231 template < typename T >
18232 struct check {};
18234 typedef check<void> single_type;
18235 typedef check<check<void>> double_type;
18236 typedef check<check<check<void>>> triple_type;
18237 typedef check<check<check<check<void>>>> quadruple_type;
18241 namespace test_decltype
18247 int a = 1;
18248 decltype(a) b = 2;
18249 return a + b;
18254 namespace test_type_deduction
18257 template < typename T1, typename T2 >
18258 struct is_same
18260 static const bool value = false;
18263 template < typename T >
18264 struct is_same<T, T>
18266 static const bool value = true;
18269 template < typename T1, typename T2 >
18270 auto
18271 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18273 return a1 + a2;
18277 test(const int c, volatile int v)
18279 static_assert(is_same<int, decltype(0)>::value == true, "");
18280 static_assert(is_same<int, decltype(c)>::value == false, "");
18281 static_assert(is_same<int, decltype(v)>::value == false, "");
18282 auto ac = c;
18283 auto av = v;
18284 auto sumi = ac + av + 'x';
18285 auto sumf = ac + av + 1.0;
18286 static_assert(is_same<int, decltype(ac)>::value == true, "");
18287 static_assert(is_same<int, decltype(av)>::value == true, "");
18288 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18289 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18290 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18291 return (sumf > 0.0) ? sumi : add(c, v);
18296 namespace test_noexcept
18299 int f() { return 0; }
18300 int g() noexcept { return 0; }
18302 static_assert(noexcept(f()) == false, "");
18303 static_assert(noexcept(g()) == true, "");
18307 namespace test_constexpr
18310 template < typename CharT >
18311 unsigned long constexpr
18312 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18314 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18317 template < typename CharT >
18318 unsigned long constexpr
18319 strlen_c(const CharT *const s) noexcept
18321 return strlen_c_r(s, 0UL);
18324 static_assert(strlen_c("") == 0UL, "");
18325 static_assert(strlen_c("1") == 1UL, "");
18326 static_assert(strlen_c("example") == 7UL, "");
18327 static_assert(strlen_c("another\0example") == 7UL, "");
18331 namespace test_rvalue_references
18334 template < int N >
18335 struct answer
18337 static constexpr int value = N;
18340 answer<1> f(int&) { return answer<1>(); }
18341 answer<2> f(const int&) { return answer<2>(); }
18342 answer<3> f(int&&) { return answer<3>(); }
18344 void
18345 test()
18347 int i = 0;
18348 const int c = 0;
18349 static_assert(decltype(f(i))::value == 1, "");
18350 static_assert(decltype(f(c))::value == 2, "");
18351 static_assert(decltype(f(0))::value == 3, "");
18356 namespace test_uniform_initialization
18359 struct test
18361 static const int zero {};
18362 static const int one {1};
18365 static_assert(test::zero == 0, "");
18366 static_assert(test::one == 1, "");
18370 namespace test_lambdas
18373 void
18374 test1()
18376 auto lambda1 = [](){};
18377 auto lambda2 = lambda1;
18378 lambda1();
18379 lambda2();
18383 test2()
18385 auto a = [](int i, int j){ return i + j; }(1, 2);
18386 auto b = []() -> int { return '0'; }();
18387 auto c = [=](){ return a + b; }();
18388 auto d = [&](){ return c; }();
18389 auto e = [a, &b](int x) mutable {
18390 const auto identity = [](int y){ return y; };
18391 for (auto i = 0; i < a; ++i)
18392 a += b--;
18393 return x + identity(a + b);
18394 }(0);
18395 return a + b + c + d + e;
18399 test3()
18401 const auto nullary = [](){ return 0; };
18402 const auto unary = [](int x){ return x; };
18403 using nullary_t = decltype(nullary);
18404 using unary_t = decltype(unary);
18405 const auto higher1st = [](nullary_t f){ return f(); };
18406 const auto higher2nd = [unary](nullary_t f1){
18407 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18409 return higher1st(nullary) + higher2nd(nullary)(unary);
18414 namespace test_variadic_templates
18417 template <int...>
18418 struct sum;
18420 template <int N0, int... N1toN>
18421 struct sum<N0, N1toN...>
18423 static constexpr auto value = N0 + sum<N1toN...>::value;
18426 template <>
18427 struct sum<>
18429 static constexpr auto value = 0;
18432 static_assert(sum<>::value == 0, "");
18433 static_assert(sum<1>::value == 1, "");
18434 static_assert(sum<23>::value == 23, "");
18435 static_assert(sum<1, 2>::value == 3, "");
18436 static_assert(sum<5, 5, 11>::value == 21, "");
18437 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18441 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18442 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18443 // because of this.
18444 namespace test_template_alias_sfinae
18447 struct foo {};
18449 template<typename T>
18450 using member = typename T::member_type;
18452 template<typename T>
18453 void func(...) {}
18455 template<typename T>
18456 void func(member<T>*) {}
18458 void test();
18460 void test() { func<foo>(0); }
18464 } // namespace cxx11
18466 #endif // __cplusplus >= 201103L
18471 // If the compiler admits that it is not ready for C++14, why torture it?
18472 // Hopefully, this will speed up the test.
18474 #ifndef __cplusplus
18476 #error "This is not a C++ compiler"
18478 #elif __cplusplus < 201402L && !defined _MSC_VER
18480 #error "This is not a C++14 compiler"
18482 #else
18484 namespace cxx14
18487 namespace test_polymorphic_lambdas
18491 test()
18493 const auto lambda = [](auto&&... args){
18494 const auto istiny = [](auto x){
18495 return (sizeof(x) == 1UL) ? 1 : 0;
18497 const int aretiny[] = { istiny(args)... };
18498 return aretiny[0];
18500 return lambda(1, 1L, 1.0f, '1');
18505 namespace test_binary_literals
18508 constexpr auto ivii = 0b0000000000101010;
18509 static_assert(ivii == 42, "wrong value");
18513 namespace test_generalized_constexpr
18516 template < typename CharT >
18517 constexpr unsigned long
18518 strlen_c(const CharT *const s) noexcept
18520 auto length = 0UL;
18521 for (auto p = s; *p; ++p)
18522 ++length;
18523 return length;
18526 static_assert(strlen_c("") == 0UL, "");
18527 static_assert(strlen_c("x") == 1UL, "");
18528 static_assert(strlen_c("test") == 4UL, "");
18529 static_assert(strlen_c("another\0test") == 7UL, "");
18533 namespace test_lambda_init_capture
18537 test()
18539 auto x = 0;
18540 const auto lambda1 = [a = x](int b){ return a + b; };
18541 const auto lambda2 = [a = lambda1(x)](){ return a; };
18542 return lambda2();
18547 namespace test_digit_separators
18550 constexpr auto ten_million = 100'000'000;
18551 static_assert(ten_million == 100000000, "");
18555 namespace test_return_type_deduction
18558 auto f(int& x) { return x; }
18559 decltype(auto) g(int& x) { return x; }
18561 template < typename T1, typename T2 >
18562 struct is_same
18564 static constexpr auto value = false;
18567 template < typename T >
18568 struct is_same<T, T>
18570 static constexpr auto value = true;
18574 test()
18576 auto x = 0;
18577 static_assert(is_same<int, decltype(f(x))>::value, "");
18578 static_assert(is_same<int&, decltype(g(x))>::value, "");
18579 return x;
18584 } // namespace cxx14
18586 #endif // __cplusplus >= 201402L
18591 // If the compiler admits that it is not ready for C++17, why torture it?
18592 // Hopefully, this will speed up the test.
18594 #ifndef __cplusplus
18596 #error "This is not a C++ compiler"
18598 #elif __cplusplus < 201703L && !defined _MSC_VER
18600 #error "This is not a C++17 compiler"
18602 #else
18604 #include <initializer_list>
18605 #include <utility>
18606 #include <type_traits>
18608 namespace cxx17
18611 namespace test_constexpr_lambdas
18614 constexpr int foo = [](){return 42;}();
18618 namespace test::nested_namespace::definitions
18623 namespace test_fold_expression
18626 template<typename... Args>
18627 int multiply(Args... args)
18629 return (args * ... * 1);
18632 template<typename... Args>
18633 bool all(Args... args)
18635 return (args && ...);
18640 namespace test_extended_static_assert
18643 static_assert (true);
18647 namespace test_auto_brace_init_list
18650 auto foo = {5};
18651 auto bar {5};
18653 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
18654 static_assert(std::is_same<int, decltype(bar)>::value);
18657 namespace test_typename_in_template_template_parameter
18660 template<template<typename> typename X> struct D;
18664 namespace test_fallthrough_nodiscard_maybe_unused_attributes
18667 int f1()
18669 return 42;
18672 [[nodiscard]] int f2()
18674 [[maybe_unused]] auto unused = f1();
18676 switch (f1())
18678 case 17:
18679 f1();
18680 [[fallthrough]];
18681 case 42:
18682 f1();
18684 return f1();
18689 namespace test_extended_aggregate_initialization
18692 struct base1
18694 int b1, b2 = 42;
18697 struct base2
18699 base2() {
18700 b3 = 42;
18702 int b3;
18705 struct derived : base1, base2
18707 int d;
18710 derived d1 {{1, 2}, {}, 4}; // full initialization
18711 derived d2 {{}, {}, 4}; // value-initialized bases
18715 namespace test_general_range_based_for_loop
18718 struct iter
18720 int i;
18722 int& operator* ()
18724 return i;
18727 const int& operator* () const
18729 return i;
18732 iter& operator++()
18734 ++i;
18735 return *this;
18739 struct sentinel
18741 int i;
18744 bool operator== (const iter& i, const sentinel& s)
18746 return i.i == s.i;
18749 bool operator!= (const iter& i, const sentinel& s)
18751 return !(i == s);
18754 struct range
18756 iter begin() const
18758 return {0};
18761 sentinel end() const
18763 return {5};
18767 void f()
18769 range r {};
18771 for (auto i : r)
18773 [[maybe_unused]] auto v = i;
18779 namespace test_lambda_capture_asterisk_this_by_value
18782 struct t
18784 int i;
18785 int foo()
18787 return [*this]()
18789 return i;
18790 }();
18796 namespace test_enum_class_construction
18799 enum class byte : unsigned char
18802 byte foo {42};
18806 namespace test_constexpr_if
18809 template <bool cond>
18810 int f ()
18812 if constexpr(cond)
18814 return 13;
18816 else
18818 return 42;
18824 namespace test_selection_statement_with_initializer
18827 int f()
18829 return 13;
18832 int f2()
18834 if (auto i = f(); i > 0)
18836 return 3;
18839 switch (auto i = f(); i + 4)
18841 case 17:
18842 return 2;
18844 default:
18845 return 1;
18851 namespace test_template_argument_deduction_for_class_templates
18854 template <typename T1, typename T2>
18855 struct pair
18857 pair (T1 p1, T2 p2)
18858 : m1 {p1},
18859 m2 {p2}
18862 T1 m1;
18863 T2 m2;
18866 void f()
18868 [[maybe_unused]] auto p = pair{13, 42u};
18873 namespace test_non_type_auto_template_parameters
18876 template <auto n>
18877 struct B
18880 B<5> b1;
18881 B<'a'> b2;
18885 namespace test_structured_bindings
18888 int arr[2] = { 1, 2 };
18889 std::pair<int, int> pr = { 1, 2 };
18891 auto f1() -> int(&)[2]
18893 return arr;
18896 auto f2() -> std::pair<int, int>&
18898 return pr;
18901 struct S
18903 int x1 : 2;
18904 volatile double y1;
18907 S f3()
18909 return {};
18912 auto [ x1, y1 ] = f1();
18913 auto& [ xr1, yr1 ] = f1();
18914 auto [ x2, y2 ] = f2();
18915 auto& [ xr2, yr2 ] = f2();
18916 const auto [ x3, y3 ] = f3();
18920 namespace test_exception_spec_type_system
18923 struct Good {};
18924 struct Bad {};
18926 void g1() noexcept;
18927 void g2();
18929 template<typename T>
18931 f(T*, T*);
18933 template<typename T1, typename T2>
18934 Good
18935 f(T1*, T2*);
18937 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
18941 namespace test_inline_variables
18944 template<class T> void f(T)
18947 template<class T> inline T g(T)
18949 return T{};
18952 template<> inline void f<>(int)
18955 template<> int g<>(int)
18957 return 5;
18962 } // namespace cxx17
18964 #endif // __cplusplus < 201703L && !defined _MSC_VER
18968 _ACEOF
18969 if ac_fn_cxx_try_compile "$LINENO"; then :
18970 eval $cachevar=yes
18971 else
18972 eval $cachevar=no
18974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18975 CXX="$ac_save_CXX"
18977 eval ac_res=\$$cachevar
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18979 $as_echo "$ac_res" >&6; }
18980 if eval test x\$$cachevar = xyes; then
18981 CXX_DIALECT="$switch"
18982 CXX="$CXX $switch"
18983 if test -n "$CXXCPP" ; then
18984 CXXCPP="$CXXCPP $switch"
18986 ac_success=yes
18987 break
18989 done
18990 if test x$ac_success = xyes; then
18991 break
18993 done
18995 ac_ext=c
18996 ac_cpp='$CPP $CPPFLAGS'
18997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19001 if test x$ax_cxx_compile_cxx17_required = xtrue; then
19002 if test x$ac_success = xno; then
19003 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
19006 if test x$ac_success = xno; then
19007 HAVE_CXX17=0
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
19009 $as_echo "$as_me: No compiler with C++17 support was found" >&6;}
19010 else
19011 HAVE_CXX17=1
19013 $as_echo "#define HAVE_CXX17 1" >>confdefs.h
19020 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19021 if test "x$ac_cv_type_size_t" = xyes; then :
19023 else
19025 cat >>confdefs.h <<_ACEOF
19026 #define size_t unsigned int
19027 _ACEOF
19034 for ac_header in $ac_header_list
19035 do :
19036 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19037 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19039 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19040 cat >>confdefs.h <<_ACEOF
19041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19042 _ACEOF
19046 done
19054 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19055 if test "x$ac_cv_type_pid_t" = xyes; then :
19057 else
19059 cat >>confdefs.h <<_ACEOF
19060 #define pid_t int
19061 _ACEOF
19066 if test "X$prefix" = "XNONE"; then
19067 acl_final_prefix="$ac_default_prefix"
19068 else
19069 acl_final_prefix="$prefix"
19071 if test "X$exec_prefix" = "XNONE"; then
19072 acl_final_exec_prefix='${prefix}'
19073 else
19074 acl_final_exec_prefix="$exec_prefix"
19076 acl_save_prefix="$prefix"
19077 prefix="$acl_final_prefix"
19078 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19079 prefix="$acl_save_prefix"
19082 # Check whether --with-gnu-ld was given.
19083 if test "${with_gnu_ld+set}" = set; then :
19084 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19085 else
19086 with_gnu_ld=no
19089 # Prepare PATH_SEPARATOR.
19090 # The user is always right.
19091 if test "${PATH_SEPARATOR+set}" != set; then
19092 echo "#! /bin/sh" >conf$$.sh
19093 echo "exit 0" >>conf$$.sh
19094 chmod +x conf$$.sh
19095 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19096 PATH_SEPARATOR=';'
19097 else
19098 PATH_SEPARATOR=:
19100 rm -f conf$$.sh
19102 ac_prog=ld
19103 if test "$GCC" = yes; then
19104 # Check if gcc -print-prog-name=ld gives a path.
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
19106 $as_echo_n "checking for ld used by GCC... " >&6; }
19107 case $host in
19108 *-*-mingw*)
19109 # gcc leaves a trailing carriage return which upsets mingw
19110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19113 esac
19114 case $ac_prog in
19115 # Accept absolute paths.
19116 [\\/]* | [A-Za-z]:[\\/]*)
19117 re_direlt='/[^/][^/]*/\.\./'
19118 # Canonicalize the path of ld
19119 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19120 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19121 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19122 done
19123 test -z "$LD" && LD="$ac_prog"
19126 # If it fails, then pretend we aren't using GCC.
19127 ac_prog=ld
19130 # If it is relative, then search for the first ld in PATH.
19131 with_gnu_ld=unknown
19133 esac
19134 elif test "$with_gnu_ld" = yes; then
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19136 $as_echo_n "checking for GNU ld... " >&6; }
19137 else
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19139 $as_echo_n "checking for non-GNU ld... " >&6; }
19141 if ${acl_cv_path_LD+:} false; then :
19142 $as_echo_n "(cached) " >&6
19143 else
19144 if test -z "$LD"; then
19145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19146 for ac_dir in $PATH; do
19147 test -z "$ac_dir" && ac_dir=.
19148 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19149 acl_cv_path_LD="$ac_dir/$ac_prog"
19150 # Check to see if the program is GNU ld. I'd rather use --version,
19151 # but apparently some GNU ld's only accept -v.
19152 # Break only if it was the GNU/non-GNU ld that we prefer.
19153 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
19154 test "$with_gnu_ld" != no && break
19155 else
19156 test "$with_gnu_ld" != yes && break
19159 done
19160 IFS="$ac_save_ifs"
19161 else
19162 acl_cv_path_LD="$LD" # Let the user override the test with a path.
19166 LD="$acl_cv_path_LD"
19167 if test -n "$LD"; then
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19169 $as_echo "$LD" >&6; }
19170 else
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19172 $as_echo "no" >&6; }
19174 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19176 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19177 if ${acl_cv_prog_gnu_ld+:} false; then :
19178 $as_echo_n "(cached) " >&6
19179 else
19180 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19181 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
19182 acl_cv_prog_gnu_ld=yes
19183 else
19184 acl_cv_prog_gnu_ld=no
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19188 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
19189 with_gnu_ld=$acl_cv_prog_gnu_ld
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19194 $as_echo_n "checking for shared library run path origin... " >&6; }
19195 if ${acl_cv_rpath+:} false; then :
19196 $as_echo_n "(cached) " >&6
19197 else
19199 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19200 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19201 . ./conftest.sh
19202 rm -f ./conftest.sh
19203 acl_cv_rpath=done
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19207 $as_echo "$acl_cv_rpath" >&6; }
19208 wl="$acl_cv_wl"
19209 libext="$acl_cv_libext"
19210 shlibext="$acl_cv_shlibext"
19211 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19212 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19213 hardcode_direct="$acl_cv_hardcode_direct"
19214 hardcode_minus_L="$acl_cv_hardcode_minus_L"
19215 # Check whether --enable-rpath was given.
19216 if test "${enable_rpath+set}" = set; then :
19217 enableval=$enable_rpath; :
19218 else
19219 enable_rpath=yes
19224 # Set the 'development' global.
19225 . $srcdir/../bfd/development.sh
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19228 $as_echo_n "checking for ANSI C header files... " >&6; }
19229 if ${ac_cv_header_stdc+:} false; then :
19230 $as_echo_n "(cached) " >&6
19231 else
19232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19233 /* end confdefs.h. */
19234 #include <stdlib.h>
19235 #include <stdarg.h>
19236 #include <string.h>
19237 #include <float.h>
19240 main ()
19244 return 0;
19246 _ACEOF
19247 if ac_fn_c_try_compile "$LINENO"; then :
19248 ac_cv_header_stdc=yes
19249 else
19250 ac_cv_header_stdc=no
19252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19254 if test $ac_cv_header_stdc = yes; then
19255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19257 /* end confdefs.h. */
19258 #include <string.h>
19260 _ACEOF
19261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19262 $EGREP "memchr" >/dev/null 2>&1; then :
19264 else
19265 ac_cv_header_stdc=no
19267 rm -f conftest*
19271 if test $ac_cv_header_stdc = yes; then
19272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19275 #include <stdlib.h>
19277 _ACEOF
19278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19279 $EGREP "free" >/dev/null 2>&1; then :
19281 else
19282 ac_cv_header_stdc=no
19284 rm -f conftest*
19288 if test $ac_cv_header_stdc = yes; then
19289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19290 if test "$cross_compiling" = yes; then :
19292 else
19293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h. */
19295 #include <ctype.h>
19296 #include <stdlib.h>
19297 #if ((' ' & 0x0FF) == 0x020)
19298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19300 #else
19301 # define ISLOWER(c) \
19302 (('a' <= (c) && (c) <= 'i') \
19303 || ('j' <= (c) && (c) <= 'r') \
19304 || ('s' <= (c) && (c) <= 'z'))
19305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19306 #endif
19308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19310 main ()
19312 int i;
19313 for (i = 0; i < 256; i++)
19314 if (XOR (islower (i), ISLOWER (i))
19315 || toupper (i) != TOUPPER (i))
19316 return 2;
19317 return 0;
19319 _ACEOF
19320 if ac_fn_c_try_run "$LINENO"; then :
19322 else
19323 ac_cv_header_stdc=no
19325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19326 conftest.$ac_objext conftest.beam conftest.$ac_ext
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19332 $as_echo "$ac_cv_header_stdc" >&6; }
19333 if test $ac_cv_header_stdc = yes; then
19335 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19339 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19340 # for constant arguments. Useless!
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19342 $as_echo_n "checking for working alloca.h... " >&6; }
19343 if ${ac_cv_working_alloca_h+:} false; then :
19344 $as_echo_n "(cached) " >&6
19345 else
19346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19347 /* end confdefs.h. */
19348 #include <alloca.h>
19350 main ()
19352 char *p = (char *) alloca (2 * sizeof (int));
19353 if (p) return 0;
19355 return 0;
19357 _ACEOF
19358 if ac_fn_c_try_link "$LINENO"; then :
19359 ac_cv_working_alloca_h=yes
19360 else
19361 ac_cv_working_alloca_h=no
19363 rm -f core conftest.err conftest.$ac_objext \
19364 conftest$ac_exeext conftest.$ac_ext
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19367 $as_echo "$ac_cv_working_alloca_h" >&6; }
19368 if test $ac_cv_working_alloca_h = yes; then
19370 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19375 $as_echo_n "checking for alloca... " >&6; }
19376 if ${ac_cv_func_alloca_works+:} false; then :
19377 $as_echo_n "(cached) " >&6
19378 else
19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380 /* end confdefs.h. */
19381 #ifdef __GNUC__
19382 # define alloca __builtin_alloca
19383 #else
19384 # ifdef _MSC_VER
19385 # include <malloc.h>
19386 # define alloca _alloca
19387 # else
19388 # ifdef HAVE_ALLOCA_H
19389 # include <alloca.h>
19390 # else
19391 # ifdef _AIX
19392 #pragma alloca
19393 # else
19394 # ifndef alloca /* predefined by HP cc +Olibcalls */
19395 void *alloca (size_t);
19396 # endif
19397 # endif
19398 # endif
19399 # endif
19400 #endif
19403 main ()
19405 char *p = (char *) alloca (1);
19406 if (p) return 0;
19408 return 0;
19410 _ACEOF
19411 if ac_fn_c_try_link "$LINENO"; then :
19412 ac_cv_func_alloca_works=yes
19413 else
19414 ac_cv_func_alloca_works=no
19416 rm -f core conftest.err conftest.$ac_objext \
19417 conftest$ac_exeext conftest.$ac_ext
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19420 $as_echo "$ac_cv_func_alloca_works" >&6; }
19422 if test $ac_cv_func_alloca_works = yes; then
19424 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19426 else
19427 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19428 # that cause trouble. Some versions do not even contain alloca or
19429 # contain a buggy version. If you still want to use their alloca,
19430 # use ar to extract alloca.o from them instead of compiling alloca.c.
19432 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19434 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19438 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19439 if ${ac_cv_os_cray+:} false; then :
19440 $as_echo_n "(cached) " >&6
19441 else
19442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443 /* end confdefs.h. */
19444 #if defined CRAY && ! defined CRAY2
19445 webecray
19446 #else
19447 wenotbecray
19448 #endif
19450 _ACEOF
19451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19452 $EGREP "webecray" >/dev/null 2>&1; then :
19453 ac_cv_os_cray=yes
19454 else
19455 ac_cv_os_cray=no
19457 rm -f conftest*
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19461 $as_echo "$ac_cv_os_cray" >&6; }
19462 if test $ac_cv_os_cray = yes; then
19463 for ac_func in _getb67 GETB67 getb67; do
19464 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19466 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19468 cat >>confdefs.h <<_ACEOF
19469 #define CRAY_STACKSEG_END $ac_func
19470 _ACEOF
19472 break
19475 done
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19479 $as_echo_n "checking stack direction for C alloca... " >&6; }
19480 if ${ac_cv_c_stack_direction+:} false; then :
19481 $as_echo_n "(cached) " >&6
19482 else
19483 if test "$cross_compiling" = yes; then :
19484 ac_cv_c_stack_direction=0
19485 else
19486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19487 /* end confdefs.h. */
19488 $ac_includes_default
19490 find_stack_direction (int *addr, int depth)
19492 int dir, dummy = 0;
19493 if (! addr)
19494 addr = &dummy;
19495 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19496 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19497 return dir + dummy;
19501 main (int argc, char **argv)
19503 return find_stack_direction (0, argc + !argv + 20) < 0;
19505 _ACEOF
19506 if ac_fn_c_try_run "$LINENO"; then :
19507 ac_cv_c_stack_direction=1
19508 else
19509 ac_cv_c_stack_direction=-1
19511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19512 conftest.$ac_objext conftest.beam conftest.$ac_ext
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19517 $as_echo "$ac_cv_c_stack_direction" >&6; }
19518 cat >>confdefs.h <<_ACEOF
19519 #define STACK_DIRECTION $ac_cv_c_stack_direction
19520 _ACEOF
19526 WIN32APILIBS=
19527 case ${host} in
19528 *mingw32*)
19530 $as_echo "#define USE_WIN32API 1" >>confdefs.h
19532 WIN32APILIBS="-lws2_32"
19534 esac
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19538 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19539 if ${am_cv_langinfo_codeset+:} false; then :
19540 $as_echo_n "(cached) " >&6
19541 else
19542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h. */
19544 #include <langinfo.h>
19546 main ()
19548 char* cs = nl_langinfo(CODESET);
19550 return 0;
19552 _ACEOF
19553 if ac_fn_c_try_link "$LINENO"; then :
19554 am_cv_langinfo_codeset=yes
19555 else
19556 am_cv_langinfo_codeset=no
19558 rm -f core conftest.err conftest.$ac_objext \
19559 conftest$ac_exeext conftest.$ac_ext
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19563 $as_echo "$am_cv_langinfo_codeset" >&6; }
19564 if test $am_cv_langinfo_codeset = yes; then
19566 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19571 for ac_header in \
19572 dlfcn.h \
19573 linux/elf.h \
19574 linux/perf_event.h \
19575 locale.h \
19576 memory.h \
19577 poll.h \
19578 proc_service.h \
19579 signal.h \
19580 sys/poll.h \
19581 sys/resource.h \
19582 sys/select.h \
19583 sys/socket.h \
19584 sys/un.h \
19585 sys/wait.h \
19586 termios.h \
19587 thread_db.h \
19588 wait.h \
19590 do :
19591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19592 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19593 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19594 cat >>confdefs.h <<_ACEOF
19595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19596 _ACEOF
19600 done
19604 for ac_func in getpagesize
19605 do :
19606 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19607 if test "x$ac_cv_func_getpagesize" = xyes; then :
19608 cat >>confdefs.h <<_ACEOF
19609 #define HAVE_GETPAGESIZE 1
19610 _ACEOF
19613 done
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19616 $as_echo_n "checking for working mmap... " >&6; }
19617 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19618 $as_echo_n "(cached) " >&6
19619 else
19620 if test "$cross_compiling" = yes; then :
19621 ac_cv_func_mmap_fixed_mapped=no
19622 else
19623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19624 /* end confdefs.h. */
19625 $ac_includes_default
19626 /* malloc might have been renamed as rpl_malloc. */
19627 #undef malloc
19629 /* Thanks to Mike Haertel and Jim Avera for this test.
19630 Here is a matrix of mmap possibilities:
19631 mmap private not fixed
19632 mmap private fixed at somewhere currently unmapped
19633 mmap private fixed at somewhere already mapped
19634 mmap shared not fixed
19635 mmap shared fixed at somewhere currently unmapped
19636 mmap shared fixed at somewhere already mapped
19637 For private mappings, we should verify that changes cannot be read()
19638 back from the file, nor mmap's back from the file at a different
19639 address. (There have been systems where private was not correctly
19640 implemented like the infamous i386 svr4.0, and systems where the
19641 VM page cache was not coherent with the file system buffer cache
19642 like early versions of FreeBSD and possibly contemporary NetBSD.)
19643 For shared mappings, we should conversely verify that changes get
19644 propagated back to all the places they're supposed to be.
19646 Grep wants private fixed already mapped.
19647 The main things grep needs to know about mmap are:
19648 * does it exist and is it safe to write into the mmap'd area
19649 * how to use it (BSD variants) */
19651 #include <fcntl.h>
19652 #include <sys/mman.h>
19654 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19655 char *malloc ();
19656 #endif
19658 /* This mess was copied from the GNU getpagesize.h. */
19659 #ifndef HAVE_GETPAGESIZE
19660 # ifdef _SC_PAGESIZE
19661 # define getpagesize() sysconf(_SC_PAGESIZE)
19662 # else /* no _SC_PAGESIZE */
19663 # ifdef HAVE_SYS_PARAM_H
19664 # include <sys/param.h>
19665 # ifdef EXEC_PAGESIZE
19666 # define getpagesize() EXEC_PAGESIZE
19667 # else /* no EXEC_PAGESIZE */
19668 # ifdef NBPG
19669 # define getpagesize() NBPG * CLSIZE
19670 # ifndef CLSIZE
19671 # define CLSIZE 1
19672 # endif /* no CLSIZE */
19673 # else /* no NBPG */
19674 # ifdef NBPC
19675 # define getpagesize() NBPC
19676 # else /* no NBPC */
19677 # ifdef PAGESIZE
19678 # define getpagesize() PAGESIZE
19679 # endif /* PAGESIZE */
19680 # endif /* no NBPC */
19681 # endif /* no NBPG */
19682 # endif /* no EXEC_PAGESIZE */
19683 # else /* no HAVE_SYS_PARAM_H */
19684 # define getpagesize() 8192 /* punt totally */
19685 # endif /* no HAVE_SYS_PARAM_H */
19686 # endif /* no _SC_PAGESIZE */
19688 #endif /* no HAVE_GETPAGESIZE */
19691 main ()
19693 char *data, *data2, *data3;
19694 const char *cdata2;
19695 int i, pagesize;
19696 int fd, fd2;
19698 pagesize = getpagesize ();
19700 /* First, make a file with some known garbage in it. */
19701 data = (char *) malloc (pagesize);
19702 if (!data)
19703 return 1;
19704 for (i = 0; i < pagesize; ++i)
19705 *(data + i) = rand ();
19706 umask (0);
19707 fd = creat ("conftest.mmap", 0600);
19708 if (fd < 0)
19709 return 2;
19710 if (write (fd, data, pagesize) != pagesize)
19711 return 3;
19712 close (fd);
19714 /* Next, check that the tail of a page is zero-filled. File must have
19715 non-zero length, otherwise we risk SIGBUS for entire page. */
19716 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19717 if (fd2 < 0)
19718 return 4;
19719 cdata2 = "";
19720 if (write (fd2, cdata2, 1) != 1)
19721 return 5;
19722 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19723 if (data2 == MAP_FAILED)
19724 return 6;
19725 for (i = 0; i < pagesize; ++i)
19726 if (*(data2 + i))
19727 return 7;
19728 close (fd2);
19729 if (munmap (data2, pagesize))
19730 return 8;
19732 /* Next, try to mmap the file at a fixed address which already has
19733 something else allocated at it. If we can, also make sure that
19734 we see the same garbage. */
19735 fd = open ("conftest.mmap", O_RDWR);
19736 if (fd < 0)
19737 return 9;
19738 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19739 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19740 return 10;
19741 for (i = 0; i < pagesize; ++i)
19742 if (*(data + i) != *(data2 + i))
19743 return 11;
19745 /* Finally, make sure that changes to the mapped area do not
19746 percolate back to the file as seen by read(). (This is a bug on
19747 some variants of i386 svr4.0.) */
19748 for (i = 0; i < pagesize; ++i)
19749 *(data2 + i) = *(data2 + i) + 1;
19750 data3 = (char *) malloc (pagesize);
19751 if (!data3)
19752 return 12;
19753 if (read (fd, data3, pagesize) != pagesize)
19754 return 13;
19755 for (i = 0; i < pagesize; ++i)
19756 if (*(data + i) != *(data3 + i))
19757 return 14;
19758 close (fd);
19759 return 0;
19761 _ACEOF
19762 if ac_fn_c_try_run "$LINENO"; then :
19763 ac_cv_func_mmap_fixed_mapped=yes
19764 else
19765 ac_cv_func_mmap_fixed_mapped=no
19767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19768 conftest.$ac_objext conftest.beam conftest.$ac_ext
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19773 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19774 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19776 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19779 rm -f conftest.mmap conftest.txt
19781 for ac_header in vfork.h
19782 do :
19783 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19784 if test "x$ac_cv_header_vfork_h" = xyes; then :
19785 cat >>confdefs.h <<_ACEOF
19786 #define HAVE_VFORK_H 1
19787 _ACEOF
19791 done
19793 for ac_func in fork vfork
19794 do :
19795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19796 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19797 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19798 cat >>confdefs.h <<_ACEOF
19799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19800 _ACEOF
19803 done
19805 if test "x$ac_cv_func_fork" = xyes; then
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19807 $as_echo_n "checking for working fork... " >&6; }
19808 if ${ac_cv_func_fork_works+:} false; then :
19809 $as_echo_n "(cached) " >&6
19810 else
19811 if test "$cross_compiling" = yes; then :
19812 ac_cv_func_fork_works=cross
19813 else
19814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815 /* end confdefs.h. */
19816 $ac_includes_default
19818 main ()
19821 /* By Ruediger Kuhlmann. */
19822 return fork () < 0;
19825 return 0;
19827 _ACEOF
19828 if ac_fn_c_try_run "$LINENO"; then :
19829 ac_cv_func_fork_works=yes
19830 else
19831 ac_cv_func_fork_works=no
19833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19834 conftest.$ac_objext conftest.beam conftest.$ac_ext
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19839 $as_echo "$ac_cv_func_fork_works" >&6; }
19841 else
19842 ac_cv_func_fork_works=$ac_cv_func_fork
19844 if test "x$ac_cv_func_fork_works" = xcross; then
19845 case $host in
19846 *-*-amigaos* | *-*-msdosdjgpp*)
19847 # Override, as these systems have only a dummy fork() stub
19848 ac_cv_func_fork_works=no
19851 ac_cv_func_fork_works=yes
19853 esac
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19855 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19857 ac_cv_func_vfork_works=$ac_cv_func_vfork
19858 if test "x$ac_cv_func_vfork" = xyes; then
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19860 $as_echo_n "checking for working vfork... " >&6; }
19861 if ${ac_cv_func_vfork_works+:} false; then :
19862 $as_echo_n "(cached) " >&6
19863 else
19864 if test "$cross_compiling" = yes; then :
19865 ac_cv_func_vfork_works=cross
19866 else
19867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19868 /* end confdefs.h. */
19869 /* Thanks to Paul Eggert for this test. */
19870 $ac_includes_default
19871 #include <sys/wait.h>
19872 #ifdef HAVE_VFORK_H
19873 # include <vfork.h>
19874 #endif
19875 /* On some sparc systems, changes by the child to local and incoming
19876 argument registers are propagated back to the parent. The compiler
19877 is told about this with #include <vfork.h>, but some compilers
19878 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19879 static variable whose address is put into a register that is
19880 clobbered by the vfork. */
19881 static void
19882 #ifdef __cplusplus
19883 sparc_address_test (int arg)
19884 # else
19885 sparc_address_test (arg) int arg;
19886 #endif
19888 static pid_t child;
19889 if (!child) {
19890 child = vfork ();
19891 if (child < 0) {
19892 perror ("vfork");
19893 _exit(2);
19895 if (!child) {
19896 arg = getpid();
19897 write(-1, "", 0);
19898 _exit (arg);
19904 main ()
19906 pid_t parent = getpid ();
19907 pid_t child;
19909 sparc_address_test (0);
19911 child = vfork ();
19913 if (child == 0) {
19914 /* Here is another test for sparc vfork register problems. This
19915 test uses lots of local variables, at least as many local
19916 variables as main has allocated so far including compiler
19917 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19918 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19919 reuse the register of parent for one of the local variables,
19920 since it will think that parent can't possibly be used any more
19921 in this routine. Assigning to the local variable will thus
19922 munge parent in the parent process. */
19923 pid_t
19924 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19925 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19926 /* Convince the compiler that p..p7 are live; otherwise, it might
19927 use the same hardware register for all 8 local variables. */
19928 if (p != p1 || p != p2 || p != p3 || p != p4
19929 || p != p5 || p != p6 || p != p7)
19930 _exit(1);
19932 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19933 from child file descriptors. If the child closes a descriptor
19934 before it execs or exits, this munges the parent's descriptor
19935 as well. Test for this by closing stdout in the child. */
19936 _exit(close(fileno(stdout)) != 0);
19937 } else {
19938 int status;
19939 struct stat st;
19941 while (wait(&status) != child)
19943 return (
19944 /* Was there some problem with vforking? */
19945 child < 0
19947 /* Did the child fail? (This shouldn't happen.) */
19948 || status
19950 /* Did the vfork/compiler bug occur? */
19951 || parent != getpid()
19953 /* Did the file descriptor bug occur? */
19954 || fstat(fileno(stdout), &st) != 0
19958 _ACEOF
19959 if ac_fn_c_try_run "$LINENO"; then :
19960 ac_cv_func_vfork_works=yes
19961 else
19962 ac_cv_func_vfork_works=no
19964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19965 conftest.$ac_objext conftest.beam conftest.$ac_ext
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19970 $as_echo "$ac_cv_func_vfork_works" >&6; }
19973 if test "x$ac_cv_func_fork_works" = xcross; then
19974 ac_cv_func_vfork_works=$ac_cv_func_vfork
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19976 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19979 if test "x$ac_cv_func_vfork_works" = xyes; then
19981 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19983 else
19985 $as_echo "#define vfork fork" >>confdefs.h
19988 if test "x$ac_cv_func_fork_works" = xyes; then
19990 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19994 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
19996 $as_echo_n "checking for library containing socketpair... " >&6; }
19997 if ${ac_cv_search_socketpair+:} false; then :
19998 $as_echo_n "(cached) " >&6
19999 else
20000 ac_func_search_save_LIBS=$LIBS
20001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h. */
20004 /* Override any GCC internal prototype to avoid an error.
20005 Use char because int might match the return type of a GCC
20006 builtin and then its argument prototype would still apply. */
20007 #ifdef __cplusplus
20008 extern "C"
20009 #endif
20010 char socketpair ();
20012 main ()
20014 return socketpair ();
20016 return 0;
20018 _ACEOF
20019 for ac_lib in '' socket; do
20020 if test -z "$ac_lib"; then
20021 ac_res="none required"
20022 else
20023 ac_res=-l$ac_lib
20024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20026 if ac_fn_c_try_link "$LINENO"; then :
20027 ac_cv_search_socketpair=$ac_res
20029 rm -f core conftest.err conftest.$ac_objext \
20030 conftest$ac_exeext
20031 if ${ac_cv_search_socketpair+:} false; then :
20032 break
20034 done
20035 if ${ac_cv_search_socketpair+:} false; then :
20037 else
20038 ac_cv_search_socketpair=no
20040 rm conftest.$ac_ext
20041 LIBS=$ac_func_search_save_LIBS
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
20044 $as_echo "$ac_cv_search_socketpair" >&6; }
20045 ac_res=$ac_cv_search_socketpair
20046 if test "$ac_res" != no; then :
20047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20051 for ac_func in \
20052 fdwalk \
20053 getauxval \
20054 getrlimit \
20055 getrusage \
20056 pipe \
20057 pipe2 \
20058 poll \
20059 ptrace64 \
20060 sbrk \
20061 setns \
20062 setpgid \
20063 setpgrp \
20064 sigaction \
20065 sigaltstack \
20066 sigprocmask \
20067 sigtimedwait \
20068 socketpair \
20070 do :
20071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20072 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20073 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20074 cat >>confdefs.h <<_ACEOF
20075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20076 _ACEOF
20079 done
20082 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
20083 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
20084 # only in linux/personality.h.
20085 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
20087 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
20088 ac_have_decl=1
20089 else
20090 ac_have_decl=0
20093 cat >>confdefs.h <<_ACEOF
20094 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
20095 _ACEOF
20098 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
20099 if test "x$ac_cv_have_decl_strstr" = xyes; then :
20100 ac_have_decl=1
20101 else
20102 ac_have_decl=0
20105 cat >>confdefs.h <<_ACEOF
20106 #define HAVE_DECL_STRSTR $ac_have_decl
20107 _ACEOF
20110 # ----------------------- #
20111 # Checks for structures. #
20112 # ----------------------- #
20114 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
20115 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
20117 cat >>confdefs.h <<_ACEOF
20118 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20119 _ACEOF
20123 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
20124 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
20126 cat >>confdefs.h <<_ACEOF
20127 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20128 _ACEOF
20134 # On FreeBSD we need libutil for the kinfo_get* functions. On
20135 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
20136 # Figure out which one to use.
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
20138 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
20139 if ${ac_cv_search_kinfo_getfile+:} false; then :
20140 $as_echo_n "(cached) " >&6
20141 else
20142 ac_func_search_save_LIBS=$LIBS
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20146 /* Override any GCC internal prototype to avoid an error.
20147 Use char because int might match the return type of a GCC
20148 builtin and then its argument prototype would still apply. */
20149 #ifdef __cplusplus
20150 extern "C"
20151 #endif
20152 char kinfo_getfile ();
20154 main ()
20156 return kinfo_getfile ();
20158 return 0;
20160 _ACEOF
20161 for ac_lib in '' util util-freebsd; do
20162 if test -z "$ac_lib"; then
20163 ac_res="none required"
20164 else
20165 ac_res=-l$ac_lib
20166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20168 if ac_fn_c_try_link "$LINENO"; then :
20169 ac_cv_search_kinfo_getfile=$ac_res
20171 rm -f core conftest.err conftest.$ac_objext \
20172 conftest$ac_exeext
20173 if ${ac_cv_search_kinfo_getfile+:} false; then :
20174 break
20176 done
20177 if ${ac_cv_search_kinfo_getfile+:} false; then :
20179 else
20180 ac_cv_search_kinfo_getfile=no
20182 rm conftest.$ac_ext
20183 LIBS=$ac_func_search_save_LIBS
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
20186 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
20187 ac_res=$ac_cv_search_kinfo_getfile
20188 if test "$ac_res" != no; then :
20189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20194 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
20195 for ac_func in kinfo_getfile
20196 do :
20197 ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
20198 if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
20199 cat >>confdefs.h <<_ACEOF
20200 #define HAVE_KINFO_GETFILE 1
20201 _ACEOF
20204 done
20207 # ----------------------- #
20208 # Check for threading. #
20209 # ----------------------- #
20211 # Check whether --enable-threading was given.
20212 if test "${enable_threading+set}" = set; then :
20213 enableval=$enable_threading; case "$enableval" in
20214 yes) want_threading=yes ;;
20215 no) want_threading=no ;;
20216 *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
20217 esac
20218 else
20219 want_threading=auto
20223 # Check for std::thread. This does not work on some platforms, like
20224 # mingw using the win32 threads model with gcc older than 13, and
20225 # DJGPP.
20226 ac_ext=cpp
20227 ac_cpp='$CXXCPP $CPPFLAGS'
20228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20236 ac_ext=c
20237 ac_cpp='$CPP $CPPFLAGS'
20238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20242 ax_pthread_ok=no
20244 # We used to check for pthread.h first, but this fails if pthread.h
20245 # requires special compiler flags (e.g. on Tru64 or Sequent).
20246 # It gets checked for in the link test anyway.
20248 # First of all, check if the user has set any of the PTHREAD_LIBS,
20249 # etcetera environment variables, and if threads linking works using
20250 # them:
20251 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
20252 ax_pthread_save_CC="$CC"
20253 ax_pthread_save_CFLAGS="$CFLAGS"
20254 ax_pthread_save_LIBS="$LIBS"
20255 if test "x$PTHREAD_CC" != "x"; then :
20256 CC="$PTHREAD_CC"
20258 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20259 LIBS="$PTHREAD_LIBS $LIBS"
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
20261 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
20262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20263 /* end confdefs.h. */
20265 /* Override any GCC internal prototype to avoid an error.
20266 Use char because int might match the return type of a GCC
20267 builtin and then its argument prototype would still apply. */
20268 #ifdef __cplusplus
20269 extern "C"
20270 #endif
20271 char pthread_join ();
20273 main ()
20275 return pthread_join ();
20277 return 0;
20279 _ACEOF
20280 if ac_fn_c_try_link "$LINENO"; then :
20281 ax_pthread_ok=yes
20283 rm -f core conftest.err conftest.$ac_objext \
20284 conftest$ac_exeext conftest.$ac_ext
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20286 $as_echo "$ax_pthread_ok" >&6; }
20287 if test "x$ax_pthread_ok" = "xno"; then
20288 PTHREAD_LIBS=""
20289 PTHREAD_CFLAGS=""
20291 CC="$ax_pthread_save_CC"
20292 CFLAGS="$ax_pthread_save_CFLAGS"
20293 LIBS="$ax_pthread_save_LIBS"
20296 # We must check for the threads library under a number of different
20297 # names; the ordering is very important because some systems
20298 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20299 # libraries is broken (non-POSIX).
20301 # Create a list of thread flags to try. Items starting with a "-" are
20302 # C compiler flags, and other items are library names, except for "none"
20303 # which indicates that we try without any flags at all, and "pthread-config"
20304 # which is a program returning the flags for the Pth emulation library.
20306 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20308 # The ordering *is* (sometimes) important. Some notes on the
20309 # individual items follow:
20311 # pthreads: AIX (must check this before -lpthread)
20312 # none: in case threads are in libc; should be tried before -Kthread and
20313 # other compiler flags to prevent continual compiler warnings
20314 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20315 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
20316 # (Note: HP C rejects this with "bad form for `-t' option")
20317 # -pthreads: Solaris/gcc (Note: HP C also rejects)
20318 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20319 # doesn't hurt to check since this sometimes defines pthreads and
20320 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
20321 # is present but should not be used directly; and before -mthreads,
20322 # because the compiler interprets this as "-mt" + "-hreads")
20323 # -mthreads: Mingw32/gcc, Lynx/gcc
20324 # pthread: Linux, etcetera
20325 # --thread-safe: KAI C++
20326 # pthread-config: use pthread-config program (for GNU Pth library)
20328 case $host_os in
20330 freebsd*)
20332 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20333 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20335 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
20338 hpux*)
20340 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
20341 # multi-threading and also sets -lpthread."
20343 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
20346 openedition*)
20348 # IBM z/OS requires a feature-test macro to be defined in order to
20349 # enable POSIX threads at all, so give the user a hint if this is
20350 # not set. (We don't define these ourselves, as they can affect
20351 # other portions of the system API in unpredictable ways.)
20353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h. */
20356 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20357 AX_PTHREAD_ZOS_MISSING
20358 # endif
20360 _ACEOF
20361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20362 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20364 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20366 rm -f conftest*
20370 solaris*)
20372 # On Solaris (at least, for some versions), libc contains stubbed
20373 # (non-functional) versions of the pthreads routines, so link-based
20374 # tests will erroneously succeed. (N.B.: The stubs are missing
20375 # pthread_cleanup_push, or rather a function called by this macro,
20376 # so we could check for that, but who knows whether they'll stub
20377 # that too in a future libc.) So we'll check first for the
20378 # standard Solaris way of linking pthreads (-mt -lpthread).
20380 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
20382 esac
20384 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20386 if test "x$GCC" = "xyes"; then :
20387 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
20390 # The presence of a feature test macro requesting re-entrant function
20391 # definitions is, on some systems, a strong hint that pthreads support is
20392 # correctly enabled
20394 case $host_os in
20395 darwin* | hpux* | linux* | osf* | solaris*)
20396 ax_pthread_check_macro="_REENTRANT"
20399 aix*)
20400 ax_pthread_check_macro="_THREAD_SAFE"
20404 ax_pthread_check_macro="--"
20406 esac
20407 if test "x$ax_pthread_check_macro" = "x--"; then :
20408 ax_pthread_check_cond=0
20409 else
20410 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
20413 # Are we compiling with Clang?
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20416 $as_echo_n "checking whether $CC is Clang... " >&6; }
20417 if ${ax_cv_PTHREAD_CLANG+:} false; then :
20418 $as_echo_n "(cached) " >&6
20419 else
20420 ax_cv_PTHREAD_CLANG=no
20421 # Note that Autoconf sets GCC=yes for Clang as well as GCC
20422 if test "x$GCC" = "xyes"; then
20423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h. */
20425 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20426 # if defined(__clang__) && defined(__llvm__)
20427 AX_PTHREAD_CC_IS_CLANG
20428 # endif
20430 _ACEOF
20431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20432 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
20433 ax_cv_PTHREAD_CLANG=yes
20435 rm -f conftest*
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20441 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20442 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
20444 ax_pthread_clang_warning=no
20446 # Clang needs special handling, because older versions handle the -pthread
20447 # option in a rather... idiosyncratic way
20449 if test "x$ax_pthread_clang" = "xyes"; then
20451 # Clang takes -pthread; it has never supported any other flag
20453 # (Note 1: This will need to be revisited if a system that Clang
20454 # supports has POSIX threads in a separate library. This tends not
20455 # to be the way of modern systems, but it's conceivable.)
20457 # (Note 2: On some systems, notably Darwin, -pthread is not needed
20458 # to get POSIX threads support; the API is always present and
20459 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
20460 # -pthread does define _REENTRANT, and while the Darwin headers
20461 # ignore this macro, third-party headers might not.)
20463 PTHREAD_CFLAGS="-pthread"
20464 PTHREAD_LIBS=
20466 ax_pthread_ok=yes
20468 # However, older versions of Clang make a point of warning the user
20469 # that, in an invocation where only linking and no compilation is
20470 # taking place, the -pthread option has no effect ("argument unused
20471 # during compilation"). They expect -pthread to be passed in only
20472 # when source code is being compiled.
20474 # Problem is, this is at odds with the way Automake and most other
20475 # C build frameworks function, which is that the same flags used in
20476 # compilation (CFLAGS) are also used in linking. Many systems
20477 # supported by AX_PTHREAD require exactly this for POSIX threads
20478 # support, and in fact it is often not straightforward to specify a
20479 # flag that is used only in the compilation phase and not in
20480 # linking. Such a scenario is extremely rare in practice.
20482 # Even though use of the -pthread flag in linking would only print
20483 # a warning, this can be a nuisance for well-run software projects
20484 # that build with -Werror. So if the active version of Clang has
20485 # this misfeature, we search for an option to squash it.
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20488 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20489 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
20490 $as_echo_n "(cached) " >&6
20491 else
20492 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20493 # Create an alternate version of $ac_link that compiles and
20494 # links in two steps (.c -> .o, .o -> exe) instead of one
20495 # (.c -> exe), because the warning occurs only in the second
20496 # step
20497 ax_pthread_save_ac_link="$ac_link"
20498 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20499 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20500 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20501 ax_pthread_save_CFLAGS="$CFLAGS"
20502 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20503 if test "x$ax_pthread_try" = "xunknown"; then :
20504 break
20506 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20507 ac_link="$ax_pthread_save_ac_link"
20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h. */
20510 int main(void){return 0;}
20511 _ACEOF
20512 if ac_fn_c_try_link "$LINENO"; then :
20513 ac_link="$ax_pthread_2step_ac_link"
20514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h. */
20516 int main(void){return 0;}
20517 _ACEOF
20518 if ac_fn_c_try_link "$LINENO"; then :
20519 break
20521 rm -f core conftest.err conftest.$ac_objext \
20522 conftest$ac_exeext conftest.$ac_ext
20525 rm -f core conftest.err conftest.$ac_objext \
20526 conftest$ac_exeext conftest.$ac_ext
20527 done
20528 ac_link="$ax_pthread_save_ac_link"
20529 CFLAGS="$ax_pthread_save_CFLAGS"
20530 if test "x$ax_pthread_try" = "x"; then :
20531 ax_pthread_try=no
20533 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20537 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20539 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20540 no | unknown) ;;
20541 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20542 esac
20544 fi # $ax_pthread_clang = yes
20546 if test "x$ax_pthread_ok" = "xno"; then
20547 for ax_pthread_try_flag in $ax_pthread_flags; do
20549 case $ax_pthread_try_flag in
20550 none)
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20552 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20555 -mt,pthread)
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20557 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20558 PTHREAD_CFLAGS="-mt"
20559 PTHREAD_LIBS="-lpthread"
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20564 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20565 PTHREAD_CFLAGS="$ax_pthread_try_flag"
20568 pthread-config)
20569 # Extract the first word of "pthread-config", so it can be a program name with args.
20570 set dummy pthread-config; ac_word=$2
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20572 $as_echo_n "checking for $ac_word... " >&6; }
20573 if ${ac_cv_prog_ax_pthread_config+:} false; then :
20574 $as_echo_n "(cached) " >&6
20575 else
20576 if test -n "$ax_pthread_config"; then
20577 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20578 else
20579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20580 for as_dir in $PATH
20582 IFS=$as_save_IFS
20583 test -z "$as_dir" && as_dir=.
20584 for ac_exec_ext in '' $ac_executable_extensions; do
20585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20586 ac_cv_prog_ax_pthread_config="yes"
20587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20588 break 2
20590 done
20591 done
20592 IFS=$as_save_IFS
20594 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20597 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20598 if test -n "$ax_pthread_config"; then
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20600 $as_echo "$ax_pthread_config" >&6; }
20601 else
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20603 $as_echo "no" >&6; }
20607 if test "x$ax_pthread_config" = "xno"; then :
20608 continue
20610 PTHREAD_CFLAGS="`pthread-config --cflags`"
20611 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20616 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20617 PTHREAD_LIBS="-l$ax_pthread_try_flag"
20619 esac
20621 ax_pthread_save_CFLAGS="$CFLAGS"
20622 ax_pthread_save_LIBS="$LIBS"
20623 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20624 LIBS="$PTHREAD_LIBS $LIBS"
20626 # Check for various functions. We must include pthread.h,
20627 # since some functions may be macros. (On the Sequent, we
20628 # need a special flag -Kthread to make this header compile.)
20629 # We check for pthread_join because it is in -lpthread on IRIX
20630 # while pthread_create is in libc. We check for pthread_attr_init
20631 # due to DEC craziness with -lpthreads. We check for
20632 # pthread_cleanup_push because it is one of the few pthread
20633 # functions on Solaris that doesn't have a non-functional libc stub.
20634 # We try pthread_create on general principles.
20636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20637 /* end confdefs.h. */
20638 #include <pthread.h>
20639 # if $ax_pthread_check_cond
20640 # error "$ax_pthread_check_macro must be defined"
20641 # endif
20642 static void routine(void *a) { a = 0; }
20643 static void *start_routine(void *a) { return a; }
20645 main ()
20647 pthread_t th; pthread_attr_t attr;
20648 pthread_create(&th, 0, start_routine, 0);
20649 pthread_join(th, 0);
20650 pthread_attr_init(&attr);
20651 pthread_cleanup_push(routine, 0);
20652 pthread_cleanup_pop(0) /* ; */
20654 return 0;
20656 _ACEOF
20657 if ac_fn_c_try_link "$LINENO"; then :
20658 ax_pthread_ok=yes
20660 rm -f core conftest.err conftest.$ac_objext \
20661 conftest$ac_exeext conftest.$ac_ext
20663 CFLAGS="$ax_pthread_save_CFLAGS"
20664 LIBS="$ax_pthread_save_LIBS"
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20667 $as_echo "$ax_pthread_ok" >&6; }
20668 if test "x$ax_pthread_ok" = "xyes"; then :
20669 break
20672 PTHREAD_LIBS=""
20673 PTHREAD_CFLAGS=""
20674 done
20677 # Various other checks:
20678 if test "x$ax_pthread_ok" = "xyes"; then
20679 ax_pthread_save_CFLAGS="$CFLAGS"
20680 ax_pthread_save_LIBS="$LIBS"
20681 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20682 LIBS="$PTHREAD_LIBS $LIBS"
20684 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20686 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20687 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
20688 $as_echo_n "(cached) " >&6
20689 else
20690 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20691 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20693 /* end confdefs.h. */
20694 #include <pthread.h>
20696 main ()
20698 int attr = $ax_pthread_attr; return attr /* ; */
20700 return 0;
20702 _ACEOF
20703 if ac_fn_c_try_link "$LINENO"; then :
20704 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20706 rm -f core conftest.err conftest.$ac_objext \
20707 conftest$ac_exeext conftest.$ac_ext
20708 done
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20712 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20713 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20714 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20715 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20717 cat >>confdefs.h <<_ACEOF
20718 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20719 _ACEOF
20721 ax_pthread_joinable_attr_defined=yes
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20726 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20727 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
20728 $as_echo_n "(cached) " >&6
20729 else
20730 ax_cv_PTHREAD_SPECIAL_FLAGS=no
20731 case $host_os in
20732 solaris*)
20733 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20735 esac
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20739 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20740 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20741 test "x$ax_pthread_special_flags_added" != "xyes"; then :
20742 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20743 ax_pthread_special_flags_added=yes
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20747 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20748 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
20749 $as_echo_n "(cached) " >&6
20750 else
20751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752 /* end confdefs.h. */
20753 #include <pthread.h>
20755 main ()
20757 int i = PTHREAD_PRIO_INHERIT;
20759 return 0;
20761 _ACEOF
20762 if ac_fn_c_try_link "$LINENO"; then :
20763 ax_cv_PTHREAD_PRIO_INHERIT=yes
20764 else
20765 ax_cv_PTHREAD_PRIO_INHERIT=no
20767 rm -f core conftest.err conftest.$ac_objext \
20768 conftest$ac_exeext conftest.$ac_ext
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20772 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20773 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20774 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20776 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20778 ax_pthread_prio_inherit_defined=yes
20782 CFLAGS="$ax_pthread_save_CFLAGS"
20783 LIBS="$ax_pthread_save_LIBS"
20785 # More AIX lossage: compile with *_r variant
20786 if test "x$GCC" != "xyes"; then
20787 case $host_os in
20788 aix*)
20789 case "x/$CC" in #(
20790 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20791 #handle absolute path differently from PATH based program lookup
20792 case "x$CC" in #(
20793 x/*) :
20794 if as_fn_executable_p ${CC}_r; then :
20795 PTHREAD_CC="${CC}_r"
20796 fi ;; #(
20797 *) :
20798 for ac_prog in ${CC}_r
20800 # Extract the first word of "$ac_prog", so it can be a program name with args.
20801 set dummy $ac_prog; ac_word=$2
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20803 $as_echo_n "checking for $ac_word... " >&6; }
20804 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20805 $as_echo_n "(cached) " >&6
20806 else
20807 if test -n "$PTHREAD_CC"; then
20808 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20809 else
20810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20811 for as_dir in $PATH
20813 IFS=$as_save_IFS
20814 test -z "$as_dir" && as_dir=.
20815 for ac_exec_ext in '' $ac_executable_extensions; do
20816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20817 ac_cv_prog_PTHREAD_CC="$ac_prog"
20818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20819 break 2
20821 done
20822 done
20823 IFS=$as_save_IFS
20827 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20828 if test -n "$PTHREAD_CC"; then
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20830 $as_echo "$PTHREAD_CC" >&6; }
20831 else
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20833 $as_echo "no" >&6; }
20837 test -n "$PTHREAD_CC" && break
20838 done
20839 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20841 esac ;; #(
20842 *) :
20844 esac
20846 esac
20850 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20856 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20857 if test "x$ax_pthread_ok" = "xyes"; then
20858 threads=yes
20860 else
20861 ax_pthread_ok=no
20862 threads=no
20864 ac_ext=cpp
20865 ac_cpp='$CXXCPP $CPPFLAGS'
20866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20871 save_LIBS="$LIBS"
20872 LIBS="$PTHREAD_LIBS $LIBS"
20873 save_CXXFLAGS="$CXXFLAGS"
20874 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
20876 $as_echo_n "checking for std::thread... " >&6; }
20877 if ${gdb_cv_cxx_std_thread+:} false; then :
20878 $as_echo_n "(cached) " >&6
20879 else
20880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20881 /* end confdefs.h. */
20882 #if defined (__MINGW32__) || defined (__CYGWIN__)
20883 # ifdef _WIN32_WINNT
20884 # if _WIN32_WINNT < 0x0501
20885 # undef _WIN32_WINNT
20886 # define _WIN32_WINNT 0x0501
20887 # endif
20888 # else
20889 # define _WIN32_WINNT 0x0501
20890 # endif
20891 #endif /* __MINGW32__ || __CYGWIN__ */
20892 #include <thread>
20893 #include <mutex>
20894 void callback() { }
20896 main ()
20898 std::thread t(callback);
20900 return 0;
20902 _ACEOF
20903 if ac_fn_cxx_try_compile "$LINENO"; then :
20904 gdb_cv_cxx_std_thread=yes
20905 else
20906 gdb_cv_cxx_std_thread=no
20908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
20911 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
20913 if test "$threads" = "yes"; then
20914 # This check must be here, while LIBS includes any necessary
20915 # threading library.
20916 for ac_func in pthread_sigmask pthread_setname_np
20917 do :
20918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20919 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
20920 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20921 cat >>confdefs.h <<_ACEOF
20922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20923 _ACEOF
20926 done
20929 LIBS="$save_LIBS"
20930 CXXFLAGS="$save_CXXFLAGS"
20932 if test "$want_threading" != "no"; then
20933 if test "$gdb_cv_cxx_std_thread" = "yes"; then
20935 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
20937 else
20938 if test "$want_threading" = "yes"; then
20939 as_fn_error $? "std::thread does not work; disable threading" "$LINENO" 5
20940 else
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: std::thread does not work; disabling threading" >&5
20942 $as_echo "$as_me: WARNING: std::thread does not work; disabling threading" >&2;}
20946 ac_ext=c
20947 ac_cpp='$CPP $CPPFLAGS'
20948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
20954 $as_echo_n "checking for sigsetjmp... " >&6; }
20955 if ${gdb_cv_func_sigsetjmp+:} false; then :
20956 $as_echo_n "(cached) " >&6
20957 else
20958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20959 /* end confdefs.h. */
20960 #include <setjmp.h>
20962 main ()
20964 sigjmp_buf env;
20965 while (! sigsetjmp (env, 1))
20966 siglongjmp (env, 1);
20969 return 0;
20971 _ACEOF
20972 if ac_fn_c_try_compile "$LINENO"; then :
20973 gdb_cv_func_sigsetjmp=yes
20974 else
20975 gdb_cv_func_sigsetjmp=no
20978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
20982 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
20983 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
20985 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
20990 # Check whether --with-intel_pt was given.
20991 if test "${with_intel_pt+set}" = set; then :
20992 withval=$with_intel_pt;
20993 else
20994 with_intel_pt=auto
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
20998 $as_echo_n "checking whether to use intel pt... " >&6; }
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
21000 $as_echo "$with_intel_pt" >&6; }
21002 if test "${with_intel_pt}" = no; then
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
21004 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
21005 HAVE_LIBIPT=no
21006 else
21007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21008 /* end confdefs.h. */
21010 #include <linux/perf_event.h>
21011 #ifndef PERF_ATTR_SIZE_VER5
21012 # error
21013 #endif
21015 _ACEOF
21016 if ac_fn_c_try_cpp "$LINENO"; then :
21017 perf_event=yes
21018 else
21019 perf_event=no
21021 rm -f conftest.err conftest.i conftest.$ac_ext
21022 if test "$perf_event" != yes; then
21023 if test "$with_intel_pt" = yes; then
21024 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
21025 else
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
21027 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
21039 use_additional=yes
21041 acl_save_prefix="$prefix"
21042 prefix="$acl_final_prefix"
21043 acl_save_exec_prefix="$exec_prefix"
21044 exec_prefix="$acl_final_exec_prefix"
21046 eval additional_includedir=\"$includedir\"
21047 eval additional_libdir=\"$libdir\"
21049 exec_prefix="$acl_save_exec_prefix"
21050 prefix="$acl_save_prefix"
21053 # Check whether --with-libipt-prefix was given.
21054 if test "${with_libipt_prefix+set}" = set; then :
21055 withval=$with_libipt_prefix;
21056 if test "X$withval" = "Xno"; then
21057 use_additional=no
21058 else
21059 if test "X$withval" = "X"; then
21061 acl_save_prefix="$prefix"
21062 prefix="$acl_final_prefix"
21063 acl_save_exec_prefix="$exec_prefix"
21064 exec_prefix="$acl_final_exec_prefix"
21066 eval additional_includedir=\"$includedir\"
21067 eval additional_libdir=\"$libdir\"
21069 exec_prefix="$acl_save_exec_prefix"
21070 prefix="$acl_save_prefix"
21072 else
21073 additional_includedir="$withval/include"
21074 additional_libdir="$withval/lib"
21081 # Check whether --with-libipt-type was given.
21082 if test "${with_libipt_type+set}" = set; then :
21083 withval=$with_libipt_type; with_libipt_type=$withval
21084 else
21085 with_libipt_type=auto
21088 lib_type=`eval echo \$with_libipt_type`
21090 LIBIPT=
21091 LTLIBIPT=
21092 INCIPT=
21093 rpathdirs=
21094 ltrpathdirs=
21095 names_already_handled=
21096 names_next_round='ipt '
21097 while test -n "$names_next_round"; do
21098 names_this_round="$names_next_round"
21099 names_next_round=
21100 for name in $names_this_round; do
21101 already_handled=
21102 for n in $names_already_handled; do
21103 if test "$n" = "$name"; then
21104 already_handled=yes
21105 break
21107 done
21108 if test -z "$already_handled"; then
21109 names_already_handled="$names_already_handled $name"
21110 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21111 eval value=\"\$HAVE_LIB$uppername\"
21112 if test -n "$value"; then
21113 if test "$value" = yes; then
21114 eval value=\"\$LIB$uppername\"
21115 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
21116 eval value=\"\$LTLIB$uppername\"
21117 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
21118 else
21121 else
21122 found_dir=
21123 found_la=
21124 found_so=
21125 found_a=
21126 if test $use_additional = yes; then
21127 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21128 found_dir="$additional_libdir"
21129 found_so="$additional_libdir/lib$name.$shlibext"
21130 if test -f "$additional_libdir/lib$name.la"; then
21131 found_la="$additional_libdir/lib$name.la"
21133 elif test x$lib_type != xshared; then
21134 if test -f "$additional_libdir/lib$name.$libext"; then
21135 found_dir="$additional_libdir"
21136 found_a="$additional_libdir/lib$name.$libext"
21137 if test -f "$additional_libdir/lib$name.la"; then
21138 found_la="$additional_libdir/lib$name.la"
21143 if test "X$found_dir" = "X"; then
21144 for x in $LDFLAGS $LTLIBIPT; do
21146 acl_save_prefix="$prefix"
21147 prefix="$acl_final_prefix"
21148 acl_save_exec_prefix="$exec_prefix"
21149 exec_prefix="$acl_final_exec_prefix"
21150 eval x=\"$x\"
21151 exec_prefix="$acl_save_exec_prefix"
21152 prefix="$acl_save_prefix"
21154 case "$x" in
21155 -L*)
21156 dir=`echo "X$x" | sed -e 's/^X-L//'`
21157 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21158 found_dir="$dir"
21159 found_so="$dir/lib$name.$shlibext"
21160 if test -f "$dir/lib$name.la"; then
21161 found_la="$dir/lib$name.la"
21163 elif test x$lib_type != xshared; then
21164 if test -f "$dir/lib$name.$libext"; then
21165 found_dir="$dir"
21166 found_a="$dir/lib$name.$libext"
21167 if test -f "$dir/lib$name.la"; then
21168 found_la="$dir/lib$name.la"
21173 esac
21174 if test "X$found_dir" != "X"; then
21175 break
21177 done
21179 if test "X$found_dir" != "X"; then
21180 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
21181 if test "X$found_so" != "X"; then
21182 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21183 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
21184 else
21185 haveit=
21186 for x in $ltrpathdirs; do
21187 if test "X$x" = "X$found_dir"; then
21188 haveit=yes
21189 break
21191 done
21192 if test -z "$haveit"; then
21193 ltrpathdirs="$ltrpathdirs $found_dir"
21195 if test "$hardcode_direct" = yes; then
21196 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
21197 else
21198 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21199 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
21200 haveit=
21201 for x in $rpathdirs; do
21202 if test "X$x" = "X$found_dir"; then
21203 haveit=yes
21204 break
21206 done
21207 if test -z "$haveit"; then
21208 rpathdirs="$rpathdirs $found_dir"
21210 else
21211 haveit=
21212 for x in $LDFLAGS $LIBIPT; do
21214 acl_save_prefix="$prefix"
21215 prefix="$acl_final_prefix"
21216 acl_save_exec_prefix="$exec_prefix"
21217 exec_prefix="$acl_final_exec_prefix"
21218 eval x=\"$x\"
21219 exec_prefix="$acl_save_exec_prefix"
21220 prefix="$acl_save_prefix"
21222 if test "X$x" = "X-L$found_dir"; then
21223 haveit=yes
21224 break
21226 done
21227 if test -z "$haveit"; then
21228 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
21230 if test "$hardcode_minus_L" != no; then
21231 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
21232 else
21233 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
21238 else
21239 if test "X$found_a" != "X"; then
21240 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
21241 else
21242 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
21245 additional_includedir=
21246 case "$found_dir" in
21247 */lib | */lib/)
21248 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21249 additional_includedir="$basedir/include"
21251 esac
21252 if test "X$additional_includedir" != "X"; then
21253 if test "X$additional_includedir" != "X/usr/include"; then
21254 haveit=
21255 if test "X$additional_includedir" = "X/usr/local/include"; then
21256 if test -n "$GCC"; then
21257 case $host_os in
21258 linux*) haveit=yes;;
21259 esac
21262 if test -z "$haveit"; then
21263 for x in $CPPFLAGS $INCIPT; do
21265 acl_save_prefix="$prefix"
21266 prefix="$acl_final_prefix"
21267 acl_save_exec_prefix="$exec_prefix"
21268 exec_prefix="$acl_final_exec_prefix"
21269 eval x=\"$x\"
21270 exec_prefix="$acl_save_exec_prefix"
21271 prefix="$acl_save_prefix"
21273 if test "X$x" = "X-I$additional_includedir"; then
21274 haveit=yes
21275 break
21277 done
21278 if test -z "$haveit"; then
21279 if test -d "$additional_includedir"; then
21280 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
21286 if test -n "$found_la"; then
21287 save_libdir="$libdir"
21288 case "$found_la" in
21289 */* | *\\*) . "$found_la" ;;
21290 *) . "./$found_la" ;;
21291 esac
21292 libdir="$save_libdir"
21293 for dep in $dependency_libs; do
21294 case "$dep" in
21295 -L*)
21296 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21297 if test "X$additional_libdir" != "X/usr/lib"; then
21298 haveit=
21299 if test "X$additional_libdir" = "X/usr/local/lib"; then
21300 if test -n "$GCC"; then
21301 case $host_os in
21302 linux*) haveit=yes;;
21303 esac
21306 if test -z "$haveit"; then
21307 haveit=
21308 for x in $LDFLAGS $LIBIPT; do
21310 acl_save_prefix="$prefix"
21311 prefix="$acl_final_prefix"
21312 acl_save_exec_prefix="$exec_prefix"
21313 exec_prefix="$acl_final_exec_prefix"
21314 eval x=\"$x\"
21315 exec_prefix="$acl_save_exec_prefix"
21316 prefix="$acl_save_prefix"
21318 if test "X$x" = "X-L$additional_libdir"; then
21319 haveit=yes
21320 break
21322 done
21323 if test -z "$haveit"; then
21324 if test -d "$additional_libdir"; then
21325 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
21328 haveit=
21329 for x in $LDFLAGS $LTLIBIPT; do
21331 acl_save_prefix="$prefix"
21332 prefix="$acl_final_prefix"
21333 acl_save_exec_prefix="$exec_prefix"
21334 exec_prefix="$acl_final_exec_prefix"
21335 eval x=\"$x\"
21336 exec_prefix="$acl_save_exec_prefix"
21337 prefix="$acl_save_prefix"
21339 if test "X$x" = "X-L$additional_libdir"; then
21340 haveit=yes
21341 break
21343 done
21344 if test -z "$haveit"; then
21345 if test -d "$additional_libdir"; then
21346 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
21352 -R*)
21353 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21354 if test "$enable_rpath" != no; then
21355 haveit=
21356 for x in $rpathdirs; do
21357 if test "X$x" = "X$dir"; then
21358 haveit=yes
21359 break
21361 done
21362 if test -z "$haveit"; then
21363 rpathdirs="$rpathdirs $dir"
21365 haveit=
21366 for x in $ltrpathdirs; do
21367 if test "X$x" = "X$dir"; then
21368 haveit=yes
21369 break
21371 done
21372 if test -z "$haveit"; then
21373 ltrpathdirs="$ltrpathdirs $dir"
21377 -l*)
21378 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21380 *.la)
21381 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21384 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
21385 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
21387 esac
21388 done
21390 else
21391 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
21392 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
21393 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
21394 else
21395 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
21396 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
21401 done
21402 done
21403 if test "X$rpathdirs" != "X"; then
21404 if test -n "$hardcode_libdir_separator"; then
21405 alldirs=
21406 for found_dir in $rpathdirs; do
21407 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21408 done
21409 acl_save_libdir="$libdir"
21410 libdir="$alldirs"
21411 eval flag=\"$hardcode_libdir_flag_spec\"
21412 libdir="$acl_save_libdir"
21413 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
21414 else
21415 for found_dir in $rpathdirs; do
21416 acl_save_libdir="$libdir"
21417 libdir="$found_dir"
21418 eval flag=\"$hardcode_libdir_flag_spec\"
21419 libdir="$acl_save_libdir"
21420 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
21421 done
21424 if test "X$ltrpathdirs" != "X"; then
21425 for found_dir in $ltrpathdirs; do
21426 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
21427 done
21431 ac_save_CPPFLAGS="$CPPFLAGS"
21433 for element in $INCIPT; do
21434 haveit=
21435 for x in $CPPFLAGS; do
21437 acl_save_prefix="$prefix"
21438 prefix="$acl_final_prefix"
21439 acl_save_exec_prefix="$exec_prefix"
21440 exec_prefix="$acl_final_exec_prefix"
21441 eval x=\"$x\"
21442 exec_prefix="$acl_save_exec_prefix"
21443 prefix="$acl_save_prefix"
21445 if test "X$x" = "X$element"; then
21446 haveit=yes
21447 break
21449 done
21450 if test -z "$haveit"; then
21451 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21453 done
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
21457 $as_echo_n "checking for libipt... " >&6; }
21458 if ${ac_cv_libipt+:} false; then :
21459 $as_echo_n "(cached) " >&6
21460 else
21462 ac_save_LIBS="$LIBS"
21463 LIBS="$LIBS $LIBIPT"
21464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21465 /* end confdefs.h. */
21466 #include "intel-pt.h"
21468 main ()
21470 pt_insn_alloc_decoder (0);
21472 return 0;
21474 _ACEOF
21475 if ac_fn_c_try_link "$LINENO"; then :
21476 ac_cv_libipt=yes
21477 else
21478 ac_cv_libipt=no
21480 rm -f core conftest.err conftest.$ac_objext \
21481 conftest$ac_exeext conftest.$ac_ext
21482 LIBS="$ac_save_LIBS"
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
21486 $as_echo "$ac_cv_libipt" >&6; }
21487 if test "$ac_cv_libipt" = yes; then
21488 HAVE_LIBIPT=yes
21490 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
21493 $as_echo_n "checking how to link with libipt... " >&6; }
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
21495 $as_echo "$LIBIPT" >&6; }
21496 else
21497 HAVE_LIBIPT=no
21498 CPPFLAGS="$ac_save_CPPFLAGS"
21499 LIBIPT=
21500 LTLIBIPT=
21508 if test "$HAVE_LIBIPT" != yes; then
21509 if test "$with_intel_pt" = yes; then
21510 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
21511 else
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
21513 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
21515 else
21516 save_LIBS=$LIBS
21517 LIBS="$LIBS $LIBIPT"
21518 for ac_func in pt_insn_event
21519 do :
21520 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
21521 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
21522 cat >>confdefs.h <<_ACEOF
21523 #define HAVE_PT_INSN_EVENT 1
21524 _ACEOF
21527 done
21529 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
21531 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
21533 cat >>confdefs.h <<_ACEOF
21534 #define HAVE_STRUCT_PT_INSN_ENABLED 1
21535 _ACEOF
21539 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
21541 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
21543 cat >>confdefs.h <<_ACEOF
21544 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
21545 _ACEOF
21550 ac_fn_c_check_member "$LINENO" "struct pt_event" "variant.ptwrite" "ac_cv_member_struct_pt_event_variant_ptwrite" "#include <intel-pt.h>
21552 if test "x$ac_cv_member_struct_pt_event_variant_ptwrite" = xyes; then :
21554 cat >>confdefs.h <<_ACEOF
21555 #define HAVE_STRUCT_PT_EVENT_VARIANT_PTWRITE 1
21556 _ACEOF
21561 LIBS=$save_LIBS
21565 # Check if the compiler and runtime support printing long longs.
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
21568 $as_echo_n "checking for long long support in printf... " >&6; }
21569 if ${gdb_cv_printf_has_long_long+:} false; then :
21570 $as_echo_n "(cached) " >&6
21571 else
21572 if test "$cross_compiling" = yes; then :
21573 gdb_cv_printf_has_long_long=no
21574 else
21575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21576 /* end confdefs.h. */
21577 $ac_includes_default
21579 main ()
21581 char buf[32];
21582 long long l = 0;
21583 l = (l << 16) + 0x0123;
21584 l = (l << 16) + 0x4567;
21585 l = (l << 16) + 0x89ab;
21586 l = (l << 16) + 0xcdef;
21587 sprintf (buf, "0x%016llx", l);
21588 return (strcmp ("0x0123456789abcdef", buf));
21590 return 0;
21592 _ACEOF
21593 if ac_fn_c_try_run "$LINENO"; then :
21594 gdb_cv_printf_has_long_long=yes
21595 else
21596 gdb_cv_printf_has_long_long=no
21598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21599 conftest.$ac_objext conftest.beam conftest.$ac_ext
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
21604 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
21605 if test "$gdb_cv_printf_has_long_long" = yes; then
21607 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
21612 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
21614 for ac_header in sys/procfs.h
21615 do :
21616 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
21617 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
21618 cat >>confdefs.h <<_ACEOF
21619 #define HAVE_SYS_PROCFS_H 1
21620 _ACEOF
21624 done
21626 if test "$ac_cv_header_sys_procfs_h" = yes; then
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
21629 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
21630 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
21631 $as_echo_n "(cached) " >&6
21632 else
21633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21634 /* end confdefs.h. */
21636 #define _SYSCALL32
21637 #include <sys/procfs.h>
21639 main ()
21641 gregset_t avar
21643 return 0;
21645 _ACEOF
21646 if ac_fn_c_try_compile "$LINENO"; then :
21647 bfd_cv_have_sys_procfs_type_gregset_t=yes
21648 else
21649 bfd_cv_have_sys_procfs_type_gregset_t=no
21652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
21657 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21661 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
21665 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
21666 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
21667 $as_echo_n "(cached) " >&6
21668 else
21669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21670 /* end confdefs.h. */
21672 #define _SYSCALL32
21673 #include <sys/procfs.h>
21675 main ()
21677 fpregset_t avar
21679 return 0;
21681 _ACEOF
21682 if ac_fn_c_try_compile "$LINENO"; then :
21683 bfd_cv_have_sys_procfs_type_fpregset_t=yes
21684 else
21685 bfd_cv_have_sys_procfs_type_fpregset_t=no
21688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21691 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
21693 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21697 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
21701 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
21702 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
21703 $as_echo_n "(cached) " >&6
21704 else
21705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21706 /* end confdefs.h. */
21708 #define _SYSCALL32
21709 #include <sys/procfs.h>
21711 main ()
21713 prgregset_t avar
21715 return 0;
21717 _ACEOF
21718 if ac_fn_c_try_compile "$LINENO"; then :
21719 bfd_cv_have_sys_procfs_type_prgregset_t=yes
21720 else
21721 bfd_cv_have_sys_procfs_type_prgregset_t=no
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21727 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21729 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21733 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
21737 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
21738 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
21739 $as_echo_n "(cached) " >&6
21740 else
21741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21742 /* end confdefs.h. */
21744 #define _SYSCALL32
21745 #include <sys/procfs.h>
21747 main ()
21749 prfpregset_t avar
21751 return 0;
21753 _ACEOF
21754 if ac_fn_c_try_compile "$LINENO"; then :
21755 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
21756 else
21757 bfd_cv_have_sys_procfs_type_prfpregset_t=no
21760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21763 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21765 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21769 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
21773 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
21774 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
21775 $as_echo_n "(cached) " >&6
21776 else
21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h. */
21780 #define _SYSCALL32
21781 #include <sys/procfs.h>
21783 main ()
21785 prgregset32_t avar
21787 return 0;
21789 _ACEOF
21790 if ac_fn_c_try_compile "$LINENO"; then :
21791 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
21792 else
21793 bfd_cv_have_sys_procfs_type_prgregset32_t=no
21796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21799 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21801 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21805 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
21809 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
21810 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
21811 $as_echo_n "(cached) " >&6
21812 else
21813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h. */
21816 #define _SYSCALL32
21817 #include <sys/procfs.h>
21819 main ()
21821 lwpid_t avar
21823 return 0;
21825 _ACEOF
21826 if ac_fn_c_try_compile "$LINENO"; then :
21827 bfd_cv_have_sys_procfs_type_lwpid_t=yes
21828 else
21829 bfd_cv_have_sys_procfs_type_lwpid_t=no
21832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21835 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
21837 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21841 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
21845 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
21846 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
21847 $as_echo_n "(cached) " >&6
21848 else
21849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21850 /* end confdefs.h. */
21852 #define _SYSCALL32
21853 #include <sys/procfs.h>
21855 main ()
21857 psaddr_t avar
21859 return 0;
21861 _ACEOF
21862 if ac_fn_c_try_compile "$LINENO"; then :
21863 bfd_cv_have_sys_procfs_type_psaddr_t=yes
21864 else
21865 bfd_cv_have_sys_procfs_type_psaddr_t=no
21868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21871 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
21873 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21877 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
21881 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
21882 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
21883 $as_echo_n "(cached) " >&6
21884 else
21885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21886 /* end confdefs.h. */
21888 #define _SYSCALL32
21889 #include <sys/procfs.h>
21891 main ()
21893 elf_fpregset_t avar
21895 return 0;
21897 _ACEOF
21898 if ac_fn_c_try_compile "$LINENO"; then :
21899 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
21900 else
21901 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
21904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21907 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
21909 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
21913 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
21917 # Check for xxhash
21919 # Check whether --with-xxhash was given.
21920 if test "${with_xxhash+set}" = set; then :
21921 withval=$with_xxhash;
21922 else
21923 with_xxhash=auto
21927 if test "x$with_xxhash" != "xno"; then
21936 use_additional=yes
21938 acl_save_prefix="$prefix"
21939 prefix="$acl_final_prefix"
21940 acl_save_exec_prefix="$exec_prefix"
21941 exec_prefix="$acl_final_exec_prefix"
21943 eval additional_includedir=\"$includedir\"
21944 eval additional_libdir=\"$libdir\"
21946 exec_prefix="$acl_save_exec_prefix"
21947 prefix="$acl_save_prefix"
21950 # Check whether --with-libxxhash-prefix was given.
21951 if test "${with_libxxhash_prefix+set}" = set; then :
21952 withval=$with_libxxhash_prefix;
21953 if test "X$withval" = "Xno"; then
21954 use_additional=no
21955 else
21956 if test "X$withval" = "X"; then
21958 acl_save_prefix="$prefix"
21959 prefix="$acl_final_prefix"
21960 acl_save_exec_prefix="$exec_prefix"
21961 exec_prefix="$acl_final_exec_prefix"
21963 eval additional_includedir=\"$includedir\"
21964 eval additional_libdir=\"$libdir\"
21966 exec_prefix="$acl_save_exec_prefix"
21967 prefix="$acl_save_prefix"
21969 else
21970 additional_includedir="$withval/include"
21971 additional_libdir="$withval/lib"
21978 # Check whether --with-libxxhash-type was given.
21979 if test "${with_libxxhash_type+set}" = set; then :
21980 withval=$with_libxxhash_type; with_libxxhash_type=$withval
21981 else
21982 with_libxxhash_type=auto
21985 lib_type=`eval echo \$with_libxxhash_type`
21987 LIBXXHASH=
21988 LTLIBXXHASH=
21989 INCXXHASH=
21990 rpathdirs=
21991 ltrpathdirs=
21992 names_already_handled=
21993 names_next_round='xxhash '
21994 while test -n "$names_next_round"; do
21995 names_this_round="$names_next_round"
21996 names_next_round=
21997 for name in $names_this_round; do
21998 already_handled=
21999 for n in $names_already_handled; do
22000 if test "$n" = "$name"; then
22001 already_handled=yes
22002 break
22004 done
22005 if test -z "$already_handled"; then
22006 names_already_handled="$names_already_handled $name"
22007 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22008 eval value=\"\$HAVE_LIB$uppername\"
22009 if test -n "$value"; then
22010 if test "$value" = yes; then
22011 eval value=\"\$LIB$uppername\"
22012 test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value"
22013 eval value=\"\$LTLIB$uppername\"
22014 test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
22015 else
22018 else
22019 found_dir=
22020 found_la=
22021 found_so=
22022 found_a=
22023 if test $use_additional = yes; then
22024 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
22025 found_dir="$additional_libdir"
22026 found_so="$additional_libdir/lib$name.$shlibext"
22027 if test -f "$additional_libdir/lib$name.la"; then
22028 found_la="$additional_libdir/lib$name.la"
22030 elif test x$lib_type != xshared; then
22031 if test -f "$additional_libdir/lib$name.$libext"; then
22032 found_dir="$additional_libdir"
22033 found_a="$additional_libdir/lib$name.$libext"
22034 if test -f "$additional_libdir/lib$name.la"; then
22035 found_la="$additional_libdir/lib$name.la"
22040 if test "X$found_dir" = "X"; then
22041 for x in $LDFLAGS $LTLIBXXHASH; do
22043 acl_save_prefix="$prefix"
22044 prefix="$acl_final_prefix"
22045 acl_save_exec_prefix="$exec_prefix"
22046 exec_prefix="$acl_final_exec_prefix"
22047 eval x=\"$x\"
22048 exec_prefix="$acl_save_exec_prefix"
22049 prefix="$acl_save_prefix"
22051 case "$x" in
22052 -L*)
22053 dir=`echo "X$x" | sed -e 's/^X-L//'`
22054 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
22055 found_dir="$dir"
22056 found_so="$dir/lib$name.$shlibext"
22057 if test -f "$dir/lib$name.la"; then
22058 found_la="$dir/lib$name.la"
22060 elif test x$lib_type != xshared; then
22061 if test -f "$dir/lib$name.$libext"; then
22062 found_dir="$dir"
22063 found_a="$dir/lib$name.$libext"
22064 if test -f "$dir/lib$name.la"; then
22065 found_la="$dir/lib$name.la"
22070 esac
22071 if test "X$found_dir" != "X"; then
22072 break
22074 done
22076 if test "X$found_dir" != "X"; then
22077 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
22078 if test "X$found_so" != "X"; then
22079 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22080 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22081 else
22082 haveit=
22083 for x in $ltrpathdirs; do
22084 if test "X$x" = "X$found_dir"; then
22085 haveit=yes
22086 break
22088 done
22089 if test -z "$haveit"; then
22090 ltrpathdirs="$ltrpathdirs $found_dir"
22092 if test "$hardcode_direct" = yes; then
22093 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22094 else
22095 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22096 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22097 haveit=
22098 for x in $rpathdirs; do
22099 if test "X$x" = "X$found_dir"; then
22100 haveit=yes
22101 break
22103 done
22104 if test -z "$haveit"; then
22105 rpathdirs="$rpathdirs $found_dir"
22107 else
22108 haveit=
22109 for x in $LDFLAGS $LIBXXHASH; do
22111 acl_save_prefix="$prefix"
22112 prefix="$acl_final_prefix"
22113 acl_save_exec_prefix="$exec_prefix"
22114 exec_prefix="$acl_final_exec_prefix"
22115 eval x=\"$x\"
22116 exec_prefix="$acl_save_exec_prefix"
22117 prefix="$acl_save_prefix"
22119 if test "X$x" = "X-L$found_dir"; then
22120 haveit=yes
22121 break
22123 done
22124 if test -z "$haveit"; then
22125 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
22127 if test "$hardcode_minus_L" != no; then
22128 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22129 else
22130 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
22135 else
22136 if test "X$found_a" != "X"; then
22137 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
22138 else
22139 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
22142 additional_includedir=
22143 case "$found_dir" in
22144 */lib | */lib/)
22145 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22146 additional_includedir="$basedir/include"
22148 esac
22149 if test "X$additional_includedir" != "X"; then
22150 if test "X$additional_includedir" != "X/usr/include"; then
22151 haveit=
22152 if test "X$additional_includedir" = "X/usr/local/include"; then
22153 if test -n "$GCC"; then
22154 case $host_os in
22155 linux*) haveit=yes;;
22156 esac
22159 if test -z "$haveit"; then
22160 for x in $CPPFLAGS $INCXXHASH; do
22162 acl_save_prefix="$prefix"
22163 prefix="$acl_final_prefix"
22164 acl_save_exec_prefix="$exec_prefix"
22165 exec_prefix="$acl_final_exec_prefix"
22166 eval x=\"$x\"
22167 exec_prefix="$acl_save_exec_prefix"
22168 prefix="$acl_save_prefix"
22170 if test "X$x" = "X-I$additional_includedir"; then
22171 haveit=yes
22172 break
22174 done
22175 if test -z "$haveit"; then
22176 if test -d "$additional_includedir"; then
22177 INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
22183 if test -n "$found_la"; then
22184 save_libdir="$libdir"
22185 case "$found_la" in
22186 */* | *\\*) . "$found_la" ;;
22187 *) . "./$found_la" ;;
22188 esac
22189 libdir="$save_libdir"
22190 for dep in $dependency_libs; do
22191 case "$dep" in
22192 -L*)
22193 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22194 if test "X$additional_libdir" != "X/usr/lib"; then
22195 haveit=
22196 if test "X$additional_libdir" = "X/usr/local/lib"; then
22197 if test -n "$GCC"; then
22198 case $host_os in
22199 linux*) haveit=yes;;
22200 esac
22203 if test -z "$haveit"; then
22204 haveit=
22205 for x in $LDFLAGS $LIBXXHASH; do
22207 acl_save_prefix="$prefix"
22208 prefix="$acl_final_prefix"
22209 acl_save_exec_prefix="$exec_prefix"
22210 exec_prefix="$acl_final_exec_prefix"
22211 eval x=\"$x\"
22212 exec_prefix="$acl_save_exec_prefix"
22213 prefix="$acl_save_prefix"
22215 if test "X$x" = "X-L$additional_libdir"; then
22216 haveit=yes
22217 break
22219 done
22220 if test -z "$haveit"; then
22221 if test -d "$additional_libdir"; then
22222 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
22225 haveit=
22226 for x in $LDFLAGS $LTLIBXXHASH; do
22228 acl_save_prefix="$prefix"
22229 prefix="$acl_final_prefix"
22230 acl_save_exec_prefix="$exec_prefix"
22231 exec_prefix="$acl_final_exec_prefix"
22232 eval x=\"$x\"
22233 exec_prefix="$acl_save_exec_prefix"
22234 prefix="$acl_save_prefix"
22236 if test "X$x" = "X-L$additional_libdir"; then
22237 haveit=yes
22238 break
22240 done
22241 if test -z "$haveit"; then
22242 if test -d "$additional_libdir"; then
22243 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
22249 -R*)
22250 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22251 if test "$enable_rpath" != no; then
22252 haveit=
22253 for x in $rpathdirs; do
22254 if test "X$x" = "X$dir"; then
22255 haveit=yes
22256 break
22258 done
22259 if test -z "$haveit"; then
22260 rpathdirs="$rpathdirs $dir"
22262 haveit=
22263 for x in $ltrpathdirs; do
22264 if test "X$x" = "X$dir"; then
22265 haveit=yes
22266 break
22268 done
22269 if test -z "$haveit"; then
22270 ltrpathdirs="$ltrpathdirs $dir"
22274 -l*)
22275 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22277 *.la)
22278 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22281 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep"
22282 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
22284 esac
22285 done
22287 else
22288 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
22289 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
22290 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
22291 else
22292 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
22293 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
22298 done
22299 done
22300 if test "X$rpathdirs" != "X"; then
22301 if test -n "$hardcode_libdir_separator"; then
22302 alldirs=
22303 for found_dir in $rpathdirs; do
22304 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22305 done
22306 acl_save_libdir="$libdir"
22307 libdir="$alldirs"
22308 eval flag=\"$hardcode_libdir_flag_spec\"
22309 libdir="$acl_save_libdir"
22310 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
22311 else
22312 for found_dir in $rpathdirs; do
22313 acl_save_libdir="$libdir"
22314 libdir="$found_dir"
22315 eval flag=\"$hardcode_libdir_flag_spec\"
22316 libdir="$acl_save_libdir"
22317 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
22318 done
22321 if test "X$ltrpathdirs" != "X"; then
22322 for found_dir in $ltrpathdirs; do
22323 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
22324 done
22328 ac_save_CPPFLAGS="$CPPFLAGS"
22330 for element in $INCXXHASH; do
22331 haveit=
22332 for x in $CPPFLAGS; do
22334 acl_save_prefix="$prefix"
22335 prefix="$acl_final_prefix"
22336 acl_save_exec_prefix="$exec_prefix"
22337 exec_prefix="$acl_final_exec_prefix"
22338 eval x=\"$x\"
22339 exec_prefix="$acl_save_exec_prefix"
22340 prefix="$acl_save_prefix"
22342 if test "X$x" = "X$element"; then
22343 haveit=yes
22344 break
22346 done
22347 if test -z "$haveit"; then
22348 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22350 done
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
22354 $as_echo_n "checking for libxxhash... " >&6; }
22355 if ${ac_cv_libxxhash+:} false; then :
22356 $as_echo_n "(cached) " >&6
22357 else
22359 ac_save_LIBS="$LIBS"
22360 LIBS="$LIBS $LIBXXHASH"
22361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22362 /* end confdefs.h. */
22363 #include <xxhash.h>
22365 main ()
22367 XXH32("foo", 3, 0);
22370 return 0;
22372 _ACEOF
22373 if ac_fn_c_try_link "$LINENO"; then :
22374 ac_cv_libxxhash=yes
22375 else
22376 ac_cv_libxxhash=no
22378 rm -f core conftest.err conftest.$ac_objext \
22379 conftest$ac_exeext conftest.$ac_ext
22380 LIBS="$ac_save_LIBS"
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
22384 $as_echo "$ac_cv_libxxhash" >&6; }
22385 if test "$ac_cv_libxxhash" = yes; then
22386 HAVE_LIBXXHASH=yes
22388 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
22391 $as_echo_n "checking how to link with libxxhash... " >&6; }
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
22393 $as_echo "$LIBXXHASH" >&6; }
22394 else
22395 HAVE_LIBXXHASH=no
22396 CPPFLAGS="$ac_save_CPPFLAGS"
22397 LIBXXHASH=
22398 LTLIBXXHASH=
22406 if test "$HAVE_LIBXXHASH" != yes; then
22407 if test "$with_xxhash" = yes; then
22408 as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
22411 if test "x$with_xxhash" = "xauto"; then
22412 with_xxhash="$HAVE_LIBXXHASH"
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
22417 $as_echo_n "checking whether to use xxhash... " >&6; }
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
22419 $as_echo "$with_xxhash" >&6; }
22422 # Dependency checking.
22423 rm -rf .tst 2>/dev/null
22424 mkdir .tst 2>/dev/null
22425 if test -d .tst; then
22426 am__leading_dot=.
22427 else
22428 am__leading_dot=_
22430 rmdir .tst 2>/dev/null
22432 DEPDIR="${am__leading_dot}deps"
22434 ac_config_commands="$ac_config_commands depdir"
22437 depcc="$CC" am_compiler_list=
22439 am_depcomp=$ac_aux_dir/depcomp
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
22441 $as_echo_n "checking dependency style of $depcc... " >&6; }
22442 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
22443 $as_echo_n "(cached) " >&6
22444 else
22445 if test -f "$am_depcomp"; then
22446 # We make a subdir and do the tests there. Otherwise we can end up
22447 # making bogus files that we don't know about and never remove. For
22448 # instance it was reported that on HP-UX the gcc test will end up
22449 # making a dummy file named `D' -- because `-MD' means `put the output
22450 # in D'.
22451 mkdir conftest.dir
22452 # Copy depcomp to subdir because otherwise we won't find it if we're
22453 # using a relative directory.
22454 cp "$am_depcomp" conftest.dir
22455 cd conftest.dir
22456 # We will build objects and dependencies in a subdirectory because
22457 # it helps to detect inapplicable dependency modes. For instance
22458 # both Tru64's cc and ICC support -MD to output dependencies as a
22459 # side effect of compilation, but ICC will put the dependencies in
22460 # the current directory while Tru64 will put them in the object
22461 # directory.
22462 mkdir sub
22464 am_cv_CC_dependencies_compiler_type=none
22465 if test "$am_compiler_list" = ""; then
22466 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22468 for depmode in $am_compiler_list; do
22469 if test $depmode = none; then break; fi
22471 $as_echo "$as_me:$LINENO: trying $depmode" >&5
22472 # Setup a source with many dependencies, because some compilers
22473 # like to wrap large dependency lists on column 80 (with \), and
22474 # we should not choose a depcomp mode which is confused by this.
22476 # We need to recreate these files for each test, as the compiler may
22477 # overwrite some of them when testing with obscure command lines.
22478 # This happens at least with the AIX C compiler.
22479 : > sub/conftest.c
22480 for i in 1 2 3 4 5 6; do
22481 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22482 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22483 # Solaris 8's {/usr,}/bin/sh.
22484 touch sub/conftst$i.h
22485 done
22486 echo "include sub/conftest.Po" > confmf
22488 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22489 # mode. It turns out that the SunPro C++ compiler does not properly
22490 # handle `-M -o', and we need to detect this.
22491 depcmd="depmode=$depmode \
22492 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22493 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22494 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
22495 echo "| $depcmd" | sed -e 's/ */ /g' >&5
22496 if env $depcmd > conftest.err 2>&1 &&
22497 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
22498 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
22499 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
22500 # icc doesn't choke on unknown options, it will just issue warnings
22501 # or remarks (even with -Werror). So we grep stderr for any message
22502 # that says an option was ignored or not supported.
22503 # When given -MP, icc 7.0 and 7.1 complain thusly:
22504 # icc: Command line warning: ignoring option '-M'; no argument required
22505 # The diagnosis changed in icc 8.0:
22506 # icc: Command line remark: option '-MP' not supported
22507 if (grep 'ignoring option' conftest.err ||
22508 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22509 am_cv_CC_dependencies_compiler_type=$depmode
22510 $as_echo "$as_me:$LINENO: success" >&5
22511 break
22514 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
22515 sed -e 's/^/| /' < conftest.err >&5
22516 done
22518 cd ..
22519 rm -rf conftest.dir
22520 else
22521 am_cv_CC_dependencies_compiler_type=none
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
22526 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
22527 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
22528 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
22529 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22534 # Since the first call to PKG_CHECK_MODULES may not happen (is guarded by
22535 # a condition), we must call PKG_PROG_PKG_CONFIG explicitly to probe for
22536 # pkg-config.
22544 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22545 if test -n "$ac_tool_prefix"; then
22546 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22547 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22549 $as_echo_n "checking for $ac_word... " >&6; }
22550 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22551 $as_echo_n "(cached) " >&6
22552 else
22553 case $PKG_CONFIG in
22554 [\\/]* | ?:[\\/]*)
22555 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22559 for as_dir in $PATH
22561 IFS=$as_save_IFS
22562 test -z "$as_dir" && as_dir=.
22563 for ac_exec_ext in '' $ac_executable_extensions; do
22564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22565 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22567 break 2
22569 done
22570 done
22571 IFS=$as_save_IFS
22574 esac
22576 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22577 if test -n "$PKG_CONFIG"; then
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22579 $as_echo "$PKG_CONFIG" >&6; }
22580 else
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22582 $as_echo "no" >&6; }
22587 if test -z "$ac_cv_path_PKG_CONFIG"; then
22588 ac_pt_PKG_CONFIG=$PKG_CONFIG
22589 # Extract the first word of "pkg-config", so it can be a program name with args.
22590 set dummy pkg-config; ac_word=$2
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22592 $as_echo_n "checking for $ac_word... " >&6; }
22593 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
22594 $as_echo_n "(cached) " >&6
22595 else
22596 case $ac_pt_PKG_CONFIG in
22597 [\\/]* | ?:[\\/]*)
22598 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22602 for as_dir in $PATH
22604 IFS=$as_save_IFS
22605 test -z "$as_dir" && as_dir=.
22606 for ac_exec_ext in '' $ac_executable_extensions; do
22607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22608 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22610 break 2
22612 done
22613 done
22614 IFS=$as_save_IFS
22617 esac
22619 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22620 if test -n "$ac_pt_PKG_CONFIG"; then
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22622 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22623 else
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22625 $as_echo "no" >&6; }
22628 if test "x$ac_pt_PKG_CONFIG" = x; then
22629 PKG_CONFIG=""
22630 else
22631 case $cross_compiling:$ac_tool_warned in
22632 yes:)
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22635 ac_tool_warned=yes ;;
22636 esac
22637 PKG_CONFIG=$ac_pt_PKG_CONFIG
22639 else
22640 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22644 if test -n "$PKG_CONFIG"; then
22645 _pkg_min_version=0.9.0
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22647 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22648 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22650 $as_echo "yes" >&6; }
22651 else
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22653 $as_echo "no" >&6; }
22654 PKG_CONFIG=""
22659 CONFIG_OBS=
22660 CONFIG_DEPS=
22661 CONFIG_SRCS=
22662 ENABLE_CFLAGS=
22664 CONFIG_ALL=
22665 CONFIG_CLEAN=
22666 CONFIG_INSTALL=
22667 CONFIG_UNINSTALL=
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
22670 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
22671 set x ${MAKE-make}
22672 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22673 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
22674 $as_echo_n "(cached) " >&6
22675 else
22676 cat >conftest.make <<\_ACEOF
22677 SHELL = /bin/sh
22678 all:
22679 @echo '@@@%%%=$(MAKE)=@@@%%%'
22680 _ACEOF
22681 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
22682 case `${MAKE-make} -f conftest.make 2>/dev/null` in
22683 *@@@%%%=?*=@@@%%%*)
22684 eval ac_cv_prog_make_${ac_make}_set=yes;;
22686 eval ac_cv_prog_make_${ac_make}_set=no;;
22687 esac
22688 rm -f conftest.make
22690 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22692 $as_echo "yes" >&6; }
22693 SET_MAKE=
22694 else
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22696 $as_echo "no" >&6; }
22697 SET_MAKE="MAKE=${MAKE-make}"
22700 # Find a good install program. We prefer a C program (faster),
22701 # so one script is as good as another. But avoid the broken or
22702 # incompatible versions:
22703 # SysV /etc/install, /usr/sbin/install
22704 # SunOS /usr/etc/install
22705 # IRIX /sbin/install
22706 # AIX /bin/install
22707 # AmigaOS /C/install, which installs bootblocks on floppy discs
22708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
22709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
22710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
22711 # OS/2's system install, which has a completely different semantic
22712 # ./install, which can be erroneously created by make from ./install.sh.
22713 # Reject install programs that cannot install multiple files.
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
22715 $as_echo_n "checking for a BSD-compatible install... " >&6; }
22716 if test -z "$INSTALL"; then
22717 if ${ac_cv_path_install+:} false; then :
22718 $as_echo_n "(cached) " >&6
22719 else
22720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22721 for as_dir in $PATH
22723 IFS=$as_save_IFS
22724 test -z "$as_dir" && as_dir=.
22725 # Account for people who put trailing slashes in PATH elements.
22726 case $as_dir/ in #((
22727 ./ | .// | /[cC]/* | \
22728 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
22729 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
22730 /usr/ucb/* ) ;;
22732 # OSF1 and SCO ODT 3.0 have their own names for install.
22733 # Don't use installbsd from OSF since it installs stuff as root
22734 # by default.
22735 for ac_prog in ginstall scoinst install; do
22736 for ac_exec_ext in '' $ac_executable_extensions; do
22737 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
22738 if test $ac_prog = install &&
22739 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22740 # AIX install. It has an incompatible calling convention.
22742 elif test $ac_prog = install &&
22743 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22744 # program-specific install script used by HP pwplus--don't use.
22746 else
22747 rm -rf conftest.one conftest.two conftest.dir
22748 echo one > conftest.one
22749 echo two > conftest.two
22750 mkdir conftest.dir
22751 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
22752 test -s conftest.one && test -s conftest.two &&
22753 test -s conftest.dir/conftest.one &&
22754 test -s conftest.dir/conftest.two
22755 then
22756 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
22757 break 3
22761 done
22762 done
22764 esac
22766 done
22767 IFS=$as_save_IFS
22769 rm -rf conftest.one conftest.two conftest.dir
22772 if test "${ac_cv_path_install+set}" = set; then
22773 INSTALL=$ac_cv_path_install
22774 else
22775 # As a last resort, use the slow shell script. Don't cache a
22776 # value for INSTALL within a source directory, because that will
22777 # break other packages using the cache if that directory is
22778 # removed, or if the value is a relative name.
22779 INSTALL=$ac_install_sh
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
22783 $as_echo "$INSTALL" >&6; }
22785 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22786 # It thinks the first close brace ends the variable substitution.
22787 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
22789 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
22791 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
22794 MKINSTALLDIRS=
22795 if test -n "$ac_aux_dir"; then
22796 case "$ac_aux_dir" in
22797 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
22798 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
22799 esac
22801 if test -z "$MKINSTALLDIRS"; then
22802 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
22808 $as_echo_n "checking whether NLS is requested... " >&6; }
22809 # Check whether --enable-nls was given.
22810 if test "${enable_nls+set}" = set; then :
22811 enableval=$enable_nls; USE_NLS=$enableval
22812 else
22813 USE_NLS=yes
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
22817 $as_echo "$USE_NLS" >&6; }
22824 # Prepare PATH_SEPARATOR.
22825 # The user is always right.
22826 if test "${PATH_SEPARATOR+set}" != set; then
22827 echo "#! /bin/sh" >conf$$.sh
22828 echo "exit 0" >>conf$$.sh
22829 chmod +x conf$$.sh
22830 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22831 PATH_SEPARATOR=';'
22832 else
22833 PATH_SEPARATOR=:
22835 rm -f conf$$.sh
22838 # Find out how to test for executable files. Don't use a zero-byte file,
22839 # as systems may use methods other than mode bits to determine executability.
22840 cat >conf$$.file <<_ASEOF
22841 #! /bin/sh
22842 exit 0
22843 _ASEOF
22844 chmod +x conf$$.file
22845 if test -x conf$$.file >/dev/null 2>&1; then
22846 ac_executable_p="test -x"
22847 else
22848 ac_executable_p="test -f"
22850 rm -f conf$$.file
22852 # Extract the first word of "msgfmt", so it can be a program name with args.
22853 set dummy msgfmt; ac_word=$2
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22855 $as_echo_n "checking for $ac_word... " >&6; }
22856 if ${ac_cv_path_MSGFMT+:} false; then :
22857 $as_echo_n "(cached) " >&6
22858 else
22859 case "$MSGFMT" in
22860 [\\/]* | ?:[\\/]*)
22861 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22864 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22865 for ac_dir in $PATH; do
22866 IFS="$ac_save_IFS"
22867 test -z "$ac_dir" && ac_dir=.
22868 for ac_exec_ext in '' $ac_executable_extensions; do
22869 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22870 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
22871 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22872 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22873 break 2
22876 done
22877 done
22878 IFS="$ac_save_IFS"
22879 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22881 esac
22883 MSGFMT="$ac_cv_path_MSGFMT"
22884 if test "$MSGFMT" != ":"; then
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
22886 $as_echo "$MSGFMT" >&6; }
22887 else
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22889 $as_echo "no" >&6; }
22892 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22893 set dummy gmsgfmt; ac_word=$2
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22895 $as_echo_n "checking for $ac_word... " >&6; }
22896 if ${ac_cv_path_GMSGFMT+:} false; then :
22897 $as_echo_n "(cached) " >&6
22898 else
22899 case $GMSGFMT in
22900 [\\/]* | ?:[\\/]*)
22901 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22905 for as_dir in $PATH
22907 IFS=$as_save_IFS
22908 test -z "$as_dir" && as_dir=.
22909 for ac_exec_ext in '' $ac_executable_extensions; do
22910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22911 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22913 break 2
22915 done
22916 done
22917 IFS=$as_save_IFS
22919 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22921 esac
22923 GMSGFMT=$ac_cv_path_GMSGFMT
22924 if test -n "$GMSGFMT"; then
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
22926 $as_echo "$GMSGFMT" >&6; }
22927 else
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22929 $as_echo "no" >&6; }
22935 # Prepare PATH_SEPARATOR.
22936 # The user is always right.
22937 if test "${PATH_SEPARATOR+set}" != set; then
22938 echo "#! /bin/sh" >conf$$.sh
22939 echo "exit 0" >>conf$$.sh
22940 chmod +x conf$$.sh
22941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22942 PATH_SEPARATOR=';'
22943 else
22944 PATH_SEPARATOR=:
22946 rm -f conf$$.sh
22949 # Find out how to test for executable files. Don't use a zero-byte file,
22950 # as systems may use methods other than mode bits to determine executability.
22951 cat >conf$$.file <<_ASEOF
22952 #! /bin/sh
22953 exit 0
22954 _ASEOF
22955 chmod +x conf$$.file
22956 if test -x conf$$.file >/dev/null 2>&1; then
22957 ac_executable_p="test -x"
22958 else
22959 ac_executable_p="test -f"
22961 rm -f conf$$.file
22963 # Extract the first word of "xgettext", so it can be a program name with args.
22964 set dummy xgettext; ac_word=$2
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22966 $as_echo_n "checking for $ac_word... " >&6; }
22967 if ${ac_cv_path_XGETTEXT+:} false; then :
22968 $as_echo_n "(cached) " >&6
22969 else
22970 case "$XGETTEXT" in
22971 [\\/]* | ?:[\\/]*)
22972 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22975 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22976 for ac_dir in $PATH; do
22977 IFS="$ac_save_IFS"
22978 test -z "$ac_dir" && ac_dir=.
22979 for ac_exec_ext in '' $ac_executable_extensions; do
22980 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22981 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22982 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22983 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22984 break 2
22987 done
22988 done
22989 IFS="$ac_save_IFS"
22990 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22992 esac
22994 XGETTEXT="$ac_cv_path_XGETTEXT"
22995 if test "$XGETTEXT" != ":"; then
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
22997 $as_echo "$XGETTEXT" >&6; }
22998 else
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23000 $as_echo "no" >&6; }
23003 rm -f messages.po
23006 # Prepare PATH_SEPARATOR.
23007 # The user is always right.
23008 if test "${PATH_SEPARATOR+set}" != set; then
23009 echo "#! /bin/sh" >conf$$.sh
23010 echo "exit 0" >>conf$$.sh
23011 chmod +x conf$$.sh
23012 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23013 PATH_SEPARATOR=';'
23014 else
23015 PATH_SEPARATOR=:
23017 rm -f conf$$.sh
23020 # Find out how to test for executable files. Don't use a zero-byte file,
23021 # as systems may use methods other than mode bits to determine executability.
23022 cat >conf$$.file <<_ASEOF
23023 #! /bin/sh
23024 exit 0
23025 _ASEOF
23026 chmod +x conf$$.file
23027 if test -x conf$$.file >/dev/null 2>&1; then
23028 ac_executable_p="test -x"
23029 else
23030 ac_executable_p="test -f"
23032 rm -f conf$$.file
23034 # Extract the first word of "msgmerge", so it can be a program name with args.
23035 set dummy msgmerge; ac_word=$2
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23037 $as_echo_n "checking for $ac_word... " >&6; }
23038 if ${ac_cv_path_MSGMERGE+:} false; then :
23039 $as_echo_n "(cached) " >&6
23040 else
23041 case "$MSGMERGE" in
23042 [\\/]* | ?:[\\/]*)
23043 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
23046 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23047 for ac_dir in $PATH; do
23048 IFS="$ac_save_IFS"
23049 test -z "$ac_dir" && ac_dir=.
23050 for ac_exec_ext in '' $ac_executable_extensions; do
23051 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23052 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
23053 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
23054 break 2
23057 done
23058 done
23059 IFS="$ac_save_IFS"
23060 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
23062 esac
23064 MSGMERGE="$ac_cv_path_MSGMERGE"
23065 if test "$MSGMERGE" != ":"; then
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
23067 $as_echo "$MSGMERGE" >&6; }
23068 else
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23070 $as_echo "no" >&6; }
23074 if test "$GMSGFMT" != ":"; then
23075 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
23076 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23078 else
23079 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
23081 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
23082 GMSGFMT=":"
23086 if test "$XGETTEXT" != ":"; then
23087 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
23088 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23090 else
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
23092 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
23093 XGETTEXT=":"
23095 rm -f messages.po
23098 ac_config_commands="$ac_config_commands default-1"
23107 use_additional=yes
23109 acl_save_prefix="$prefix"
23110 prefix="$acl_final_prefix"
23111 acl_save_exec_prefix="$exec_prefix"
23112 exec_prefix="$acl_final_exec_prefix"
23114 eval additional_includedir=\"$includedir\"
23115 eval additional_libdir=\"$libdir\"
23117 exec_prefix="$acl_save_exec_prefix"
23118 prefix="$acl_save_prefix"
23121 # Check whether --with-libiconv-prefix was given.
23122 if test "${with_libiconv_prefix+set}" = set; then :
23123 withval=$with_libiconv_prefix;
23124 if test "X$withval" = "Xno"; then
23125 use_additional=no
23126 else
23127 if test "X$withval" = "X"; then
23129 acl_save_prefix="$prefix"
23130 prefix="$acl_final_prefix"
23131 acl_save_exec_prefix="$exec_prefix"
23132 exec_prefix="$acl_final_exec_prefix"
23134 eval additional_includedir=\"$includedir\"
23135 eval additional_libdir=\"$libdir\"
23137 exec_prefix="$acl_save_exec_prefix"
23138 prefix="$acl_save_prefix"
23140 else
23141 additional_includedir="$withval/include"
23142 additional_libdir="$withval/lib"
23149 # Check whether --with-libiconv-type was given.
23150 if test "${with_libiconv_type+set}" = set; then :
23151 withval=$with_libiconv_type; with_libiconv_type=$withval
23152 else
23153 with_libiconv_type=auto
23156 lib_type=`eval echo \$with_libiconv_type`
23158 LIBICONV=
23159 LTLIBICONV=
23160 INCICONV=
23161 rpathdirs=
23162 ltrpathdirs=
23163 names_already_handled=
23164 names_next_round='iconv '
23165 while test -n "$names_next_round"; do
23166 names_this_round="$names_next_round"
23167 names_next_round=
23168 for name in $names_this_round; do
23169 already_handled=
23170 for n in $names_already_handled; do
23171 if test "$n" = "$name"; then
23172 already_handled=yes
23173 break
23175 done
23176 if test -z "$already_handled"; then
23177 names_already_handled="$names_already_handled $name"
23178 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23179 eval value=\"\$HAVE_LIB$uppername\"
23180 if test -n "$value"; then
23181 if test "$value" = yes; then
23182 eval value=\"\$LIB$uppername\"
23183 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
23184 eval value=\"\$LTLIB$uppername\"
23185 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
23186 else
23189 else
23190 found_dir=
23191 found_la=
23192 found_so=
23193 found_a=
23194 if test $use_additional = yes; then
23195 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
23196 found_dir="$additional_libdir"
23197 found_so="$additional_libdir/lib$name.$shlibext"
23198 if test -f "$additional_libdir/lib$name.la"; then
23199 found_la="$additional_libdir/lib$name.la"
23201 elif test x$lib_type != xshared; then
23202 if test -f "$additional_libdir/lib$name.$libext"; then
23203 found_dir="$additional_libdir"
23204 found_a="$additional_libdir/lib$name.$libext"
23205 if test -f "$additional_libdir/lib$name.la"; then
23206 found_la="$additional_libdir/lib$name.la"
23211 if test "X$found_dir" = "X"; then
23212 for x in $LDFLAGS $LTLIBICONV; do
23214 acl_save_prefix="$prefix"
23215 prefix="$acl_final_prefix"
23216 acl_save_exec_prefix="$exec_prefix"
23217 exec_prefix="$acl_final_exec_prefix"
23218 eval x=\"$x\"
23219 exec_prefix="$acl_save_exec_prefix"
23220 prefix="$acl_save_prefix"
23222 case "$x" in
23223 -L*)
23224 dir=`echo "X$x" | sed -e 's/^X-L//'`
23225 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
23226 found_dir="$dir"
23227 found_so="$dir/lib$name.$shlibext"
23228 if test -f "$dir/lib$name.la"; then
23229 found_la="$dir/lib$name.la"
23231 elif test x$lib_type != xshared; then
23232 if test -f "$dir/lib$name.$libext"; then
23233 found_dir="$dir"
23234 found_a="$dir/lib$name.$libext"
23235 if test -f "$dir/lib$name.la"; then
23236 found_la="$dir/lib$name.la"
23241 esac
23242 if test "X$found_dir" != "X"; then
23243 break
23245 done
23247 if test "X$found_dir" != "X"; then
23248 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
23249 if test "X$found_so" != "X"; then
23250 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23251 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23252 else
23253 haveit=
23254 for x in $ltrpathdirs; do
23255 if test "X$x" = "X$found_dir"; then
23256 haveit=yes
23257 break
23259 done
23260 if test -z "$haveit"; then
23261 ltrpathdirs="$ltrpathdirs $found_dir"
23263 if test "$hardcode_direct" = yes; then
23264 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23265 else
23266 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23267 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23268 haveit=
23269 for x in $rpathdirs; do
23270 if test "X$x" = "X$found_dir"; then
23271 haveit=yes
23272 break
23274 done
23275 if test -z "$haveit"; then
23276 rpathdirs="$rpathdirs $found_dir"
23278 else
23279 haveit=
23280 for x in $LDFLAGS $LIBICONV; do
23282 acl_save_prefix="$prefix"
23283 prefix="$acl_final_prefix"
23284 acl_save_exec_prefix="$exec_prefix"
23285 exec_prefix="$acl_final_exec_prefix"
23286 eval x=\"$x\"
23287 exec_prefix="$acl_save_exec_prefix"
23288 prefix="$acl_save_prefix"
23290 if test "X$x" = "X-L$found_dir"; then
23291 haveit=yes
23292 break
23294 done
23295 if test -z "$haveit"; then
23296 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
23298 if test "$hardcode_minus_L" != no; then
23299 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23300 else
23301 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
23306 else
23307 if test "X$found_a" != "X"; then
23308 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
23309 else
23310 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
23313 additional_includedir=
23314 case "$found_dir" in
23315 */lib | */lib/)
23316 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23317 additional_includedir="$basedir/include"
23319 esac
23320 if test "X$additional_includedir" != "X"; then
23321 if test "X$additional_includedir" != "X/usr/include"; then
23322 haveit=
23323 if test "X$additional_includedir" = "X/usr/local/include"; then
23324 if test -n "$GCC"; then
23325 case $host_os in
23326 linux*) haveit=yes;;
23327 esac
23330 if test -z "$haveit"; then
23331 for x in $CPPFLAGS $INCICONV; do
23333 acl_save_prefix="$prefix"
23334 prefix="$acl_final_prefix"
23335 acl_save_exec_prefix="$exec_prefix"
23336 exec_prefix="$acl_final_exec_prefix"
23337 eval x=\"$x\"
23338 exec_prefix="$acl_save_exec_prefix"
23339 prefix="$acl_save_prefix"
23341 if test "X$x" = "X-I$additional_includedir"; then
23342 haveit=yes
23343 break
23345 done
23346 if test -z "$haveit"; then
23347 if test -d "$additional_includedir"; then
23348 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
23354 if test -n "$found_la"; then
23355 save_libdir="$libdir"
23356 case "$found_la" in
23357 */* | *\\*) . "$found_la" ;;
23358 *) . "./$found_la" ;;
23359 esac
23360 libdir="$save_libdir"
23361 for dep in $dependency_libs; do
23362 case "$dep" in
23363 -L*)
23364 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23365 if test "X$additional_libdir" != "X/usr/lib"; then
23366 haveit=
23367 if test "X$additional_libdir" = "X/usr/local/lib"; then
23368 if test -n "$GCC"; then
23369 case $host_os in
23370 linux*) haveit=yes;;
23371 esac
23374 if test -z "$haveit"; then
23375 haveit=
23376 for x in $LDFLAGS $LIBICONV; do
23378 acl_save_prefix="$prefix"
23379 prefix="$acl_final_prefix"
23380 acl_save_exec_prefix="$exec_prefix"
23381 exec_prefix="$acl_final_exec_prefix"
23382 eval x=\"$x\"
23383 exec_prefix="$acl_save_exec_prefix"
23384 prefix="$acl_save_prefix"
23386 if test "X$x" = "X-L$additional_libdir"; then
23387 haveit=yes
23388 break
23390 done
23391 if test -z "$haveit"; then
23392 if test -d "$additional_libdir"; then
23393 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
23396 haveit=
23397 for x in $LDFLAGS $LTLIBICONV; do
23399 acl_save_prefix="$prefix"
23400 prefix="$acl_final_prefix"
23401 acl_save_exec_prefix="$exec_prefix"
23402 exec_prefix="$acl_final_exec_prefix"
23403 eval x=\"$x\"
23404 exec_prefix="$acl_save_exec_prefix"
23405 prefix="$acl_save_prefix"
23407 if test "X$x" = "X-L$additional_libdir"; then
23408 haveit=yes
23409 break
23411 done
23412 if test -z "$haveit"; then
23413 if test -d "$additional_libdir"; then
23414 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
23420 -R*)
23421 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23422 if test "$enable_rpath" != no; then
23423 haveit=
23424 for x in $rpathdirs; do
23425 if test "X$x" = "X$dir"; then
23426 haveit=yes
23427 break
23429 done
23430 if test -z "$haveit"; then
23431 rpathdirs="$rpathdirs $dir"
23433 haveit=
23434 for x in $ltrpathdirs; do
23435 if test "X$x" = "X$dir"; then
23436 haveit=yes
23437 break
23439 done
23440 if test -z "$haveit"; then
23441 ltrpathdirs="$ltrpathdirs $dir"
23445 -l*)
23446 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23448 *.la)
23449 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23452 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
23453 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
23455 esac
23456 done
23458 else
23459 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
23460 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
23461 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
23462 else
23463 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
23464 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
23469 done
23470 done
23471 if test "X$rpathdirs" != "X"; then
23472 if test -n "$hardcode_libdir_separator"; then
23473 alldirs=
23474 for found_dir in $rpathdirs; do
23475 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23476 done
23477 acl_save_libdir="$libdir"
23478 libdir="$alldirs"
23479 eval flag=\"$hardcode_libdir_flag_spec\"
23480 libdir="$acl_save_libdir"
23481 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23482 else
23483 for found_dir in $rpathdirs; do
23484 acl_save_libdir="$libdir"
23485 libdir="$found_dir"
23486 eval flag=\"$hardcode_libdir_flag_spec\"
23487 libdir="$acl_save_libdir"
23488 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23489 done
23492 if test "X$ltrpathdirs" != "X"; then
23493 for found_dir in $ltrpathdirs; do
23494 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
23495 done
23502 if test -f ../gettext/uninstalled-config.sh; then
23503 relative_builddir='$(top_builddir)/../gettext'
23504 . ../gettext/uninstalled-config.sh
23505 else
23506 # The sister gettext directory doesn't exist and won't collect information on
23507 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
23532 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23533 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
23534 $as_echo_n "(cached) " >&6
23535 else
23536 gt_save_LIBS="$LIBS"
23537 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
23538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23539 /* end confdefs.h. */
23540 #include <CoreFoundation/CFPreferences.h>
23542 main ()
23544 CFPreferencesCopyAppValue(NULL, NULL)
23546 return 0;
23548 _ACEOF
23549 if ac_fn_c_try_link "$LINENO"; then :
23550 gt_cv_func_CFPreferencesCopyAppValue=yes
23551 else
23552 gt_cv_func_CFPreferencesCopyAppValue=no
23554 rm -f core conftest.err conftest.$ac_objext \
23555 conftest$ac_exeext conftest.$ac_ext
23556 LIBS="$gt_save_LIBS"
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23559 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23560 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23562 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
23566 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
23567 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
23568 $as_echo_n "(cached) " >&6
23569 else
23570 gt_save_LIBS="$LIBS"
23571 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
23572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23573 /* end confdefs.h. */
23574 #include <CoreFoundation/CFLocale.h>
23576 main ()
23578 CFLocaleCopyPreferredLanguages();
23580 return 0;
23582 _ACEOF
23583 if ac_fn_c_try_link "$LINENO"; then :
23584 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
23585 else
23586 gt_cv_func_CFLocaleCopyPreferredLanguages=no
23588 rm -f core conftest.err conftest.$ac_objext \
23589 conftest$ac_exeext conftest.$ac_ext
23590 LIBS="$gt_save_LIBS"
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
23593 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
23594 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
23596 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
23599 INTL_MACOSX_LIBS=
23600 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
23601 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
23602 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
23610 LIBINTL=
23611 LTLIBINTL=
23612 POSUB=
23614 case " $gt_needs " in
23615 *" need-formatstring-macros "*) gt_api_version=3 ;;
23616 *" need-ngettext "*) gt_api_version=2 ;;
23617 *) gt_api_version=1 ;;
23618 esac
23619 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
23620 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
23622 if test "$USE_NLS" = "yes"; then
23623 gt_use_preinstalled_gnugettext=no
23626 if test $gt_api_version -ge 3; then
23627 gt_revision_test_code='
23628 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
23629 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
23630 #endif
23631 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
23633 else
23634 gt_revision_test_code=
23636 if test $gt_api_version -ge 2; then
23637 gt_expression_test_code=' + * ngettext ("", "", 0)'
23638 else
23639 gt_expression_test_code=
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
23643 $as_echo_n "checking for GNU gettext in libc... " >&6; }
23644 if eval \${$gt_func_gnugettext_libc+:} false; then :
23645 $as_echo_n "(cached) " >&6
23646 else
23647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23648 /* end confdefs.h. */
23650 #include <libintl.h>
23651 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
23652 extern int _nl_msg_cat_cntr;
23653 extern int *_nl_domain_bindings;
23654 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
23655 #else
23656 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
23657 #endif
23658 $gt_revision_test_code
23661 main ()
23664 bindtextdomain ("", "");
23665 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
23668 return 0;
23670 _ACEOF
23671 if ac_fn_c_try_link "$LINENO"; then :
23672 eval "$gt_func_gnugettext_libc=yes"
23673 else
23674 eval "$gt_func_gnugettext_libc=no"
23676 rm -f core conftest.err conftest.$ac_objext \
23677 conftest$ac_exeext conftest.$ac_ext
23679 eval ac_res=\$$gt_func_gnugettext_libc
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23681 $as_echo "$ac_res" >&6; }
23683 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
23689 am_save_CPPFLAGS="$CPPFLAGS"
23691 for element in $INCICONV; do
23692 haveit=
23693 for x in $CPPFLAGS; do
23695 acl_save_prefix="$prefix"
23696 prefix="$acl_final_prefix"
23697 acl_save_exec_prefix="$exec_prefix"
23698 exec_prefix="$acl_final_exec_prefix"
23699 eval x=\"$x\"
23700 exec_prefix="$acl_save_exec_prefix"
23701 prefix="$acl_save_prefix"
23703 if test "X$x" = "X$element"; then
23704 haveit=yes
23705 break
23707 done
23708 if test -z "$haveit"; then
23709 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23711 done
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
23715 $as_echo_n "checking for iconv... " >&6; }
23716 if ${am_cv_func_iconv+:} false; then :
23717 $as_echo_n "(cached) " >&6
23718 else
23720 am_cv_func_iconv="no, consider installing GNU libiconv"
23721 am_cv_lib_iconv=no
23722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23723 /* end confdefs.h. */
23725 #include <stdlib.h>
23726 #include <iconv.h>
23729 main ()
23731 iconv_t cd = iconv_open("","");
23732 iconv(cd,NULL,NULL,NULL,NULL);
23733 iconv_close(cd);
23735 return 0;
23737 _ACEOF
23738 if ac_fn_c_try_link "$LINENO"; then :
23739 am_cv_func_iconv=yes
23741 rm -f core conftest.err conftest.$ac_objext \
23742 conftest$ac_exeext conftest.$ac_ext
23743 if test "$am_cv_func_iconv" != yes; then
23744 am_save_LIBS="$LIBS"
23745 LIBS="$LIBS $LIBICONV"
23746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23747 /* end confdefs.h. */
23749 #include <stdlib.h>
23750 #include <iconv.h>
23753 main ()
23755 iconv_t cd = iconv_open("","");
23756 iconv(cd,NULL,NULL,NULL,NULL);
23757 iconv_close(cd);
23759 return 0;
23761 _ACEOF
23762 if ac_fn_c_try_link "$LINENO"; then :
23763 am_cv_lib_iconv=yes
23764 am_cv_func_iconv=yes
23766 rm -f core conftest.err conftest.$ac_objext \
23767 conftest$ac_exeext conftest.$ac_ext
23768 LIBS="$am_save_LIBS"
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
23773 $as_echo "$am_cv_func_iconv" >&6; }
23774 if test "$am_cv_func_iconv" = yes; then
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
23776 $as_echo_n "checking for working iconv... " >&6; }
23777 if ${am_cv_func_iconv_works+:} false; then :
23778 $as_echo_n "(cached) " >&6
23779 else
23781 am_save_LIBS="$LIBS"
23782 if test $am_cv_lib_iconv = yes; then
23783 LIBS="$LIBS $LIBICONV"
23785 am_cv_func_iconv_works=no
23786 for ac_iconv_const in '' 'const'; do
23787 if test "$cross_compiling" = yes; then :
23788 case "$host_os" in
23789 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
23790 *) am_cv_func_iconv_works="guessing yes" ;;
23791 esac
23792 else
23793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23794 /* end confdefs.h. */
23796 #include <iconv.h>
23797 #include <string.h>
23799 #ifndef ICONV_CONST
23800 # define ICONV_CONST $ac_iconv_const
23801 #endif
23804 main ()
23806 int result = 0;
23807 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
23808 successful returns. This is even documented in
23809 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
23811 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
23812 if (cd_utf8_to_88591 != (iconv_t)(-1))
23814 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
23815 char buf[10];
23816 ICONV_CONST char *inptr = input;
23817 size_t inbytesleft = strlen (input);
23818 char *outptr = buf;
23819 size_t outbytesleft = sizeof (buf);
23820 size_t res = iconv (cd_utf8_to_88591,
23821 &inptr, &inbytesleft,
23822 &outptr, &outbytesleft);
23823 if (res == 0)
23824 result |= 1;
23825 iconv_close (cd_utf8_to_88591);
23828 /* Test against Solaris 10 bug: Failures are not distinguishable from
23829 successful returns. */
23831 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
23832 if (cd_ascii_to_88591 != (iconv_t)(-1))
23834 static ICONV_CONST char input[] = "\263";
23835 char buf[10];
23836 ICONV_CONST char *inptr = input;
23837 size_t inbytesleft = strlen (input);
23838 char *outptr = buf;
23839 size_t outbytesleft = sizeof (buf);
23840 size_t res = iconv (cd_ascii_to_88591,
23841 &inptr, &inbytesleft,
23842 &outptr, &outbytesleft);
23843 if (res == 0)
23844 result |= 2;
23845 iconv_close (cd_ascii_to_88591);
23848 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
23850 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
23851 if (cd_88591_to_utf8 != (iconv_t)(-1))
23853 static ICONV_CONST char input[] = "\304";
23854 static char buf[2] = { (char)0xDE, (char)0xAD };
23855 ICONV_CONST char *inptr = input;
23856 size_t inbytesleft = 1;
23857 char *outptr = buf;
23858 size_t outbytesleft = 1;
23859 size_t res = iconv (cd_88591_to_utf8,
23860 &inptr, &inbytesleft,
23861 &outptr, &outbytesleft);
23862 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
23863 result |= 4;
23864 iconv_close (cd_88591_to_utf8);
23867 #if 0 /* This bug could be worked around by the caller. */
23868 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
23870 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
23871 if (cd_88591_to_utf8 != (iconv_t)(-1))
23873 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
23874 char buf[50];
23875 ICONV_CONST char *inptr = input;
23876 size_t inbytesleft = strlen (input);
23877 char *outptr = buf;
23878 size_t outbytesleft = sizeof (buf);
23879 size_t res = iconv (cd_88591_to_utf8,
23880 &inptr, &inbytesleft,
23881 &outptr, &outbytesleft);
23882 if ((int)res > 0)
23883 result |= 8;
23884 iconv_close (cd_88591_to_utf8);
23887 #endif
23888 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
23889 provided. */
23891 /* Try standardized names. */
23892 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
23893 /* Try IRIX, OSF/1 names. */
23894 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
23895 /* Try AIX names. */
23896 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
23897 /* Try HP-UX names. */
23898 iconv_t cd4 = iconv_open ("utf8", "eucJP");
23899 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
23900 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
23901 result |= 16;
23902 if (cd1 != (iconv_t)(-1))
23903 iconv_close (cd1);
23904 if (cd2 != (iconv_t)(-1))
23905 iconv_close (cd2);
23906 if (cd3 != (iconv_t)(-1))
23907 iconv_close (cd3);
23908 if (cd4 != (iconv_t)(-1))
23909 iconv_close (cd4);
23911 return result;
23914 return 0;
23916 _ACEOF
23917 if ac_fn_c_try_run "$LINENO"; then :
23918 am_cv_func_iconv_works=yes
23920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23921 conftest.$ac_objext conftest.beam conftest.$ac_ext
23924 test "$am_cv_func_iconv_works" = no || break
23925 done
23926 LIBS="$am_save_LIBS"
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
23930 $as_echo "$am_cv_func_iconv_works" >&6; }
23931 case "$am_cv_func_iconv_works" in
23932 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
23933 *) am_func_iconv=yes ;;
23934 esac
23935 else
23936 am_func_iconv=no am_cv_lib_iconv=no
23938 if test "$am_func_iconv" = yes; then
23940 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
23943 if test "$am_cv_lib_iconv" = yes; then
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
23945 $as_echo_n "checking how to link with libiconv... " >&6; }
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
23947 $as_echo "$LIBICONV" >&6; }
23948 else
23949 CPPFLAGS="$am_save_CPPFLAGS"
23950 LIBICONV=
23951 LTLIBICONV=
23959 use_additional=yes
23961 acl_save_prefix="$prefix"
23962 prefix="$acl_final_prefix"
23963 acl_save_exec_prefix="$exec_prefix"
23964 exec_prefix="$acl_final_exec_prefix"
23966 eval additional_includedir=\"$includedir\"
23967 eval additional_libdir=\"$libdir\"
23969 exec_prefix="$acl_save_exec_prefix"
23970 prefix="$acl_save_prefix"
23973 # Check whether --with-libintl-prefix was given.
23974 if test "${with_libintl_prefix+set}" = set; then :
23975 withval=$with_libintl_prefix;
23976 if test "X$withval" = "Xno"; then
23977 use_additional=no
23978 else
23979 if test "X$withval" = "X"; then
23981 acl_save_prefix="$prefix"
23982 prefix="$acl_final_prefix"
23983 acl_save_exec_prefix="$exec_prefix"
23984 exec_prefix="$acl_final_exec_prefix"
23986 eval additional_includedir=\"$includedir\"
23987 eval additional_libdir=\"$libdir\"
23989 exec_prefix="$acl_save_exec_prefix"
23990 prefix="$acl_save_prefix"
23992 else
23993 additional_includedir="$withval/include"
23994 additional_libdir="$withval/lib"
24001 # Check whether --with-libintl-type was given.
24002 if test "${with_libintl_type+set}" = set; then :
24003 withval=$with_libintl_type; with_libintl_type=$withval
24004 else
24005 with_libintl_type=auto
24008 lib_type=`eval echo \$with_libintl_type`
24010 LIBINTL=
24011 LTLIBINTL=
24012 INCINTL=
24013 rpathdirs=
24014 ltrpathdirs=
24015 names_already_handled=
24016 names_next_round='intl '
24017 while test -n "$names_next_round"; do
24018 names_this_round="$names_next_round"
24019 names_next_round=
24020 for name in $names_this_round; do
24021 already_handled=
24022 for n in $names_already_handled; do
24023 if test "$n" = "$name"; then
24024 already_handled=yes
24025 break
24027 done
24028 if test -z "$already_handled"; then
24029 names_already_handled="$names_already_handled $name"
24030 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24031 eval value=\"\$HAVE_LIB$uppername\"
24032 if test -n "$value"; then
24033 if test "$value" = yes; then
24034 eval value=\"\$LIB$uppername\"
24035 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
24036 eval value=\"\$LTLIB$uppername\"
24037 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
24038 else
24041 else
24042 found_dir=
24043 found_la=
24044 found_so=
24045 found_a=
24046 if test $use_additional = yes; then
24047 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
24048 found_dir="$additional_libdir"
24049 found_so="$additional_libdir/lib$name.$shlibext"
24050 if test -f "$additional_libdir/lib$name.la"; then
24051 found_la="$additional_libdir/lib$name.la"
24053 elif test x$lib_type != xshared; then
24054 if test -f "$additional_libdir/lib$name.$libext"; then
24055 found_dir="$additional_libdir"
24056 found_a="$additional_libdir/lib$name.$libext"
24057 if test -f "$additional_libdir/lib$name.la"; then
24058 found_la="$additional_libdir/lib$name.la"
24063 if test "X$found_dir" = "X"; then
24064 for x in $LDFLAGS $LTLIBINTL; do
24066 acl_save_prefix="$prefix"
24067 prefix="$acl_final_prefix"
24068 acl_save_exec_prefix="$exec_prefix"
24069 exec_prefix="$acl_final_exec_prefix"
24070 eval x=\"$x\"
24071 exec_prefix="$acl_save_exec_prefix"
24072 prefix="$acl_save_prefix"
24074 case "$x" in
24075 -L*)
24076 dir=`echo "X$x" | sed -e 's/^X-L//'`
24077 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
24078 found_dir="$dir"
24079 found_so="$dir/lib$name.$shlibext"
24080 if test -f "$dir/lib$name.la"; then
24081 found_la="$dir/lib$name.la"
24083 elif test x$lib_type != xshared; then
24084 if test -f "$dir/lib$name.$libext"; then
24085 found_dir="$dir"
24086 found_a="$dir/lib$name.$libext"
24087 if test -f "$dir/lib$name.la"; then
24088 found_la="$dir/lib$name.la"
24093 esac
24094 if test "X$found_dir" != "X"; then
24095 break
24097 done
24099 if test "X$found_dir" != "X"; then
24100 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24101 if test "X$found_so" != "X"; then
24102 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
24103 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24104 else
24105 haveit=
24106 for x in $ltrpathdirs; do
24107 if test "X$x" = "X$found_dir"; then
24108 haveit=yes
24109 break
24111 done
24112 if test -z "$haveit"; then
24113 ltrpathdirs="$ltrpathdirs $found_dir"
24115 if test "$hardcode_direct" = yes; then
24116 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24117 else
24118 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24119 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24120 haveit=
24121 for x in $rpathdirs; do
24122 if test "X$x" = "X$found_dir"; then
24123 haveit=yes
24124 break
24126 done
24127 if test -z "$haveit"; then
24128 rpathdirs="$rpathdirs $found_dir"
24130 else
24131 haveit=
24132 for x in $LDFLAGS $LIBINTL; do
24134 acl_save_prefix="$prefix"
24135 prefix="$acl_final_prefix"
24136 acl_save_exec_prefix="$exec_prefix"
24137 exec_prefix="$acl_final_exec_prefix"
24138 eval x=\"$x\"
24139 exec_prefix="$acl_save_exec_prefix"
24140 prefix="$acl_save_prefix"
24142 if test "X$x" = "X-L$found_dir"; then
24143 haveit=yes
24144 break
24146 done
24147 if test -z "$haveit"; then
24148 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24150 if test "$hardcode_minus_L" != no; then
24151 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24152 else
24153 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24158 else
24159 if test "X$found_a" != "X"; then
24160 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24161 else
24162 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24165 additional_includedir=
24166 case "$found_dir" in
24167 */lib | */lib/)
24168 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24169 additional_includedir="$basedir/include"
24171 esac
24172 if test "X$additional_includedir" != "X"; then
24173 if test "X$additional_includedir" != "X/usr/include"; then
24174 haveit=
24175 if test "X$additional_includedir" = "X/usr/local/include"; then
24176 if test -n "$GCC"; then
24177 case $host_os in
24178 linux*) haveit=yes;;
24179 esac
24182 if test -z "$haveit"; then
24183 for x in $CPPFLAGS $INCINTL; do
24185 acl_save_prefix="$prefix"
24186 prefix="$acl_final_prefix"
24187 acl_save_exec_prefix="$exec_prefix"
24188 exec_prefix="$acl_final_exec_prefix"
24189 eval x=\"$x\"
24190 exec_prefix="$acl_save_exec_prefix"
24191 prefix="$acl_save_prefix"
24193 if test "X$x" = "X-I$additional_includedir"; then
24194 haveit=yes
24195 break
24197 done
24198 if test -z "$haveit"; then
24199 if test -d "$additional_includedir"; then
24200 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24206 if test -n "$found_la"; then
24207 save_libdir="$libdir"
24208 case "$found_la" in
24209 */* | *\\*) . "$found_la" ;;
24210 *) . "./$found_la" ;;
24211 esac
24212 libdir="$save_libdir"
24213 for dep in $dependency_libs; do
24214 case "$dep" in
24215 -L*)
24216 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24217 if test "X$additional_libdir" != "X/usr/lib"; then
24218 haveit=
24219 if test "X$additional_libdir" = "X/usr/local/lib"; then
24220 if test -n "$GCC"; then
24221 case $host_os in
24222 linux*) haveit=yes;;
24223 esac
24226 if test -z "$haveit"; then
24227 haveit=
24228 for x in $LDFLAGS $LIBINTL; do
24230 acl_save_prefix="$prefix"
24231 prefix="$acl_final_prefix"
24232 acl_save_exec_prefix="$exec_prefix"
24233 exec_prefix="$acl_final_exec_prefix"
24234 eval x=\"$x\"
24235 exec_prefix="$acl_save_exec_prefix"
24236 prefix="$acl_save_prefix"
24238 if test "X$x" = "X-L$additional_libdir"; then
24239 haveit=yes
24240 break
24242 done
24243 if test -z "$haveit"; then
24244 if test -d "$additional_libdir"; then
24245 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24248 haveit=
24249 for x in $LDFLAGS $LTLIBINTL; do
24251 acl_save_prefix="$prefix"
24252 prefix="$acl_final_prefix"
24253 acl_save_exec_prefix="$exec_prefix"
24254 exec_prefix="$acl_final_exec_prefix"
24255 eval x=\"$x\"
24256 exec_prefix="$acl_save_exec_prefix"
24257 prefix="$acl_save_prefix"
24259 if test "X$x" = "X-L$additional_libdir"; then
24260 haveit=yes
24261 break
24263 done
24264 if test -z "$haveit"; then
24265 if test -d "$additional_libdir"; then
24266 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24272 -R*)
24273 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24274 if test "$enable_rpath" != no; then
24275 haveit=
24276 for x in $rpathdirs; do
24277 if test "X$x" = "X$dir"; then
24278 haveit=yes
24279 break
24281 done
24282 if test -z "$haveit"; then
24283 rpathdirs="$rpathdirs $dir"
24285 haveit=
24286 for x in $ltrpathdirs; do
24287 if test "X$x" = "X$dir"; then
24288 haveit=yes
24289 break
24291 done
24292 if test -z "$haveit"; then
24293 ltrpathdirs="$ltrpathdirs $dir"
24297 -l*)
24298 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24300 *.la)
24301 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24304 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
24305 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24307 esac
24308 done
24310 else
24311 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
24312 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24313 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24314 else
24315 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
24316 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
24321 done
24322 done
24323 if test "X$rpathdirs" != "X"; then
24324 if test -n "$hardcode_libdir_separator"; then
24325 alldirs=
24326 for found_dir in $rpathdirs; do
24327 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24328 done
24329 acl_save_libdir="$libdir"
24330 libdir="$alldirs"
24331 eval flag=\"$hardcode_libdir_flag_spec\"
24332 libdir="$acl_save_libdir"
24333 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24334 else
24335 for found_dir in $rpathdirs; do
24336 acl_save_libdir="$libdir"
24337 libdir="$found_dir"
24338 eval flag=\"$hardcode_libdir_flag_spec\"
24339 libdir="$acl_save_libdir"
24340 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24341 done
24344 if test "X$ltrpathdirs" != "X"; then
24345 for found_dir in $ltrpathdirs; do
24346 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24347 done
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
24351 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
24352 if eval \${$gt_func_gnugettext_libintl+:} false; then :
24353 $as_echo_n "(cached) " >&6
24354 else
24355 gt_save_CPPFLAGS="$CPPFLAGS"
24356 CPPFLAGS="$CPPFLAGS $INCINTL"
24357 gt_save_LIBS="$LIBS"
24358 LIBS="$LIBS $LIBINTL"
24359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24360 /* end confdefs.h. */
24362 #include <libintl.h>
24363 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
24364 extern int _nl_msg_cat_cntr;
24365 extern
24366 #ifdef __cplusplus
24368 #endif
24369 const char *_nl_expand_alias (const char *);
24370 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
24371 #else
24372 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
24373 #endif
24374 $gt_revision_test_code
24377 main ()
24380 bindtextdomain ("", "");
24381 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
24384 return 0;
24386 _ACEOF
24387 if ac_fn_c_try_link "$LINENO"; then :
24388 eval "$gt_func_gnugettext_libintl=yes"
24389 else
24390 eval "$gt_func_gnugettext_libintl=no"
24392 rm -f core conftest.err conftest.$ac_objext \
24393 conftest$ac_exeext conftest.$ac_ext
24394 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
24395 LIBS="$LIBS $LIBICONV"
24396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24397 /* end confdefs.h. */
24399 #include <libintl.h>
24400 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
24401 extern int _nl_msg_cat_cntr;
24402 extern
24403 #ifdef __cplusplus
24405 #endif
24406 const char *_nl_expand_alias (const char *);
24407 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
24408 #else
24409 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
24410 #endif
24411 $gt_revision_test_code
24414 main ()
24417 bindtextdomain ("", "");
24418 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
24421 return 0;
24423 _ACEOF
24424 if ac_fn_c_try_link "$LINENO"; then :
24425 LIBINTL="$LIBINTL $LIBICONV"
24426 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
24427 eval "$gt_func_gnugettext_libintl=yes"
24430 rm -f core conftest.err conftest.$ac_objext \
24431 conftest$ac_exeext conftest.$ac_ext
24433 CPPFLAGS="$gt_save_CPPFLAGS"
24434 LIBS="$gt_save_LIBS"
24436 eval ac_res=\$$gt_func_gnugettext_libintl
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24438 $as_echo "$ac_res" >&6; }
24441 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
24442 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
24443 && test "$PACKAGE" != gettext-runtime \
24444 && test "$PACKAGE" != gettext-tools; }; then
24445 gt_use_preinstalled_gnugettext=yes
24446 else
24447 LIBINTL=
24448 LTLIBINTL=
24449 INCINTL=
24454 if test -n "$INTL_MACOSX_LIBS"; then
24455 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24456 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24457 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
24458 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
24462 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24463 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24465 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
24467 else
24468 USE_NLS=no
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
24473 $as_echo_n "checking whether to use NLS... " >&6; }
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
24475 $as_echo "$USE_NLS" >&6; }
24476 if test "$USE_NLS" = "yes"; then
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
24478 $as_echo_n "checking where the gettext function comes from... " >&6; }
24479 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24480 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
24481 gt_source="external libintl"
24482 else
24483 gt_source="libc"
24485 else
24486 gt_source="included intl directory"
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
24489 $as_echo "$gt_source" >&6; }
24492 if test "$USE_NLS" = "yes"; then
24494 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24495 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
24497 $as_echo_n "checking how to link with libintl... " >&6; }
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
24499 $as_echo "$LIBINTL" >&6; }
24501 for element in $INCINTL; do
24502 haveit=
24503 for x in $CPPFLAGS; do
24505 acl_save_prefix="$prefix"
24506 prefix="$acl_final_prefix"
24507 acl_save_exec_prefix="$exec_prefix"
24508 exec_prefix="$acl_final_exec_prefix"
24509 eval x=\"$x\"
24510 exec_prefix="$acl_save_exec_prefix"
24511 prefix="$acl_save_prefix"
24513 if test "X$x" = "X$element"; then
24514 haveit=yes
24515 break
24517 done
24518 if test -z "$haveit"; then
24519 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24521 done
24526 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
24529 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
24533 POSUB=po
24538 INTLLIBS="$LIBINTL"
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
24558 $as_echo_n "checking whether NLS is requested... " >&6; }
24559 if test x"$USE_NLS" != xyes; then
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24561 $as_echo "no" >&6; }
24562 else
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24564 $as_echo "yes" >&6; }
24566 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
24570 $as_echo_n "checking for catalogs to be installed... " >&6; }
24571 # Look for .po and .gmo files in the source directory.
24572 CATALOGS=
24573 XLINGUAS=
24574 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
24575 # If there aren't any .gmo files the shell will give us the
24576 # literal string "../path/to/srcdir/po/*.gmo" which has to be
24577 # weeded out.
24578 case "$cat" in *\**)
24579 continue;;
24580 esac
24581 # The quadruple backslash is collapsed to a double backslash
24582 # by the backticks, then collapsed again by the double quotes,
24583 # leaving us with one backslash in the sed expression (right
24584 # before the dot that mustn't act as a wildcard).
24585 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
24586 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
24587 # The user is allowed to set LINGUAS to a list of languages to
24588 # install catalogs for. If it's empty that means "all of them."
24589 if test "x$LINGUAS" = x; then
24590 CATALOGS="$CATALOGS $cat"
24591 XLINGUAS="$XLINGUAS $lang"
24592 else
24593 case "$LINGUAS" in *$lang*)
24594 CATALOGS="$CATALOGS $cat"
24595 XLINGUAS="$XLINGUAS $lang"
24597 esac
24599 done
24600 LINGUAS="$XLINGUAS"
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
24602 $as_echo "$LINGUAS" >&6; }
24605 DATADIRNAME=share
24607 INSTOBJEXT=.mo
24609 GENCAT=gencat
24611 CATOBJEXT=.gmo
24615 localedir='${datadir}/locale'
24618 if test x"$USE_NLS" = xyes; then
24619 CONFIG_ALL="$CONFIG_ALL all-po"
24620 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
24621 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
24622 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
24625 PACKAGE=gdb
24627 cat >>confdefs.h <<_ACEOF
24628 #define PACKAGE "$PACKAGE"
24629 _ACEOF
24633 # We never need to detect it in this sub-configure.
24634 # But preserve it for config.status --recheck.
24638 MAKEINFO_EXTRA_FLAGS=""
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
24640 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
24641 if ${gdb_cv_have_makeinfo_click+:} false; then :
24642 $as_echo_n "(cached) " >&6
24643 else
24644 echo '@clicksequence{a @click{} b}' >conftest.texinfo
24645 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
24646 gdb_cv_have_makeinfo_click=yes
24647 else
24648 gdb_cv_have_makeinfo_click=no
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
24652 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
24653 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
24654 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
24660 # Check whether --with-separate-debug-dir was given.
24661 if test "${with_separate_debug_dir+set}" = set; then :
24662 withval=$with_separate_debug_dir;
24663 DEBUGDIR=$withval
24664 else
24665 DEBUGDIR=${libdir}/debug
24669 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24670 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24671 ac_define_dir=`eval echo $DEBUGDIR`
24672 ac_define_dir=`eval echo $ac_define_dir`
24674 cat >>confdefs.h <<_ACEOF
24675 #define DEBUGDIR "$ac_define_dir"
24676 _ACEOF
24681 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
24682 if test "x$prefix" = xNONE; then
24683 test_prefix=/usr/local
24684 else
24685 test_prefix=$prefix
24687 else
24688 test_prefix=$exec_prefix
24690 value=0
24691 case ${ac_define_dir} in
24692 "${test_prefix}"|"${test_prefix}/"*|\
24693 '${exec_prefix}'|'${exec_prefix}/'*)
24694 value=1
24696 esac
24698 cat >>confdefs.h <<_ACEOF
24699 #define DEBUGDIR_RELOCATABLE $value
24700 _ACEOF
24706 # Check whether --with-additional-debug-dirs was given.
24707 if test "${with_additional_debug_dirs+set}" = set; then :
24708 withval=$with_additional_debug_dirs;
24709 cat >>confdefs.h <<_ACEOF
24710 #define ADDITIONAL_DEBUG_DIRS "${withval}"
24711 _ACEOF
24716 # We can't pass paths as command line arguments.
24717 # Mingw32 tries to be clever and will convert the paths for us.
24718 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
24719 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
24720 # This breaks GDB's relocatable path conversions since paths passed in
24721 # config.h would not get so translated, the path prefixes no longer match.
24723 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24724 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24725 ac_define_dir=`eval echo $bindir`
24726 ac_define_dir=`eval echo $ac_define_dir`
24728 cat >>confdefs.h <<_ACEOF
24729 #define BINDIR "$ac_define_dir"
24730 _ACEOF
24734 # GDB's datadir relocation
24738 # Check whether --with-gdb-datadir was given.
24739 if test "${with_gdb_datadir+set}" = set; then :
24740 withval=$with_gdb_datadir;
24741 GDB_DATADIR=$withval
24742 else
24743 GDB_DATADIR=${datadir}/gdb
24747 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24749 ac_define_dir=`eval echo $GDB_DATADIR`
24750 ac_define_dir=`eval echo $ac_define_dir`
24752 cat >>confdefs.h <<_ACEOF
24753 #define GDB_DATADIR "$ac_define_dir"
24754 _ACEOF
24759 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
24760 if test "x$prefix" = xNONE; then
24761 test_prefix=/usr/local
24762 else
24763 test_prefix=$prefix
24765 else
24766 test_prefix=$exec_prefix
24768 value=0
24769 case ${ac_define_dir} in
24770 "${test_prefix}"|"${test_prefix}/"*|\
24771 '${exec_prefix}'|'${exec_prefix}/'*)
24772 value=1
24774 esac
24776 cat >>confdefs.h <<_ACEOF
24777 #define GDB_DATADIR_RELOCATABLE $value
24778 _ACEOF
24784 # Check whether --with-relocated-sources was given.
24785 if test "${with_relocated_sources+set}" = set; then :
24786 withval=$with_relocated_sources; reloc_srcdir="${withval}"
24788 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24790 ac_define_dir=`eval echo $reloc_srcdir`
24791 ac_define_dir=`eval echo $ac_define_dir`
24793 cat >>confdefs.h <<_ACEOF
24794 #define RELOC_SRCDIR "$ac_define_dir"
24795 _ACEOF
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
24803 $as_echo_n "checking for default auto-load directory... " >&6; }
24805 # Check whether --with-auto-load-dir was given.
24806 if test "${with_auto_load_dir+set}" = set; then :
24807 withval=$with_auto_load_dir;
24808 else
24809 with_auto_load_dir='$debugdir:$datadir/auto-load'
24812 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
24814 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24816 ac_define_dir=`eval echo $escape_dir`
24817 ac_define_dir=`eval echo $ac_define_dir`
24819 cat >>confdefs.h <<_ACEOF
24820 #define AUTO_LOAD_DIR "$ac_define_dir"
24821 _ACEOF
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
24825 $as_echo "$with_auto_load_dir" >&6; }
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
24828 $as_echo_n "checking for default auto-load safe-path... " >&6; }
24830 # Check whether --with-auto-load-safe-path was given.
24831 if test "${with_auto_load_safe_path+set}" = set; then :
24832 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
24833 with_auto_load_safe_path="/"
24835 else
24836 with_auto_load_safe_path="$with_auto_load_dir"
24839 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
24841 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24842 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24843 ac_define_dir=`eval echo $escape_dir`
24844 ac_define_dir=`eval echo $ac_define_dir`
24846 cat >>confdefs.h <<_ACEOF
24847 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
24848 _ACEOF
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
24852 $as_echo "$with_auto_load_safe_path" >&6; }
24856 subdirs="$subdirs testsuite"
24859 # Check whether to support alternative target configurations
24860 # Check whether --enable-targets was given.
24861 if test "${enable_targets+set}" = set; then :
24862 enableval=$enable_targets; case "${enableval}" in
24863 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
24865 no) enable_targets= ;;
24867 enable_targets=$enableval
24869 cat >>confdefs.h <<_ACEOF
24870 #define ENABLE_TARGETS "$enable_targets"
24871 _ACEOF
24874 esac
24879 # Check whether --enable-64-bit-bfd was given.
24880 if test "${enable_64_bit_bfd+set}" = set; then :
24881 enableval=$enable_64_bit_bfd; case $enableval in #(
24882 yes|no) :
24883 ;; #(
24884 *) :
24885 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
24886 *) :
24888 esac
24889 else
24890 enable_64_bit_bfd=no
24894 if test "x$enable_64_bit_bfd" = "xno"; then :
24895 # The cast to long int works around a bug in the HP C Compiler
24896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24898 # This bug is HP SR number 8606223364.
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
24900 $as_echo_n "checking size of void *... " >&6; }
24901 if ${ac_cv_sizeof_void_p+:} false; then :
24902 $as_echo_n "(cached) " >&6
24903 else
24904 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
24906 else
24907 if test "$ac_cv_type_void_p" = yes; then
24908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24910 as_fn_error 77 "cannot compute sizeof (void *)
24911 See \`config.log' for more details" "$LINENO" 5; }
24912 else
24913 ac_cv_sizeof_void_p=0
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
24919 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24923 cat >>confdefs.h <<_ACEOF
24924 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24925 _ACEOF
24928 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
24929 enable_64_bit_bfd=yes
24934 if test "x$enable_64_bit_bfd" = "xyes"; then
24935 ENABLE_BFD_64_BIT_TRUE=
24936 ENABLE_BFD_64_BIT_FALSE='#'
24937 else
24938 ENABLE_BFD_64_BIT_TRUE='#'
24939 ENABLE_BFD_64_BIT_FALSE=
24944 # Provide defaults for some variables set by the per-host and per-target
24945 # configuration.
24946 gdb_host_obs=posix-hdep.o
24948 if test "${target}" = "${host}"; then
24949 gdb_native=yes
24950 else
24951 gdb_native=no
24954 . $srcdir/configure.host
24956 # Accumulate some settings from configure.tgt over all enabled targets
24958 TARGET_OBS=
24959 all_targets=
24960 HAVE_NATIVE_GCORE_TARGET=
24962 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
24964 if test "$targ_alias" = "all"; then
24965 all_targets=true
24966 else
24967 # Canonicalize the secondary target names.
24968 result=`$ac_config_sub $targ_alias 2>/dev/null`
24969 if test -n "$result"; then
24970 targ=$result
24971 else
24972 targ=$targ_alias
24975 . ${srcdir}/configure.tgt
24977 if test -z "${gdb_target_obs}"; then :
24978 as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
24981 # Target-specific object files
24982 for i in ${gdb_target_obs}; do
24983 case " $TARGET_OBS " in
24984 *" ${i} "*) ;;
24986 TARGET_OBS="$TARGET_OBS ${i}"
24988 esac
24989 done
24991 # Check whether this target needs 64-bit CORE_ADDR
24992 if test x${enable_64_bit_bfd} = xno; then
24993 . ${srcdir}/../bfd/config.bfd
24996 # Check whether this target is native and supports gcore.
24997 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
24998 && $gdb_have_gcore; then
24999 HAVE_NATIVE_GCORE_TARGET=1
25002 done
25004 if test x${all_targets} = xtrue; then
25005 if test x${enable_64_bit_bfd} = xyes; then
25006 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
25007 else
25008 TARGET_OBS='$(ALL_TARGET_OBS)'
25012 HAVE_GSTACK=0
25013 if test $gdb_native = yes; then
25014 HAVE_GSTACK=1
25018 # AMD debugger API support.
25021 # Check whether --with-amd-dbgapi was given.
25022 if test "${with_amd_dbgapi+set}" = set; then :
25023 withval=$with_amd_dbgapi;
25024 case $withval in
25025 yes | no | auto)
25028 as_fn_error $? "bad value $withval for --with-amd-dbgapi" "$LINENO" 5
25030 esac
25032 else
25033 with_amd_dbgapi=auto
25037 # If the user passes --without-amd-dbgapi but also explicitly enables a target
25038 # that requires amd-dbgapi, it is an error.
25039 if test "$with_amd_dbgapi" = no -a "$gdb_require_amd_dbgapi" = true; then
25040 as_fn_error $? "an explicitly enabled target requires amd-dbgapi, but amd-dbgapi is explicitly disabled" "$LINENO" 5
25043 # Look for amd-dbgapi if:
25045 # - a target architecture requiring it has explicitly been enabled, or
25046 # - --enable-targets=all was provided and the user did not explicitly disable
25047 # amd-dbgapi support
25048 if test "$gdb_require_amd_dbgapi" = true \
25049 -o \( "$all_targets" = true -a "$with_amd_dbgapi" != no \); then
25050 # amd-dbgapi version 0.68 is part of ROCm 5.4. There is no guarantee of API
25051 # stability until amd-dbgapi hits 1.0, but for convenience, still check for
25052 # greater or equal that version. It can be handy when testing with a newer
25053 # version of the library.
25055 pkg_failed=no
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.75.0" >&5
25057 $as_echo_n "checking for amd-dbgapi >= 0.75.0... " >&6; }
25059 if test -n "$AMD_DBGAPI_CFLAGS"; then
25060 pkg_cv_AMD_DBGAPI_CFLAGS="$AMD_DBGAPI_CFLAGS"
25061 elif test -n "$PKG_CONFIG"; then
25062 if test -n "$PKG_CONFIG" && \
25063 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.75.0\""; } >&5
25064 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.75.0") 2>&5
25065 ac_status=$?
25066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25067 test $ac_status = 0; }; then
25068 pkg_cv_AMD_DBGAPI_CFLAGS=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.75.0" 2>/dev/null`
25069 test "x$?" != "x0" && pkg_failed=yes
25070 else
25071 pkg_failed=yes
25073 else
25074 pkg_failed=untried
25076 if test -n "$AMD_DBGAPI_LIBS"; then
25077 pkg_cv_AMD_DBGAPI_LIBS="$AMD_DBGAPI_LIBS"
25078 elif test -n "$PKG_CONFIG"; then
25079 if test -n "$PKG_CONFIG" && \
25080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.75.0\""; } >&5
25081 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.75.0") 2>&5
25082 ac_status=$?
25083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25084 test $ac_status = 0; }; then
25085 pkg_cv_AMD_DBGAPI_LIBS=`$PKG_CONFIG --libs "amd-dbgapi >= 0.75.0" 2>/dev/null`
25086 test "x$?" != "x0" && pkg_failed=yes
25087 else
25088 pkg_failed=yes
25090 else
25091 pkg_failed=untried
25094 if test $pkg_failed = no; then
25095 pkg_save_LDFLAGS="$LDFLAGS"
25096 LDFLAGS="$LDFLAGS $pkg_cv_AMD_DBGAPI_LIBS"
25097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25098 /* end confdefs.h. */
25101 main ()
25105 return 0;
25107 _ACEOF
25108 if ac_fn_c_try_link "$LINENO"; then :
25110 else
25111 pkg_failed=yes
25113 rm -f core conftest.err conftest.$ac_objext \
25114 conftest$ac_exeext conftest.$ac_ext
25115 LDFLAGS=$pkg_save_LDFLAGS
25120 if test $pkg_failed = yes; then
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25122 $as_echo "no" >&6; }
25124 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25125 _pkg_short_errors_supported=yes
25126 else
25127 _pkg_short_errors_supported=no
25129 if test $_pkg_short_errors_supported = yes; then
25130 AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.75.0" 2>&1`
25131 else
25132 AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.75.0" 2>&1`
25134 # Put the nasty error message in config.log where it belongs
25135 echo "$AMD_DBGAPI_PKG_ERRORS" >&5
25137 has_amd_dbgapi=no
25138 elif test $pkg_failed = untried; then
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25140 $as_echo "no" >&6; }
25141 has_amd_dbgapi=no
25142 else
25143 AMD_DBGAPI_CFLAGS=$pkg_cv_AMD_DBGAPI_CFLAGS
25144 AMD_DBGAPI_LIBS=$pkg_cv_AMD_DBGAPI_LIBS
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25146 $as_echo "yes" >&6; }
25147 has_amd_dbgapi=yes
25150 if test "$has_amd_dbgapi" = "yes"; then
25152 $as_echo "#define HAVE_AMD_DBGAPI 1" >>confdefs.h
25154 TARGET_OBS="$TARGET_OBS amd-dbgapi-target.o"
25156 # If --enable-targets=all was provided, use the list of all files depending
25157 # on amd-dbgapi that is hardcoded in the Makefile. Else, the appropriate
25158 # architecture entry in configure.tgt will have added the files to
25159 # gdb_target_obs.
25160 if test "$all_targets" = true; then
25161 TARGET_OBS="$TARGET_OBS \$(ALL_AMD_DBGAPI_TARGET_OBS)"
25163 elif test "$gdb_require_amd_dbgapi" = true -o "$with_amd_dbgapi" = yes; then
25164 # amd-dbgapi was not found and...
25166 # - a target requiring it was explicitly enabled, or
25167 # - the user explicitly wants to enable amd-dbgapi
25168 as_fn_error $? "amd-dbgapi is required, but cannot find an appropriate version: $AMD_DBGAPI_PKG_ERRORS" "$LINENO" 5
25175 # For other settings, only the main target counts.
25176 gdb_sim=
25177 gdb_osabi=
25178 targ=$target; . ${srcdir}/configure.tgt
25180 # Fetch the default architecture and default target vector from BFD.
25181 targ=$target; . $srcdir/../bfd/config.bfd
25183 # We only want the first architecture, so strip off the others if
25184 # there is more than one.
25185 targ_archs=`echo $targ_archs | sed 's/ .*//'`
25187 if test "x$targ_archs" != x; then
25189 cat >>confdefs.h <<_ACEOF
25190 #define DEFAULT_BFD_ARCH $targ_archs
25191 _ACEOF
25194 if test "x$targ_defvec" != x; then
25196 cat >>confdefs.h <<_ACEOF
25197 #define DEFAULT_BFD_VEC $targ_defvec
25198 _ACEOF
25202 # Enable TUI.
25203 # Check whether --enable-tui was given.
25204 if test "${enable_tui+set}" = set; then :
25205 enableval=$enable_tui;
25206 case $enableval in
25207 yes | no | auto)
25210 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5
25212 esac
25214 else
25215 enable_tui=auto
25219 # Enable gdbtk.
25220 # Check whether --enable-gdbtk was given.
25221 if test "${enable_gdbtk+set}" = set; then :
25222 enableval=$enable_gdbtk;
25223 case $enableval in
25224 yes | no)
25227 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5
25229 esac
25231 else
25232 if test -d "$srcdir/gdbtk"; then
25233 enable_gdbtk=yes
25234 else
25235 enable_gdbtk=no
25239 # We unconditionally disable gdbtk tests on selected platforms.
25240 case $host_os in
25241 go32* | windows*)
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
25243 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
25244 enable_gdbtk=no ;;
25245 esac
25247 # Handle optional debuginfod support
25249 # Handle optional debuginfod support as well as optional section
25250 # downloading support.
25252 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
25254 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
25255 # version >= 0.188.
25257 # Check whether --with-debuginfod was given.
25258 if test "${with_debuginfod+set}" = set; then :
25259 withval=$with_debuginfod;
25260 else
25261 with_debuginfod=auto
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
25265 $as_echo_n "checking whether to use debuginfod... " >&6; }
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
25267 $as_echo "$with_debuginfod" >&6; }
25269 if test "x$with_debuginfod" != xno; then
25271 pkg_failed=no
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
25273 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
25275 if test -n "$DEBUGINFOD_CFLAGS"; then
25276 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
25277 elif test -n "$PKG_CONFIG"; then
25278 if test -n "$PKG_CONFIG" && \
25279 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
25280 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
25281 ac_status=$?
25282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25283 test $ac_status = 0; }; then
25284 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
25285 test "x$?" != "x0" && pkg_failed=yes
25286 else
25287 pkg_failed=yes
25289 else
25290 pkg_failed=untried
25292 if test -n "$DEBUGINFOD_LIBS"; then
25293 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
25294 elif test -n "$PKG_CONFIG"; then
25295 if test -n "$PKG_CONFIG" && \
25296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
25297 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
25298 ac_status=$?
25299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25300 test $ac_status = 0; }; then
25301 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
25302 test "x$?" != "x0" && pkg_failed=yes
25303 else
25304 pkg_failed=yes
25306 else
25307 pkg_failed=untried
25310 if test $pkg_failed = no; then
25311 pkg_save_LDFLAGS="$LDFLAGS"
25312 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
25313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25314 /* end confdefs.h. */
25317 main ()
25321 return 0;
25323 _ACEOF
25324 if ac_fn_c_try_link "$LINENO"; then :
25326 else
25327 pkg_failed=yes
25329 rm -f core conftest.err conftest.$ac_objext \
25330 conftest$ac_exeext conftest.$ac_ext
25331 LDFLAGS=$pkg_save_LDFLAGS
25336 if test $pkg_failed = yes; then
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25338 $as_echo "no" >&6; }
25340 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25341 _pkg_short_errors_supported=yes
25342 else
25343 _pkg_short_errors_supported=no
25345 if test $_pkg_short_errors_supported = yes; then
25346 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
25347 else
25348 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
25350 # Put the nasty error message in config.log where it belongs
25351 echo "$DEBUGINFOD_PKG_ERRORS" >&5
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
25354 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
25355 elif test $pkg_failed = untried; then
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25357 $as_echo "no" >&6; }
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
25359 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
25360 else
25361 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
25362 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25364 $as_echo "yes" >&6; }
25366 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
25371 pkg_failed=no
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
25373 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
25375 if test -n "$DEBUGINFOD_CFLAGS"; then
25376 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
25377 elif test -n "$PKG_CONFIG"; then
25378 if test -n "$PKG_CONFIG" && \
25379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
25380 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
25381 ac_status=$?
25382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25383 test $ac_status = 0; }; then
25384 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
25385 test "x$?" != "x0" && pkg_failed=yes
25386 else
25387 pkg_failed=yes
25389 else
25390 pkg_failed=untried
25392 if test -n "$DEBUGINFOD_LIBS"; then
25393 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
25394 elif test -n "$PKG_CONFIG"; then
25395 if test -n "$PKG_CONFIG" && \
25396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
25397 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
25398 ac_status=$?
25399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25400 test $ac_status = 0; }; then
25401 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
25402 test "x$?" != "x0" && pkg_failed=yes
25403 else
25404 pkg_failed=yes
25406 else
25407 pkg_failed=untried
25410 if test $pkg_failed = no; then
25411 pkg_save_LDFLAGS="$LDFLAGS"
25412 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25414 /* end confdefs.h. */
25417 main ()
25421 return 0;
25423 _ACEOF
25424 if ac_fn_c_try_link "$LINENO"; then :
25426 else
25427 pkg_failed=yes
25429 rm -f core conftest.err conftest.$ac_objext \
25430 conftest$ac_exeext conftest.$ac_ext
25431 LDFLAGS=$pkg_save_LDFLAGS
25436 if test $pkg_failed = yes; then
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25438 $as_echo "no" >&6; }
25440 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25441 _pkg_short_errors_supported=yes
25442 else
25443 _pkg_short_errors_supported=no
25445 if test $_pkg_short_errors_supported = yes; then
25446 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
25447 else
25448 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
25450 # Put the nasty error message in config.log where it belongs
25451 echo "$DEBUGINFOD_PKG_ERRORS" >&5
25453 if test "x$with_debuginfod" = xyes; then
25454 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
25455 else
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
25457 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
25459 elif test $pkg_failed = untried; then
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25461 $as_echo "no" >&6; }
25462 if test "x$with_debuginfod" = xyes; then
25463 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
25464 else
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
25466 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
25468 else
25469 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
25470 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25472 $as_echo "yes" >&6; }
25474 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
25477 else
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
25479 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
25483 # Libunwind support for ia64.
25485 # Check whether --with-libunwind-ia64 was given.
25486 if test "${with_libunwind_ia64+set}" = set; then :
25487 withval=$with_libunwind_ia64;
25488 else
25489 with_libunwind_ia64=auto
25493 # Backward compatibility option.
25494 if test "${with_libunwind+set}" = set; then
25495 if test x"$with_libunwind_ia64" != xauto; then
25496 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
25499 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
25500 with_libunwind_ia64="$with_libunwind"
25503 case "$with_libunwind_ia64" in
25504 yes | no)
25506 auto)
25507 for ac_header in libunwind-ia64.h
25508 do :
25509 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
25510 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
25511 cat >>confdefs.h <<_ACEOF
25512 #define HAVE_LIBUNWIND_IA64_H 1
25513 _ACEOF
25517 done
25519 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
25522 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
25524 esac
25526 if test x"$with_libunwind_ia64" = xyes; then
25527 for ac_header in libunwind-ia64.h
25528 do :
25529 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
25530 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
25531 cat >>confdefs.h <<_ACEOF
25532 #define HAVE_LIBUNWIND_IA64_H 1
25533 _ACEOF
25537 done
25539 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
25540 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
25542 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
25543 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
25544 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
25547 opt_curses=no
25549 # Check whether --with-curses was given.
25550 if test "${with_curses+set}" = set; then :
25551 withval=$with_curses; opt_curses=$withval
25555 prefer_curses=no
25556 if test "$opt_curses" = "yes"; then
25557 prefer_curses=yes
25560 # Profiling support.
25561 # Check whether --enable-profiling was given.
25562 if test "${enable_profiling+set}" = set; then :
25563 enableval=$enable_profiling;
25564 case $enableval in
25565 yes | no)
25568 as_fn_error $? "bad value $enableval for --enable-profiling" "$LINENO" 5
25570 esac
25572 else
25573 enable_profiling=no
25577 for ac_func in monstartup _mcleanup
25578 do :
25579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25580 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25581 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25582 cat >>confdefs.h <<_ACEOF
25583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25584 _ACEOF
25587 done
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
25590 $as_echo_n "checking for _etext... " >&6; }
25591 if ${ac_cv_var__etext+:} false; then :
25592 $as_echo_n "(cached) " >&6
25593 else
25594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25595 /* end confdefs.h. */
25596 #include <stdlib.h>
25597 extern char _etext;
25599 main ()
25601 free (&_etext);
25604 return 0;
25606 _ACEOF
25607 if ac_fn_c_try_link "$LINENO"; then :
25608 ac_cv_var__etext=yes
25609 else
25610 ac_cv_var__etext=no
25613 rm -f core conftest.err conftest.$ac_objext \
25614 conftest$ac_exeext conftest.$ac_ext
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
25618 $as_echo "$ac_cv_var__etext" >&6; }
25619 if test "$ac_cv_var__etext" = yes; then
25621 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
25625 $as_echo_n "checking for etext... " >&6; }
25626 if ${ac_cv_var_etext+:} false; then :
25627 $as_echo_n "(cached) " >&6
25628 else
25629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25630 /* end confdefs.h. */
25631 #include <stdlib.h>
25632 extern char etext;
25634 main ()
25636 free (&etext);
25639 return 0;
25641 _ACEOF
25642 if ac_fn_c_try_link "$LINENO"; then :
25643 ac_cv_var_etext=yes
25644 else
25645 ac_cv_var_etext=no
25648 rm -f core conftest.err conftest.$ac_objext \
25649 conftest$ac_exeext conftest.$ac_ext
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
25653 $as_echo "$ac_cv_var_etext" >&6; }
25654 if test "$ac_cv_var_etext" = yes; then
25656 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
25659 if test "$enable_profiling" = yes ; then
25660 if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
25661 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
25663 PROFILE_CFLAGS=-pg
25664 OLD_CFLAGS="$CFLAGS"
25665 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
25668 $as_echo_n "checking whether $CC supports -pg... " >&6; }
25669 if ${ac_cv_cc_supports_pg+:} false; then :
25670 $as_echo_n "(cached) " >&6
25671 else
25672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25673 /* end confdefs.h. */
25676 main ()
25678 int x;
25680 return 0;
25682 _ACEOF
25683 if ac_fn_c_try_compile "$LINENO"; then :
25684 ac_cv_cc_supports_pg=yes
25685 else
25686 ac_cv_cc_supports_pg=no
25689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
25693 $as_echo "$ac_cv_cc_supports_pg" >&6; }
25695 if test "$ac_cv_cc_supports_pg" = no; then
25696 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
25699 CFLAGS="$OLD_CFLAGS"
25702 CODESIGN_CERT=
25703 # Check whether --enable-codesign was given.
25704 if test "${enable_codesign+set}" = set; then :
25705 enableval=$enable_codesign; CODESIGN_CERT=$enableval
25712 # Check whether --with-pkgversion was given.
25713 if test "${with_pkgversion+set}" = set; then :
25714 withval=$with_pkgversion; case "$withval" in
25715 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
25716 no) PKGVERSION= ;;
25717 *) PKGVERSION="($withval) " ;;
25718 esac
25719 else
25720 PKGVERSION="(GDB) "
25728 # Check whether --with-bugurl was given.
25729 if test "${with_bugurl+set}" = set; then :
25730 withval=$with_bugurl; case "$withval" in
25731 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
25732 no) BUGURL=
25734 *) BUGURL="$withval"
25736 esac
25737 else
25738 BUGURL="https://www.gnu.org/software/gdb/bugs/"
25742 case ${BUGURL} in
25744 REPORT_BUGS_TO=
25745 REPORT_BUGS_TEXI=
25748 REPORT_BUGS_TO="<$BUGURL>"
25749 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
25751 esac;
25756 cat >>confdefs.h <<_ACEOF
25757 #define PKGVERSION "$PKGVERSION"
25758 _ACEOF
25761 cat >>confdefs.h <<_ACEOF
25762 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
25763 _ACEOF
25766 # --------------------- #
25767 # Checks for programs. #
25768 # --------------------- #
25770 for ac_prog in gawk mawk nawk awk
25772 # Extract the first word of "$ac_prog", so it can be a program name with args.
25773 set dummy $ac_prog; ac_word=$2
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25775 $as_echo_n "checking for $ac_word... " >&6; }
25776 if ${ac_cv_prog_AWK+:} false; then :
25777 $as_echo_n "(cached) " >&6
25778 else
25779 if test -n "$AWK"; then
25780 ac_cv_prog_AWK="$AWK" # Let the user override the test.
25781 else
25782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25783 for as_dir in $PATH
25785 IFS=$as_save_IFS
25786 test -z "$as_dir" && as_dir=.
25787 for ac_exec_ext in '' $ac_executable_extensions; do
25788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25789 ac_cv_prog_AWK="$ac_prog"
25790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25791 break 2
25793 done
25794 done
25795 IFS=$as_save_IFS
25799 AWK=$ac_cv_prog_AWK
25800 if test -n "$AWK"; then
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25802 $as_echo "$AWK" >&6; }
25803 else
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25805 $as_echo "no" >&6; }
25809 test -n "$AWK" && break
25810 done
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25814 $as_echo_n "checking whether ln -s works... " >&6; }
25815 LN_S=$as_ln_s
25816 if test "$LN_S" = "ln -s"; then
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25818 $as_echo "yes" >&6; }
25819 else
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25821 $as_echo "no, using $LN_S" >&6; }
25824 if test -n "$ac_tool_prefix"; then
25825 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
25826 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25828 $as_echo_n "checking for $ac_word... " >&6; }
25829 if ${ac_cv_prog_RANLIB+:} false; then :
25830 $as_echo_n "(cached) " >&6
25831 else
25832 if test -n "$RANLIB"; then
25833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
25834 else
25835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25836 for as_dir in $PATH
25838 IFS=$as_save_IFS
25839 test -z "$as_dir" && as_dir=.
25840 for ac_exec_ext in '' $ac_executable_extensions; do
25841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25842 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
25843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25844 break 2
25846 done
25847 done
25848 IFS=$as_save_IFS
25852 RANLIB=$ac_cv_prog_RANLIB
25853 if test -n "$RANLIB"; then
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
25855 $as_echo "$RANLIB" >&6; }
25856 else
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25858 $as_echo "no" >&6; }
25863 if test -z "$ac_cv_prog_RANLIB"; then
25864 ac_ct_RANLIB=$RANLIB
25865 # Extract the first word of "ranlib", so it can be a program name with args.
25866 set dummy ranlib; ac_word=$2
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25868 $as_echo_n "checking for $ac_word... " >&6; }
25869 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
25870 $as_echo_n "(cached) " >&6
25871 else
25872 if test -n "$ac_ct_RANLIB"; then
25873 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
25874 else
25875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25876 for as_dir in $PATH
25878 IFS=$as_save_IFS
25879 test -z "$as_dir" && as_dir=.
25880 for ac_exec_ext in '' $ac_executable_extensions; do
25881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25882 ac_cv_prog_ac_ct_RANLIB="ranlib"
25883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25884 break 2
25886 done
25887 done
25888 IFS=$as_save_IFS
25892 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
25893 if test -n "$ac_ct_RANLIB"; then
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
25895 $as_echo "$ac_ct_RANLIB" >&6; }
25896 else
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25898 $as_echo "no" >&6; }
25901 if test "x$ac_ct_RANLIB" = x; then
25902 RANLIB=":"
25903 else
25904 case $cross_compiling:$ac_tool_warned in
25905 yes:)
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25908 ac_tool_warned=yes ;;
25909 esac
25910 RANLIB=$ac_ct_RANLIB
25912 else
25913 RANLIB="$ac_cv_prog_RANLIB"
25916 for ac_prog in 'bison -y' byacc
25918 # Extract the first word of "$ac_prog", so it can be a program name with args.
25919 set dummy $ac_prog; ac_word=$2
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25921 $as_echo_n "checking for $ac_word... " >&6; }
25922 if ${ac_cv_prog_YACC+:} false; then :
25923 $as_echo_n "(cached) " >&6
25924 else
25925 if test -n "$YACC"; then
25926 ac_cv_prog_YACC="$YACC" # Let the user override the test.
25927 else
25928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25929 for as_dir in $PATH
25931 IFS=$as_save_IFS
25932 test -z "$as_dir" && as_dir=.
25933 for ac_exec_ext in '' $ac_executable_extensions; do
25934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25935 ac_cv_prog_YACC="$ac_prog"
25936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25937 break 2
25939 done
25940 done
25941 IFS=$as_save_IFS
25945 YACC=$ac_cv_prog_YACC
25946 if test -n "$YACC"; then
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
25948 $as_echo "$YACC" >&6; }
25949 else
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25951 $as_echo "no" >&6; }
25955 test -n "$YACC" && break
25956 done
25957 test -n "$YACC" || YACC="yacc"
25960 if test -n "$ac_tool_prefix"; then
25961 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
25962 set dummy ${ac_tool_prefix}ar; ac_word=$2
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25964 $as_echo_n "checking for $ac_word... " >&6; }
25965 if ${ac_cv_prog_AR+:} false; then :
25966 $as_echo_n "(cached) " >&6
25967 else
25968 if test -n "$AR"; then
25969 ac_cv_prog_AR="$AR" # Let the user override the test.
25970 else
25971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25972 for as_dir in $PATH
25974 IFS=$as_save_IFS
25975 test -z "$as_dir" && as_dir=.
25976 for ac_exec_ext in '' $ac_executable_extensions; do
25977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25978 ac_cv_prog_AR="${ac_tool_prefix}ar"
25979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25980 break 2
25982 done
25983 done
25984 IFS=$as_save_IFS
25988 AR=$ac_cv_prog_AR
25989 if test -n "$AR"; then
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
25991 $as_echo "$AR" >&6; }
25992 else
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25994 $as_echo "no" >&6; }
25999 if test -z "$ac_cv_prog_AR"; then
26000 ac_ct_AR=$AR
26001 # Extract the first word of "ar", so it can be a program name with args.
26002 set dummy ar; ac_word=$2
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26004 $as_echo_n "checking for $ac_word... " >&6; }
26005 if ${ac_cv_prog_ac_ct_AR+:} false; then :
26006 $as_echo_n "(cached) " >&6
26007 else
26008 if test -n "$ac_ct_AR"; then
26009 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
26010 else
26011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26012 for as_dir in $PATH
26014 IFS=$as_save_IFS
26015 test -z "$as_dir" && as_dir=.
26016 for ac_exec_ext in '' $ac_executable_extensions; do
26017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26018 ac_cv_prog_ac_ct_AR="ar"
26019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26020 break 2
26022 done
26023 done
26024 IFS=$as_save_IFS
26028 ac_ct_AR=$ac_cv_prog_ac_ct_AR
26029 if test -n "$ac_ct_AR"; then
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
26031 $as_echo "$ac_ct_AR" >&6; }
26032 else
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26034 $as_echo "no" >&6; }
26037 if test "x$ac_ct_AR" = x; then
26038 AR=""
26039 else
26040 case $cross_compiling:$ac_tool_warned in
26041 yes:)
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26044 ac_tool_warned=yes ;;
26045 esac
26046 AR=$ac_ct_AR
26048 else
26049 AR="$ac_cv_prog_AR"
26052 if test -n "$ac_tool_prefix"; then
26053 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
26054 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26056 $as_echo_n "checking for $ac_word... " >&6; }
26057 if ${ac_cv_prog_DLLTOOL+:} false; then :
26058 $as_echo_n "(cached) " >&6
26059 else
26060 if test -n "$DLLTOOL"; then
26061 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
26062 else
26063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26064 for as_dir in $PATH
26066 IFS=$as_save_IFS
26067 test -z "$as_dir" && as_dir=.
26068 for ac_exec_ext in '' $ac_executable_extensions; do
26069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26070 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
26071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26072 break 2
26074 done
26075 done
26076 IFS=$as_save_IFS
26080 DLLTOOL=$ac_cv_prog_DLLTOOL
26081 if test -n "$DLLTOOL"; then
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
26083 $as_echo "$DLLTOOL" >&6; }
26084 else
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26086 $as_echo "no" >&6; }
26091 if test -z "$ac_cv_prog_DLLTOOL"; then
26092 ac_ct_DLLTOOL=$DLLTOOL
26093 # Extract the first word of "dlltool", so it can be a program name with args.
26094 set dummy dlltool; ac_word=$2
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26096 $as_echo_n "checking for $ac_word... " >&6; }
26097 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
26098 $as_echo_n "(cached) " >&6
26099 else
26100 if test -n "$ac_ct_DLLTOOL"; then
26101 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
26102 else
26103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26104 for as_dir in $PATH
26106 IFS=$as_save_IFS
26107 test -z "$as_dir" && as_dir=.
26108 for ac_exec_ext in '' $ac_executable_extensions; do
26109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26110 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
26111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26112 break 2
26114 done
26115 done
26116 IFS=$as_save_IFS
26120 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
26121 if test -n "$ac_ct_DLLTOOL"; then
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
26123 $as_echo "$ac_ct_DLLTOOL" >&6; }
26124 else
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26126 $as_echo "no" >&6; }
26129 if test "x$ac_ct_DLLTOOL" = x; then
26130 DLLTOOL=""
26131 else
26132 case $cross_compiling:$ac_tool_warned in
26133 yes:)
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26136 ac_tool_warned=yes ;;
26137 esac
26138 DLLTOOL=$ac_ct_DLLTOOL
26140 else
26141 DLLTOOL="$ac_cv_prog_DLLTOOL"
26144 if test -n "$ac_tool_prefix"; then
26145 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
26146 set dummy ${ac_tool_prefix}windres; ac_word=$2
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26148 $as_echo_n "checking for $ac_word... " >&6; }
26149 if ${ac_cv_prog_WINDRES+:} false; then :
26150 $as_echo_n "(cached) " >&6
26151 else
26152 if test -n "$WINDRES"; then
26153 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
26154 else
26155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26156 for as_dir in $PATH
26158 IFS=$as_save_IFS
26159 test -z "$as_dir" && as_dir=.
26160 for ac_exec_ext in '' $ac_executable_extensions; do
26161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26162 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
26163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26164 break 2
26166 done
26167 done
26168 IFS=$as_save_IFS
26172 WINDRES=$ac_cv_prog_WINDRES
26173 if test -n "$WINDRES"; then
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
26175 $as_echo "$WINDRES" >&6; }
26176 else
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26178 $as_echo "no" >&6; }
26183 if test -z "$ac_cv_prog_WINDRES"; then
26184 ac_ct_WINDRES=$WINDRES
26185 # Extract the first word of "windres", so it can be a program name with args.
26186 set dummy windres; ac_word=$2
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26188 $as_echo_n "checking for $ac_word... " >&6; }
26189 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
26190 $as_echo_n "(cached) " >&6
26191 else
26192 if test -n "$ac_ct_WINDRES"; then
26193 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
26194 else
26195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26196 for as_dir in $PATH
26198 IFS=$as_save_IFS
26199 test -z "$as_dir" && as_dir=.
26200 for ac_exec_ext in '' $ac_executable_extensions; do
26201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26202 ac_cv_prog_ac_ct_WINDRES="windres"
26203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26204 break 2
26206 done
26207 done
26208 IFS=$as_save_IFS
26212 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
26213 if test -n "$ac_ct_WINDRES"; then
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
26215 $as_echo "$ac_ct_WINDRES" >&6; }
26216 else
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26218 $as_echo "no" >&6; }
26221 if test "x$ac_ct_WINDRES" = x; then
26222 WINDRES=""
26223 else
26224 case $cross_compiling:$ac_tool_warned in
26225 yes:)
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26228 ac_tool_warned=yes ;;
26229 esac
26230 WINDRES=$ac_ct_WINDRES
26232 else
26233 WINDRES="$ac_cv_prog_WINDRES"
26237 case $host_os in
26238 gnu*)
26239 # Needed for GNU Hurd hosts.
26240 if test -n "$ac_tool_prefix"; then
26241 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
26242 set dummy ${ac_tool_prefix}mig; ac_word=$2
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26244 $as_echo_n "checking for $ac_word... " >&6; }
26245 if ${ac_cv_prog_MIG+:} false; then :
26246 $as_echo_n "(cached) " >&6
26247 else
26248 if test -n "$MIG"; then
26249 ac_cv_prog_MIG="$MIG" # Let the user override the test.
26250 else
26251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26252 for as_dir in $PATH
26254 IFS=$as_save_IFS
26255 test -z "$as_dir" && as_dir=.
26256 for ac_exec_ext in '' $ac_executable_extensions; do
26257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26258 ac_cv_prog_MIG="${ac_tool_prefix}mig"
26259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26260 break 2
26262 done
26263 done
26264 IFS=$as_save_IFS
26268 MIG=$ac_cv_prog_MIG
26269 if test -n "$MIG"; then
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
26271 $as_echo "$MIG" >&6; }
26272 else
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26274 $as_echo "no" >&6; }
26279 if test -z "$ac_cv_prog_MIG"; then
26280 ac_ct_MIG=$MIG
26281 # Extract the first word of "mig", so it can be a program name with args.
26282 set dummy mig; ac_word=$2
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26284 $as_echo_n "checking for $ac_word... " >&6; }
26285 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
26286 $as_echo_n "(cached) " >&6
26287 else
26288 if test -n "$ac_ct_MIG"; then
26289 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
26290 else
26291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26292 for as_dir in $PATH
26294 IFS=$as_save_IFS
26295 test -z "$as_dir" && as_dir=.
26296 for ac_exec_ext in '' $ac_executable_extensions; do
26297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26298 ac_cv_prog_ac_ct_MIG="mig"
26299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26300 break 2
26302 done
26303 done
26304 IFS=$as_save_IFS
26308 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
26309 if test -n "$ac_ct_MIG"; then
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
26311 $as_echo "$ac_ct_MIG" >&6; }
26312 else
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26314 $as_echo "no" >&6; }
26317 if test "x$ac_ct_MIG" = x; then
26318 MIG=""
26319 else
26320 case $cross_compiling:$ac_tool_warned in
26321 yes:)
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26324 ac_tool_warned=yes ;;
26325 esac
26326 MIG=$ac_ct_MIG
26328 else
26329 MIG="$ac_cv_prog_MIG"
26332 if test x"$MIG" = x; then
26333 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
26336 esac
26338 # ---------------------- #
26339 # Checks for libraries. #
26340 # ---------------------- #
26342 # We might need to link with -lm; most simulators need it.
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
26344 $as_echo_n "checking for main in -lm... " >&6; }
26345 if ${ac_cv_lib_m_main+:} false; then :
26346 $as_echo_n "(cached) " >&6
26347 else
26348 ac_check_lib_save_LIBS=$LIBS
26349 LIBS="-lm $LIBS"
26350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26351 /* end confdefs.h. */
26355 main ()
26357 return main ();
26359 return 0;
26361 _ACEOF
26362 if ac_fn_c_try_link "$LINENO"; then :
26363 ac_cv_lib_m_main=yes
26364 else
26365 ac_cv_lib_m_main=no
26367 rm -f core conftest.err conftest.$ac_objext \
26368 conftest$ac_exeext conftest.$ac_ext
26369 LIBS=$ac_check_lib_save_LIBS
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
26372 $as_echo "$ac_cv_lib_m_main" >&6; }
26373 if test "x$ac_cv_lib_m_main" = xyes; then :
26374 cat >>confdefs.h <<_ACEOF
26375 #define HAVE_LIBM 1
26376 _ACEOF
26378 LIBS="-lm $LIBS"
26383 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26385 $as_echo_n "checking for library containing gethostbyname... " >&6; }
26386 if ${ac_cv_search_gethostbyname+:} false; then :
26387 $as_echo_n "(cached) " >&6
26388 else
26389 ac_func_search_save_LIBS=$LIBS
26390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26391 /* end confdefs.h. */
26393 /* Override any GCC internal prototype to avoid an error.
26394 Use char because int might match the return type of a GCC
26395 builtin and then its argument prototype would still apply. */
26396 #ifdef __cplusplus
26397 extern "C"
26398 #endif
26399 char gethostbyname ();
26401 main ()
26403 return gethostbyname ();
26405 return 0;
26407 _ACEOF
26408 for ac_lib in '' nsl; do
26409 if test -z "$ac_lib"; then
26410 ac_res="none required"
26411 else
26412 ac_res=-l$ac_lib
26413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26415 if ac_fn_c_try_link "$LINENO"; then :
26416 ac_cv_search_gethostbyname=$ac_res
26418 rm -f core conftest.err conftest.$ac_objext \
26419 conftest$ac_exeext
26420 if ${ac_cv_search_gethostbyname+:} false; then :
26421 break
26423 done
26424 if ${ac_cv_search_gethostbyname+:} false; then :
26426 else
26427 ac_cv_search_gethostbyname=no
26429 rm conftest.$ac_ext
26430 LIBS=$ac_func_search_save_LIBS
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26433 $as_echo "$ac_cv_search_gethostbyname" >&6; }
26434 ac_res=$ac_cv_search_gethostbyname
26435 if test "$ac_res" != no; then :
26436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26441 # Link in zlib/zstd if we can. This allows us to read compressed debug
26442 # sections.
26444 # Use the system's zlib library.
26445 zlibdir="-L\$(top_builddir)/../zlib"
26446 zlibinc="-I\$(top_srcdir)/../zlib"
26448 # Check whether --with-system-zlib was given.
26449 if test "${with_system_zlib+set}" = set; then :
26450 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
26451 zlibdir=
26452 zlibinc=
26462 # Check whether --with-zstd was given.
26463 if test "${with_zstd+set}" = set; then :
26464 withval=$with_zstd;
26465 else
26466 with_zstd=auto
26470 if test "$with_zstd" != no; then :
26472 pkg_failed=no
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
26474 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
26476 if test -n "$ZSTD_CFLAGS"; then
26477 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
26478 elif test -n "$PKG_CONFIG"; then
26479 if test -n "$PKG_CONFIG" && \
26480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
26481 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
26482 ac_status=$?
26483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26484 test $ac_status = 0; }; then
26485 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
26486 test "x$?" != "x0" && pkg_failed=yes
26487 else
26488 pkg_failed=yes
26490 else
26491 pkg_failed=untried
26493 if test -n "$ZSTD_LIBS"; then
26494 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
26495 elif test -n "$PKG_CONFIG"; then
26496 if test -n "$PKG_CONFIG" && \
26497 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
26498 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
26499 ac_status=$?
26500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26501 test $ac_status = 0; }; then
26502 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
26503 test "x$?" != "x0" && pkg_failed=yes
26504 else
26505 pkg_failed=yes
26507 else
26508 pkg_failed=untried
26511 if test $pkg_failed = no; then
26512 pkg_save_LDFLAGS="$LDFLAGS"
26513 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
26514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26515 /* end confdefs.h. */
26518 main ()
26522 return 0;
26524 _ACEOF
26525 if ac_fn_c_try_link "$LINENO"; then :
26527 else
26528 pkg_failed=yes
26530 rm -f core conftest.err conftest.$ac_objext \
26531 conftest$ac_exeext conftest.$ac_ext
26532 LDFLAGS=$pkg_save_LDFLAGS
26537 if test $pkg_failed = yes; then
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26539 $as_echo "no" >&6; }
26541 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26542 _pkg_short_errors_supported=yes
26543 else
26544 _pkg_short_errors_supported=no
26546 if test $_pkg_short_errors_supported = yes; then
26547 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
26548 else
26549 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
26551 # Put the nasty error message in config.log where it belongs
26552 echo "$ZSTD_PKG_ERRORS" >&5
26555 if test "$with_zstd" = yes; then
26556 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
26559 elif test $pkg_failed = untried; then
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26561 $as_echo "no" >&6; }
26563 if test "$with_zstd" = yes; then
26564 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
26567 else
26568 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
26569 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26571 $as_echo "yes" >&6; }
26574 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
26587 am_save_CPPFLAGS="$CPPFLAGS"
26589 for element in $INCICONV; do
26590 haveit=
26591 for x in $CPPFLAGS; do
26593 acl_save_prefix="$prefix"
26594 prefix="$acl_final_prefix"
26595 acl_save_exec_prefix="$exec_prefix"
26596 exec_prefix="$acl_final_exec_prefix"
26597 eval x=\"$x\"
26598 exec_prefix="$acl_save_exec_prefix"
26599 prefix="$acl_save_prefix"
26601 if test "X$x" = "X$element"; then
26602 haveit=yes
26603 break
26605 done
26606 if test -z "$haveit"; then
26607 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26609 done
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
26613 $as_echo_n "checking for iconv... " >&6; }
26614 if ${am_cv_func_iconv+:} false; then :
26615 $as_echo_n "(cached) " >&6
26616 else
26618 am_cv_func_iconv="no, consider installing GNU libiconv"
26619 am_cv_lib_iconv=no
26620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26621 /* end confdefs.h. */
26623 #include <stdlib.h>
26624 #include <iconv.h>
26627 main ()
26629 iconv_t cd = iconv_open("","");
26630 iconv(cd,NULL,NULL,NULL,NULL);
26631 iconv_close(cd);
26633 return 0;
26635 _ACEOF
26636 if ac_fn_c_try_link "$LINENO"; then :
26637 am_cv_func_iconv=yes
26639 rm -f core conftest.err conftest.$ac_objext \
26640 conftest$ac_exeext conftest.$ac_ext
26641 if test "$am_cv_func_iconv" != yes; then
26642 am_save_LIBS="$LIBS"
26643 LIBS="$LIBS $LIBICONV"
26644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26645 /* end confdefs.h. */
26647 #include <stdlib.h>
26648 #include <iconv.h>
26651 main ()
26653 iconv_t cd = iconv_open("","");
26654 iconv(cd,NULL,NULL,NULL,NULL);
26655 iconv_close(cd);
26657 return 0;
26659 _ACEOF
26660 if ac_fn_c_try_link "$LINENO"; then :
26661 am_cv_lib_iconv=yes
26662 am_cv_func_iconv=yes
26664 rm -f core conftest.err conftest.$ac_objext \
26665 conftest$ac_exeext conftest.$ac_ext
26666 LIBS="$am_save_LIBS"
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
26671 $as_echo "$am_cv_func_iconv" >&6; }
26672 if test "$am_cv_func_iconv" = yes; then
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
26674 $as_echo_n "checking for working iconv... " >&6; }
26675 if ${am_cv_func_iconv_works+:} false; then :
26676 $as_echo_n "(cached) " >&6
26677 else
26679 am_save_LIBS="$LIBS"
26680 if test $am_cv_lib_iconv = yes; then
26681 LIBS="$LIBS $LIBICONV"
26683 am_cv_func_iconv_works=no
26684 for ac_iconv_const in '' 'const'; do
26685 if test "$cross_compiling" = yes; then :
26686 case "$host_os" in
26687 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
26688 *) am_cv_func_iconv_works="guessing yes" ;;
26689 esac
26690 else
26691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26692 /* end confdefs.h. */
26694 #include <iconv.h>
26695 #include <string.h>
26697 #ifndef ICONV_CONST
26698 # define ICONV_CONST $ac_iconv_const
26699 #endif
26702 main ()
26704 int result = 0;
26705 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
26706 successful returns. This is even documented in
26707 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
26709 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
26710 if (cd_utf8_to_88591 != (iconv_t)(-1))
26712 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
26713 char buf[10];
26714 ICONV_CONST char *inptr = input;
26715 size_t inbytesleft = strlen (input);
26716 char *outptr = buf;
26717 size_t outbytesleft = sizeof (buf);
26718 size_t res = iconv (cd_utf8_to_88591,
26719 &inptr, &inbytesleft,
26720 &outptr, &outbytesleft);
26721 if (res == 0)
26722 result |= 1;
26723 iconv_close (cd_utf8_to_88591);
26726 /* Test against Solaris 10 bug: Failures are not distinguishable from
26727 successful returns. */
26729 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
26730 if (cd_ascii_to_88591 != (iconv_t)(-1))
26732 static ICONV_CONST char input[] = "\263";
26733 char buf[10];
26734 ICONV_CONST char *inptr = input;
26735 size_t inbytesleft = strlen (input);
26736 char *outptr = buf;
26737 size_t outbytesleft = sizeof (buf);
26738 size_t res = iconv (cd_ascii_to_88591,
26739 &inptr, &inbytesleft,
26740 &outptr, &outbytesleft);
26741 if (res == 0)
26742 result |= 2;
26743 iconv_close (cd_ascii_to_88591);
26746 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
26748 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
26749 if (cd_88591_to_utf8 != (iconv_t)(-1))
26751 static ICONV_CONST char input[] = "\304";
26752 static char buf[2] = { (char)0xDE, (char)0xAD };
26753 ICONV_CONST char *inptr = input;
26754 size_t inbytesleft = 1;
26755 char *outptr = buf;
26756 size_t outbytesleft = 1;
26757 size_t res = iconv (cd_88591_to_utf8,
26758 &inptr, &inbytesleft,
26759 &outptr, &outbytesleft);
26760 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
26761 result |= 4;
26762 iconv_close (cd_88591_to_utf8);
26765 #if 0 /* This bug could be worked around by the caller. */
26766 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
26768 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
26769 if (cd_88591_to_utf8 != (iconv_t)(-1))
26771 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
26772 char buf[50];
26773 ICONV_CONST char *inptr = input;
26774 size_t inbytesleft = strlen (input);
26775 char *outptr = buf;
26776 size_t outbytesleft = sizeof (buf);
26777 size_t res = iconv (cd_88591_to_utf8,
26778 &inptr, &inbytesleft,
26779 &outptr, &outbytesleft);
26780 if ((int)res > 0)
26781 result |= 8;
26782 iconv_close (cd_88591_to_utf8);
26785 #endif
26786 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
26787 provided. */
26789 /* Try standardized names. */
26790 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
26791 /* Try IRIX, OSF/1 names. */
26792 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
26793 /* Try AIX names. */
26794 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
26795 /* Try HP-UX names. */
26796 iconv_t cd4 = iconv_open ("utf8", "eucJP");
26797 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
26798 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
26799 result |= 16;
26800 if (cd1 != (iconv_t)(-1))
26801 iconv_close (cd1);
26802 if (cd2 != (iconv_t)(-1))
26803 iconv_close (cd2);
26804 if (cd3 != (iconv_t)(-1))
26805 iconv_close (cd3);
26806 if (cd4 != (iconv_t)(-1))
26807 iconv_close (cd4);
26809 return result;
26812 return 0;
26814 _ACEOF
26815 if ac_fn_c_try_run "$LINENO"; then :
26816 am_cv_func_iconv_works=yes
26818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26819 conftest.$ac_objext conftest.beam conftest.$ac_ext
26822 test "$am_cv_func_iconv_works" = no || break
26823 done
26824 LIBS="$am_save_LIBS"
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
26828 $as_echo "$am_cv_func_iconv_works" >&6; }
26829 case "$am_cv_func_iconv_works" in
26830 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
26831 *) am_func_iconv=yes ;;
26832 esac
26833 else
26834 am_func_iconv=no am_cv_lib_iconv=no
26836 if test "$am_func_iconv" = yes; then
26838 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
26841 if test "$am_cv_lib_iconv" = yes; then
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
26843 $as_echo_n "checking how to link with libiconv... " >&6; }
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
26845 $as_echo "$LIBICONV" >&6; }
26846 else
26847 CPPFLAGS="$am_save_CPPFLAGS"
26848 LIBICONV=
26849 LTLIBICONV=
26854 if test "$am_cv_func_iconv" = yes; then
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
26856 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
26857 if ${gl_cv_iconv_nonconst+:} false; then :
26858 $as_echo_n "(cached) " >&6
26859 else
26860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861 /* end confdefs.h. */
26863 #include <stdlib.h>
26864 #include <iconv.h>
26865 extern
26866 #ifdef __cplusplus
26868 #endif
26869 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26872 main ()
26876 return 0;
26878 _ACEOF
26879 if ac_fn_c_try_compile "$LINENO"; then :
26880 gl_cv_iconv_nonconst=yes
26881 else
26882 gl_cv_iconv_nonconst=no
26884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
26888 $as_echo "$gl_cv_iconv_nonconst" >&6; }
26889 else
26890 gl_cv_iconv_nonconst=yes
26892 if test $gl_cv_iconv_nonconst = yes; then
26893 iconv_arg1=""
26894 else
26895 iconv_arg1="const"
26898 cat >>confdefs.h <<_ACEOF
26899 #define ICONV_CONST $iconv_arg1
26900 _ACEOF
26904 if test "$am_func_iconv" = yes; then
26905 if test -n "$LIBICONV"; then
26906 am_cv_func_iconv_summary='yes, in libiconv'
26907 else
26908 am_cv_func_iconv_summary='yes, in libc'
26910 else
26911 if test "$am_cv_func_iconv" = yes; then
26912 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
26913 else
26914 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
26919 # GDB may fork/exec the iconv program to get the list of supported character
26920 # sets. Allow the user to specify where to find it.
26921 # There are several factors affecting the choice of option name:
26922 # - There is already --with-libiconv-prefix but we can't use it, it specifies
26923 # the build-time location of libiconv files.
26924 # - The program we need to find is iconv, which comes with glibc. The user
26925 # doesn't necessarily have libiconv installed. Therefore naming this
26926 # --with-libiconv-foo feels wrong.
26927 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
26928 # defined to work on directories not files (though it really doesn't know
26929 # the difference).
26930 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
26931 # with --with-libiconv-prefix.
26932 # Putting these together is why the option name is --with-iconv-bin.
26935 # Check whether --with-iconv-bin was given.
26936 if test "${with_iconv_bin+set}" = set; then :
26937 withval=$with_iconv_bin; iconv_bin="${withval}"
26939 cat >>confdefs.h <<_ACEOF
26940 #define ICONV_BIN "${iconv_bin}"
26941 _ACEOF
26944 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
26945 if test "x$prefix" = xNONE; then
26946 test_prefix=/usr/local
26947 else
26948 test_prefix=$prefix
26950 else
26951 test_prefix=$exec_prefix
26953 value=0
26954 case ${iconv_bin} in
26955 "${test_prefix}"|"${test_prefix}/"*|\
26956 '${exec_prefix}'|'${exec_prefix}/'*)
26957 value=1
26959 esac
26961 cat >>confdefs.h <<_ACEOF
26962 #define ICONV_BIN_RELOCATABLE $value
26963 _ACEOF
26970 # For the TUI, we need enhanced curses functionality.
26971 if test x"$enable_tui" != xno; then
26972 prefer_curses=yes
26975 curses_found=no
26976 if test x"$prefer_curses" = xyes; then
26977 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
26978 # curses library because the latter might not provide all the
26979 # functionality we need. However, this leads to problems on systems
26980 # where the linker searches /usr/local/lib, but the compiler doesn't
26981 # search /usr/local/include, if ncurses is installed in /usr/local. A
26982 # default installation of ncurses on alpha*-dec-osf* will lead to such
26983 # a situation.
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
26985 $as_echo_n "checking for library containing waddstr... " >&6; }
26986 if ${ac_cv_search_waddstr+:} false; then :
26987 $as_echo_n "(cached) " >&6
26988 else
26989 ac_func_search_save_LIBS=$LIBS
26990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26991 /* end confdefs.h. */
26993 /* Override any GCC internal prototype to avoid an error.
26994 Use char because int might match the return type of a GCC
26995 builtin and then its argument prototype would still apply. */
26996 #ifdef __cplusplus
26997 extern "C"
26998 #endif
26999 char waddstr ();
27001 main ()
27003 return waddstr ();
27005 return 0;
27007 _ACEOF
27008 for ac_lib in '' ncursesw ncurses cursesX curses; do
27009 if test -z "$ac_lib"; then
27010 ac_res="none required"
27011 else
27012 ac_res=-l$ac_lib
27013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27015 if ac_fn_c_try_link "$LINENO"; then :
27016 ac_cv_search_waddstr=$ac_res
27018 rm -f core conftest.err conftest.$ac_objext \
27019 conftest$ac_exeext
27020 if ${ac_cv_search_waddstr+:} false; then :
27021 break
27023 done
27024 if ${ac_cv_search_waddstr+:} false; then :
27026 else
27027 ac_cv_search_waddstr=no
27029 rm conftest.$ac_ext
27030 LIBS=$ac_func_search_save_LIBS
27032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
27033 $as_echo "$ac_cv_search_waddstr" >&6; }
27034 ac_res=$ac_cv_search_waddstr
27035 if test "$ac_res" != no; then :
27036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27037 curses_found=yes
27039 $as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h
27046 # Check whether we should enable the TUI, but only do so if we really
27047 # can.
27048 if test x"$enable_tui" != xno; then
27049 if test "$curses_found" != no; then
27050 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
27051 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
27052 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
27053 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
27054 else
27055 if test x"$enable_tui" = xyes; then
27056 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
27057 else
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
27059 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
27064 # Since GDB uses Readline, we need termcap functionality. In many
27065 # cases this will be provided by the curses library, but some systems
27066 # have a separate termcap library, or no curses library at all.
27068 case $host_os in
27069 cygwin*)
27070 if test -d "$srcdir/libtermcap"; then
27071 LIBS="../libtermcap/libtermcap.a $LIBS"
27072 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
27073 fi ;;
27074 go32* | *djgpp*)
27075 ac_cv_search_tgetent="none required"
27077 esac
27079 # These are the libraries checked by Readline.
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
27081 $as_echo_n "checking for library containing tgetent... " >&6; }
27082 if ${ac_cv_search_tgetent+:} false; then :
27083 $as_echo_n "(cached) " >&6
27084 else
27085 ac_func_search_save_LIBS=$LIBS
27086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27087 /* end confdefs.h. */
27089 /* Override any GCC internal prototype to avoid an error.
27090 Use char because int might match the return type of a GCC
27091 builtin and then its argument prototype would still apply. */
27092 #ifdef __cplusplus
27093 extern "C"
27094 #endif
27095 char tgetent ();
27097 main ()
27099 return tgetent ();
27101 return 0;
27103 _ACEOF
27104 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
27105 if test -z "$ac_lib"; then
27106 ac_res="none required"
27107 else
27108 ac_res=-l$ac_lib
27109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27111 if ac_fn_c_try_link "$LINENO"; then :
27112 ac_cv_search_tgetent=$ac_res
27114 rm -f core conftest.err conftest.$ac_objext \
27115 conftest$ac_exeext
27116 if ${ac_cv_search_tgetent+:} false; then :
27117 break
27119 done
27120 if ${ac_cv_search_tgetent+:} false; then :
27122 else
27123 ac_cv_search_tgetent=no
27125 rm conftest.$ac_ext
27126 LIBS=$ac_func_search_save_LIBS
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
27129 $as_echo "$ac_cv_search_tgetent" >&6; }
27130 ac_res=$ac_cv_search_tgetent
27131 if test "$ac_res" != no; then :
27132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27137 if test "$ac_cv_search_tgetent" = no; then
27138 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
27142 # Check whether --with-system-readline was given.
27143 if test "${with_system_readline+set}" = set; then :
27144 withval=$with_system_readline;
27148 if test "$with_system_readline" = yes; then
27149 for ac_header in readline/readline.h
27150 do :
27151 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
27152 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
27153 cat >>confdefs.h <<_ACEOF
27154 #define HAVE_READLINE_READLINE_H 1
27155 _ACEOF
27156 readline_h=yes
27157 else
27158 readline_h=no
27161 done
27163 if test "$readline_h" = "no"; then
27164 as_fn_error $? "readline development packages are probably missing" "$LINENO" 5
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
27167 $as_echo_n "checking whether system readline is new enough... " >&6; }
27168 if ${gdb_cv_readline_ok+:} false; then :
27169 $as_echo_n "(cached) " >&6
27170 else
27171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27172 /* end confdefs.h. */
27173 #include <stdio.h>
27174 #include <readline/readline.h>
27176 main ()
27178 #if RL_VERSION_MAJOR < 7
27179 # error "readline version 7 required"
27180 #endif
27183 return 0;
27185 _ACEOF
27186 if ac_fn_c_try_compile "$LINENO"; then :
27187 gdb_cv_readline_ok=yes
27188 else
27189 gdb_cv_readline_ok=no
27192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
27196 $as_echo "$gdb_cv_readline_ok" >&6; }
27197 if test "$gdb_cv_readline_ok" != yes; then
27198 as_fn_error $? "system readline is not new enough" "$LINENO" 5
27201 READLINE=-lreadline
27202 READLINE_DEPS=
27203 READLINE_CFLAGS=
27204 READLINE_TEXI_INCFLAG=
27205 READLINE_DOC_SOURCE_INCLUDES='$(READLINE_SYSTEM_DOC_INCLUDES)'
27206 else
27207 READLINE='$(READLINE_DIR)/libreadline.a'
27208 READLINE_DEPS='$(READLINE)'
27209 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
27210 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
27211 READLINE_DOC_SOURCE_INCLUDES='$(READLINE_INTREE_DOC_INCLUDES)'
27219 # Generate jit-reader.h
27221 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
27222 TARGET_PTR=
27224 # The cast to long int works around a bug in the HP C Compiler
27225 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27226 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27227 # This bug is HP SR number 8606223364.
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
27229 $as_echo_n "checking size of unsigned long long... " >&6; }
27230 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
27231 $as_echo_n "(cached) " >&6
27232 else
27233 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
27235 else
27236 if test "$ac_cv_type_unsigned_long_long" = yes; then
27237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27239 as_fn_error 77 "cannot compute sizeof (unsigned long long)
27240 See \`config.log' for more details" "$LINENO" 5; }
27241 else
27242 ac_cv_sizeof_unsigned_long_long=0
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
27248 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
27252 cat >>confdefs.h <<_ACEOF
27253 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27254 _ACEOF
27257 # The cast to long int works around a bug in the HP C Compiler
27258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27260 # This bug is HP SR number 8606223364.
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
27262 $as_echo_n "checking size of unsigned long... " >&6; }
27263 if ${ac_cv_sizeof_unsigned_long+:} false; then :
27264 $as_echo_n "(cached) " >&6
27265 else
27266 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
27268 else
27269 if test "$ac_cv_type_unsigned_long" = yes; then
27270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27272 as_fn_error 77 "cannot compute sizeof (unsigned long)
27273 See \`config.log' for more details" "$LINENO" 5; }
27274 else
27275 ac_cv_sizeof_unsigned_long=0
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
27281 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
27285 cat >>confdefs.h <<_ACEOF
27286 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
27287 _ACEOF
27290 # The cast to long int works around a bug in the HP C Compiler
27291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27293 # This bug is HP SR number 8606223364.
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
27295 $as_echo_n "checking size of unsigned __int128... " >&6; }
27296 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
27297 $as_echo_n "(cached) " >&6
27298 else
27299 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
27301 else
27302 if test "$ac_cv_type_unsigned___int128" = yes; then
27303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27305 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
27306 See \`config.log' for more details" "$LINENO" 5; }
27307 else
27308 ac_cv_sizeof_unsigned___int128=0
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
27314 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
27318 cat >>confdefs.h <<_ACEOF
27319 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
27320 _ACEOF
27324 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
27325 TARGET_PTR="unsigned long"
27326 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
27327 TARGET_PTR="unsigned long long"
27328 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
27329 TARGET_PTR="unsigned __int128"
27330 else
27331 TARGET_PTR="unsigned long"
27335 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
27338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27339 $as_echo_n "checking for library containing dlopen... " >&6; }
27340 if ${ac_cv_search_dlopen+:} false; then :
27341 $as_echo_n "(cached) " >&6
27342 else
27343 ac_func_search_save_LIBS=$LIBS
27344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27345 /* end confdefs.h. */
27347 /* Override any GCC internal prototype to avoid an error.
27348 Use char because int might match the return type of a GCC
27349 builtin and then its argument prototype would still apply. */
27350 #ifdef __cplusplus
27351 extern "C"
27352 #endif
27353 char dlopen ();
27355 main ()
27357 return dlopen ();
27359 return 0;
27361 _ACEOF
27362 for ac_lib in '' dl; do
27363 if test -z "$ac_lib"; then
27364 ac_res="none required"
27365 else
27366 ac_res=-l$ac_lib
27367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27369 if ac_fn_c_try_link "$LINENO"; then :
27370 ac_cv_search_dlopen=$ac_res
27372 rm -f core conftest.err conftest.$ac_objext \
27373 conftest$ac_exeext
27374 if ${ac_cv_search_dlopen+:} false; then :
27375 break
27377 done
27378 if ${ac_cv_search_dlopen+:} false; then :
27380 else
27381 ac_cv_search_dlopen=no
27383 rm conftest.$ac_ext
27384 LIBS=$ac_func_search_save_LIBS
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27387 $as_echo "$ac_cv_search_dlopen" >&6; }
27388 ac_res=$ac_cv_search_dlopen
27389 if test "$ac_res" != no; then :
27390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27397 # Check whether --with-jit-reader-dir was given.
27398 if test "${with_jit_reader_dir+set}" = set; then :
27399 withval=$with_jit_reader_dir;
27400 JIT_READER_DIR=$withval
27401 else
27402 JIT_READER_DIR=${libdir}/gdb
27406 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
27407 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27408 ac_define_dir=`eval echo $JIT_READER_DIR`
27409 ac_define_dir=`eval echo $ac_define_dir`
27411 cat >>confdefs.h <<_ACEOF
27412 #define JIT_READER_DIR "$ac_define_dir"
27413 _ACEOF
27418 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
27419 if test "x$prefix" = xNONE; then
27420 test_prefix=/usr/local
27421 else
27422 test_prefix=$prefix
27424 else
27425 test_prefix=$exec_prefix
27427 value=0
27428 case ${ac_define_dir} in
27429 "${test_prefix}"|"${test_prefix}/"*|\
27430 '${exec_prefix}'|'${exec_prefix}/'*)
27431 value=1
27433 esac
27435 cat >>confdefs.h <<_ACEOF
27436 #define JIT_READER_DIR_RELOCATABLE $value
27437 _ACEOF
27443 # Check whether --with-expat was given.
27444 if test "${with_expat+set}" = set; then :
27445 withval=$with_expat;
27446 else
27447 with_expat=auto
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
27451 $as_echo_n "checking whether to use expat... " >&6; }
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
27453 $as_echo "$with_expat" >&6; }
27455 if test "${with_expat}" = no; then
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
27457 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
27458 HAVE_LIBEXPAT=no
27459 else
27468 use_additional=yes
27470 acl_save_prefix="$prefix"
27471 prefix="$acl_final_prefix"
27472 acl_save_exec_prefix="$exec_prefix"
27473 exec_prefix="$acl_final_exec_prefix"
27475 eval additional_includedir=\"$includedir\"
27476 eval additional_libdir=\"$libdir\"
27478 exec_prefix="$acl_save_exec_prefix"
27479 prefix="$acl_save_prefix"
27482 # Check whether --with-libexpat-prefix was given.
27483 if test "${with_libexpat_prefix+set}" = set; then :
27484 withval=$with_libexpat_prefix;
27485 if test "X$withval" = "Xno"; then
27486 use_additional=no
27487 else
27488 if test "X$withval" = "X"; then
27490 acl_save_prefix="$prefix"
27491 prefix="$acl_final_prefix"
27492 acl_save_exec_prefix="$exec_prefix"
27493 exec_prefix="$acl_final_exec_prefix"
27495 eval additional_includedir=\"$includedir\"
27496 eval additional_libdir=\"$libdir\"
27498 exec_prefix="$acl_save_exec_prefix"
27499 prefix="$acl_save_prefix"
27501 else
27502 additional_includedir="$withval/include"
27503 additional_libdir="$withval/lib"
27510 # Check whether --with-libexpat-type was given.
27511 if test "${with_libexpat_type+set}" = set; then :
27512 withval=$with_libexpat_type; with_libexpat_type=$withval
27513 else
27514 with_libexpat_type=auto
27517 lib_type=`eval echo \$with_libexpat_type`
27519 LIBEXPAT=
27520 LTLIBEXPAT=
27521 INCEXPAT=
27522 rpathdirs=
27523 ltrpathdirs=
27524 names_already_handled=
27525 names_next_round='expat '
27526 while test -n "$names_next_round"; do
27527 names_this_round="$names_next_round"
27528 names_next_round=
27529 for name in $names_this_round; do
27530 already_handled=
27531 for n in $names_already_handled; do
27532 if test "$n" = "$name"; then
27533 already_handled=yes
27534 break
27536 done
27537 if test -z "$already_handled"; then
27538 names_already_handled="$names_already_handled $name"
27539 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27540 eval value=\"\$HAVE_LIB$uppername\"
27541 if test -n "$value"; then
27542 if test "$value" = yes; then
27543 eval value=\"\$LIB$uppername\"
27544 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
27545 eval value=\"\$LTLIB$uppername\"
27546 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
27547 else
27550 else
27551 found_dir=
27552 found_la=
27553 found_so=
27554 found_a=
27555 if test $use_additional = yes; then
27556 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
27557 found_dir="$additional_libdir"
27558 found_so="$additional_libdir/lib$name.$shlibext"
27559 if test -f "$additional_libdir/lib$name.la"; then
27560 found_la="$additional_libdir/lib$name.la"
27562 elif test x$lib_type != xshared; then
27563 if test -f "$additional_libdir/lib$name.$libext"; then
27564 found_dir="$additional_libdir"
27565 found_a="$additional_libdir/lib$name.$libext"
27566 if test -f "$additional_libdir/lib$name.la"; then
27567 found_la="$additional_libdir/lib$name.la"
27572 if test "X$found_dir" = "X"; then
27573 for x in $LDFLAGS $LTLIBEXPAT; do
27575 acl_save_prefix="$prefix"
27576 prefix="$acl_final_prefix"
27577 acl_save_exec_prefix="$exec_prefix"
27578 exec_prefix="$acl_final_exec_prefix"
27579 eval x=\"$x\"
27580 exec_prefix="$acl_save_exec_prefix"
27581 prefix="$acl_save_prefix"
27583 case "$x" in
27584 -L*)
27585 dir=`echo "X$x" | sed -e 's/^X-L//'`
27586 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
27587 found_dir="$dir"
27588 found_so="$dir/lib$name.$shlibext"
27589 if test -f "$dir/lib$name.la"; then
27590 found_la="$dir/lib$name.la"
27592 elif test x$lib_type != xshared; then
27593 if test -f "$dir/lib$name.$libext"; then
27594 found_dir="$dir"
27595 found_a="$dir/lib$name.$libext"
27596 if test -f "$dir/lib$name.la"; then
27597 found_la="$dir/lib$name.la"
27602 esac
27603 if test "X$found_dir" != "X"; then
27604 break
27606 done
27608 if test "X$found_dir" != "X"; then
27609 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
27610 if test "X$found_so" != "X"; then
27611 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
27612 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27613 else
27614 haveit=
27615 for x in $ltrpathdirs; do
27616 if test "X$x" = "X$found_dir"; then
27617 haveit=yes
27618 break
27620 done
27621 if test -z "$haveit"; then
27622 ltrpathdirs="$ltrpathdirs $found_dir"
27624 if test "$hardcode_direct" = yes; then
27625 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27626 else
27627 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27628 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27629 haveit=
27630 for x in $rpathdirs; do
27631 if test "X$x" = "X$found_dir"; then
27632 haveit=yes
27633 break
27635 done
27636 if test -z "$haveit"; then
27637 rpathdirs="$rpathdirs $found_dir"
27639 else
27640 haveit=
27641 for x in $LDFLAGS $LIBEXPAT; do
27643 acl_save_prefix="$prefix"
27644 prefix="$acl_final_prefix"
27645 acl_save_exec_prefix="$exec_prefix"
27646 exec_prefix="$acl_final_exec_prefix"
27647 eval x=\"$x\"
27648 exec_prefix="$acl_save_exec_prefix"
27649 prefix="$acl_save_prefix"
27651 if test "X$x" = "X-L$found_dir"; then
27652 haveit=yes
27653 break
27655 done
27656 if test -z "$haveit"; then
27657 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
27659 if test "$hardcode_minus_L" != no; then
27660 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27661 else
27662 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
27667 else
27668 if test "X$found_a" != "X"; then
27669 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
27670 else
27671 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
27674 additional_includedir=
27675 case "$found_dir" in
27676 */lib | */lib/)
27677 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27678 additional_includedir="$basedir/include"
27680 esac
27681 if test "X$additional_includedir" != "X"; then
27682 if test "X$additional_includedir" != "X/usr/include"; then
27683 haveit=
27684 if test "X$additional_includedir" = "X/usr/local/include"; then
27685 if test -n "$GCC"; then
27686 case $host_os in
27687 linux*) haveit=yes;;
27688 esac
27691 if test -z "$haveit"; then
27692 for x in $CPPFLAGS $INCEXPAT; do
27694 acl_save_prefix="$prefix"
27695 prefix="$acl_final_prefix"
27696 acl_save_exec_prefix="$exec_prefix"
27697 exec_prefix="$acl_final_exec_prefix"
27698 eval x=\"$x\"
27699 exec_prefix="$acl_save_exec_prefix"
27700 prefix="$acl_save_prefix"
27702 if test "X$x" = "X-I$additional_includedir"; then
27703 haveit=yes
27704 break
27706 done
27707 if test -z "$haveit"; then
27708 if test -d "$additional_includedir"; then
27709 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
27715 if test -n "$found_la"; then
27716 save_libdir="$libdir"
27717 case "$found_la" in
27718 */* | *\\*) . "$found_la" ;;
27719 *) . "./$found_la" ;;
27720 esac
27721 libdir="$save_libdir"
27722 for dep in $dependency_libs; do
27723 case "$dep" in
27724 -L*)
27725 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27726 if test "X$additional_libdir" != "X/usr/lib"; then
27727 haveit=
27728 if test "X$additional_libdir" = "X/usr/local/lib"; then
27729 if test -n "$GCC"; then
27730 case $host_os in
27731 linux*) haveit=yes;;
27732 esac
27735 if test -z "$haveit"; then
27736 haveit=
27737 for x in $LDFLAGS $LIBEXPAT; do
27739 acl_save_prefix="$prefix"
27740 prefix="$acl_final_prefix"
27741 acl_save_exec_prefix="$exec_prefix"
27742 exec_prefix="$acl_final_exec_prefix"
27743 eval x=\"$x\"
27744 exec_prefix="$acl_save_exec_prefix"
27745 prefix="$acl_save_prefix"
27747 if test "X$x" = "X-L$additional_libdir"; then
27748 haveit=yes
27749 break
27751 done
27752 if test -z "$haveit"; then
27753 if test -d "$additional_libdir"; then
27754 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
27757 haveit=
27758 for x in $LDFLAGS $LTLIBEXPAT; do
27760 acl_save_prefix="$prefix"
27761 prefix="$acl_final_prefix"
27762 acl_save_exec_prefix="$exec_prefix"
27763 exec_prefix="$acl_final_exec_prefix"
27764 eval x=\"$x\"
27765 exec_prefix="$acl_save_exec_prefix"
27766 prefix="$acl_save_prefix"
27768 if test "X$x" = "X-L$additional_libdir"; then
27769 haveit=yes
27770 break
27772 done
27773 if test -z "$haveit"; then
27774 if test -d "$additional_libdir"; then
27775 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
27781 -R*)
27782 dir=`echo "X$dep" | sed -e 's/^X-R//'`
27783 if test "$enable_rpath" != no; then
27784 haveit=
27785 for x in $rpathdirs; do
27786 if test "X$x" = "X$dir"; then
27787 haveit=yes
27788 break
27790 done
27791 if test -z "$haveit"; then
27792 rpathdirs="$rpathdirs $dir"
27794 haveit=
27795 for x in $ltrpathdirs; do
27796 if test "X$x" = "X$dir"; then
27797 haveit=yes
27798 break
27800 done
27801 if test -z "$haveit"; then
27802 ltrpathdirs="$ltrpathdirs $dir"
27806 -l*)
27807 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27809 *.la)
27810 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27813 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
27814 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
27816 esac
27817 done
27819 else
27820 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
27821 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
27822 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
27823 else
27824 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
27825 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
27830 done
27831 done
27832 if test "X$rpathdirs" != "X"; then
27833 if test -n "$hardcode_libdir_separator"; then
27834 alldirs=
27835 for found_dir in $rpathdirs; do
27836 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27837 done
27838 acl_save_libdir="$libdir"
27839 libdir="$alldirs"
27840 eval flag=\"$hardcode_libdir_flag_spec\"
27841 libdir="$acl_save_libdir"
27842 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
27843 else
27844 for found_dir in $rpathdirs; do
27845 acl_save_libdir="$libdir"
27846 libdir="$found_dir"
27847 eval flag=\"$hardcode_libdir_flag_spec\"
27848 libdir="$acl_save_libdir"
27849 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
27850 done
27853 if test "X$ltrpathdirs" != "X"; then
27854 for found_dir in $ltrpathdirs; do
27855 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
27856 done
27860 ac_save_CPPFLAGS="$CPPFLAGS"
27862 for element in $INCEXPAT; do
27863 haveit=
27864 for x in $CPPFLAGS; do
27866 acl_save_prefix="$prefix"
27867 prefix="$acl_final_prefix"
27868 acl_save_exec_prefix="$exec_prefix"
27869 exec_prefix="$acl_final_exec_prefix"
27870 eval x=\"$x\"
27871 exec_prefix="$acl_save_exec_prefix"
27872 prefix="$acl_save_prefix"
27874 if test "X$x" = "X$element"; then
27875 haveit=yes
27876 break
27878 done
27879 if test -z "$haveit"; then
27880 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27882 done
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
27886 $as_echo_n "checking for libexpat... " >&6; }
27887 if ${ac_cv_libexpat+:} false; then :
27888 $as_echo_n "(cached) " >&6
27889 else
27891 ac_save_LIBS="$LIBS"
27892 LIBS="$LIBS $LIBEXPAT"
27893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27894 /* end confdefs.h. */
27895 #include "expat.h"
27897 main ()
27899 XML_Parser p = XML_ParserCreate (0);
27901 return 0;
27903 _ACEOF
27904 if ac_fn_c_try_link "$LINENO"; then :
27905 ac_cv_libexpat=yes
27906 else
27907 ac_cv_libexpat=no
27909 rm -f core conftest.err conftest.$ac_objext \
27910 conftest$ac_exeext conftest.$ac_ext
27911 LIBS="$ac_save_LIBS"
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
27915 $as_echo "$ac_cv_libexpat" >&6; }
27916 if test "$ac_cv_libexpat" = yes; then
27917 HAVE_LIBEXPAT=yes
27919 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
27922 $as_echo_n "checking how to link with libexpat... " >&6; }
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
27924 $as_echo "$LIBEXPAT" >&6; }
27925 else
27926 HAVE_LIBEXPAT=no
27927 CPPFLAGS="$ac_save_CPPFLAGS"
27928 LIBEXPAT=
27929 LTLIBEXPAT=
27937 if test "$HAVE_LIBEXPAT" != yes; then
27938 if test "$with_expat" = yes; then
27939 as_fn_error $? "expat is missing or unusable" "$LINENO" 5
27940 else
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
27942 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
27944 else
27945 save_LIBS=$LIBS
27946 LIBS="$LIBS $LIBEXPAT"
27947 for ac_func in XML_StopParser
27948 do :
27949 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
27950 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
27951 cat >>confdefs.h <<_ACEOF
27952 #define HAVE_XML_STOPPARSER 1
27953 _ACEOF
27956 done
27958 LIBS=$save_LIBS
27965 # --------------------- #
27966 # Check for libpython. #
27967 # --------------------- #
27974 # Check whether --with-python was given.
27975 if test "${with_python+set}" = set; then :
27976 withval=$with_python;
27977 else
27978 with_python=auto
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
27982 $as_echo_n "checking whether to use python... " >&6; }
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
27984 $as_echo "$with_python" >&6; }
27986 if test "${with_python}" = no; then
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
27988 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
27989 have_libpython=no
27990 else
27991 case "${with_python}" in
27992 [\\/]* | ?:[\\/]*)
27993 if test -d "${with_python}"; then
27994 # Assume the python binary is ${with_python}/bin/python.
27995 python_prog="${with_python}/bin/python"
27996 python_prefix=
27997 # If python does not exit ${with_python}/bin, then try in
27998 # ${with_python}. On Windows/MinGW, this is where the Python
27999 # executable is.
28000 if test ! -x "${python_prog}"; then
28001 python_prog="${with_python}/python"
28002 python_prefix=
28004 if test ! -x "${python_prog}"; then
28005 # Fall back to gdb 7.0/7.1 behavior.
28006 python_prog=missing
28007 python_prefix=${with_python}
28009 elif test -x "${with_python}"; then
28010 # While we can't run python compiled for $host (unless host == build),
28011 # the user could write a script that provides the needed information,
28012 # so we support that.
28013 python_prog=${with_python}
28014 python_prefix=
28015 else
28016 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
28019 */*)
28020 # Disallow --with-python=foo/bar.
28021 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
28024 # The user has either specified auto, yes, or the name of the python
28025 # program assumed to be in $PATH.
28026 python_prefix=
28027 case "${with_python}" in
28028 yes | auto)
28029 if test "${build}" = "${host}"; then
28030 # Look first for 'python', then 'python3'.
28031 for ac_prog in python python3
28033 # Extract the first word of "$ac_prog", so it can be a program name with args.
28034 set dummy $ac_prog; ac_word=$2
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28036 $as_echo_n "checking for $ac_word... " >&6; }
28037 if ${ac_cv_path_python_prog_path+:} false; then :
28038 $as_echo_n "(cached) " >&6
28039 else
28040 case $python_prog_path in
28041 [\\/]* | ?:[\\/]*)
28042 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
28045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28046 for as_dir in $PATH
28048 IFS=$as_save_IFS
28049 test -z "$as_dir" && as_dir=.
28050 for ac_exec_ext in '' $ac_executable_extensions; do
28051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28052 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
28053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28054 break 2
28056 done
28057 done
28058 IFS=$as_save_IFS
28061 esac
28063 python_prog_path=$ac_cv_path_python_prog_path
28064 if test -n "$python_prog_path"; then
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
28066 $as_echo "$python_prog_path" >&6; }
28067 else
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28069 $as_echo "no" >&6; }
28073 test -n "$python_prog_path" && break
28074 done
28075 test -n "$python_prog_path" || python_prog_path="missing"
28077 if test "${python_prog_path}" = missing; then
28078 python_prog=missing
28079 else
28080 python_prog=${python_prog_path}
28082 else
28083 # Not much we can do except assume the cross-compiler will find the
28084 # right files.
28085 python_prog=missing
28089 # While we can't run python compiled for $host (unless host == build),
28090 # the user could write a script that provides the needed information,
28091 # so we support that.
28092 python_prog="${with_python}"
28093 # Extract the first word of "${python_prog}", so it can be a program name with args.
28094 set dummy ${python_prog}; ac_word=$2
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28096 $as_echo_n "checking for $ac_word... " >&6; }
28097 if ${ac_cv_path_python_prog_path+:} false; then :
28098 $as_echo_n "(cached) " >&6
28099 else
28100 case $python_prog_path in
28101 [\\/]* | ?:[\\/]*)
28102 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
28105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28106 for as_dir in $PATH
28108 IFS=$as_save_IFS
28109 test -z "$as_dir" && as_dir=.
28110 for ac_exec_ext in '' $ac_executable_extensions; do
28111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28112 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
28113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28114 break 2
28116 done
28117 done
28118 IFS=$as_save_IFS
28120 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
28122 esac
28124 python_prog_path=$ac_cv_path_python_prog_path
28125 if test -n "$python_prog_path"; then
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
28127 $as_echo "$python_prog_path" >&6; }
28128 else
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28130 $as_echo "no" >&6; }
28134 if test "${python_prog_path}" = missing; then
28135 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
28138 esac
28139 esac
28141 if test "${python_prog}" != missing; then
28142 # We have a python program to use, but it may be too old.
28143 # Don't flag an error for --with-python=auto (the default).
28144 have_python_config=yes
28145 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
28146 if test $? != 0; then
28147 have_python_config=failed
28148 if test "${with_python}" != auto; then
28149 as_fn_error $? "failure running python-config --includes" "$LINENO" 5
28152 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
28153 if test $? != 0; then
28154 have_python_config=failed
28155 if test "${with_python}" != auto; then
28156 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
28159 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
28160 if test $? != 0; then
28161 have_python_config=failed
28162 if test "${with_python}" != auto; then
28163 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
28166 else
28167 # We do not have a python executable we can use to determine where
28168 # to find the Python headers and libs. We cannot guess the include
28169 # path from the python_prefix either, because that include path
28170 # depends on the Python version. So, there is nothing much we can
28171 # do except assume that the compiler will be able to find those files.
28172 python_includes=
28173 python_libs=
28174 have_python_config=no
28177 # If we have python-config, only try the configuration it provides.
28178 # Otherwise fallback on the old way of trying different versions of
28179 # python in turn.
28181 have_libpython=no
28182 if test "${have_python_config}" = yes; then
28185 new_CPPFLAGS=${python_includes}
28186 new_LIBS=${python_libs}
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
28188 $as_echo_n "checking for python... " >&6; }
28189 save_CPPFLAGS=$CPPFLAGS
28190 save_LIBS=$LIBS
28191 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28192 LIBS="$new_LIBS $LIBS"
28193 found_usable_python=no
28194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28195 /* end confdefs.h. */
28196 #include "Python.h"
28198 main ()
28201 #if PY_MAJOR_VERSION != 3
28202 # error "We only support Python 3"
28203 #endif
28204 Py_Initialize ();
28207 return 0;
28209 _ACEOF
28210 if ac_fn_c_try_link "$LINENO"; then :
28211 have_libpython=yes
28212 found_usable_python=yes
28213 PYTHON_CPPFLAGS=$new_CPPFLAGS
28214 PYTHON_LIBS=$new_LIBS
28216 rm -f core conftest.err conftest.$ac_objext \
28217 conftest$ac_exeext conftest.$ac_ext
28218 CPPFLAGS=$save_CPPFLAGS
28219 LIBS=$save_LIBS
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
28221 $as_echo "${found_usable_python}" >&6; }
28225 if test "${have_libpython}" = no; then
28226 case "${with_python}" in
28227 yes)
28228 as_fn_error $? "python is missing or unusable" "$LINENO" 5
28230 auto)
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
28232 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
28235 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
28237 esac
28238 else
28239 if test -n "${python_prefix}"; then
28241 cat >>confdefs.h <<_ACEOF
28242 #define WITH_PYTHON_PATH "${python_prefix}"
28243 _ACEOF
28246 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28247 if test "x$prefix" = xNONE; then
28248 test_prefix=/usr/local
28249 else
28250 test_prefix=$prefix
28252 else
28253 test_prefix=$exec_prefix
28255 value=0
28256 case ${python_prefix} in
28257 "${test_prefix}"|"${test_prefix}/"*|\
28258 '${exec_prefix}'|'${exec_prefix}/'*)
28259 value=1
28261 esac
28263 cat >>confdefs.h <<_ACEOF
28264 #define PYTHON_PATH_RELOCATABLE $value
28265 _ACEOF
28273 # Check whether --with-python-libdir was given.
28274 if test "${with_python_libdir+set}" = set; then :
28275 withval=$with_python_libdir;
28276 else
28278 # If no python libdir is specified then select one based on
28279 # python's prefix path.
28280 if test -n "${python_prefix}"; then
28281 with_python_libdir=${python_prefix}/lib
28287 if test "${have_libpython}" != no; then
28289 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
28291 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
28292 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
28293 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
28294 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
28295 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
28297 if test -n "${with_python_libdir}"; then
28299 cat >>confdefs.h <<_ACEOF
28300 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
28301 _ACEOF
28304 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28305 if test "x$prefix" = xNONE; then
28306 test_prefix=/usr/local
28307 else
28308 test_prefix=$prefix
28310 else
28311 test_prefix=$exec_prefix
28313 value=0
28314 case ${with_python_libdir} in
28315 "${test_prefix}"|"${test_prefix}/"*|\
28316 '${exec_prefix}'|'${exec_prefix}/'*)
28317 value=1
28319 esac
28321 cat >>confdefs.h <<_ACEOF
28322 #define PYTHON_LIBDIR_RELOCATABLE $value
28323 _ACEOF
28328 # Flags needed to compile Python code (taken from python-config --cflags).
28329 # We cannot call python-config directly because it will output whatever was
28330 # used when compiling the Python interpreter itself, including flags which
28331 # would make the python-related objects be compiled differently from the
28332 # rest of GDB (e.g., -O2 and -fPIC).
28333 if test "${GCC}" = yes; then
28334 tentative_python_cflags="-fno-strict-aliasing -fwrapv"
28335 # Python headers recommend -DNDEBUG, but it's unclear if that just
28336 # refers to building Python itself. In release mode, though, it
28337 # doesn't hurt for the Python code in gdb to follow.
28338 $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
28341 if test "x${tentative_python_cflags}" != x; then
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
28343 $as_echo_n "checking compiler flags for python code... " >&6; }
28344 for flag in ${tentative_python_cflags}; do
28345 # Check that the compiler accepts it
28346 saved_CFLAGS="$CFLAGS"
28347 CFLAGS="$CFLAGS $flag"
28348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28349 /* end confdefs.h. */
28352 main ()
28356 return 0;
28358 _ACEOF
28359 if ac_fn_c_try_compile "$LINENO"; then :
28360 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
28362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28363 CFLAGS="$saved_CFLAGS"
28364 done
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
28366 $as_echo "${PYTHON_CFLAGS}" >&6; }
28369 # On x64 Windows, Python's include headers, and pyconfig.h in
28370 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
28371 # version of Windows. Unfortunately, MS_WIN64 is only defined if
28372 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
28373 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
28374 # The issue was reported to the Python community, but still isn't
28375 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
28377 case "$gdb_host" in
28378 mingw64)
28379 if test "${GCC}" = yes; then
28380 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
28383 esac
28384 else
28385 # Even if Python support is not compiled in, we need to have this file
28386 # included so that the "python" command, et.al., still exists.
28387 CONFIG_OBS="$CONFIG_OBS python/python.o"
28388 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
28391 # Work around Python http://bugs.python.org/issue10112. See also
28392 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
28393 # no effect. Note that the only test after this that uses Python is
28394 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
28395 # run without -export-dynamic too.
28396 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
28401 if test "${have_libpython}" != no; then
28402 HAVE_PYTHON_TRUE=
28403 HAVE_PYTHON_FALSE='#'
28404 else
28405 HAVE_PYTHON_TRUE='#'
28406 HAVE_PYTHON_FALSE=
28410 # -------------------- #
28411 # Check for libguile. #
28412 # -------------------- #
28419 # Check whether --with-guile was given.
28420 if test "${with_guile+set}" = set; then :
28421 withval=$with_guile;
28422 else
28423 with_guile=auto
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
28427 $as_echo_n "checking whether to use guile... " >&6; }
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
28429 $as_echo "$with_guile" >&6; }
28431 # Extract the first word of "pkg-config", so it can be a program name with args.
28432 set dummy pkg-config; ac_word=$2
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28434 $as_echo_n "checking for $ac_word... " >&6; }
28435 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
28436 $as_echo_n "(cached) " >&6
28437 else
28438 case $pkg_config_prog_path in
28439 [\\/]* | ?:[\\/]*)
28440 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
28443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28444 for as_dir in $PATH
28446 IFS=$as_save_IFS
28447 test -z "$as_dir" && as_dir=.
28448 for ac_exec_ext in '' $ac_executable_extensions; do
28449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28450 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
28451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28452 break 2
28454 done
28455 done
28456 IFS=$as_save_IFS
28458 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
28460 esac
28462 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
28463 if test -n "$pkg_config_prog_path"; then
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
28465 $as_echo "$pkg_config_prog_path" >&6; }
28466 else
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28468 $as_echo "no" >&6; }
28473 try_guile_versions="guile-3.0 guile-2.2 guile-2.0"
28474 have_libguile=no
28475 case "${with_guile}" in
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
28478 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
28480 auto)
28481 if test "${pkg_config_prog_path}" = "missing"; then
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
28483 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
28484 else
28486 pkg_config=${pkg_config_prog_path}
28487 guile_version_list=${try_guile_versions}
28488 flag_errors=no
28490 found_usable_guile=checking
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28492 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28493 for guile_version in ${guile_version_list}; do
28494 ${pkg_config} --exists ${guile_version} 2>/dev/null
28495 if test $? != 0; then
28496 continue
28498 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
28499 if test $? != 0; then
28500 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28502 new_LIBS=`${pkg_config} --libs ${guile_version}`
28503 if test $? != 0; then
28504 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28506 found_usable_guile=${guile_version}
28507 break
28508 done
28509 if test "${found_usable_guile}" = "checking"; then
28510 if test "${flag_errors}" = "yes"; then
28511 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28512 else
28513 found_usable_guile=no
28516 if test "${found_usable_guile}" != no; then
28517 save_CPPFLAGS=$CPPFLAGS
28518 save_LIBS=$LIBS
28519 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28520 LIBS="$LIBS $new_LIBS"
28521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28522 /* end confdefs.h. */
28523 #include "libguile.h"
28525 main ()
28527 scm_init_guile ();
28529 return 0;
28531 _ACEOF
28532 if ac_fn_c_try_link "$LINENO"; then :
28533 have_libguile=yes
28534 GUILE_CPPFLAGS=$new_CPPFLAGS
28535 GUILE_LIBS=$new_LIBS
28536 else
28537 found_usable_guile=no
28539 rm -f core conftest.err conftest.$ac_objext \
28540 conftest$ac_exeext conftest.$ac_ext
28541 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28542 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
28544 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28549 CPPFLAGS=$save_CPPFLAGS
28550 LIBS=$save_LIBS
28551 if test "${found_usable_guile}" = no; then
28552 if test "${flag_errors}" = yes; then
28553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28555 as_fn_error $? "linking guile version ${guile_version} test program failed
28556 See \`config.log' for more details" "$LINENO" 5; }
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28561 $as_echo "${found_usable_guile}" >&6; }
28565 yes)
28566 if test "${pkg_config_prog_path}" = "missing"; then
28567 as_fn_error $? "pkg-config not found" "$LINENO" 5
28570 pkg_config=${pkg_config_prog_path}
28571 guile_version_list=${try_guile_versions}
28572 flag_errors=yes
28574 found_usable_guile=checking
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28576 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28577 for guile_version in ${guile_version_list}; do
28578 ${pkg_config} --exists ${guile_version} 2>/dev/null
28579 if test $? != 0; then
28580 continue
28582 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
28583 if test $? != 0; then
28584 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28586 new_LIBS=`${pkg_config} --libs ${guile_version}`
28587 if test $? != 0; then
28588 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28590 found_usable_guile=${guile_version}
28591 break
28592 done
28593 if test "${found_usable_guile}" = "checking"; then
28594 if test "${flag_errors}" = "yes"; then
28595 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28596 else
28597 found_usable_guile=no
28600 if test "${found_usable_guile}" != no; then
28601 save_CPPFLAGS=$CPPFLAGS
28602 save_LIBS=$LIBS
28603 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28604 LIBS="$LIBS $new_LIBS"
28605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28606 /* end confdefs.h. */
28607 #include "libguile.h"
28609 main ()
28611 scm_init_guile ();
28613 return 0;
28615 _ACEOF
28616 if ac_fn_c_try_link "$LINENO"; then :
28617 have_libguile=yes
28618 GUILE_CPPFLAGS=$new_CPPFLAGS
28619 GUILE_LIBS=$new_LIBS
28620 else
28621 found_usable_guile=no
28623 rm -f core conftest.err conftest.$ac_objext \
28624 conftest$ac_exeext conftest.$ac_ext
28625 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28626 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
28628 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28633 CPPFLAGS=$save_CPPFLAGS
28634 LIBS=$save_LIBS
28635 if test "${found_usable_guile}" = no; then
28636 if test "${flag_errors}" = yes; then
28637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28639 as_fn_error $? "linking guile version ${guile_version} test program failed
28640 See \`config.log' for more details" "$LINENO" 5; }
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28645 $as_echo "${found_usable_guile}" >&6; }
28648 [\\/]* | ?:[\\/]*)
28649 if test -x "${with_guile}"; then
28651 pkg_config=${with_guile}
28652 guile_version_list=${try_guile_versions}
28653 flag_errors=yes
28655 found_usable_guile=checking
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28657 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28658 for guile_version in ${guile_version_list}; do
28659 ${pkg_config} --exists ${guile_version} 2>/dev/null
28660 if test $? != 0; then
28661 continue
28663 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
28664 if test $? != 0; then
28665 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28667 new_LIBS=`${pkg_config} --libs ${guile_version}`
28668 if test $? != 0; then
28669 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28671 found_usable_guile=${guile_version}
28672 break
28673 done
28674 if test "${found_usable_guile}" = "checking"; then
28675 if test "${flag_errors}" = "yes"; then
28676 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28677 else
28678 found_usable_guile=no
28681 if test "${found_usable_guile}" != no; then
28682 save_CPPFLAGS=$CPPFLAGS
28683 save_LIBS=$LIBS
28684 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28685 LIBS="$LIBS $new_LIBS"
28686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28687 /* end confdefs.h. */
28688 #include "libguile.h"
28690 main ()
28692 scm_init_guile ();
28694 return 0;
28696 _ACEOF
28697 if ac_fn_c_try_link "$LINENO"; then :
28698 have_libguile=yes
28699 GUILE_CPPFLAGS=$new_CPPFLAGS
28700 GUILE_LIBS=$new_LIBS
28701 else
28702 found_usable_guile=no
28704 rm -f core conftest.err conftest.$ac_objext \
28705 conftest$ac_exeext conftest.$ac_ext
28706 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28707 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
28709 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28714 CPPFLAGS=$save_CPPFLAGS
28715 LIBS=$save_LIBS
28716 if test "${found_usable_guile}" = no; then
28717 if test "${flag_errors}" = yes; then
28718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28720 as_fn_error $? "linking guile version ${guile_version} test program failed
28721 See \`config.log' for more details" "$LINENO" 5; }
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28726 $as_echo "${found_usable_guile}" >&6; }
28728 else
28729 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
28732 "" | */*)
28733 # Disallow --with=guile="" and --with-guile=foo/bar.
28734 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
28737 # A space separate list of guile versions to try, in order.
28738 if test "${pkg_config_prog_path}" = "missing"; then
28739 as_fn_error $? "pkg-config not found" "$LINENO" 5
28742 pkg_config=${pkg_config_prog_path}
28743 guile_version_list=${with_guile}
28744 flag_errors=yes
28746 found_usable_guile=checking
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28748 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28749 for guile_version in ${guile_version_list}; do
28750 ${pkg_config} --exists ${guile_version} 2>/dev/null
28751 if test $? != 0; then
28752 continue
28754 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
28755 if test $? != 0; then
28756 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28758 new_LIBS=`${pkg_config} --libs ${guile_version}`
28759 if test $? != 0; then
28760 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28762 found_usable_guile=${guile_version}
28763 break
28764 done
28765 if test "${found_usable_guile}" = "checking"; then
28766 if test "${flag_errors}" = "yes"; then
28767 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28768 else
28769 found_usable_guile=no
28772 if test "${found_usable_guile}" != no; then
28773 save_CPPFLAGS=$CPPFLAGS
28774 save_LIBS=$LIBS
28775 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28776 LIBS="$LIBS $new_LIBS"
28777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28778 /* end confdefs.h. */
28779 #include "libguile.h"
28781 main ()
28783 scm_init_guile ();
28785 return 0;
28787 _ACEOF
28788 if ac_fn_c_try_link "$LINENO"; then :
28789 have_libguile=yes
28790 GUILE_CPPFLAGS=$new_CPPFLAGS
28791 GUILE_LIBS=$new_LIBS
28792 else
28793 found_usable_guile=no
28795 rm -f core conftest.err conftest.$ac_objext \
28796 conftest$ac_exeext conftest.$ac_ext
28797 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28798 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
28800 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28805 CPPFLAGS=$save_CPPFLAGS
28806 LIBS=$save_LIBS
28807 if test "${found_usable_guile}" = no; then
28808 if test "${flag_errors}" = yes; then
28809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28811 as_fn_error $? "linking guile version ${guile_version} test program failed
28812 See \`config.log' for more details" "$LINENO" 5; }
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28817 $as_echo "${found_usable_guile}" >&6; }
28820 esac
28822 if test "${have_libguile}" != no; then
28823 case "${with_guile}" in
28824 [\\/]* | ?:[\\/]*)
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
28827 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
28828 if ${ac_cv_guild_program_name+:} false; then :
28829 $as_echo_n "(cached) " >&6
28830 else
28831 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
28833 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
28834 # the 'guild' and 'bindir' variables. In that case, try to guess
28835 # what the program name is, at the risk of getting it wrong if
28836 # Guile was configured with '--program-suffix' or similar.
28837 if test "x$ac_cv_guild_program_name" = "x"; then
28838 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
28839 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
28844 $as_echo "$ac_cv_guild_program_name" >&6; }
28846 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
28847 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
28850 GUILD="$ac_cv_guild_program_name"
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
28857 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
28858 if ${ac_cv_guild_program_name+:} false; then :
28859 $as_echo_n "(cached) " >&6
28860 else
28861 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
28863 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
28864 # the 'guild' and 'bindir' variables. In that case, try to guess
28865 # what the program name is, at the risk of getting it wrong if
28866 # Guile was configured with '--program-suffix' or similar.
28867 if test "x$ac_cv_guild_program_name" = "x"; then
28868 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
28869 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
28874 $as_echo "$ac_cv_guild_program_name" >&6; }
28876 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
28877 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
28880 GUILD="$ac_cv_guild_program_name"
28884 esac
28887 if test "$cross_compiling" = no; then
28888 GUILD_TARGET_FLAG=
28889 else
28890 GUILD_TARGET_FLAG="--target=$host"
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
28897 $as_echo_n "checking whether guild supports this host... " >&6; }
28898 if ${ac_cv_guild_ok+:} false; then :
28899 $as_echo_n "(cached) " >&6
28900 else
28901 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
28902 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
28903 ac_cv_guild_ok=yes
28904 else
28905 ac_cv_guild_ok=no
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
28909 $as_echo "$ac_cv_guild_ok" >&6; }
28911 if test "$ac_cv_guild_ok" = no; then
28912 have_libguile=no
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
28914 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
28918 if test "${have_libguile}" != no; then
28920 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
28922 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
28923 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
28924 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
28925 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
28926 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
28928 save_LIBS="$LIBS"
28929 save_CPPFLAGS="$CPPFLAGS"
28930 LIBS="$GUILE_LIBS"
28931 CPPFLAGS="$GUILE_CPPFLAGS"
28932 for ac_func in scm_new_smob
28933 do :
28934 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
28935 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
28936 cat >>confdefs.h <<_ACEOF
28937 #define HAVE_SCM_NEW_SMOB 1
28938 _ACEOF
28941 done
28943 LIBS="$save_LIBS"
28944 CPPFLAGS="$save_CPPFLAGS"
28945 else
28946 # Even if Guile support is not compiled in, we need to have these files
28947 # included.
28948 CONFIG_OBS="$CONFIG_OBS guile/guile.o"
28949 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
28953 if test "${have_libguile}" != no; then
28954 HAVE_GUILE_TRUE=
28955 HAVE_GUILE_FALSE='#'
28956 else
28957 HAVE_GUILE_TRUE='#'
28958 HAVE_GUILE_FALSE=
28962 # ---------------------------- #
28963 # Check for source highlight. #
28964 # ---------------------------- #
28966 SRCHIGH_LIBS=
28967 SRCHIGH_CFLAGS=
28969 # Check whether --enable-source-highlight was given.
28970 if test "${enable_source_highlight+set}" = set; then :
28971 enableval=$enable_source_highlight;
28972 case $enableval in
28973 yes | no | auto)
28976 as_fn_error $? "bad value $enableval for --enable-source-highlight" "$LINENO" 5
28978 esac
28980 else
28981 enable_source_highlight=auto
28985 if test "${enable_source_highlight}" != "no"; then
28986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
28987 $as_echo_n "checking for the source-highlight library... " >&6; }
28988 if test "${pkg_config_prog_path}" = "missing"; then
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
28990 $as_echo "no - pkg-config not found" >&6; }
28991 if test "${enable_source_highlight}" = "yes"; then
28992 as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
28994 else
28995 if ${pkg_config_prog_path} --exists source-highlight; then
28996 case "$LDFLAGS" in
28997 *static-libstdc*)
28998 as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
29000 esac
29002 srchigh_pkg_cflags=`${pkg_config_prog_path} --cflags source-highlight`
29003 srchigh_pkg_libs=`${pkg_config_prog_path} --libs source-highlight`
29005 # Now that we have found a source-highlight library, check if we can use
29006 # it. In particular, we're trying to detect the situation that the
29007 # library is using the new libstdc++ library abi ( see
29008 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
29009 # while the compiler being used to compile gdb is using the old abi.
29010 # Such a situation will result in an undefined reference to
29011 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
29012 # This situation can occur for instance when using a source highlight
29013 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
29014 ac_ext=cpp
29015 ac_cpp='$CXXCPP $CPPFLAGS'
29016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29020 save_CXXFLAGS="$CXXFLAGS"
29021 save_LIBS="$LIBS"
29022 CXXFLAGS="$CXXFLAGS $srchigh_pkg_cflags"
29023 LIBS="$LIBS $srchigh_pkg_libs"
29024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29025 /* end confdefs.h. */
29026 #include <srchilite/sourcehighlight.h>
29028 main ()
29030 std::string outlang = "esc.outlang";
29031 new srchilite::SourceHighlight (outlang);
29034 return 0;
29036 _ACEOF
29037 if ac_fn_cxx_try_link "$LINENO"; then :
29038 have_usable_source_highlight=yes
29039 else
29040 have_usable_source_highlight=no
29043 rm -f core conftest.err conftest.$ac_objext \
29044 conftest$ac_exeext conftest.$ac_ext
29045 CXXFLAGS="$save_CXXFLAGS"
29046 LIBS="$save_LIBS"
29047 ac_ext=c
29048 ac_cpp='$CPP $CPPFLAGS'
29049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29054 if test "${have_usable_source_highlight}" = "yes"; then
29056 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29059 $as_echo "yes" >&6; }
29060 SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
29061 SRCHIGH_LIBS="$srchigh_pkg_libs"
29062 else
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29064 $as_echo "no" >&6; }
29065 if test "${enable_source_highlight}" = "yes"; then
29066 as_fn_error $? "source-highlight in your system could not be used" "$LINENO" 5
29069 else
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29071 $as_echo "no" >&6; }
29072 if test "${enable_source_highlight}" = "yes"; then
29073 as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
29081 # ------------------------- #
29082 # Checks for header files. #
29083 # ------------------------- #
29085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
29086 $as_echo_n "checking for ANSI C header files... " >&6; }
29087 if ${ac_cv_header_stdc+:} false; then :
29088 $as_echo_n "(cached) " >&6
29089 else
29090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29091 /* end confdefs.h. */
29092 #include <stdlib.h>
29093 #include <stdarg.h>
29094 #include <string.h>
29095 #include <float.h>
29098 main ()
29102 return 0;
29104 _ACEOF
29105 if ac_fn_c_try_compile "$LINENO"; then :
29106 ac_cv_header_stdc=yes
29107 else
29108 ac_cv_header_stdc=no
29110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29112 if test $ac_cv_header_stdc = yes; then
29113 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29115 /* end confdefs.h. */
29116 #include <string.h>
29118 _ACEOF
29119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29120 $EGREP "memchr" >/dev/null 2>&1; then :
29122 else
29123 ac_cv_header_stdc=no
29125 rm -f conftest*
29129 if test $ac_cv_header_stdc = yes; then
29130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29132 /* end confdefs.h. */
29133 #include <stdlib.h>
29135 _ACEOF
29136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29137 $EGREP "free" >/dev/null 2>&1; then :
29139 else
29140 ac_cv_header_stdc=no
29142 rm -f conftest*
29146 if test $ac_cv_header_stdc = yes; then
29147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29148 if test "$cross_compiling" = yes; then :
29150 else
29151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29152 /* end confdefs.h. */
29153 #include <ctype.h>
29154 #include <stdlib.h>
29155 #if ((' ' & 0x0FF) == 0x020)
29156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29158 #else
29159 # define ISLOWER(c) \
29160 (('a' <= (c) && (c) <= 'i') \
29161 || ('j' <= (c) && (c) <= 'r') \
29162 || ('s' <= (c) && (c) <= 'z'))
29163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29164 #endif
29166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29168 main ()
29170 int i;
29171 for (i = 0; i < 256; i++)
29172 if (XOR (islower (i), ISLOWER (i))
29173 || toupper (i) != TOUPPER (i))
29174 return 2;
29175 return 0;
29177 _ACEOF
29178 if ac_fn_c_try_run "$LINENO"; then :
29180 else
29181 ac_cv_header_stdc=no
29183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29184 conftest.$ac_objext conftest.beam conftest.$ac_ext
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
29190 $as_echo "$ac_cv_header_stdc" >&6; }
29191 if test $ac_cv_header_stdc = yes; then
29193 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
29197 for ac_header in \
29198 machine/reg.h \
29199 nlist.h \
29200 ptrace.h \
29201 sys/debugreg.h \
29202 sys/file.h \
29203 sys/filio.h \
29204 sys/ioctl.h \
29205 sys/param.h \
29206 sys/procctl.h \
29207 sys/ptrace.h \
29208 sys/reg.h \
29209 sys/resource.h \
29210 termios.h \
29211 thread_db.h \
29213 do :
29214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29215 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29216 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29217 cat >>confdefs.h <<_ACEOF
29218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29219 _ACEOF
29223 done
29226 for ac_header in sys/user.h
29227 do :
29228 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
29229 # include <sys/param.h>
29230 #endif
29233 if test "x$ac_cv_header_sys_user_h" = xyes; then :
29234 cat >>confdefs.h <<_ACEOF
29235 #define HAVE_SYS_USER_H 1
29236 _ACEOF
29240 done
29243 for ac_header in \
29244 curses.h \
29245 cursesX.h \
29246 ncurses.h \
29247 ncurses/ncurses.h \
29248 ncurses/term.h \
29249 ncursesw/ncurses.h \
29251 do :
29252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29253 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29255 cat >>confdefs.h <<_ACEOF
29256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29257 _ACEOF
29261 done
29264 for ac_header in term.h
29265 do :
29266 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
29267 # include <curses.h>
29268 #endif
29271 if test "x$ac_cv_header_term_h" = xyes; then :
29272 cat >>confdefs.h <<_ACEOF
29273 #define HAVE_TERM_H 1
29274 _ACEOF
29278 done
29281 for ac_header in sys/socket.h
29282 do :
29283 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
29284 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
29285 cat >>confdefs.h <<_ACEOF
29286 #define HAVE_SYS_SOCKET_H 1
29287 _ACEOF
29291 done
29293 for ac_header in ws2tcpip.h
29294 do :
29295 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
29296 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
29297 cat >>confdefs.h <<_ACEOF
29298 #define HAVE_WS2TCPIP_H 1
29299 _ACEOF
29303 done
29305 for ac_header in execinfo.h
29306 do :
29307 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
29308 if test "x$ac_cv_header_execinfo_h" = xyes; then :
29309 cat >>confdefs.h <<_ACEOF
29310 #define HAVE_EXECINFO_H 1
29311 _ACEOF
29315 done
29318 # ------------------------- #
29319 # Checks for declarations. #
29320 # ------------------------- #
29322 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
29323 if test "x$ac_cv_have_decl_ffs" = xyes; then :
29324 ac_have_decl=1
29325 else
29326 ac_have_decl=0
29329 cat >>confdefs.h <<_ACEOF
29330 #define HAVE_DECL_FFS $ac_have_decl
29331 _ACEOF
29333 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
29334 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
29335 ac_have_decl=1
29336 else
29337 ac_have_decl=0
29340 cat >>confdefs.h <<_ACEOF
29341 #define HAVE_DECL_ASPRINTF $ac_have_decl
29342 _ACEOF
29344 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
29345 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
29346 ac_have_decl=1
29347 else
29348 ac_have_decl=0
29351 cat >>confdefs.h <<_ACEOF
29352 #define HAVE_DECL_VASPRINTF $ac_have_decl
29353 _ACEOF
29355 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29356 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
29357 ac_have_decl=1
29358 else
29359 ac_have_decl=0
29362 cat >>confdefs.h <<_ACEOF
29363 #define HAVE_DECL_SNPRINTF $ac_have_decl
29364 _ACEOF
29366 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
29367 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
29368 ac_have_decl=1
29369 else
29370 ac_have_decl=0
29373 cat >>confdefs.h <<_ACEOF
29374 #define HAVE_DECL_VSNPRINTF $ac_have_decl
29375 _ACEOF
29377 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
29378 if test "x$ac_cv_have_decl_strtol" = xyes; then :
29379 ac_have_decl=1
29380 else
29381 ac_have_decl=0
29384 cat >>confdefs.h <<_ACEOF
29385 #define HAVE_DECL_STRTOL $ac_have_decl
29386 _ACEOF
29388 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
29389 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
29390 ac_have_decl=1
29391 else
29392 ac_have_decl=0
29395 cat >>confdefs.h <<_ACEOF
29396 #define HAVE_DECL_STRTOUL $ac_have_decl
29397 _ACEOF
29399 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
29400 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
29401 ac_have_decl=1
29402 else
29403 ac_have_decl=0
29406 cat >>confdefs.h <<_ACEOF
29407 #define HAVE_DECL_STRTOLL $ac_have_decl
29408 _ACEOF
29410 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
29411 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
29412 ac_have_decl=1
29413 else
29414 ac_have_decl=0
29417 cat >>confdefs.h <<_ACEOF
29418 #define HAVE_DECL_STRTOULL $ac_have_decl
29419 _ACEOF
29421 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
29422 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
29423 ac_have_decl=1
29424 else
29425 ac_have_decl=0
29428 cat >>confdefs.h <<_ACEOF
29429 #define HAVE_DECL_STRVERSCMP $ac_have_decl
29430 _ACEOF
29432 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
29433 if test "x$ac_cv_type_long_long" = xyes; then :
29435 cat >>confdefs.h <<_ACEOF
29436 #define HAVE_LONG_LONG 1
29437 _ACEOF
29439 # The cast to long int works around a bug in the HP C Compiler
29440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29442 # This bug is HP SR number 8606223364.
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
29444 $as_echo_n "checking size of long long... " >&6; }
29445 if ${ac_cv_sizeof_long_long+:} false; then :
29446 $as_echo_n "(cached) " >&6
29447 else
29448 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
29450 else
29451 if test "$ac_cv_type_long_long" = yes; then
29452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29454 as_fn_error 77 "cannot compute sizeof (long long)
29455 See \`config.log' for more details" "$LINENO" 5; }
29456 else
29457 ac_cv_sizeof_long_long=0
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
29463 $as_echo "$ac_cv_sizeof_long_long" >&6; }
29467 cat >>confdefs.h <<_ACEOF
29468 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
29469 _ACEOF
29475 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
29476 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
29477 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
29478 ac_have_decl=1
29479 else
29480 ac_have_decl=0
29483 cat >>confdefs.h <<_ACEOF
29484 #define HAVE_DECL_BASENAME $ac_have_decl
29485 _ACEOF
29492 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29493 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
29494 ac_have_decl=1
29495 else
29496 ac_have_decl=0
29499 cat >>confdefs.h <<_ACEOF
29500 #define HAVE_DECL_SNPRINTF $ac_have_decl
29501 _ACEOF
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
29505 $as_echo_n "checking for LC_MESSAGES... " >&6; }
29506 if ${am_cv_val_LC_MESSAGES+:} false; then :
29507 $as_echo_n "(cached) " >&6
29508 else
29509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29510 /* end confdefs.h. */
29511 #include <locale.h>
29513 main ()
29515 return LC_MESSAGES
29517 return 0;
29519 _ACEOF
29520 if ac_fn_c_try_link "$LINENO"; then :
29521 am_cv_val_LC_MESSAGES=yes
29522 else
29523 am_cv_val_LC_MESSAGES=no
29525 rm -f core conftest.err conftest.$ac_objext \
29526 conftest$ac_exeext conftest.$ac_ext
29528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
29529 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
29530 if test $am_cv_val_LC_MESSAGES = yes; then
29532 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
29537 # ------------------ #
29538 # Checks for types. #
29539 # ------------------ #
29541 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
29542 #if HAVE_SYS_SOCKET_H
29543 # include <sys/socket.h>
29544 #elif HAVE_WS2TCPIP_H
29545 # include <ws2tcpip.h>
29546 #endif
29549 if test "x$ac_cv_type_socklen_t" = xyes; then :
29551 cat >>confdefs.h <<_ACEOF
29552 #define HAVE_SOCKLEN_T 1
29553 _ACEOF
29559 # ------------------------------------- #
29560 # Checks for compiler characteristics. #
29561 # ------------------------------------- #
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
29564 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
29565 if ${ac_cv_c_const+:} false; then :
29566 $as_echo_n "(cached) " >&6
29567 else
29568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29569 /* end confdefs.h. */
29572 main ()
29575 #ifndef __cplusplus
29576 /* Ultrix mips cc rejects this sort of thing. */
29577 typedef int charset[2];
29578 const charset cs = { 0, 0 };
29579 /* SunOS 4.1.1 cc rejects this. */
29580 char const *const *pcpcc;
29581 char **ppc;
29582 /* NEC SVR4.0.2 mips cc rejects this. */
29583 struct point {int x, y;};
29584 static struct point const zero = {0,0};
29585 /* AIX XL C 1.02.0.0 rejects this.
29586 It does not let you subtract one const X* pointer from another in
29587 an arm of an if-expression whose if-part is not a constant
29588 expression */
29589 const char *g = "string";
29590 pcpcc = &g + (g ? g-g : 0);
29591 /* HPUX 7.0 cc rejects these. */
29592 ++pcpcc;
29593 ppc = (char**) pcpcc;
29594 pcpcc = (char const *const *) ppc;
29595 { /* SCO 3.2v4 cc rejects this sort of thing. */
29596 char tx;
29597 char *t = &tx;
29598 char const *s = 0 ? (char *) 0 : (char const *) 0;
29600 *t++ = 0;
29601 if (s) return 0;
29603 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
29604 int x[] = {25, 17};
29605 const int *foo = &x[0];
29606 ++foo;
29608 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29609 typedef const int *iptr;
29610 iptr p = 0;
29611 ++p;
29613 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
29614 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29615 struct s { int j; const int *ap[3]; } bx;
29616 struct s *b = &bx; b->j = 5;
29618 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29619 const int foo = 10;
29620 if (!foo) return 0;
29622 return !cs[0] && !zero.x;
29623 #endif
29626 return 0;
29628 _ACEOF
29629 if ac_fn_c_try_compile "$LINENO"; then :
29630 ac_cv_c_const=yes
29631 else
29632 ac_cv_c_const=no
29634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
29637 $as_echo "$ac_cv_c_const" >&6; }
29638 if test $ac_cv_c_const = no; then
29640 $as_echo "#define const /**/" >>confdefs.h
29644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
29645 $as_echo_n "checking for inline... " >&6; }
29646 if ${ac_cv_c_inline+:} false; then :
29647 $as_echo_n "(cached) " >&6
29648 else
29649 ac_cv_c_inline=no
29650 for ac_kw in inline __inline__ __inline; do
29651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29652 /* end confdefs.h. */
29653 #ifndef __cplusplus
29654 typedef int foo_t;
29655 static $ac_kw foo_t static_foo () {return 0; }
29656 $ac_kw foo_t foo () {return 0; }
29657 #endif
29659 _ACEOF
29660 if ac_fn_c_try_compile "$LINENO"; then :
29661 ac_cv_c_inline=$ac_kw
29663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29664 test "$ac_cv_c_inline" != no && break
29665 done
29668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
29669 $as_echo "$ac_cv_c_inline" >&6; }
29671 case $ac_cv_c_inline in
29672 inline | yes) ;;
29674 case $ac_cv_c_inline in
29675 no) ac_val=;;
29676 *) ac_val=$ac_cv_c_inline;;
29677 esac
29678 cat >>confdefs.h <<_ACEOF
29679 #ifndef __cplusplus
29680 #define inline $ac_val
29681 #endif
29682 _ACEOF
29684 esac
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
29687 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
29688 if ${ac_cv_c_bigendian+:} false; then :
29689 $as_echo_n "(cached) " >&6
29690 else
29691 ac_cv_c_bigendian=unknown
29692 # See if we're dealing with a universal compiler.
29693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29694 /* end confdefs.h. */
29695 #ifndef __APPLE_CC__
29696 not a universal capable compiler
29697 #endif
29698 typedef int dummy;
29700 _ACEOF
29701 if ac_fn_c_try_compile "$LINENO"; then :
29703 # Check for potential -arch flags. It is not universal unless
29704 # there are at least two -arch flags with different values.
29705 ac_arch=
29706 ac_prev=
29707 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
29708 if test -n "$ac_prev"; then
29709 case $ac_word in
29710 i?86 | x86_64 | ppc | ppc64)
29711 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
29712 ac_arch=$ac_word
29713 else
29714 ac_cv_c_bigendian=universal
29715 break
29718 esac
29719 ac_prev=
29720 elif test "x$ac_word" = "x-arch"; then
29721 ac_prev=arch
29723 done
29725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29726 if test $ac_cv_c_bigendian = unknown; then
29727 # See if sys/param.h defines the BYTE_ORDER macro.
29728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29729 /* end confdefs.h. */
29730 #include <sys/types.h>
29731 #include <sys/param.h>
29734 main ()
29736 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
29737 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
29738 && LITTLE_ENDIAN)
29739 bogus endian macros
29740 #endif
29743 return 0;
29745 _ACEOF
29746 if ac_fn_c_try_compile "$LINENO"; then :
29747 # It does; now see whether it defined to BIG_ENDIAN or not.
29748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29749 /* end confdefs.h. */
29750 #include <sys/types.h>
29751 #include <sys/param.h>
29754 main ()
29756 #if BYTE_ORDER != BIG_ENDIAN
29757 not big endian
29758 #endif
29761 return 0;
29763 _ACEOF
29764 if ac_fn_c_try_compile "$LINENO"; then :
29765 ac_cv_c_bigendian=yes
29766 else
29767 ac_cv_c_bigendian=no
29769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29773 if test $ac_cv_c_bigendian = unknown; then
29774 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
29775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29776 /* end confdefs.h. */
29777 #include <limits.h>
29780 main ()
29782 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
29783 bogus endian macros
29784 #endif
29787 return 0;
29789 _ACEOF
29790 if ac_fn_c_try_compile "$LINENO"; then :
29791 # It does; now see whether it defined to _BIG_ENDIAN or not.
29792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29793 /* end confdefs.h. */
29794 #include <limits.h>
29797 main ()
29799 #ifndef _BIG_ENDIAN
29800 not big endian
29801 #endif
29804 return 0;
29806 _ACEOF
29807 if ac_fn_c_try_compile "$LINENO"; then :
29808 ac_cv_c_bigendian=yes
29809 else
29810 ac_cv_c_bigendian=no
29812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29816 if test $ac_cv_c_bigendian = unknown; then
29817 # Compile a test program.
29818 if test "$cross_compiling" = yes; then :
29819 # Try to guess by grepping values from an object file.
29820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29821 /* end confdefs.h. */
29822 short int ascii_mm[] =
29823 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
29824 short int ascii_ii[] =
29825 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
29826 int use_ascii (int i) {
29827 return ascii_mm[i] + ascii_ii[i];
29829 short int ebcdic_ii[] =
29830 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
29831 short int ebcdic_mm[] =
29832 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
29833 int use_ebcdic (int i) {
29834 return ebcdic_mm[i] + ebcdic_ii[i];
29836 extern int foo;
29839 main ()
29841 return use_ascii (foo) == use_ebcdic (foo);
29843 return 0;
29845 _ACEOF
29846 if ac_fn_c_try_compile "$LINENO"; then :
29847 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
29848 ac_cv_c_bigendian=yes
29850 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
29851 if test "$ac_cv_c_bigendian" = unknown; then
29852 ac_cv_c_bigendian=no
29853 else
29854 # finding both strings is unlikely to happen, but who knows?
29855 ac_cv_c_bigendian=unknown
29859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29860 else
29861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29862 /* end confdefs.h. */
29863 $ac_includes_default
29865 main ()
29868 /* Are we little or big endian? From Harbison&Steele. */
29869 union
29871 long int l;
29872 char c[sizeof (long int)];
29873 } u;
29874 u.l = 1;
29875 return u.c[sizeof (long int) - 1] == 1;
29878 return 0;
29880 _ACEOF
29881 if ac_fn_c_try_run "$LINENO"; then :
29882 ac_cv_c_bigendian=no
29883 else
29884 ac_cv_c_bigendian=yes
29886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29887 conftest.$ac_objext conftest.beam conftest.$ac_ext
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
29893 $as_echo "$ac_cv_c_bigendian" >&6; }
29894 case $ac_cv_c_bigendian in #(
29895 yes)
29896 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
29897 ;; #(
29899 ;; #(
29900 universal)
29902 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
29904 ;; #(
29906 as_fn_error $? "unknown endianness
29907 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
29908 esac
29911 # ------------------------------ #
29912 # Checks for library functions. #
29913 # ------------------------------ #
29915 for ac_func in \
29916 btowc \
29917 getgid \
29918 getpgid \
29919 getrlimit \
29920 getuid \
29921 iconvlist \
29922 libiconvlist \
29923 posix_madvise \
29924 pread \
29925 pread64 \
29926 pwrite \
29927 resize_term \
29928 setlocale \
29929 setrlimit \
29930 setsid \
29931 sigsetmask \
29932 ttrace \
29933 use_default_colors \
29934 wresize \
29936 do :
29937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29938 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29939 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29940 cat >>confdefs.h <<_ACEOF
29941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29942 _ACEOF
29945 done
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
29950 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
29951 if ${am_cv_langinfo_codeset+:} false; then :
29952 $as_echo_n "(cached) " >&6
29953 else
29954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29955 /* end confdefs.h. */
29956 #include <langinfo.h>
29958 main ()
29960 char* cs = nl_langinfo(CODESET);
29962 return 0;
29964 _ACEOF
29965 if ac_fn_c_try_link "$LINENO"; then :
29966 am_cv_langinfo_codeset=yes
29967 else
29968 am_cv_langinfo_codeset=no
29970 rm -f core conftest.err conftest.$ac_objext \
29971 conftest$ac_exeext conftest.$ac_ext
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
29975 $as_echo "$am_cv_langinfo_codeset" >&6; }
29976 if test $am_cv_langinfo_codeset = yes; then
29978 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
29983 # Check the return and argument types of ptrace.
29986 for ac_header in sys/ptrace.h ptrace.h
29987 do :
29988 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29989 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29990 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29991 cat >>confdefs.h <<_ACEOF
29992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29993 _ACEOF
29997 done
30000 gdb_ptrace_headers='
30001 #include <sys/types.h>
30002 #if HAVE_SYS_PTRACE_H
30003 # include <sys/ptrace.h>
30004 #endif
30005 #if HAVE_UNISTD_H
30006 # include <unistd.h>
30007 #endif
30010 # Check return type. Varargs (used on GNU/Linux) conflict with the
30011 # empty argument list, so check for that explicitly.
30012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
30013 $as_echo_n "checking return type of ptrace... " >&6; }
30014 if ${gdb_cv_func_ptrace_ret+:} false; then :
30015 $as_echo_n "(cached) " >&6
30016 else
30017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30018 /* end confdefs.h. */
30019  $gdb_ptrace_headers
30021 main ()
30023 extern long ptrace (enum __ptrace_request, ...);
30026 return 0;
30028 _ACEOF
30029 if ac_fn_c_try_compile "$LINENO"; then :
30030 gdb_cv_func_ptrace_ret='long'
30031 else
30032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30033 /* end confdefs.h. */
30034 $gdb_ptrace_headers
30036 main ()
30038 extern int ptrace ();
30041 return 0;
30043 _ACEOF
30044 if ac_fn_c_try_compile "$LINENO"; then :
30045 gdb_cv_func_ptrace_ret='int'
30046 else
30047 gdb_cv_func_ptrace_ret='long'
30050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
30057 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
30060 cat >>confdefs.h <<_ACEOF
30061 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
30062 _ACEOF
30065 # Check argument types.
30066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
30067 $as_echo_n "checking types of arguments for ptrace... " >&6; }
30068 if ${gdb_cv_func_ptrace_args+:} false; then :
30069 $as_echo_n "(cached) " >&6
30070 else
30071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30072 /* end confdefs.h. */
30073 $gdb_ptrace_headers
30075 main ()
30077 extern long ptrace (enum __ptrace_request, ...);
30080 return 0;
30082 _ACEOF
30083 if ac_fn_c_try_compile "$LINENO"; then :
30084 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
30085 else
30086 for gdb_arg1 in 'int' 'long'; do
30087 for gdb_arg2 in 'pid_t' 'int' 'long'; do
30088 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
30089 for gdb_arg4 in 'int' 'long' 'void *'; do
30090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30091 /* end confdefs.h. */
30092 $gdb_ptrace_headers
30094 main ()
30096 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
30099 return 0;
30101 _ACEOF
30102 if ac_fn_c_try_compile "$LINENO"; then :
30103 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
30104 break 4;
30107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30109 for gdb_arg5 in 'int *' 'int' 'long'; do
30110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30111 /* end confdefs.h. */
30112 $gdb_ptrace_headers
30114 main ()
30116 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
30119 return 0;
30121 _ACEOF
30122 if ac_fn_c_try_compile "$LINENO"; then :
30123 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
30124 break 5;
30127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30128 done
30129 done
30130 done
30131 done
30132 done
30133 # Provide a safe default value.
30134 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
30137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
30141 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
30143 ac_save_IFS=$IFS; IFS=','
30144 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
30145 IFS=$ac_save_IFS
30146 shift
30148 cat >>confdefs.h <<_ACEOF
30149 #define PTRACE_TYPE_ARG1 $1
30150 _ACEOF
30153 cat >>confdefs.h <<_ACEOF
30154 #define PTRACE_TYPE_ARG3 $3
30155 _ACEOF
30158 cat >>confdefs.h <<_ACEOF
30159 #define PTRACE_TYPE_ARG4 $4
30160 _ACEOF
30162 if test -n "$5"; then
30164 cat >>confdefs.h <<_ACEOF
30165 #define PTRACE_TYPE_ARG5 $5
30166 _ACEOF
30171 if test "$cross_compiling" = no; then
30172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
30173 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
30174 if ${ac_cv_func_setpgrp_void+:} false; then :
30175 $as_echo_n "(cached) " >&6
30176 else
30177 if test "$cross_compiling" = yes; then :
30178 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
30179 else
30180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30181 /* end confdefs.h. */
30182 $ac_includes_default
30184 main ()
30186 /* If this system has a BSD-style setpgrp which takes arguments,
30187 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
30188 exit successfully. */
30189 return setpgrp (1,1) != -1;
30191 return 0;
30193 _ACEOF
30194 if ac_fn_c_try_run "$LINENO"; then :
30195 ac_cv_func_setpgrp_void=no
30196 else
30197 ac_cv_func_setpgrp_void=yes
30199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30200 conftest.$ac_objext conftest.beam conftest.$ac_ext
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
30205 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
30206 if test $ac_cv_func_setpgrp_void = yes; then
30208 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
30212 else
30213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
30214 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
30215 if ${ac_cv_func_setpgrp_void+:} false; then :
30216 $as_echo_n "(cached) " >&6
30217 else
30218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30219 /* end confdefs.h. */
30220 #include <unistd.h>
30222 main ()
30224 if (setpgrp(1,1) == -1)
30225 exit (0);
30226 else
30227 exit (1);
30230 return 0;
30232 _ACEOF
30233 if ac_fn_c_try_compile "$LINENO"; then :
30234 ac_cv_func_setpgrp_void=no
30235 else
30236 ac_cv_func_setpgrp_void=yes
30239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
30243 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
30244 if test "$ac_cv_func_setpgrp_void" = yes; then
30245 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
30250 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
30251 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
30252 #include <sys/proc.h>
30255 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
30257 cat >>confdefs.h <<_ACEOF
30258 #define HAVE_STRUCT_THREAD_TD_PCB 1
30259 _ACEOF
30265 # See if <sys/lwp.h> defines `struct lwp`.
30266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
30267 $as_echo_n "checking for struct lwp... " >&6; }
30268 if ${gdb_cv_struct_lwp+:} false; then :
30269 $as_echo_n "(cached) " >&6
30270 else
30271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30272 /* end confdefs.h. */
30273 #include <sys/param.h>
30274 #define _KMEMUSER
30275 #include <sys/lwp.h>
30277 main ()
30279 struct lwp l;
30282 return 0;
30284 _ACEOF
30285 if ac_fn_c_try_compile "$LINENO"; then :
30286 gdb_cv_struct_lwp=yes
30287 else
30288 gdb_cv_struct_lwp=no
30291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
30295 $as_echo "$gdb_cv_struct_lwp" >&6; }
30296 if test "$gdb_cv_struct_lwp" = yes; then
30298 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
30302 # See if <machine/reg.h> degines `struct reg'.
30303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
30304 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
30305 if ${gdb_cv_struct_reg+:} false; then :
30306 $as_echo_n "(cached) " >&6
30307 else
30308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30309 /* end confdefs.h. */
30310 #include <sys/types.h>
30311 #include <machine/reg.h>
30313 main ()
30315 struct reg r;
30318 return 0;
30320 _ACEOF
30321 if ac_fn_c_try_compile "$LINENO"; then :
30322 gdb_cv_struct_reg=yes
30323 else
30324 gdb_cv_struct_reg=no
30327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
30331 $as_echo "$gdb_cv_struct_reg" >&6; }
30332 if test "$gdb_cv_struct_reg" = yes; then
30334 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
30338 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
30339 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
30340 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
30341 #include <machine/reg.h>
30343 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
30345 cat >>confdefs.h <<_ACEOF
30346 #define HAVE_STRUCT_REG_R_FS 1
30347 _ACEOF
30351 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
30352 #include <machine/reg.h>
30354 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
30356 cat >>confdefs.h <<_ACEOF
30357 #define HAVE_STRUCT_REG_R_GS 1
30358 _ACEOF
30364 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
30365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
30366 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
30367 if ${gdb_cv_have_ptrace_getregs+:} false; then :
30368 $as_echo_n "(cached) " >&6
30369 else
30370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30371 /* end confdefs.h. */
30372 #include <sys/ptrace.h>
30374 main ()
30376 PTRACE_GETREGS;
30378 return 0;
30380 _ACEOF
30381 if ac_fn_c_try_compile "$LINENO"; then :
30382 gdb_cv_have_ptrace_getregs=yes
30383 else
30384 gdb_cv_have_ptrace_getregs=no
30387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
30392 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
30393 if test "$gdb_cv_have_ptrace_getregs" = yes; then
30395 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
30399 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
30401 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
30402 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
30403 $as_echo_n "(cached) " >&6
30404 else
30405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30406 /* end confdefs.h. */
30407 #include <sys/ptrace.h>
30409 main ()
30411 PTRACE_GETFPXREGS;
30413 return 0;
30415 _ACEOF
30416 if ac_fn_c_try_compile "$LINENO"; then :
30417 gdb_cv_have_ptrace_getfpxregs=yes
30418 else
30419 gdb_cv_have_ptrace_getfpxregs=no
30422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
30427 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
30428 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
30430 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
30434 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
30435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
30436 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
30437 if ${gdb_cv_have_pt_getdbregs+:} false; then :
30438 $as_echo_n "(cached) " >&6
30439 else
30440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30441 /* end confdefs.h. */
30442 #include <sys/types.h>
30443 #include <sys/ptrace.h>
30445 main ()
30447 PT_GETDBREGS;
30450 return 0;
30452 _ACEOF
30453 if ac_fn_c_try_compile "$LINENO"; then :
30454 gdb_cv_have_pt_getdbregs=yes
30455 else
30456 gdb_cv_have_pt_getdbregs=no
30459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
30464 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
30465 if test "$gdb_cv_have_pt_getdbregs" = yes; then
30467 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
30471 # See if <sys/ptrace.h> supports LWP names on FreeBSD
30472 # Older FreeBSD versions don't have the pl_tdname member of
30473 # `struct ptrace_lwpinfo'.
30474 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
30476 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
30478 cat >>confdefs.h <<_ACEOF
30479 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
30480 _ACEOF
30486 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
30487 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
30488 # FreeBSD 10.3.
30489 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
30491 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
30493 cat >>confdefs.h <<_ACEOF
30494 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
30495 _ACEOF
30501 # Check if the compiler supports the `long long' type.
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
30504 $as_echo_n "checking for long long support in compiler... " >&6; }
30505 if ${gdb_cv_c_long_long+:} false; then :
30506 $as_echo_n "(cached) " >&6
30507 else
30508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30509 /* end confdefs.h. */
30510 extern long long foo;
30512 main ()
30514 switch (foo & 2) { case 0: return 1; }
30516 return 0;
30518 _ACEOF
30519 if ac_fn_c_try_compile "$LINENO"; then :
30520 gdb_cv_c_long_long=yes
30521 else
30522 gdb_cv_c_long_long=no
30524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
30527 $as_echo "$gdb_cv_c_long_long" >&6; }
30528 if test "$gdb_cv_c_long_long" != yes; then
30529 # libdecnumber requires long long.
30530 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
30533 # Check if the compiler and runtime support printing decfloats.
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
30536 $as_echo_n "checking for decfloat support in printf... " >&6; }
30537 if ${gdb_cv_printf_has_decfloat+:} false; then :
30538 $as_echo_n "(cached) " >&6
30539 else
30540 if test "$cross_compiling" = yes; then :
30541 gdb_cv_printf_has_decfloat=no
30542 else
30543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30544 /* end confdefs.h. */
30545 $ac_includes_default
30547 main ()
30549 char buf[64];
30550 _Decimal32 d32 = 1.2345df;
30551 _Decimal64 d64 = 1.2345dd;
30552 _Decimal128 d128 = 1.2345dl;
30553 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
30554 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
30556 return 0;
30558 _ACEOF
30559 if ac_fn_c_try_run "$LINENO"; then :
30560 gdb_cv_printf_has_decfloat=yes
30561 else
30562 gdb_cv_printf_has_decfloat=no
30564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30565 conftest.$ac_objext conftest.beam conftest.$ac_ext
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
30570 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
30571 if test "$gdb_cv_printf_has_decfloat" = yes; then
30573 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
30577 # Check if the compiler supports the `long double' type. We can't use
30578 # AC_C_LONG_DOUBLE because that one does additional checks on the
30579 # constants defined in <float.h> that fail on some systems,
30580 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
30583 $as_echo_n "checking for long double support in compiler... " >&6; }
30584 if ${gdb_cv_c_long_double+:} false; then :
30585 $as_echo_n "(cached) " >&6
30586 else
30587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30588 /* end confdefs.h. */
30589 long double foo;
30590 _ACEOF
30591 if ac_fn_c_try_compile "$LINENO"; then :
30592 gdb_cv_c_long_double=yes
30593 else
30594 gdb_cv_c_long_double=no
30596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
30599 $as_echo "$gdb_cv_c_long_double" >&6; }
30600 if test "$gdb_cv_c_long_double" = yes; then
30602 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
30606 # Check if the compiler and runtime support printing long doubles.
30608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
30609 $as_echo_n "checking for long double support in printf... " >&6; }
30610 if ${gdb_cv_printf_has_long_double+:} false; then :
30611 $as_echo_n "(cached) " >&6
30612 else
30613 if test "$cross_compiling" = yes; then :
30614 gdb_cv_printf_has_long_double=no
30615 else
30616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30617 /* end confdefs.h. */
30618 $ac_includes_default
30620 main ()
30622 char buf[16];
30623 long double f = 3.141592653;
30624 sprintf (buf, "%Lg", f);
30625 return (strncmp ("3.14159", buf, 7));
30627 return 0;
30629 _ACEOF
30630 if ac_fn_c_try_run "$LINENO"; then :
30631 gdb_cv_printf_has_long_double=yes
30632 else
30633 gdb_cv_printf_has_long_double=no
30635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30636 conftest.$ac_objext conftest.beam conftest.$ac_ext
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
30641 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
30642 if test "$gdb_cv_printf_has_long_double" = yes; then
30644 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
30648 # Check if the compiler and runtime support scanning long doubles.
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
30651 $as_echo_n "checking for long double support in scanf... " >&6; }
30652 if ${gdb_cv_scanf_has_long_double+:} false; then :
30653 $as_echo_n "(cached) " >&6
30654 else
30655 if test "$cross_compiling" = yes; then :
30656 gdb_cv_scanf_has_long_double=no
30657 else
30658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30659 /* end confdefs.h. */
30660 #include <stdio.h>
30662 main ()
30664 char *buf = "3.141592653";
30665 long double f = 0;
30666 sscanf (buf, "%Lg", &f);
30667 return !(f > 3.14159 && f < 3.14160);
30669 return 0;
30671 _ACEOF
30672 if ac_fn_c_try_run "$LINENO"; then :
30673 gdb_cv_scanf_has_long_double=yes
30674 else
30675 gdb_cv_scanf_has_long_double=no
30677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30678 conftest.$ac_objext conftest.beam conftest.$ac_ext
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
30683 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
30684 if test "$gdb_cv_scanf_has_long_double" = yes; then
30686 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
30690 case ${host_os} in
30691 aix*)
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
30693 $as_echo_n "checking for -bbigtoc option... " >&6; }
30694 if ${gdb_cv_bigtoc+:} false; then :
30695 $as_echo_n "(cached) " >&6
30696 else
30697 SAVE_LDFLAGS=$LDFLAGS
30699 case $GCC in
30700 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
30701 *) gdb_cv_bigtoc=-bbigtoc ;;
30702 esac
30704 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
30705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30706 /* end confdefs.h. */
30709 main ()
30711 int i;
30713 return 0;
30715 _ACEOF
30716 if ac_fn_c_try_link "$LINENO"; then :
30718 else
30719 gdb_cv_bigtoc=
30722 rm -f core conftest.err conftest.$ac_objext \
30723 conftest$ac_exeext conftest.$ac_ext
30724 LDFLAGS="${SAVE_LDFLAGS}"
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
30728 $as_echo "$gdb_cv_bigtoc" >&6; }
30729 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
30731 esac
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
30734 $as_echo_n "checking for the dynamic export flag... " >&6; }
30735 dynamic_list=false
30736 if test "${gdb_native}" = yes; then
30737 # The dynamically loaded libthread_db needs access to symbols in the gdb
30738 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
30739 # may not be supported there.
30740 old_LDFLAGS="$LDFLAGS"
30741 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
30742 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
30743 LDFLAGS="$LDFLAGS $RDYNAMIC"
30744 if test "${have_libpython}" = no; then
30745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30746 /* end confdefs.h. */
30749 main ()
30753 return 0;
30755 _ACEOF
30756 if ac_fn_c_try_link "$LINENO"; then :
30757 dynamic_list=true
30759 rm -f core conftest.err conftest.$ac_objext \
30760 conftest$ac_exeext conftest.$ac_ext
30761 else
30762 # Workaround http://bugs.python.org/issue4434 where static
30763 # libpythonX.Y.a would get its symbols required for
30764 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
30765 # Problem does not happen for the recommended libpythonX.Y.so linkage.
30767 # Note the workaround for Python
30768 # http://bugs.python.org/issue10112 earlier has removed
30769 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
30770 # here too, as otherwise it'd make this -Wl,--dynamic-list test
30771 # always pass.
30772 old_CFLAGS="$CFLAGS"
30773 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
30774 old_LIBS="$LIBS"
30775 LIBS="$LIBS $PYTHON_LIBS"
30776 old_CPPFLAGS="$CPPFLAGS"
30777 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
30778 if test "$cross_compiling" = yes; then :
30779 true
30780 else
30781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30782 /* end confdefs.h. */
30783 #include "Python.h"
30785 main ()
30787 int err;
30788 Py_Initialize ();
30789 err = PyRun_SimpleString ("import ctypes\n");
30790 Py_Finalize ();
30791 return err == 0 ? 0 : 1;
30793 return 0;
30795 _ACEOF
30796 if ac_fn_c_try_run "$LINENO"; then :
30797 dynamic_list=true
30799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30800 conftest.$ac_objext conftest.beam conftest.$ac_ext
30803 LIBS="$old_LIBS"
30804 CFLAGS="$old_CFLAGS"
30805 CPPFLAGS="$old_CPPFLAGS"
30807 LDFLAGS="$old_LDFLAGS"
30809 if $dynamic_list; then
30810 found="-Wl,--dynamic-list"
30811 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
30812 else
30813 found="-rdynamic"
30814 RDYNAMIC="-rdynamic"
30817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
30818 $as_echo "$found" >&6; }
30820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
30821 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
30822 if ${gdb_cv_execinfo_backtrace+:} false; then :
30823 $as_echo_n "(cached) " >&6
30824 else
30825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30826 /* end confdefs.h. */
30828 #include <execinfo.h>
30831 main ()
30834 int f;
30835 void *b[2];
30836 f = backtrace (b, 2);
30837 backtrace_symbols_fd (b, f, 2);
30840 return 0;
30842 _ACEOF
30843 if ac_fn_c_try_link "$LINENO"; then :
30844 gdb_cv_execinfo_backtrace=yes
30845 else
30846 gdb_cv_execinfo_backtrace=no
30848 rm -f core conftest.err conftest.$ac_objext \
30849 conftest$ac_exeext conftest.$ac_ext
30851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
30852 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
30853 if test "$gdb_cv_execinfo_backtrace" = yes; then
30855 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
30860 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
30861 case ${host_os} in
30862 aix*)
30863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
30864 $as_echo_n "checking for AiX thread debugging library... " >&6; }
30865 if ${gdb_cv_have_aix_thread_debug+:} false; then :
30866 $as_echo_n "(cached) " >&6
30867 else
30868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30869 /* end confdefs.h. */
30870 #include <sys/pthdebug.h>
30872 main ()
30874 #ifndef PTHDB_VERSION_3
30875 #error
30876 #endif
30879 return 0;
30881 _ACEOF
30882 if ac_fn_c_try_compile "$LINENO"; then :
30883 gdb_cv_have_aix_thread_debug=yes
30884 else
30885 gdb_cv_have_aix_thread_debug=no
30888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
30893 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
30894 if test "$gdb_cv_have_aix_thread_debug" = yes; then
30895 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
30896 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
30897 LIBS="$LIBS -lpthdebug"
30899 # Older versions of AIX do not provide the declaration for
30900 # the getthrds function (it appears that it was introduced
30901 # with AIX 6.x).
30902 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
30904 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
30905 ac_have_decl=1
30906 else
30907 ac_have_decl=0
30910 cat >>confdefs.h <<_ACEOF
30911 #define HAVE_DECL_GETTHRDS $ac_have_decl
30912 _ACEOF
30916 esac
30920 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
30921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
30922 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
30923 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
30924 $as_echo_n "(cached) " >&6
30925 else
30926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30927 /* end confdefs.h. */
30928 #include <thread_db.h>
30930 main ()
30932 int i = TD_NOTALLOC;
30935 return 0;
30937 _ACEOF
30938 if ac_fn_c_try_compile "$LINENO"; then :
30939 gdb_cv_thread_db_h_has_td_notalloc=yes
30940 else
30941 gdb_cv_thread_db_h_has_td_notalloc=no
30944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
30948 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
30951 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
30952 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
30953 $as_echo_n "(cached) " >&6
30954 else
30955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30956 /* end confdefs.h. */
30957 #include <thread_db.h>
30959 main ()
30961 int i = TD_VERSION;
30964 return 0;
30966 _ACEOF
30967 if ac_fn_c_try_compile "$LINENO"; then :
30968 gdb_cv_thread_db_h_has_td_version=yes
30969 else
30970 gdb_cv_thread_db_h_has_td_version=no
30973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
30977 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
30980 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
30981 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
30982 $as_echo_n "(cached) " >&6
30983 else
30984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30985 /* end confdefs.h. */
30986 #include <thread_db.h>
30988 main ()
30990 int i = TD_NOTLS;
30993 return 0;
30995 _ACEOF
30996 if ac_fn_c_try_compile "$LINENO"; then :
30997 gdb_cv_thread_db_h_has_td_notls=yes
30998 else
30999 gdb_cv_thread_db_h_has_td_notls=no
31002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
31006 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
31008 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
31010 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
31013 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
31015 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
31018 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
31020 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
31024 case $host_os in
31025 go32* | *djgpp*)
31026 gdbinit=gdb.ini
31029 gdbinit=.gdbinit
31031 esac
31033 cat >>confdefs.h <<_ACEOF
31034 #define GDBINIT "$gdbinit"
31035 _ACEOF
31039 cat >>confdefs.h <<_ACEOF
31040 #define GDBEARLYINIT ".gdbearlyinit"
31041 _ACEOF
31045 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
31046 # except that the argument to --with-sysroot is optional.
31047 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
31048 if test "x$with_sysroot" = xyes; then
31049 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
31052 # Check whether --with-sysroot was given.
31053 if test "${with_sysroot+set}" = set; then :
31054 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
31055 else
31056 TARGET_SYSTEM_ROOT=
31060 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
31061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31062 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
31063 ac_define_dir=`eval echo $ac_define_dir`
31065 cat >>confdefs.h <<_ACEOF
31066 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
31067 _ACEOF
31072 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
31073 if test "x$prefix" = xNONE; then
31074 test_prefix=/usr/local
31075 else
31076 test_prefix=$prefix
31078 else
31079 test_prefix=$exec_prefix
31081 value=0
31082 case ${ac_define_dir} in
31083 "${test_prefix}"|"${test_prefix}/"*|\
31084 '${exec_prefix}'|'${exec_prefix}/'*)
31085 value=1
31087 esac
31089 cat >>confdefs.h <<_ACEOF
31090 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
31091 _ACEOF
31097 # Check whether --with-system-gdbinit was given.
31098 if test "${with_system_gdbinit+set}" = set; then :
31099 withval=$with_system_gdbinit;
31100 SYSTEM_GDBINIT=$withval
31101 else
31102 SYSTEM_GDBINIT=
31106 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
31107 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31108 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
31109 ac_define_dir=`eval echo $ac_define_dir`
31111 cat >>confdefs.h <<_ACEOF
31112 #define SYSTEM_GDBINIT "$ac_define_dir"
31113 _ACEOF
31118 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
31119 if test "x$prefix" = xNONE; then
31120 test_prefix=/usr/local
31121 else
31122 test_prefix=$prefix
31124 else
31125 test_prefix=$exec_prefix
31127 value=0
31128 case ${ac_define_dir} in
31129 "${test_prefix}"|"${test_prefix}/"*|\
31130 '${exec_prefix}'|'${exec_prefix}/'*)
31131 value=1
31133 esac
31135 cat >>confdefs.h <<_ACEOF
31136 #define SYSTEM_GDBINIT_RELOCATABLE $value
31137 _ACEOF
31143 # Check whether --with-system-gdbinit-dir was given.
31144 if test "${with_system_gdbinit_dir+set}" = set; then :
31145 withval=$with_system_gdbinit_dir;
31146 SYSTEM_GDBINIT_DIR=$withval
31147 else
31148 SYSTEM_GDBINIT_DIR=
31152 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
31153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31154 ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR`
31155 ac_define_dir=`eval echo $ac_define_dir`
31157 cat >>confdefs.h <<_ACEOF
31158 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
31159 _ACEOF
31164 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
31165 if test "x$prefix" = xNONE; then
31166 test_prefix=/usr/local
31167 else
31168 test_prefix=$prefix
31170 else
31171 test_prefix=$exec_prefix
31173 value=0
31174 case ${ac_define_dir} in
31175 "${test_prefix}"|"${test_prefix}/"*|\
31176 '${exec_prefix}'|'${exec_prefix}/'*)
31177 value=1
31179 esac
31181 cat >>confdefs.h <<_ACEOF
31182 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
31183 _ACEOF
31190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
31191 $as_echo_n "checking the compiler type... " >&6; }
31192 if ${gdb_cv_compiler_type+:} false; then :
31193 $as_echo_n "(cached) " >&6
31194 else
31195 gdb_cv_compiler_type=unknown
31196 if test "$gdb_cv_compiler_type" = unknown; then
31197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31198 /* end confdefs.h. */
31201 main ()
31204 #if !defined __GNUC__ || defined __clang__
31205 #error not gcc
31206 #endif
31209 return 0;
31211 _ACEOF
31212 if ac_fn_c_try_compile "$LINENO"; then :
31213 gdb_cv_compiler_type=gcc
31215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31218 if test "$gdb_cv_compiler_type" = unknown; then
31219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31220 /* end confdefs.h. */
31223 main ()
31226 #ifndef __clang__
31227 #error not clang
31228 #endif
31231 return 0;
31233 _ACEOF
31234 if ac_fn_c_try_compile "$LINENO"; then :
31235 gdb_cv_compiler_type=clang
31237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
31242 $as_echo "$gdb_cv_compiler_type" >&6; }
31244 GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
31247 # Check whether --enable-werror was given.
31248 if test "${enable_werror+set}" = set; then :
31249 enableval=$enable_werror; case "${enableval}" in
31250 yes | y) ERROR_ON_WARNING="yes" ;;
31251 no | n) ERROR_ON_WARNING="no" ;;
31252 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
31253 esac
31257 # Enable -Werror by default when using gcc. Turn it off for releases.
31258 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
31259 ERROR_ON_WARNING=yes
31262 WERROR_CFLAGS=""
31263 if test "${ERROR_ON_WARNING}" = yes ; then
31264 WERROR_CFLAGS="-Werror"
31267 # The options we'll try to enable.
31268 build_warnings="-Wall -Wpointer-arith \
31269 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
31270 -Wno-switch -Wno-char-subscripts \
31271 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
31272 -Wno-sign-compare -Wno-error=maybe-uninitialized \
31273 -Wno-mismatched-tags \
31274 -Wno-error=deprecated-register \
31275 -Wsuggest-override \
31276 -Wimplicit-fallthrough=5 \
31277 -Wduplicated-cond \
31278 -Wshadow=local \
31279 -Wdeprecated-copy \
31280 -Wdeprecated-copy-dtor \
31281 -Wredundant-move \
31282 -Wmissing-declarations \
31283 -Wstrict-null-sentinel \
31284 -Wvla \
31287 # The -Wmissing-prototypes flag will be accepted by GCC, but results
31288 # in a warning being printed about the flag not being valid for C++,
31289 # this is something to do with using ccache, and argument ordering.
31290 if test "$GDB_COMPILER_TYPE" != gcc; then
31291 build_warnings="$build_warnings -Wmissing-prototypes"
31294 case "${host}" in
31295 *-*-mingw32*)
31296 # Enable -Wno-format by default when using gcc on mingw since many
31297 # GCC versions complain about %I64.
31298 build_warnings="$build_warnings -Wno-format" ;;
31299 *-*-solaris*)
31300 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
31301 # doesn't understand.
31302 build_warnings="$build_warnings -Wno-unknown-pragmas"
31303 # Solaris 11 <unistd.h> marks vfork deprecated.
31304 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
31306 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
31307 # but there's a special case for this below.
31308 build_warnings="$build_warnings -Wformat-nonliteral" ;;
31309 esac
31311 # Check whether --enable-build-warnings was given.
31312 if test "${enable_build_warnings+set}" = set; then :
31313 enableval=$enable_build_warnings; case "${enableval}" in
31314 yes) ;;
31315 no) build_warnings="-w";;
31316 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
31317 build_warnings="${build_warnings} ${t}";;
31318 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
31319 build_warnings="${t} ${build_warnings}";;
31320 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
31321 esac
31322 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
31323 echo "Setting compiler warning flags = $build_warnings" 6>&1
31326 # Check whether --enable-gdb-build-warnings was given.
31327 if test "${enable_gdb_build_warnings+set}" = set; then :
31328 enableval=$enable_gdb_build_warnings; case "${enableval}" in
31329 yes) ;;
31330 no) build_warnings="-w";;
31331 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
31332 build_warnings="${build_warnings} ${t}";;
31333 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
31334 build_warnings="${t} ${build_warnings}";;
31335 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
31336 esac
31337 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
31338 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
31342 # The set of warnings supported by a C++ compiler is not the same as
31343 # of the C compiler.
31344 ac_ext=cpp
31345 ac_cpp='$CXXCPP $CPPFLAGS'
31346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31351 WARN_CFLAGS=""
31352 if test "x${build_warnings}" != x -a "x$GCC" = xyes
31353 then
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
31355 $as_echo_n "checking compiler warning flags... " >&6; }
31356 # Separate out the -Werror flag as some files just cannot be
31357 # compiled with it enabled.
31358 for w in ${build_warnings}; do
31359 # GCC does not complain about -Wno-unknown-warning. Invert
31360 # and test -Wunknown-warning instead.
31361 case $w in
31362 -Wno-*)
31363 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
31364 -Wformat-nonliteral)
31365 # gcc requires -Wformat before -Wformat-nonliteral
31366 # will work, so stick them together.
31367 w="-Wformat $w"
31368 wtest="$w"
31371 wtest=$w ;;
31372 esac
31374 case $w in
31375 -Werr*) WERROR_CFLAGS=-Werror ;;
31377 # Check whether GCC accepts it.
31378 saved_CFLAGS="$CFLAGS"
31379 CFLAGS="$CFLAGS -Werror $wtest"
31380 saved_CXXFLAGS="$CXXFLAGS"
31381 CXXFLAGS="$CXXFLAGS -Werror $wtest"
31382 if test "x$w" = "x-Wunused-variable"; then
31383 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
31384 # fixed in GCC 4.9. This test is derived from the gdb
31385 # source code that triggered this bug in GCC.
31386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31387 /* end confdefs.h. */
31388 struct scoped_restore_base {};
31389 struct scoped_restore_tmpl : public scoped_restore_base {
31390 ~scoped_restore_tmpl() {}
31393 main ()
31395 const scoped_restore_base &b = scoped_restore_tmpl();
31398 return 0;
31400 _ACEOF
31401 if ac_fn_cxx_try_compile "$LINENO"; then :
31402 WARN_CFLAGS="${WARN_CFLAGS} $w"
31404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31405 else
31406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31407 /* end confdefs.h. */
31410 main ()
31414 return 0;
31416 _ACEOF
31417 if ac_fn_cxx_try_compile "$LINENO"; then :
31418 WARN_CFLAGS="${WARN_CFLAGS} $w"
31420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31422 CFLAGS="$saved_CFLAGS"
31423 CXXFLAGS="$saved_CXXFLAGS"
31424 esac
31425 done
31426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
31427 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
31432 ac_ext=c
31433 ac_cpp='$CPP $CPPFLAGS'
31434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31440 # Check whether --enable-ubsan was given.
31441 if test "${enable_ubsan+set}" = set; then :
31442 enableval=$enable_ubsan;
31443 else
31444 enable_ubsan=no
31447 if test "x$enable_ubsan" = xauto; then
31448 if $development; then
31449 enable_ubsan=yes
31452 ac_ext=cpp
31453 ac_cpp='$CXXCPP $CPPFLAGS'
31454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31458 if test "x$enable_ubsan" = xyes; then
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
31460 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
31461 saved_CXXFLAGS="$CXXFLAGS"
31462 CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
31463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31464 /* end confdefs.h. */
31467 main ()
31471 return 0;
31473 _ACEOF
31474 if ac_fn_cxx_try_link "$LINENO"; then :
31475 enable_ubsan=yes
31476 else
31477 enable_ubsan=no
31480 rm -f core conftest.err conftest.$ac_objext \
31481 conftest$ac_exeext conftest.$ac_ext
31482 CXXFLAGS="$saved_CXXFLAGS"
31483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
31484 $as_echo "$enable_ubsan" >&6; }
31485 if test "x$enable_ubsan" = xyes; then
31486 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
31487 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
31490 ac_ext=c
31491 ac_cpp='$CPP $CPPFLAGS'
31492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31498 # In the Cygwin environment, we need some additional flags.
31499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
31500 $as_echo_n "checking for cygwin... " >&6; }
31501 if ${gdb_cv_os_cygwin+:} false; then :
31502 $as_echo_n "(cached) " >&6
31503 else
31504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31505 /* end confdefs.h. */
31507 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
31508 lose
31509 #endif
31510 _ACEOF
31511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31512 $EGREP "^lose$" >/dev/null 2>&1; then :
31513 gdb_cv_os_cygwin=yes
31514 else
31515 gdb_cv_os_cygwin=no
31517 rm -f conftest*
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
31521 $as_echo "$gdb_cv_os_cygwin" >&6; }
31524 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
31525 case ${host} in
31526 *go32* ) SER_HARDWIRE=ser-go32.o ;;
31527 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
31528 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
31529 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
31530 esac
31533 # libreadline needs libuser32.a in a cygwin environment
31534 WIN32LIBS=
31535 if test x"$gdb_cv_os_cygwin" = xyes; then
31536 WIN32LIBS="-luser32"
31537 case "${target}" in
31538 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
31540 esac
31543 # The ser-tcp.c module requires sockets.
31544 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
31545 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
31547 # Add ELF support to GDB, but only if BFD includes ELF support.
31549 OLD_CFLAGS=$CFLAGS
31550 OLD_LDFLAGS=$LDFLAGS
31551 OLD_LIBS=$LIBS
31552 OLD_CC=$CC
31553 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
31554 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
31555 # always want our bfd.
31556 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
31557 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
31558 # LTLIBINTL because we use libtool as CC below.
31559 intl="$(echo "$LTLIBINTL" | sed 's,\$[{(]top_builddir[)}]/,,')"
31560 LIBS="-lbfd -liberty $intl $LIBS"
31561 CC="./libtool --quiet --mode=link $CC"
31562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
31563 $as_echo_n "checking for ELF support in BFD... " >&6; }
31564 if ${gdb_cv_var_elf+:} false; then :
31565 $as_echo_n "(cached) " >&6
31566 else
31567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31568 /* end confdefs.h. */
31569 #include <stdlib.h>
31570 #include <string.h>
31571 #include "bfd.h"
31572 #include "elf-bfd.h"
31574 main ()
31576 return bfd_get_elf_phdr_upper_bound (NULL);
31579 return 0;
31581 _ACEOF
31582 if ac_fn_c_try_link "$LINENO"; then :
31583 gdb_cv_var_elf=yes
31584 else
31585 gdb_cv_var_elf=no
31588 rm -f core conftest.err conftest.$ac_objext \
31589 conftest$ac_exeext conftest.$ac_ext
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
31593 $as_echo "$gdb_cv_var_elf" >&6; }
31594 CC=$OLD_CC
31595 CFLAGS=$OLD_CFLAGS
31596 LDFLAGS=$OLD_LDFLAGS
31597 LIBS=$OLD_LIBS
31598 if test "$gdb_cv_var_elf" = yes; then
31599 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
31600 gcore-elf.o elf-none-tdep.o"
31602 $as_echo "#define HAVE_ELF 1" >>confdefs.h
31604 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
31605 if test "$plugins" = "yes"; then
31606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31607 $as_echo_n "checking for library containing dlopen... " >&6; }
31608 if ${ac_cv_search_dlopen+:} false; then :
31609 $as_echo_n "(cached) " >&6
31610 else
31611 ac_func_search_save_LIBS=$LIBS
31612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31613 /* end confdefs.h. */
31615 /* Override any GCC internal prototype to avoid an error.
31616 Use char because int might match the return type of a GCC
31617 builtin and then its argument prototype would still apply. */
31618 #ifdef __cplusplus
31619 extern "C"
31620 #endif
31621 char dlopen ();
31623 main ()
31625 return dlopen ();
31627 return 0;
31629 _ACEOF
31630 for ac_lib in '' dl; do
31631 if test -z "$ac_lib"; then
31632 ac_res="none required"
31633 else
31634 ac_res=-l$ac_lib
31635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31637 if ac_fn_c_try_link "$LINENO"; then :
31638 ac_cv_search_dlopen=$ac_res
31640 rm -f core conftest.err conftest.$ac_objext \
31641 conftest$ac_exeext
31642 if ${ac_cv_search_dlopen+:} false; then :
31643 break
31645 done
31646 if ${ac_cv_search_dlopen+:} false; then :
31648 else
31649 ac_cv_search_dlopen=no
31651 rm conftest.$ac_ext
31652 LIBS=$ac_func_search_save_LIBS
31654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31655 $as_echo "$ac_cv_search_dlopen" >&6; }
31656 ac_res=$ac_cv_search_dlopen
31657 if test "$ac_res" != no; then :
31658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31665 # Add macho support to GDB, but only if BFD includes it.
31667 OLD_CFLAGS=$CFLAGS
31668 OLD_LDFLAGS=$LDFLAGS
31669 OLD_LIBS=$LIBS
31670 OLD_CC=$CC
31671 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
31672 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
31673 # always want our bfd.
31674 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
31675 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
31676 # LTLIBINTL because we use libtool as CC below.
31677 intl="$(echo "$LTLIBINTL" | sed 's,\$[{(]top_builddir[)}]/,,')"
31678 LIBS="-lbfd -liberty $intl $LIBS"
31679 CC="./libtool --quiet --mode=link $CC"
31680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
31681 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
31682 if ${gdb_cv_var_macho+:} false; then :
31683 $as_echo_n "(cached) " >&6
31684 else
31685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31686 /* end confdefs.h. */
31687 #include <stdlib.h>
31688 #include <string.h>
31689 #include "bfd.h"
31690 #include "mach-o.h"
31692 main ()
31694 return bfd_mach_o_lookup_command (NULL, 0, NULL);
31697 return 0;
31699 _ACEOF
31700 if ac_fn_c_try_link "$LINENO"; then :
31701 gdb_cv_var_macho=yes
31702 else
31703 gdb_cv_var_macho=no
31706 rm -f core conftest.err conftest.$ac_objext \
31707 conftest$ac_exeext conftest.$ac_ext
31710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
31711 $as_echo "$gdb_cv_var_macho" >&6; }
31712 CC=$OLD_CC
31713 CFLAGS=$OLD_CFLAGS
31714 LDFLAGS=$OLD_LDFLAGS
31715 LIBS=$OLD_LIBS
31716 if test "$gdb_cv_var_macho" = yes; then
31717 CONFIG_OBS="$CONFIG_OBS machoread.o"
31720 # Add any host-specific objects to GDB.
31721 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
31723 # If building on ELF, look for lzma support for embedded compressed debug info.
31724 if test "$gdb_cv_var_elf" = yes; then
31726 # Check whether --with-lzma was given.
31727 if test "${with_lzma+set}" = set; then :
31728 withval=$with_lzma;
31729 else
31730 with_lzma=auto
31733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
31734 $as_echo_n "checking whether to use lzma... " >&6; }
31735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
31736 $as_echo "$with_lzma" >&6; }
31738 if test "${with_lzma}" != no; then
31747 use_additional=yes
31749 acl_save_prefix="$prefix"
31750 prefix="$acl_final_prefix"
31751 acl_save_exec_prefix="$exec_prefix"
31752 exec_prefix="$acl_final_exec_prefix"
31754 eval additional_includedir=\"$includedir\"
31755 eval additional_libdir=\"$libdir\"
31757 exec_prefix="$acl_save_exec_prefix"
31758 prefix="$acl_save_prefix"
31761 # Check whether --with-liblzma-prefix was given.
31762 if test "${with_liblzma_prefix+set}" = set; then :
31763 withval=$with_liblzma_prefix;
31764 if test "X$withval" = "Xno"; then
31765 use_additional=no
31766 else
31767 if test "X$withval" = "X"; then
31769 acl_save_prefix="$prefix"
31770 prefix="$acl_final_prefix"
31771 acl_save_exec_prefix="$exec_prefix"
31772 exec_prefix="$acl_final_exec_prefix"
31774 eval additional_includedir=\"$includedir\"
31775 eval additional_libdir=\"$libdir\"
31777 exec_prefix="$acl_save_exec_prefix"
31778 prefix="$acl_save_prefix"
31780 else
31781 additional_includedir="$withval/include"
31782 additional_libdir="$withval/lib"
31789 # Check whether --with-liblzma-type was given.
31790 if test "${with_liblzma_type+set}" = set; then :
31791 withval=$with_liblzma_type; with_liblzma_type=$withval
31792 else
31793 with_liblzma_type=auto
31796 lib_type=`eval echo \$with_liblzma_type`
31798 LIBLZMA=
31799 LTLIBLZMA=
31800 INCLZMA=
31801 rpathdirs=
31802 ltrpathdirs=
31803 names_already_handled=
31804 names_next_round='lzma '
31805 while test -n "$names_next_round"; do
31806 names_this_round="$names_next_round"
31807 names_next_round=
31808 for name in $names_this_round; do
31809 already_handled=
31810 for n in $names_already_handled; do
31811 if test "$n" = "$name"; then
31812 already_handled=yes
31813 break
31815 done
31816 if test -z "$already_handled"; then
31817 names_already_handled="$names_already_handled $name"
31818 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
31819 eval value=\"\$HAVE_LIB$uppername\"
31820 if test -n "$value"; then
31821 if test "$value" = yes; then
31822 eval value=\"\$LIB$uppername\"
31823 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
31824 eval value=\"\$LTLIB$uppername\"
31825 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
31826 else
31829 else
31830 found_dir=
31831 found_la=
31832 found_so=
31833 found_a=
31834 if test $use_additional = yes; then
31835 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
31836 found_dir="$additional_libdir"
31837 found_so="$additional_libdir/lib$name.$shlibext"
31838 if test -f "$additional_libdir/lib$name.la"; then
31839 found_la="$additional_libdir/lib$name.la"
31841 elif test x$lib_type != xshared; then
31842 if test -f "$additional_libdir/lib$name.$libext"; then
31843 found_dir="$additional_libdir"
31844 found_a="$additional_libdir/lib$name.$libext"
31845 if test -f "$additional_libdir/lib$name.la"; then
31846 found_la="$additional_libdir/lib$name.la"
31851 if test "X$found_dir" = "X"; then
31852 for x in $LDFLAGS $LTLIBLZMA; do
31854 acl_save_prefix="$prefix"
31855 prefix="$acl_final_prefix"
31856 acl_save_exec_prefix="$exec_prefix"
31857 exec_prefix="$acl_final_exec_prefix"
31858 eval x=\"$x\"
31859 exec_prefix="$acl_save_exec_prefix"
31860 prefix="$acl_save_prefix"
31862 case "$x" in
31863 -L*)
31864 dir=`echo "X$x" | sed -e 's/^X-L//'`
31865 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
31866 found_dir="$dir"
31867 found_so="$dir/lib$name.$shlibext"
31868 if test -f "$dir/lib$name.la"; then
31869 found_la="$dir/lib$name.la"
31871 elif test x$lib_type != xshared; then
31872 if test -f "$dir/lib$name.$libext"; then
31873 found_dir="$dir"
31874 found_a="$dir/lib$name.$libext"
31875 if test -f "$dir/lib$name.la"; then
31876 found_la="$dir/lib$name.la"
31881 esac
31882 if test "X$found_dir" != "X"; then
31883 break
31885 done
31887 if test "X$found_dir" != "X"; then
31888 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
31889 if test "X$found_so" != "X"; then
31890 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
31891 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
31892 else
31893 haveit=
31894 for x in $ltrpathdirs; do
31895 if test "X$x" = "X$found_dir"; then
31896 haveit=yes
31897 break
31899 done
31900 if test -z "$haveit"; then
31901 ltrpathdirs="$ltrpathdirs $found_dir"
31903 if test "$hardcode_direct" = yes; then
31904 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
31905 else
31906 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
31907 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
31908 haveit=
31909 for x in $rpathdirs; do
31910 if test "X$x" = "X$found_dir"; then
31911 haveit=yes
31912 break
31914 done
31915 if test -z "$haveit"; then
31916 rpathdirs="$rpathdirs $found_dir"
31918 else
31919 haveit=
31920 for x in $LDFLAGS $LIBLZMA; do
31922 acl_save_prefix="$prefix"
31923 prefix="$acl_final_prefix"
31924 acl_save_exec_prefix="$exec_prefix"
31925 exec_prefix="$acl_final_exec_prefix"
31926 eval x=\"$x\"
31927 exec_prefix="$acl_save_exec_prefix"
31928 prefix="$acl_save_prefix"
31930 if test "X$x" = "X-L$found_dir"; then
31931 haveit=yes
31932 break
31934 done
31935 if test -z "$haveit"; then
31936 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
31938 if test "$hardcode_minus_L" != no; then
31939 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
31940 else
31941 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
31946 else
31947 if test "X$found_a" != "X"; then
31948 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
31949 else
31950 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
31953 additional_includedir=
31954 case "$found_dir" in
31955 */lib | */lib/)
31956 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
31957 additional_includedir="$basedir/include"
31959 esac
31960 if test "X$additional_includedir" != "X"; then
31961 if test "X$additional_includedir" != "X/usr/include"; then
31962 haveit=
31963 if test "X$additional_includedir" = "X/usr/local/include"; then
31964 if test -n "$GCC"; then
31965 case $host_os in
31966 linux*) haveit=yes;;
31967 esac
31970 if test -z "$haveit"; then
31971 for x in $CPPFLAGS $INCLZMA; do
31973 acl_save_prefix="$prefix"
31974 prefix="$acl_final_prefix"
31975 acl_save_exec_prefix="$exec_prefix"
31976 exec_prefix="$acl_final_exec_prefix"
31977 eval x=\"$x\"
31978 exec_prefix="$acl_save_exec_prefix"
31979 prefix="$acl_save_prefix"
31981 if test "X$x" = "X-I$additional_includedir"; then
31982 haveit=yes
31983 break
31985 done
31986 if test -z "$haveit"; then
31987 if test -d "$additional_includedir"; then
31988 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
31994 if test -n "$found_la"; then
31995 save_libdir="$libdir"
31996 case "$found_la" in
31997 */* | *\\*) . "$found_la" ;;
31998 *) . "./$found_la" ;;
31999 esac
32000 libdir="$save_libdir"
32001 for dep in $dependency_libs; do
32002 case "$dep" in
32003 -L*)
32004 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
32005 if test "X$additional_libdir" != "X/usr/lib"; then
32006 haveit=
32007 if test "X$additional_libdir" = "X/usr/local/lib"; then
32008 if test -n "$GCC"; then
32009 case $host_os in
32010 linux*) haveit=yes;;
32011 esac
32014 if test -z "$haveit"; then
32015 haveit=
32016 for x in $LDFLAGS $LIBLZMA; do
32018 acl_save_prefix="$prefix"
32019 prefix="$acl_final_prefix"
32020 acl_save_exec_prefix="$exec_prefix"
32021 exec_prefix="$acl_final_exec_prefix"
32022 eval x=\"$x\"
32023 exec_prefix="$acl_save_exec_prefix"
32024 prefix="$acl_save_prefix"
32026 if test "X$x" = "X-L$additional_libdir"; then
32027 haveit=yes
32028 break
32030 done
32031 if test -z "$haveit"; then
32032 if test -d "$additional_libdir"; then
32033 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
32036 haveit=
32037 for x in $LDFLAGS $LTLIBLZMA; do
32039 acl_save_prefix="$prefix"
32040 prefix="$acl_final_prefix"
32041 acl_save_exec_prefix="$exec_prefix"
32042 exec_prefix="$acl_final_exec_prefix"
32043 eval x=\"$x\"
32044 exec_prefix="$acl_save_exec_prefix"
32045 prefix="$acl_save_prefix"
32047 if test "X$x" = "X-L$additional_libdir"; then
32048 haveit=yes
32049 break
32051 done
32052 if test -z "$haveit"; then
32053 if test -d "$additional_libdir"; then
32054 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
32060 -R*)
32061 dir=`echo "X$dep" | sed -e 's/^X-R//'`
32062 if test "$enable_rpath" != no; then
32063 haveit=
32064 for x in $rpathdirs; do
32065 if test "X$x" = "X$dir"; then
32066 haveit=yes
32067 break
32069 done
32070 if test -z "$haveit"; then
32071 rpathdirs="$rpathdirs $dir"
32073 haveit=
32074 for x in $ltrpathdirs; do
32075 if test "X$x" = "X$dir"; then
32076 haveit=yes
32077 break
32079 done
32080 if test -z "$haveit"; then
32081 ltrpathdirs="$ltrpathdirs $dir"
32085 -l*)
32086 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
32088 *.la)
32089 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
32092 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
32093 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
32095 esac
32096 done
32098 else
32099 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
32100 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
32101 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
32102 else
32103 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
32104 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
32109 done
32110 done
32111 if test "X$rpathdirs" != "X"; then
32112 if test -n "$hardcode_libdir_separator"; then
32113 alldirs=
32114 for found_dir in $rpathdirs; do
32115 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
32116 done
32117 acl_save_libdir="$libdir"
32118 libdir="$alldirs"
32119 eval flag=\"$hardcode_libdir_flag_spec\"
32120 libdir="$acl_save_libdir"
32121 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
32122 else
32123 for found_dir in $rpathdirs; do
32124 acl_save_libdir="$libdir"
32125 libdir="$found_dir"
32126 eval flag=\"$hardcode_libdir_flag_spec\"
32127 libdir="$acl_save_libdir"
32128 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
32129 done
32132 if test "X$ltrpathdirs" != "X"; then
32133 for found_dir in $ltrpathdirs; do
32134 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
32135 done
32139 ac_save_CPPFLAGS="$CPPFLAGS"
32141 for element in $INCLZMA; do
32142 haveit=
32143 for x in $CPPFLAGS; do
32145 acl_save_prefix="$prefix"
32146 prefix="$acl_final_prefix"
32147 acl_save_exec_prefix="$exec_prefix"
32148 exec_prefix="$acl_final_exec_prefix"
32149 eval x=\"$x\"
32150 exec_prefix="$acl_save_exec_prefix"
32151 prefix="$acl_save_prefix"
32153 if test "X$x" = "X$element"; then
32154 haveit=yes
32155 break
32157 done
32158 if test -z "$haveit"; then
32159 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
32161 done
32164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
32165 $as_echo_n "checking for liblzma... " >&6; }
32166 if ${ac_cv_liblzma+:} false; then :
32167 $as_echo_n "(cached) " >&6
32168 else
32170 ac_save_LIBS="$LIBS"
32171 LIBS="$LIBS $LIBLZMA"
32172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32173 /* end confdefs.h. */
32174 #include "lzma.h"
32176 main ()
32178 lzma_index_iter iter;
32179 lzma_index_iter_init (&iter, 0);
32180 lzma_mf_is_supported (LZMA_MF_HC3);
32182 return 0;
32184 _ACEOF
32185 if ac_fn_c_try_link "$LINENO"; then :
32186 ac_cv_liblzma=yes
32187 else
32188 ac_cv_liblzma=no
32190 rm -f core conftest.err conftest.$ac_objext \
32191 conftest$ac_exeext conftest.$ac_ext
32192 LIBS="$ac_save_LIBS"
32195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
32196 $as_echo "$ac_cv_liblzma" >&6; }
32197 if test "$ac_cv_liblzma" = yes; then
32198 HAVE_LIBLZMA=yes
32200 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
32203 $as_echo_n "checking how to link with liblzma... " >&6; }
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
32205 $as_echo "$LIBLZMA" >&6; }
32206 else
32207 HAVE_LIBLZMA=no
32208 CPPFLAGS="$ac_save_CPPFLAGS"
32209 LIBLZMA=
32210 LTLIBLZMA=
32218 if test "$HAVE_LIBLZMA" != yes; then
32219 if test "$with_lzma" = yes; then
32220 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
32226 LIBGUI="../libgui/src/libgui.a"
32227 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
32231 WIN32LDAPP=
32235 case "${host}" in
32236 *-*-cygwin* | *-*-mingw* )
32237 configdir="win"
32240 configdir="unix"
32242 esac
32244 GDBTKLIBS=
32245 if test "${enable_gdbtk}" = "yes"; then
32247 # Gdbtk must have an absolute path to srcdir in order to run
32248 # properly when not installed.
32249 here=`pwd`
32250 cd ${srcdir}
32251 GDBTK_SRC_DIR=`pwd`
32252 cd $here
32256 # Ok, lets find the tcl configuration
32257 # First, look for one uninstalled.
32258 # the alternative search directory is invoked by --with-tcl
32261 if test x"${no_tcl}" = x ; then
32262 # we reset no_tcl in case something fails here
32263 no_tcl=true
32265 # Check whether --with-tcl was given.
32266 if test "${with_tcl+set}" = set; then :
32267 withval=$with_tcl; with_tclconfig=${withval}
32270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
32271 $as_echo_n "checking for Tcl configuration... " >&6; }
32272 if ${ac_cv_c_tclconfig+:} false; then :
32273 $as_echo_n "(cached) " >&6
32274 else
32277 # First check to see if --with-tcl was specified.
32278 case "${host}" in
32279 *-*-cygwin*) platDir="win" ;;
32280 *) platDir="unix" ;;
32281 esac
32282 if test x"${with_tclconfig}" != x ; then
32283 if test -f "${with_tclconfig}/tclConfig.sh" ; then
32284 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
32285 else
32286 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
32290 # then check for a private Tcl installation
32291 if test x"${ac_cv_c_tclconfig}" = x ; then
32292 for i in \
32293 ../tcl \
32294 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32295 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
32296 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
32297 ../../tcl \
32298 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32299 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
32300 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
32301 ../../../tcl \
32302 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32303 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
32304 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
32305 if test -f "$i/$platDir/tclConfig.sh" ; then
32306 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
32307 break
32309 done
32312 # on Darwin, check in Framework installation locations
32313 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
32314 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
32315 `ls -d /Library/Frameworks 2>/dev/null` \
32316 `ls -d /Network/Library/Frameworks 2>/dev/null` \
32317 `ls -d /System/Library/Frameworks 2>/dev/null` \
32318 ; do
32319 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
32320 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
32321 break
32323 done
32326 # check in a few common install locations
32327 if test x"${ac_cv_c_tclconfig}" = x ; then
32328 for i in `ls -d ${libdir} 2>/dev/null` \
32329 `ls -d ${exec_prefix}/lib 2>/dev/null` \
32330 `ls -d ${prefix}/lib 2>/dev/null` \
32331 `ls -d /usr/local/lib 2>/dev/null` \
32332 `ls -d /usr/contrib/lib 2>/dev/null` \
32333 `ls -d /usr/lib 2>/dev/null` \
32334 ; do
32335 if test -f "$i/tclConfig.sh" ; then
32336 ac_cv_c_tclconfig=`(cd $i; pwd)`
32337 break
32339 done
32342 # check in a few other private locations
32343 if test x"${ac_cv_c_tclconfig}" = x ; then
32344 for i in \
32345 ${srcdir}/../tcl \
32346 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32347 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
32348 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
32349 if test -f "$i/$platDir/tclConfig.sh" ; then
32350 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
32351 break
32353 done
32359 if test x"${ac_cv_c_tclconfig}" = x ; then
32360 TCL_BIN_DIR="# no Tcl configs found"
32361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
32362 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
32363 else
32364 no_tcl=
32365 TCL_BIN_DIR=${ac_cv_c_tclconfig}
32366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
32367 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
32372 # If $no_tk is nonempty, then we can't do Tk, and there is no
32373 # point to doing Tcl.
32376 # Ok, lets find the tk configuration
32377 # First, look for one uninstalled.
32378 # the alternative search directory is invoked by --with-tk
32381 if test x"${no_tk}" = x ; then
32382 # we reset no_tk in case something fails here
32383 no_tk=true
32385 # Check whether --with-tk was given.
32386 if test "${with_tk+set}" = set; then :
32387 withval=$with_tk; with_tkconfig=${withval}
32390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
32391 $as_echo_n "checking for Tk configuration... " >&6; }
32392 if ${ac_cv_c_tkconfig+:} false; then :
32393 $as_echo_n "(cached) " >&6
32394 else
32397 # First check to see if --with-tkconfig was specified.
32398 if test x"${with_tkconfig}" != x ; then
32399 if test -f "${with_tkconfig}/tkConfig.sh" ; then
32400 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
32401 else
32402 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
32406 # then check for a private Tk library
32407 case "${host}" in
32408 *-*-cygwin*) platDir="win" ;;
32409 *) platDir="unix" ;;
32410 esac
32411 if test x"${ac_cv_c_tkconfig}" = x ; then
32412 for i in \
32413 ../tk \
32414 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32415 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
32416 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
32417 ../../tk \
32418 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32419 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
32420 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
32421 ../../../tk \
32422 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32423 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
32424 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
32425 if test -f "$i/$platDir/tkConfig.sh" ; then
32426 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
32427 break
32429 done
32432 # on Darwin, check in Framework installation locations
32433 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
32434 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
32435 `ls -d /Library/Frameworks 2>/dev/null` \
32436 `ls -d /Network/Library/Frameworks 2>/dev/null` \
32437 `ls -d /System/Library/Frameworks 2>/dev/null` \
32438 ; do
32439 if test -f "$i/Tk.framework/tkConfig.sh" ; then
32440 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
32441 break
32443 done
32446 # check in a few common install locations
32447 if test x"${ac_cv_c_tkconfig}" = x ; then
32448 for i in `ls -d ${libdir} 2>/dev/null` \
32449 `ls -d ${exec_prefix}/lib 2>/dev/null` \
32450 `ls -d ${prefix}/lib 2>/dev/null` \
32451 `ls -d /usr/local/lib 2>/dev/null` \
32452 `ls -d /usr/contrib/lib 2>/dev/null` \
32453 `ls -d /usr/lib 2>/dev/null` \
32454 ; do
32455 if test -f "$i/tkConfig.sh" ; then
32456 ac_cv_c_tkconfig=`(cd $i; pwd)`
32457 break
32459 done
32461 # check in a few other private locations
32462 if test x"${ac_cv_c_tkconfig}" = x ; then
32463 for i in \
32464 ${srcdir}/../tk \
32465 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32466 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
32467 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
32468 if test -f "$i/$platDir/tkConfig.sh" ; then
32469 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
32470 break
32472 done
32478 if test x"${ac_cv_c_tkconfig}" = x ; then
32479 TK_BIN_DIR="# no Tk configs found"
32480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
32481 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
32482 else
32483 no_tk=
32484 TK_BIN_DIR=${ac_cv_c_tkconfig}
32485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
32486 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
32491 if test -z "${no_tcl}" -a -z "${no_tk}"; then
32493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
32494 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
32496 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
32497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
32498 $as_echo "loading" >&6; }
32499 . ${TCL_BIN_DIR}/tclConfig.sh
32500 else
32501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
32502 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
32505 # eval is required to do the TCL_DBGX substitution
32506 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
32507 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
32509 # If the TCL_BIN_DIR is the build directory (not the install directory),
32510 # then set the common variable name to the value of the build variables.
32511 # For example, the variable TCL_LIB_SPEC will be set to the value
32512 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
32513 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
32514 # installed and uninstalled version of Tcl.
32515 if test -f "${TCL_BIN_DIR}/Makefile" ; then
32516 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
32517 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
32518 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
32519 elif test "`uname -s`" = "Darwin"; then
32520 # If Tcl was built as a framework, attempt to use the libraries
32521 # from the framework at the given location so that linking works
32522 # against Tcl.framework installed in an arbitrary location.
32523 case ${TCL_DEFS} in
32524 *TCL_FRAMEWORK*)
32525 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
32526 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
32527 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
32528 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
32529 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
32530 break
32532 done
32534 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
32535 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
32536 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
32539 esac
32542 # eval is required to do the TCL_DBGX substitution
32543 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
32544 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
32545 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
32546 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
32562 # Check for in-tree tcl
32563 here=`pwd`
32564 cd ${srcdir}/..
32565 topdir=`pwd`
32566 cd ${here}
32568 intree="no"
32569 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
32570 intree="yes"
32573 # Find Tcl private headers
32574 if test x"${intree}" = xno; then
32576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
32577 $as_echo_n "checking for Tcl private headers... " >&6; }
32578 private_dir=""
32579 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
32580 if test -f ${dir}/tclInt.h ; then
32581 private_dir=${dir}
32584 if test x"${private_dir}" = x; then
32585 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
32586 else
32587 TCL_PRIVATE_INCLUDE="-I${private_dir}"
32588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
32589 $as_echo "${private_dir}" >&6; }
32592 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
32593 TCL_LIBRARY="${TCL_LIB_SPEC}"
32594 TCL_DEPS=""
32595 else
32596 # If building tcl in the same src tree, private headers
32597 # are not needed, but we need to be sure to use the right
32598 # headers library
32599 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
32600 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
32601 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
32608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
32609 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
32611 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
32612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
32613 $as_echo "loading" >&6; }
32614 . ${TK_BIN_DIR}/tkConfig.sh
32615 else
32616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
32617 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
32620 # eval is required to do the TK_DBGX substitution
32621 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
32622 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
32624 # If the TK_BIN_DIR is the build directory (not the install directory),
32625 # then set the common variable name to the value of the build variables.
32626 # For example, the variable TK_LIB_SPEC will be set to the value
32627 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
32628 # instead of TK_BUILD_LIB_SPEC since it will work with both an
32629 # installed and uninstalled version of Tcl.
32630 if test -f "${TK_BIN_DIR}/Makefile" ; then
32631 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
32632 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
32633 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
32634 elif test "`uname -s`" = "Darwin"; then
32635 # If Tk was built as a framework, attempt to use the libraries
32636 # from the framework at the given location so that linking works
32637 # against Tk.framework installed in an arbitrary location.
32638 case ${TK_DEFS} in
32639 *TK_FRAMEWORK*)
32640 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
32641 for i in "`cd ${TK_BIN_DIR}; pwd`" \
32642 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
32643 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
32644 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
32645 break
32647 done
32649 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
32650 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
32651 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
32654 esac
32657 # eval is required to do the TK_DBGX substitution
32658 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
32659 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
32660 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
32661 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
32676 # Check for in-tree Tk
32677 intree="no"
32678 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
32679 intree="yes"
32682 # Find Tk private headers
32683 if test x"${intree}" = xno; then
32685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
32686 $as_echo_n "checking for Tk private headers... " >&6; }
32687 private_dir=""
32688 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
32689 if test -f ${dir}/tkInt.h; then
32690 private_dir=${dir}
32693 if test x"${private_dir}" = x; then
32694 as_fn_error $? "could not find Tk private headers" "$LINENO" 5
32695 else
32696 TK_PRIVATE_INCLUDE="-I${private_dir}"
32697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
32698 $as_echo "${private_dir}" >&6; }
32701 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
32702 TK_LIBRARY=${TK_LIB_SPEC}
32703 TK_DEPS=""
32704 else
32705 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
32706 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
32707 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
32714 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
32716 # Include some libraries that Tcl and Tk want.
32717 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
32718 # Yes, the ordering seems wrong here. But it isn't.
32719 # TK_LIBS is the list of libraries that need to be linked
32720 # after Tcl/Tk. Note that this isn't put into LIBS. If it
32721 # were in LIBS then any link tests after this point would
32722 # try to include things like `$(LIBGUI)', which wouldn't work.
32723 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
32725 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
32726 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
32727 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
32728 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
32729 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
32730 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
32731 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
32733 if test x"$gdb_cv_os_cygwin" = xyes; then
32734 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
32735 WIN32LDAPP="-Wl,--subsystem,console"
32736 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
32739 subdirs="$subdirs gdbtk"
32751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
32752 $as_echo_n "checking for X... " >&6; }
32755 # Check whether --with-x was given.
32756 if test "${with_x+set}" = set; then :
32757 withval=$with_x;
32760 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32761 if test "x$with_x" = xno; then
32762 # The user explicitly disabled X.
32763 have_x=disabled
32764 else
32765 case $x_includes,$x_libraries in #(
32766 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
32767 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
32768 $as_echo_n "(cached) " >&6
32769 else
32770 # One or both of the vars are not set, and there is no cached value.
32771 ac_x_includes=no ac_x_libraries=no
32772 rm -f -r conftest.dir
32773 if mkdir conftest.dir; then
32774 cd conftest.dir
32775 cat >Imakefile <<'_ACEOF'
32776 incroot:
32777 @echo incroot='${INCROOT}'
32778 usrlibdir:
32779 @echo usrlibdir='${USRLIBDIR}'
32780 libdir:
32781 @echo libdir='${LIBDIR}'
32782 _ACEOF
32783 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
32784 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
32785 for ac_var in incroot usrlibdir libdir; do
32786 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32787 done
32788 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32789 for ac_extension in a so sl dylib la dll; do
32790 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32791 test -f "$ac_im_libdir/libX11.$ac_extension"; then
32792 ac_im_usrlibdir=$ac_im_libdir; break
32794 done
32795 # Screen out bogus values from the imake configuration. They are
32796 # bogus both because they are the default anyway, and because
32797 # using them would break gcc on systems where it needs fixed includes.
32798 case $ac_im_incroot in
32799 /usr/include) ac_x_includes= ;;
32800 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32801 esac
32802 case $ac_im_usrlibdir in
32803 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
32804 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32805 esac
32807 cd ..
32808 rm -f -r conftest.dir
32811 # Standard set of common directories for X headers.
32812 # Check X11 before X11Rn because it is often a symlink to the current release.
32813 ac_x_header_dirs='
32814 /usr/X11/include
32815 /usr/X11R7/include
32816 /usr/X11R6/include
32817 /usr/X11R5/include
32818 /usr/X11R4/include
32820 /usr/include/X11
32821 /usr/include/X11R7
32822 /usr/include/X11R6
32823 /usr/include/X11R5
32824 /usr/include/X11R4
32826 /usr/local/X11/include
32827 /usr/local/X11R7/include
32828 /usr/local/X11R6/include
32829 /usr/local/X11R5/include
32830 /usr/local/X11R4/include
32832 /usr/local/include/X11
32833 /usr/local/include/X11R7
32834 /usr/local/include/X11R6
32835 /usr/local/include/X11R5
32836 /usr/local/include/X11R4
32838 /usr/X386/include
32839 /usr/x386/include
32840 /usr/XFree86/include/X11
32842 /usr/include
32843 /usr/local/include
32844 /usr/unsupported/include
32845 /usr/athena/include
32846 /usr/local/x11r5/include
32847 /usr/lpp/Xamples/include
32849 /usr/openwin/include
32850 /usr/openwin/share/include'
32852 if test "$ac_x_includes" = no; then
32853 # Guess where to find include files, by looking for Xlib.h.
32854 # First, try using that file with no special directory specified.
32855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32856 /* end confdefs.h. */
32857 #include <X11/Xlib.h>
32858 _ACEOF
32859 if ac_fn_c_try_cpp "$LINENO"; then :
32860 # We can compile using X headers with no special include directory.
32861 ac_x_includes=
32862 else
32863 for ac_dir in $ac_x_header_dirs; do
32864 if test -r "$ac_dir/X11/Xlib.h"; then
32865 ac_x_includes=$ac_dir
32866 break
32868 done
32870 rm -f conftest.err conftest.i conftest.$ac_ext
32871 fi # $ac_x_includes = no
32873 if test "$ac_x_libraries" = no; then
32874 # Check for the libraries.
32875 # See if we find them without any special options.
32876 # Don't add to $LIBS permanently.
32877 ac_save_LIBS=$LIBS
32878 LIBS="-lX11 $LIBS"
32879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32880 /* end confdefs.h. */
32881 #include <X11/Xlib.h>
32883 main ()
32885 XrmInitialize ()
32887 return 0;
32889 _ACEOF
32890 if ac_fn_c_try_link "$LINENO"; then :
32891 LIBS=$ac_save_LIBS
32892 # We can link X programs with no special library path.
32893 ac_x_libraries=
32894 else
32895 LIBS=$ac_save_LIBS
32896 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32898 # Don't even attempt the hair of trying to link an X program!
32899 for ac_extension in a so sl dylib la dll; do
32900 if test -r "$ac_dir/libX11.$ac_extension"; then
32901 ac_x_libraries=$ac_dir
32902 break 2
32904 done
32905 done
32907 rm -f core conftest.err conftest.$ac_objext \
32908 conftest$ac_exeext conftest.$ac_ext
32909 fi # $ac_x_libraries = no
32911 case $ac_x_includes,$ac_x_libraries in #(
32912 no,* | *,no | *\'*)
32913 # Didn't find X, or a directory has "'" in its name.
32914 ac_cv_have_x="have_x=no";; #(
32916 # Record where we found X for the cache.
32917 ac_cv_have_x="have_x=yes\
32918 ac_x_includes='$ac_x_includes'\
32919 ac_x_libraries='$ac_x_libraries'"
32920 esac
32922 ;; #(
32923 *) have_x=yes;;
32924 esac
32925 eval "$ac_cv_have_x"
32926 fi # $with_x != no
32928 if test "$have_x" != yes; then
32929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
32930 $as_echo "$have_x" >&6; }
32931 no_x=yes
32932 else
32933 # If each of the values was on the command line, it overrides each guess.
32934 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32935 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32936 # Update the cache value to reflect the command line values.
32937 ac_cv_have_x="have_x=yes\
32938 ac_x_includes='$x_includes'\
32939 ac_x_libraries='$x_libraries'"
32940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
32941 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
32945 # Unlike the sim directory, whether a simulator is linked is controlled by
32946 # presence of a gdb_sim definition in the target configure.tgt entry.
32947 # This code just checks for a few cases where we'd like to ignore those
32948 # definitions, even when they're present in the '.mt' file. These cases
32949 # are when --disable-sim is specified, or if the simulator directory is
32950 # not part of the source tree.
32952 # Check whether --enable-sim was given.
32953 if test "${enable_sim+set}" = set; then :
32954 enableval=$enable_sim; { $as_echo "$as_me:${as_lineno-$LINENO}: enable_sim = $enable_sim" >&5
32955 $as_echo "$as_me: enable_sim = $enable_sim" >&6;};
32956 { $as_echo "$as_me:${as_lineno-$LINENO}: enableval = ${enableval}" >&5
32957 $as_echo "$as_me: enableval = ${enableval}" >&6;};
32958 case "${enableval}" in
32959 yes) ignore_sim=false ;;
32960 no) ignore_sim=true ;;
32961 *) ignore_sim=false ;;
32962 esac
32963 else
32964 ignore_sim=false
32968 if test ! -d "${srcdir}/../sim"; then
32969 ignore_sim=true
32972 SIM=
32973 SIM_OBS=
32974 if test "${ignore_sim}" = "false"; then
32975 if test x"${gdb_sim}" != x ; then
32976 SIM="${gdb_sim}"
32977 SIM_OBS="remote-sim.o"
32979 # Some tdep code should only be compiled in when the ppc sim is
32980 # built. PR sim/13418.
32981 case $target in
32982 powerpc*-*-*)
32984 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
32987 esac
33004 # List of host floatformats.
33006 cat >>confdefs.h <<_ACEOF
33007 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
33008 _ACEOF
33011 cat >>confdefs.h <<_ACEOF
33012 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
33013 _ACEOF
33016 cat >>confdefs.h <<_ACEOF
33017 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
33018 _ACEOF
33021 # target_subdir is used by the testsuite to find the target libraries.
33022 target_subdir=
33023 if test "${host}" != "${target}"; then
33024 target_subdir="${target_alias}/"
33028 # Import nat definitions.
33029 nat_makefile_frag=/dev/null
33030 if test "${gdb_native}" = "yes"; then
33031 . ${srcdir}/configure.nat
33032 nativefile=$NAT_FILE
33045 if test x"${gdb_osabi}" != x ; then
33047 cat >>confdefs.h <<_ACEOF
33048 #define GDB_OSABI_DEFAULT $gdb_osabi
33049 _ACEOF
33053 # Setup possible use of libbacktrace.
33054 # Check whether --enable-libbacktrace was given.
33055 if test "${enable_libbacktrace+set}" = set; then :
33056 enableval=$enable_libbacktrace;
33057 case $enableval in
33058 yes | no)
33061 as_fn_error $? "bad value $enableval for --enable-libbacktrace" "$LINENO" 5
33063 esac
33065 else
33066 enable_libbacktrace=yes
33070 if test "${enable_libbacktrace}" = "yes"; then
33071 LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
33072 LIBBACKTRACE_LIB=../libbacktrace/libbacktrace.la
33074 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
33076 else
33077 LIBBACKTRACE_INC=
33078 LIBBACKTRACE_LIB=
33084 # Check for babeltrace and babeltrace-ctf
33086 # Check whether --with-babeltrace was given.
33087 if test "${with_babeltrace+set}" = set; then :
33088 withval=$with_babeltrace;
33089 else
33090 with_babeltrace=auto
33093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
33094 $as_echo_n "checking whether to use babeltrace... " >&6; }
33095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
33096 $as_echo "$with_babeltrace" >&6; }
33098 if test "x$with_babeltrace" = "xno"; then
33099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace support disabled; GDB is unable to read CTF data." >&5
33100 $as_echo "$as_me: WARNING: babeltrace support disabled; GDB is unable to read CTF data." >&2;}
33101 else
33102 # Append -Werror to CFLAGS so that configure can catch the warning
33103 # "assignment from incompatible pointer type", which is related to
33104 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
33105 # in GDB, while babeltrace 1.0.3 is broken.
33106 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
33107 # safe to save and restore CFLAGS here.
33108 saved_CFLAGS=$CFLAGS
33109 CFLAGS="$CFLAGS -Werror"
33118 use_additional=yes
33120 acl_save_prefix="$prefix"
33121 prefix="$acl_final_prefix"
33122 acl_save_exec_prefix="$exec_prefix"
33123 exec_prefix="$acl_final_exec_prefix"
33125 eval additional_includedir=\"$includedir\"
33126 eval additional_libdir=\"$libdir\"
33128 exec_prefix="$acl_save_exec_prefix"
33129 prefix="$acl_save_prefix"
33132 # Check whether --with-libbabeltrace-prefix was given.
33133 if test "${with_libbabeltrace_prefix+set}" = set; then :
33134 withval=$with_libbabeltrace_prefix;
33135 if test "X$withval" = "Xno"; then
33136 use_additional=no
33137 else
33138 if test "X$withval" = "X"; then
33140 acl_save_prefix="$prefix"
33141 prefix="$acl_final_prefix"
33142 acl_save_exec_prefix="$exec_prefix"
33143 exec_prefix="$acl_final_exec_prefix"
33145 eval additional_includedir=\"$includedir\"
33146 eval additional_libdir=\"$libdir\"
33148 exec_prefix="$acl_save_exec_prefix"
33149 prefix="$acl_save_prefix"
33151 else
33152 additional_includedir="$withval/include"
33153 additional_libdir="$withval/lib"
33160 # Check whether --with-libbabeltrace-type was given.
33161 if test "${with_libbabeltrace_type+set}" = set; then :
33162 withval=$with_libbabeltrace_type; with_libbabeltrace_type=$withval
33163 else
33164 with_libbabeltrace_type=auto
33167 lib_type=`eval echo \$with_libbabeltrace_type`
33169 LIBBABELTRACE=
33170 LTLIBBABELTRACE=
33171 INCBABELTRACE=
33172 rpathdirs=
33173 ltrpathdirs=
33174 names_already_handled=
33175 names_next_round='babeltrace babeltrace-ctf'
33176 while test -n "$names_next_round"; do
33177 names_this_round="$names_next_round"
33178 names_next_round=
33179 for name in $names_this_round; do
33180 already_handled=
33181 for n in $names_already_handled; do
33182 if test "$n" = "$name"; then
33183 already_handled=yes
33184 break
33186 done
33187 if test -z "$already_handled"; then
33188 names_already_handled="$names_already_handled $name"
33189 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
33190 eval value=\"\$HAVE_LIB$uppername\"
33191 if test -n "$value"; then
33192 if test "$value" = yes; then
33193 eval value=\"\$LIB$uppername\"
33194 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
33195 eval value=\"\$LTLIB$uppername\"
33196 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
33197 else
33200 else
33201 found_dir=
33202 found_la=
33203 found_so=
33204 found_a=
33205 if test $use_additional = yes; then
33206 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
33207 found_dir="$additional_libdir"
33208 found_so="$additional_libdir/lib$name.$shlibext"
33209 if test -f "$additional_libdir/lib$name.la"; then
33210 found_la="$additional_libdir/lib$name.la"
33212 elif test x$lib_type != xshared; then
33213 if test -f "$additional_libdir/lib$name.$libext"; then
33214 found_dir="$additional_libdir"
33215 found_a="$additional_libdir/lib$name.$libext"
33216 if test -f "$additional_libdir/lib$name.la"; then
33217 found_la="$additional_libdir/lib$name.la"
33222 if test "X$found_dir" = "X"; then
33223 for x in $LDFLAGS $LTLIBBABELTRACE; do
33225 acl_save_prefix="$prefix"
33226 prefix="$acl_final_prefix"
33227 acl_save_exec_prefix="$exec_prefix"
33228 exec_prefix="$acl_final_exec_prefix"
33229 eval x=\"$x\"
33230 exec_prefix="$acl_save_exec_prefix"
33231 prefix="$acl_save_prefix"
33233 case "$x" in
33234 -L*)
33235 dir=`echo "X$x" | sed -e 's/^X-L//'`
33236 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
33237 found_dir="$dir"
33238 found_so="$dir/lib$name.$shlibext"
33239 if test -f "$dir/lib$name.la"; then
33240 found_la="$dir/lib$name.la"
33242 elif test x$lib_type != xshared; then
33243 if test -f "$dir/lib$name.$libext"; then
33244 found_dir="$dir"
33245 found_a="$dir/lib$name.$libext"
33246 if test -f "$dir/lib$name.la"; then
33247 found_la="$dir/lib$name.la"
33252 esac
33253 if test "X$found_dir" != "X"; then
33254 break
33256 done
33258 if test "X$found_dir" != "X"; then
33259 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
33260 if test "X$found_so" != "X"; then
33261 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
33262 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33263 else
33264 haveit=
33265 for x in $ltrpathdirs; do
33266 if test "X$x" = "X$found_dir"; then
33267 haveit=yes
33268 break
33270 done
33271 if test -z "$haveit"; then
33272 ltrpathdirs="$ltrpathdirs $found_dir"
33274 if test "$hardcode_direct" = yes; then
33275 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33276 else
33277 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
33278 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33279 haveit=
33280 for x in $rpathdirs; do
33281 if test "X$x" = "X$found_dir"; then
33282 haveit=yes
33283 break
33285 done
33286 if test -z "$haveit"; then
33287 rpathdirs="$rpathdirs $found_dir"
33289 else
33290 haveit=
33291 for x in $LDFLAGS $LIBBABELTRACE; do
33293 acl_save_prefix="$prefix"
33294 prefix="$acl_final_prefix"
33295 acl_save_exec_prefix="$exec_prefix"
33296 exec_prefix="$acl_final_exec_prefix"
33297 eval x=\"$x\"
33298 exec_prefix="$acl_save_exec_prefix"
33299 prefix="$acl_save_prefix"
33301 if test "X$x" = "X-L$found_dir"; then
33302 haveit=yes
33303 break
33305 done
33306 if test -z "$haveit"; then
33307 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
33309 if test "$hardcode_minus_L" != no; then
33310 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33311 else
33312 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
33317 else
33318 if test "X$found_a" != "X"; then
33319 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
33320 else
33321 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
33324 additional_includedir=
33325 case "$found_dir" in
33326 */lib | */lib/)
33327 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
33328 additional_includedir="$basedir/include"
33330 esac
33331 if test "X$additional_includedir" != "X"; then
33332 if test "X$additional_includedir" != "X/usr/include"; then
33333 haveit=
33334 if test "X$additional_includedir" = "X/usr/local/include"; then
33335 if test -n "$GCC"; then
33336 case $host_os in
33337 linux*) haveit=yes;;
33338 esac
33341 if test -z "$haveit"; then
33342 for x in $CPPFLAGS $INCBABELTRACE; do
33344 acl_save_prefix="$prefix"
33345 prefix="$acl_final_prefix"
33346 acl_save_exec_prefix="$exec_prefix"
33347 exec_prefix="$acl_final_exec_prefix"
33348 eval x=\"$x\"
33349 exec_prefix="$acl_save_exec_prefix"
33350 prefix="$acl_save_prefix"
33352 if test "X$x" = "X-I$additional_includedir"; then
33353 haveit=yes
33354 break
33356 done
33357 if test -z "$haveit"; then
33358 if test -d "$additional_includedir"; then
33359 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
33365 if test -n "$found_la"; then
33366 save_libdir="$libdir"
33367 case "$found_la" in
33368 */* | *\\*) . "$found_la" ;;
33369 *) . "./$found_la" ;;
33370 esac
33371 libdir="$save_libdir"
33372 for dep in $dependency_libs; do
33373 case "$dep" in
33374 -L*)
33375 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
33376 if test "X$additional_libdir" != "X/usr/lib"; then
33377 haveit=
33378 if test "X$additional_libdir" = "X/usr/local/lib"; then
33379 if test -n "$GCC"; then
33380 case $host_os in
33381 linux*) haveit=yes;;
33382 esac
33385 if test -z "$haveit"; then
33386 haveit=
33387 for x in $LDFLAGS $LIBBABELTRACE; do
33389 acl_save_prefix="$prefix"
33390 prefix="$acl_final_prefix"
33391 acl_save_exec_prefix="$exec_prefix"
33392 exec_prefix="$acl_final_exec_prefix"
33393 eval x=\"$x\"
33394 exec_prefix="$acl_save_exec_prefix"
33395 prefix="$acl_save_prefix"
33397 if test "X$x" = "X-L$additional_libdir"; then
33398 haveit=yes
33399 break
33401 done
33402 if test -z "$haveit"; then
33403 if test -d "$additional_libdir"; then
33404 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
33407 haveit=
33408 for x in $LDFLAGS $LTLIBBABELTRACE; do
33410 acl_save_prefix="$prefix"
33411 prefix="$acl_final_prefix"
33412 acl_save_exec_prefix="$exec_prefix"
33413 exec_prefix="$acl_final_exec_prefix"
33414 eval x=\"$x\"
33415 exec_prefix="$acl_save_exec_prefix"
33416 prefix="$acl_save_prefix"
33418 if test "X$x" = "X-L$additional_libdir"; then
33419 haveit=yes
33420 break
33422 done
33423 if test -z "$haveit"; then
33424 if test -d "$additional_libdir"; then
33425 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
33431 -R*)
33432 dir=`echo "X$dep" | sed -e 's/^X-R//'`
33433 if test "$enable_rpath" != no; then
33434 haveit=
33435 for x in $rpathdirs; do
33436 if test "X$x" = "X$dir"; then
33437 haveit=yes
33438 break
33440 done
33441 if test -z "$haveit"; then
33442 rpathdirs="$rpathdirs $dir"
33444 haveit=
33445 for x in $ltrpathdirs; do
33446 if test "X$x" = "X$dir"; then
33447 haveit=yes
33448 break
33450 done
33451 if test -z "$haveit"; then
33452 ltrpathdirs="$ltrpathdirs $dir"
33456 -l*)
33457 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
33459 *.la)
33460 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
33463 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
33464 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
33466 esac
33467 done
33469 else
33470 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
33471 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
33472 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
33473 else
33474 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
33475 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
33480 done
33481 done
33482 if test "X$rpathdirs" != "X"; then
33483 if test -n "$hardcode_libdir_separator"; then
33484 alldirs=
33485 for found_dir in $rpathdirs; do
33486 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
33487 done
33488 acl_save_libdir="$libdir"
33489 libdir="$alldirs"
33490 eval flag=\"$hardcode_libdir_flag_spec\"
33491 libdir="$acl_save_libdir"
33492 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
33493 else
33494 for found_dir in $rpathdirs; do
33495 acl_save_libdir="$libdir"
33496 libdir="$found_dir"
33497 eval flag=\"$hardcode_libdir_flag_spec\"
33498 libdir="$acl_save_libdir"
33499 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
33500 done
33503 if test "X$ltrpathdirs" != "X"; then
33504 for found_dir in $ltrpathdirs; do
33505 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
33506 done
33510 ac_save_CPPFLAGS="$CPPFLAGS"
33512 for element in $INCBABELTRACE; do
33513 haveit=
33514 for x in $CPPFLAGS; do
33516 acl_save_prefix="$prefix"
33517 prefix="$acl_final_prefix"
33518 acl_save_exec_prefix="$exec_prefix"
33519 exec_prefix="$acl_final_exec_prefix"
33520 eval x=\"$x\"
33521 exec_prefix="$acl_save_exec_prefix"
33522 prefix="$acl_save_prefix"
33524 if test "X$x" = "X$element"; then
33525 haveit=yes
33526 break
33528 done
33529 if test -z "$haveit"; then
33530 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
33532 done
33535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
33536 $as_echo_n "checking for libbabeltrace... " >&6; }
33537 if ${ac_cv_libbabeltrace+:} false; then :
33538 $as_echo_n "(cached) " >&6
33539 else
33541 ac_save_LIBS="$LIBS"
33542 LIBS="$LIBS $LIBBABELTRACE"
33543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33544 /* end confdefs.h. */
33545 #include <babeltrace/babeltrace.h>
33546 #include <babeltrace/ctf/events.h>
33547 #include <babeltrace/ctf/iterator.h>
33549 main ()
33551 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
33552 struct bt_ctf_event *event = NULL;
33553 const struct bt_definition *scope;
33555 pos->type = BT_SEEK_BEGIN;
33556 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
33557 scope = bt_ctf_get_top_level_scope (event,
33558 BT_STREAM_EVENT_HEADER);
33559 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
33562 return 0;
33564 _ACEOF
33565 if ac_fn_c_try_link "$LINENO"; then :
33566 ac_cv_libbabeltrace=yes
33567 else
33568 ac_cv_libbabeltrace=no
33570 rm -f core conftest.err conftest.$ac_objext \
33571 conftest$ac_exeext conftest.$ac_ext
33572 LIBS="$ac_save_LIBS"
33575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
33576 $as_echo "$ac_cv_libbabeltrace" >&6; }
33577 if test "$ac_cv_libbabeltrace" = yes; then
33578 HAVE_LIBBABELTRACE=yes
33580 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
33582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
33583 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
33584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
33585 $as_echo "$LIBBABELTRACE" >&6; }
33586 else
33587 HAVE_LIBBABELTRACE=no
33588 CPPFLAGS="$ac_save_CPPFLAGS"
33589 LIBBABELTRACE=
33590 LTLIBBABELTRACE=
33598 CFLAGS=$saved_CFLAGS
33600 if test "$HAVE_LIBBABELTRACE" != yes; then
33601 if test "$with_babeltrace" = yes; then
33602 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
33603 else
33604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
33605 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
33610 # Check whether --enable-libctf was given.
33611 if test "${enable_libctf+set}" = set; then :
33612 enableval=$enable_libctf;
33613 case "$enableval" in
33614 yes|no) ;;
33615 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
33616 esac
33618 else
33619 enable_libctf=yes
33623 if test "${enable_libctf}" = yes; then
33625 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
33627 LIBCTF="../libctf/libctf.la"
33628 CTF_DEPS="../libctf/libctf.la"
33629 else
33630 LIBCTF=
33631 CTF_DEPS=
33636 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
33637 # empty version.
33639 NM_H=
33640 rm -f nm.h
33641 if test "${nativefile}" != ""; then
33642 case "${nativefile}" in
33643 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
33644 * ) GDB_NM_FILE="${nativefile}"
33645 esac
33646 ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE"
33649 cat >>confdefs.h <<_ACEOF
33650 #define GDB_NM_FILE "${GDB_NM_FILE}"
33651 _ACEOF
33653 NM_H=nm.h
33658 for ac_prog in xsltproc
33660 # Extract the first word of "$ac_prog", so it can be a program name with args.
33661 set dummy $ac_prog; ac_word=$2
33662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33663 $as_echo_n "checking for $ac_word... " >&6; }
33664 if ${ac_cv_path_XSLTPROC+:} false; then :
33665 $as_echo_n "(cached) " >&6
33666 else
33667 case $XSLTPROC in
33668 [\\/]* | ?:[\\/]*)
33669 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
33672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33673 for as_dir in $PATH
33675 IFS=$as_save_IFS
33676 test -z "$as_dir" && as_dir=.
33677 for ac_exec_ext in '' $ac_executable_extensions; do
33678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33679 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
33680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33681 break 2
33683 done
33684 done
33685 IFS=$as_save_IFS
33688 esac
33690 XSLTPROC=$ac_cv_path_XSLTPROC
33691 if test -n "$XSLTPROC"; then
33692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
33693 $as_echo "$XSLTPROC" >&6; }
33694 else
33695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33696 $as_echo "no" >&6; }
33700 test -n "$XSLTPROC" && break
33701 done
33702 test -n "$XSLTPROC" || XSLTPROC="missing"
33704 if test "x$USE_MAINTAINER_MODE" = xyes; then
33705 if test "${XSLTPROC}" = missing; then
33706 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
33714 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
33718 # Check whether we will enable the inclusion of unit tests when
33719 # compiling GDB.
33721 # The default value of this option changes depending whether we're on
33722 # development mode (in which case it's "true") or not (in which case
33723 # it's "false"). The $development variable is set by the GDB_AC_COMMON
33724 # macro, which must therefore be used before GDB_AC_SELFTEST.
33726 if test "x$development" != xtrue && test "x$development" != xfalse; then :
33727 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
33730 # Check whether --enable-unit-tests was given.
33731 if test "${enable_unit_tests+set}" = set; then :
33732 enableval=$enable_unit_tests; case "${enableval}" in
33733 yes) enable_unittests=true ;;
33734 no) enable_unittests=false ;;
33735 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
33736 esac
33737 else
33738 enable_unittests=$development
33742 if $enable_unittests; then
33744 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
33747 CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
33748 CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
33754 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
33755 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
33756 if test "x$GDB_TRANSFORM_NAME" = x; then
33757 GDB_TRANSFORM_NAME=gdb
33762 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
33763 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
33764 if test "x$GCORE_TRANSFORM_NAME" = x; then
33765 GCORE_TRANSFORM_NAME=gcore
33769 ac_config_files="$ac_config_files gcore"
33771 ac_config_files="$ac_config_files gstack.in:gstack-1.in"
33773 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
33776 cat >confcache <<\_ACEOF
33777 # This file is a shell script that caches the results of configure
33778 # tests run on this system so they can be shared between configure
33779 # scripts and configure runs, see configure's option --config-cache.
33780 # It is not useful on other systems. If it contains results you don't
33781 # want to keep, you may remove or edit it.
33783 # config.status only pays attention to the cache file if you give it
33784 # the --recheck option to rerun configure.
33786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33788 # following values.
33790 _ACEOF
33792 # The following way of writing the cache mishandles newlines in values,
33793 # but we know of no workaround that is simple, portable, and efficient.
33794 # So, we kill variables containing newlines.
33795 # Ultrix sh set writes to stderr and can't be redirected directly,
33796 # and sets the high bit in the cache file unless we assign to the vars.
33798 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33799 eval ac_val=\$$ac_var
33800 case $ac_val in #(
33801 *${as_nl}*)
33802 case $ac_var in #(
33803 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33804 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33805 esac
33806 case $ac_var in #(
33807 _ | IFS | as_nl) ;; #(
33808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33809 *) { eval $ac_var=; unset $ac_var;} ;;
33810 esac ;;
33811 esac
33812 done
33814 (set) 2>&1 |
33815 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33816 *${as_nl}ac_space=\ *)
33817 # `set' does not quote correctly, so add quotes: double-quote
33818 # substitution turns \\\\ into \\, and sed turns \\ into \.
33819 sed -n \
33820 "s/'/'\\\\''/g;
33821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33822 ;; #(
33824 # `set' quotes correctly as required by POSIX, so do not add quotes.
33825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33827 esac |
33828 sort
33830 sed '
33831 /^ac_cv_env_/b end
33832 t clear
33833 :clear
33834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33835 t end
33836 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33837 :end' >>confcache
33838 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33839 if test -w "$cache_file"; then
33840 if test "x$cache_file" != "x/dev/null"; then
33841 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33842 $as_echo "$as_me: updating cache $cache_file" >&6;}
33843 if test ! -f "$cache_file" || test -h "$cache_file"; then
33844 cat confcache >"$cache_file"
33845 else
33846 case $cache_file in #(
33847 */* | ?:*)
33848 mv -f confcache "$cache_file"$$ &&
33849 mv -f "$cache_file"$$ "$cache_file" ;; #(
33851 mv -f confcache "$cache_file" ;;
33852 esac
33855 else
33856 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33857 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33860 rm -f confcache
33862 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33863 # Let make expand exec_prefix.
33864 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33866 DEFS=-DHAVE_CONFIG_H
33868 ac_libobjs=
33869 ac_ltlibobjs=
33871 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33872 # 1. Remove the extension, and $U if already installed.
33873 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33874 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33875 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33876 # will be set to the directory where LIBOBJS objects are built.
33877 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33878 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33879 done
33880 LIBOBJS=$ac_libobjs
33882 LTLIBOBJS=$ac_ltlibobjs
33885 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33886 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
33887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33889 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
33890 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
33891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33893 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
33894 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
33895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33897 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
33898 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
33899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33903 : "${CONFIG_STATUS=./config.status}"
33904 ac_write_fail=0
33905 ac_clean_files_save=$ac_clean_files
33906 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33907 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33908 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33909 as_write_fail=0
33910 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33911 #! $SHELL
33912 # Generated by $as_me.
33913 # Run this file to recreate the current configuration.
33914 # Compiler output produced by configure, useful for debugging
33915 # configure, is in config.log if it exists.
33917 debug=false
33918 ac_cs_recheck=false
33919 ac_cs_silent=false
33921 SHELL=\${CONFIG_SHELL-$SHELL}
33922 export SHELL
33923 _ASEOF
33924 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33925 ## -------------------- ##
33926 ## M4sh Initialization. ##
33927 ## -------------------- ##
33929 # Be more Bourne compatible
33930 DUALCASE=1; export DUALCASE # for MKS sh
33931 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33932 emulate sh
33933 NULLCMD=:
33934 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33935 # is contrary to our usage. Disable this feature.
33936 alias -g '${1+"$@"}'='"$@"'
33937 setopt NO_GLOB_SUBST
33938 else
33939 case `(set -o) 2>/dev/null` in #(
33940 *posix*) :
33941 set -o posix ;; #(
33942 *) :
33944 esac
33948 as_nl='
33950 export as_nl
33951 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33952 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33953 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33954 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33955 # Prefer a ksh shell builtin over an external printf program on Solaris,
33956 # but without wasting forks for bash or zsh.
33957 if test -z "$BASH_VERSION$ZSH_VERSION" \
33958 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33959 as_echo='print -r --'
33960 as_echo_n='print -rn --'
33961 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33962 as_echo='printf %s\n'
33963 as_echo_n='printf %s'
33964 else
33965 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33966 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33967 as_echo_n='/usr/ucb/echo -n'
33968 else
33969 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33970 as_echo_n_body='eval
33971 arg=$1;
33972 case $arg in #(
33973 *"$as_nl"*)
33974 expr "X$arg" : "X\\(.*\\)$as_nl";
33975 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33976 esac;
33977 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33979 export as_echo_n_body
33980 as_echo_n='sh -c $as_echo_n_body as_echo'
33982 export as_echo_body
33983 as_echo='sh -c $as_echo_body as_echo'
33986 # The user is always right.
33987 if test "${PATH_SEPARATOR+set}" != set; then
33988 PATH_SEPARATOR=:
33989 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33990 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33991 PATH_SEPARATOR=';'
33996 # IFS
33997 # We need space, tab and new line, in precisely that order. Quoting is
33998 # there to prevent editors from complaining about space-tab.
33999 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34000 # splitting by setting IFS to empty value.)
34001 IFS=" "" $as_nl"
34003 # Find who we are. Look in the path if we contain no directory separator.
34004 as_myself=
34005 case $0 in #((
34006 *[\\/]* ) as_myself=$0 ;;
34007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34008 for as_dir in $PATH
34010 IFS=$as_save_IFS
34011 test -z "$as_dir" && as_dir=.
34012 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34013 done
34014 IFS=$as_save_IFS
34017 esac
34018 # We did not find ourselves, most probably we were run as `sh COMMAND'
34019 # in which case we are not to be found in the path.
34020 if test "x$as_myself" = x; then
34021 as_myself=$0
34023 if test ! -f "$as_myself"; then
34024 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34025 exit 1
34028 # Unset variables that we do not need and which cause bugs (e.g. in
34029 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
34030 # suppresses any "Segmentation fault" message there. '((' could
34031 # trigger a bug in pdksh 5.2.14.
34032 for as_var in BASH_ENV ENV MAIL MAILPATH
34033 do eval test x\${$as_var+set} = xset \
34034 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
34035 done
34036 PS1='$ '
34037 PS2='> '
34038 PS4='+ '
34040 # NLS nuisances.
34041 LC_ALL=C
34042 export LC_ALL
34043 LANGUAGE=C
34044 export LANGUAGE
34046 # CDPATH.
34047 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34050 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34051 # ----------------------------------------
34052 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34053 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34054 # script with STATUS, using 1 if that was 0.
34055 as_fn_error ()
34057 as_status=$1; test $as_status -eq 0 && as_status=1
34058 if test "$4"; then
34059 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34060 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34062 $as_echo "$as_me: error: $2" >&2
34063 as_fn_exit $as_status
34064 } # as_fn_error
34067 # as_fn_set_status STATUS
34068 # -----------------------
34069 # Set $? to STATUS, without forking.
34070 as_fn_set_status ()
34072 return $1
34073 } # as_fn_set_status
34075 # as_fn_exit STATUS
34076 # -----------------
34077 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34078 as_fn_exit ()
34080 set +e
34081 as_fn_set_status $1
34082 exit $1
34083 } # as_fn_exit
34085 # as_fn_unset VAR
34086 # ---------------
34087 # Portably unset VAR.
34088 as_fn_unset ()
34090 { eval $1=; unset $1;}
34092 as_unset=as_fn_unset
34093 # as_fn_append VAR VALUE
34094 # ----------------------
34095 # Append the text in VALUE to the end of the definition contained in VAR. Take
34096 # advantage of any shell optimizations that allow amortized linear growth over
34097 # repeated appends, instead of the typical quadratic growth present in naive
34098 # implementations.
34099 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34100 eval 'as_fn_append ()
34102 eval $1+=\$2
34104 else
34105 as_fn_append ()
34107 eval $1=\$$1\$2
34109 fi # as_fn_append
34111 # as_fn_arith ARG...
34112 # ------------------
34113 # Perform arithmetic evaluation on the ARGs, and store the result in the
34114 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34115 # must be portable across $(()) and expr.
34116 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34117 eval 'as_fn_arith ()
34119 as_val=$(( $* ))
34121 else
34122 as_fn_arith ()
34124 as_val=`expr "$@" || test $? -eq 1`
34126 fi # as_fn_arith
34129 if expr a : '\(a\)' >/dev/null 2>&1 &&
34130 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34131 as_expr=expr
34132 else
34133 as_expr=false
34136 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34137 as_basename=basename
34138 else
34139 as_basename=false
34142 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34143 as_dirname=dirname
34144 else
34145 as_dirname=false
34148 as_me=`$as_basename -- "$0" ||
34149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34150 X"$0" : 'X\(//\)$' \| \
34151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34152 $as_echo X/"$0" |
34153 sed '/^.*\/\([^/][^/]*\)\/*$/{
34154 s//\1/
34157 /^X\/\(\/\/\)$/{
34158 s//\1/
34161 /^X\/\(\/\).*/{
34162 s//\1/
34165 s/.*/./; q'`
34167 # Avoid depending upon Character Ranges.
34168 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34169 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34170 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34171 as_cr_digits='0123456789'
34172 as_cr_alnum=$as_cr_Letters$as_cr_digits
34174 ECHO_C= ECHO_N= ECHO_T=
34175 case `echo -n x` in #(((((
34176 -n*)
34177 case `echo 'xy\c'` in
34178 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34179 xy) ECHO_C='\c';;
34180 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34181 ECHO_T=' ';;
34182 esac;;
34184 ECHO_N='-n';;
34185 esac
34187 rm -f conf$$ conf$$.exe conf$$.file
34188 if test -d conf$$.dir; then
34189 rm -f conf$$.dir/conf$$.file
34190 else
34191 rm -f conf$$.dir
34192 mkdir conf$$.dir 2>/dev/null
34194 if (echo >conf$$.file) 2>/dev/null; then
34195 if ln -s conf$$.file conf$$ 2>/dev/null; then
34196 as_ln_s='ln -s'
34197 # ... but there are two gotchas:
34198 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34199 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34200 # In both cases, we have to default to `cp -pR'.
34201 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34202 as_ln_s='cp -pR'
34203 elif ln conf$$.file conf$$ 2>/dev/null; then
34204 as_ln_s=ln
34205 else
34206 as_ln_s='cp -pR'
34208 else
34209 as_ln_s='cp -pR'
34211 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34212 rmdir conf$$.dir 2>/dev/null
34215 # as_fn_mkdir_p
34216 # -------------
34217 # Create "$as_dir" as a directory, including parents if necessary.
34218 as_fn_mkdir_p ()
34221 case $as_dir in #(
34222 -*) as_dir=./$as_dir;;
34223 esac
34224 test -d "$as_dir" || eval $as_mkdir_p || {
34225 as_dirs=
34226 while :; do
34227 case $as_dir in #(
34228 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34229 *) as_qdir=$as_dir;;
34230 esac
34231 as_dirs="'$as_qdir' $as_dirs"
34232 as_dir=`$as_dirname -- "$as_dir" ||
34233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34234 X"$as_dir" : 'X\(//\)[^/]' \| \
34235 X"$as_dir" : 'X\(//\)$' \| \
34236 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34237 $as_echo X"$as_dir" |
34238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34239 s//\1/
34242 /^X\(\/\/\)[^/].*/{
34243 s//\1/
34246 /^X\(\/\/\)$/{
34247 s//\1/
34250 /^X\(\/\).*/{
34251 s//\1/
34254 s/.*/./; q'`
34255 test -d "$as_dir" && break
34256 done
34257 test -z "$as_dirs" || eval "mkdir $as_dirs"
34258 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34261 } # as_fn_mkdir_p
34262 if mkdir -p . 2>/dev/null; then
34263 as_mkdir_p='mkdir -p "$as_dir"'
34264 else
34265 test -d ./-p && rmdir ./-p
34266 as_mkdir_p=false
34270 # as_fn_executable_p FILE
34271 # -----------------------
34272 # Test if FILE is an executable regular file.
34273 as_fn_executable_p ()
34275 test -f "$1" && test -x "$1"
34276 } # as_fn_executable_p
34277 as_test_x='test -x'
34278 as_executable_p=as_fn_executable_p
34280 # Sed expression to map a string onto a valid CPP name.
34281 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34283 # Sed expression to map a string onto a valid variable name.
34284 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34287 exec 6>&1
34288 ## ----------------------------------- ##
34289 ## Main body of $CONFIG_STATUS script. ##
34290 ## ----------------------------------- ##
34291 _ASEOF
34292 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34295 # Save the log message, to keep $0 and so on meaningful, and to
34296 # report actual input values of CONFIG_FILES etc. instead of their
34297 # values after options handling.
34298 ac_log="
34299 This file was extended by $as_me, which was
34300 generated by GNU Autoconf 2.69. Invocation command line was
34302 CONFIG_FILES = $CONFIG_FILES
34303 CONFIG_HEADERS = $CONFIG_HEADERS
34304 CONFIG_LINKS = $CONFIG_LINKS
34305 CONFIG_COMMANDS = $CONFIG_COMMANDS
34306 $ $0 $@
34308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34311 _ACEOF
34313 case $ac_config_files in *"
34314 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34315 esac
34317 case $ac_config_headers in *"
34318 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34319 esac
34322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34323 # Files that config.status was made for.
34324 config_files="$ac_config_files"
34325 config_headers="$ac_config_headers"
34326 config_links="$ac_config_links"
34327 config_commands="$ac_config_commands"
34329 _ACEOF
34331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34332 ac_cs_usage="\
34333 \`$as_me' instantiates files and other configuration actions
34334 from templates according to the current configuration. Unless the files
34335 and actions are specified as TAGs, all are instantiated by default.
34337 Usage: $0 [OPTION]... [TAG]...
34339 -h, --help print this help, then exit
34340 -V, --version print version number and configuration settings, then exit
34341 --config print configuration, then exit
34342 -q, --quiet, --silent
34343 do not print progress messages
34344 -d, --debug don't remove temporary files
34345 --recheck update $as_me by reconfiguring in the same conditions
34346 --file=FILE[:TEMPLATE]
34347 instantiate the configuration file FILE
34348 --header=FILE[:TEMPLATE]
34349 instantiate the configuration header FILE
34351 Configuration files:
34352 $config_files
34354 Configuration headers:
34355 $config_headers
34357 Configuration links:
34358 $config_links
34360 Configuration commands:
34361 $config_commands
34363 Report bugs to the package provider."
34365 _ACEOF
34366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34367 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34368 ac_cs_version="\\
34369 config.status
34370 configured by $0, generated by GNU Autoconf 2.69,
34371 with options \\"\$ac_cs_config\\"
34373 Copyright (C) 2012 Free Software Foundation, Inc.
34374 This config.status script is free software; the Free Software Foundation
34375 gives unlimited permission to copy, distribute and modify it."
34377 ac_pwd='$ac_pwd'
34378 srcdir='$srcdir'
34379 INSTALL='$INSTALL'
34380 AWK='$AWK'
34381 test -n "\$AWK" || AWK=awk
34382 _ACEOF
34384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34385 # The default lists apply if the user does not specify any file.
34386 ac_need_defaults=:
34387 while test $# != 0
34389 case $1 in
34390 --*=?*)
34391 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34392 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34393 ac_shift=:
34395 --*=)
34396 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34397 ac_optarg=
34398 ac_shift=:
34401 ac_option=$1
34402 ac_optarg=$2
34403 ac_shift=shift
34405 esac
34407 case $ac_option in
34408 # Handling of the options.
34409 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34410 ac_cs_recheck=: ;;
34411 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34412 $as_echo "$ac_cs_version"; exit ;;
34413 --config | --confi | --conf | --con | --co | --c )
34414 $as_echo "$ac_cs_config"; exit ;;
34415 --debug | --debu | --deb | --de | --d | -d )
34416 debug=: ;;
34417 --file | --fil | --fi | --f )
34418 $ac_shift
34419 case $ac_optarg in
34420 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34421 '') as_fn_error $? "missing file argument" ;;
34422 esac
34423 as_fn_append CONFIG_FILES " '$ac_optarg'"
34424 ac_need_defaults=false;;
34425 --header | --heade | --head | --hea )
34426 $ac_shift
34427 case $ac_optarg in
34428 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34429 esac
34430 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34431 ac_need_defaults=false;;
34432 --he | --h)
34433 # Conflict between --help and --header
34434 as_fn_error $? "ambiguous option: \`$1'
34435 Try \`$0 --help' for more information.";;
34436 --help | --hel | -h )
34437 $as_echo "$ac_cs_usage"; exit ;;
34438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34440 ac_cs_silent=: ;;
34442 # This is an error.
34443 -*) as_fn_error $? "unrecognized option: \`$1'
34444 Try \`$0 --help' for more information." ;;
34446 *) as_fn_append ac_config_targets " $1"
34447 ac_need_defaults=false ;;
34449 esac
34450 shift
34451 done
34453 ac_configure_extra_args=
34455 if $ac_cs_silent; then
34456 exec 6>/dev/null
34457 ac_configure_extra_args="$ac_configure_extra_args --silent"
34460 _ACEOF
34461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34462 if \$ac_cs_recheck; then
34463 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34464 shift
34465 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34466 CONFIG_SHELL='$SHELL'
34467 export CONFIG_SHELL
34468 exec "\$@"
34471 _ACEOF
34472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34473 exec 5>>config.log
34475 echo
34476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34477 ## Running $as_me. ##
34478 _ASBOX
34479 $as_echo "$ac_log"
34480 } >&5
34482 _ACEOF
34483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34485 # INIT-COMMANDS
34489 # The HP-UX ksh and POSIX shell print the target directory to stdout
34490 # if CDPATH is set.
34491 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34493 sed_quote_subst='$sed_quote_subst'
34494 double_quote_subst='$double_quote_subst'
34495 delay_variable_subst='$delay_variable_subst'
34496 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34497 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34498 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34499 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34500 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34501 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34502 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34503 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34504 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34505 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34506 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34507 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34508 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34509 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34510 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34511 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34512 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34513 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34514 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34515 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34516 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34517 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34518 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34519 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34520 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34521 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34522 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34523 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34524 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34525 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34526 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34527 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34528 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34529 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34530 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34531 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34532 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34533 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34534 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34535 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34536 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34537 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34538 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34539 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34540 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34541 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34542 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34543 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34544 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
34545 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34546 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34547 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34548 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34549 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34550 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34551 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34552 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34553 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34554 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34555 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34556 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34557 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34558 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34559 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34560 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34561 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34562 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34563 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34564 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34565 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34566 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34567 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34568 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34569 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34570 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34571 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34572 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34573 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34574 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34575 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34576 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34577 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34578 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34579 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34580 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34581 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34582 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34583 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34584 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34585 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
34586 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34587 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34588 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34589 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34590 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34591 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34592 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34593 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34594 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34595 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34596 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34597 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34598 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34599 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34600 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34601 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34602 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34603 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34604 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34605 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34606 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34607 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34608 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34609 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34610 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34611 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34612 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34613 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34614 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34615 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34616 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34617 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34618 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34619 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34620 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34621 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34622 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34623 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34624 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34625 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34626 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34627 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34628 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
34629 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
34630 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
34631 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34632 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34633 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34634 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34635 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34636 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34637 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34638 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34639 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34640 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34641 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34642 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34643 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34644 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34645 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34646 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34647 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34648 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34649 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34650 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34651 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34652 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34653 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34654 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34655 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34656 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
34657 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
34658 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34659 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34660 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34661 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34662 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34663 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34664 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34665 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34666 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34667 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34668 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34669 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34670 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
34672 LTCC='$LTCC'
34673 LTCFLAGS='$LTCFLAGS'
34674 compiler='$compiler_DEFAULT'
34676 # A function that is used when there is no print builtin or printf.
34677 func_fallback_echo ()
34679 eval 'cat <<_LTECHO_EOF
34681 _LTECHO_EOF'
34684 # Quote evaled strings.
34685 for var in SHELL \
34686 ECHO \
34687 SED \
34688 GREP \
34689 EGREP \
34690 FGREP \
34691 LD \
34692 NM \
34693 LN_S \
34694 lt_SP2NL \
34695 lt_NL2SP \
34696 reload_flag \
34697 OBJDUMP \
34698 deplibs_check_method \
34699 file_magic_cmd \
34700 AR \
34701 AR_FLAGS \
34702 STRIP \
34703 RANLIB \
34704 CC \
34705 CFLAGS \
34706 compiler \
34707 lt_cv_sys_global_symbol_pipe \
34708 lt_cv_sys_global_symbol_to_cdecl \
34709 lt_cv_sys_global_symbol_to_c_name_address \
34710 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34711 lt_prog_compiler_no_builtin_flag \
34712 lt_prog_compiler_wl \
34713 lt_prog_compiler_pic \
34714 lt_prog_compiler_static \
34715 lt_cv_prog_compiler_c_o \
34716 need_locks \
34717 DSYMUTIL \
34718 NMEDIT \
34719 LIPO \
34720 OTOOL \
34721 OTOOL64 \
34722 shrext_cmds \
34723 export_dynamic_flag_spec \
34724 whole_archive_flag_spec \
34725 compiler_needs_object \
34726 with_gnu_ld \
34727 allow_undefined_flag \
34728 no_undefined_flag \
34729 hardcode_libdir_flag_spec \
34730 hardcode_libdir_flag_spec_ld \
34731 hardcode_libdir_separator \
34732 fix_srcfile_path \
34733 exclude_expsyms \
34734 include_expsyms \
34735 file_list_spec \
34736 variables_saved_for_relink \
34737 libname_spec \
34738 library_names_spec \
34739 soname_spec \
34740 install_override_mode \
34741 finish_eval \
34742 old_striplib \
34743 striplib \
34744 compiler_lib_search_dirs \
34745 predep_objects \
34746 postdep_objects \
34747 predeps \
34748 postdeps \
34749 compiler_lib_search_path \
34750 LD_CXX \
34751 reload_flag_CXX \
34752 compiler_CXX \
34753 lt_prog_compiler_no_builtin_flag_CXX \
34754 lt_prog_compiler_wl_CXX \
34755 lt_prog_compiler_pic_CXX \
34756 lt_prog_compiler_static_CXX \
34757 lt_cv_prog_compiler_c_o_CXX \
34758 export_dynamic_flag_spec_CXX \
34759 whole_archive_flag_spec_CXX \
34760 compiler_needs_object_CXX \
34761 with_gnu_ld_CXX \
34762 allow_undefined_flag_CXX \
34763 no_undefined_flag_CXX \
34764 hardcode_libdir_flag_spec_CXX \
34765 hardcode_libdir_flag_spec_ld_CXX \
34766 hardcode_libdir_separator_CXX \
34767 fix_srcfile_path_CXX \
34768 exclude_expsyms_CXX \
34769 include_expsyms_CXX \
34770 file_list_spec_CXX \
34771 compiler_lib_search_dirs_CXX \
34772 predep_objects_CXX \
34773 postdep_objects_CXX \
34774 predeps_CXX \
34775 postdeps_CXX \
34776 compiler_lib_search_path_CXX; do
34777 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34778 *[\\\\\\\`\\"\\\$]*)
34779 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34782 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34784 esac
34785 done
34787 # Double-quote double-evaled strings.
34788 for var in reload_cmds \
34789 old_postinstall_cmds \
34790 old_postuninstall_cmds \
34791 old_archive_cmds \
34792 extract_expsyms_cmds \
34793 old_archive_from_new_cmds \
34794 old_archive_from_expsyms_cmds \
34795 archive_cmds \
34796 archive_expsym_cmds \
34797 module_cmds \
34798 module_expsym_cmds \
34799 export_symbols_cmds \
34800 prelink_cmds \
34801 postinstall_cmds \
34802 postuninstall_cmds \
34803 finish_cmds \
34804 sys_lib_search_path_spec \
34805 sys_lib_dlsearch_path_spec \
34806 reload_cmds_CXX \
34807 old_archive_cmds_CXX \
34808 old_archive_from_new_cmds_CXX \
34809 old_archive_from_expsyms_cmds_CXX \
34810 archive_cmds_CXX \
34811 archive_expsym_cmds_CXX \
34812 module_cmds_CXX \
34813 module_expsym_cmds_CXX \
34814 export_symbols_cmds_CXX \
34815 prelink_cmds_CXX; do
34816 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34817 *[\\\\\\\`\\"\\\$]*)
34818 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34821 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34823 esac
34824 done
34826 ac_aux_dir='$ac_aux_dir'
34827 xsi_shell='$xsi_shell'
34828 lt_shell_append='$lt_shell_append'
34830 # See if we are running on zsh, and set the options which allow our
34831 # commands through without removal of \ escapes INIT.
34832 if test -n "\${ZSH_VERSION+set}" ; then
34833 setopt NO_GLOB_SUBST
34837 PACKAGE='$PACKAGE'
34838 VERSION='$VERSION'
34839 TIMESTAMP='$TIMESTAMP'
34840 RM='$RM'
34841 ofile='$ofile'
34845 ac_aux_dir='$ac_aux_dir'
34848 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
34849 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34850 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
34851 # from automake.
34852 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34853 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34854 LINGUAS="${LINGUAS-%UNSET%}"
34856 GDB_NM_FILE=$GDB_NM_FILE
34858 _ACEOF
34860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34862 # Handling of arguments.
34863 for ac_config_target in $ac_config_targets
34865 case $ac_config_target in
34866 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
34867 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34868 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
34869 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34870 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
34871 "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
34872 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
34873 "gstack.in") CONFIG_FILES="$CONFIG_FILES gstack.in:gstack-1.in" ;;
34874 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34875 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
34876 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
34877 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34878 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
34880 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34881 esac
34882 done
34885 # If the user did not use the arguments to specify the items to instantiate,
34886 # then the envvar interface is used. Set only those that are not.
34887 # We use the long form for the default assignment because of an extremely
34888 # bizarre bug on SunOS 4.1.3.
34889 if $ac_need_defaults; then
34890 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34892 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
34893 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34896 # Have a temporary directory for convenience. Make it in the build tree
34897 # simply because there is no reason against having it here, and in addition,
34898 # creating and moving files from /tmp can sometimes cause problems.
34899 # Hook for its removal unless debugging.
34900 # Note that there is a small window in which the directory will not be cleaned:
34901 # after its creation but before its name has been assigned to `$tmp'.
34902 $debug ||
34904 tmp= ac_tmp=
34905 trap 'exit_status=$?
34906 : "${ac_tmp:=$tmp}"
34907 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34909 trap 'as_fn_exit 1' 1 2 13 15
34911 # Create a (secure) tmp directory for tmp files.
34914 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34915 test -d "$tmp"
34916 } ||
34918 tmp=./conf$$-$RANDOM
34919 (umask 077 && mkdir "$tmp")
34920 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34921 ac_tmp=$tmp
34923 # Set up the scripts for CONFIG_FILES section.
34924 # No need to generate them if there are no CONFIG_FILES.
34925 # This happens for instance with `./config.status config.h'.
34926 if test -n "$CONFIG_FILES"; then
34928 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
34929 ac_cs_awk_getline=:
34930 ac_cs_awk_pipe_init=
34931 ac_cs_awk_read_file='
34932 while ((getline aline < (F[key])) > 0)
34933 print(aline)
34934 close(F[key])'
34935 ac_cs_awk_pipe_fini=
34936 else
34937 ac_cs_awk_getline=false
34938 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
34939 ac_cs_awk_read_file='
34940 print "|#_!!_#|"
34941 print "cat " F[key] " &&"
34942 '$ac_cs_awk_pipe_init
34943 # The final `:' finishes the AND list.
34944 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
34946 ac_cr=`echo X | tr X '\015'`
34947 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34948 # But we know of no other shell where ac_cr would be empty at this
34949 # point, so we can use a bashism as a fallback.
34950 if test "x$ac_cr" = x; then
34951 eval ac_cr=\$\'\\r\'
34953 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34954 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34955 ac_cs_awk_cr='\\r'
34956 else
34957 ac_cs_awk_cr=$ac_cr
34960 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34961 _ACEOF
34963 # Create commands to substitute file output variables.
34965 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
34966 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
34967 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
34968 echo "_ACAWK" &&
34969 echo "_ACEOF"
34970 } >conf$$files.sh &&
34971 . ./conf$$files.sh ||
34972 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34973 rm -f conf$$files.sh
34976 echo "cat >conf$$subs.awk <<_ACEOF" &&
34977 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34978 echo "_ACEOF"
34979 } >conf$$subs.sh ||
34980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34981 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34982 ac_delim='%!_!# '
34983 for ac_last_try in false false false false false :; do
34984 . ./conf$$subs.sh ||
34985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34987 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34988 if test $ac_delim_n = $ac_delim_num; then
34989 break
34990 elif $ac_last_try; then
34991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34992 else
34993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34995 done
34996 rm -f conf$$subs.sh
34998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34999 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35000 _ACEOF
35001 sed -n '
35003 s/^/S["/; s/!.*/"]=/
35006 s/^[^!]*!//
35007 :repl
35008 t repl
35009 s/'"$ac_delim"'$//
35010 t delim
35013 s/\(.\{148\}\)..*/\1/
35014 t more1
35015 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35018 b repl
35019 :more1
35020 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35023 s/.\{148\}//
35024 t nl
35025 :delim
35027 s/\(.\{148\}\)..*/\1/
35028 t more2
35029 s/["\\]/\\&/g; s/^/"/; s/$/"/
35032 :more2
35033 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35036 s/.\{148\}//
35037 t delim
35038 ' <conf$$subs.awk | sed '
35039 /^[^""]/{
35041 s/\n//
35043 ' >>$CONFIG_STATUS || ac_write_fail=1
35044 rm -f conf$$subs.awk
35045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35046 _ACAWK
35047 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35048 for (key in S) S_is_set[key] = 1
35049 FS = "\a"
35050 \$ac_cs_awk_pipe_init
35053 line = $ 0
35054 nfields = split(line, field, "@")
35055 substed = 0
35056 len = length(field[1])
35057 for (i = 2; i < nfields; i++) {
35058 key = field[i]
35059 keylen = length(key)
35060 if (S_is_set[key]) {
35061 value = S[key]
35062 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35063 len += length(value) + length(field[++i])
35064 substed = 1
35065 } else
35066 len += 1 + keylen
35068 if (nfields == 3 && !substed) {
35069 key = field[2]
35070 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35071 \$ac_cs_awk_read_file
35072 next
35075 print line
35077 \$ac_cs_awk_pipe_fini
35078 _ACAWK
35079 _ACEOF
35080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35081 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35082 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35083 else
35085 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35086 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35087 _ACEOF
35089 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35090 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35091 # trailing colons and then remove the whole line if VPATH becomes empty
35092 # (actually we leave an empty line to preserve line numbers).
35093 if test "x$srcdir" = x.; then
35094 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35096 s///
35097 s/^/:/
35098 s/[ ]*$/:/
35099 s/:\$(srcdir):/:/g
35100 s/:\${srcdir}:/:/g
35101 s/:@srcdir@:/:/g
35102 s/^:*//
35103 s/:*$//
35105 s/\(=[ ]*\).*/\1/
35107 s/\n//
35108 s/^[^=]*=[ ]*$//
35112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35113 fi # test -n "$CONFIG_FILES"
35115 # Set up the scripts for CONFIG_HEADERS section.
35116 # No need to generate them if there are no CONFIG_HEADERS.
35117 # This happens for instance with `./config.status Makefile'.
35118 if test -n "$CONFIG_HEADERS"; then
35119 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35120 BEGIN {
35121 _ACEOF
35123 # Transform confdefs.h into an awk script `defines.awk', embedded as
35124 # here-document in config.status, that substitutes the proper values into
35125 # config.h.in to produce config.h.
35127 # Create a delimiter string that does not exist in confdefs.h, to ease
35128 # handling of long lines.
35129 ac_delim='%!_!# '
35130 for ac_last_try in false false :; do
35131 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35132 if test -z "$ac_tt"; then
35133 break
35134 elif $ac_last_try; then
35135 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35136 else
35137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35139 done
35141 # For the awk script, D is an array of macro values keyed by name,
35142 # likewise P contains macro parameters if any. Preserve backslash
35143 # newline sequences.
35145 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35146 sed -n '
35147 s/.\{148\}/&'"$ac_delim"'/g
35148 t rset
35149 :rset
35150 s/^[ ]*#[ ]*define[ ][ ]*/ /
35151 t def
35153 :def
35154 s/\\$//
35155 t bsnl
35156 s/["\\]/\\&/g
35157 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35158 D["\1"]=" \3"/p
35159 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35161 :bsnl
35162 s/["\\]/\\&/g
35163 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35164 D["\1"]=" \3\\\\\\n"\\/p
35165 t cont
35166 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35167 t cont
35169 :cont
35171 s/.\{148\}/&'"$ac_delim"'/g
35172 t clear
35173 :clear
35174 s/\\$//
35175 t bsnlc
35176 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35178 :bsnlc
35179 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35180 b cont
35181 ' <confdefs.h | sed '
35182 s/'"$ac_delim"'/"\\\
35183 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35186 for (key in D) D_is_set[key] = 1
35187 FS = "\a"
35189 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35190 line = \$ 0
35191 split(line, arg, " ")
35192 if (arg[1] == "#") {
35193 defundef = arg[2]
35194 mac1 = arg[3]
35195 } else {
35196 defundef = substr(arg[1], 2)
35197 mac1 = arg[2]
35199 split(mac1, mac2, "(") #)
35200 macro = mac2[1]
35201 prefix = substr(line, 1, index(line, defundef) - 1)
35202 if (D_is_set[macro]) {
35203 # Preserve the white space surrounding the "#".
35204 print prefix "define", macro P[macro] D[macro]
35205 next
35206 } else {
35207 # Replace #undef with comments. This is necessary, for example,
35208 # in the case of _POSIX_SOURCE, which is predefined and required
35209 # on some systems where configure will not decide to define it.
35210 if (defundef == "undef") {
35211 print "/*", prefix defundef, macro, "*/"
35212 next
35216 { print }
35217 _ACAWK
35218 _ACEOF
35219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35220 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35221 fi # test -n "$CONFIG_HEADERS"
35224 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35225 shift
35226 for ac_tag
35228 case $ac_tag in
35229 :[FHLC]) ac_mode=$ac_tag; continue;;
35230 esac
35231 case $ac_mode$ac_tag in
35232 :[FHL]*:*);;
35233 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35234 :[FH]-) ac_tag=-:-;;
35235 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35236 esac
35237 ac_save_IFS=$IFS
35238 IFS=:
35239 set x $ac_tag
35240 IFS=$ac_save_IFS
35241 shift
35242 ac_file=$1
35243 shift
35245 case $ac_mode in
35246 :L) ac_source=$1;;
35247 :[FH])
35248 ac_file_inputs=
35249 for ac_f
35251 case $ac_f in
35252 -) ac_f="$ac_tmp/stdin";;
35253 *) # Look for the file first in the build tree, then in the source tree
35254 # (if the path is not absolute). The absolute path cannot be DOS-style,
35255 # because $ac_f cannot contain `:'.
35256 test -f "$ac_f" ||
35257 case $ac_f in
35258 [\\/$]*) false;;
35259 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35260 esac ||
35261 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35262 esac
35263 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35264 as_fn_append ac_file_inputs " '$ac_f'"
35265 done
35267 # Let's still pretend it is `configure' which instantiates (i.e., don't
35268 # use $as_me), people would be surprised to read:
35269 # /* config.h. Generated by config.status. */
35270 configure_input='Generated from '`
35271 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35272 `' by configure.'
35273 if test x"$ac_file" != x-; then
35274 configure_input="$ac_file. $configure_input"
35275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35276 $as_echo "$as_me: creating $ac_file" >&6;}
35278 # Neutralize special characters interpreted by sed in replacement strings.
35279 case $configure_input in #(
35280 *\&* | *\|* | *\\* )
35281 ac_sed_conf_input=`$as_echo "$configure_input" |
35282 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35283 *) ac_sed_conf_input=$configure_input;;
35284 esac
35286 case $ac_tag in
35287 *:-:* | *:-) cat >"$ac_tmp/stdin" \
35288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35289 esac
35291 esac
35293 ac_dir=`$as_dirname -- "$ac_file" ||
35294 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35295 X"$ac_file" : 'X\(//\)[^/]' \| \
35296 X"$ac_file" : 'X\(//\)$' \| \
35297 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35298 $as_echo X"$ac_file" |
35299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35300 s//\1/
35303 /^X\(\/\/\)[^/].*/{
35304 s//\1/
35307 /^X\(\/\/\)$/{
35308 s//\1/
35311 /^X\(\/\).*/{
35312 s//\1/
35315 s/.*/./; q'`
35316 as_dir="$ac_dir"; as_fn_mkdir_p
35317 ac_builddir=.
35319 case "$ac_dir" in
35320 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35322 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35323 # A ".." for each directory in $ac_dir_suffix.
35324 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35325 case $ac_top_builddir_sub in
35326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35328 esac ;;
35329 esac
35330 ac_abs_top_builddir=$ac_pwd
35331 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35332 # for backward compatibility:
35333 ac_top_builddir=$ac_top_build_prefix
35335 case $srcdir in
35336 .) # We are building in place.
35337 ac_srcdir=.
35338 ac_top_srcdir=$ac_top_builddir_sub
35339 ac_abs_top_srcdir=$ac_pwd ;;
35340 [\\/]* | ?:[\\/]* ) # Absolute name.
35341 ac_srcdir=$srcdir$ac_dir_suffix;
35342 ac_top_srcdir=$srcdir
35343 ac_abs_top_srcdir=$srcdir ;;
35344 *) # Relative name.
35345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35346 ac_top_srcdir=$ac_top_build_prefix$srcdir
35347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35348 esac
35349 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35352 case $ac_mode in
35355 # CONFIG_FILE
35358 case $INSTALL in
35359 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35360 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35361 esac
35362 _ACEOF
35364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35365 # If the template does not know about datarootdir, expand it.
35366 # FIXME: This hack should be removed a few years after 2.60.
35367 ac_datarootdir_hack=; ac_datarootdir_seen=
35368 ac_sed_dataroot='
35369 /datarootdir/ {
35373 /@datadir@/p
35374 /@docdir@/p
35375 /@infodir@/p
35376 /@localedir@/p
35377 /@mandir@/p'
35378 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35379 *datarootdir*) ac_datarootdir_seen=yes;;
35380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35382 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35383 _ACEOF
35384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35385 ac_datarootdir_hack='
35386 s&@datadir@&$datadir&g
35387 s&@docdir@&$docdir&g
35388 s&@infodir@&$infodir&g
35389 s&@localedir@&$localedir&g
35390 s&@mandir@&$mandir&g
35391 s&\\\${datarootdir}&$datarootdir&g' ;;
35392 esac
35393 _ACEOF
35395 # Neutralize VPATH when `$srcdir' = `.'.
35396 # Shell code in configure.ac might set extrasub.
35397 # FIXME: do we really want to maintain this feature?
35398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35399 ac_sed_extra="$ac_vpsub
35400 $extrasub
35401 _ACEOF
35402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35405 s|@configure_input@|$ac_sed_conf_input|;t t
35406 s&@top_builddir@&$ac_top_builddir_sub&;t t
35407 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35408 s&@srcdir@&$ac_srcdir&;t t
35409 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35410 s&@top_srcdir@&$ac_top_srcdir&;t t
35411 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35412 s&@builddir@&$ac_builddir&;t t
35413 s&@abs_builddir@&$ac_abs_builddir&;t t
35414 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35415 s&@INSTALL@&$ac_INSTALL&;t t
35416 $ac_datarootdir_hack
35418 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
35419 if $ac_cs_awk_getline; then
35420 $AWK -f "$ac_tmp/subs.awk"
35421 else
35422 $AWK -f "$ac_tmp/subs.awk" | $SHELL
35423 fi \
35424 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35426 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35427 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35428 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35429 "$ac_tmp/out"`; test -z "$ac_out"; } &&
35430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35431 which seems to be undefined. Please make sure it is defined" >&5
35432 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35433 which seems to be undefined. Please make sure it is defined" >&2;}
35435 rm -f "$ac_tmp/stdin"
35436 case $ac_file in
35437 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35438 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35439 esac \
35440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35444 # CONFIG_HEADER
35446 if test x"$ac_file" != x-; then
35448 $as_echo "/* $configure_input */" \
35449 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35450 } >"$ac_tmp/config.h" \
35451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35452 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35453 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35454 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35455 else
35456 rm -f "$ac_file"
35457 mv "$ac_tmp/config.h" "$ac_file" \
35458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35460 else
35461 $as_echo "/* $configure_input */" \
35462 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35463 || as_fn_error $? "could not create -" "$LINENO" 5
35468 # CONFIG_LINK
35471 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
35473 else
35474 # Prefer the file from the source tree if names are identical.
35475 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
35476 ac_source=$srcdir/$ac_source
35479 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
35480 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
35482 if test ! -r "$ac_source"; then
35483 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
35485 rm -f "$ac_file"
35487 # Try a relative symlink, then a hard link, then a copy.
35488 case $ac_source in
35489 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
35490 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
35491 esac
35492 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
35493 ln "$ac_source" "$ac_file" 2>/dev/null ||
35494 cp -p "$ac_source" "$ac_file" ||
35495 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
35498 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35499 $as_echo "$as_me: executing $ac_file commands" >&6;}
35501 esac
35504 case $ac_file$ac_mode in
35505 "config.h":H) echo > stamp-h ;;
35506 "libtool":C)
35508 # See if we are running on zsh, and set the options which allow our
35509 # commands through without removal of \ escapes.
35510 if test -n "${ZSH_VERSION+set}" ; then
35511 setopt NO_GLOB_SUBST
35514 cfgfile="${ofile}T"
35515 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35516 $RM "$cfgfile"
35518 cat <<_LT_EOF >> "$cfgfile"
35519 #! $SHELL
35521 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35522 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35523 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35524 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35526 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35527 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
35528 # Written by Gordon Matzigkeit, 1996
35530 # This file is part of GNU Libtool.
35532 # GNU Libtool is free software; you can redistribute it and/or
35533 # modify it under the terms of the GNU General Public License as
35534 # published by the Free Software Foundation; either version 2 of
35535 # the License, or (at your option) any later version.
35537 # As a special exception to the GNU General Public License,
35538 # if you distribute this file as part of a program or library that
35539 # is built using GNU Libtool, you may include this file under the
35540 # same distribution terms that you use for the rest of that program.
35542 # GNU Libtool is distributed in the hope that it will be useful,
35543 # but WITHOUT ANY WARRANTY; without even the implied warranty of
35544 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35545 # GNU General Public License for more details.
35547 # You should have received a copy of the GNU General Public License
35548 # along with GNU Libtool; see the file COPYING. If not, a copy
35549 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35550 # obtained by writing to the Free Software Foundation, Inc.,
35551 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35554 # The names of the tagged configurations supported by this script.
35555 available_tags="CXX "
35557 # ### BEGIN LIBTOOL CONFIG
35559 # Which release of libtool.m4 was used?
35560 macro_version=$macro_version
35561 macro_revision=$macro_revision
35563 # Whether or not to build shared libraries.
35564 build_libtool_libs=$enable_shared
35566 # Whether or not to build static libraries.
35567 build_old_libs=$enable_static
35569 # What type of objects to build.
35570 pic_mode=$pic_mode
35572 # Whether or not to optimize for fast installation.
35573 fast_install=$enable_fast_install
35575 # Shell to use when invoking shell scripts.
35576 SHELL=$lt_SHELL
35578 # An echo program that protects backslashes.
35579 ECHO=$lt_ECHO
35581 # The host system.
35582 host_alias=$host_alias
35583 host=$host
35584 host_os=$host_os
35586 # The build system.
35587 build_alias=$build_alias
35588 build=$build
35589 build_os=$build_os
35591 # A sed program that does not truncate output.
35592 SED=$lt_SED
35594 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35595 Xsed="\$SED -e 1s/^X//"
35597 # A grep program that handles long lines.
35598 GREP=$lt_GREP
35600 # An ERE matcher.
35601 EGREP=$lt_EGREP
35603 # A literal string matcher.
35604 FGREP=$lt_FGREP
35606 # A BSD- or MS-compatible name lister.
35607 NM=$lt_NM
35609 # Whether we need soft or hard links.
35610 LN_S=$lt_LN_S
35612 # What is the maximum length of a command?
35613 max_cmd_len=$max_cmd_len
35615 # Object file suffix (normally "o").
35616 objext=$ac_objext
35618 # Executable file suffix (normally "").
35619 exeext=$exeext
35621 # whether the shell understands "unset".
35622 lt_unset=$lt_unset
35624 # turn spaces into newlines.
35625 SP2NL=$lt_lt_SP2NL
35627 # turn newlines into spaces.
35628 NL2SP=$lt_lt_NL2SP
35630 # An object symbol dumper.
35631 OBJDUMP=$lt_OBJDUMP
35633 # Method to check whether dependent libraries are shared objects.
35634 deplibs_check_method=$lt_deplibs_check_method
35636 # Command to use when deplibs_check_method == "file_magic".
35637 file_magic_cmd=$lt_file_magic_cmd
35639 # The archiver.
35640 AR=$lt_AR
35641 AR_FLAGS=$lt_AR_FLAGS
35643 # A symbol stripping program.
35644 STRIP=$lt_STRIP
35646 # Commands used to install an old-style archive.
35647 RANLIB=$lt_RANLIB
35648 old_postinstall_cmds=$lt_old_postinstall_cmds
35649 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35651 # Whether to use a lock for old archive extraction.
35652 lock_old_archive_extraction=$lock_old_archive_extraction
35654 # A C compiler.
35655 LTCC=$lt_CC
35657 # LTCC compiler flags.
35658 LTCFLAGS=$lt_CFLAGS
35660 # Take the output of nm and produce a listing of raw symbols and C names.
35661 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35663 # Transform the output of nm in a proper C declaration.
35664 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35666 # Transform the output of nm in a C name address pair.
35667 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35669 # Transform the output of nm in a C name address pair when lib prefix is needed.
35670 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35672 # The name of the directory that contains temporary libtool files.
35673 objdir=$objdir
35675 # Used to examine libraries when file_magic_cmd begins with "file".
35676 MAGIC_CMD=$MAGIC_CMD
35678 # Must we lock files when doing compilation?
35679 need_locks=$lt_need_locks
35681 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35682 DSYMUTIL=$lt_DSYMUTIL
35684 # Tool to change global to local symbols on Mac OS X.
35685 NMEDIT=$lt_NMEDIT
35687 # Tool to manipulate fat objects and archives on Mac OS X.
35688 LIPO=$lt_LIPO
35690 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35691 OTOOL=$lt_OTOOL
35693 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35694 OTOOL64=$lt_OTOOL64
35696 # Old archive suffix (normally "a").
35697 libext=$libext
35699 # Shared library suffix (normally ".so").
35700 shrext_cmds=$lt_shrext_cmds
35702 # The commands to extract the exported symbol list from a shared archive.
35703 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35705 # Variables whose values should be saved in libtool wrapper scripts and
35706 # restored at link time.
35707 variables_saved_for_relink=$lt_variables_saved_for_relink
35709 # Do we need the "lib" prefix for modules?
35710 need_lib_prefix=$need_lib_prefix
35712 # Do we need a version for libraries?
35713 need_version=$need_version
35715 # Library versioning type.
35716 version_type=$version_type
35718 # Shared library runtime path variable.
35719 runpath_var=$runpath_var
35721 # Shared library path variable.
35722 shlibpath_var=$shlibpath_var
35724 # Is shlibpath searched before the hard-coded library search path?
35725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35727 # Format of library name prefix.
35728 libname_spec=$lt_libname_spec
35730 # List of archive names. First name is the real one, the rest are links.
35731 # The last name is the one that the linker finds with -lNAME
35732 library_names_spec=$lt_library_names_spec
35734 # The coded name of the library, if different from the real name.
35735 soname_spec=$lt_soname_spec
35737 # Permission mode override for installation of shared libraries.
35738 install_override_mode=$lt_install_override_mode
35740 # Command to use after installation of a shared archive.
35741 postinstall_cmds=$lt_postinstall_cmds
35743 # Command to use after uninstallation of a shared archive.
35744 postuninstall_cmds=$lt_postuninstall_cmds
35746 # Commands used to finish a libtool library installation in a directory.
35747 finish_cmds=$lt_finish_cmds
35749 # As "finish_cmds", except a single script fragment to be evaled but
35750 # not shown.
35751 finish_eval=$lt_finish_eval
35753 # Whether we should hardcode library paths into libraries.
35754 hardcode_into_libs=$hardcode_into_libs
35756 # Compile-time system search path for libraries.
35757 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35759 # Run-time system search path for libraries.
35760 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35762 # Whether dlopen is supported.
35763 dlopen_support=$enable_dlopen
35765 # Whether dlopen of programs is supported.
35766 dlopen_self=$enable_dlopen_self
35768 # Whether dlopen of statically linked programs is supported.
35769 dlopen_self_static=$enable_dlopen_self_static
35771 # Commands to strip libraries.
35772 old_striplib=$lt_old_striplib
35773 striplib=$lt_striplib
35776 # The linker used to build libraries.
35777 LD=$lt_LD
35779 # How to create reloadable object files.
35780 reload_flag=$lt_reload_flag
35781 reload_cmds=$lt_reload_cmds
35783 # Commands used to build an old-style archive.
35784 old_archive_cmds=$lt_old_archive_cmds
35786 # A language specific compiler.
35787 CC=$lt_compiler
35789 # Is the compiler the GNU compiler?
35790 with_gcc=$GCC
35792 # Compiler flag to turn off builtin functions.
35793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35795 # How to pass a linker flag through the compiler.
35796 wl=$lt_lt_prog_compiler_wl
35798 # Additional compiler flags for building library objects.
35799 pic_flag=$lt_lt_prog_compiler_pic
35801 # Compiler flag to prevent dynamic linking.
35802 link_static_flag=$lt_lt_prog_compiler_static
35804 # Does compiler simultaneously support -c and -o options?
35805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35807 # Whether or not to add -lc for building shared libraries.
35808 build_libtool_need_lc=$archive_cmds_need_lc
35810 # Whether or not to disallow shared libs when runtime libs are static.
35811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35813 # Compiler flag to allow reflexive dlopens.
35814 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35816 # Compiler flag to generate shared objects directly from archives.
35817 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35819 # Whether the compiler copes with passing no objects directly.
35820 compiler_needs_object=$lt_compiler_needs_object
35822 # Create an old-style archive from a shared archive.
35823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35825 # Create a temporary old-style archive to link instead of a shared archive.
35826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35828 # Commands used to build a shared archive.
35829 archive_cmds=$lt_archive_cmds
35830 archive_expsym_cmds=$lt_archive_expsym_cmds
35832 # Commands used to build a loadable module if different from building
35833 # a shared archive.
35834 module_cmds=$lt_module_cmds
35835 module_expsym_cmds=$lt_module_expsym_cmds
35837 # Whether we are building with GNU ld or not.
35838 with_gnu_ld=$lt_with_gnu_ld
35840 # Flag that allows shared libraries with undefined symbols to be built.
35841 allow_undefined_flag=$lt_allow_undefined_flag
35843 # Flag that enforces no undefined symbols.
35844 no_undefined_flag=$lt_no_undefined_flag
35846 # Flag to hardcode \$libdir into a binary during linking.
35847 # This must work even if \$libdir does not exist
35848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35850 # If ld is used when linking, flag to hardcode \$libdir into a binary
35851 # during linking. This must work even if \$libdir does not exist.
35852 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35854 # Whether we need a single "-rpath" flag with a separated argument.
35855 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35857 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35858 # DIR into the resulting binary.
35859 hardcode_direct=$hardcode_direct
35861 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35862 # DIR into the resulting binary and the resulting library dependency is
35863 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35864 # library is relocated.
35865 hardcode_direct_absolute=$hardcode_direct_absolute
35867 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35868 # into the resulting binary.
35869 hardcode_minus_L=$hardcode_minus_L
35871 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35872 # into the resulting binary.
35873 hardcode_shlibpath_var=$hardcode_shlibpath_var
35875 # Set to "yes" if building a shared library automatically hardcodes DIR
35876 # into the library and all subsequent libraries and executables linked
35877 # against it.
35878 hardcode_automatic=$hardcode_automatic
35880 # Set to yes if linker adds runtime paths of dependent libraries
35881 # to runtime path list.
35882 inherit_rpath=$inherit_rpath
35884 # Whether libtool must link a program against all its dependency libraries.
35885 link_all_deplibs=$link_all_deplibs
35887 # Fix the shell variable \$srcfile for the compiler.
35888 fix_srcfile_path=$lt_fix_srcfile_path
35890 # Set to "yes" if exported symbols are required.
35891 always_export_symbols=$always_export_symbols
35893 # The commands to list exported symbols.
35894 export_symbols_cmds=$lt_export_symbols_cmds
35896 # Symbols that should not be listed in the preloaded symbols.
35897 exclude_expsyms=$lt_exclude_expsyms
35899 # Symbols that must always be exported.
35900 include_expsyms=$lt_include_expsyms
35902 # Commands necessary for linking programs (against libraries) with templates.
35903 prelink_cmds=$lt_prelink_cmds
35905 # Specify filename containing input files.
35906 file_list_spec=$lt_file_list_spec
35908 # How to hardcode a shared library path into an executable.
35909 hardcode_action=$hardcode_action
35911 # The directories searched by this compiler when creating a shared library.
35912 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35914 # Dependencies to place before and after the objects being linked to
35915 # create a shared library.
35916 predep_objects=$lt_predep_objects
35917 postdep_objects=$lt_postdep_objects
35918 predeps=$lt_predeps
35919 postdeps=$lt_postdeps
35921 # The library search path used internally by the compiler when linking
35922 # a shared library.
35923 compiler_lib_search_path=$lt_compiler_lib_search_path
35925 # ### END LIBTOOL CONFIG
35927 _LT_EOF
35929 case $host_os in
35930 aix3*)
35931 cat <<\_LT_EOF >> "$cfgfile"
35932 # AIX sometimes has problems with the GCC collect2 program. For some
35933 # reason, if we set the COLLECT_NAMES environment variable, the problems
35934 # vanish in a puff of smoke.
35935 if test "X${COLLECT_NAMES+set}" != Xset; then
35936 COLLECT_NAMES=
35937 export COLLECT_NAMES
35939 _LT_EOF
35941 esac
35944 ltmain="$ac_aux_dir/ltmain.sh"
35947 # We use sed instead of cat because bash on DJGPP gets confused if
35948 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35949 # text mode, it properly converts lines to CR/LF. This bash problem
35950 # is reportedly fixed, but why not run on old versions too?
35951 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35952 || (rm -f "$cfgfile"; exit 1)
35954 case $xsi_shell in
35955 yes)
35956 cat << \_LT_EOF >> "$cfgfile"
35958 # func_dirname file append nondir_replacement
35959 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35960 # otherwise set result to NONDIR_REPLACEMENT.
35961 func_dirname ()
35963 case ${1} in
35964 */*) func_dirname_result="${1%/*}${2}" ;;
35965 * ) func_dirname_result="${3}" ;;
35966 esac
35969 # func_basename file
35970 func_basename ()
35972 func_basename_result="${1##*/}"
35975 # func_dirname_and_basename file append nondir_replacement
35976 # perform func_basename and func_dirname in a single function
35977 # call:
35978 # dirname: Compute the dirname of FILE. If nonempty,
35979 # add APPEND to the result, otherwise set result
35980 # to NONDIR_REPLACEMENT.
35981 # value returned in "$func_dirname_result"
35982 # basename: Compute filename of FILE.
35983 # value retuned in "$func_basename_result"
35984 # Implementation must be kept synchronized with func_dirname
35985 # and func_basename. For efficiency, we do not delegate to
35986 # those functions but instead duplicate the functionality here.
35987 func_dirname_and_basename ()
35989 case ${1} in
35990 */*) func_dirname_result="${1%/*}${2}" ;;
35991 * ) func_dirname_result="${3}" ;;
35992 esac
35993 func_basename_result="${1##*/}"
35996 # func_stripname prefix suffix name
35997 # strip PREFIX and SUFFIX off of NAME.
35998 # PREFIX and SUFFIX must not contain globbing or regex special
35999 # characters, hashes, percent signs, but SUFFIX may contain a leading
36000 # dot (in which case that matches only a dot).
36001 func_stripname ()
36003 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
36004 # positional parameters, so assign one to ordinary parameter first.
36005 func_stripname_result=${3}
36006 func_stripname_result=${func_stripname_result#"${1}"}
36007 func_stripname_result=${func_stripname_result%"${2}"}
36010 # func_opt_split
36011 func_opt_split ()
36013 func_opt_split_opt=${1%%=*}
36014 func_opt_split_arg=${1#*=}
36017 # func_lo2o object
36018 func_lo2o ()
36020 case ${1} in
36021 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
36022 *) func_lo2o_result=${1} ;;
36023 esac
36026 # func_xform libobj-or-source
36027 func_xform ()
36029 func_xform_result=${1%.*}.lo
36032 # func_arith arithmetic-term...
36033 func_arith ()
36035 func_arith_result=$(( $* ))
36038 # func_len string
36039 # STRING may not start with a hyphen.
36040 func_len ()
36042 func_len_result=${#1}
36045 _LT_EOF
36047 *) # Bourne compatible functions.
36048 cat << \_LT_EOF >> "$cfgfile"
36050 # func_dirname file append nondir_replacement
36051 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
36052 # otherwise set result to NONDIR_REPLACEMENT.
36053 func_dirname ()
36055 # Extract subdirectory from the argument.
36056 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
36057 if test "X$func_dirname_result" = "X${1}"; then
36058 func_dirname_result="${3}"
36059 else
36060 func_dirname_result="$func_dirname_result${2}"
36064 # func_basename file
36065 func_basename ()
36067 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
36071 # func_stripname prefix suffix name
36072 # strip PREFIX and SUFFIX off of NAME.
36073 # PREFIX and SUFFIX must not contain globbing or regex special
36074 # characters, hashes, percent signs, but SUFFIX may contain a leading
36075 # dot (in which case that matches only a dot).
36076 # func_strip_suffix prefix name
36077 func_stripname ()
36079 case ${2} in
36080 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
36081 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
36082 esac
36085 # sed scripts:
36086 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
36087 my_sed_long_arg='1s/^-[^=]*=//'
36089 # func_opt_split
36090 func_opt_split ()
36092 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
36093 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
36096 # func_lo2o object
36097 func_lo2o ()
36099 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
36102 # func_xform libobj-or-source
36103 func_xform ()
36105 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
36108 # func_arith arithmetic-term...
36109 func_arith ()
36111 func_arith_result=`expr "$@"`
36114 # func_len string
36115 # STRING may not start with a hyphen.
36116 func_len ()
36118 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
36121 _LT_EOF
36122 esac
36124 case $lt_shell_append in
36125 yes)
36126 cat << \_LT_EOF >> "$cfgfile"
36128 # func_append var value
36129 # Append VALUE to the end of shell variable VAR.
36130 func_append ()
36132 eval "$1+=\$2"
36134 _LT_EOF
36137 cat << \_LT_EOF >> "$cfgfile"
36139 # func_append var value
36140 # Append VALUE to the end of shell variable VAR.
36141 func_append ()
36143 eval "$1=\$$1\$2"
36146 _LT_EOF
36148 esac
36151 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
36152 || (rm -f "$cfgfile"; exit 1)
36154 mv -f "$cfgfile" "$ofile" ||
36155 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36156 chmod +x "$ofile"
36159 cat <<_LT_EOF >> "$ofile"
36161 # ### BEGIN LIBTOOL TAG CONFIG: CXX
36163 # The linker used to build libraries.
36164 LD=$lt_LD_CXX
36166 # How to create reloadable object files.
36167 reload_flag=$lt_reload_flag_CXX
36168 reload_cmds=$lt_reload_cmds_CXX
36170 # Commands used to build an old-style archive.
36171 old_archive_cmds=$lt_old_archive_cmds_CXX
36173 # A language specific compiler.
36174 CC=$lt_compiler_CXX
36176 # Is the compiler the GNU compiler?
36177 with_gcc=$GCC_CXX
36179 # Compiler flag to turn off builtin functions.
36180 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36182 # How to pass a linker flag through the compiler.
36183 wl=$lt_lt_prog_compiler_wl_CXX
36185 # Additional compiler flags for building library objects.
36186 pic_flag=$lt_lt_prog_compiler_pic_CXX
36188 # Compiler flag to prevent dynamic linking.
36189 link_static_flag=$lt_lt_prog_compiler_static_CXX
36191 # Does compiler simultaneously support -c and -o options?
36192 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36194 # Whether or not to add -lc for building shared libraries.
36195 build_libtool_need_lc=$archive_cmds_need_lc_CXX
36197 # Whether or not to disallow shared libs when runtime libs are static.
36198 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36200 # Compiler flag to allow reflexive dlopens.
36201 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36203 # Compiler flag to generate shared objects directly from archives.
36204 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36206 # Whether the compiler copes with passing no objects directly.
36207 compiler_needs_object=$lt_compiler_needs_object_CXX
36209 # Create an old-style archive from a shared archive.
36210 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36212 # Create a temporary old-style archive to link instead of a shared archive.
36213 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36215 # Commands used to build a shared archive.
36216 archive_cmds=$lt_archive_cmds_CXX
36217 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36219 # Commands used to build a loadable module if different from building
36220 # a shared archive.
36221 module_cmds=$lt_module_cmds_CXX
36222 module_expsym_cmds=$lt_module_expsym_cmds_CXX
36224 # Whether we are building with GNU ld or not.
36225 with_gnu_ld=$lt_with_gnu_ld_CXX
36227 # Flag that allows shared libraries with undefined symbols to be built.
36228 allow_undefined_flag=$lt_allow_undefined_flag_CXX
36230 # Flag that enforces no undefined symbols.
36231 no_undefined_flag=$lt_no_undefined_flag_CXX
36233 # Flag to hardcode \$libdir into a binary during linking.
36234 # This must work even if \$libdir does not exist
36235 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36237 # If ld is used when linking, flag to hardcode \$libdir into a binary
36238 # during linking. This must work even if \$libdir does not exist.
36239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36241 # Whether we need a single "-rpath" flag with a separated argument.
36242 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36244 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36245 # DIR into the resulting binary.
36246 hardcode_direct=$hardcode_direct_CXX
36248 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36249 # DIR into the resulting binary and the resulting library dependency is
36250 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36251 # library is relocated.
36252 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36254 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36255 # into the resulting binary.
36256 hardcode_minus_L=$hardcode_minus_L_CXX
36258 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36259 # into the resulting binary.
36260 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36262 # Set to "yes" if building a shared library automatically hardcodes DIR
36263 # into the library and all subsequent libraries and executables linked
36264 # against it.
36265 hardcode_automatic=$hardcode_automatic_CXX
36267 # Set to yes if linker adds runtime paths of dependent libraries
36268 # to runtime path list.
36269 inherit_rpath=$inherit_rpath_CXX
36271 # Whether libtool must link a program against all its dependency libraries.
36272 link_all_deplibs=$link_all_deplibs_CXX
36274 # Fix the shell variable \$srcfile for the compiler.
36275 fix_srcfile_path=$lt_fix_srcfile_path_CXX
36277 # Set to "yes" if exported symbols are required.
36278 always_export_symbols=$always_export_symbols_CXX
36280 # The commands to list exported symbols.
36281 export_symbols_cmds=$lt_export_symbols_cmds_CXX
36283 # Symbols that should not be listed in the preloaded symbols.
36284 exclude_expsyms=$lt_exclude_expsyms_CXX
36286 # Symbols that must always be exported.
36287 include_expsyms=$lt_include_expsyms_CXX
36289 # Commands necessary for linking programs (against libraries) with templates.
36290 prelink_cmds=$lt_prelink_cmds_CXX
36292 # Specify filename containing input files.
36293 file_list_spec=$lt_file_list_spec_CXX
36295 # How to hardcode a shared library path into an executable.
36296 hardcode_action=$hardcode_action_CXX
36298 # The directories searched by this compiler when creating a shared library.
36299 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36301 # Dependencies to place before and after the objects being linked to
36302 # create a shared library.
36303 predep_objects=$lt_predep_objects_CXX
36304 postdep_objects=$lt_postdep_objects_CXX
36305 predeps=$lt_predeps_CXX
36306 postdeps=$lt_postdeps_CXX
36308 # The library search path used internally by the compiler when linking
36309 # a shared library.
36310 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36312 # ### END LIBTOOL TAG CONFIG: CXX
36313 _LT_EOF
36316 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36317 "default-1":C)
36318 for ac_file in $CONFIG_FILES; do
36319 # Support "outfile[:infile[:infile...]]"
36320 case "$ac_file" in
36321 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36322 esac
36323 # PO directories have a Makefile.in generated from Makefile.in.in.
36324 case "$ac_file" in */Makefile.in)
36325 # Adjust a relative srcdir.
36326 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36327 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
36328 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36329 # In autoconf-2.13 it is called $ac_given_srcdir.
36330 # In autoconf-2.50 it is called $srcdir.
36331 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36332 case "$ac_given_srcdir" in
36333 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36334 /*) top_srcdir="$ac_given_srcdir" ;;
36335 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36336 esac
36337 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36338 rm -f "$ac_dir/POTFILES"
36339 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36340 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36341 POMAKEFILEDEPS="POTFILES.in"
36342 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36343 # on $ac_dir but don't depend on user-specified configuration
36344 # parameters.
36345 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36346 # The LINGUAS file contains the set of available languages.
36347 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36348 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
36350 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36351 # Hide the ALL_LINGUAS assigment from automake.
36352 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36353 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36354 else
36355 # The set of available languages was given in configure.ac.
36356 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36358 case "$ac_given_srcdir" in
36359 .) srcdirpre= ;;
36360 *) srcdirpre='$(srcdir)/' ;;
36361 esac
36362 POFILES=
36363 GMOFILES=
36364 UPDATEPOFILES=
36365 DUMMYPOFILES=
36366 for lang in $ALL_LINGUAS; do
36367 POFILES="$POFILES $srcdirpre$lang.po"
36368 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36369 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36370 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36371 done
36372 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36373 # environment variable.
36374 INST_LINGUAS=
36375 if test -n "$ALL_LINGUAS"; then
36376 for presentlang in $ALL_LINGUAS; do
36377 useit=no
36378 if test "%UNSET%" != "$LINGUAS"; then
36379 desiredlanguages="$LINGUAS"
36380 else
36381 desiredlanguages="$ALL_LINGUAS"
36383 for desiredlang in $desiredlanguages; do
36384 # Use the presentlang catalog if desiredlang is
36385 # a. equal to presentlang, or
36386 # b. a variant of presentlang (because in this case,
36387 # presentlang can be used as a fallback for messages
36388 # which are not translated in the desiredlang catalog).
36389 case "$desiredlang" in
36390 "$presentlang"*) useit=yes;;
36391 esac
36392 done
36393 if test $useit = yes; then
36394 INST_LINGUAS="$INST_LINGUAS $presentlang"
36396 done
36398 CATALOGS=
36399 if test -n "$INST_LINGUAS"; then
36400 for lang in $INST_LINGUAS; do
36401 CATALOGS="$CATALOGS $lang.gmo"
36402 done
36404 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36405 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36406 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36407 if test -f "$f"; then
36408 case "$f" in
36409 *.orig | *.bak | *~) ;;
36410 *) cat "$f" >> "$ac_dir/Makefile" ;;
36411 esac
36413 done
36416 esac
36417 done ;;
36418 "nm.h":L) echo > stamp-nmh ;;
36419 "gcore":F) chmod +x gcore ;;
36421 esac
36422 done # for ac_tag
36425 as_fn_exit 0
36426 _ACEOF
36427 ac_clean_files=$ac_clean_files_save
36429 test $ac_write_fail = 0 ||
36430 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36433 # configure is writing to config.log, and then calls config.status.
36434 # config.status does its own redirection, appending to config.log.
36435 # Unfortunately, on DOS this fails, as config.log is still kept open
36436 # by configure, so config.status won't be able to write to it; its
36437 # output is simply discarded. So we exec the FD to /dev/null,
36438 # effectively closing config.log, so it can be properly (re)opened and
36439 # appended to by config.status. When coming back to configure, we
36440 # need to make the FD available again.
36441 if test "$no_create" != yes; then
36442 ac_cs_success=:
36443 ac_config_status_args=
36444 test "$silent" = yes &&
36445 ac_config_status_args="$ac_config_status_args --quiet"
36446 exec 5>/dev/null
36447 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36448 exec 5>>config.log
36449 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36450 # would make configure fail if this is the last instruction.
36451 $ac_cs_success || as_fn_exit 1
36455 # CONFIG_SUBDIRS section.
36457 if test "$no_recursion" != yes; then
36459 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
36460 # so they do not pile up.
36461 ac_sub_configure_args=
36462 ac_prev=
36463 eval "set x $ac_configure_args"
36464 shift
36465 for ac_arg
36467 if test -n "$ac_prev"; then
36468 ac_prev=
36469 continue
36471 case $ac_arg in
36472 -cache-file | --cache-file | --cache-fil | --cache-fi \
36473 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36474 ac_prev=cache_file ;;
36475 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36476 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36477 | --c=*)
36479 --config-cache | -C)
36481 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36482 ac_prev=srcdir ;;
36483 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36485 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36486 ac_prev=prefix ;;
36487 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36489 --disable-option-checking)
36492 case $ac_arg in
36493 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36494 esac
36495 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
36496 esac
36497 done
36499 # Always prepend --prefix to ensure using the same prefix
36500 # in subdir configurations.
36501 ac_arg="--prefix=$prefix"
36502 case $ac_arg in
36503 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36504 esac
36505 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
36507 # Pass --silent
36508 if test "$silent" = yes; then
36509 ac_sub_configure_args="--silent $ac_sub_configure_args"
36512 # Always prepend --disable-option-checking to silence warnings, since
36513 # different subdirs can have different --enable and --with options.
36514 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
36516 ac_popdir=`pwd`
36517 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36519 # Do not complain, so a configure script can configure whichever
36520 # parts of a large source tree are present.
36521 test -d "$srcdir/$ac_dir" || continue
36523 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36524 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
36525 $as_echo "$ac_msg" >&6
36526 as_dir="$ac_dir"; as_fn_mkdir_p
36527 ac_builddir=.
36529 case "$ac_dir" in
36530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36533 # A ".." for each directory in $ac_dir_suffix.
36534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36535 case $ac_top_builddir_sub in
36536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36538 esac ;;
36539 esac
36540 ac_abs_top_builddir=$ac_pwd
36541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36542 # for backward compatibility:
36543 ac_top_builddir=$ac_top_build_prefix
36545 case $srcdir in
36546 .) # We are building in place.
36547 ac_srcdir=.
36548 ac_top_srcdir=$ac_top_builddir_sub
36549 ac_abs_top_srcdir=$ac_pwd ;;
36550 [\\/]* | ?:[\\/]* ) # Absolute name.
36551 ac_srcdir=$srcdir$ac_dir_suffix;
36552 ac_top_srcdir=$srcdir
36553 ac_abs_top_srcdir=$srcdir ;;
36554 *) # Relative name.
36555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36556 ac_top_srcdir=$ac_top_build_prefix$srcdir
36557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36558 esac
36559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36562 cd "$ac_dir"
36564 # Check for guested configure; otherwise get Cygnus style configure.
36565 if test -f "$ac_srcdir/configure.gnu"; then
36566 ac_sub_configure=$ac_srcdir/configure.gnu
36567 elif test -f "$ac_srcdir/configure"; then
36568 ac_sub_configure=$ac_srcdir/configure
36569 elif test -f "$ac_srcdir/configure.in"; then
36570 # This should be Cygnus configure.
36571 ac_sub_configure=$ac_aux_dir/configure
36572 else
36573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
36574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36575 ac_sub_configure=
36578 # The recursion is here.
36579 if test -n "$ac_sub_configure"; then
36580 # Make the cache file name correct relative to the subdirectory.
36581 case $cache_file in
36582 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36583 *) # Relative name.
36584 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36585 esac
36587 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36588 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36589 # The eval makes quoting arguments work.
36590 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36591 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36592 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
36595 cd "$ac_popdir"
36596 done
36598 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36600 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}