Add translations for various sub-directories
[binutils-gdb.git] / gdb / configure
blobcfb4f446ef8c96d6b8c919c64121b269fd06170a
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 # If all targets were requested, but 64 bit bfd is not enabled,
25009 # the build will fail. See PR 28684.
25010 as_fn_error $? "--enable-targets=all requires --enable-64-bit-bfd" "$LINENO" 5
25014 HAVE_GSTACK=0
25015 if test $gdb_native = yes; then
25016 HAVE_GSTACK=1
25020 # AMD debugger API support.
25023 # Check whether --with-amd-dbgapi was given.
25024 if test "${with_amd_dbgapi+set}" = set; then :
25025 withval=$with_amd_dbgapi;
25026 case $withval in
25027 yes | no | auto)
25030 as_fn_error $? "bad value $withval for --with-amd-dbgapi" "$LINENO" 5
25032 esac
25034 else
25035 with_amd_dbgapi=auto
25039 # If the user passes --without-amd-dbgapi but also explicitly enables a target
25040 # that requires amd-dbgapi, it is an error.
25041 if test "$with_amd_dbgapi" = no -a "$gdb_require_amd_dbgapi" = true; then
25042 as_fn_error $? "an explicitly enabled target requires amd-dbgapi, but amd-dbgapi is explicitly disabled" "$LINENO" 5
25045 # Look for amd-dbgapi if:
25047 # - a target architecture requiring it has explicitly been enabled, or
25048 # - --enable-targets=all was provided and the user did not explicitly disable
25049 # amd-dbgapi support
25050 if test "$gdb_require_amd_dbgapi" = true \
25051 -o \( "$all_targets" = true -a "$with_amd_dbgapi" != no \); then
25052 # amd-dbgapi version 0.68 is part of ROCm 5.4. There is no guarantee of API
25053 # stability until amd-dbgapi hits 1.0, but for convenience, still check for
25054 # greater or equal that version. It can be handy when testing with a newer
25055 # version of the library.
25057 pkg_failed=no
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.75.0" >&5
25059 $as_echo_n "checking for amd-dbgapi >= 0.75.0... " >&6; }
25061 if test -n "$AMD_DBGAPI_CFLAGS"; then
25062 pkg_cv_AMD_DBGAPI_CFLAGS="$AMD_DBGAPI_CFLAGS"
25063 elif test -n "$PKG_CONFIG"; then
25064 if test -n "$PKG_CONFIG" && \
25065 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.75.0\""; } >&5
25066 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.75.0") 2>&5
25067 ac_status=$?
25068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25069 test $ac_status = 0; }; then
25070 pkg_cv_AMD_DBGAPI_CFLAGS=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.75.0" 2>/dev/null`
25071 test "x$?" != "x0" && pkg_failed=yes
25072 else
25073 pkg_failed=yes
25075 else
25076 pkg_failed=untried
25078 if test -n "$AMD_DBGAPI_LIBS"; then
25079 pkg_cv_AMD_DBGAPI_LIBS="$AMD_DBGAPI_LIBS"
25080 elif test -n "$PKG_CONFIG"; then
25081 if test -n "$PKG_CONFIG" && \
25082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.75.0\""; } >&5
25083 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.75.0") 2>&5
25084 ac_status=$?
25085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25086 test $ac_status = 0; }; then
25087 pkg_cv_AMD_DBGAPI_LIBS=`$PKG_CONFIG --libs "amd-dbgapi >= 0.75.0" 2>/dev/null`
25088 test "x$?" != "x0" && pkg_failed=yes
25089 else
25090 pkg_failed=yes
25092 else
25093 pkg_failed=untried
25096 if test $pkg_failed = no; then
25097 pkg_save_LDFLAGS="$LDFLAGS"
25098 LDFLAGS="$LDFLAGS $pkg_cv_AMD_DBGAPI_LIBS"
25099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25100 /* end confdefs.h. */
25103 main ()
25107 return 0;
25109 _ACEOF
25110 if ac_fn_c_try_link "$LINENO"; then :
25112 else
25113 pkg_failed=yes
25115 rm -f core conftest.err conftest.$ac_objext \
25116 conftest$ac_exeext conftest.$ac_ext
25117 LDFLAGS=$pkg_save_LDFLAGS
25122 if test $pkg_failed = yes; then
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25124 $as_echo "no" >&6; }
25126 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25127 _pkg_short_errors_supported=yes
25128 else
25129 _pkg_short_errors_supported=no
25131 if test $_pkg_short_errors_supported = yes; then
25132 AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.75.0" 2>&1`
25133 else
25134 AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.75.0" 2>&1`
25136 # Put the nasty error message in config.log where it belongs
25137 echo "$AMD_DBGAPI_PKG_ERRORS" >&5
25139 has_amd_dbgapi=no
25140 elif test $pkg_failed = untried; then
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25142 $as_echo "no" >&6; }
25143 has_amd_dbgapi=no
25144 else
25145 AMD_DBGAPI_CFLAGS=$pkg_cv_AMD_DBGAPI_CFLAGS
25146 AMD_DBGAPI_LIBS=$pkg_cv_AMD_DBGAPI_LIBS
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25148 $as_echo "yes" >&6; }
25149 has_amd_dbgapi=yes
25152 if test "$has_amd_dbgapi" = "yes"; then
25154 $as_echo "#define HAVE_AMD_DBGAPI 1" >>confdefs.h
25156 TARGET_OBS="$TARGET_OBS amd-dbgapi-target.o"
25158 # If --enable-targets=all was provided, use the list of all files depending
25159 # on amd-dbgapi that is hardcoded in the Makefile. Else, the appropriate
25160 # architecture entry in configure.tgt will have added the files to
25161 # gdb_target_obs.
25162 if test "$all_targets" = true; then
25163 TARGET_OBS="$TARGET_OBS \$(ALL_AMD_DBGAPI_TARGET_OBS)"
25165 elif test "$gdb_require_amd_dbgapi" = true -o "$with_amd_dbgapi" = yes; then
25166 # amd-dbgapi was not found and...
25168 # - a target requiring it was explicitly enabled, or
25169 # - the user explicitly wants to enable amd-dbgapi
25170 as_fn_error $? "amd-dbgapi is required, but cannot find an appropriate version: $AMD_DBGAPI_PKG_ERRORS" "$LINENO" 5
25177 # For other settings, only the main target counts.
25178 gdb_sim=
25179 gdb_osabi=
25180 targ=$target; . ${srcdir}/configure.tgt
25182 # Fetch the default architecture and default target vector from BFD.
25183 targ=$target; . $srcdir/../bfd/config.bfd
25185 # We only want the first architecture, so strip off the others if
25186 # there is more than one.
25187 targ_archs=`echo $targ_archs | sed 's/ .*//'`
25189 if test "x$targ_archs" != x; then
25191 cat >>confdefs.h <<_ACEOF
25192 #define DEFAULT_BFD_ARCH $targ_archs
25193 _ACEOF
25196 if test "x$targ_defvec" != x; then
25198 cat >>confdefs.h <<_ACEOF
25199 #define DEFAULT_BFD_VEC $targ_defvec
25200 _ACEOF
25204 # Enable TUI.
25205 # Check whether --enable-tui was given.
25206 if test "${enable_tui+set}" = set; then :
25207 enableval=$enable_tui;
25208 case $enableval in
25209 yes | no | auto)
25212 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5
25214 esac
25216 else
25217 enable_tui=auto
25221 # Enable gdbtk.
25222 # Check whether --enable-gdbtk was given.
25223 if test "${enable_gdbtk+set}" = set; then :
25224 enableval=$enable_gdbtk;
25225 case $enableval in
25226 yes | no)
25229 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5
25231 esac
25233 else
25234 if test -d "$srcdir/gdbtk"; then
25235 enable_gdbtk=yes
25236 else
25237 enable_gdbtk=no
25241 # We unconditionally disable gdbtk tests on selected platforms.
25242 case $host_os in
25243 go32* | windows*)
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
25245 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
25246 enable_gdbtk=no ;;
25247 esac
25249 # Handle optional debuginfod support
25251 # Handle optional debuginfod support as well as optional section
25252 # downloading support.
25254 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
25256 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
25257 # version >= 0.188.
25259 # Check whether --with-debuginfod was given.
25260 if test "${with_debuginfod+set}" = set; then :
25261 withval=$with_debuginfod;
25262 else
25263 with_debuginfod=auto
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
25267 $as_echo_n "checking whether to use debuginfod... " >&6; }
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
25269 $as_echo "$with_debuginfod" >&6; }
25271 if test "x$with_debuginfod" != xno; then
25273 pkg_failed=no
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
25275 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
25277 if test -n "$DEBUGINFOD_CFLAGS"; then
25278 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
25279 elif test -n "$PKG_CONFIG"; then
25280 if test -n "$PKG_CONFIG" && \
25281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
25282 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
25283 ac_status=$?
25284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285 test $ac_status = 0; }; then
25286 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
25287 test "x$?" != "x0" && pkg_failed=yes
25288 else
25289 pkg_failed=yes
25291 else
25292 pkg_failed=untried
25294 if test -n "$DEBUGINFOD_LIBS"; then
25295 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
25296 elif test -n "$PKG_CONFIG"; then
25297 if test -n "$PKG_CONFIG" && \
25298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
25299 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
25300 ac_status=$?
25301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25302 test $ac_status = 0; }; then
25303 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
25304 test "x$?" != "x0" && pkg_failed=yes
25305 else
25306 pkg_failed=yes
25308 else
25309 pkg_failed=untried
25312 if test $pkg_failed = no; then
25313 pkg_save_LDFLAGS="$LDFLAGS"
25314 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
25315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25316 /* end confdefs.h. */
25319 main ()
25323 return 0;
25325 _ACEOF
25326 if ac_fn_c_try_link "$LINENO"; then :
25328 else
25329 pkg_failed=yes
25331 rm -f core conftest.err conftest.$ac_objext \
25332 conftest$ac_exeext conftest.$ac_ext
25333 LDFLAGS=$pkg_save_LDFLAGS
25338 if test $pkg_failed = yes; then
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25340 $as_echo "no" >&6; }
25342 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25343 _pkg_short_errors_supported=yes
25344 else
25345 _pkg_short_errors_supported=no
25347 if test $_pkg_short_errors_supported = yes; then
25348 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
25349 else
25350 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
25352 # Put the nasty error message in config.log where it belongs
25353 echo "$DEBUGINFOD_PKG_ERRORS" >&5
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
25356 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
25357 elif test $pkg_failed = untried; then
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25359 $as_echo "no" >&6; }
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
25361 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
25362 else
25363 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
25364 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25366 $as_echo "yes" >&6; }
25368 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
25373 pkg_failed=no
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
25375 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
25377 if test -n "$DEBUGINFOD_CFLAGS"; then
25378 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
25379 elif test -n "$PKG_CONFIG"; then
25380 if test -n "$PKG_CONFIG" && \
25381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
25382 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
25383 ac_status=$?
25384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25385 test $ac_status = 0; }; then
25386 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
25387 test "x$?" != "x0" && pkg_failed=yes
25388 else
25389 pkg_failed=yes
25391 else
25392 pkg_failed=untried
25394 if test -n "$DEBUGINFOD_LIBS"; then
25395 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
25396 elif test -n "$PKG_CONFIG"; then
25397 if test -n "$PKG_CONFIG" && \
25398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
25399 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
25400 ac_status=$?
25401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402 test $ac_status = 0; }; then
25403 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
25404 test "x$?" != "x0" && pkg_failed=yes
25405 else
25406 pkg_failed=yes
25408 else
25409 pkg_failed=untried
25412 if test $pkg_failed = no; then
25413 pkg_save_LDFLAGS="$LDFLAGS"
25414 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
25415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25416 /* end confdefs.h. */
25419 main ()
25423 return 0;
25425 _ACEOF
25426 if ac_fn_c_try_link "$LINENO"; then :
25428 else
25429 pkg_failed=yes
25431 rm -f core conftest.err conftest.$ac_objext \
25432 conftest$ac_exeext conftest.$ac_ext
25433 LDFLAGS=$pkg_save_LDFLAGS
25438 if test $pkg_failed = yes; then
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25440 $as_echo "no" >&6; }
25442 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25443 _pkg_short_errors_supported=yes
25444 else
25445 _pkg_short_errors_supported=no
25447 if test $_pkg_short_errors_supported = yes; then
25448 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
25449 else
25450 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
25452 # Put the nasty error message in config.log where it belongs
25453 echo "$DEBUGINFOD_PKG_ERRORS" >&5
25455 if test "x$with_debuginfod" = xyes; then
25456 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
25457 else
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
25459 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
25461 elif test $pkg_failed = untried; then
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25463 $as_echo "no" >&6; }
25464 if test "x$with_debuginfod" = xyes; then
25465 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
25466 else
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
25468 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
25470 else
25471 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
25472 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25474 $as_echo "yes" >&6; }
25476 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
25479 else
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
25481 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
25485 # Libunwind support for ia64.
25487 # Check whether --with-libunwind-ia64 was given.
25488 if test "${with_libunwind_ia64+set}" = set; then :
25489 withval=$with_libunwind_ia64;
25490 else
25491 with_libunwind_ia64=auto
25495 # Backward compatibility option.
25496 if test "${with_libunwind+set}" = set; then
25497 if test x"$with_libunwind_ia64" != xauto; then
25498 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
25501 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
25502 with_libunwind_ia64="$with_libunwind"
25505 case "$with_libunwind_ia64" in
25506 yes | no)
25508 auto)
25509 for ac_header in libunwind-ia64.h
25510 do :
25511 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
25512 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
25513 cat >>confdefs.h <<_ACEOF
25514 #define HAVE_LIBUNWIND_IA64_H 1
25515 _ACEOF
25519 done
25521 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
25524 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
25526 esac
25528 if test x"$with_libunwind_ia64" = xyes; then
25529 for ac_header in libunwind-ia64.h
25530 do :
25531 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
25532 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
25533 cat >>confdefs.h <<_ACEOF
25534 #define HAVE_LIBUNWIND_IA64_H 1
25535 _ACEOF
25539 done
25541 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
25542 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
25544 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
25545 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
25546 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
25549 opt_curses=no
25551 # Check whether --with-curses was given.
25552 if test "${with_curses+set}" = set; then :
25553 withval=$with_curses; opt_curses=$withval
25557 prefer_curses=no
25558 if test "$opt_curses" = "yes"; then
25559 prefer_curses=yes
25562 # Profiling support.
25563 # Check whether --enable-profiling was given.
25564 if test "${enable_profiling+set}" = set; then :
25565 enableval=$enable_profiling;
25566 case $enableval in
25567 yes | no)
25570 as_fn_error $? "bad value $enableval for --enable-profiling" "$LINENO" 5
25572 esac
25574 else
25575 enable_profiling=no
25579 for ac_func in monstartup _mcleanup
25580 do :
25581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25584 cat >>confdefs.h <<_ACEOF
25585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25586 _ACEOF
25589 done
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
25592 $as_echo_n "checking for _etext... " >&6; }
25593 if ${ac_cv_var__etext+:} false; then :
25594 $as_echo_n "(cached) " >&6
25595 else
25596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h. */
25598 #include <stdlib.h>
25599 extern char _etext;
25601 main ()
25603 free (&_etext);
25606 return 0;
25608 _ACEOF
25609 if ac_fn_c_try_link "$LINENO"; then :
25610 ac_cv_var__etext=yes
25611 else
25612 ac_cv_var__etext=no
25615 rm -f core conftest.err conftest.$ac_objext \
25616 conftest$ac_exeext conftest.$ac_ext
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
25620 $as_echo "$ac_cv_var__etext" >&6; }
25621 if test "$ac_cv_var__etext" = yes; then
25623 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
25627 $as_echo_n "checking for etext... " >&6; }
25628 if ${ac_cv_var_etext+:} false; then :
25629 $as_echo_n "(cached) " >&6
25630 else
25631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25632 /* end confdefs.h. */
25633 #include <stdlib.h>
25634 extern char etext;
25636 main ()
25638 free (&etext);
25641 return 0;
25643 _ACEOF
25644 if ac_fn_c_try_link "$LINENO"; then :
25645 ac_cv_var_etext=yes
25646 else
25647 ac_cv_var_etext=no
25650 rm -f core conftest.err conftest.$ac_objext \
25651 conftest$ac_exeext conftest.$ac_ext
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
25655 $as_echo "$ac_cv_var_etext" >&6; }
25656 if test "$ac_cv_var_etext" = yes; then
25658 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
25661 if test "$enable_profiling" = yes ; then
25662 if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
25663 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
25665 PROFILE_CFLAGS=-pg
25666 OLD_CFLAGS="$CFLAGS"
25667 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
25670 $as_echo_n "checking whether $CC supports -pg... " >&6; }
25671 if ${ac_cv_cc_supports_pg+:} false; then :
25672 $as_echo_n "(cached) " >&6
25673 else
25674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25675 /* end confdefs.h. */
25678 main ()
25680 int x;
25682 return 0;
25684 _ACEOF
25685 if ac_fn_c_try_compile "$LINENO"; then :
25686 ac_cv_cc_supports_pg=yes
25687 else
25688 ac_cv_cc_supports_pg=no
25691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
25695 $as_echo "$ac_cv_cc_supports_pg" >&6; }
25697 if test "$ac_cv_cc_supports_pg" = no; then
25698 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
25701 CFLAGS="$OLD_CFLAGS"
25704 CODESIGN_CERT=
25705 # Check whether --enable-codesign was given.
25706 if test "${enable_codesign+set}" = set; then :
25707 enableval=$enable_codesign; CODESIGN_CERT=$enableval
25714 # Check whether --with-pkgversion was given.
25715 if test "${with_pkgversion+set}" = set; then :
25716 withval=$with_pkgversion; case "$withval" in
25717 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
25718 no) PKGVERSION= ;;
25719 *) PKGVERSION="($withval) " ;;
25720 esac
25721 else
25722 PKGVERSION="(GDB) "
25730 # Check whether --with-bugurl was given.
25731 if test "${with_bugurl+set}" = set; then :
25732 withval=$with_bugurl; case "$withval" in
25733 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
25734 no) BUGURL=
25736 *) BUGURL="$withval"
25738 esac
25739 else
25740 BUGURL="https://www.gnu.org/software/gdb/bugs/"
25744 case ${BUGURL} in
25746 REPORT_BUGS_TO=
25747 REPORT_BUGS_TEXI=
25750 REPORT_BUGS_TO="<$BUGURL>"
25751 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
25753 esac;
25758 cat >>confdefs.h <<_ACEOF
25759 #define PKGVERSION "$PKGVERSION"
25760 _ACEOF
25763 cat >>confdefs.h <<_ACEOF
25764 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
25765 _ACEOF
25768 # --------------------- #
25769 # Checks for programs. #
25770 # --------------------- #
25772 for ac_prog in gawk mawk nawk awk
25774 # Extract the first word of "$ac_prog", so it can be a program name with args.
25775 set dummy $ac_prog; ac_word=$2
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25777 $as_echo_n "checking for $ac_word... " >&6; }
25778 if ${ac_cv_prog_AWK+:} false; then :
25779 $as_echo_n "(cached) " >&6
25780 else
25781 if test -n "$AWK"; then
25782 ac_cv_prog_AWK="$AWK" # Let the user override the test.
25783 else
25784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25785 for as_dir in $PATH
25787 IFS=$as_save_IFS
25788 test -z "$as_dir" && as_dir=.
25789 for ac_exec_ext in '' $ac_executable_extensions; do
25790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25791 ac_cv_prog_AWK="$ac_prog"
25792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25793 break 2
25795 done
25796 done
25797 IFS=$as_save_IFS
25801 AWK=$ac_cv_prog_AWK
25802 if test -n "$AWK"; then
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25804 $as_echo "$AWK" >&6; }
25805 else
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25807 $as_echo "no" >&6; }
25811 test -n "$AWK" && break
25812 done
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25816 $as_echo_n "checking whether ln -s works... " >&6; }
25817 LN_S=$as_ln_s
25818 if test "$LN_S" = "ln -s"; then
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25820 $as_echo "yes" >&6; }
25821 else
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25823 $as_echo "no, using $LN_S" >&6; }
25826 if test -n "$ac_tool_prefix"; then
25827 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
25828 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25830 $as_echo_n "checking for $ac_word... " >&6; }
25831 if ${ac_cv_prog_RANLIB+:} false; then :
25832 $as_echo_n "(cached) " >&6
25833 else
25834 if test -n "$RANLIB"; then
25835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
25836 else
25837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25838 for as_dir in $PATH
25840 IFS=$as_save_IFS
25841 test -z "$as_dir" && as_dir=.
25842 for ac_exec_ext in '' $ac_executable_extensions; do
25843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
25845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25846 break 2
25848 done
25849 done
25850 IFS=$as_save_IFS
25854 RANLIB=$ac_cv_prog_RANLIB
25855 if test -n "$RANLIB"; then
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
25857 $as_echo "$RANLIB" >&6; }
25858 else
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25860 $as_echo "no" >&6; }
25865 if test -z "$ac_cv_prog_RANLIB"; then
25866 ac_ct_RANLIB=$RANLIB
25867 # Extract the first word of "ranlib", so it can be a program name with args.
25868 set dummy ranlib; ac_word=$2
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25870 $as_echo_n "checking for $ac_word... " >&6; }
25871 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
25872 $as_echo_n "(cached) " >&6
25873 else
25874 if test -n "$ac_ct_RANLIB"; then
25875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
25876 else
25877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25878 for as_dir in $PATH
25880 IFS=$as_save_IFS
25881 test -z "$as_dir" && as_dir=.
25882 for ac_exec_ext in '' $ac_executable_extensions; do
25883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25884 ac_cv_prog_ac_ct_RANLIB="ranlib"
25885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25886 break 2
25888 done
25889 done
25890 IFS=$as_save_IFS
25894 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
25895 if test -n "$ac_ct_RANLIB"; then
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
25897 $as_echo "$ac_ct_RANLIB" >&6; }
25898 else
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25900 $as_echo "no" >&6; }
25903 if test "x$ac_ct_RANLIB" = x; then
25904 RANLIB=":"
25905 else
25906 case $cross_compiling:$ac_tool_warned in
25907 yes:)
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25910 ac_tool_warned=yes ;;
25911 esac
25912 RANLIB=$ac_ct_RANLIB
25914 else
25915 RANLIB="$ac_cv_prog_RANLIB"
25918 for ac_prog in 'bison -y' byacc
25920 # Extract the first word of "$ac_prog", so it can be a program name with args.
25921 set dummy $ac_prog; ac_word=$2
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25923 $as_echo_n "checking for $ac_word... " >&6; }
25924 if ${ac_cv_prog_YACC+:} false; then :
25925 $as_echo_n "(cached) " >&6
25926 else
25927 if test -n "$YACC"; then
25928 ac_cv_prog_YACC="$YACC" # Let the user override the test.
25929 else
25930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25931 for as_dir in $PATH
25933 IFS=$as_save_IFS
25934 test -z "$as_dir" && as_dir=.
25935 for ac_exec_ext in '' $ac_executable_extensions; do
25936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25937 ac_cv_prog_YACC="$ac_prog"
25938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25939 break 2
25941 done
25942 done
25943 IFS=$as_save_IFS
25947 YACC=$ac_cv_prog_YACC
25948 if test -n "$YACC"; then
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
25950 $as_echo "$YACC" >&6; }
25951 else
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25953 $as_echo "no" >&6; }
25957 test -n "$YACC" && break
25958 done
25959 test -n "$YACC" || YACC="yacc"
25962 if test -n "$ac_tool_prefix"; then
25963 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
25964 set dummy ${ac_tool_prefix}ar; ac_word=$2
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25966 $as_echo_n "checking for $ac_word... " >&6; }
25967 if ${ac_cv_prog_AR+:} false; then :
25968 $as_echo_n "(cached) " >&6
25969 else
25970 if test -n "$AR"; then
25971 ac_cv_prog_AR="$AR" # Let the user override the test.
25972 else
25973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25974 for as_dir in $PATH
25976 IFS=$as_save_IFS
25977 test -z "$as_dir" && as_dir=.
25978 for ac_exec_ext in '' $ac_executable_extensions; do
25979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25980 ac_cv_prog_AR="${ac_tool_prefix}ar"
25981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25982 break 2
25984 done
25985 done
25986 IFS=$as_save_IFS
25990 AR=$ac_cv_prog_AR
25991 if test -n "$AR"; then
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
25993 $as_echo "$AR" >&6; }
25994 else
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25996 $as_echo "no" >&6; }
26001 if test -z "$ac_cv_prog_AR"; then
26002 ac_ct_AR=$AR
26003 # Extract the first word of "ar", so it can be a program name with args.
26004 set dummy ar; ac_word=$2
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26006 $as_echo_n "checking for $ac_word... " >&6; }
26007 if ${ac_cv_prog_ac_ct_AR+:} false; then :
26008 $as_echo_n "(cached) " >&6
26009 else
26010 if test -n "$ac_ct_AR"; then
26011 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
26012 else
26013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26014 for as_dir in $PATH
26016 IFS=$as_save_IFS
26017 test -z "$as_dir" && as_dir=.
26018 for ac_exec_ext in '' $ac_executable_extensions; do
26019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26020 ac_cv_prog_ac_ct_AR="ar"
26021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26022 break 2
26024 done
26025 done
26026 IFS=$as_save_IFS
26030 ac_ct_AR=$ac_cv_prog_ac_ct_AR
26031 if test -n "$ac_ct_AR"; then
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
26033 $as_echo "$ac_ct_AR" >&6; }
26034 else
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26036 $as_echo "no" >&6; }
26039 if test "x$ac_ct_AR" = x; then
26040 AR=""
26041 else
26042 case $cross_compiling:$ac_tool_warned in
26043 yes:)
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26046 ac_tool_warned=yes ;;
26047 esac
26048 AR=$ac_ct_AR
26050 else
26051 AR="$ac_cv_prog_AR"
26054 if test -n "$ac_tool_prefix"; then
26055 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
26056 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26058 $as_echo_n "checking for $ac_word... " >&6; }
26059 if ${ac_cv_prog_DLLTOOL+:} false; then :
26060 $as_echo_n "(cached) " >&6
26061 else
26062 if test -n "$DLLTOOL"; then
26063 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
26064 else
26065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26066 for as_dir in $PATH
26068 IFS=$as_save_IFS
26069 test -z "$as_dir" && as_dir=.
26070 for ac_exec_ext in '' $ac_executable_extensions; do
26071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26072 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
26073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26074 break 2
26076 done
26077 done
26078 IFS=$as_save_IFS
26082 DLLTOOL=$ac_cv_prog_DLLTOOL
26083 if test -n "$DLLTOOL"; then
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
26085 $as_echo "$DLLTOOL" >&6; }
26086 else
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26088 $as_echo "no" >&6; }
26093 if test -z "$ac_cv_prog_DLLTOOL"; then
26094 ac_ct_DLLTOOL=$DLLTOOL
26095 # Extract the first word of "dlltool", so it can be a program name with args.
26096 set dummy dlltool; ac_word=$2
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26098 $as_echo_n "checking for $ac_word... " >&6; }
26099 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
26100 $as_echo_n "(cached) " >&6
26101 else
26102 if test -n "$ac_ct_DLLTOOL"; then
26103 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
26104 else
26105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26106 for as_dir in $PATH
26108 IFS=$as_save_IFS
26109 test -z "$as_dir" && as_dir=.
26110 for ac_exec_ext in '' $ac_executable_extensions; do
26111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26112 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
26113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26114 break 2
26116 done
26117 done
26118 IFS=$as_save_IFS
26122 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
26123 if test -n "$ac_ct_DLLTOOL"; then
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
26125 $as_echo "$ac_ct_DLLTOOL" >&6; }
26126 else
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26128 $as_echo "no" >&6; }
26131 if test "x$ac_ct_DLLTOOL" = x; then
26132 DLLTOOL=""
26133 else
26134 case $cross_compiling:$ac_tool_warned in
26135 yes:)
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26138 ac_tool_warned=yes ;;
26139 esac
26140 DLLTOOL=$ac_ct_DLLTOOL
26142 else
26143 DLLTOOL="$ac_cv_prog_DLLTOOL"
26146 if test -n "$ac_tool_prefix"; then
26147 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
26148 set dummy ${ac_tool_prefix}windres; ac_word=$2
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26150 $as_echo_n "checking for $ac_word... " >&6; }
26151 if ${ac_cv_prog_WINDRES+:} false; then :
26152 $as_echo_n "(cached) " >&6
26153 else
26154 if test -n "$WINDRES"; then
26155 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
26156 else
26157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26158 for as_dir in $PATH
26160 IFS=$as_save_IFS
26161 test -z "$as_dir" && as_dir=.
26162 for ac_exec_ext in '' $ac_executable_extensions; do
26163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26164 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
26165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26166 break 2
26168 done
26169 done
26170 IFS=$as_save_IFS
26174 WINDRES=$ac_cv_prog_WINDRES
26175 if test -n "$WINDRES"; then
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
26177 $as_echo "$WINDRES" >&6; }
26178 else
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26180 $as_echo "no" >&6; }
26185 if test -z "$ac_cv_prog_WINDRES"; then
26186 ac_ct_WINDRES=$WINDRES
26187 # Extract the first word of "windres", so it can be a program name with args.
26188 set dummy windres; ac_word=$2
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26190 $as_echo_n "checking for $ac_word... " >&6; }
26191 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
26192 $as_echo_n "(cached) " >&6
26193 else
26194 if test -n "$ac_ct_WINDRES"; then
26195 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
26196 else
26197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26198 for as_dir in $PATH
26200 IFS=$as_save_IFS
26201 test -z "$as_dir" && as_dir=.
26202 for ac_exec_ext in '' $ac_executable_extensions; do
26203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26204 ac_cv_prog_ac_ct_WINDRES="windres"
26205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26206 break 2
26208 done
26209 done
26210 IFS=$as_save_IFS
26214 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
26215 if test -n "$ac_ct_WINDRES"; then
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
26217 $as_echo "$ac_ct_WINDRES" >&6; }
26218 else
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26220 $as_echo "no" >&6; }
26223 if test "x$ac_ct_WINDRES" = x; then
26224 WINDRES=""
26225 else
26226 case $cross_compiling:$ac_tool_warned in
26227 yes:)
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26230 ac_tool_warned=yes ;;
26231 esac
26232 WINDRES=$ac_ct_WINDRES
26234 else
26235 WINDRES="$ac_cv_prog_WINDRES"
26239 case $host_os in
26240 gnu*)
26241 # Needed for GNU Hurd hosts.
26242 if test -n "$ac_tool_prefix"; then
26243 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
26244 set dummy ${ac_tool_prefix}mig; ac_word=$2
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26246 $as_echo_n "checking for $ac_word... " >&6; }
26247 if ${ac_cv_prog_MIG+:} false; then :
26248 $as_echo_n "(cached) " >&6
26249 else
26250 if test -n "$MIG"; then
26251 ac_cv_prog_MIG="$MIG" # Let the user override the test.
26252 else
26253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26254 for as_dir in $PATH
26256 IFS=$as_save_IFS
26257 test -z "$as_dir" && as_dir=.
26258 for ac_exec_ext in '' $ac_executable_extensions; do
26259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26260 ac_cv_prog_MIG="${ac_tool_prefix}mig"
26261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26262 break 2
26264 done
26265 done
26266 IFS=$as_save_IFS
26270 MIG=$ac_cv_prog_MIG
26271 if test -n "$MIG"; then
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
26273 $as_echo "$MIG" >&6; }
26274 else
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26276 $as_echo "no" >&6; }
26281 if test -z "$ac_cv_prog_MIG"; then
26282 ac_ct_MIG=$MIG
26283 # Extract the first word of "mig", so it can be a program name with args.
26284 set dummy mig; ac_word=$2
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26286 $as_echo_n "checking for $ac_word... " >&6; }
26287 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
26288 $as_echo_n "(cached) " >&6
26289 else
26290 if test -n "$ac_ct_MIG"; then
26291 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
26292 else
26293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26294 for as_dir in $PATH
26296 IFS=$as_save_IFS
26297 test -z "$as_dir" && as_dir=.
26298 for ac_exec_ext in '' $ac_executable_extensions; do
26299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26300 ac_cv_prog_ac_ct_MIG="mig"
26301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26302 break 2
26304 done
26305 done
26306 IFS=$as_save_IFS
26310 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
26311 if test -n "$ac_ct_MIG"; then
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
26313 $as_echo "$ac_ct_MIG" >&6; }
26314 else
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26316 $as_echo "no" >&6; }
26319 if test "x$ac_ct_MIG" = x; then
26320 MIG=""
26321 else
26322 case $cross_compiling:$ac_tool_warned in
26323 yes:)
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26326 ac_tool_warned=yes ;;
26327 esac
26328 MIG=$ac_ct_MIG
26330 else
26331 MIG="$ac_cv_prog_MIG"
26334 if test x"$MIG" = x; then
26335 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
26338 esac
26340 # ---------------------- #
26341 # Checks for libraries. #
26342 # ---------------------- #
26344 # We might need to link with -lm; most simulators need it.
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
26346 $as_echo_n "checking for main in -lm... " >&6; }
26347 if ${ac_cv_lib_m_main+:} false; then :
26348 $as_echo_n "(cached) " >&6
26349 else
26350 ac_check_lib_save_LIBS=$LIBS
26351 LIBS="-lm $LIBS"
26352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26353 /* end confdefs.h. */
26357 main ()
26359 return main ();
26361 return 0;
26363 _ACEOF
26364 if ac_fn_c_try_link "$LINENO"; then :
26365 ac_cv_lib_m_main=yes
26366 else
26367 ac_cv_lib_m_main=no
26369 rm -f core conftest.err conftest.$ac_objext \
26370 conftest$ac_exeext conftest.$ac_ext
26371 LIBS=$ac_check_lib_save_LIBS
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
26374 $as_echo "$ac_cv_lib_m_main" >&6; }
26375 if test "x$ac_cv_lib_m_main" = xyes; then :
26376 cat >>confdefs.h <<_ACEOF
26377 #define HAVE_LIBM 1
26378 _ACEOF
26380 LIBS="-lm $LIBS"
26385 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26387 $as_echo_n "checking for library containing gethostbyname... " >&6; }
26388 if ${ac_cv_search_gethostbyname+:} false; then :
26389 $as_echo_n "(cached) " >&6
26390 else
26391 ac_func_search_save_LIBS=$LIBS
26392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26393 /* end confdefs.h. */
26395 /* Override any GCC internal prototype to avoid an error.
26396 Use char because int might match the return type of a GCC
26397 builtin and then its argument prototype would still apply. */
26398 #ifdef __cplusplus
26399 extern "C"
26400 #endif
26401 char gethostbyname ();
26403 main ()
26405 return gethostbyname ();
26407 return 0;
26409 _ACEOF
26410 for ac_lib in '' nsl; do
26411 if test -z "$ac_lib"; then
26412 ac_res="none required"
26413 else
26414 ac_res=-l$ac_lib
26415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26417 if ac_fn_c_try_link "$LINENO"; then :
26418 ac_cv_search_gethostbyname=$ac_res
26420 rm -f core conftest.err conftest.$ac_objext \
26421 conftest$ac_exeext
26422 if ${ac_cv_search_gethostbyname+:} false; then :
26423 break
26425 done
26426 if ${ac_cv_search_gethostbyname+:} false; then :
26428 else
26429 ac_cv_search_gethostbyname=no
26431 rm conftest.$ac_ext
26432 LIBS=$ac_func_search_save_LIBS
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26435 $as_echo "$ac_cv_search_gethostbyname" >&6; }
26436 ac_res=$ac_cv_search_gethostbyname
26437 if test "$ac_res" != no; then :
26438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26443 # Link in zlib/zstd if we can. This allows us to read compressed debug
26444 # sections.
26446 # Use the system's zlib library.
26447 zlibdir="-L\$(top_builddir)/../zlib"
26448 zlibinc="-I\$(top_srcdir)/../zlib"
26450 # Check whether --with-system-zlib was given.
26451 if test "${with_system_zlib+set}" = set; then :
26452 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
26453 zlibdir=
26454 zlibinc=
26464 # Check whether --with-zstd was given.
26465 if test "${with_zstd+set}" = set; then :
26466 withval=$with_zstd;
26467 else
26468 with_zstd=auto
26472 if test "$with_zstd" != no; then :
26474 pkg_failed=no
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
26476 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
26478 if test -n "$ZSTD_CFLAGS"; then
26479 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
26480 elif test -n "$PKG_CONFIG"; then
26481 if test -n "$PKG_CONFIG" && \
26482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
26483 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
26484 ac_status=$?
26485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26486 test $ac_status = 0; }; then
26487 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
26488 test "x$?" != "x0" && pkg_failed=yes
26489 else
26490 pkg_failed=yes
26492 else
26493 pkg_failed=untried
26495 if test -n "$ZSTD_LIBS"; then
26496 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
26497 elif test -n "$PKG_CONFIG"; then
26498 if test -n "$PKG_CONFIG" && \
26499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
26500 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
26501 ac_status=$?
26502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26503 test $ac_status = 0; }; then
26504 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
26505 test "x$?" != "x0" && pkg_failed=yes
26506 else
26507 pkg_failed=yes
26509 else
26510 pkg_failed=untried
26513 if test $pkg_failed = no; then
26514 pkg_save_LDFLAGS="$LDFLAGS"
26515 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
26516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h. */
26520 main ()
26524 return 0;
26526 _ACEOF
26527 if ac_fn_c_try_link "$LINENO"; then :
26529 else
26530 pkg_failed=yes
26532 rm -f core conftest.err conftest.$ac_objext \
26533 conftest$ac_exeext conftest.$ac_ext
26534 LDFLAGS=$pkg_save_LDFLAGS
26539 if test $pkg_failed = yes; then
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26541 $as_echo "no" >&6; }
26543 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26544 _pkg_short_errors_supported=yes
26545 else
26546 _pkg_short_errors_supported=no
26548 if test $_pkg_short_errors_supported = yes; then
26549 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
26550 else
26551 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
26553 # Put the nasty error message in config.log where it belongs
26554 echo "$ZSTD_PKG_ERRORS" >&5
26557 if test "$with_zstd" = yes; then
26558 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
26561 elif test $pkg_failed = untried; then
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26563 $as_echo "no" >&6; }
26565 if test "$with_zstd" = yes; then
26566 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
26569 else
26570 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
26571 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26573 $as_echo "yes" >&6; }
26576 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
26589 am_save_CPPFLAGS="$CPPFLAGS"
26591 for element in $INCICONV; do
26592 haveit=
26593 for x in $CPPFLAGS; do
26595 acl_save_prefix="$prefix"
26596 prefix="$acl_final_prefix"
26597 acl_save_exec_prefix="$exec_prefix"
26598 exec_prefix="$acl_final_exec_prefix"
26599 eval x=\"$x\"
26600 exec_prefix="$acl_save_exec_prefix"
26601 prefix="$acl_save_prefix"
26603 if test "X$x" = "X$element"; then
26604 haveit=yes
26605 break
26607 done
26608 if test -z "$haveit"; then
26609 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26611 done
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
26615 $as_echo_n "checking for iconv... " >&6; }
26616 if ${am_cv_func_iconv+:} false; then :
26617 $as_echo_n "(cached) " >&6
26618 else
26620 am_cv_func_iconv="no, consider installing GNU libiconv"
26621 am_cv_lib_iconv=no
26622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26623 /* end confdefs.h. */
26625 #include <stdlib.h>
26626 #include <iconv.h>
26629 main ()
26631 iconv_t cd = iconv_open("","");
26632 iconv(cd,NULL,NULL,NULL,NULL);
26633 iconv_close(cd);
26635 return 0;
26637 _ACEOF
26638 if ac_fn_c_try_link "$LINENO"; then :
26639 am_cv_func_iconv=yes
26641 rm -f core conftest.err conftest.$ac_objext \
26642 conftest$ac_exeext conftest.$ac_ext
26643 if test "$am_cv_func_iconv" != yes; then
26644 am_save_LIBS="$LIBS"
26645 LIBS="$LIBS $LIBICONV"
26646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26647 /* end confdefs.h. */
26649 #include <stdlib.h>
26650 #include <iconv.h>
26653 main ()
26655 iconv_t cd = iconv_open("","");
26656 iconv(cd,NULL,NULL,NULL,NULL);
26657 iconv_close(cd);
26659 return 0;
26661 _ACEOF
26662 if ac_fn_c_try_link "$LINENO"; then :
26663 am_cv_lib_iconv=yes
26664 am_cv_func_iconv=yes
26666 rm -f core conftest.err conftest.$ac_objext \
26667 conftest$ac_exeext conftest.$ac_ext
26668 LIBS="$am_save_LIBS"
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
26673 $as_echo "$am_cv_func_iconv" >&6; }
26674 if test "$am_cv_func_iconv" = yes; then
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
26676 $as_echo_n "checking for working iconv... " >&6; }
26677 if ${am_cv_func_iconv_works+:} false; then :
26678 $as_echo_n "(cached) " >&6
26679 else
26681 am_save_LIBS="$LIBS"
26682 if test $am_cv_lib_iconv = yes; then
26683 LIBS="$LIBS $LIBICONV"
26685 am_cv_func_iconv_works=no
26686 for ac_iconv_const in '' 'const'; do
26687 if test "$cross_compiling" = yes; then :
26688 case "$host_os" in
26689 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
26690 *) am_cv_func_iconv_works="guessing yes" ;;
26691 esac
26692 else
26693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h. */
26696 #include <iconv.h>
26697 #include <string.h>
26699 #ifndef ICONV_CONST
26700 # define ICONV_CONST $ac_iconv_const
26701 #endif
26704 main ()
26706 int result = 0;
26707 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
26708 successful returns. This is even documented in
26709 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
26711 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
26712 if (cd_utf8_to_88591 != (iconv_t)(-1))
26714 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
26715 char buf[10];
26716 ICONV_CONST char *inptr = input;
26717 size_t inbytesleft = strlen (input);
26718 char *outptr = buf;
26719 size_t outbytesleft = sizeof (buf);
26720 size_t res = iconv (cd_utf8_to_88591,
26721 &inptr, &inbytesleft,
26722 &outptr, &outbytesleft);
26723 if (res == 0)
26724 result |= 1;
26725 iconv_close (cd_utf8_to_88591);
26728 /* Test against Solaris 10 bug: Failures are not distinguishable from
26729 successful returns. */
26731 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
26732 if (cd_ascii_to_88591 != (iconv_t)(-1))
26734 static ICONV_CONST char input[] = "\263";
26735 char buf[10];
26736 ICONV_CONST char *inptr = input;
26737 size_t inbytesleft = strlen (input);
26738 char *outptr = buf;
26739 size_t outbytesleft = sizeof (buf);
26740 size_t res = iconv (cd_ascii_to_88591,
26741 &inptr, &inbytesleft,
26742 &outptr, &outbytesleft);
26743 if (res == 0)
26744 result |= 2;
26745 iconv_close (cd_ascii_to_88591);
26748 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
26750 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
26751 if (cd_88591_to_utf8 != (iconv_t)(-1))
26753 static ICONV_CONST char input[] = "\304";
26754 static char buf[2] = { (char)0xDE, (char)0xAD };
26755 ICONV_CONST char *inptr = input;
26756 size_t inbytesleft = 1;
26757 char *outptr = buf;
26758 size_t outbytesleft = 1;
26759 size_t res = iconv (cd_88591_to_utf8,
26760 &inptr, &inbytesleft,
26761 &outptr, &outbytesleft);
26762 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
26763 result |= 4;
26764 iconv_close (cd_88591_to_utf8);
26767 #if 0 /* This bug could be worked around by the caller. */
26768 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
26770 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
26771 if (cd_88591_to_utf8 != (iconv_t)(-1))
26773 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
26774 char buf[50];
26775 ICONV_CONST char *inptr = input;
26776 size_t inbytesleft = strlen (input);
26777 char *outptr = buf;
26778 size_t outbytesleft = sizeof (buf);
26779 size_t res = iconv (cd_88591_to_utf8,
26780 &inptr, &inbytesleft,
26781 &outptr, &outbytesleft);
26782 if ((int)res > 0)
26783 result |= 8;
26784 iconv_close (cd_88591_to_utf8);
26787 #endif
26788 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
26789 provided. */
26791 /* Try standardized names. */
26792 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
26793 /* Try IRIX, OSF/1 names. */
26794 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
26795 /* Try AIX names. */
26796 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
26797 /* Try HP-UX names. */
26798 iconv_t cd4 = iconv_open ("utf8", "eucJP");
26799 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
26800 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
26801 result |= 16;
26802 if (cd1 != (iconv_t)(-1))
26803 iconv_close (cd1);
26804 if (cd2 != (iconv_t)(-1))
26805 iconv_close (cd2);
26806 if (cd3 != (iconv_t)(-1))
26807 iconv_close (cd3);
26808 if (cd4 != (iconv_t)(-1))
26809 iconv_close (cd4);
26811 return result;
26814 return 0;
26816 _ACEOF
26817 if ac_fn_c_try_run "$LINENO"; then :
26818 am_cv_func_iconv_works=yes
26820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26821 conftest.$ac_objext conftest.beam conftest.$ac_ext
26824 test "$am_cv_func_iconv_works" = no || break
26825 done
26826 LIBS="$am_save_LIBS"
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
26830 $as_echo "$am_cv_func_iconv_works" >&6; }
26831 case "$am_cv_func_iconv_works" in
26832 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
26833 *) am_func_iconv=yes ;;
26834 esac
26835 else
26836 am_func_iconv=no am_cv_lib_iconv=no
26838 if test "$am_func_iconv" = yes; then
26840 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
26843 if test "$am_cv_lib_iconv" = yes; then
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
26845 $as_echo_n "checking how to link with libiconv... " >&6; }
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
26847 $as_echo "$LIBICONV" >&6; }
26848 else
26849 CPPFLAGS="$am_save_CPPFLAGS"
26850 LIBICONV=
26851 LTLIBICONV=
26856 if test "$am_cv_func_iconv" = yes; then
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
26858 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
26859 if ${gl_cv_iconv_nonconst+:} false; then :
26860 $as_echo_n "(cached) " >&6
26861 else
26862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26863 /* end confdefs.h. */
26865 #include <stdlib.h>
26866 #include <iconv.h>
26867 extern
26868 #ifdef __cplusplus
26870 #endif
26871 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26874 main ()
26878 return 0;
26880 _ACEOF
26881 if ac_fn_c_try_compile "$LINENO"; then :
26882 gl_cv_iconv_nonconst=yes
26883 else
26884 gl_cv_iconv_nonconst=no
26886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
26890 $as_echo "$gl_cv_iconv_nonconst" >&6; }
26891 else
26892 gl_cv_iconv_nonconst=yes
26894 if test $gl_cv_iconv_nonconst = yes; then
26895 iconv_arg1=""
26896 else
26897 iconv_arg1="const"
26900 cat >>confdefs.h <<_ACEOF
26901 #define ICONV_CONST $iconv_arg1
26902 _ACEOF
26906 if test "$am_func_iconv" = yes; then
26907 if test -n "$LIBICONV"; then
26908 am_cv_func_iconv_summary='yes, in libiconv'
26909 else
26910 am_cv_func_iconv_summary='yes, in libc'
26912 else
26913 if test "$am_cv_func_iconv" = yes; then
26914 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
26915 else
26916 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
26921 # GDB may fork/exec the iconv program to get the list of supported character
26922 # sets. Allow the user to specify where to find it.
26923 # There are several factors affecting the choice of option name:
26924 # - There is already --with-libiconv-prefix but we can't use it, it specifies
26925 # the build-time location of libiconv files.
26926 # - The program we need to find is iconv, which comes with glibc. The user
26927 # doesn't necessarily have libiconv installed. Therefore naming this
26928 # --with-libiconv-foo feels wrong.
26929 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
26930 # defined to work on directories not files (though it really doesn't know
26931 # the difference).
26932 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
26933 # with --with-libiconv-prefix.
26934 # Putting these together is why the option name is --with-iconv-bin.
26937 # Check whether --with-iconv-bin was given.
26938 if test "${with_iconv_bin+set}" = set; then :
26939 withval=$with_iconv_bin; iconv_bin="${withval}"
26941 cat >>confdefs.h <<_ACEOF
26942 #define ICONV_BIN "${iconv_bin}"
26943 _ACEOF
26946 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
26947 if test "x$prefix" = xNONE; then
26948 test_prefix=/usr/local
26949 else
26950 test_prefix=$prefix
26952 else
26953 test_prefix=$exec_prefix
26955 value=0
26956 case ${iconv_bin} in
26957 "${test_prefix}"|"${test_prefix}/"*|\
26958 '${exec_prefix}'|'${exec_prefix}/'*)
26959 value=1
26961 esac
26963 cat >>confdefs.h <<_ACEOF
26964 #define ICONV_BIN_RELOCATABLE $value
26965 _ACEOF
26972 # For the TUI, we need enhanced curses functionality.
26973 if test x"$enable_tui" != xno; then
26974 prefer_curses=yes
26977 curses_found=no
26978 if test x"$prefer_curses" = xyes; then
26979 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
26980 # curses library because the latter might not provide all the
26981 # functionality we need. However, this leads to problems on systems
26982 # where the linker searches /usr/local/lib, but the compiler doesn't
26983 # search /usr/local/include, if ncurses is installed in /usr/local. A
26984 # default installation of ncurses on alpha*-dec-osf* will lead to such
26985 # a situation.
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
26987 $as_echo_n "checking for library containing waddstr... " >&6; }
26988 if ${ac_cv_search_waddstr+:} false; then :
26989 $as_echo_n "(cached) " >&6
26990 else
26991 ac_func_search_save_LIBS=$LIBS
26992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26993 /* end confdefs.h. */
26995 /* Override any GCC internal prototype to avoid an error.
26996 Use char because int might match the return type of a GCC
26997 builtin and then its argument prototype would still apply. */
26998 #ifdef __cplusplus
26999 extern "C"
27000 #endif
27001 char waddstr ();
27003 main ()
27005 return waddstr ();
27007 return 0;
27009 _ACEOF
27010 for ac_lib in '' ncursesw ncurses cursesX curses; do
27011 if test -z "$ac_lib"; then
27012 ac_res="none required"
27013 else
27014 ac_res=-l$ac_lib
27015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27017 if ac_fn_c_try_link "$LINENO"; then :
27018 ac_cv_search_waddstr=$ac_res
27020 rm -f core conftest.err conftest.$ac_objext \
27021 conftest$ac_exeext
27022 if ${ac_cv_search_waddstr+:} false; then :
27023 break
27025 done
27026 if ${ac_cv_search_waddstr+:} false; then :
27028 else
27029 ac_cv_search_waddstr=no
27031 rm conftest.$ac_ext
27032 LIBS=$ac_func_search_save_LIBS
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
27035 $as_echo "$ac_cv_search_waddstr" >&6; }
27036 ac_res=$ac_cv_search_waddstr
27037 if test "$ac_res" != no; then :
27038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27039 curses_found=yes
27041 $as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h
27048 # Check whether we should enable the TUI, but only do so if we really
27049 # can.
27050 if test x"$enable_tui" != xno; then
27051 if test "$curses_found" != no; then
27052 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
27053 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
27054 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
27055 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
27056 else
27057 if test x"$enable_tui" = xyes; then
27058 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
27059 else
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
27061 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
27066 # Since GDB uses Readline, we need termcap functionality. In many
27067 # cases this will be provided by the curses library, but some systems
27068 # have a separate termcap library, or no curses library at all.
27070 case $host_os in
27071 cygwin*)
27072 if test -d "$srcdir/libtermcap"; then
27073 LIBS="../libtermcap/libtermcap.a $LIBS"
27074 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
27075 fi ;;
27076 go32* | *djgpp*)
27077 ac_cv_search_tgetent="none required"
27079 esac
27081 # These are the libraries checked by Readline.
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
27083 $as_echo_n "checking for library containing tgetent... " >&6; }
27084 if ${ac_cv_search_tgetent+:} false; then :
27085 $as_echo_n "(cached) " >&6
27086 else
27087 ac_func_search_save_LIBS=$LIBS
27088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27089 /* end confdefs.h. */
27091 /* Override any GCC internal prototype to avoid an error.
27092 Use char because int might match the return type of a GCC
27093 builtin and then its argument prototype would still apply. */
27094 #ifdef __cplusplus
27095 extern "C"
27096 #endif
27097 char tgetent ();
27099 main ()
27101 return tgetent ();
27103 return 0;
27105 _ACEOF
27106 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
27107 if test -z "$ac_lib"; then
27108 ac_res="none required"
27109 else
27110 ac_res=-l$ac_lib
27111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27113 if ac_fn_c_try_link "$LINENO"; then :
27114 ac_cv_search_tgetent=$ac_res
27116 rm -f core conftest.err conftest.$ac_objext \
27117 conftest$ac_exeext
27118 if ${ac_cv_search_tgetent+:} false; then :
27119 break
27121 done
27122 if ${ac_cv_search_tgetent+:} false; then :
27124 else
27125 ac_cv_search_tgetent=no
27127 rm conftest.$ac_ext
27128 LIBS=$ac_func_search_save_LIBS
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
27131 $as_echo "$ac_cv_search_tgetent" >&6; }
27132 ac_res=$ac_cv_search_tgetent
27133 if test "$ac_res" != no; then :
27134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27139 if test "$ac_cv_search_tgetent" = no; then
27140 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
27144 # Check whether --with-system-readline was given.
27145 if test "${with_system_readline+set}" = set; then :
27146 withval=$with_system_readline;
27150 if test "$with_system_readline" = yes; then
27151 for ac_header in readline/readline.h
27152 do :
27153 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
27154 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
27155 cat >>confdefs.h <<_ACEOF
27156 #define HAVE_READLINE_READLINE_H 1
27157 _ACEOF
27158 readline_h=yes
27159 else
27160 readline_h=no
27163 done
27165 if test "$readline_h" = "no"; then
27166 as_fn_error $? "readline development packages are probably missing" "$LINENO" 5
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
27169 $as_echo_n "checking whether system readline is new enough... " >&6; }
27170 if ${gdb_cv_readline_ok+:} false; then :
27171 $as_echo_n "(cached) " >&6
27172 else
27173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27174 /* end confdefs.h. */
27175 #include <stdio.h>
27176 #include <readline/readline.h>
27178 main ()
27180 #if RL_VERSION_MAJOR < 7
27181 # error "readline version 7 required"
27182 #endif
27185 return 0;
27187 _ACEOF
27188 if ac_fn_c_try_compile "$LINENO"; then :
27189 gdb_cv_readline_ok=yes
27190 else
27191 gdb_cv_readline_ok=no
27194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
27198 $as_echo "$gdb_cv_readline_ok" >&6; }
27199 if test "$gdb_cv_readline_ok" != yes; then
27200 as_fn_error $? "system readline is not new enough" "$LINENO" 5
27203 READLINE=-lreadline
27204 READLINE_DEPS=
27205 READLINE_CFLAGS=
27206 READLINE_TEXI_INCFLAG=
27207 READLINE_DOC_SOURCE_INCLUDES='$(READLINE_SYSTEM_DOC_INCLUDES)'
27208 else
27209 READLINE='$(READLINE_DIR)/libreadline.a'
27210 READLINE_DEPS='$(READLINE)'
27211 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
27212 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
27213 READLINE_DOC_SOURCE_INCLUDES='$(READLINE_INTREE_DOC_INCLUDES)'
27221 # Generate jit-reader.h
27223 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
27224 TARGET_PTR=
27226 # The cast to long int works around a bug in the HP C Compiler
27227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27229 # This bug is HP SR number 8606223364.
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
27231 $as_echo_n "checking size of unsigned long long... " >&6; }
27232 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
27233 $as_echo_n "(cached) " >&6
27234 else
27235 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
27237 else
27238 if test "$ac_cv_type_unsigned_long_long" = yes; then
27239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27241 as_fn_error 77 "cannot compute sizeof (unsigned long long)
27242 See \`config.log' for more details" "$LINENO" 5; }
27243 else
27244 ac_cv_sizeof_unsigned_long_long=0
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
27250 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
27254 cat >>confdefs.h <<_ACEOF
27255 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27256 _ACEOF
27259 # The cast to long int works around a bug in the HP C Compiler
27260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27262 # This bug is HP SR number 8606223364.
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
27264 $as_echo_n "checking size of unsigned long... " >&6; }
27265 if ${ac_cv_sizeof_unsigned_long+:} false; then :
27266 $as_echo_n "(cached) " >&6
27267 else
27268 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
27270 else
27271 if test "$ac_cv_type_unsigned_long" = yes; then
27272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27274 as_fn_error 77 "cannot compute sizeof (unsigned long)
27275 See \`config.log' for more details" "$LINENO" 5; }
27276 else
27277 ac_cv_sizeof_unsigned_long=0
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
27283 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
27287 cat >>confdefs.h <<_ACEOF
27288 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
27289 _ACEOF
27292 # The cast to long int works around a bug in the HP C Compiler
27293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27295 # This bug is HP SR number 8606223364.
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
27297 $as_echo_n "checking size of unsigned __int128... " >&6; }
27298 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
27299 $as_echo_n "(cached) " >&6
27300 else
27301 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
27303 else
27304 if test "$ac_cv_type_unsigned___int128" = yes; then
27305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27307 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
27308 See \`config.log' for more details" "$LINENO" 5; }
27309 else
27310 ac_cv_sizeof_unsigned___int128=0
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
27316 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
27320 cat >>confdefs.h <<_ACEOF
27321 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
27322 _ACEOF
27326 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
27327 TARGET_PTR="unsigned long"
27328 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
27329 TARGET_PTR="unsigned long long"
27330 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
27331 TARGET_PTR="unsigned __int128"
27332 else
27333 TARGET_PTR="unsigned long"
27337 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27341 $as_echo_n "checking for library containing dlopen... " >&6; }
27342 if ${ac_cv_search_dlopen+:} false; then :
27343 $as_echo_n "(cached) " >&6
27344 else
27345 ac_func_search_save_LIBS=$LIBS
27346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27347 /* end confdefs.h. */
27349 /* Override any GCC internal prototype to avoid an error.
27350 Use char because int might match the return type of a GCC
27351 builtin and then its argument prototype would still apply. */
27352 #ifdef __cplusplus
27353 extern "C"
27354 #endif
27355 char dlopen ();
27357 main ()
27359 return dlopen ();
27361 return 0;
27363 _ACEOF
27364 for ac_lib in '' dl; do
27365 if test -z "$ac_lib"; then
27366 ac_res="none required"
27367 else
27368 ac_res=-l$ac_lib
27369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27371 if ac_fn_c_try_link "$LINENO"; then :
27372 ac_cv_search_dlopen=$ac_res
27374 rm -f core conftest.err conftest.$ac_objext \
27375 conftest$ac_exeext
27376 if ${ac_cv_search_dlopen+:} false; then :
27377 break
27379 done
27380 if ${ac_cv_search_dlopen+:} false; then :
27382 else
27383 ac_cv_search_dlopen=no
27385 rm conftest.$ac_ext
27386 LIBS=$ac_func_search_save_LIBS
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27389 $as_echo "$ac_cv_search_dlopen" >&6; }
27390 ac_res=$ac_cv_search_dlopen
27391 if test "$ac_res" != no; then :
27392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27399 # Check whether --with-jit-reader-dir was given.
27400 if test "${with_jit_reader_dir+set}" = set; then :
27401 withval=$with_jit_reader_dir;
27402 JIT_READER_DIR=$withval
27403 else
27404 JIT_READER_DIR=${libdir}/gdb
27408 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
27409 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27410 ac_define_dir=`eval echo $JIT_READER_DIR`
27411 ac_define_dir=`eval echo $ac_define_dir`
27413 cat >>confdefs.h <<_ACEOF
27414 #define JIT_READER_DIR "$ac_define_dir"
27415 _ACEOF
27420 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
27421 if test "x$prefix" = xNONE; then
27422 test_prefix=/usr/local
27423 else
27424 test_prefix=$prefix
27426 else
27427 test_prefix=$exec_prefix
27429 value=0
27430 case ${ac_define_dir} in
27431 "${test_prefix}"|"${test_prefix}/"*|\
27432 '${exec_prefix}'|'${exec_prefix}/'*)
27433 value=1
27435 esac
27437 cat >>confdefs.h <<_ACEOF
27438 #define JIT_READER_DIR_RELOCATABLE $value
27439 _ACEOF
27445 # Check whether --with-expat was given.
27446 if test "${with_expat+set}" = set; then :
27447 withval=$with_expat;
27448 else
27449 with_expat=auto
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
27453 $as_echo_n "checking whether to use expat... " >&6; }
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
27455 $as_echo "$with_expat" >&6; }
27457 if test "${with_expat}" = no; then
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
27459 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
27460 HAVE_LIBEXPAT=no
27461 else
27470 use_additional=yes
27472 acl_save_prefix="$prefix"
27473 prefix="$acl_final_prefix"
27474 acl_save_exec_prefix="$exec_prefix"
27475 exec_prefix="$acl_final_exec_prefix"
27477 eval additional_includedir=\"$includedir\"
27478 eval additional_libdir=\"$libdir\"
27480 exec_prefix="$acl_save_exec_prefix"
27481 prefix="$acl_save_prefix"
27484 # Check whether --with-libexpat-prefix was given.
27485 if test "${with_libexpat_prefix+set}" = set; then :
27486 withval=$with_libexpat_prefix;
27487 if test "X$withval" = "Xno"; then
27488 use_additional=no
27489 else
27490 if test "X$withval" = "X"; then
27492 acl_save_prefix="$prefix"
27493 prefix="$acl_final_prefix"
27494 acl_save_exec_prefix="$exec_prefix"
27495 exec_prefix="$acl_final_exec_prefix"
27497 eval additional_includedir=\"$includedir\"
27498 eval additional_libdir=\"$libdir\"
27500 exec_prefix="$acl_save_exec_prefix"
27501 prefix="$acl_save_prefix"
27503 else
27504 additional_includedir="$withval/include"
27505 additional_libdir="$withval/lib"
27512 # Check whether --with-libexpat-type was given.
27513 if test "${with_libexpat_type+set}" = set; then :
27514 withval=$with_libexpat_type; with_libexpat_type=$withval
27515 else
27516 with_libexpat_type=auto
27519 lib_type=`eval echo \$with_libexpat_type`
27521 LIBEXPAT=
27522 LTLIBEXPAT=
27523 INCEXPAT=
27524 rpathdirs=
27525 ltrpathdirs=
27526 names_already_handled=
27527 names_next_round='expat '
27528 while test -n "$names_next_round"; do
27529 names_this_round="$names_next_round"
27530 names_next_round=
27531 for name in $names_this_round; do
27532 already_handled=
27533 for n in $names_already_handled; do
27534 if test "$n" = "$name"; then
27535 already_handled=yes
27536 break
27538 done
27539 if test -z "$already_handled"; then
27540 names_already_handled="$names_already_handled $name"
27541 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27542 eval value=\"\$HAVE_LIB$uppername\"
27543 if test -n "$value"; then
27544 if test "$value" = yes; then
27545 eval value=\"\$LIB$uppername\"
27546 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
27547 eval value=\"\$LTLIB$uppername\"
27548 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
27549 else
27552 else
27553 found_dir=
27554 found_la=
27555 found_so=
27556 found_a=
27557 if test $use_additional = yes; then
27558 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
27559 found_dir="$additional_libdir"
27560 found_so="$additional_libdir/lib$name.$shlibext"
27561 if test -f "$additional_libdir/lib$name.la"; then
27562 found_la="$additional_libdir/lib$name.la"
27564 elif test x$lib_type != xshared; then
27565 if test -f "$additional_libdir/lib$name.$libext"; then
27566 found_dir="$additional_libdir"
27567 found_a="$additional_libdir/lib$name.$libext"
27568 if test -f "$additional_libdir/lib$name.la"; then
27569 found_la="$additional_libdir/lib$name.la"
27574 if test "X$found_dir" = "X"; then
27575 for x in $LDFLAGS $LTLIBEXPAT; do
27577 acl_save_prefix="$prefix"
27578 prefix="$acl_final_prefix"
27579 acl_save_exec_prefix="$exec_prefix"
27580 exec_prefix="$acl_final_exec_prefix"
27581 eval x=\"$x\"
27582 exec_prefix="$acl_save_exec_prefix"
27583 prefix="$acl_save_prefix"
27585 case "$x" in
27586 -L*)
27587 dir=`echo "X$x" | sed -e 's/^X-L//'`
27588 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
27589 found_dir="$dir"
27590 found_so="$dir/lib$name.$shlibext"
27591 if test -f "$dir/lib$name.la"; then
27592 found_la="$dir/lib$name.la"
27594 elif test x$lib_type != xshared; then
27595 if test -f "$dir/lib$name.$libext"; then
27596 found_dir="$dir"
27597 found_a="$dir/lib$name.$libext"
27598 if test -f "$dir/lib$name.la"; then
27599 found_la="$dir/lib$name.la"
27604 esac
27605 if test "X$found_dir" != "X"; then
27606 break
27608 done
27610 if test "X$found_dir" != "X"; then
27611 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
27612 if test "X$found_so" != "X"; then
27613 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
27614 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27615 else
27616 haveit=
27617 for x in $ltrpathdirs; do
27618 if test "X$x" = "X$found_dir"; then
27619 haveit=yes
27620 break
27622 done
27623 if test -z "$haveit"; then
27624 ltrpathdirs="$ltrpathdirs $found_dir"
27626 if test "$hardcode_direct" = yes; then
27627 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27628 else
27629 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27630 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27631 haveit=
27632 for x in $rpathdirs; do
27633 if test "X$x" = "X$found_dir"; then
27634 haveit=yes
27635 break
27637 done
27638 if test -z "$haveit"; then
27639 rpathdirs="$rpathdirs $found_dir"
27641 else
27642 haveit=
27643 for x in $LDFLAGS $LIBEXPAT; do
27645 acl_save_prefix="$prefix"
27646 prefix="$acl_final_prefix"
27647 acl_save_exec_prefix="$exec_prefix"
27648 exec_prefix="$acl_final_exec_prefix"
27649 eval x=\"$x\"
27650 exec_prefix="$acl_save_exec_prefix"
27651 prefix="$acl_save_prefix"
27653 if test "X$x" = "X-L$found_dir"; then
27654 haveit=yes
27655 break
27657 done
27658 if test -z "$haveit"; then
27659 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
27661 if test "$hardcode_minus_L" != no; then
27662 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27663 else
27664 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
27669 else
27670 if test "X$found_a" != "X"; then
27671 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
27672 else
27673 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
27676 additional_includedir=
27677 case "$found_dir" in
27678 */lib | */lib/)
27679 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27680 additional_includedir="$basedir/include"
27682 esac
27683 if test "X$additional_includedir" != "X"; then
27684 if test "X$additional_includedir" != "X/usr/include"; then
27685 haveit=
27686 if test "X$additional_includedir" = "X/usr/local/include"; then
27687 if test -n "$GCC"; then
27688 case $host_os in
27689 linux*) haveit=yes;;
27690 esac
27693 if test -z "$haveit"; then
27694 for x in $CPPFLAGS $INCEXPAT; do
27696 acl_save_prefix="$prefix"
27697 prefix="$acl_final_prefix"
27698 acl_save_exec_prefix="$exec_prefix"
27699 exec_prefix="$acl_final_exec_prefix"
27700 eval x=\"$x\"
27701 exec_prefix="$acl_save_exec_prefix"
27702 prefix="$acl_save_prefix"
27704 if test "X$x" = "X-I$additional_includedir"; then
27705 haveit=yes
27706 break
27708 done
27709 if test -z "$haveit"; then
27710 if test -d "$additional_includedir"; then
27711 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
27717 if test -n "$found_la"; then
27718 save_libdir="$libdir"
27719 case "$found_la" in
27720 */* | *\\*) . "$found_la" ;;
27721 *) . "./$found_la" ;;
27722 esac
27723 libdir="$save_libdir"
27724 for dep in $dependency_libs; do
27725 case "$dep" in
27726 -L*)
27727 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27728 if test "X$additional_libdir" != "X/usr/lib"; then
27729 haveit=
27730 if test "X$additional_libdir" = "X/usr/local/lib"; then
27731 if test -n "$GCC"; then
27732 case $host_os in
27733 linux*) haveit=yes;;
27734 esac
27737 if test -z "$haveit"; then
27738 haveit=
27739 for x in $LDFLAGS $LIBEXPAT; do
27741 acl_save_prefix="$prefix"
27742 prefix="$acl_final_prefix"
27743 acl_save_exec_prefix="$exec_prefix"
27744 exec_prefix="$acl_final_exec_prefix"
27745 eval x=\"$x\"
27746 exec_prefix="$acl_save_exec_prefix"
27747 prefix="$acl_save_prefix"
27749 if test "X$x" = "X-L$additional_libdir"; then
27750 haveit=yes
27751 break
27753 done
27754 if test -z "$haveit"; then
27755 if test -d "$additional_libdir"; then
27756 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
27759 haveit=
27760 for x in $LDFLAGS $LTLIBEXPAT; do
27762 acl_save_prefix="$prefix"
27763 prefix="$acl_final_prefix"
27764 acl_save_exec_prefix="$exec_prefix"
27765 exec_prefix="$acl_final_exec_prefix"
27766 eval x=\"$x\"
27767 exec_prefix="$acl_save_exec_prefix"
27768 prefix="$acl_save_prefix"
27770 if test "X$x" = "X-L$additional_libdir"; then
27771 haveit=yes
27772 break
27774 done
27775 if test -z "$haveit"; then
27776 if test -d "$additional_libdir"; then
27777 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
27783 -R*)
27784 dir=`echo "X$dep" | sed -e 's/^X-R//'`
27785 if test "$enable_rpath" != no; then
27786 haveit=
27787 for x in $rpathdirs; do
27788 if test "X$x" = "X$dir"; then
27789 haveit=yes
27790 break
27792 done
27793 if test -z "$haveit"; then
27794 rpathdirs="$rpathdirs $dir"
27796 haveit=
27797 for x in $ltrpathdirs; do
27798 if test "X$x" = "X$dir"; then
27799 haveit=yes
27800 break
27802 done
27803 if test -z "$haveit"; then
27804 ltrpathdirs="$ltrpathdirs $dir"
27808 -l*)
27809 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27811 *.la)
27812 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27815 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
27816 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
27818 esac
27819 done
27821 else
27822 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
27823 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
27824 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
27825 else
27826 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
27827 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
27832 done
27833 done
27834 if test "X$rpathdirs" != "X"; then
27835 if test -n "$hardcode_libdir_separator"; then
27836 alldirs=
27837 for found_dir in $rpathdirs; do
27838 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27839 done
27840 acl_save_libdir="$libdir"
27841 libdir="$alldirs"
27842 eval flag=\"$hardcode_libdir_flag_spec\"
27843 libdir="$acl_save_libdir"
27844 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
27845 else
27846 for found_dir in $rpathdirs; do
27847 acl_save_libdir="$libdir"
27848 libdir="$found_dir"
27849 eval flag=\"$hardcode_libdir_flag_spec\"
27850 libdir="$acl_save_libdir"
27851 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
27852 done
27855 if test "X$ltrpathdirs" != "X"; then
27856 for found_dir in $ltrpathdirs; do
27857 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
27858 done
27862 ac_save_CPPFLAGS="$CPPFLAGS"
27864 for element in $INCEXPAT; do
27865 haveit=
27866 for x in $CPPFLAGS; do
27868 acl_save_prefix="$prefix"
27869 prefix="$acl_final_prefix"
27870 acl_save_exec_prefix="$exec_prefix"
27871 exec_prefix="$acl_final_exec_prefix"
27872 eval x=\"$x\"
27873 exec_prefix="$acl_save_exec_prefix"
27874 prefix="$acl_save_prefix"
27876 if test "X$x" = "X$element"; then
27877 haveit=yes
27878 break
27880 done
27881 if test -z "$haveit"; then
27882 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27884 done
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
27888 $as_echo_n "checking for libexpat... " >&6; }
27889 if ${ac_cv_libexpat+:} false; then :
27890 $as_echo_n "(cached) " >&6
27891 else
27893 ac_save_LIBS="$LIBS"
27894 LIBS="$LIBS $LIBEXPAT"
27895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27896 /* end confdefs.h. */
27897 #include "expat.h"
27899 main ()
27901 XML_Parser p = XML_ParserCreate (0);
27903 return 0;
27905 _ACEOF
27906 if ac_fn_c_try_link "$LINENO"; then :
27907 ac_cv_libexpat=yes
27908 else
27909 ac_cv_libexpat=no
27911 rm -f core conftest.err conftest.$ac_objext \
27912 conftest$ac_exeext conftest.$ac_ext
27913 LIBS="$ac_save_LIBS"
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
27917 $as_echo "$ac_cv_libexpat" >&6; }
27918 if test "$ac_cv_libexpat" = yes; then
27919 HAVE_LIBEXPAT=yes
27921 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
27924 $as_echo_n "checking how to link with libexpat... " >&6; }
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
27926 $as_echo "$LIBEXPAT" >&6; }
27927 else
27928 HAVE_LIBEXPAT=no
27929 CPPFLAGS="$ac_save_CPPFLAGS"
27930 LIBEXPAT=
27931 LTLIBEXPAT=
27939 if test "$HAVE_LIBEXPAT" != yes; then
27940 if test "$with_expat" = yes; then
27941 as_fn_error $? "expat is missing or unusable" "$LINENO" 5
27942 else
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
27944 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
27946 else
27947 save_LIBS=$LIBS
27948 LIBS="$LIBS $LIBEXPAT"
27949 for ac_func in XML_StopParser
27950 do :
27951 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
27952 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
27953 cat >>confdefs.h <<_ACEOF
27954 #define HAVE_XML_STOPPARSER 1
27955 _ACEOF
27958 done
27960 LIBS=$save_LIBS
27967 # --------------------- #
27968 # Check for libpython. #
27969 # --------------------- #
27976 # Check whether --with-python was given.
27977 if test "${with_python+set}" = set; then :
27978 withval=$with_python;
27979 else
27980 with_python=auto
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
27984 $as_echo_n "checking whether to use python... " >&6; }
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
27986 $as_echo "$with_python" >&6; }
27988 if test "${with_python}" = no; then
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
27990 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
27991 have_libpython=no
27992 else
27993 case "${with_python}" in
27994 [\\/]* | ?:[\\/]*)
27995 if test -d "${with_python}"; then
27996 # Assume the python binary is ${with_python}/bin/python.
27997 python_prog="${with_python}/bin/python"
27998 python_prefix=
27999 # If python does not exit ${with_python}/bin, then try in
28000 # ${with_python}. On Windows/MinGW, this is where the Python
28001 # executable is.
28002 if test ! -x "${python_prog}"; then
28003 python_prog="${with_python}/python"
28004 python_prefix=
28006 if test ! -x "${python_prog}"; then
28007 # Fall back to gdb 7.0/7.1 behavior.
28008 python_prog=missing
28009 python_prefix=${with_python}
28011 elif test -x "${with_python}"; then
28012 # While we can't run python compiled for $host (unless host == build),
28013 # the user could write a script that provides the needed information,
28014 # so we support that.
28015 python_prog=${with_python}
28016 python_prefix=
28017 else
28018 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
28021 */*)
28022 # Disallow --with-python=foo/bar.
28023 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
28026 # The user has either specified auto, yes, or the name of the python
28027 # program assumed to be in $PATH.
28028 python_prefix=
28029 case "${with_python}" in
28030 yes | auto)
28031 if test "${build}" = "${host}"; then
28032 # Look first for 'python', then 'python3'.
28033 for ac_prog in python python3
28035 # Extract the first word of "$ac_prog", so it can be a program name with args.
28036 set dummy $ac_prog; ac_word=$2
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28038 $as_echo_n "checking for $ac_word... " >&6; }
28039 if ${ac_cv_path_python_prog_path+:} false; then :
28040 $as_echo_n "(cached) " >&6
28041 else
28042 case $python_prog_path in
28043 [\\/]* | ?:[\\/]*)
28044 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
28047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28048 for as_dir in $PATH
28050 IFS=$as_save_IFS
28051 test -z "$as_dir" && as_dir=.
28052 for ac_exec_ext in '' $ac_executable_extensions; do
28053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28054 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
28055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28056 break 2
28058 done
28059 done
28060 IFS=$as_save_IFS
28063 esac
28065 python_prog_path=$ac_cv_path_python_prog_path
28066 if test -n "$python_prog_path"; then
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
28068 $as_echo "$python_prog_path" >&6; }
28069 else
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28071 $as_echo "no" >&6; }
28075 test -n "$python_prog_path" && break
28076 done
28077 test -n "$python_prog_path" || python_prog_path="missing"
28079 if test "${python_prog_path}" = missing; then
28080 python_prog=missing
28081 else
28082 python_prog=${python_prog_path}
28084 else
28085 # Not much we can do except assume the cross-compiler will find the
28086 # right files.
28087 python_prog=missing
28091 # While we can't run python compiled for $host (unless host == build),
28092 # the user could write a script that provides the needed information,
28093 # so we support that.
28094 python_prog="${with_python}"
28095 # Extract the first word of "${python_prog}", so it can be a program name with args.
28096 set dummy ${python_prog}; ac_word=$2
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28098 $as_echo_n "checking for $ac_word... " >&6; }
28099 if ${ac_cv_path_python_prog_path+:} false; then :
28100 $as_echo_n "(cached) " >&6
28101 else
28102 case $python_prog_path in
28103 [\\/]* | ?:[\\/]*)
28104 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
28107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28108 for as_dir in $PATH
28110 IFS=$as_save_IFS
28111 test -z "$as_dir" && as_dir=.
28112 for ac_exec_ext in '' $ac_executable_extensions; do
28113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28114 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
28115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28116 break 2
28118 done
28119 done
28120 IFS=$as_save_IFS
28122 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
28124 esac
28126 python_prog_path=$ac_cv_path_python_prog_path
28127 if test -n "$python_prog_path"; then
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
28129 $as_echo "$python_prog_path" >&6; }
28130 else
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28132 $as_echo "no" >&6; }
28136 if test "${python_prog_path}" = missing; then
28137 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
28140 esac
28141 esac
28143 if test "${python_prog}" != missing; then
28144 # We have a python program to use, but it may be too old.
28145 # Don't flag an error for --with-python=auto (the default).
28146 have_python_config=yes
28147 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
28148 if test $? != 0; then
28149 have_python_config=failed
28150 if test "${with_python}" != auto; then
28151 as_fn_error $? "failure running python-config --includes" "$LINENO" 5
28154 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
28155 if test $? != 0; then
28156 have_python_config=failed
28157 if test "${with_python}" != auto; then
28158 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
28161 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
28162 if test $? != 0; then
28163 have_python_config=failed
28164 if test "${with_python}" != auto; then
28165 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
28168 else
28169 # We do not have a python executable we can use to determine where
28170 # to find the Python headers and libs. We cannot guess the include
28171 # path from the python_prefix either, because that include path
28172 # depends on the Python version. So, there is nothing much we can
28173 # do except assume that the compiler will be able to find those files.
28174 python_includes=
28175 python_libs=
28176 have_python_config=no
28179 # If we have python-config, only try the configuration it provides.
28180 # Otherwise fallback on the old way of trying different versions of
28181 # python in turn.
28183 have_libpython=no
28184 if test "${have_python_config}" = yes; then
28187 new_CPPFLAGS=${python_includes}
28188 new_LIBS=${python_libs}
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
28190 $as_echo_n "checking for python... " >&6; }
28191 save_CPPFLAGS=$CPPFLAGS
28192 save_LIBS=$LIBS
28193 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28194 LIBS="$new_LIBS $LIBS"
28195 found_usable_python=no
28196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28197 /* end confdefs.h. */
28198 #include "Python.h"
28200 main ()
28203 #if PY_MAJOR_VERSION != 3
28204 # error "We only support Python 3"
28205 #endif
28206 Py_Initialize ();
28209 return 0;
28211 _ACEOF
28212 if ac_fn_c_try_link "$LINENO"; then :
28213 have_libpython=yes
28214 found_usable_python=yes
28215 PYTHON_CPPFLAGS=$new_CPPFLAGS
28216 PYTHON_LIBS=$new_LIBS
28218 rm -f core conftest.err conftest.$ac_objext \
28219 conftest$ac_exeext conftest.$ac_ext
28220 CPPFLAGS=$save_CPPFLAGS
28221 LIBS=$save_LIBS
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
28223 $as_echo "${found_usable_python}" >&6; }
28227 if test "${have_libpython}" = no; then
28228 case "${with_python}" in
28229 yes)
28230 as_fn_error $? "python is missing or unusable" "$LINENO" 5
28232 auto)
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
28234 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
28237 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
28239 esac
28240 else
28241 if test -n "${python_prefix}"; then
28243 cat >>confdefs.h <<_ACEOF
28244 #define WITH_PYTHON_PATH "${python_prefix}"
28245 _ACEOF
28248 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28249 if test "x$prefix" = xNONE; then
28250 test_prefix=/usr/local
28251 else
28252 test_prefix=$prefix
28254 else
28255 test_prefix=$exec_prefix
28257 value=0
28258 case ${python_prefix} in
28259 "${test_prefix}"|"${test_prefix}/"*|\
28260 '${exec_prefix}'|'${exec_prefix}/'*)
28261 value=1
28263 esac
28265 cat >>confdefs.h <<_ACEOF
28266 #define PYTHON_PATH_RELOCATABLE $value
28267 _ACEOF
28275 # Check whether --with-python-libdir was given.
28276 if test "${with_python_libdir+set}" = set; then :
28277 withval=$with_python_libdir;
28278 else
28280 # If no python libdir is specified then select one based on
28281 # python's prefix path.
28282 if test -n "${python_prefix}"; then
28283 with_python_libdir=${python_prefix}/lib
28289 if test "${have_libpython}" != no; then
28291 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
28293 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
28294 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
28295 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
28296 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
28297 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
28299 if test -n "${with_python_libdir}"; then
28301 cat >>confdefs.h <<_ACEOF
28302 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
28303 _ACEOF
28306 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28307 if test "x$prefix" = xNONE; then
28308 test_prefix=/usr/local
28309 else
28310 test_prefix=$prefix
28312 else
28313 test_prefix=$exec_prefix
28315 value=0
28316 case ${with_python_libdir} in
28317 "${test_prefix}"|"${test_prefix}/"*|\
28318 '${exec_prefix}'|'${exec_prefix}/'*)
28319 value=1
28321 esac
28323 cat >>confdefs.h <<_ACEOF
28324 #define PYTHON_LIBDIR_RELOCATABLE $value
28325 _ACEOF
28330 # Flags needed to compile Python code (taken from python-config --cflags).
28331 # We cannot call python-config directly because it will output whatever was
28332 # used when compiling the Python interpreter itself, including flags which
28333 # would make the python-related objects be compiled differently from the
28334 # rest of GDB (e.g., -O2 and -fPIC).
28335 if test "${GCC}" = yes; then
28336 tentative_python_cflags="-fno-strict-aliasing -fwrapv"
28337 # Python headers recommend -DNDEBUG, but it's unclear if that just
28338 # refers to building Python itself. In release mode, though, it
28339 # doesn't hurt for the Python code in gdb to follow.
28340 $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
28343 if test "x${tentative_python_cflags}" != x; then
28344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
28345 $as_echo_n "checking compiler flags for python code... " >&6; }
28346 for flag in ${tentative_python_cflags}; do
28347 # Check that the compiler accepts it
28348 saved_CFLAGS="$CFLAGS"
28349 CFLAGS="$CFLAGS $flag"
28350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28351 /* end confdefs.h. */
28354 main ()
28358 return 0;
28360 _ACEOF
28361 if ac_fn_c_try_compile "$LINENO"; then :
28362 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
28364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28365 CFLAGS="$saved_CFLAGS"
28366 done
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
28368 $as_echo "${PYTHON_CFLAGS}" >&6; }
28371 # On x64 Windows, Python's include headers, and pyconfig.h in
28372 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
28373 # version of Windows. Unfortunately, MS_WIN64 is only defined if
28374 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
28375 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
28376 # The issue was reported to the Python community, but still isn't
28377 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
28379 case "$gdb_host" in
28380 mingw64)
28381 if test "${GCC}" = yes; then
28382 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
28385 esac
28386 else
28387 # Even if Python support is not compiled in, we need to have this file
28388 # included so that the "python" command, et.al., still exists.
28389 CONFIG_OBS="$CONFIG_OBS python/python.o"
28390 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
28393 # Work around Python http://bugs.python.org/issue10112. See also
28394 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
28395 # no effect. Note that the only test after this that uses Python is
28396 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
28397 # run without -export-dynamic too.
28398 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
28403 if test "${have_libpython}" != no; then
28404 HAVE_PYTHON_TRUE=
28405 HAVE_PYTHON_FALSE='#'
28406 else
28407 HAVE_PYTHON_TRUE='#'
28408 HAVE_PYTHON_FALSE=
28412 # -------------------- #
28413 # Check for libguile. #
28414 # -------------------- #
28421 # Check whether --with-guile was given.
28422 if test "${with_guile+set}" = set; then :
28423 withval=$with_guile;
28424 else
28425 with_guile=auto
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
28429 $as_echo_n "checking whether to use guile... " >&6; }
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
28431 $as_echo "$with_guile" >&6; }
28433 # Extract the first word of "pkg-config", so it can be a program name with args.
28434 set dummy pkg-config; ac_word=$2
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28436 $as_echo_n "checking for $ac_word... " >&6; }
28437 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
28438 $as_echo_n "(cached) " >&6
28439 else
28440 case $pkg_config_prog_path in
28441 [\\/]* | ?:[\\/]*)
28442 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
28445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28446 for as_dir in $PATH
28448 IFS=$as_save_IFS
28449 test -z "$as_dir" && as_dir=.
28450 for ac_exec_ext in '' $ac_executable_extensions; do
28451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28452 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
28453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28454 break 2
28456 done
28457 done
28458 IFS=$as_save_IFS
28460 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
28462 esac
28464 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
28465 if test -n "$pkg_config_prog_path"; then
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
28467 $as_echo "$pkg_config_prog_path" >&6; }
28468 else
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28470 $as_echo "no" >&6; }
28475 try_guile_versions="guile-3.0 guile-2.2 guile-2.0"
28476 have_libguile=no
28477 case "${with_guile}" in
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
28480 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
28482 auto)
28483 if test "${pkg_config_prog_path}" = "missing"; then
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
28485 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
28486 else
28488 pkg_config=${pkg_config_prog_path}
28489 guile_version_list=${try_guile_versions}
28490 flag_errors=no
28492 found_usable_guile=checking
28493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28494 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28495 for guile_version in ${guile_version_list}; do
28496 ${pkg_config} --exists ${guile_version} 2>/dev/null
28497 if test $? != 0; then
28498 continue
28500 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
28501 if test $? != 0; then
28502 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28504 new_LIBS=`${pkg_config} --libs ${guile_version}`
28505 if test $? != 0; then
28506 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28508 found_usable_guile=${guile_version}
28509 break
28510 done
28511 if test "${found_usable_guile}" = "checking"; then
28512 if test "${flag_errors}" = "yes"; then
28513 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28514 else
28515 found_usable_guile=no
28518 if test "${found_usable_guile}" != no; then
28519 save_CPPFLAGS=$CPPFLAGS
28520 save_LIBS=$LIBS
28521 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28522 LIBS="$LIBS $new_LIBS"
28523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28524 /* end confdefs.h. */
28525 #include "libguile.h"
28527 main ()
28529 scm_init_guile ();
28531 return 0;
28533 _ACEOF
28534 if ac_fn_c_try_link "$LINENO"; then :
28535 have_libguile=yes
28536 GUILE_CPPFLAGS=$new_CPPFLAGS
28537 GUILE_LIBS=$new_LIBS
28538 else
28539 found_usable_guile=no
28541 rm -f core conftest.err conftest.$ac_objext \
28542 conftest$ac_exeext conftest.$ac_ext
28543 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28544 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
28546 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28551 CPPFLAGS=$save_CPPFLAGS
28552 LIBS=$save_LIBS
28553 if test "${found_usable_guile}" = no; then
28554 if test "${flag_errors}" = yes; then
28555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28557 as_fn_error $? "linking guile version ${guile_version} test program failed
28558 See \`config.log' for more details" "$LINENO" 5; }
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28563 $as_echo "${found_usable_guile}" >&6; }
28567 yes)
28568 if test "${pkg_config_prog_path}" = "missing"; then
28569 as_fn_error $? "pkg-config not found" "$LINENO" 5
28572 pkg_config=${pkg_config_prog_path}
28573 guile_version_list=${try_guile_versions}
28574 flag_errors=yes
28576 found_usable_guile=checking
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28578 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28579 for guile_version in ${guile_version_list}; do
28580 ${pkg_config} --exists ${guile_version} 2>/dev/null
28581 if test $? != 0; then
28582 continue
28584 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
28585 if test $? != 0; then
28586 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28588 new_LIBS=`${pkg_config} --libs ${guile_version}`
28589 if test $? != 0; then
28590 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28592 found_usable_guile=${guile_version}
28593 break
28594 done
28595 if test "${found_usable_guile}" = "checking"; then
28596 if test "${flag_errors}" = "yes"; then
28597 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28598 else
28599 found_usable_guile=no
28602 if test "${found_usable_guile}" != no; then
28603 save_CPPFLAGS=$CPPFLAGS
28604 save_LIBS=$LIBS
28605 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28606 LIBS="$LIBS $new_LIBS"
28607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28608 /* end confdefs.h. */
28609 #include "libguile.h"
28611 main ()
28613 scm_init_guile ();
28615 return 0;
28617 _ACEOF
28618 if ac_fn_c_try_link "$LINENO"; then :
28619 have_libguile=yes
28620 GUILE_CPPFLAGS=$new_CPPFLAGS
28621 GUILE_LIBS=$new_LIBS
28622 else
28623 found_usable_guile=no
28625 rm -f core conftest.err conftest.$ac_objext \
28626 conftest$ac_exeext conftest.$ac_ext
28627 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28628 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
28630 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28635 CPPFLAGS=$save_CPPFLAGS
28636 LIBS=$save_LIBS
28637 if test "${found_usable_guile}" = no; then
28638 if test "${flag_errors}" = yes; then
28639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28641 as_fn_error $? "linking guile version ${guile_version} test program failed
28642 See \`config.log' for more details" "$LINENO" 5; }
28646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28647 $as_echo "${found_usable_guile}" >&6; }
28650 [\\/]* | ?:[\\/]*)
28651 if test -x "${with_guile}"; then
28653 pkg_config=${with_guile}
28654 guile_version_list=${try_guile_versions}
28655 flag_errors=yes
28657 found_usable_guile=checking
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28659 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28660 for guile_version in ${guile_version_list}; do
28661 ${pkg_config} --exists ${guile_version} 2>/dev/null
28662 if test $? != 0; then
28663 continue
28665 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
28666 if test $? != 0; then
28667 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28669 new_LIBS=`${pkg_config} --libs ${guile_version}`
28670 if test $? != 0; then
28671 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28673 found_usable_guile=${guile_version}
28674 break
28675 done
28676 if test "${found_usable_guile}" = "checking"; then
28677 if test "${flag_errors}" = "yes"; then
28678 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28679 else
28680 found_usable_guile=no
28683 if test "${found_usable_guile}" != no; then
28684 save_CPPFLAGS=$CPPFLAGS
28685 save_LIBS=$LIBS
28686 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28687 LIBS="$LIBS $new_LIBS"
28688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28689 /* end confdefs.h. */
28690 #include "libguile.h"
28692 main ()
28694 scm_init_guile ();
28696 return 0;
28698 _ACEOF
28699 if ac_fn_c_try_link "$LINENO"; then :
28700 have_libguile=yes
28701 GUILE_CPPFLAGS=$new_CPPFLAGS
28702 GUILE_LIBS=$new_LIBS
28703 else
28704 found_usable_guile=no
28706 rm -f core conftest.err conftest.$ac_objext \
28707 conftest$ac_exeext conftest.$ac_ext
28708 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28709 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
28711 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28716 CPPFLAGS=$save_CPPFLAGS
28717 LIBS=$save_LIBS
28718 if test "${found_usable_guile}" = no; then
28719 if test "${flag_errors}" = yes; then
28720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28722 as_fn_error $? "linking guile version ${guile_version} test program failed
28723 See \`config.log' for more details" "$LINENO" 5; }
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28728 $as_echo "${found_usable_guile}" >&6; }
28730 else
28731 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
28734 "" | */*)
28735 # Disallow --with=guile="" and --with-guile=foo/bar.
28736 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
28739 # A space separate list of guile versions to try, in order.
28740 if test "${pkg_config_prog_path}" = "missing"; then
28741 as_fn_error $? "pkg-config not found" "$LINENO" 5
28744 pkg_config=${pkg_config_prog_path}
28745 guile_version_list=${with_guile}
28746 flag_errors=yes
28748 found_usable_guile=checking
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28750 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28751 for guile_version in ${guile_version_list}; do
28752 ${pkg_config} --exists ${guile_version} 2>/dev/null
28753 if test $? != 0; then
28754 continue
28756 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
28757 if test $? != 0; then
28758 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28760 new_LIBS=`${pkg_config} --libs ${guile_version}`
28761 if test $? != 0; then
28762 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28764 found_usable_guile=${guile_version}
28765 break
28766 done
28767 if test "${found_usable_guile}" = "checking"; then
28768 if test "${flag_errors}" = "yes"; then
28769 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28770 else
28771 found_usable_guile=no
28774 if test "${found_usable_guile}" != no; then
28775 save_CPPFLAGS=$CPPFLAGS
28776 save_LIBS=$LIBS
28777 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28778 LIBS="$LIBS $new_LIBS"
28779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28780 /* end confdefs.h. */
28781 #include "libguile.h"
28783 main ()
28785 scm_init_guile ();
28787 return 0;
28789 _ACEOF
28790 if ac_fn_c_try_link "$LINENO"; then :
28791 have_libguile=yes
28792 GUILE_CPPFLAGS=$new_CPPFLAGS
28793 GUILE_LIBS=$new_LIBS
28794 else
28795 found_usable_guile=no
28797 rm -f core conftest.err conftest.$ac_objext \
28798 conftest$ac_exeext conftest.$ac_ext
28799 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28800 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
28802 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28807 CPPFLAGS=$save_CPPFLAGS
28808 LIBS=$save_LIBS
28809 if test "${found_usable_guile}" = no; then
28810 if test "${flag_errors}" = yes; then
28811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28813 as_fn_error $? "linking guile version ${guile_version} test program failed
28814 See \`config.log' for more details" "$LINENO" 5; }
28818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28819 $as_echo "${found_usable_guile}" >&6; }
28822 esac
28824 if test "${have_libguile}" != no; then
28825 case "${with_guile}" in
28826 [\\/]* | ?:[\\/]*)
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
28829 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
28830 if ${ac_cv_guild_program_name+:} false; then :
28831 $as_echo_n "(cached) " >&6
28832 else
28833 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
28835 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
28836 # the 'guild' and 'bindir' variables. In that case, try to guess
28837 # what the program name is, at the risk of getting it wrong if
28838 # Guile was configured with '--program-suffix' or similar.
28839 if test "x$ac_cv_guild_program_name" = "x"; then
28840 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
28841 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
28845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
28846 $as_echo "$ac_cv_guild_program_name" >&6; }
28848 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
28849 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
28852 GUILD="$ac_cv_guild_program_name"
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
28859 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
28860 if ${ac_cv_guild_program_name+:} false; then :
28861 $as_echo_n "(cached) " >&6
28862 else
28863 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
28865 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
28866 # the 'guild' and 'bindir' variables. In that case, try to guess
28867 # what the program name is, at the risk of getting it wrong if
28868 # Guile was configured with '--program-suffix' or similar.
28869 if test "x$ac_cv_guild_program_name" = "x"; then
28870 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
28871 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
28876 $as_echo "$ac_cv_guild_program_name" >&6; }
28878 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
28879 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
28882 GUILD="$ac_cv_guild_program_name"
28886 esac
28889 if test "$cross_compiling" = no; then
28890 GUILD_TARGET_FLAG=
28891 else
28892 GUILD_TARGET_FLAG="--target=$host"
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
28899 $as_echo_n "checking whether guild supports this host... " >&6; }
28900 if ${ac_cv_guild_ok+:} false; then :
28901 $as_echo_n "(cached) " >&6
28902 else
28903 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
28904 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
28905 ac_cv_guild_ok=yes
28906 else
28907 ac_cv_guild_ok=no
28910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
28911 $as_echo "$ac_cv_guild_ok" >&6; }
28913 if test "$ac_cv_guild_ok" = no; then
28914 have_libguile=no
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
28916 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
28920 if test "${have_libguile}" != no; then
28922 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
28924 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
28925 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
28926 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
28927 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
28928 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
28930 save_LIBS="$LIBS"
28931 save_CPPFLAGS="$CPPFLAGS"
28932 LIBS="$GUILE_LIBS"
28933 CPPFLAGS="$GUILE_CPPFLAGS"
28934 for ac_func in scm_new_smob
28935 do :
28936 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
28937 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
28938 cat >>confdefs.h <<_ACEOF
28939 #define HAVE_SCM_NEW_SMOB 1
28940 _ACEOF
28943 done
28945 LIBS="$save_LIBS"
28946 CPPFLAGS="$save_CPPFLAGS"
28947 else
28948 # Even if Guile support is not compiled in, we need to have these files
28949 # included.
28950 CONFIG_OBS="$CONFIG_OBS guile/guile.o"
28951 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
28955 if test "${have_libguile}" != no; then
28956 HAVE_GUILE_TRUE=
28957 HAVE_GUILE_FALSE='#'
28958 else
28959 HAVE_GUILE_TRUE='#'
28960 HAVE_GUILE_FALSE=
28964 # ---------------------------- #
28965 # Check for source highlight. #
28966 # ---------------------------- #
28968 SRCHIGH_LIBS=
28969 SRCHIGH_CFLAGS=
28971 # Check whether --enable-source-highlight was given.
28972 if test "${enable_source_highlight+set}" = set; then :
28973 enableval=$enable_source_highlight;
28974 case $enableval in
28975 yes | no | auto)
28978 as_fn_error $? "bad value $enableval for --enable-source-highlight" "$LINENO" 5
28980 esac
28982 else
28983 enable_source_highlight=auto
28987 if test "${enable_source_highlight}" != "no"; then
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
28989 $as_echo_n "checking for the source-highlight library... " >&6; }
28990 if test "${pkg_config_prog_path}" = "missing"; then
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
28992 $as_echo "no - pkg-config not found" >&6; }
28993 if test "${enable_source_highlight}" = "yes"; then
28994 as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
28996 else
28997 if ${pkg_config_prog_path} --exists source-highlight; then
28998 case "$LDFLAGS" in
28999 *static-libstdc*)
29000 as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
29002 esac
29004 srchigh_pkg_cflags=`${pkg_config_prog_path} --cflags source-highlight`
29005 srchigh_pkg_libs=`${pkg_config_prog_path} --libs source-highlight`
29007 # Now that we have found a source-highlight library, check if we can use
29008 # it. In particular, we're trying to detect the situation that the
29009 # library is using the new libstdc++ library abi ( see
29010 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
29011 # while the compiler being used to compile gdb is using the old abi.
29012 # Such a situation will result in an undefined reference to
29013 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
29014 # This situation can occur for instance when using a source highlight
29015 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
29016 ac_ext=cpp
29017 ac_cpp='$CXXCPP $CPPFLAGS'
29018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29022 save_CXXFLAGS="$CXXFLAGS"
29023 save_LIBS="$LIBS"
29024 CXXFLAGS="$CXXFLAGS $srchigh_pkg_cflags"
29025 LIBS="$LIBS $srchigh_pkg_libs"
29026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29027 /* end confdefs.h. */
29028 #include <srchilite/sourcehighlight.h>
29030 main ()
29032 std::string outlang = "esc.outlang";
29033 new srchilite::SourceHighlight (outlang);
29036 return 0;
29038 _ACEOF
29039 if ac_fn_cxx_try_link "$LINENO"; then :
29040 have_usable_source_highlight=yes
29041 else
29042 have_usable_source_highlight=no
29045 rm -f core conftest.err conftest.$ac_objext \
29046 conftest$ac_exeext conftest.$ac_ext
29047 CXXFLAGS="$save_CXXFLAGS"
29048 LIBS="$save_LIBS"
29049 ac_ext=c
29050 ac_cpp='$CPP $CPPFLAGS'
29051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29056 if test "${have_usable_source_highlight}" = "yes"; then
29058 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29061 $as_echo "yes" >&6; }
29062 SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
29063 SRCHIGH_LIBS="$srchigh_pkg_libs"
29064 else
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29066 $as_echo "no" >&6; }
29067 if test "${enable_source_highlight}" = "yes"; then
29068 as_fn_error $? "source-highlight in your system could not be used" "$LINENO" 5
29071 else
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29073 $as_echo "no" >&6; }
29074 if test "${enable_source_highlight}" = "yes"; then
29075 as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
29083 # ------------------------- #
29084 # Checks for header files. #
29085 # ------------------------- #
29087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
29088 $as_echo_n "checking for ANSI C header files... " >&6; }
29089 if ${ac_cv_header_stdc+:} false; then :
29090 $as_echo_n "(cached) " >&6
29091 else
29092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29093 /* end confdefs.h. */
29094 #include <stdlib.h>
29095 #include <stdarg.h>
29096 #include <string.h>
29097 #include <float.h>
29100 main ()
29104 return 0;
29106 _ACEOF
29107 if ac_fn_c_try_compile "$LINENO"; then :
29108 ac_cv_header_stdc=yes
29109 else
29110 ac_cv_header_stdc=no
29112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29114 if test $ac_cv_header_stdc = yes; then
29115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29117 /* end confdefs.h. */
29118 #include <string.h>
29120 _ACEOF
29121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29122 $EGREP "memchr" >/dev/null 2>&1; then :
29124 else
29125 ac_cv_header_stdc=no
29127 rm -f conftest*
29131 if test $ac_cv_header_stdc = yes; then
29132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29134 /* end confdefs.h. */
29135 #include <stdlib.h>
29137 _ACEOF
29138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29139 $EGREP "free" >/dev/null 2>&1; then :
29141 else
29142 ac_cv_header_stdc=no
29144 rm -f conftest*
29148 if test $ac_cv_header_stdc = yes; then
29149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29150 if test "$cross_compiling" = yes; then :
29152 else
29153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29154 /* end confdefs.h. */
29155 #include <ctype.h>
29156 #include <stdlib.h>
29157 #if ((' ' & 0x0FF) == 0x020)
29158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29160 #else
29161 # define ISLOWER(c) \
29162 (('a' <= (c) && (c) <= 'i') \
29163 || ('j' <= (c) && (c) <= 'r') \
29164 || ('s' <= (c) && (c) <= 'z'))
29165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29166 #endif
29168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29170 main ()
29172 int i;
29173 for (i = 0; i < 256; i++)
29174 if (XOR (islower (i), ISLOWER (i))
29175 || toupper (i) != TOUPPER (i))
29176 return 2;
29177 return 0;
29179 _ACEOF
29180 if ac_fn_c_try_run "$LINENO"; then :
29182 else
29183 ac_cv_header_stdc=no
29185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29186 conftest.$ac_objext conftest.beam conftest.$ac_ext
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
29192 $as_echo "$ac_cv_header_stdc" >&6; }
29193 if test $ac_cv_header_stdc = yes; then
29195 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
29199 for ac_header in \
29200 machine/reg.h \
29201 nlist.h \
29202 ptrace.h \
29203 sys/debugreg.h \
29204 sys/file.h \
29205 sys/filio.h \
29206 sys/ioctl.h \
29207 sys/param.h \
29208 sys/procctl.h \
29209 sys/ptrace.h \
29210 sys/reg.h \
29211 sys/resource.h \
29212 termios.h \
29213 thread_db.h \
29215 do :
29216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29217 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29218 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29219 cat >>confdefs.h <<_ACEOF
29220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29221 _ACEOF
29225 done
29228 for ac_header in sys/user.h
29229 do :
29230 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
29231 # include <sys/param.h>
29232 #endif
29235 if test "x$ac_cv_header_sys_user_h" = xyes; then :
29236 cat >>confdefs.h <<_ACEOF
29237 #define HAVE_SYS_USER_H 1
29238 _ACEOF
29242 done
29245 for ac_header in \
29246 curses.h \
29247 cursesX.h \
29248 ncurses.h \
29249 ncurses/ncurses.h \
29250 ncurses/term.h \
29251 ncursesw/ncurses.h \
29253 do :
29254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29255 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29256 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29257 cat >>confdefs.h <<_ACEOF
29258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29259 _ACEOF
29263 done
29266 for ac_header in term.h
29267 do :
29268 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
29269 # include <curses.h>
29270 #endif
29273 if test "x$ac_cv_header_term_h" = xyes; then :
29274 cat >>confdefs.h <<_ACEOF
29275 #define HAVE_TERM_H 1
29276 _ACEOF
29280 done
29283 for ac_header in sys/socket.h
29284 do :
29285 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
29286 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
29287 cat >>confdefs.h <<_ACEOF
29288 #define HAVE_SYS_SOCKET_H 1
29289 _ACEOF
29293 done
29295 for ac_header in ws2tcpip.h
29296 do :
29297 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
29298 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
29299 cat >>confdefs.h <<_ACEOF
29300 #define HAVE_WS2TCPIP_H 1
29301 _ACEOF
29305 done
29307 for ac_header in execinfo.h
29308 do :
29309 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
29310 if test "x$ac_cv_header_execinfo_h" = xyes; then :
29311 cat >>confdefs.h <<_ACEOF
29312 #define HAVE_EXECINFO_H 1
29313 _ACEOF
29317 done
29320 # ------------------------- #
29321 # Checks for declarations. #
29322 # ------------------------- #
29324 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
29325 if test "x$ac_cv_have_decl_ffs" = xyes; then :
29326 ac_have_decl=1
29327 else
29328 ac_have_decl=0
29331 cat >>confdefs.h <<_ACEOF
29332 #define HAVE_DECL_FFS $ac_have_decl
29333 _ACEOF
29335 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
29336 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
29337 ac_have_decl=1
29338 else
29339 ac_have_decl=0
29342 cat >>confdefs.h <<_ACEOF
29343 #define HAVE_DECL_ASPRINTF $ac_have_decl
29344 _ACEOF
29346 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
29347 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
29348 ac_have_decl=1
29349 else
29350 ac_have_decl=0
29353 cat >>confdefs.h <<_ACEOF
29354 #define HAVE_DECL_VASPRINTF $ac_have_decl
29355 _ACEOF
29357 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29358 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
29359 ac_have_decl=1
29360 else
29361 ac_have_decl=0
29364 cat >>confdefs.h <<_ACEOF
29365 #define HAVE_DECL_SNPRINTF $ac_have_decl
29366 _ACEOF
29368 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
29369 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
29370 ac_have_decl=1
29371 else
29372 ac_have_decl=0
29375 cat >>confdefs.h <<_ACEOF
29376 #define HAVE_DECL_VSNPRINTF $ac_have_decl
29377 _ACEOF
29379 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
29380 if test "x$ac_cv_have_decl_strtol" = xyes; then :
29381 ac_have_decl=1
29382 else
29383 ac_have_decl=0
29386 cat >>confdefs.h <<_ACEOF
29387 #define HAVE_DECL_STRTOL $ac_have_decl
29388 _ACEOF
29390 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
29391 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
29392 ac_have_decl=1
29393 else
29394 ac_have_decl=0
29397 cat >>confdefs.h <<_ACEOF
29398 #define HAVE_DECL_STRTOUL $ac_have_decl
29399 _ACEOF
29401 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
29402 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
29403 ac_have_decl=1
29404 else
29405 ac_have_decl=0
29408 cat >>confdefs.h <<_ACEOF
29409 #define HAVE_DECL_STRTOLL $ac_have_decl
29410 _ACEOF
29412 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
29413 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
29414 ac_have_decl=1
29415 else
29416 ac_have_decl=0
29419 cat >>confdefs.h <<_ACEOF
29420 #define HAVE_DECL_STRTOULL $ac_have_decl
29421 _ACEOF
29423 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
29424 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
29425 ac_have_decl=1
29426 else
29427 ac_have_decl=0
29430 cat >>confdefs.h <<_ACEOF
29431 #define HAVE_DECL_STRVERSCMP $ac_have_decl
29432 _ACEOF
29434 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
29435 if test "x$ac_cv_type_long_long" = xyes; then :
29437 cat >>confdefs.h <<_ACEOF
29438 #define HAVE_LONG_LONG 1
29439 _ACEOF
29441 # The cast to long int works around a bug in the HP C Compiler
29442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29444 # This bug is HP SR number 8606223364.
29445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
29446 $as_echo_n "checking size of long long... " >&6; }
29447 if ${ac_cv_sizeof_long_long+:} false; then :
29448 $as_echo_n "(cached) " >&6
29449 else
29450 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
29452 else
29453 if test "$ac_cv_type_long_long" = yes; then
29454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29456 as_fn_error 77 "cannot compute sizeof (long long)
29457 See \`config.log' for more details" "$LINENO" 5; }
29458 else
29459 ac_cv_sizeof_long_long=0
29464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
29465 $as_echo "$ac_cv_sizeof_long_long" >&6; }
29469 cat >>confdefs.h <<_ACEOF
29470 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
29471 _ACEOF
29477 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
29478 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
29479 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
29480 ac_have_decl=1
29481 else
29482 ac_have_decl=0
29485 cat >>confdefs.h <<_ACEOF
29486 #define HAVE_DECL_BASENAME $ac_have_decl
29487 _ACEOF
29494 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29495 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
29496 ac_have_decl=1
29497 else
29498 ac_have_decl=0
29501 cat >>confdefs.h <<_ACEOF
29502 #define HAVE_DECL_SNPRINTF $ac_have_decl
29503 _ACEOF
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
29507 $as_echo_n "checking for LC_MESSAGES... " >&6; }
29508 if ${am_cv_val_LC_MESSAGES+:} false; then :
29509 $as_echo_n "(cached) " >&6
29510 else
29511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29512 /* end confdefs.h. */
29513 #include <locale.h>
29515 main ()
29517 return LC_MESSAGES
29519 return 0;
29521 _ACEOF
29522 if ac_fn_c_try_link "$LINENO"; then :
29523 am_cv_val_LC_MESSAGES=yes
29524 else
29525 am_cv_val_LC_MESSAGES=no
29527 rm -f core conftest.err conftest.$ac_objext \
29528 conftest$ac_exeext conftest.$ac_ext
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
29531 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
29532 if test $am_cv_val_LC_MESSAGES = yes; then
29534 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
29539 # ------------------ #
29540 # Checks for types. #
29541 # ------------------ #
29543 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
29544 #if HAVE_SYS_SOCKET_H
29545 # include <sys/socket.h>
29546 #elif HAVE_WS2TCPIP_H
29547 # include <ws2tcpip.h>
29548 #endif
29551 if test "x$ac_cv_type_socklen_t" = xyes; then :
29553 cat >>confdefs.h <<_ACEOF
29554 #define HAVE_SOCKLEN_T 1
29555 _ACEOF
29561 # ------------------------------------- #
29562 # Checks for compiler characteristics. #
29563 # ------------------------------------- #
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
29566 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
29567 if ${ac_cv_c_const+:} false; then :
29568 $as_echo_n "(cached) " >&6
29569 else
29570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29571 /* end confdefs.h. */
29574 main ()
29577 #ifndef __cplusplus
29578 /* Ultrix mips cc rejects this sort of thing. */
29579 typedef int charset[2];
29580 const charset cs = { 0, 0 };
29581 /* SunOS 4.1.1 cc rejects this. */
29582 char const *const *pcpcc;
29583 char **ppc;
29584 /* NEC SVR4.0.2 mips cc rejects this. */
29585 struct point {int x, y;};
29586 static struct point const zero = {0,0};
29587 /* AIX XL C 1.02.0.0 rejects this.
29588 It does not let you subtract one const X* pointer from another in
29589 an arm of an if-expression whose if-part is not a constant
29590 expression */
29591 const char *g = "string";
29592 pcpcc = &g + (g ? g-g : 0);
29593 /* HPUX 7.0 cc rejects these. */
29594 ++pcpcc;
29595 ppc = (char**) pcpcc;
29596 pcpcc = (char const *const *) ppc;
29597 { /* SCO 3.2v4 cc rejects this sort of thing. */
29598 char tx;
29599 char *t = &tx;
29600 char const *s = 0 ? (char *) 0 : (char const *) 0;
29602 *t++ = 0;
29603 if (s) return 0;
29605 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
29606 int x[] = {25, 17};
29607 const int *foo = &x[0];
29608 ++foo;
29610 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29611 typedef const int *iptr;
29612 iptr p = 0;
29613 ++p;
29615 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
29616 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29617 struct s { int j; const int *ap[3]; } bx;
29618 struct s *b = &bx; b->j = 5;
29620 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29621 const int foo = 10;
29622 if (!foo) return 0;
29624 return !cs[0] && !zero.x;
29625 #endif
29628 return 0;
29630 _ACEOF
29631 if ac_fn_c_try_compile "$LINENO"; then :
29632 ac_cv_c_const=yes
29633 else
29634 ac_cv_c_const=no
29636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
29639 $as_echo "$ac_cv_c_const" >&6; }
29640 if test $ac_cv_c_const = no; then
29642 $as_echo "#define const /**/" >>confdefs.h
29646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
29647 $as_echo_n "checking for inline... " >&6; }
29648 if ${ac_cv_c_inline+:} false; then :
29649 $as_echo_n "(cached) " >&6
29650 else
29651 ac_cv_c_inline=no
29652 for ac_kw in inline __inline__ __inline; do
29653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29654 /* end confdefs.h. */
29655 #ifndef __cplusplus
29656 typedef int foo_t;
29657 static $ac_kw foo_t static_foo () {return 0; }
29658 $ac_kw foo_t foo () {return 0; }
29659 #endif
29661 _ACEOF
29662 if ac_fn_c_try_compile "$LINENO"; then :
29663 ac_cv_c_inline=$ac_kw
29665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29666 test "$ac_cv_c_inline" != no && break
29667 done
29670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
29671 $as_echo "$ac_cv_c_inline" >&6; }
29673 case $ac_cv_c_inline in
29674 inline | yes) ;;
29676 case $ac_cv_c_inline in
29677 no) ac_val=;;
29678 *) ac_val=$ac_cv_c_inline;;
29679 esac
29680 cat >>confdefs.h <<_ACEOF
29681 #ifndef __cplusplus
29682 #define inline $ac_val
29683 #endif
29684 _ACEOF
29686 esac
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
29689 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
29690 if ${ac_cv_c_bigendian+:} false; then :
29691 $as_echo_n "(cached) " >&6
29692 else
29693 ac_cv_c_bigendian=unknown
29694 # See if we're dealing with a universal compiler.
29695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29696 /* end confdefs.h. */
29697 #ifndef __APPLE_CC__
29698 not a universal capable compiler
29699 #endif
29700 typedef int dummy;
29702 _ACEOF
29703 if ac_fn_c_try_compile "$LINENO"; then :
29705 # Check for potential -arch flags. It is not universal unless
29706 # there are at least two -arch flags with different values.
29707 ac_arch=
29708 ac_prev=
29709 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
29710 if test -n "$ac_prev"; then
29711 case $ac_word in
29712 i?86 | x86_64 | ppc | ppc64)
29713 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
29714 ac_arch=$ac_word
29715 else
29716 ac_cv_c_bigendian=universal
29717 break
29720 esac
29721 ac_prev=
29722 elif test "x$ac_word" = "x-arch"; then
29723 ac_prev=arch
29725 done
29727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29728 if test $ac_cv_c_bigendian = unknown; then
29729 # See if sys/param.h defines the BYTE_ORDER macro.
29730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29731 /* end confdefs.h. */
29732 #include <sys/types.h>
29733 #include <sys/param.h>
29736 main ()
29738 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
29739 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
29740 && LITTLE_ENDIAN)
29741 bogus endian macros
29742 #endif
29745 return 0;
29747 _ACEOF
29748 if ac_fn_c_try_compile "$LINENO"; then :
29749 # It does; now see whether it defined to BIG_ENDIAN or not.
29750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29751 /* end confdefs.h. */
29752 #include <sys/types.h>
29753 #include <sys/param.h>
29756 main ()
29758 #if BYTE_ORDER != BIG_ENDIAN
29759 not big endian
29760 #endif
29763 return 0;
29765 _ACEOF
29766 if ac_fn_c_try_compile "$LINENO"; then :
29767 ac_cv_c_bigendian=yes
29768 else
29769 ac_cv_c_bigendian=no
29771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29775 if test $ac_cv_c_bigendian = unknown; then
29776 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
29777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29778 /* end confdefs.h. */
29779 #include <limits.h>
29782 main ()
29784 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
29785 bogus endian macros
29786 #endif
29789 return 0;
29791 _ACEOF
29792 if ac_fn_c_try_compile "$LINENO"; then :
29793 # It does; now see whether it defined to _BIG_ENDIAN or not.
29794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29795 /* end confdefs.h. */
29796 #include <limits.h>
29799 main ()
29801 #ifndef _BIG_ENDIAN
29802 not big endian
29803 #endif
29806 return 0;
29808 _ACEOF
29809 if ac_fn_c_try_compile "$LINENO"; then :
29810 ac_cv_c_bigendian=yes
29811 else
29812 ac_cv_c_bigendian=no
29814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29818 if test $ac_cv_c_bigendian = unknown; then
29819 # Compile a test program.
29820 if test "$cross_compiling" = yes; then :
29821 # Try to guess by grepping values from an object file.
29822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29823 /* end confdefs.h. */
29824 short int ascii_mm[] =
29825 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
29826 short int ascii_ii[] =
29827 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
29828 int use_ascii (int i) {
29829 return ascii_mm[i] + ascii_ii[i];
29831 short int ebcdic_ii[] =
29832 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
29833 short int ebcdic_mm[] =
29834 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
29835 int use_ebcdic (int i) {
29836 return ebcdic_mm[i] + ebcdic_ii[i];
29838 extern int foo;
29841 main ()
29843 return use_ascii (foo) == use_ebcdic (foo);
29845 return 0;
29847 _ACEOF
29848 if ac_fn_c_try_compile "$LINENO"; then :
29849 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
29850 ac_cv_c_bigendian=yes
29852 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
29853 if test "$ac_cv_c_bigendian" = unknown; then
29854 ac_cv_c_bigendian=no
29855 else
29856 # finding both strings is unlikely to happen, but who knows?
29857 ac_cv_c_bigendian=unknown
29861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29862 else
29863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29864 /* end confdefs.h. */
29865 $ac_includes_default
29867 main ()
29870 /* Are we little or big endian? From Harbison&Steele. */
29871 union
29873 long int l;
29874 char c[sizeof (long int)];
29875 } u;
29876 u.l = 1;
29877 return u.c[sizeof (long int) - 1] == 1;
29880 return 0;
29882 _ACEOF
29883 if ac_fn_c_try_run "$LINENO"; then :
29884 ac_cv_c_bigendian=no
29885 else
29886 ac_cv_c_bigendian=yes
29888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29889 conftest.$ac_objext conftest.beam conftest.$ac_ext
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
29895 $as_echo "$ac_cv_c_bigendian" >&6; }
29896 case $ac_cv_c_bigendian in #(
29897 yes)
29898 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
29899 ;; #(
29901 ;; #(
29902 universal)
29904 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
29906 ;; #(
29908 as_fn_error $? "unknown endianness
29909 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
29910 esac
29913 # ------------------------------ #
29914 # Checks for library functions. #
29915 # ------------------------------ #
29917 for ac_func in \
29918 btowc \
29919 getgid \
29920 getpgid \
29921 getrlimit \
29922 getuid \
29923 iconvlist \
29924 libiconvlist \
29925 posix_madvise \
29926 pread \
29927 pread64 \
29928 pwrite \
29929 resize_term \
29930 setlocale \
29931 setrlimit \
29932 setsid \
29933 sigsetmask \
29934 ttrace \
29935 use_default_colors \
29936 wresize \
29938 do :
29939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29940 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29941 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29942 cat >>confdefs.h <<_ACEOF
29943 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29944 _ACEOF
29947 done
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
29952 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
29953 if ${am_cv_langinfo_codeset+:} false; then :
29954 $as_echo_n "(cached) " >&6
29955 else
29956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29957 /* end confdefs.h. */
29958 #include <langinfo.h>
29960 main ()
29962 char* cs = nl_langinfo(CODESET);
29964 return 0;
29966 _ACEOF
29967 if ac_fn_c_try_link "$LINENO"; then :
29968 am_cv_langinfo_codeset=yes
29969 else
29970 am_cv_langinfo_codeset=no
29972 rm -f core conftest.err conftest.$ac_objext \
29973 conftest$ac_exeext conftest.$ac_ext
29976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
29977 $as_echo "$am_cv_langinfo_codeset" >&6; }
29978 if test $am_cv_langinfo_codeset = yes; then
29980 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
29985 # Check the return and argument types of ptrace.
29988 for ac_header in sys/ptrace.h ptrace.h
29989 do :
29990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29991 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29993 cat >>confdefs.h <<_ACEOF
29994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29995 _ACEOF
29999 done
30002 gdb_ptrace_headers='
30003 #include <sys/types.h>
30004 #if HAVE_SYS_PTRACE_H
30005 # include <sys/ptrace.h>
30006 #endif
30007 #if HAVE_UNISTD_H
30008 # include <unistd.h>
30009 #endif
30012 # Check return type. Varargs (used on GNU/Linux) conflict with the
30013 # empty argument list, so check for that explicitly.
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
30015 $as_echo_n "checking return type of ptrace... " >&6; }
30016 if ${gdb_cv_func_ptrace_ret+:} false; then :
30017 $as_echo_n "(cached) " >&6
30018 else
30019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30020 /* end confdefs.h. */
30021  $gdb_ptrace_headers
30023 main ()
30025 extern long ptrace (enum __ptrace_request, ...);
30028 return 0;
30030 _ACEOF
30031 if ac_fn_c_try_compile "$LINENO"; then :
30032 gdb_cv_func_ptrace_ret='long'
30033 else
30034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30035 /* end confdefs.h. */
30036 $gdb_ptrace_headers
30038 main ()
30040 extern int ptrace ();
30043 return 0;
30045 _ACEOF
30046 if ac_fn_c_try_compile "$LINENO"; then :
30047 gdb_cv_func_ptrace_ret='int'
30048 else
30049 gdb_cv_func_ptrace_ret='long'
30052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
30059 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
30062 cat >>confdefs.h <<_ACEOF
30063 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
30064 _ACEOF
30067 # Check argument types.
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
30069 $as_echo_n "checking types of arguments for ptrace... " >&6; }
30070 if ${gdb_cv_func_ptrace_args+:} false; then :
30071 $as_echo_n "(cached) " >&6
30072 else
30073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30074 /* end confdefs.h. */
30075 $gdb_ptrace_headers
30077 main ()
30079 extern long ptrace (enum __ptrace_request, ...);
30082 return 0;
30084 _ACEOF
30085 if ac_fn_c_try_compile "$LINENO"; then :
30086 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
30087 else
30088 for gdb_arg1 in 'int' 'long'; do
30089 for gdb_arg2 in 'pid_t' 'int' 'long'; do
30090 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
30091 for gdb_arg4 in 'int' 'long' 'void *'; do
30092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30093 /* end confdefs.h. */
30094 $gdb_ptrace_headers
30096 main ()
30098 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
30101 return 0;
30103 _ACEOF
30104 if ac_fn_c_try_compile "$LINENO"; then :
30105 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
30106 break 4;
30109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30111 for gdb_arg5 in 'int *' 'int' 'long'; do
30112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30113 /* end confdefs.h. */
30114 $gdb_ptrace_headers
30116 main ()
30118 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
30121 return 0;
30123 _ACEOF
30124 if ac_fn_c_try_compile "$LINENO"; then :
30125 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
30126 break 5;
30129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30130 done
30131 done
30132 done
30133 done
30134 done
30135 # Provide a safe default value.
30136 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
30139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
30143 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
30145 ac_save_IFS=$IFS; IFS=','
30146 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
30147 IFS=$ac_save_IFS
30148 shift
30150 cat >>confdefs.h <<_ACEOF
30151 #define PTRACE_TYPE_ARG1 $1
30152 _ACEOF
30155 cat >>confdefs.h <<_ACEOF
30156 #define PTRACE_TYPE_ARG3 $3
30157 _ACEOF
30160 cat >>confdefs.h <<_ACEOF
30161 #define PTRACE_TYPE_ARG4 $4
30162 _ACEOF
30164 if test -n "$5"; then
30166 cat >>confdefs.h <<_ACEOF
30167 #define PTRACE_TYPE_ARG5 $5
30168 _ACEOF
30173 if test "$cross_compiling" = no; then
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
30175 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
30176 if ${ac_cv_func_setpgrp_void+:} false; then :
30177 $as_echo_n "(cached) " >&6
30178 else
30179 if test "$cross_compiling" = yes; then :
30180 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
30181 else
30182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30183 /* end confdefs.h. */
30184 $ac_includes_default
30186 main ()
30188 /* If this system has a BSD-style setpgrp which takes arguments,
30189 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
30190 exit successfully. */
30191 return setpgrp (1,1) != -1;
30193 return 0;
30195 _ACEOF
30196 if ac_fn_c_try_run "$LINENO"; then :
30197 ac_cv_func_setpgrp_void=no
30198 else
30199 ac_cv_func_setpgrp_void=yes
30201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30202 conftest.$ac_objext conftest.beam conftest.$ac_ext
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
30207 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
30208 if test $ac_cv_func_setpgrp_void = yes; then
30210 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
30214 else
30215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
30216 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
30217 if ${ac_cv_func_setpgrp_void+:} false; then :
30218 $as_echo_n "(cached) " >&6
30219 else
30220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30221 /* end confdefs.h. */
30222 #include <unistd.h>
30224 main ()
30226 if (setpgrp(1,1) == -1)
30227 exit (0);
30228 else
30229 exit (1);
30232 return 0;
30234 _ACEOF
30235 if ac_fn_c_try_compile "$LINENO"; then :
30236 ac_cv_func_setpgrp_void=no
30237 else
30238 ac_cv_func_setpgrp_void=yes
30241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
30245 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
30246 if test "$ac_cv_func_setpgrp_void" = yes; then
30247 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
30252 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
30253 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
30254 #include <sys/proc.h>
30257 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
30259 cat >>confdefs.h <<_ACEOF
30260 #define HAVE_STRUCT_THREAD_TD_PCB 1
30261 _ACEOF
30267 # See if <sys/lwp.h> defines `struct lwp`.
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
30269 $as_echo_n "checking for struct lwp... " >&6; }
30270 if ${gdb_cv_struct_lwp+:} false; then :
30271 $as_echo_n "(cached) " >&6
30272 else
30273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30274 /* end confdefs.h. */
30275 #include <sys/param.h>
30276 #define _KMEMUSER
30277 #include <sys/lwp.h>
30279 main ()
30281 struct lwp l;
30284 return 0;
30286 _ACEOF
30287 if ac_fn_c_try_compile "$LINENO"; then :
30288 gdb_cv_struct_lwp=yes
30289 else
30290 gdb_cv_struct_lwp=no
30293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
30297 $as_echo "$gdb_cv_struct_lwp" >&6; }
30298 if test "$gdb_cv_struct_lwp" = yes; then
30300 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
30304 # See if <machine/reg.h> degines `struct reg'.
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
30306 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
30307 if ${gdb_cv_struct_reg+:} false; then :
30308 $as_echo_n "(cached) " >&6
30309 else
30310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30311 /* end confdefs.h. */
30312 #include <sys/types.h>
30313 #include <machine/reg.h>
30315 main ()
30317 struct reg r;
30320 return 0;
30322 _ACEOF
30323 if ac_fn_c_try_compile "$LINENO"; then :
30324 gdb_cv_struct_reg=yes
30325 else
30326 gdb_cv_struct_reg=no
30329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
30333 $as_echo "$gdb_cv_struct_reg" >&6; }
30334 if test "$gdb_cv_struct_reg" = yes; then
30336 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
30340 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
30341 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
30342 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
30343 #include <machine/reg.h>
30345 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
30347 cat >>confdefs.h <<_ACEOF
30348 #define HAVE_STRUCT_REG_R_FS 1
30349 _ACEOF
30353 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
30354 #include <machine/reg.h>
30356 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
30358 cat >>confdefs.h <<_ACEOF
30359 #define HAVE_STRUCT_REG_R_GS 1
30360 _ACEOF
30366 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
30368 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
30369 if ${gdb_cv_have_ptrace_getregs+:} false; then :
30370 $as_echo_n "(cached) " >&6
30371 else
30372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30373 /* end confdefs.h. */
30374 #include <sys/ptrace.h>
30376 main ()
30378 PTRACE_GETREGS;
30380 return 0;
30382 _ACEOF
30383 if ac_fn_c_try_compile "$LINENO"; then :
30384 gdb_cv_have_ptrace_getregs=yes
30385 else
30386 gdb_cv_have_ptrace_getregs=no
30389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
30394 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
30395 if test "$gdb_cv_have_ptrace_getregs" = yes; then
30397 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
30401 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
30402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
30403 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
30404 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
30405 $as_echo_n "(cached) " >&6
30406 else
30407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30408 /* end confdefs.h. */
30409 #include <sys/ptrace.h>
30411 main ()
30413 PTRACE_GETFPXREGS;
30415 return 0;
30417 _ACEOF
30418 if ac_fn_c_try_compile "$LINENO"; then :
30419 gdb_cv_have_ptrace_getfpxregs=yes
30420 else
30421 gdb_cv_have_ptrace_getfpxregs=no
30424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
30429 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
30430 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
30432 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
30436 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
30437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
30438 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
30439 if ${gdb_cv_have_pt_getdbregs+:} false; then :
30440 $as_echo_n "(cached) " >&6
30441 else
30442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30443 /* end confdefs.h. */
30444 #include <sys/types.h>
30445 #include <sys/ptrace.h>
30447 main ()
30449 PT_GETDBREGS;
30452 return 0;
30454 _ACEOF
30455 if ac_fn_c_try_compile "$LINENO"; then :
30456 gdb_cv_have_pt_getdbregs=yes
30457 else
30458 gdb_cv_have_pt_getdbregs=no
30461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
30466 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
30467 if test "$gdb_cv_have_pt_getdbregs" = yes; then
30469 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
30473 # See if <sys/ptrace.h> supports LWP names on FreeBSD
30474 # Older FreeBSD versions don't have the pl_tdname member of
30475 # `struct ptrace_lwpinfo'.
30476 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
30478 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
30480 cat >>confdefs.h <<_ACEOF
30481 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
30482 _ACEOF
30488 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
30489 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
30490 # FreeBSD 10.3.
30491 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
30493 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
30495 cat >>confdefs.h <<_ACEOF
30496 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
30497 _ACEOF
30503 # Check if the compiler supports the `long long' type.
30505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
30506 $as_echo_n "checking for long long support in compiler... " >&6; }
30507 if ${gdb_cv_c_long_long+:} false; then :
30508 $as_echo_n "(cached) " >&6
30509 else
30510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30511 /* end confdefs.h. */
30512 extern long long foo;
30514 main ()
30516 switch (foo & 2) { case 0: return 1; }
30518 return 0;
30520 _ACEOF
30521 if ac_fn_c_try_compile "$LINENO"; then :
30522 gdb_cv_c_long_long=yes
30523 else
30524 gdb_cv_c_long_long=no
30526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
30529 $as_echo "$gdb_cv_c_long_long" >&6; }
30530 if test "$gdb_cv_c_long_long" != yes; then
30531 # libdecnumber requires long long.
30532 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
30535 # Check if the compiler and runtime support printing decfloats.
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
30538 $as_echo_n "checking for decfloat support in printf... " >&6; }
30539 if ${gdb_cv_printf_has_decfloat+:} false; then :
30540 $as_echo_n "(cached) " >&6
30541 else
30542 if test "$cross_compiling" = yes; then :
30543 gdb_cv_printf_has_decfloat=no
30544 else
30545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30546 /* end confdefs.h. */
30547 $ac_includes_default
30549 main ()
30551 char buf[64];
30552 _Decimal32 d32 = 1.2345df;
30553 _Decimal64 d64 = 1.2345dd;
30554 _Decimal128 d128 = 1.2345dl;
30555 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
30556 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
30558 return 0;
30560 _ACEOF
30561 if ac_fn_c_try_run "$LINENO"; then :
30562 gdb_cv_printf_has_decfloat=yes
30563 else
30564 gdb_cv_printf_has_decfloat=no
30566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30567 conftest.$ac_objext conftest.beam conftest.$ac_ext
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
30572 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
30573 if test "$gdb_cv_printf_has_decfloat" = yes; then
30575 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
30579 # Check if the compiler supports the `long double' type. We can't use
30580 # AC_C_LONG_DOUBLE because that one does additional checks on the
30581 # constants defined in <float.h> that fail on some systems,
30582 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
30585 $as_echo_n "checking for long double support in compiler... " >&6; }
30586 if ${gdb_cv_c_long_double+:} false; then :
30587 $as_echo_n "(cached) " >&6
30588 else
30589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30590 /* end confdefs.h. */
30591 long double foo;
30592 _ACEOF
30593 if ac_fn_c_try_compile "$LINENO"; then :
30594 gdb_cv_c_long_double=yes
30595 else
30596 gdb_cv_c_long_double=no
30598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
30601 $as_echo "$gdb_cv_c_long_double" >&6; }
30602 if test "$gdb_cv_c_long_double" = yes; then
30604 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
30608 # Check if the compiler and runtime support printing long doubles.
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
30611 $as_echo_n "checking for long double support in printf... " >&6; }
30612 if ${gdb_cv_printf_has_long_double+:} false; then :
30613 $as_echo_n "(cached) " >&6
30614 else
30615 if test "$cross_compiling" = yes; then :
30616 gdb_cv_printf_has_long_double=no
30617 else
30618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30619 /* end confdefs.h. */
30620 $ac_includes_default
30622 main ()
30624 char buf[16];
30625 long double f = 3.141592653;
30626 sprintf (buf, "%Lg", f);
30627 return (strncmp ("3.14159", buf, 7));
30629 return 0;
30631 _ACEOF
30632 if ac_fn_c_try_run "$LINENO"; then :
30633 gdb_cv_printf_has_long_double=yes
30634 else
30635 gdb_cv_printf_has_long_double=no
30637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30638 conftest.$ac_objext conftest.beam conftest.$ac_ext
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
30643 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
30644 if test "$gdb_cv_printf_has_long_double" = yes; then
30646 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
30650 # Check if the compiler and runtime support scanning long doubles.
30652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
30653 $as_echo_n "checking for long double support in scanf... " >&6; }
30654 if ${gdb_cv_scanf_has_long_double+:} false; then :
30655 $as_echo_n "(cached) " >&6
30656 else
30657 if test "$cross_compiling" = yes; then :
30658 gdb_cv_scanf_has_long_double=no
30659 else
30660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30661 /* end confdefs.h. */
30662 #include <stdio.h>
30664 main ()
30666 char *buf = "3.141592653";
30667 long double f = 0;
30668 sscanf (buf, "%Lg", &f);
30669 return !(f > 3.14159 && f < 3.14160);
30671 return 0;
30673 _ACEOF
30674 if ac_fn_c_try_run "$LINENO"; then :
30675 gdb_cv_scanf_has_long_double=yes
30676 else
30677 gdb_cv_scanf_has_long_double=no
30679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30680 conftest.$ac_objext conftest.beam conftest.$ac_ext
30684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
30685 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
30686 if test "$gdb_cv_scanf_has_long_double" = yes; then
30688 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
30692 case ${host_os} in
30693 aix*)
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
30695 $as_echo_n "checking for -bbigtoc option... " >&6; }
30696 if ${gdb_cv_bigtoc+:} false; then :
30697 $as_echo_n "(cached) " >&6
30698 else
30699 SAVE_LDFLAGS=$LDFLAGS
30701 case $GCC in
30702 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
30703 *) gdb_cv_bigtoc=-bbigtoc ;;
30704 esac
30706 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
30707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30708 /* end confdefs.h. */
30711 main ()
30713 int i;
30715 return 0;
30717 _ACEOF
30718 if ac_fn_c_try_link "$LINENO"; then :
30720 else
30721 gdb_cv_bigtoc=
30724 rm -f core conftest.err conftest.$ac_objext \
30725 conftest$ac_exeext conftest.$ac_ext
30726 LDFLAGS="${SAVE_LDFLAGS}"
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
30730 $as_echo "$gdb_cv_bigtoc" >&6; }
30731 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
30733 esac
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
30736 $as_echo_n "checking for the dynamic export flag... " >&6; }
30737 dynamic_list=false
30738 if test "${gdb_native}" = yes; then
30739 # The dynamically loaded libthread_db needs access to symbols in the gdb
30740 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
30741 # may not be supported there.
30742 old_LDFLAGS="$LDFLAGS"
30743 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
30744 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
30745 LDFLAGS="$LDFLAGS $RDYNAMIC"
30746 if test "${have_libpython}" = no; then
30747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30748 /* end confdefs.h. */
30751 main ()
30755 return 0;
30757 _ACEOF
30758 if ac_fn_c_try_link "$LINENO"; then :
30759 dynamic_list=true
30761 rm -f core conftest.err conftest.$ac_objext \
30762 conftest$ac_exeext conftest.$ac_ext
30763 else
30764 # Workaround http://bugs.python.org/issue4434 where static
30765 # libpythonX.Y.a would get its symbols required for
30766 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
30767 # Problem does not happen for the recommended libpythonX.Y.so linkage.
30769 # Note the workaround for Python
30770 # http://bugs.python.org/issue10112 earlier has removed
30771 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
30772 # here too, as otherwise it'd make this -Wl,--dynamic-list test
30773 # always pass.
30774 old_CFLAGS="$CFLAGS"
30775 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
30776 old_LIBS="$LIBS"
30777 LIBS="$LIBS $PYTHON_LIBS"
30778 old_CPPFLAGS="$CPPFLAGS"
30779 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
30780 if test "$cross_compiling" = yes; then :
30781 true
30782 else
30783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30784 /* end confdefs.h. */
30785 #include "Python.h"
30787 main ()
30789 int err;
30790 Py_Initialize ();
30791 err = PyRun_SimpleString ("import ctypes\n");
30792 Py_Finalize ();
30793 return err == 0 ? 0 : 1;
30795 return 0;
30797 _ACEOF
30798 if ac_fn_c_try_run "$LINENO"; then :
30799 dynamic_list=true
30801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30802 conftest.$ac_objext conftest.beam conftest.$ac_ext
30805 LIBS="$old_LIBS"
30806 CFLAGS="$old_CFLAGS"
30807 CPPFLAGS="$old_CPPFLAGS"
30809 LDFLAGS="$old_LDFLAGS"
30811 if $dynamic_list; then
30812 found="-Wl,--dynamic-list"
30813 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
30814 else
30815 found="-rdynamic"
30816 RDYNAMIC="-rdynamic"
30819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
30820 $as_echo "$found" >&6; }
30822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
30823 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
30824 if ${gdb_cv_execinfo_backtrace+:} false; then :
30825 $as_echo_n "(cached) " >&6
30826 else
30827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30828 /* end confdefs.h. */
30830 #include <execinfo.h>
30833 main ()
30836 int f;
30837 void *b[2];
30838 f = backtrace (b, 2);
30839 backtrace_symbols_fd (b, f, 2);
30842 return 0;
30844 _ACEOF
30845 if ac_fn_c_try_link "$LINENO"; then :
30846 gdb_cv_execinfo_backtrace=yes
30847 else
30848 gdb_cv_execinfo_backtrace=no
30850 rm -f core conftest.err conftest.$ac_objext \
30851 conftest$ac_exeext conftest.$ac_ext
30853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
30854 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
30855 if test "$gdb_cv_execinfo_backtrace" = yes; then
30857 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
30862 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
30863 case ${host_os} in
30864 aix*)
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
30866 $as_echo_n "checking for AiX thread debugging library... " >&6; }
30867 if ${gdb_cv_have_aix_thread_debug+:} false; then :
30868 $as_echo_n "(cached) " >&6
30869 else
30870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30871 /* end confdefs.h. */
30872 #include <sys/pthdebug.h>
30874 main ()
30876 #ifndef PTHDB_VERSION_3
30877 #error
30878 #endif
30881 return 0;
30883 _ACEOF
30884 if ac_fn_c_try_compile "$LINENO"; then :
30885 gdb_cv_have_aix_thread_debug=yes
30886 else
30887 gdb_cv_have_aix_thread_debug=no
30890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
30895 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
30896 if test "$gdb_cv_have_aix_thread_debug" = yes; then
30897 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
30898 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
30899 LIBS="$LIBS -lpthdebug"
30901 # Older versions of AIX do not provide the declaration for
30902 # the getthrds function (it appears that it was introduced
30903 # with AIX 6.x).
30904 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
30906 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
30907 ac_have_decl=1
30908 else
30909 ac_have_decl=0
30912 cat >>confdefs.h <<_ACEOF
30913 #define HAVE_DECL_GETTHRDS $ac_have_decl
30914 _ACEOF
30918 esac
30922 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
30924 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
30925 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
30926 $as_echo_n "(cached) " >&6
30927 else
30928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30929 /* end confdefs.h. */
30930 #include <thread_db.h>
30932 main ()
30934 int i = TD_NOTALLOC;
30937 return 0;
30939 _ACEOF
30940 if ac_fn_c_try_compile "$LINENO"; then :
30941 gdb_cv_thread_db_h_has_td_notalloc=yes
30942 else
30943 gdb_cv_thread_db_h_has_td_notalloc=no
30946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
30950 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
30952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
30953 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
30954 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
30955 $as_echo_n "(cached) " >&6
30956 else
30957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30958 /* end confdefs.h. */
30959 #include <thread_db.h>
30961 main ()
30963 int i = TD_VERSION;
30966 return 0;
30968 _ACEOF
30969 if ac_fn_c_try_compile "$LINENO"; then :
30970 gdb_cv_thread_db_h_has_td_version=yes
30971 else
30972 gdb_cv_thread_db_h_has_td_version=no
30975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
30979 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
30981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
30982 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
30983 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
30984 $as_echo_n "(cached) " >&6
30985 else
30986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30987 /* end confdefs.h. */
30988 #include <thread_db.h>
30990 main ()
30992 int i = TD_NOTLS;
30995 return 0;
30997 _ACEOF
30998 if ac_fn_c_try_compile "$LINENO"; then :
30999 gdb_cv_thread_db_h_has_td_notls=yes
31000 else
31001 gdb_cv_thread_db_h_has_td_notls=no
31004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
31008 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
31010 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
31012 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
31015 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
31017 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
31020 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
31022 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
31026 case $host_os in
31027 go32* | *djgpp*)
31028 gdbinit=gdb.ini
31031 gdbinit=.gdbinit
31033 esac
31035 cat >>confdefs.h <<_ACEOF
31036 #define GDBINIT "$gdbinit"
31037 _ACEOF
31041 cat >>confdefs.h <<_ACEOF
31042 #define GDBEARLYINIT ".gdbearlyinit"
31043 _ACEOF
31047 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
31048 # except that the argument to --with-sysroot is optional.
31049 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
31050 if test "x$with_sysroot" = xyes; then
31051 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
31054 # Check whether --with-sysroot was given.
31055 if test "${with_sysroot+set}" = set; then :
31056 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
31057 else
31058 TARGET_SYSTEM_ROOT=
31062 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
31063 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31064 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
31065 ac_define_dir=`eval echo $ac_define_dir`
31067 cat >>confdefs.h <<_ACEOF
31068 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
31069 _ACEOF
31074 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
31075 if test "x$prefix" = xNONE; then
31076 test_prefix=/usr/local
31077 else
31078 test_prefix=$prefix
31080 else
31081 test_prefix=$exec_prefix
31083 value=0
31084 case ${ac_define_dir} in
31085 "${test_prefix}"|"${test_prefix}/"*|\
31086 '${exec_prefix}'|'${exec_prefix}/'*)
31087 value=1
31089 esac
31091 cat >>confdefs.h <<_ACEOF
31092 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
31093 _ACEOF
31099 # Check whether --with-system-gdbinit was given.
31100 if test "${with_system_gdbinit+set}" = set; then :
31101 withval=$with_system_gdbinit;
31102 SYSTEM_GDBINIT=$withval
31103 else
31104 SYSTEM_GDBINIT=
31108 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
31109 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31110 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
31111 ac_define_dir=`eval echo $ac_define_dir`
31113 cat >>confdefs.h <<_ACEOF
31114 #define SYSTEM_GDBINIT "$ac_define_dir"
31115 _ACEOF
31120 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
31121 if test "x$prefix" = xNONE; then
31122 test_prefix=/usr/local
31123 else
31124 test_prefix=$prefix
31126 else
31127 test_prefix=$exec_prefix
31129 value=0
31130 case ${ac_define_dir} in
31131 "${test_prefix}"|"${test_prefix}/"*|\
31132 '${exec_prefix}'|'${exec_prefix}/'*)
31133 value=1
31135 esac
31137 cat >>confdefs.h <<_ACEOF
31138 #define SYSTEM_GDBINIT_RELOCATABLE $value
31139 _ACEOF
31145 # Check whether --with-system-gdbinit-dir was given.
31146 if test "${with_system_gdbinit_dir+set}" = set; then :
31147 withval=$with_system_gdbinit_dir;
31148 SYSTEM_GDBINIT_DIR=$withval
31149 else
31150 SYSTEM_GDBINIT_DIR=
31154 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
31155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31156 ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR`
31157 ac_define_dir=`eval echo $ac_define_dir`
31159 cat >>confdefs.h <<_ACEOF
31160 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
31161 _ACEOF
31166 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
31167 if test "x$prefix" = xNONE; then
31168 test_prefix=/usr/local
31169 else
31170 test_prefix=$prefix
31172 else
31173 test_prefix=$exec_prefix
31175 value=0
31176 case ${ac_define_dir} in
31177 "${test_prefix}"|"${test_prefix}/"*|\
31178 '${exec_prefix}'|'${exec_prefix}/'*)
31179 value=1
31181 esac
31183 cat >>confdefs.h <<_ACEOF
31184 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
31185 _ACEOF
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
31193 $as_echo_n "checking the compiler type... " >&6; }
31194 if ${gdb_cv_compiler_type+:} false; then :
31195 $as_echo_n "(cached) " >&6
31196 else
31197 gdb_cv_compiler_type=unknown
31198 if test "$gdb_cv_compiler_type" = unknown; then
31199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31200 /* end confdefs.h. */
31203 main ()
31206 #if !defined __GNUC__ || defined __clang__
31207 #error not gcc
31208 #endif
31211 return 0;
31213 _ACEOF
31214 if ac_fn_c_try_compile "$LINENO"; then :
31215 gdb_cv_compiler_type=gcc
31217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31220 if test "$gdb_cv_compiler_type" = unknown; then
31221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31222 /* end confdefs.h. */
31225 main ()
31228 #ifndef __clang__
31229 #error not clang
31230 #endif
31233 return 0;
31235 _ACEOF
31236 if ac_fn_c_try_compile "$LINENO"; then :
31237 gdb_cv_compiler_type=clang
31239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
31244 $as_echo "$gdb_cv_compiler_type" >&6; }
31246 GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
31249 # Check whether --enable-werror was given.
31250 if test "${enable_werror+set}" = set; then :
31251 enableval=$enable_werror; case "${enableval}" in
31252 yes | y) ERROR_ON_WARNING="yes" ;;
31253 no | n) ERROR_ON_WARNING="no" ;;
31254 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
31255 esac
31259 # Enable -Werror by default when using gcc. Turn it off for releases.
31260 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
31261 ERROR_ON_WARNING=yes
31264 WERROR_CFLAGS=""
31265 if test "${ERROR_ON_WARNING}" = yes ; then
31266 WERROR_CFLAGS="-Werror"
31269 # The options we'll try to enable.
31270 build_warnings="-Wall -Wpointer-arith \
31271 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
31272 -Wno-switch -Wno-char-subscripts \
31273 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
31274 -Wno-sign-compare -Wno-error=maybe-uninitialized \
31275 -Wno-mismatched-tags \
31276 -Wno-error=deprecated-register \
31277 -Wsuggest-override \
31278 -Wimplicit-fallthrough=5 \
31279 -Wduplicated-cond \
31280 -Wshadow=local \
31281 -Wdeprecated-copy \
31282 -Wdeprecated-copy-dtor \
31283 -Wredundant-move \
31284 -Wmissing-declarations \
31285 -Wstrict-null-sentinel \
31286 -Wvla \
31289 # The -Wmissing-prototypes flag will be accepted by GCC, but results
31290 # in a warning being printed about the flag not being valid for C++,
31291 # this is something to do with using ccache, and argument ordering.
31292 if test "$GDB_COMPILER_TYPE" != gcc; then
31293 build_warnings="$build_warnings -Wmissing-prototypes"
31296 case "${host}" in
31297 *-*-mingw32*)
31298 # Enable -Wno-format by default when using gcc on mingw since many
31299 # GCC versions complain about %I64.
31300 build_warnings="$build_warnings -Wno-format" ;;
31301 *-*-solaris*)
31302 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
31303 # doesn't understand.
31304 build_warnings="$build_warnings -Wno-unknown-pragmas"
31305 # Solaris 11 <unistd.h> marks vfork deprecated.
31306 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
31308 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
31309 # but there's a special case for this below.
31310 build_warnings="$build_warnings -Wformat-nonliteral" ;;
31311 esac
31313 # Check whether --enable-build-warnings was given.
31314 if test "${enable_build_warnings+set}" = set; then :
31315 enableval=$enable_build_warnings; case "${enableval}" in
31316 yes) ;;
31317 no) build_warnings="-w";;
31318 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
31319 build_warnings="${build_warnings} ${t}";;
31320 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
31321 build_warnings="${t} ${build_warnings}";;
31322 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
31323 esac
31324 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
31325 echo "Setting compiler warning flags = $build_warnings" 6>&1
31328 # Check whether --enable-gdb-build-warnings was given.
31329 if test "${enable_gdb_build_warnings+set}" = set; then :
31330 enableval=$enable_gdb_build_warnings; case "${enableval}" in
31331 yes) ;;
31332 no) build_warnings="-w";;
31333 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
31334 build_warnings="${build_warnings} ${t}";;
31335 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
31336 build_warnings="${t} ${build_warnings}";;
31337 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
31338 esac
31339 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
31340 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
31344 # The set of warnings supported by a C++ compiler is not the same as
31345 # of the C compiler.
31346 ac_ext=cpp
31347 ac_cpp='$CXXCPP $CPPFLAGS'
31348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31353 WARN_CFLAGS=""
31354 if test "x${build_warnings}" != x -a "x$GCC" = xyes
31355 then
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
31357 $as_echo_n "checking compiler warning flags... " >&6; }
31358 # Separate out the -Werror flag as some files just cannot be
31359 # compiled with it enabled.
31360 for w in ${build_warnings}; do
31361 # GCC does not complain about -Wno-unknown-warning. Invert
31362 # and test -Wunknown-warning instead.
31363 case $w in
31364 -Wno-*)
31365 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
31366 -Wformat-nonliteral)
31367 # gcc requires -Wformat before -Wformat-nonliteral
31368 # will work, so stick them together.
31369 w="-Wformat $w"
31370 wtest="$w"
31373 wtest=$w ;;
31374 esac
31376 case $w in
31377 -Werr*) WERROR_CFLAGS=-Werror ;;
31379 # Check whether GCC accepts it.
31380 saved_CFLAGS="$CFLAGS"
31381 CFLAGS="$CFLAGS -Werror $wtest"
31382 saved_CXXFLAGS="$CXXFLAGS"
31383 CXXFLAGS="$CXXFLAGS -Werror $wtest"
31384 if test "x$w" = "x-Wunused-variable"; then
31385 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
31386 # fixed in GCC 4.9. This test is derived from the gdb
31387 # source code that triggered this bug in GCC.
31388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31389 /* end confdefs.h. */
31390 struct scoped_restore_base {};
31391 struct scoped_restore_tmpl : public scoped_restore_base {
31392 ~scoped_restore_tmpl() {}
31395 main ()
31397 const scoped_restore_base &b = scoped_restore_tmpl();
31400 return 0;
31402 _ACEOF
31403 if ac_fn_cxx_try_compile "$LINENO"; then :
31404 WARN_CFLAGS="${WARN_CFLAGS} $w"
31406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31407 else
31408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31409 /* end confdefs.h. */
31412 main ()
31416 return 0;
31418 _ACEOF
31419 if ac_fn_cxx_try_compile "$LINENO"; then :
31420 WARN_CFLAGS="${WARN_CFLAGS} $w"
31422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31424 CFLAGS="$saved_CFLAGS"
31425 CXXFLAGS="$saved_CXXFLAGS"
31426 esac
31427 done
31428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
31429 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
31434 ac_ext=c
31435 ac_cpp='$CPP $CPPFLAGS'
31436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31442 # Check whether --enable-ubsan was given.
31443 if test "${enable_ubsan+set}" = set; then :
31444 enableval=$enable_ubsan;
31445 else
31446 enable_ubsan=no
31449 if test "x$enable_ubsan" = xauto; then
31450 if $development; then
31451 enable_ubsan=yes
31454 ac_ext=cpp
31455 ac_cpp='$CXXCPP $CPPFLAGS'
31456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31460 if test "x$enable_ubsan" = xyes; then
31461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
31462 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
31463 saved_CXXFLAGS="$CXXFLAGS"
31464 CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
31465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31466 /* end confdefs.h. */
31469 main ()
31473 return 0;
31475 _ACEOF
31476 if ac_fn_cxx_try_link "$LINENO"; then :
31477 enable_ubsan=yes
31478 else
31479 enable_ubsan=no
31482 rm -f core conftest.err conftest.$ac_objext \
31483 conftest$ac_exeext conftest.$ac_ext
31484 CXXFLAGS="$saved_CXXFLAGS"
31485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
31486 $as_echo "$enable_ubsan" >&6; }
31487 if test "x$enable_ubsan" = xyes; then
31488 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
31489 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
31492 ac_ext=c
31493 ac_cpp='$CPP $CPPFLAGS'
31494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31500 # In the Cygwin environment, we need some additional flags.
31501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
31502 $as_echo_n "checking for cygwin... " >&6; }
31503 if ${gdb_cv_os_cygwin+:} false; then :
31504 $as_echo_n "(cached) " >&6
31505 else
31506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31507 /* end confdefs.h. */
31509 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
31510 lose
31511 #endif
31512 _ACEOF
31513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31514 $EGREP "^lose$" >/dev/null 2>&1; then :
31515 gdb_cv_os_cygwin=yes
31516 else
31517 gdb_cv_os_cygwin=no
31519 rm -f conftest*
31522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
31523 $as_echo "$gdb_cv_os_cygwin" >&6; }
31526 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
31527 case ${host} in
31528 *go32* ) SER_HARDWIRE=ser-go32.o ;;
31529 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
31530 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
31531 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
31532 esac
31535 # libreadline needs libuser32.a in a cygwin environment
31536 WIN32LIBS=
31537 if test x"$gdb_cv_os_cygwin" = xyes; then
31538 WIN32LIBS="-luser32"
31539 case "${target}" in
31540 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
31542 esac
31545 # The ser-tcp.c module requires sockets.
31546 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
31547 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
31549 # Add ELF support to GDB, but only if BFD includes ELF support.
31551 OLD_CFLAGS=$CFLAGS
31552 OLD_LDFLAGS=$LDFLAGS
31553 OLD_LIBS=$LIBS
31554 OLD_CC=$CC
31555 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
31556 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
31557 # always want our bfd.
31558 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
31559 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
31560 # LTLIBINTL because we use libtool as CC below.
31561 intl="$(echo "$LTLIBINTL" | sed 's,\$[{(]top_builddir[)}]/,,')"
31562 LIBS="-lbfd -liberty $intl $LIBS"
31563 CC="./libtool --quiet --mode=link $CC"
31564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
31565 $as_echo_n "checking for ELF support in BFD... " >&6; }
31566 if ${gdb_cv_var_elf+:} false; then :
31567 $as_echo_n "(cached) " >&6
31568 else
31569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31570 /* end confdefs.h. */
31571 #include <stdlib.h>
31572 #include <string.h>
31573 #include "bfd.h"
31574 #include "elf-bfd.h"
31576 main ()
31578 return bfd_get_elf_phdr_upper_bound (NULL);
31581 return 0;
31583 _ACEOF
31584 if ac_fn_c_try_link "$LINENO"; then :
31585 gdb_cv_var_elf=yes
31586 else
31587 gdb_cv_var_elf=no
31590 rm -f core conftest.err conftest.$ac_objext \
31591 conftest$ac_exeext conftest.$ac_ext
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
31595 $as_echo "$gdb_cv_var_elf" >&6; }
31596 CC=$OLD_CC
31597 CFLAGS=$OLD_CFLAGS
31598 LDFLAGS=$OLD_LDFLAGS
31599 LIBS=$OLD_LIBS
31600 if test "$gdb_cv_var_elf" = yes; then
31601 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
31602 gcore-elf.o elf-none-tdep.o"
31604 $as_echo "#define HAVE_ELF 1" >>confdefs.h
31606 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
31607 if test "$plugins" = "yes"; then
31608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31609 $as_echo_n "checking for library containing dlopen... " >&6; }
31610 if ${ac_cv_search_dlopen+:} false; then :
31611 $as_echo_n "(cached) " >&6
31612 else
31613 ac_func_search_save_LIBS=$LIBS
31614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31615 /* end confdefs.h. */
31617 /* Override any GCC internal prototype to avoid an error.
31618 Use char because int might match the return type of a GCC
31619 builtin and then its argument prototype would still apply. */
31620 #ifdef __cplusplus
31621 extern "C"
31622 #endif
31623 char dlopen ();
31625 main ()
31627 return dlopen ();
31629 return 0;
31631 _ACEOF
31632 for ac_lib in '' dl; do
31633 if test -z "$ac_lib"; then
31634 ac_res="none required"
31635 else
31636 ac_res=-l$ac_lib
31637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31639 if ac_fn_c_try_link "$LINENO"; then :
31640 ac_cv_search_dlopen=$ac_res
31642 rm -f core conftest.err conftest.$ac_objext \
31643 conftest$ac_exeext
31644 if ${ac_cv_search_dlopen+:} false; then :
31645 break
31647 done
31648 if ${ac_cv_search_dlopen+:} false; then :
31650 else
31651 ac_cv_search_dlopen=no
31653 rm conftest.$ac_ext
31654 LIBS=$ac_func_search_save_LIBS
31656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31657 $as_echo "$ac_cv_search_dlopen" >&6; }
31658 ac_res=$ac_cv_search_dlopen
31659 if test "$ac_res" != no; then :
31660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31667 # Add macho support to GDB, but only if BFD includes it.
31669 OLD_CFLAGS=$CFLAGS
31670 OLD_LDFLAGS=$LDFLAGS
31671 OLD_LIBS=$LIBS
31672 OLD_CC=$CC
31673 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
31674 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
31675 # always want our bfd.
31676 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
31677 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
31678 # LTLIBINTL because we use libtool as CC below.
31679 intl="$(echo "$LTLIBINTL" | sed 's,\$[{(]top_builddir[)}]/,,')"
31680 LIBS="-lbfd -liberty $intl $LIBS"
31681 CC="./libtool --quiet --mode=link $CC"
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
31683 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
31684 if ${gdb_cv_var_macho+:} false; then :
31685 $as_echo_n "(cached) " >&6
31686 else
31687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31688 /* end confdefs.h. */
31689 #include <stdlib.h>
31690 #include <string.h>
31691 #include "bfd.h"
31692 #include "mach-o.h"
31694 main ()
31696 return bfd_mach_o_lookup_command (NULL, 0, NULL);
31699 return 0;
31701 _ACEOF
31702 if ac_fn_c_try_link "$LINENO"; then :
31703 gdb_cv_var_macho=yes
31704 else
31705 gdb_cv_var_macho=no
31708 rm -f core conftest.err conftest.$ac_objext \
31709 conftest$ac_exeext conftest.$ac_ext
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
31713 $as_echo "$gdb_cv_var_macho" >&6; }
31714 CC=$OLD_CC
31715 CFLAGS=$OLD_CFLAGS
31716 LDFLAGS=$OLD_LDFLAGS
31717 LIBS=$OLD_LIBS
31718 if test "$gdb_cv_var_macho" = yes; then
31719 CONFIG_OBS="$CONFIG_OBS machoread.o"
31722 # Add any host-specific objects to GDB.
31723 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
31725 # If building on ELF, look for lzma support for embedded compressed debug info.
31726 if test "$gdb_cv_var_elf" = yes; then
31728 # Check whether --with-lzma was given.
31729 if test "${with_lzma+set}" = set; then :
31730 withval=$with_lzma;
31731 else
31732 with_lzma=auto
31735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
31736 $as_echo_n "checking whether to use lzma... " >&6; }
31737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
31738 $as_echo "$with_lzma" >&6; }
31740 if test "${with_lzma}" != no; then
31749 use_additional=yes
31751 acl_save_prefix="$prefix"
31752 prefix="$acl_final_prefix"
31753 acl_save_exec_prefix="$exec_prefix"
31754 exec_prefix="$acl_final_exec_prefix"
31756 eval additional_includedir=\"$includedir\"
31757 eval additional_libdir=\"$libdir\"
31759 exec_prefix="$acl_save_exec_prefix"
31760 prefix="$acl_save_prefix"
31763 # Check whether --with-liblzma-prefix was given.
31764 if test "${with_liblzma_prefix+set}" = set; then :
31765 withval=$with_liblzma_prefix;
31766 if test "X$withval" = "Xno"; then
31767 use_additional=no
31768 else
31769 if test "X$withval" = "X"; then
31771 acl_save_prefix="$prefix"
31772 prefix="$acl_final_prefix"
31773 acl_save_exec_prefix="$exec_prefix"
31774 exec_prefix="$acl_final_exec_prefix"
31776 eval additional_includedir=\"$includedir\"
31777 eval additional_libdir=\"$libdir\"
31779 exec_prefix="$acl_save_exec_prefix"
31780 prefix="$acl_save_prefix"
31782 else
31783 additional_includedir="$withval/include"
31784 additional_libdir="$withval/lib"
31791 # Check whether --with-liblzma-type was given.
31792 if test "${with_liblzma_type+set}" = set; then :
31793 withval=$with_liblzma_type; with_liblzma_type=$withval
31794 else
31795 with_liblzma_type=auto
31798 lib_type=`eval echo \$with_liblzma_type`
31800 LIBLZMA=
31801 LTLIBLZMA=
31802 INCLZMA=
31803 rpathdirs=
31804 ltrpathdirs=
31805 names_already_handled=
31806 names_next_round='lzma '
31807 while test -n "$names_next_round"; do
31808 names_this_round="$names_next_round"
31809 names_next_round=
31810 for name in $names_this_round; do
31811 already_handled=
31812 for n in $names_already_handled; do
31813 if test "$n" = "$name"; then
31814 already_handled=yes
31815 break
31817 done
31818 if test -z "$already_handled"; then
31819 names_already_handled="$names_already_handled $name"
31820 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
31821 eval value=\"\$HAVE_LIB$uppername\"
31822 if test -n "$value"; then
31823 if test "$value" = yes; then
31824 eval value=\"\$LIB$uppername\"
31825 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
31826 eval value=\"\$LTLIB$uppername\"
31827 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
31828 else
31831 else
31832 found_dir=
31833 found_la=
31834 found_so=
31835 found_a=
31836 if test $use_additional = yes; then
31837 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
31838 found_dir="$additional_libdir"
31839 found_so="$additional_libdir/lib$name.$shlibext"
31840 if test -f "$additional_libdir/lib$name.la"; then
31841 found_la="$additional_libdir/lib$name.la"
31843 elif test x$lib_type != xshared; then
31844 if test -f "$additional_libdir/lib$name.$libext"; then
31845 found_dir="$additional_libdir"
31846 found_a="$additional_libdir/lib$name.$libext"
31847 if test -f "$additional_libdir/lib$name.la"; then
31848 found_la="$additional_libdir/lib$name.la"
31853 if test "X$found_dir" = "X"; then
31854 for x in $LDFLAGS $LTLIBLZMA; do
31856 acl_save_prefix="$prefix"
31857 prefix="$acl_final_prefix"
31858 acl_save_exec_prefix="$exec_prefix"
31859 exec_prefix="$acl_final_exec_prefix"
31860 eval x=\"$x\"
31861 exec_prefix="$acl_save_exec_prefix"
31862 prefix="$acl_save_prefix"
31864 case "$x" in
31865 -L*)
31866 dir=`echo "X$x" | sed -e 's/^X-L//'`
31867 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
31868 found_dir="$dir"
31869 found_so="$dir/lib$name.$shlibext"
31870 if test -f "$dir/lib$name.la"; then
31871 found_la="$dir/lib$name.la"
31873 elif test x$lib_type != xshared; then
31874 if test -f "$dir/lib$name.$libext"; then
31875 found_dir="$dir"
31876 found_a="$dir/lib$name.$libext"
31877 if test -f "$dir/lib$name.la"; then
31878 found_la="$dir/lib$name.la"
31883 esac
31884 if test "X$found_dir" != "X"; then
31885 break
31887 done
31889 if test "X$found_dir" != "X"; then
31890 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
31891 if test "X$found_so" != "X"; then
31892 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
31893 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
31894 else
31895 haveit=
31896 for x in $ltrpathdirs; do
31897 if test "X$x" = "X$found_dir"; then
31898 haveit=yes
31899 break
31901 done
31902 if test -z "$haveit"; then
31903 ltrpathdirs="$ltrpathdirs $found_dir"
31905 if test "$hardcode_direct" = yes; then
31906 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
31907 else
31908 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
31909 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
31910 haveit=
31911 for x in $rpathdirs; do
31912 if test "X$x" = "X$found_dir"; then
31913 haveit=yes
31914 break
31916 done
31917 if test -z "$haveit"; then
31918 rpathdirs="$rpathdirs $found_dir"
31920 else
31921 haveit=
31922 for x in $LDFLAGS $LIBLZMA; do
31924 acl_save_prefix="$prefix"
31925 prefix="$acl_final_prefix"
31926 acl_save_exec_prefix="$exec_prefix"
31927 exec_prefix="$acl_final_exec_prefix"
31928 eval x=\"$x\"
31929 exec_prefix="$acl_save_exec_prefix"
31930 prefix="$acl_save_prefix"
31932 if test "X$x" = "X-L$found_dir"; then
31933 haveit=yes
31934 break
31936 done
31937 if test -z "$haveit"; then
31938 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
31940 if test "$hardcode_minus_L" != no; then
31941 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
31942 else
31943 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
31948 else
31949 if test "X$found_a" != "X"; then
31950 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
31951 else
31952 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
31955 additional_includedir=
31956 case "$found_dir" in
31957 */lib | */lib/)
31958 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
31959 additional_includedir="$basedir/include"
31961 esac
31962 if test "X$additional_includedir" != "X"; then
31963 if test "X$additional_includedir" != "X/usr/include"; then
31964 haveit=
31965 if test "X$additional_includedir" = "X/usr/local/include"; then
31966 if test -n "$GCC"; then
31967 case $host_os in
31968 linux*) haveit=yes;;
31969 esac
31972 if test -z "$haveit"; then
31973 for x in $CPPFLAGS $INCLZMA; do
31975 acl_save_prefix="$prefix"
31976 prefix="$acl_final_prefix"
31977 acl_save_exec_prefix="$exec_prefix"
31978 exec_prefix="$acl_final_exec_prefix"
31979 eval x=\"$x\"
31980 exec_prefix="$acl_save_exec_prefix"
31981 prefix="$acl_save_prefix"
31983 if test "X$x" = "X-I$additional_includedir"; then
31984 haveit=yes
31985 break
31987 done
31988 if test -z "$haveit"; then
31989 if test -d "$additional_includedir"; then
31990 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
31996 if test -n "$found_la"; then
31997 save_libdir="$libdir"
31998 case "$found_la" in
31999 */* | *\\*) . "$found_la" ;;
32000 *) . "./$found_la" ;;
32001 esac
32002 libdir="$save_libdir"
32003 for dep in $dependency_libs; do
32004 case "$dep" in
32005 -L*)
32006 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
32007 if test "X$additional_libdir" != "X/usr/lib"; then
32008 haveit=
32009 if test "X$additional_libdir" = "X/usr/local/lib"; then
32010 if test -n "$GCC"; then
32011 case $host_os in
32012 linux*) haveit=yes;;
32013 esac
32016 if test -z "$haveit"; then
32017 haveit=
32018 for x in $LDFLAGS $LIBLZMA; do
32020 acl_save_prefix="$prefix"
32021 prefix="$acl_final_prefix"
32022 acl_save_exec_prefix="$exec_prefix"
32023 exec_prefix="$acl_final_exec_prefix"
32024 eval x=\"$x\"
32025 exec_prefix="$acl_save_exec_prefix"
32026 prefix="$acl_save_prefix"
32028 if test "X$x" = "X-L$additional_libdir"; then
32029 haveit=yes
32030 break
32032 done
32033 if test -z "$haveit"; then
32034 if test -d "$additional_libdir"; then
32035 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
32038 haveit=
32039 for x in $LDFLAGS $LTLIBLZMA; do
32041 acl_save_prefix="$prefix"
32042 prefix="$acl_final_prefix"
32043 acl_save_exec_prefix="$exec_prefix"
32044 exec_prefix="$acl_final_exec_prefix"
32045 eval x=\"$x\"
32046 exec_prefix="$acl_save_exec_prefix"
32047 prefix="$acl_save_prefix"
32049 if test "X$x" = "X-L$additional_libdir"; then
32050 haveit=yes
32051 break
32053 done
32054 if test -z "$haveit"; then
32055 if test -d "$additional_libdir"; then
32056 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
32062 -R*)
32063 dir=`echo "X$dep" | sed -e 's/^X-R//'`
32064 if test "$enable_rpath" != no; then
32065 haveit=
32066 for x in $rpathdirs; do
32067 if test "X$x" = "X$dir"; then
32068 haveit=yes
32069 break
32071 done
32072 if test -z "$haveit"; then
32073 rpathdirs="$rpathdirs $dir"
32075 haveit=
32076 for x in $ltrpathdirs; do
32077 if test "X$x" = "X$dir"; then
32078 haveit=yes
32079 break
32081 done
32082 if test -z "$haveit"; then
32083 ltrpathdirs="$ltrpathdirs $dir"
32087 -l*)
32088 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
32090 *.la)
32091 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
32094 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
32095 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
32097 esac
32098 done
32100 else
32101 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
32102 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
32103 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
32104 else
32105 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
32106 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
32111 done
32112 done
32113 if test "X$rpathdirs" != "X"; then
32114 if test -n "$hardcode_libdir_separator"; then
32115 alldirs=
32116 for found_dir in $rpathdirs; do
32117 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
32118 done
32119 acl_save_libdir="$libdir"
32120 libdir="$alldirs"
32121 eval flag=\"$hardcode_libdir_flag_spec\"
32122 libdir="$acl_save_libdir"
32123 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
32124 else
32125 for found_dir in $rpathdirs; do
32126 acl_save_libdir="$libdir"
32127 libdir="$found_dir"
32128 eval flag=\"$hardcode_libdir_flag_spec\"
32129 libdir="$acl_save_libdir"
32130 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
32131 done
32134 if test "X$ltrpathdirs" != "X"; then
32135 for found_dir in $ltrpathdirs; do
32136 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
32137 done
32141 ac_save_CPPFLAGS="$CPPFLAGS"
32143 for element in $INCLZMA; do
32144 haveit=
32145 for x in $CPPFLAGS; do
32147 acl_save_prefix="$prefix"
32148 prefix="$acl_final_prefix"
32149 acl_save_exec_prefix="$exec_prefix"
32150 exec_prefix="$acl_final_exec_prefix"
32151 eval x=\"$x\"
32152 exec_prefix="$acl_save_exec_prefix"
32153 prefix="$acl_save_prefix"
32155 if test "X$x" = "X$element"; then
32156 haveit=yes
32157 break
32159 done
32160 if test -z "$haveit"; then
32161 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
32163 done
32166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
32167 $as_echo_n "checking for liblzma... " >&6; }
32168 if ${ac_cv_liblzma+:} false; then :
32169 $as_echo_n "(cached) " >&6
32170 else
32172 ac_save_LIBS="$LIBS"
32173 LIBS="$LIBS $LIBLZMA"
32174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32175 /* end confdefs.h. */
32176 #include "lzma.h"
32178 main ()
32180 lzma_index_iter iter;
32181 lzma_index_iter_init (&iter, 0);
32182 lzma_mf_is_supported (LZMA_MF_HC3);
32184 return 0;
32186 _ACEOF
32187 if ac_fn_c_try_link "$LINENO"; then :
32188 ac_cv_liblzma=yes
32189 else
32190 ac_cv_liblzma=no
32192 rm -f core conftest.err conftest.$ac_objext \
32193 conftest$ac_exeext conftest.$ac_ext
32194 LIBS="$ac_save_LIBS"
32197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
32198 $as_echo "$ac_cv_liblzma" >&6; }
32199 if test "$ac_cv_liblzma" = yes; then
32200 HAVE_LIBLZMA=yes
32202 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
32205 $as_echo_n "checking how to link with liblzma... " >&6; }
32206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
32207 $as_echo "$LIBLZMA" >&6; }
32208 else
32209 HAVE_LIBLZMA=no
32210 CPPFLAGS="$ac_save_CPPFLAGS"
32211 LIBLZMA=
32212 LTLIBLZMA=
32220 if test "$HAVE_LIBLZMA" != yes; then
32221 if test "$with_lzma" = yes; then
32222 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
32228 LIBGUI="../libgui/src/libgui.a"
32229 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
32233 WIN32LDAPP=
32237 case "${host}" in
32238 *-*-cygwin* | *-*-mingw* )
32239 configdir="win"
32242 configdir="unix"
32244 esac
32246 GDBTKLIBS=
32247 if test "${enable_gdbtk}" = "yes"; then
32249 # Gdbtk must have an absolute path to srcdir in order to run
32250 # properly when not installed.
32251 here=`pwd`
32252 cd ${srcdir}
32253 GDBTK_SRC_DIR=`pwd`
32254 cd $here
32258 # Ok, lets find the tcl configuration
32259 # First, look for one uninstalled.
32260 # the alternative search directory is invoked by --with-tcl
32263 if test x"${no_tcl}" = x ; then
32264 # we reset no_tcl in case something fails here
32265 no_tcl=true
32267 # Check whether --with-tcl was given.
32268 if test "${with_tcl+set}" = set; then :
32269 withval=$with_tcl; with_tclconfig=${withval}
32272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
32273 $as_echo_n "checking for Tcl configuration... " >&6; }
32274 if ${ac_cv_c_tclconfig+:} false; then :
32275 $as_echo_n "(cached) " >&6
32276 else
32279 # First check to see if --with-tcl was specified.
32280 case "${host}" in
32281 *-*-cygwin*) platDir="win" ;;
32282 *) platDir="unix" ;;
32283 esac
32284 if test x"${with_tclconfig}" != x ; then
32285 if test -f "${with_tclconfig}/tclConfig.sh" ; then
32286 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
32287 else
32288 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
32292 # then check for a private Tcl installation
32293 if test x"${ac_cv_c_tclconfig}" = x ; then
32294 for i in \
32295 ../tcl \
32296 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32297 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
32298 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
32299 ../../tcl \
32300 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32301 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
32302 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
32303 ../../../tcl \
32304 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32305 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
32306 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
32307 if test -f "$i/$platDir/tclConfig.sh" ; then
32308 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
32309 break
32311 done
32314 # on Darwin, check in Framework installation locations
32315 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
32316 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
32317 `ls -d /Library/Frameworks 2>/dev/null` \
32318 `ls -d /Network/Library/Frameworks 2>/dev/null` \
32319 `ls -d /System/Library/Frameworks 2>/dev/null` \
32320 ; do
32321 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
32322 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
32323 break
32325 done
32328 # check in a few common install locations
32329 if test x"${ac_cv_c_tclconfig}" = x ; then
32330 for i in `ls -d ${libdir} 2>/dev/null` \
32331 `ls -d ${exec_prefix}/lib 2>/dev/null` \
32332 `ls -d ${prefix}/lib 2>/dev/null` \
32333 `ls -d /usr/local/lib 2>/dev/null` \
32334 `ls -d /usr/contrib/lib 2>/dev/null` \
32335 `ls -d /usr/lib 2>/dev/null` \
32336 ; do
32337 if test -f "$i/tclConfig.sh" ; then
32338 ac_cv_c_tclconfig=`(cd $i; pwd)`
32339 break
32341 done
32344 # check in a few other private locations
32345 if test x"${ac_cv_c_tclconfig}" = x ; then
32346 for i in \
32347 ${srcdir}/../tcl \
32348 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32349 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
32350 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
32351 if test -f "$i/$platDir/tclConfig.sh" ; then
32352 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
32353 break
32355 done
32361 if test x"${ac_cv_c_tclconfig}" = x ; then
32362 TCL_BIN_DIR="# no Tcl configs found"
32363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
32364 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
32365 else
32366 no_tcl=
32367 TCL_BIN_DIR=${ac_cv_c_tclconfig}
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
32369 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
32374 # If $no_tk is nonempty, then we can't do Tk, and there is no
32375 # point to doing Tcl.
32378 # Ok, lets find the tk configuration
32379 # First, look for one uninstalled.
32380 # the alternative search directory is invoked by --with-tk
32383 if test x"${no_tk}" = x ; then
32384 # we reset no_tk in case something fails here
32385 no_tk=true
32387 # Check whether --with-tk was given.
32388 if test "${with_tk+set}" = set; then :
32389 withval=$with_tk; with_tkconfig=${withval}
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
32393 $as_echo_n "checking for Tk configuration... " >&6; }
32394 if ${ac_cv_c_tkconfig+:} false; then :
32395 $as_echo_n "(cached) " >&6
32396 else
32399 # First check to see if --with-tkconfig was specified.
32400 if test x"${with_tkconfig}" != x ; then
32401 if test -f "${with_tkconfig}/tkConfig.sh" ; then
32402 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
32403 else
32404 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
32408 # then check for a private Tk library
32409 case "${host}" in
32410 *-*-cygwin*) platDir="win" ;;
32411 *) platDir="unix" ;;
32412 esac
32413 if test x"${ac_cv_c_tkconfig}" = x ; then
32414 for i in \
32415 ../tk \
32416 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32417 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
32418 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
32419 ../../tk \
32420 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32421 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
32422 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
32423 ../../../tk \
32424 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32425 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
32426 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
32427 if test -f "$i/$platDir/tkConfig.sh" ; then
32428 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
32429 break
32431 done
32434 # on Darwin, check in Framework installation locations
32435 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
32436 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
32437 `ls -d /Library/Frameworks 2>/dev/null` \
32438 `ls -d /Network/Library/Frameworks 2>/dev/null` \
32439 `ls -d /System/Library/Frameworks 2>/dev/null` \
32440 ; do
32441 if test -f "$i/Tk.framework/tkConfig.sh" ; then
32442 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
32443 break
32445 done
32448 # check in a few common install locations
32449 if test x"${ac_cv_c_tkconfig}" = x ; then
32450 for i in `ls -d ${libdir} 2>/dev/null` \
32451 `ls -d ${exec_prefix}/lib 2>/dev/null` \
32452 `ls -d ${prefix}/lib 2>/dev/null` \
32453 `ls -d /usr/local/lib 2>/dev/null` \
32454 `ls -d /usr/contrib/lib 2>/dev/null` \
32455 `ls -d /usr/lib 2>/dev/null` \
32456 ; do
32457 if test -f "$i/tkConfig.sh" ; then
32458 ac_cv_c_tkconfig=`(cd $i; pwd)`
32459 break
32461 done
32463 # check in a few other private locations
32464 if test x"${ac_cv_c_tkconfig}" = x ; then
32465 for i in \
32466 ${srcdir}/../tk \
32467 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32468 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
32469 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
32470 if test -f "$i/$platDir/tkConfig.sh" ; then
32471 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
32472 break
32474 done
32480 if test x"${ac_cv_c_tkconfig}" = x ; then
32481 TK_BIN_DIR="# no Tk configs found"
32482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
32483 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
32484 else
32485 no_tk=
32486 TK_BIN_DIR=${ac_cv_c_tkconfig}
32487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
32488 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
32493 if test -z "${no_tcl}" -a -z "${no_tk}"; then
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
32496 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
32498 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
32499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
32500 $as_echo "loading" >&6; }
32501 . ${TCL_BIN_DIR}/tclConfig.sh
32502 else
32503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
32504 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
32507 # eval is required to do the TCL_DBGX substitution
32508 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
32509 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
32511 # If the TCL_BIN_DIR is the build directory (not the install directory),
32512 # then set the common variable name to the value of the build variables.
32513 # For example, the variable TCL_LIB_SPEC will be set to the value
32514 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
32515 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
32516 # installed and uninstalled version of Tcl.
32517 if test -f "${TCL_BIN_DIR}/Makefile" ; then
32518 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
32519 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
32520 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
32521 elif test "`uname -s`" = "Darwin"; then
32522 # If Tcl was built as a framework, attempt to use the libraries
32523 # from the framework at the given location so that linking works
32524 # against Tcl.framework installed in an arbitrary location.
32525 case ${TCL_DEFS} in
32526 *TCL_FRAMEWORK*)
32527 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
32528 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
32529 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
32530 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
32531 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
32532 break
32534 done
32536 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
32537 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
32538 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
32541 esac
32544 # eval is required to do the TCL_DBGX substitution
32545 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
32546 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
32547 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
32548 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
32564 # Check for in-tree tcl
32565 here=`pwd`
32566 cd ${srcdir}/..
32567 topdir=`pwd`
32568 cd ${here}
32570 intree="no"
32571 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
32572 intree="yes"
32575 # Find Tcl private headers
32576 if test x"${intree}" = xno; then
32578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
32579 $as_echo_n "checking for Tcl private headers... " >&6; }
32580 private_dir=""
32581 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
32582 if test -f ${dir}/tclInt.h ; then
32583 private_dir=${dir}
32586 if test x"${private_dir}" = x; then
32587 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
32588 else
32589 TCL_PRIVATE_INCLUDE="-I${private_dir}"
32590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
32591 $as_echo "${private_dir}" >&6; }
32594 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
32595 TCL_LIBRARY="${TCL_LIB_SPEC}"
32596 TCL_DEPS=""
32597 else
32598 # If building tcl in the same src tree, private headers
32599 # are not needed, but we need to be sure to use the right
32600 # headers library
32601 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
32602 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
32603 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
32610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
32611 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
32613 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
32614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
32615 $as_echo "loading" >&6; }
32616 . ${TK_BIN_DIR}/tkConfig.sh
32617 else
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
32619 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
32622 # eval is required to do the TK_DBGX substitution
32623 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
32624 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
32626 # If the TK_BIN_DIR is the build directory (not the install directory),
32627 # then set the common variable name to the value of the build variables.
32628 # For example, the variable TK_LIB_SPEC will be set to the value
32629 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
32630 # instead of TK_BUILD_LIB_SPEC since it will work with both an
32631 # installed and uninstalled version of Tcl.
32632 if test -f "${TK_BIN_DIR}/Makefile" ; then
32633 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
32634 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
32635 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
32636 elif test "`uname -s`" = "Darwin"; then
32637 # If Tk was built as a framework, attempt to use the libraries
32638 # from the framework at the given location so that linking works
32639 # against Tk.framework installed in an arbitrary location.
32640 case ${TK_DEFS} in
32641 *TK_FRAMEWORK*)
32642 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
32643 for i in "`cd ${TK_BIN_DIR}; pwd`" \
32644 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
32645 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
32646 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
32647 break
32649 done
32651 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
32652 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
32653 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
32656 esac
32659 # eval is required to do the TK_DBGX substitution
32660 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
32661 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
32662 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
32663 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
32678 # Check for in-tree Tk
32679 intree="no"
32680 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
32681 intree="yes"
32684 # Find Tk private headers
32685 if test x"${intree}" = xno; then
32687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
32688 $as_echo_n "checking for Tk private headers... " >&6; }
32689 private_dir=""
32690 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
32691 if test -f ${dir}/tkInt.h; then
32692 private_dir=${dir}
32695 if test x"${private_dir}" = x; then
32696 as_fn_error $? "could not find Tk private headers" "$LINENO" 5
32697 else
32698 TK_PRIVATE_INCLUDE="-I${private_dir}"
32699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
32700 $as_echo "${private_dir}" >&6; }
32703 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
32704 TK_LIBRARY=${TK_LIB_SPEC}
32705 TK_DEPS=""
32706 else
32707 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
32708 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
32709 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
32716 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
32718 # Include some libraries that Tcl and Tk want.
32719 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
32720 # Yes, the ordering seems wrong here. But it isn't.
32721 # TK_LIBS is the list of libraries that need to be linked
32722 # after Tcl/Tk. Note that this isn't put into LIBS. If it
32723 # were in LIBS then any link tests after this point would
32724 # try to include things like `$(LIBGUI)', which wouldn't work.
32725 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
32727 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
32728 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
32729 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
32730 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
32731 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
32732 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
32733 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
32735 if test x"$gdb_cv_os_cygwin" = xyes; then
32736 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
32737 WIN32LDAPP="-Wl,--subsystem,console"
32738 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
32741 subdirs="$subdirs gdbtk"
32753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
32754 $as_echo_n "checking for X... " >&6; }
32757 # Check whether --with-x was given.
32758 if test "${with_x+set}" = set; then :
32759 withval=$with_x;
32762 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32763 if test "x$with_x" = xno; then
32764 # The user explicitly disabled X.
32765 have_x=disabled
32766 else
32767 case $x_includes,$x_libraries in #(
32768 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
32769 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
32770 $as_echo_n "(cached) " >&6
32771 else
32772 # One or both of the vars are not set, and there is no cached value.
32773 ac_x_includes=no ac_x_libraries=no
32774 rm -f -r conftest.dir
32775 if mkdir conftest.dir; then
32776 cd conftest.dir
32777 cat >Imakefile <<'_ACEOF'
32778 incroot:
32779 @echo incroot='${INCROOT}'
32780 usrlibdir:
32781 @echo usrlibdir='${USRLIBDIR}'
32782 libdir:
32783 @echo libdir='${LIBDIR}'
32784 _ACEOF
32785 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
32786 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
32787 for ac_var in incroot usrlibdir libdir; do
32788 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32789 done
32790 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32791 for ac_extension in a so sl dylib la dll; do
32792 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32793 test -f "$ac_im_libdir/libX11.$ac_extension"; then
32794 ac_im_usrlibdir=$ac_im_libdir; break
32796 done
32797 # Screen out bogus values from the imake configuration. They are
32798 # bogus both because they are the default anyway, and because
32799 # using them would break gcc on systems where it needs fixed includes.
32800 case $ac_im_incroot in
32801 /usr/include) ac_x_includes= ;;
32802 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32803 esac
32804 case $ac_im_usrlibdir in
32805 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
32806 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32807 esac
32809 cd ..
32810 rm -f -r conftest.dir
32813 # Standard set of common directories for X headers.
32814 # Check X11 before X11Rn because it is often a symlink to the current release.
32815 ac_x_header_dirs='
32816 /usr/X11/include
32817 /usr/X11R7/include
32818 /usr/X11R6/include
32819 /usr/X11R5/include
32820 /usr/X11R4/include
32822 /usr/include/X11
32823 /usr/include/X11R7
32824 /usr/include/X11R6
32825 /usr/include/X11R5
32826 /usr/include/X11R4
32828 /usr/local/X11/include
32829 /usr/local/X11R7/include
32830 /usr/local/X11R6/include
32831 /usr/local/X11R5/include
32832 /usr/local/X11R4/include
32834 /usr/local/include/X11
32835 /usr/local/include/X11R7
32836 /usr/local/include/X11R6
32837 /usr/local/include/X11R5
32838 /usr/local/include/X11R4
32840 /usr/X386/include
32841 /usr/x386/include
32842 /usr/XFree86/include/X11
32844 /usr/include
32845 /usr/local/include
32846 /usr/unsupported/include
32847 /usr/athena/include
32848 /usr/local/x11r5/include
32849 /usr/lpp/Xamples/include
32851 /usr/openwin/include
32852 /usr/openwin/share/include'
32854 if test "$ac_x_includes" = no; then
32855 # Guess where to find include files, by looking for Xlib.h.
32856 # First, try using that file with no special directory specified.
32857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32858 /* end confdefs.h. */
32859 #include <X11/Xlib.h>
32860 _ACEOF
32861 if ac_fn_c_try_cpp "$LINENO"; then :
32862 # We can compile using X headers with no special include directory.
32863 ac_x_includes=
32864 else
32865 for ac_dir in $ac_x_header_dirs; do
32866 if test -r "$ac_dir/X11/Xlib.h"; then
32867 ac_x_includes=$ac_dir
32868 break
32870 done
32872 rm -f conftest.err conftest.i conftest.$ac_ext
32873 fi # $ac_x_includes = no
32875 if test "$ac_x_libraries" = no; then
32876 # Check for the libraries.
32877 # See if we find them without any special options.
32878 # Don't add to $LIBS permanently.
32879 ac_save_LIBS=$LIBS
32880 LIBS="-lX11 $LIBS"
32881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32882 /* end confdefs.h. */
32883 #include <X11/Xlib.h>
32885 main ()
32887 XrmInitialize ()
32889 return 0;
32891 _ACEOF
32892 if ac_fn_c_try_link "$LINENO"; then :
32893 LIBS=$ac_save_LIBS
32894 # We can link X programs with no special library path.
32895 ac_x_libraries=
32896 else
32897 LIBS=$ac_save_LIBS
32898 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32900 # Don't even attempt the hair of trying to link an X program!
32901 for ac_extension in a so sl dylib la dll; do
32902 if test -r "$ac_dir/libX11.$ac_extension"; then
32903 ac_x_libraries=$ac_dir
32904 break 2
32906 done
32907 done
32909 rm -f core conftest.err conftest.$ac_objext \
32910 conftest$ac_exeext conftest.$ac_ext
32911 fi # $ac_x_libraries = no
32913 case $ac_x_includes,$ac_x_libraries in #(
32914 no,* | *,no | *\'*)
32915 # Didn't find X, or a directory has "'" in its name.
32916 ac_cv_have_x="have_x=no";; #(
32918 # Record where we found X for the cache.
32919 ac_cv_have_x="have_x=yes\
32920 ac_x_includes='$ac_x_includes'\
32921 ac_x_libraries='$ac_x_libraries'"
32922 esac
32924 ;; #(
32925 *) have_x=yes;;
32926 esac
32927 eval "$ac_cv_have_x"
32928 fi # $with_x != no
32930 if test "$have_x" != yes; then
32931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
32932 $as_echo "$have_x" >&6; }
32933 no_x=yes
32934 else
32935 # If each of the values was on the command line, it overrides each guess.
32936 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32937 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32938 # Update the cache value to reflect the command line values.
32939 ac_cv_have_x="have_x=yes\
32940 ac_x_includes='$x_includes'\
32941 ac_x_libraries='$x_libraries'"
32942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
32943 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
32947 # Unlike the sim directory, whether a simulator is linked is controlled by
32948 # presence of a gdb_sim definition in the target configure.tgt entry.
32949 # This code just checks for a few cases where we'd like to ignore those
32950 # definitions, even when they're present in the '.mt' file. These cases
32951 # are when --disable-sim is specified, or if the simulator directory is
32952 # not part of the source tree.
32954 # Check whether --enable-sim was given.
32955 if test "${enable_sim+set}" = set; then :
32956 enableval=$enable_sim; { $as_echo "$as_me:${as_lineno-$LINENO}: enable_sim = $enable_sim" >&5
32957 $as_echo "$as_me: enable_sim = $enable_sim" >&6;};
32958 { $as_echo "$as_me:${as_lineno-$LINENO}: enableval = ${enableval}" >&5
32959 $as_echo "$as_me: enableval = ${enableval}" >&6;};
32960 case "${enableval}" in
32961 yes) ignore_sim=false ;;
32962 no) ignore_sim=true ;;
32963 *) ignore_sim=false ;;
32964 esac
32965 else
32966 ignore_sim=false
32970 if test ! -d "${srcdir}/../sim"; then
32971 ignore_sim=true
32974 SIM=
32975 SIM_OBS=
32976 if test "${ignore_sim}" = "false"; then
32977 if test x"${gdb_sim}" != x ; then
32978 SIM="${gdb_sim}"
32979 SIM_OBS="remote-sim.o"
32981 # Some tdep code should only be compiled in when the ppc sim is
32982 # built. PR sim/13418.
32983 case $target in
32984 powerpc*-*-*)
32986 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
32989 esac
33006 # List of host floatformats.
33008 cat >>confdefs.h <<_ACEOF
33009 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
33010 _ACEOF
33013 cat >>confdefs.h <<_ACEOF
33014 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
33015 _ACEOF
33018 cat >>confdefs.h <<_ACEOF
33019 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
33020 _ACEOF
33023 # target_subdir is used by the testsuite to find the target libraries.
33024 target_subdir=
33025 if test "${host}" != "${target}"; then
33026 target_subdir="${target_alias}/"
33030 # Import nat definitions.
33031 nat_makefile_frag=/dev/null
33032 if test "${gdb_native}" = "yes"; then
33033 . ${srcdir}/configure.nat
33034 nativefile=$NAT_FILE
33047 if test x"${gdb_osabi}" != x ; then
33049 cat >>confdefs.h <<_ACEOF
33050 #define GDB_OSABI_DEFAULT $gdb_osabi
33051 _ACEOF
33055 # Setup possible use of libbacktrace.
33056 # Check whether --enable-libbacktrace was given.
33057 if test "${enable_libbacktrace+set}" = set; then :
33058 enableval=$enable_libbacktrace;
33059 case $enableval in
33060 yes | no)
33063 as_fn_error $? "bad value $enableval for --enable-libbacktrace" "$LINENO" 5
33065 esac
33067 else
33068 enable_libbacktrace=yes
33072 if test "${enable_libbacktrace}" = "yes"; then
33073 LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
33074 LIBBACKTRACE_LIB=../libbacktrace/libbacktrace.la
33076 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
33078 else
33079 LIBBACKTRACE_INC=
33080 LIBBACKTRACE_LIB=
33086 # Check for babeltrace and babeltrace-ctf
33088 # Check whether --with-babeltrace was given.
33089 if test "${with_babeltrace+set}" = set; then :
33090 withval=$with_babeltrace;
33091 else
33092 with_babeltrace=auto
33095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
33096 $as_echo_n "checking whether to use babeltrace... " >&6; }
33097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
33098 $as_echo "$with_babeltrace" >&6; }
33100 if test "x$with_babeltrace" = "xno"; then
33101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace support disabled; GDB is unable to read CTF data." >&5
33102 $as_echo "$as_me: WARNING: babeltrace support disabled; GDB is unable to read CTF data." >&2;}
33103 else
33104 # Append -Werror to CFLAGS so that configure can catch the warning
33105 # "assignment from incompatible pointer type", which is related to
33106 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
33107 # in GDB, while babeltrace 1.0.3 is broken.
33108 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
33109 # safe to save and restore CFLAGS here.
33110 saved_CFLAGS=$CFLAGS
33111 CFLAGS="$CFLAGS -Werror"
33120 use_additional=yes
33122 acl_save_prefix="$prefix"
33123 prefix="$acl_final_prefix"
33124 acl_save_exec_prefix="$exec_prefix"
33125 exec_prefix="$acl_final_exec_prefix"
33127 eval additional_includedir=\"$includedir\"
33128 eval additional_libdir=\"$libdir\"
33130 exec_prefix="$acl_save_exec_prefix"
33131 prefix="$acl_save_prefix"
33134 # Check whether --with-libbabeltrace-prefix was given.
33135 if test "${with_libbabeltrace_prefix+set}" = set; then :
33136 withval=$with_libbabeltrace_prefix;
33137 if test "X$withval" = "Xno"; then
33138 use_additional=no
33139 else
33140 if test "X$withval" = "X"; then
33142 acl_save_prefix="$prefix"
33143 prefix="$acl_final_prefix"
33144 acl_save_exec_prefix="$exec_prefix"
33145 exec_prefix="$acl_final_exec_prefix"
33147 eval additional_includedir=\"$includedir\"
33148 eval additional_libdir=\"$libdir\"
33150 exec_prefix="$acl_save_exec_prefix"
33151 prefix="$acl_save_prefix"
33153 else
33154 additional_includedir="$withval/include"
33155 additional_libdir="$withval/lib"
33162 # Check whether --with-libbabeltrace-type was given.
33163 if test "${with_libbabeltrace_type+set}" = set; then :
33164 withval=$with_libbabeltrace_type; with_libbabeltrace_type=$withval
33165 else
33166 with_libbabeltrace_type=auto
33169 lib_type=`eval echo \$with_libbabeltrace_type`
33171 LIBBABELTRACE=
33172 LTLIBBABELTRACE=
33173 INCBABELTRACE=
33174 rpathdirs=
33175 ltrpathdirs=
33176 names_already_handled=
33177 names_next_round='babeltrace babeltrace-ctf'
33178 while test -n "$names_next_round"; do
33179 names_this_round="$names_next_round"
33180 names_next_round=
33181 for name in $names_this_round; do
33182 already_handled=
33183 for n in $names_already_handled; do
33184 if test "$n" = "$name"; then
33185 already_handled=yes
33186 break
33188 done
33189 if test -z "$already_handled"; then
33190 names_already_handled="$names_already_handled $name"
33191 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
33192 eval value=\"\$HAVE_LIB$uppername\"
33193 if test -n "$value"; then
33194 if test "$value" = yes; then
33195 eval value=\"\$LIB$uppername\"
33196 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
33197 eval value=\"\$LTLIB$uppername\"
33198 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
33199 else
33202 else
33203 found_dir=
33204 found_la=
33205 found_so=
33206 found_a=
33207 if test $use_additional = yes; then
33208 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
33209 found_dir="$additional_libdir"
33210 found_so="$additional_libdir/lib$name.$shlibext"
33211 if test -f "$additional_libdir/lib$name.la"; then
33212 found_la="$additional_libdir/lib$name.la"
33214 elif test x$lib_type != xshared; then
33215 if test -f "$additional_libdir/lib$name.$libext"; then
33216 found_dir="$additional_libdir"
33217 found_a="$additional_libdir/lib$name.$libext"
33218 if test -f "$additional_libdir/lib$name.la"; then
33219 found_la="$additional_libdir/lib$name.la"
33224 if test "X$found_dir" = "X"; then
33225 for x in $LDFLAGS $LTLIBBABELTRACE; do
33227 acl_save_prefix="$prefix"
33228 prefix="$acl_final_prefix"
33229 acl_save_exec_prefix="$exec_prefix"
33230 exec_prefix="$acl_final_exec_prefix"
33231 eval x=\"$x\"
33232 exec_prefix="$acl_save_exec_prefix"
33233 prefix="$acl_save_prefix"
33235 case "$x" in
33236 -L*)
33237 dir=`echo "X$x" | sed -e 's/^X-L//'`
33238 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
33239 found_dir="$dir"
33240 found_so="$dir/lib$name.$shlibext"
33241 if test -f "$dir/lib$name.la"; then
33242 found_la="$dir/lib$name.la"
33244 elif test x$lib_type != xshared; then
33245 if test -f "$dir/lib$name.$libext"; then
33246 found_dir="$dir"
33247 found_a="$dir/lib$name.$libext"
33248 if test -f "$dir/lib$name.la"; then
33249 found_la="$dir/lib$name.la"
33254 esac
33255 if test "X$found_dir" != "X"; then
33256 break
33258 done
33260 if test "X$found_dir" != "X"; then
33261 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
33262 if test "X$found_so" != "X"; then
33263 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
33264 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33265 else
33266 haveit=
33267 for x in $ltrpathdirs; do
33268 if test "X$x" = "X$found_dir"; then
33269 haveit=yes
33270 break
33272 done
33273 if test -z "$haveit"; then
33274 ltrpathdirs="$ltrpathdirs $found_dir"
33276 if test "$hardcode_direct" = yes; then
33277 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33278 else
33279 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
33280 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33281 haveit=
33282 for x in $rpathdirs; do
33283 if test "X$x" = "X$found_dir"; then
33284 haveit=yes
33285 break
33287 done
33288 if test -z "$haveit"; then
33289 rpathdirs="$rpathdirs $found_dir"
33291 else
33292 haveit=
33293 for x in $LDFLAGS $LIBBABELTRACE; do
33295 acl_save_prefix="$prefix"
33296 prefix="$acl_final_prefix"
33297 acl_save_exec_prefix="$exec_prefix"
33298 exec_prefix="$acl_final_exec_prefix"
33299 eval x=\"$x\"
33300 exec_prefix="$acl_save_exec_prefix"
33301 prefix="$acl_save_prefix"
33303 if test "X$x" = "X-L$found_dir"; then
33304 haveit=yes
33305 break
33307 done
33308 if test -z "$haveit"; then
33309 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
33311 if test "$hardcode_minus_L" != no; then
33312 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33313 else
33314 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
33319 else
33320 if test "X$found_a" != "X"; then
33321 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
33322 else
33323 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
33326 additional_includedir=
33327 case "$found_dir" in
33328 */lib | */lib/)
33329 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
33330 additional_includedir="$basedir/include"
33332 esac
33333 if test "X$additional_includedir" != "X"; then
33334 if test "X$additional_includedir" != "X/usr/include"; then
33335 haveit=
33336 if test "X$additional_includedir" = "X/usr/local/include"; then
33337 if test -n "$GCC"; then
33338 case $host_os in
33339 linux*) haveit=yes;;
33340 esac
33343 if test -z "$haveit"; then
33344 for x in $CPPFLAGS $INCBABELTRACE; do
33346 acl_save_prefix="$prefix"
33347 prefix="$acl_final_prefix"
33348 acl_save_exec_prefix="$exec_prefix"
33349 exec_prefix="$acl_final_exec_prefix"
33350 eval x=\"$x\"
33351 exec_prefix="$acl_save_exec_prefix"
33352 prefix="$acl_save_prefix"
33354 if test "X$x" = "X-I$additional_includedir"; then
33355 haveit=yes
33356 break
33358 done
33359 if test -z "$haveit"; then
33360 if test -d "$additional_includedir"; then
33361 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
33367 if test -n "$found_la"; then
33368 save_libdir="$libdir"
33369 case "$found_la" in
33370 */* | *\\*) . "$found_la" ;;
33371 *) . "./$found_la" ;;
33372 esac
33373 libdir="$save_libdir"
33374 for dep in $dependency_libs; do
33375 case "$dep" in
33376 -L*)
33377 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
33378 if test "X$additional_libdir" != "X/usr/lib"; then
33379 haveit=
33380 if test "X$additional_libdir" = "X/usr/local/lib"; then
33381 if test -n "$GCC"; then
33382 case $host_os in
33383 linux*) haveit=yes;;
33384 esac
33387 if test -z "$haveit"; then
33388 haveit=
33389 for x in $LDFLAGS $LIBBABELTRACE; do
33391 acl_save_prefix="$prefix"
33392 prefix="$acl_final_prefix"
33393 acl_save_exec_prefix="$exec_prefix"
33394 exec_prefix="$acl_final_exec_prefix"
33395 eval x=\"$x\"
33396 exec_prefix="$acl_save_exec_prefix"
33397 prefix="$acl_save_prefix"
33399 if test "X$x" = "X-L$additional_libdir"; then
33400 haveit=yes
33401 break
33403 done
33404 if test -z "$haveit"; then
33405 if test -d "$additional_libdir"; then
33406 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
33409 haveit=
33410 for x in $LDFLAGS $LTLIBBABELTRACE; do
33412 acl_save_prefix="$prefix"
33413 prefix="$acl_final_prefix"
33414 acl_save_exec_prefix="$exec_prefix"
33415 exec_prefix="$acl_final_exec_prefix"
33416 eval x=\"$x\"
33417 exec_prefix="$acl_save_exec_prefix"
33418 prefix="$acl_save_prefix"
33420 if test "X$x" = "X-L$additional_libdir"; then
33421 haveit=yes
33422 break
33424 done
33425 if test -z "$haveit"; then
33426 if test -d "$additional_libdir"; then
33427 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
33433 -R*)
33434 dir=`echo "X$dep" | sed -e 's/^X-R//'`
33435 if test "$enable_rpath" != no; then
33436 haveit=
33437 for x in $rpathdirs; do
33438 if test "X$x" = "X$dir"; then
33439 haveit=yes
33440 break
33442 done
33443 if test -z "$haveit"; then
33444 rpathdirs="$rpathdirs $dir"
33446 haveit=
33447 for x in $ltrpathdirs; do
33448 if test "X$x" = "X$dir"; then
33449 haveit=yes
33450 break
33452 done
33453 if test -z "$haveit"; then
33454 ltrpathdirs="$ltrpathdirs $dir"
33458 -l*)
33459 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
33461 *.la)
33462 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
33465 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
33466 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
33468 esac
33469 done
33471 else
33472 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
33473 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
33474 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
33475 else
33476 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
33477 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
33482 done
33483 done
33484 if test "X$rpathdirs" != "X"; then
33485 if test -n "$hardcode_libdir_separator"; then
33486 alldirs=
33487 for found_dir in $rpathdirs; do
33488 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
33489 done
33490 acl_save_libdir="$libdir"
33491 libdir="$alldirs"
33492 eval flag=\"$hardcode_libdir_flag_spec\"
33493 libdir="$acl_save_libdir"
33494 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
33495 else
33496 for found_dir in $rpathdirs; do
33497 acl_save_libdir="$libdir"
33498 libdir="$found_dir"
33499 eval flag=\"$hardcode_libdir_flag_spec\"
33500 libdir="$acl_save_libdir"
33501 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
33502 done
33505 if test "X$ltrpathdirs" != "X"; then
33506 for found_dir in $ltrpathdirs; do
33507 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
33508 done
33512 ac_save_CPPFLAGS="$CPPFLAGS"
33514 for element in $INCBABELTRACE; do
33515 haveit=
33516 for x in $CPPFLAGS; do
33518 acl_save_prefix="$prefix"
33519 prefix="$acl_final_prefix"
33520 acl_save_exec_prefix="$exec_prefix"
33521 exec_prefix="$acl_final_exec_prefix"
33522 eval x=\"$x\"
33523 exec_prefix="$acl_save_exec_prefix"
33524 prefix="$acl_save_prefix"
33526 if test "X$x" = "X$element"; then
33527 haveit=yes
33528 break
33530 done
33531 if test -z "$haveit"; then
33532 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
33534 done
33537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
33538 $as_echo_n "checking for libbabeltrace... " >&6; }
33539 if ${ac_cv_libbabeltrace+:} false; then :
33540 $as_echo_n "(cached) " >&6
33541 else
33543 ac_save_LIBS="$LIBS"
33544 LIBS="$LIBS $LIBBABELTRACE"
33545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33546 /* end confdefs.h. */
33547 #include <babeltrace/babeltrace.h>
33548 #include <babeltrace/ctf/events.h>
33549 #include <babeltrace/ctf/iterator.h>
33551 main ()
33553 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
33554 struct bt_ctf_event *event = NULL;
33555 const struct bt_definition *scope;
33557 pos->type = BT_SEEK_BEGIN;
33558 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
33559 scope = bt_ctf_get_top_level_scope (event,
33560 BT_STREAM_EVENT_HEADER);
33561 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
33564 return 0;
33566 _ACEOF
33567 if ac_fn_c_try_link "$LINENO"; then :
33568 ac_cv_libbabeltrace=yes
33569 else
33570 ac_cv_libbabeltrace=no
33572 rm -f core conftest.err conftest.$ac_objext \
33573 conftest$ac_exeext conftest.$ac_ext
33574 LIBS="$ac_save_LIBS"
33577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
33578 $as_echo "$ac_cv_libbabeltrace" >&6; }
33579 if test "$ac_cv_libbabeltrace" = yes; then
33580 HAVE_LIBBABELTRACE=yes
33582 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
33584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
33585 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
33586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
33587 $as_echo "$LIBBABELTRACE" >&6; }
33588 else
33589 HAVE_LIBBABELTRACE=no
33590 CPPFLAGS="$ac_save_CPPFLAGS"
33591 LIBBABELTRACE=
33592 LTLIBBABELTRACE=
33600 CFLAGS=$saved_CFLAGS
33602 if test "$HAVE_LIBBABELTRACE" != yes; then
33603 if test "$with_babeltrace" = yes; then
33604 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
33605 else
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
33607 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
33612 # Check whether --enable-libctf was given.
33613 if test "${enable_libctf+set}" = set; then :
33614 enableval=$enable_libctf;
33615 case "$enableval" in
33616 yes|no) ;;
33617 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
33618 esac
33620 else
33621 enable_libctf=yes
33625 if test "${enable_libctf}" = yes; then
33627 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
33629 LIBCTF="../libctf/libctf.la"
33630 CTF_DEPS="../libctf/libctf.la"
33631 else
33632 LIBCTF=
33633 CTF_DEPS=
33638 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
33639 # empty version.
33641 NM_H=
33642 rm -f nm.h
33643 if test "${nativefile}" != ""; then
33644 case "${nativefile}" in
33645 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
33646 * ) GDB_NM_FILE="${nativefile}"
33647 esac
33648 ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE"
33651 cat >>confdefs.h <<_ACEOF
33652 #define GDB_NM_FILE "${GDB_NM_FILE}"
33653 _ACEOF
33655 NM_H=nm.h
33660 for ac_prog in xsltproc
33662 # Extract the first word of "$ac_prog", so it can be a program name with args.
33663 set dummy $ac_prog; ac_word=$2
33664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33665 $as_echo_n "checking for $ac_word... " >&6; }
33666 if ${ac_cv_path_XSLTPROC+:} false; then :
33667 $as_echo_n "(cached) " >&6
33668 else
33669 case $XSLTPROC in
33670 [\\/]* | ?:[\\/]*)
33671 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
33674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33675 for as_dir in $PATH
33677 IFS=$as_save_IFS
33678 test -z "$as_dir" && as_dir=.
33679 for ac_exec_ext in '' $ac_executable_extensions; do
33680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33681 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
33682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33683 break 2
33685 done
33686 done
33687 IFS=$as_save_IFS
33690 esac
33692 XSLTPROC=$ac_cv_path_XSLTPROC
33693 if test -n "$XSLTPROC"; then
33694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
33695 $as_echo "$XSLTPROC" >&6; }
33696 else
33697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33698 $as_echo "no" >&6; }
33702 test -n "$XSLTPROC" && break
33703 done
33704 test -n "$XSLTPROC" || XSLTPROC="missing"
33706 if test "x$USE_MAINTAINER_MODE" = xyes; then
33707 if test "${XSLTPROC}" = missing; then
33708 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
33716 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
33720 # Check whether we will enable the inclusion of unit tests when
33721 # compiling GDB.
33723 # The default value of this option changes depending whether we're on
33724 # development mode (in which case it's "true") or not (in which case
33725 # it's "false"). The $development variable is set by the GDB_AC_COMMON
33726 # macro, which must therefore be used before GDB_AC_SELFTEST.
33728 if test "x$development" != xtrue && test "x$development" != xfalse; then :
33729 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
33732 # Check whether --enable-unit-tests was given.
33733 if test "${enable_unit_tests+set}" = set; then :
33734 enableval=$enable_unit_tests; case "${enableval}" in
33735 yes) enable_unittests=true ;;
33736 no) enable_unittests=false ;;
33737 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
33738 esac
33739 else
33740 enable_unittests=$development
33744 if $enable_unittests; then
33746 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
33749 CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
33750 CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
33756 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
33757 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
33758 if test "x$GDB_TRANSFORM_NAME" = x; then
33759 GDB_TRANSFORM_NAME=gdb
33764 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
33765 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
33766 if test "x$GCORE_TRANSFORM_NAME" = x; then
33767 GCORE_TRANSFORM_NAME=gcore
33771 ac_config_files="$ac_config_files gcore"
33773 ac_config_files="$ac_config_files gstack.in:gstack-1.in"
33775 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
33778 cat >confcache <<\_ACEOF
33779 # This file is a shell script that caches the results of configure
33780 # tests run on this system so they can be shared between configure
33781 # scripts and configure runs, see configure's option --config-cache.
33782 # It is not useful on other systems. If it contains results you don't
33783 # want to keep, you may remove or edit it.
33785 # config.status only pays attention to the cache file if you give it
33786 # the --recheck option to rerun configure.
33788 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33790 # following values.
33792 _ACEOF
33794 # The following way of writing the cache mishandles newlines in values,
33795 # but we know of no workaround that is simple, portable, and efficient.
33796 # So, we kill variables containing newlines.
33797 # Ultrix sh set writes to stderr and can't be redirected directly,
33798 # and sets the high bit in the cache file unless we assign to the vars.
33800 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33801 eval ac_val=\$$ac_var
33802 case $ac_val in #(
33803 *${as_nl}*)
33804 case $ac_var in #(
33805 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33806 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33807 esac
33808 case $ac_var in #(
33809 _ | IFS | as_nl) ;; #(
33810 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33811 *) { eval $ac_var=; unset $ac_var;} ;;
33812 esac ;;
33813 esac
33814 done
33816 (set) 2>&1 |
33817 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33818 *${as_nl}ac_space=\ *)
33819 # `set' does not quote correctly, so add quotes: double-quote
33820 # substitution turns \\\\ into \\, and sed turns \\ into \.
33821 sed -n \
33822 "s/'/'\\\\''/g;
33823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33824 ;; #(
33826 # `set' quotes correctly as required by POSIX, so do not add quotes.
33827 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33829 esac |
33830 sort
33832 sed '
33833 /^ac_cv_env_/b end
33834 t clear
33835 :clear
33836 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33837 t end
33838 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33839 :end' >>confcache
33840 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33841 if test -w "$cache_file"; then
33842 if test "x$cache_file" != "x/dev/null"; then
33843 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33844 $as_echo "$as_me: updating cache $cache_file" >&6;}
33845 if test ! -f "$cache_file" || test -h "$cache_file"; then
33846 cat confcache >"$cache_file"
33847 else
33848 case $cache_file in #(
33849 */* | ?:*)
33850 mv -f confcache "$cache_file"$$ &&
33851 mv -f "$cache_file"$$ "$cache_file" ;; #(
33853 mv -f confcache "$cache_file" ;;
33854 esac
33857 else
33858 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33859 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33862 rm -f confcache
33864 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33865 # Let make expand exec_prefix.
33866 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33868 DEFS=-DHAVE_CONFIG_H
33870 ac_libobjs=
33871 ac_ltlibobjs=
33873 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33874 # 1. Remove the extension, and $U if already installed.
33875 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33876 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33877 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33878 # will be set to the directory where LIBOBJS objects are built.
33879 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33880 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33881 done
33882 LIBOBJS=$ac_libobjs
33884 LTLIBOBJS=$ac_ltlibobjs
33887 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33888 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
33889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33891 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
33892 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
33893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33895 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
33896 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
33897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33899 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
33900 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
33901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33905 : "${CONFIG_STATUS=./config.status}"
33906 ac_write_fail=0
33907 ac_clean_files_save=$ac_clean_files
33908 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33910 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33911 as_write_fail=0
33912 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33913 #! $SHELL
33914 # Generated by $as_me.
33915 # Run this file to recreate the current configuration.
33916 # Compiler output produced by configure, useful for debugging
33917 # configure, is in config.log if it exists.
33919 debug=false
33920 ac_cs_recheck=false
33921 ac_cs_silent=false
33923 SHELL=\${CONFIG_SHELL-$SHELL}
33924 export SHELL
33925 _ASEOF
33926 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33927 ## -------------------- ##
33928 ## M4sh Initialization. ##
33929 ## -------------------- ##
33931 # Be more Bourne compatible
33932 DUALCASE=1; export DUALCASE # for MKS sh
33933 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33934 emulate sh
33935 NULLCMD=:
33936 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33937 # is contrary to our usage. Disable this feature.
33938 alias -g '${1+"$@"}'='"$@"'
33939 setopt NO_GLOB_SUBST
33940 else
33941 case `(set -o) 2>/dev/null` in #(
33942 *posix*) :
33943 set -o posix ;; #(
33944 *) :
33946 esac
33950 as_nl='
33952 export as_nl
33953 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33954 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33955 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33956 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33957 # Prefer a ksh shell builtin over an external printf program on Solaris,
33958 # but without wasting forks for bash or zsh.
33959 if test -z "$BASH_VERSION$ZSH_VERSION" \
33960 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33961 as_echo='print -r --'
33962 as_echo_n='print -rn --'
33963 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33964 as_echo='printf %s\n'
33965 as_echo_n='printf %s'
33966 else
33967 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33968 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33969 as_echo_n='/usr/ucb/echo -n'
33970 else
33971 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33972 as_echo_n_body='eval
33973 arg=$1;
33974 case $arg in #(
33975 *"$as_nl"*)
33976 expr "X$arg" : "X\\(.*\\)$as_nl";
33977 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33978 esac;
33979 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33981 export as_echo_n_body
33982 as_echo_n='sh -c $as_echo_n_body as_echo'
33984 export as_echo_body
33985 as_echo='sh -c $as_echo_body as_echo'
33988 # The user is always right.
33989 if test "${PATH_SEPARATOR+set}" != set; then
33990 PATH_SEPARATOR=:
33991 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33992 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33993 PATH_SEPARATOR=';'
33998 # IFS
33999 # We need space, tab and new line, in precisely that order. Quoting is
34000 # there to prevent editors from complaining about space-tab.
34001 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34002 # splitting by setting IFS to empty value.)
34003 IFS=" "" $as_nl"
34005 # Find who we are. Look in the path if we contain no directory separator.
34006 as_myself=
34007 case $0 in #((
34008 *[\\/]* ) as_myself=$0 ;;
34009 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34010 for as_dir in $PATH
34012 IFS=$as_save_IFS
34013 test -z "$as_dir" && as_dir=.
34014 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34015 done
34016 IFS=$as_save_IFS
34019 esac
34020 # We did not find ourselves, most probably we were run as `sh COMMAND'
34021 # in which case we are not to be found in the path.
34022 if test "x$as_myself" = x; then
34023 as_myself=$0
34025 if test ! -f "$as_myself"; then
34026 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34027 exit 1
34030 # Unset variables that we do not need and which cause bugs (e.g. in
34031 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
34032 # suppresses any "Segmentation fault" message there. '((' could
34033 # trigger a bug in pdksh 5.2.14.
34034 for as_var in BASH_ENV ENV MAIL MAILPATH
34035 do eval test x\${$as_var+set} = xset \
34036 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
34037 done
34038 PS1='$ '
34039 PS2='> '
34040 PS4='+ '
34042 # NLS nuisances.
34043 LC_ALL=C
34044 export LC_ALL
34045 LANGUAGE=C
34046 export LANGUAGE
34048 # CDPATH.
34049 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34052 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34053 # ----------------------------------------
34054 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34055 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34056 # script with STATUS, using 1 if that was 0.
34057 as_fn_error ()
34059 as_status=$1; test $as_status -eq 0 && as_status=1
34060 if test "$4"; then
34061 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34062 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34064 $as_echo "$as_me: error: $2" >&2
34065 as_fn_exit $as_status
34066 } # as_fn_error
34069 # as_fn_set_status STATUS
34070 # -----------------------
34071 # Set $? to STATUS, without forking.
34072 as_fn_set_status ()
34074 return $1
34075 } # as_fn_set_status
34077 # as_fn_exit STATUS
34078 # -----------------
34079 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34080 as_fn_exit ()
34082 set +e
34083 as_fn_set_status $1
34084 exit $1
34085 } # as_fn_exit
34087 # as_fn_unset VAR
34088 # ---------------
34089 # Portably unset VAR.
34090 as_fn_unset ()
34092 { eval $1=; unset $1;}
34094 as_unset=as_fn_unset
34095 # as_fn_append VAR VALUE
34096 # ----------------------
34097 # Append the text in VALUE to the end of the definition contained in VAR. Take
34098 # advantage of any shell optimizations that allow amortized linear growth over
34099 # repeated appends, instead of the typical quadratic growth present in naive
34100 # implementations.
34101 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34102 eval 'as_fn_append ()
34104 eval $1+=\$2
34106 else
34107 as_fn_append ()
34109 eval $1=\$$1\$2
34111 fi # as_fn_append
34113 # as_fn_arith ARG...
34114 # ------------------
34115 # Perform arithmetic evaluation on the ARGs, and store the result in the
34116 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34117 # must be portable across $(()) and expr.
34118 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34119 eval 'as_fn_arith ()
34121 as_val=$(( $* ))
34123 else
34124 as_fn_arith ()
34126 as_val=`expr "$@" || test $? -eq 1`
34128 fi # as_fn_arith
34131 if expr a : '\(a\)' >/dev/null 2>&1 &&
34132 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34133 as_expr=expr
34134 else
34135 as_expr=false
34138 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34139 as_basename=basename
34140 else
34141 as_basename=false
34144 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34145 as_dirname=dirname
34146 else
34147 as_dirname=false
34150 as_me=`$as_basename -- "$0" ||
34151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34152 X"$0" : 'X\(//\)$' \| \
34153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34154 $as_echo X/"$0" |
34155 sed '/^.*\/\([^/][^/]*\)\/*$/{
34156 s//\1/
34159 /^X\/\(\/\/\)$/{
34160 s//\1/
34163 /^X\/\(\/\).*/{
34164 s//\1/
34167 s/.*/./; q'`
34169 # Avoid depending upon Character Ranges.
34170 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34171 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34172 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34173 as_cr_digits='0123456789'
34174 as_cr_alnum=$as_cr_Letters$as_cr_digits
34176 ECHO_C= ECHO_N= ECHO_T=
34177 case `echo -n x` in #(((((
34178 -n*)
34179 case `echo 'xy\c'` in
34180 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34181 xy) ECHO_C='\c';;
34182 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34183 ECHO_T=' ';;
34184 esac;;
34186 ECHO_N='-n';;
34187 esac
34189 rm -f conf$$ conf$$.exe conf$$.file
34190 if test -d conf$$.dir; then
34191 rm -f conf$$.dir/conf$$.file
34192 else
34193 rm -f conf$$.dir
34194 mkdir conf$$.dir 2>/dev/null
34196 if (echo >conf$$.file) 2>/dev/null; then
34197 if ln -s conf$$.file conf$$ 2>/dev/null; then
34198 as_ln_s='ln -s'
34199 # ... but there are two gotchas:
34200 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34201 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34202 # In both cases, we have to default to `cp -pR'.
34203 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34204 as_ln_s='cp -pR'
34205 elif ln conf$$.file conf$$ 2>/dev/null; then
34206 as_ln_s=ln
34207 else
34208 as_ln_s='cp -pR'
34210 else
34211 as_ln_s='cp -pR'
34213 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34214 rmdir conf$$.dir 2>/dev/null
34217 # as_fn_mkdir_p
34218 # -------------
34219 # Create "$as_dir" as a directory, including parents if necessary.
34220 as_fn_mkdir_p ()
34223 case $as_dir in #(
34224 -*) as_dir=./$as_dir;;
34225 esac
34226 test -d "$as_dir" || eval $as_mkdir_p || {
34227 as_dirs=
34228 while :; do
34229 case $as_dir in #(
34230 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34231 *) as_qdir=$as_dir;;
34232 esac
34233 as_dirs="'$as_qdir' $as_dirs"
34234 as_dir=`$as_dirname -- "$as_dir" ||
34235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34236 X"$as_dir" : 'X\(//\)[^/]' \| \
34237 X"$as_dir" : 'X\(//\)$' \| \
34238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34239 $as_echo X"$as_dir" |
34240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34241 s//\1/
34244 /^X\(\/\/\)[^/].*/{
34245 s//\1/
34248 /^X\(\/\/\)$/{
34249 s//\1/
34252 /^X\(\/\).*/{
34253 s//\1/
34256 s/.*/./; q'`
34257 test -d "$as_dir" && break
34258 done
34259 test -z "$as_dirs" || eval "mkdir $as_dirs"
34260 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34263 } # as_fn_mkdir_p
34264 if mkdir -p . 2>/dev/null; then
34265 as_mkdir_p='mkdir -p "$as_dir"'
34266 else
34267 test -d ./-p && rmdir ./-p
34268 as_mkdir_p=false
34272 # as_fn_executable_p FILE
34273 # -----------------------
34274 # Test if FILE is an executable regular file.
34275 as_fn_executable_p ()
34277 test -f "$1" && test -x "$1"
34278 } # as_fn_executable_p
34279 as_test_x='test -x'
34280 as_executable_p=as_fn_executable_p
34282 # Sed expression to map a string onto a valid CPP name.
34283 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34285 # Sed expression to map a string onto a valid variable name.
34286 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34289 exec 6>&1
34290 ## ----------------------------------- ##
34291 ## Main body of $CONFIG_STATUS script. ##
34292 ## ----------------------------------- ##
34293 _ASEOF
34294 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34297 # Save the log message, to keep $0 and so on meaningful, and to
34298 # report actual input values of CONFIG_FILES etc. instead of their
34299 # values after options handling.
34300 ac_log="
34301 This file was extended by $as_me, which was
34302 generated by GNU Autoconf 2.69. Invocation command line was
34304 CONFIG_FILES = $CONFIG_FILES
34305 CONFIG_HEADERS = $CONFIG_HEADERS
34306 CONFIG_LINKS = $CONFIG_LINKS
34307 CONFIG_COMMANDS = $CONFIG_COMMANDS
34308 $ $0 $@
34310 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34313 _ACEOF
34315 case $ac_config_files in *"
34316 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34317 esac
34319 case $ac_config_headers in *"
34320 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34321 esac
34324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34325 # Files that config.status was made for.
34326 config_files="$ac_config_files"
34327 config_headers="$ac_config_headers"
34328 config_links="$ac_config_links"
34329 config_commands="$ac_config_commands"
34331 _ACEOF
34333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34334 ac_cs_usage="\
34335 \`$as_me' instantiates files and other configuration actions
34336 from templates according to the current configuration. Unless the files
34337 and actions are specified as TAGs, all are instantiated by default.
34339 Usage: $0 [OPTION]... [TAG]...
34341 -h, --help print this help, then exit
34342 -V, --version print version number and configuration settings, then exit
34343 --config print configuration, then exit
34344 -q, --quiet, --silent
34345 do not print progress messages
34346 -d, --debug don't remove temporary files
34347 --recheck update $as_me by reconfiguring in the same conditions
34348 --file=FILE[:TEMPLATE]
34349 instantiate the configuration file FILE
34350 --header=FILE[:TEMPLATE]
34351 instantiate the configuration header FILE
34353 Configuration files:
34354 $config_files
34356 Configuration headers:
34357 $config_headers
34359 Configuration links:
34360 $config_links
34362 Configuration commands:
34363 $config_commands
34365 Report bugs to the package provider."
34367 _ACEOF
34368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34369 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34370 ac_cs_version="\\
34371 config.status
34372 configured by $0, generated by GNU Autoconf 2.69,
34373 with options \\"\$ac_cs_config\\"
34375 Copyright (C) 2012 Free Software Foundation, Inc.
34376 This config.status script is free software; the Free Software Foundation
34377 gives unlimited permission to copy, distribute and modify it."
34379 ac_pwd='$ac_pwd'
34380 srcdir='$srcdir'
34381 INSTALL='$INSTALL'
34382 AWK='$AWK'
34383 test -n "\$AWK" || AWK=awk
34384 _ACEOF
34386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34387 # The default lists apply if the user does not specify any file.
34388 ac_need_defaults=:
34389 while test $# != 0
34391 case $1 in
34392 --*=?*)
34393 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34394 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34395 ac_shift=:
34397 --*=)
34398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34399 ac_optarg=
34400 ac_shift=:
34403 ac_option=$1
34404 ac_optarg=$2
34405 ac_shift=shift
34407 esac
34409 case $ac_option in
34410 # Handling of the options.
34411 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34412 ac_cs_recheck=: ;;
34413 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34414 $as_echo "$ac_cs_version"; exit ;;
34415 --config | --confi | --conf | --con | --co | --c )
34416 $as_echo "$ac_cs_config"; exit ;;
34417 --debug | --debu | --deb | --de | --d | -d )
34418 debug=: ;;
34419 --file | --fil | --fi | --f )
34420 $ac_shift
34421 case $ac_optarg in
34422 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34423 '') as_fn_error $? "missing file argument" ;;
34424 esac
34425 as_fn_append CONFIG_FILES " '$ac_optarg'"
34426 ac_need_defaults=false;;
34427 --header | --heade | --head | --hea )
34428 $ac_shift
34429 case $ac_optarg in
34430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34431 esac
34432 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34433 ac_need_defaults=false;;
34434 --he | --h)
34435 # Conflict between --help and --header
34436 as_fn_error $? "ambiguous option: \`$1'
34437 Try \`$0 --help' for more information.";;
34438 --help | --hel | -h )
34439 $as_echo "$ac_cs_usage"; exit ;;
34440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34441 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34442 ac_cs_silent=: ;;
34444 # This is an error.
34445 -*) as_fn_error $? "unrecognized option: \`$1'
34446 Try \`$0 --help' for more information." ;;
34448 *) as_fn_append ac_config_targets " $1"
34449 ac_need_defaults=false ;;
34451 esac
34452 shift
34453 done
34455 ac_configure_extra_args=
34457 if $ac_cs_silent; then
34458 exec 6>/dev/null
34459 ac_configure_extra_args="$ac_configure_extra_args --silent"
34462 _ACEOF
34463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34464 if \$ac_cs_recheck; then
34465 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34466 shift
34467 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34468 CONFIG_SHELL='$SHELL'
34469 export CONFIG_SHELL
34470 exec "\$@"
34473 _ACEOF
34474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34475 exec 5>>config.log
34477 echo
34478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34479 ## Running $as_me. ##
34480 _ASBOX
34481 $as_echo "$ac_log"
34482 } >&5
34484 _ACEOF
34485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34487 # INIT-COMMANDS
34491 # The HP-UX ksh and POSIX shell print the target directory to stdout
34492 # if CDPATH is set.
34493 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34495 sed_quote_subst='$sed_quote_subst'
34496 double_quote_subst='$double_quote_subst'
34497 delay_variable_subst='$delay_variable_subst'
34498 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34499 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34500 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34501 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34502 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34503 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34504 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34505 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34506 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34507 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34508 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34509 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34510 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34511 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34512 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34513 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34514 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34515 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34516 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34517 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34518 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34519 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34520 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34521 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34522 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34523 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34524 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34525 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34526 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34527 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34528 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34529 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34530 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34531 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34532 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34533 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34534 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34535 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34536 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34537 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34538 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34539 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34540 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34541 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34542 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34543 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34544 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34545 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34546 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
34547 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34548 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34549 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34550 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34551 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34552 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34553 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34554 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34555 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34556 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34557 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34558 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34559 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34560 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34561 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34562 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34563 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34564 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34565 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34566 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34567 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34568 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34569 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34570 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34571 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34572 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34573 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34574 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34575 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34576 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34577 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34578 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34579 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34580 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34581 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34582 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34583 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34584 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34585 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34586 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34587 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
34588 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34589 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34590 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34591 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34592 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34593 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34594 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34595 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34596 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34597 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34598 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34599 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34600 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34601 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34602 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34603 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34604 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34605 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34606 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34607 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34608 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34609 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34610 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34611 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34612 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34613 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34614 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34615 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34616 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34617 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34618 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34619 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34620 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34621 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34622 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34623 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34624 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34625 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34626 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34627 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34628 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34629 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34630 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
34631 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
34632 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
34633 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34634 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34635 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34636 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34637 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34638 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34639 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34640 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34641 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34642 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34643 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34644 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34645 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34646 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34647 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34648 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34649 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34650 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34651 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34652 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34653 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34654 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34655 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34656 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34657 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34658 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
34659 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
34660 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34661 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34662 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34663 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34664 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34665 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34666 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34667 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34668 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34669 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34670 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34671 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34672 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
34674 LTCC='$LTCC'
34675 LTCFLAGS='$LTCFLAGS'
34676 compiler='$compiler_DEFAULT'
34678 # A function that is used when there is no print builtin or printf.
34679 func_fallback_echo ()
34681 eval 'cat <<_LTECHO_EOF
34683 _LTECHO_EOF'
34686 # Quote evaled strings.
34687 for var in SHELL \
34688 ECHO \
34689 SED \
34690 GREP \
34691 EGREP \
34692 FGREP \
34693 LD \
34694 NM \
34695 LN_S \
34696 lt_SP2NL \
34697 lt_NL2SP \
34698 reload_flag \
34699 OBJDUMP \
34700 deplibs_check_method \
34701 file_magic_cmd \
34702 AR \
34703 AR_FLAGS \
34704 STRIP \
34705 RANLIB \
34706 CC \
34707 CFLAGS \
34708 compiler \
34709 lt_cv_sys_global_symbol_pipe \
34710 lt_cv_sys_global_symbol_to_cdecl \
34711 lt_cv_sys_global_symbol_to_c_name_address \
34712 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34713 lt_prog_compiler_no_builtin_flag \
34714 lt_prog_compiler_wl \
34715 lt_prog_compiler_pic \
34716 lt_prog_compiler_static \
34717 lt_cv_prog_compiler_c_o \
34718 need_locks \
34719 DSYMUTIL \
34720 NMEDIT \
34721 LIPO \
34722 OTOOL \
34723 OTOOL64 \
34724 shrext_cmds \
34725 export_dynamic_flag_spec \
34726 whole_archive_flag_spec \
34727 compiler_needs_object \
34728 with_gnu_ld \
34729 allow_undefined_flag \
34730 no_undefined_flag \
34731 hardcode_libdir_flag_spec \
34732 hardcode_libdir_flag_spec_ld \
34733 hardcode_libdir_separator \
34734 fix_srcfile_path \
34735 exclude_expsyms \
34736 include_expsyms \
34737 file_list_spec \
34738 variables_saved_for_relink \
34739 libname_spec \
34740 library_names_spec \
34741 soname_spec \
34742 install_override_mode \
34743 finish_eval \
34744 old_striplib \
34745 striplib \
34746 compiler_lib_search_dirs \
34747 predep_objects \
34748 postdep_objects \
34749 predeps \
34750 postdeps \
34751 compiler_lib_search_path \
34752 LD_CXX \
34753 reload_flag_CXX \
34754 compiler_CXX \
34755 lt_prog_compiler_no_builtin_flag_CXX \
34756 lt_prog_compiler_wl_CXX \
34757 lt_prog_compiler_pic_CXX \
34758 lt_prog_compiler_static_CXX \
34759 lt_cv_prog_compiler_c_o_CXX \
34760 export_dynamic_flag_spec_CXX \
34761 whole_archive_flag_spec_CXX \
34762 compiler_needs_object_CXX \
34763 with_gnu_ld_CXX \
34764 allow_undefined_flag_CXX \
34765 no_undefined_flag_CXX \
34766 hardcode_libdir_flag_spec_CXX \
34767 hardcode_libdir_flag_spec_ld_CXX \
34768 hardcode_libdir_separator_CXX \
34769 fix_srcfile_path_CXX \
34770 exclude_expsyms_CXX \
34771 include_expsyms_CXX \
34772 file_list_spec_CXX \
34773 compiler_lib_search_dirs_CXX \
34774 predep_objects_CXX \
34775 postdep_objects_CXX \
34776 predeps_CXX \
34777 postdeps_CXX \
34778 compiler_lib_search_path_CXX; do
34779 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34780 *[\\\\\\\`\\"\\\$]*)
34781 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34784 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34786 esac
34787 done
34789 # Double-quote double-evaled strings.
34790 for var in reload_cmds \
34791 old_postinstall_cmds \
34792 old_postuninstall_cmds \
34793 old_archive_cmds \
34794 extract_expsyms_cmds \
34795 old_archive_from_new_cmds \
34796 old_archive_from_expsyms_cmds \
34797 archive_cmds \
34798 archive_expsym_cmds \
34799 module_cmds \
34800 module_expsym_cmds \
34801 export_symbols_cmds \
34802 prelink_cmds \
34803 postinstall_cmds \
34804 postuninstall_cmds \
34805 finish_cmds \
34806 sys_lib_search_path_spec \
34807 sys_lib_dlsearch_path_spec \
34808 reload_cmds_CXX \
34809 old_archive_cmds_CXX \
34810 old_archive_from_new_cmds_CXX \
34811 old_archive_from_expsyms_cmds_CXX \
34812 archive_cmds_CXX \
34813 archive_expsym_cmds_CXX \
34814 module_cmds_CXX \
34815 module_expsym_cmds_CXX \
34816 export_symbols_cmds_CXX \
34817 prelink_cmds_CXX; do
34818 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34819 *[\\\\\\\`\\"\\\$]*)
34820 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34823 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34825 esac
34826 done
34828 ac_aux_dir='$ac_aux_dir'
34829 xsi_shell='$xsi_shell'
34830 lt_shell_append='$lt_shell_append'
34832 # See if we are running on zsh, and set the options which allow our
34833 # commands through without removal of \ escapes INIT.
34834 if test -n "\${ZSH_VERSION+set}" ; then
34835 setopt NO_GLOB_SUBST
34839 PACKAGE='$PACKAGE'
34840 VERSION='$VERSION'
34841 TIMESTAMP='$TIMESTAMP'
34842 RM='$RM'
34843 ofile='$ofile'
34847 ac_aux_dir='$ac_aux_dir'
34850 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
34851 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34852 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
34853 # from automake.
34854 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34855 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34856 LINGUAS="${LINGUAS-%UNSET%}"
34858 GDB_NM_FILE=$GDB_NM_FILE
34860 _ACEOF
34862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34864 # Handling of arguments.
34865 for ac_config_target in $ac_config_targets
34867 case $ac_config_target in
34868 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
34869 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34870 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
34871 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34872 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
34873 "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
34874 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
34875 "gstack.in") CONFIG_FILES="$CONFIG_FILES gstack.in:gstack-1.in" ;;
34876 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34877 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
34878 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
34879 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34880 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
34882 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34883 esac
34884 done
34887 # If the user did not use the arguments to specify the items to instantiate,
34888 # then the envvar interface is used. Set only those that are not.
34889 # We use the long form for the default assignment because of an extremely
34890 # bizarre bug on SunOS 4.1.3.
34891 if $ac_need_defaults; then
34892 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34893 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34894 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
34895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34898 # Have a temporary directory for convenience. Make it in the build tree
34899 # simply because there is no reason against having it here, and in addition,
34900 # creating and moving files from /tmp can sometimes cause problems.
34901 # Hook for its removal unless debugging.
34902 # Note that there is a small window in which the directory will not be cleaned:
34903 # after its creation but before its name has been assigned to `$tmp'.
34904 $debug ||
34906 tmp= ac_tmp=
34907 trap 'exit_status=$?
34908 : "${ac_tmp:=$tmp}"
34909 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34911 trap 'as_fn_exit 1' 1 2 13 15
34913 # Create a (secure) tmp directory for tmp files.
34916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34917 test -d "$tmp"
34918 } ||
34920 tmp=./conf$$-$RANDOM
34921 (umask 077 && mkdir "$tmp")
34922 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34923 ac_tmp=$tmp
34925 # Set up the scripts for CONFIG_FILES section.
34926 # No need to generate them if there are no CONFIG_FILES.
34927 # This happens for instance with `./config.status config.h'.
34928 if test -n "$CONFIG_FILES"; then
34930 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
34931 ac_cs_awk_getline=:
34932 ac_cs_awk_pipe_init=
34933 ac_cs_awk_read_file='
34934 while ((getline aline < (F[key])) > 0)
34935 print(aline)
34936 close(F[key])'
34937 ac_cs_awk_pipe_fini=
34938 else
34939 ac_cs_awk_getline=false
34940 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
34941 ac_cs_awk_read_file='
34942 print "|#_!!_#|"
34943 print "cat " F[key] " &&"
34944 '$ac_cs_awk_pipe_init
34945 # The final `:' finishes the AND list.
34946 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
34948 ac_cr=`echo X | tr X '\015'`
34949 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34950 # But we know of no other shell where ac_cr would be empty at this
34951 # point, so we can use a bashism as a fallback.
34952 if test "x$ac_cr" = x; then
34953 eval ac_cr=\$\'\\r\'
34955 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34956 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34957 ac_cs_awk_cr='\\r'
34958 else
34959 ac_cs_awk_cr=$ac_cr
34962 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34963 _ACEOF
34965 # Create commands to substitute file output variables.
34967 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
34968 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
34969 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
34970 echo "_ACAWK" &&
34971 echo "_ACEOF"
34972 } >conf$$files.sh &&
34973 . ./conf$$files.sh ||
34974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34975 rm -f conf$$files.sh
34978 echo "cat >conf$$subs.awk <<_ACEOF" &&
34979 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34980 echo "_ACEOF"
34981 } >conf$$subs.sh ||
34982 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34983 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34984 ac_delim='%!_!# '
34985 for ac_last_try in false false false false false :; do
34986 . ./conf$$subs.sh ||
34987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34989 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34990 if test $ac_delim_n = $ac_delim_num; then
34991 break
34992 elif $ac_last_try; then
34993 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34994 else
34995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34997 done
34998 rm -f conf$$subs.sh
35000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35001 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35002 _ACEOF
35003 sed -n '
35005 s/^/S["/; s/!.*/"]=/
35008 s/^[^!]*!//
35009 :repl
35010 t repl
35011 s/'"$ac_delim"'$//
35012 t delim
35015 s/\(.\{148\}\)..*/\1/
35016 t more1
35017 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35020 b repl
35021 :more1
35022 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35025 s/.\{148\}//
35026 t nl
35027 :delim
35029 s/\(.\{148\}\)..*/\1/
35030 t more2
35031 s/["\\]/\\&/g; s/^/"/; s/$/"/
35034 :more2
35035 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35038 s/.\{148\}//
35039 t delim
35040 ' <conf$$subs.awk | sed '
35041 /^[^""]/{
35043 s/\n//
35045 ' >>$CONFIG_STATUS || ac_write_fail=1
35046 rm -f conf$$subs.awk
35047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35048 _ACAWK
35049 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35050 for (key in S) S_is_set[key] = 1
35051 FS = "\a"
35052 \$ac_cs_awk_pipe_init
35055 line = $ 0
35056 nfields = split(line, field, "@")
35057 substed = 0
35058 len = length(field[1])
35059 for (i = 2; i < nfields; i++) {
35060 key = field[i]
35061 keylen = length(key)
35062 if (S_is_set[key]) {
35063 value = S[key]
35064 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35065 len += length(value) + length(field[++i])
35066 substed = 1
35067 } else
35068 len += 1 + keylen
35070 if (nfields == 3 && !substed) {
35071 key = field[2]
35072 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35073 \$ac_cs_awk_read_file
35074 next
35077 print line
35079 \$ac_cs_awk_pipe_fini
35080 _ACAWK
35081 _ACEOF
35082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35083 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35084 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35085 else
35087 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35088 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35089 _ACEOF
35091 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35092 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35093 # trailing colons and then remove the whole line if VPATH becomes empty
35094 # (actually we leave an empty line to preserve line numbers).
35095 if test "x$srcdir" = x.; then
35096 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35098 s///
35099 s/^/:/
35100 s/[ ]*$/:/
35101 s/:\$(srcdir):/:/g
35102 s/:\${srcdir}:/:/g
35103 s/:@srcdir@:/:/g
35104 s/^:*//
35105 s/:*$//
35107 s/\(=[ ]*\).*/\1/
35109 s/\n//
35110 s/^[^=]*=[ ]*$//
35114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35115 fi # test -n "$CONFIG_FILES"
35117 # Set up the scripts for CONFIG_HEADERS section.
35118 # No need to generate them if there are no CONFIG_HEADERS.
35119 # This happens for instance with `./config.status Makefile'.
35120 if test -n "$CONFIG_HEADERS"; then
35121 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35122 BEGIN {
35123 _ACEOF
35125 # Transform confdefs.h into an awk script `defines.awk', embedded as
35126 # here-document in config.status, that substitutes the proper values into
35127 # config.h.in to produce config.h.
35129 # Create a delimiter string that does not exist in confdefs.h, to ease
35130 # handling of long lines.
35131 ac_delim='%!_!# '
35132 for ac_last_try in false false :; do
35133 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35134 if test -z "$ac_tt"; then
35135 break
35136 elif $ac_last_try; then
35137 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35138 else
35139 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35141 done
35143 # For the awk script, D is an array of macro values keyed by name,
35144 # likewise P contains macro parameters if any. Preserve backslash
35145 # newline sequences.
35147 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35148 sed -n '
35149 s/.\{148\}/&'"$ac_delim"'/g
35150 t rset
35151 :rset
35152 s/^[ ]*#[ ]*define[ ][ ]*/ /
35153 t def
35155 :def
35156 s/\\$//
35157 t bsnl
35158 s/["\\]/\\&/g
35159 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35160 D["\1"]=" \3"/p
35161 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35163 :bsnl
35164 s/["\\]/\\&/g
35165 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35166 D["\1"]=" \3\\\\\\n"\\/p
35167 t cont
35168 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35169 t cont
35171 :cont
35173 s/.\{148\}/&'"$ac_delim"'/g
35174 t clear
35175 :clear
35176 s/\\$//
35177 t bsnlc
35178 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35180 :bsnlc
35181 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35182 b cont
35183 ' <confdefs.h | sed '
35184 s/'"$ac_delim"'/"\\\
35185 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35188 for (key in D) D_is_set[key] = 1
35189 FS = "\a"
35191 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35192 line = \$ 0
35193 split(line, arg, " ")
35194 if (arg[1] == "#") {
35195 defundef = arg[2]
35196 mac1 = arg[3]
35197 } else {
35198 defundef = substr(arg[1], 2)
35199 mac1 = arg[2]
35201 split(mac1, mac2, "(") #)
35202 macro = mac2[1]
35203 prefix = substr(line, 1, index(line, defundef) - 1)
35204 if (D_is_set[macro]) {
35205 # Preserve the white space surrounding the "#".
35206 print prefix "define", macro P[macro] D[macro]
35207 next
35208 } else {
35209 # Replace #undef with comments. This is necessary, for example,
35210 # in the case of _POSIX_SOURCE, which is predefined and required
35211 # on some systems where configure will not decide to define it.
35212 if (defundef == "undef") {
35213 print "/*", prefix defundef, macro, "*/"
35214 next
35218 { print }
35219 _ACAWK
35220 _ACEOF
35221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35222 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35223 fi # test -n "$CONFIG_HEADERS"
35226 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35227 shift
35228 for ac_tag
35230 case $ac_tag in
35231 :[FHLC]) ac_mode=$ac_tag; continue;;
35232 esac
35233 case $ac_mode$ac_tag in
35234 :[FHL]*:*);;
35235 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35236 :[FH]-) ac_tag=-:-;;
35237 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35238 esac
35239 ac_save_IFS=$IFS
35240 IFS=:
35241 set x $ac_tag
35242 IFS=$ac_save_IFS
35243 shift
35244 ac_file=$1
35245 shift
35247 case $ac_mode in
35248 :L) ac_source=$1;;
35249 :[FH])
35250 ac_file_inputs=
35251 for ac_f
35253 case $ac_f in
35254 -) ac_f="$ac_tmp/stdin";;
35255 *) # Look for the file first in the build tree, then in the source tree
35256 # (if the path is not absolute). The absolute path cannot be DOS-style,
35257 # because $ac_f cannot contain `:'.
35258 test -f "$ac_f" ||
35259 case $ac_f in
35260 [\\/$]*) false;;
35261 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35262 esac ||
35263 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35264 esac
35265 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35266 as_fn_append ac_file_inputs " '$ac_f'"
35267 done
35269 # Let's still pretend it is `configure' which instantiates (i.e., don't
35270 # use $as_me), people would be surprised to read:
35271 # /* config.h. Generated by config.status. */
35272 configure_input='Generated from '`
35273 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35274 `' by configure.'
35275 if test x"$ac_file" != x-; then
35276 configure_input="$ac_file. $configure_input"
35277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35278 $as_echo "$as_me: creating $ac_file" >&6;}
35280 # Neutralize special characters interpreted by sed in replacement strings.
35281 case $configure_input in #(
35282 *\&* | *\|* | *\\* )
35283 ac_sed_conf_input=`$as_echo "$configure_input" |
35284 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35285 *) ac_sed_conf_input=$configure_input;;
35286 esac
35288 case $ac_tag in
35289 *:-:* | *:-) cat >"$ac_tmp/stdin" \
35290 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35291 esac
35293 esac
35295 ac_dir=`$as_dirname -- "$ac_file" ||
35296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35297 X"$ac_file" : 'X\(//\)[^/]' \| \
35298 X"$ac_file" : 'X\(//\)$' \| \
35299 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35300 $as_echo X"$ac_file" |
35301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35302 s//\1/
35305 /^X\(\/\/\)[^/].*/{
35306 s//\1/
35309 /^X\(\/\/\)$/{
35310 s//\1/
35313 /^X\(\/\).*/{
35314 s//\1/
35317 s/.*/./; q'`
35318 as_dir="$ac_dir"; as_fn_mkdir_p
35319 ac_builddir=.
35321 case "$ac_dir" in
35322 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35324 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35325 # A ".." for each directory in $ac_dir_suffix.
35326 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35327 case $ac_top_builddir_sub in
35328 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35329 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35330 esac ;;
35331 esac
35332 ac_abs_top_builddir=$ac_pwd
35333 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35334 # for backward compatibility:
35335 ac_top_builddir=$ac_top_build_prefix
35337 case $srcdir in
35338 .) # We are building in place.
35339 ac_srcdir=.
35340 ac_top_srcdir=$ac_top_builddir_sub
35341 ac_abs_top_srcdir=$ac_pwd ;;
35342 [\\/]* | ?:[\\/]* ) # Absolute name.
35343 ac_srcdir=$srcdir$ac_dir_suffix;
35344 ac_top_srcdir=$srcdir
35345 ac_abs_top_srcdir=$srcdir ;;
35346 *) # Relative name.
35347 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35348 ac_top_srcdir=$ac_top_build_prefix$srcdir
35349 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35350 esac
35351 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35354 case $ac_mode in
35357 # CONFIG_FILE
35360 case $INSTALL in
35361 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35362 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35363 esac
35364 _ACEOF
35366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35367 # If the template does not know about datarootdir, expand it.
35368 # FIXME: This hack should be removed a few years after 2.60.
35369 ac_datarootdir_hack=; ac_datarootdir_seen=
35370 ac_sed_dataroot='
35371 /datarootdir/ {
35375 /@datadir@/p
35376 /@docdir@/p
35377 /@infodir@/p
35378 /@localedir@/p
35379 /@mandir@/p'
35380 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35381 *datarootdir*) ac_datarootdir_seen=yes;;
35382 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35384 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35385 _ACEOF
35386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35387 ac_datarootdir_hack='
35388 s&@datadir@&$datadir&g
35389 s&@docdir@&$docdir&g
35390 s&@infodir@&$infodir&g
35391 s&@localedir@&$localedir&g
35392 s&@mandir@&$mandir&g
35393 s&\\\${datarootdir}&$datarootdir&g' ;;
35394 esac
35395 _ACEOF
35397 # Neutralize VPATH when `$srcdir' = `.'.
35398 # Shell code in configure.ac might set extrasub.
35399 # FIXME: do we really want to maintain this feature?
35400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35401 ac_sed_extra="$ac_vpsub
35402 $extrasub
35403 _ACEOF
35404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35407 s|@configure_input@|$ac_sed_conf_input|;t t
35408 s&@top_builddir@&$ac_top_builddir_sub&;t t
35409 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35410 s&@srcdir@&$ac_srcdir&;t t
35411 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35412 s&@top_srcdir@&$ac_top_srcdir&;t t
35413 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35414 s&@builddir@&$ac_builddir&;t t
35415 s&@abs_builddir@&$ac_abs_builddir&;t t
35416 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35417 s&@INSTALL@&$ac_INSTALL&;t t
35418 $ac_datarootdir_hack
35420 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
35421 if $ac_cs_awk_getline; then
35422 $AWK -f "$ac_tmp/subs.awk"
35423 else
35424 $AWK -f "$ac_tmp/subs.awk" | $SHELL
35425 fi \
35426 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35428 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35429 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35430 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35431 "$ac_tmp/out"`; test -z "$ac_out"; } &&
35432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35433 which seems to be undefined. Please make sure it is defined" >&5
35434 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35435 which seems to be undefined. Please make sure it is defined" >&2;}
35437 rm -f "$ac_tmp/stdin"
35438 case $ac_file in
35439 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35440 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35441 esac \
35442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35446 # CONFIG_HEADER
35448 if test x"$ac_file" != x-; then
35450 $as_echo "/* $configure_input */" \
35451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35452 } >"$ac_tmp/config.h" \
35453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35454 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35455 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35456 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35457 else
35458 rm -f "$ac_file"
35459 mv "$ac_tmp/config.h" "$ac_file" \
35460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35462 else
35463 $as_echo "/* $configure_input */" \
35464 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35465 || as_fn_error $? "could not create -" "$LINENO" 5
35470 # CONFIG_LINK
35473 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
35475 else
35476 # Prefer the file from the source tree if names are identical.
35477 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
35478 ac_source=$srcdir/$ac_source
35481 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
35482 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
35484 if test ! -r "$ac_source"; then
35485 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
35487 rm -f "$ac_file"
35489 # Try a relative symlink, then a hard link, then a copy.
35490 case $ac_source in
35491 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
35492 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
35493 esac
35494 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
35495 ln "$ac_source" "$ac_file" 2>/dev/null ||
35496 cp -p "$ac_source" "$ac_file" ||
35497 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
35500 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35501 $as_echo "$as_me: executing $ac_file commands" >&6;}
35503 esac
35506 case $ac_file$ac_mode in
35507 "config.h":H) echo > stamp-h ;;
35508 "libtool":C)
35510 # See if we are running on zsh, and set the options which allow our
35511 # commands through without removal of \ escapes.
35512 if test -n "${ZSH_VERSION+set}" ; then
35513 setopt NO_GLOB_SUBST
35516 cfgfile="${ofile}T"
35517 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35518 $RM "$cfgfile"
35520 cat <<_LT_EOF >> "$cfgfile"
35521 #! $SHELL
35523 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35524 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35525 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35526 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35528 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35529 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
35530 # Written by Gordon Matzigkeit, 1996
35532 # This file is part of GNU Libtool.
35534 # GNU Libtool is free software; you can redistribute it and/or
35535 # modify it under the terms of the GNU General Public License as
35536 # published by the Free Software Foundation; either version 2 of
35537 # the License, or (at your option) any later version.
35539 # As a special exception to the GNU General Public License,
35540 # if you distribute this file as part of a program or library that
35541 # is built using GNU Libtool, you may include this file under the
35542 # same distribution terms that you use for the rest of that program.
35544 # GNU Libtool is distributed in the hope that it will be useful,
35545 # but WITHOUT ANY WARRANTY; without even the implied warranty of
35546 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35547 # GNU General Public License for more details.
35549 # You should have received a copy of the GNU General Public License
35550 # along with GNU Libtool; see the file COPYING. If not, a copy
35551 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35552 # obtained by writing to the Free Software Foundation, Inc.,
35553 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35556 # The names of the tagged configurations supported by this script.
35557 available_tags="CXX "
35559 # ### BEGIN LIBTOOL CONFIG
35561 # Which release of libtool.m4 was used?
35562 macro_version=$macro_version
35563 macro_revision=$macro_revision
35565 # Whether or not to build shared libraries.
35566 build_libtool_libs=$enable_shared
35568 # Whether or not to build static libraries.
35569 build_old_libs=$enable_static
35571 # What type of objects to build.
35572 pic_mode=$pic_mode
35574 # Whether or not to optimize for fast installation.
35575 fast_install=$enable_fast_install
35577 # Shell to use when invoking shell scripts.
35578 SHELL=$lt_SHELL
35580 # An echo program that protects backslashes.
35581 ECHO=$lt_ECHO
35583 # The host system.
35584 host_alias=$host_alias
35585 host=$host
35586 host_os=$host_os
35588 # The build system.
35589 build_alias=$build_alias
35590 build=$build
35591 build_os=$build_os
35593 # A sed program that does not truncate output.
35594 SED=$lt_SED
35596 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35597 Xsed="\$SED -e 1s/^X//"
35599 # A grep program that handles long lines.
35600 GREP=$lt_GREP
35602 # An ERE matcher.
35603 EGREP=$lt_EGREP
35605 # A literal string matcher.
35606 FGREP=$lt_FGREP
35608 # A BSD- or MS-compatible name lister.
35609 NM=$lt_NM
35611 # Whether we need soft or hard links.
35612 LN_S=$lt_LN_S
35614 # What is the maximum length of a command?
35615 max_cmd_len=$max_cmd_len
35617 # Object file suffix (normally "o").
35618 objext=$ac_objext
35620 # Executable file suffix (normally "").
35621 exeext=$exeext
35623 # whether the shell understands "unset".
35624 lt_unset=$lt_unset
35626 # turn spaces into newlines.
35627 SP2NL=$lt_lt_SP2NL
35629 # turn newlines into spaces.
35630 NL2SP=$lt_lt_NL2SP
35632 # An object symbol dumper.
35633 OBJDUMP=$lt_OBJDUMP
35635 # Method to check whether dependent libraries are shared objects.
35636 deplibs_check_method=$lt_deplibs_check_method
35638 # Command to use when deplibs_check_method == "file_magic".
35639 file_magic_cmd=$lt_file_magic_cmd
35641 # The archiver.
35642 AR=$lt_AR
35643 AR_FLAGS=$lt_AR_FLAGS
35645 # A symbol stripping program.
35646 STRIP=$lt_STRIP
35648 # Commands used to install an old-style archive.
35649 RANLIB=$lt_RANLIB
35650 old_postinstall_cmds=$lt_old_postinstall_cmds
35651 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35653 # Whether to use a lock for old archive extraction.
35654 lock_old_archive_extraction=$lock_old_archive_extraction
35656 # A C compiler.
35657 LTCC=$lt_CC
35659 # LTCC compiler flags.
35660 LTCFLAGS=$lt_CFLAGS
35662 # Take the output of nm and produce a listing of raw symbols and C names.
35663 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35665 # Transform the output of nm in a proper C declaration.
35666 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35668 # Transform the output of nm in a C name address pair.
35669 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35671 # Transform the output of nm in a C name address pair when lib prefix is needed.
35672 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35674 # The name of the directory that contains temporary libtool files.
35675 objdir=$objdir
35677 # Used to examine libraries when file_magic_cmd begins with "file".
35678 MAGIC_CMD=$MAGIC_CMD
35680 # Must we lock files when doing compilation?
35681 need_locks=$lt_need_locks
35683 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35684 DSYMUTIL=$lt_DSYMUTIL
35686 # Tool to change global to local symbols on Mac OS X.
35687 NMEDIT=$lt_NMEDIT
35689 # Tool to manipulate fat objects and archives on Mac OS X.
35690 LIPO=$lt_LIPO
35692 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35693 OTOOL=$lt_OTOOL
35695 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35696 OTOOL64=$lt_OTOOL64
35698 # Old archive suffix (normally "a").
35699 libext=$libext
35701 # Shared library suffix (normally ".so").
35702 shrext_cmds=$lt_shrext_cmds
35704 # The commands to extract the exported symbol list from a shared archive.
35705 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35707 # Variables whose values should be saved in libtool wrapper scripts and
35708 # restored at link time.
35709 variables_saved_for_relink=$lt_variables_saved_for_relink
35711 # Do we need the "lib" prefix for modules?
35712 need_lib_prefix=$need_lib_prefix
35714 # Do we need a version for libraries?
35715 need_version=$need_version
35717 # Library versioning type.
35718 version_type=$version_type
35720 # Shared library runtime path variable.
35721 runpath_var=$runpath_var
35723 # Shared library path variable.
35724 shlibpath_var=$shlibpath_var
35726 # Is shlibpath searched before the hard-coded library search path?
35727 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35729 # Format of library name prefix.
35730 libname_spec=$lt_libname_spec
35732 # List of archive names. First name is the real one, the rest are links.
35733 # The last name is the one that the linker finds with -lNAME
35734 library_names_spec=$lt_library_names_spec
35736 # The coded name of the library, if different from the real name.
35737 soname_spec=$lt_soname_spec
35739 # Permission mode override for installation of shared libraries.
35740 install_override_mode=$lt_install_override_mode
35742 # Command to use after installation of a shared archive.
35743 postinstall_cmds=$lt_postinstall_cmds
35745 # Command to use after uninstallation of a shared archive.
35746 postuninstall_cmds=$lt_postuninstall_cmds
35748 # Commands used to finish a libtool library installation in a directory.
35749 finish_cmds=$lt_finish_cmds
35751 # As "finish_cmds", except a single script fragment to be evaled but
35752 # not shown.
35753 finish_eval=$lt_finish_eval
35755 # Whether we should hardcode library paths into libraries.
35756 hardcode_into_libs=$hardcode_into_libs
35758 # Compile-time system search path for libraries.
35759 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35761 # Run-time system search path for libraries.
35762 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35764 # Whether dlopen is supported.
35765 dlopen_support=$enable_dlopen
35767 # Whether dlopen of programs is supported.
35768 dlopen_self=$enable_dlopen_self
35770 # Whether dlopen of statically linked programs is supported.
35771 dlopen_self_static=$enable_dlopen_self_static
35773 # Commands to strip libraries.
35774 old_striplib=$lt_old_striplib
35775 striplib=$lt_striplib
35778 # The linker used to build libraries.
35779 LD=$lt_LD
35781 # How to create reloadable object files.
35782 reload_flag=$lt_reload_flag
35783 reload_cmds=$lt_reload_cmds
35785 # Commands used to build an old-style archive.
35786 old_archive_cmds=$lt_old_archive_cmds
35788 # A language specific compiler.
35789 CC=$lt_compiler
35791 # Is the compiler the GNU compiler?
35792 with_gcc=$GCC
35794 # Compiler flag to turn off builtin functions.
35795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35797 # How to pass a linker flag through the compiler.
35798 wl=$lt_lt_prog_compiler_wl
35800 # Additional compiler flags for building library objects.
35801 pic_flag=$lt_lt_prog_compiler_pic
35803 # Compiler flag to prevent dynamic linking.
35804 link_static_flag=$lt_lt_prog_compiler_static
35806 # Does compiler simultaneously support -c and -o options?
35807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35809 # Whether or not to add -lc for building shared libraries.
35810 build_libtool_need_lc=$archive_cmds_need_lc
35812 # Whether or not to disallow shared libs when runtime libs are static.
35813 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35815 # Compiler flag to allow reflexive dlopens.
35816 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35818 # Compiler flag to generate shared objects directly from archives.
35819 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35821 # Whether the compiler copes with passing no objects directly.
35822 compiler_needs_object=$lt_compiler_needs_object
35824 # Create an old-style archive from a shared archive.
35825 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35827 # Create a temporary old-style archive to link instead of a shared archive.
35828 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35830 # Commands used to build a shared archive.
35831 archive_cmds=$lt_archive_cmds
35832 archive_expsym_cmds=$lt_archive_expsym_cmds
35834 # Commands used to build a loadable module if different from building
35835 # a shared archive.
35836 module_cmds=$lt_module_cmds
35837 module_expsym_cmds=$lt_module_expsym_cmds
35839 # Whether we are building with GNU ld or not.
35840 with_gnu_ld=$lt_with_gnu_ld
35842 # Flag that allows shared libraries with undefined symbols to be built.
35843 allow_undefined_flag=$lt_allow_undefined_flag
35845 # Flag that enforces no undefined symbols.
35846 no_undefined_flag=$lt_no_undefined_flag
35848 # Flag to hardcode \$libdir into a binary during linking.
35849 # This must work even if \$libdir does not exist
35850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35852 # If ld is used when linking, flag to hardcode \$libdir into a binary
35853 # during linking. This must work even if \$libdir does not exist.
35854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35856 # Whether we need a single "-rpath" flag with a separated argument.
35857 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35859 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35860 # DIR into the resulting binary.
35861 hardcode_direct=$hardcode_direct
35863 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35864 # DIR into the resulting binary and the resulting library dependency is
35865 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35866 # library is relocated.
35867 hardcode_direct_absolute=$hardcode_direct_absolute
35869 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35870 # into the resulting binary.
35871 hardcode_minus_L=$hardcode_minus_L
35873 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35874 # into the resulting binary.
35875 hardcode_shlibpath_var=$hardcode_shlibpath_var
35877 # Set to "yes" if building a shared library automatically hardcodes DIR
35878 # into the library and all subsequent libraries and executables linked
35879 # against it.
35880 hardcode_automatic=$hardcode_automatic
35882 # Set to yes if linker adds runtime paths of dependent libraries
35883 # to runtime path list.
35884 inherit_rpath=$inherit_rpath
35886 # Whether libtool must link a program against all its dependency libraries.
35887 link_all_deplibs=$link_all_deplibs
35889 # Fix the shell variable \$srcfile for the compiler.
35890 fix_srcfile_path=$lt_fix_srcfile_path
35892 # Set to "yes" if exported symbols are required.
35893 always_export_symbols=$always_export_symbols
35895 # The commands to list exported symbols.
35896 export_symbols_cmds=$lt_export_symbols_cmds
35898 # Symbols that should not be listed in the preloaded symbols.
35899 exclude_expsyms=$lt_exclude_expsyms
35901 # Symbols that must always be exported.
35902 include_expsyms=$lt_include_expsyms
35904 # Commands necessary for linking programs (against libraries) with templates.
35905 prelink_cmds=$lt_prelink_cmds
35907 # Specify filename containing input files.
35908 file_list_spec=$lt_file_list_spec
35910 # How to hardcode a shared library path into an executable.
35911 hardcode_action=$hardcode_action
35913 # The directories searched by this compiler when creating a shared library.
35914 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35916 # Dependencies to place before and after the objects being linked to
35917 # create a shared library.
35918 predep_objects=$lt_predep_objects
35919 postdep_objects=$lt_postdep_objects
35920 predeps=$lt_predeps
35921 postdeps=$lt_postdeps
35923 # The library search path used internally by the compiler when linking
35924 # a shared library.
35925 compiler_lib_search_path=$lt_compiler_lib_search_path
35927 # ### END LIBTOOL CONFIG
35929 _LT_EOF
35931 case $host_os in
35932 aix3*)
35933 cat <<\_LT_EOF >> "$cfgfile"
35934 # AIX sometimes has problems with the GCC collect2 program. For some
35935 # reason, if we set the COLLECT_NAMES environment variable, the problems
35936 # vanish in a puff of smoke.
35937 if test "X${COLLECT_NAMES+set}" != Xset; then
35938 COLLECT_NAMES=
35939 export COLLECT_NAMES
35941 _LT_EOF
35943 esac
35946 ltmain="$ac_aux_dir/ltmain.sh"
35949 # We use sed instead of cat because bash on DJGPP gets confused if
35950 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35951 # text mode, it properly converts lines to CR/LF. This bash problem
35952 # is reportedly fixed, but why not run on old versions too?
35953 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35954 || (rm -f "$cfgfile"; exit 1)
35956 case $xsi_shell in
35957 yes)
35958 cat << \_LT_EOF >> "$cfgfile"
35960 # func_dirname file append nondir_replacement
35961 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35962 # otherwise set result to NONDIR_REPLACEMENT.
35963 func_dirname ()
35965 case ${1} in
35966 */*) func_dirname_result="${1%/*}${2}" ;;
35967 * ) func_dirname_result="${3}" ;;
35968 esac
35971 # func_basename file
35972 func_basename ()
35974 func_basename_result="${1##*/}"
35977 # func_dirname_and_basename file append nondir_replacement
35978 # perform func_basename and func_dirname in a single function
35979 # call:
35980 # dirname: Compute the dirname of FILE. If nonempty,
35981 # add APPEND to the result, otherwise set result
35982 # to NONDIR_REPLACEMENT.
35983 # value returned in "$func_dirname_result"
35984 # basename: Compute filename of FILE.
35985 # value retuned in "$func_basename_result"
35986 # Implementation must be kept synchronized with func_dirname
35987 # and func_basename. For efficiency, we do not delegate to
35988 # those functions but instead duplicate the functionality here.
35989 func_dirname_and_basename ()
35991 case ${1} in
35992 */*) func_dirname_result="${1%/*}${2}" ;;
35993 * ) func_dirname_result="${3}" ;;
35994 esac
35995 func_basename_result="${1##*/}"
35998 # func_stripname prefix suffix name
35999 # strip PREFIX and SUFFIX off of NAME.
36000 # PREFIX and SUFFIX must not contain globbing or regex special
36001 # characters, hashes, percent signs, but SUFFIX may contain a leading
36002 # dot (in which case that matches only a dot).
36003 func_stripname ()
36005 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
36006 # positional parameters, so assign one to ordinary parameter first.
36007 func_stripname_result=${3}
36008 func_stripname_result=${func_stripname_result#"${1}"}
36009 func_stripname_result=${func_stripname_result%"${2}"}
36012 # func_opt_split
36013 func_opt_split ()
36015 func_opt_split_opt=${1%%=*}
36016 func_opt_split_arg=${1#*=}
36019 # func_lo2o object
36020 func_lo2o ()
36022 case ${1} in
36023 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
36024 *) func_lo2o_result=${1} ;;
36025 esac
36028 # func_xform libobj-or-source
36029 func_xform ()
36031 func_xform_result=${1%.*}.lo
36034 # func_arith arithmetic-term...
36035 func_arith ()
36037 func_arith_result=$(( $* ))
36040 # func_len string
36041 # STRING may not start with a hyphen.
36042 func_len ()
36044 func_len_result=${#1}
36047 _LT_EOF
36049 *) # Bourne compatible functions.
36050 cat << \_LT_EOF >> "$cfgfile"
36052 # func_dirname file append nondir_replacement
36053 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
36054 # otherwise set result to NONDIR_REPLACEMENT.
36055 func_dirname ()
36057 # Extract subdirectory from the argument.
36058 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
36059 if test "X$func_dirname_result" = "X${1}"; then
36060 func_dirname_result="${3}"
36061 else
36062 func_dirname_result="$func_dirname_result${2}"
36066 # func_basename file
36067 func_basename ()
36069 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
36073 # func_stripname prefix suffix name
36074 # strip PREFIX and SUFFIX off of NAME.
36075 # PREFIX and SUFFIX must not contain globbing or regex special
36076 # characters, hashes, percent signs, but SUFFIX may contain a leading
36077 # dot (in which case that matches only a dot).
36078 # func_strip_suffix prefix name
36079 func_stripname ()
36081 case ${2} in
36082 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
36083 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
36084 esac
36087 # sed scripts:
36088 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
36089 my_sed_long_arg='1s/^-[^=]*=//'
36091 # func_opt_split
36092 func_opt_split ()
36094 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
36095 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
36098 # func_lo2o object
36099 func_lo2o ()
36101 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
36104 # func_xform libobj-or-source
36105 func_xform ()
36107 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
36110 # func_arith arithmetic-term...
36111 func_arith ()
36113 func_arith_result=`expr "$@"`
36116 # func_len string
36117 # STRING may not start with a hyphen.
36118 func_len ()
36120 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
36123 _LT_EOF
36124 esac
36126 case $lt_shell_append in
36127 yes)
36128 cat << \_LT_EOF >> "$cfgfile"
36130 # func_append var value
36131 # Append VALUE to the end of shell variable VAR.
36132 func_append ()
36134 eval "$1+=\$2"
36136 _LT_EOF
36139 cat << \_LT_EOF >> "$cfgfile"
36141 # func_append var value
36142 # Append VALUE to the end of shell variable VAR.
36143 func_append ()
36145 eval "$1=\$$1\$2"
36148 _LT_EOF
36150 esac
36153 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
36154 || (rm -f "$cfgfile"; exit 1)
36156 mv -f "$cfgfile" "$ofile" ||
36157 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36158 chmod +x "$ofile"
36161 cat <<_LT_EOF >> "$ofile"
36163 # ### BEGIN LIBTOOL TAG CONFIG: CXX
36165 # The linker used to build libraries.
36166 LD=$lt_LD_CXX
36168 # How to create reloadable object files.
36169 reload_flag=$lt_reload_flag_CXX
36170 reload_cmds=$lt_reload_cmds_CXX
36172 # Commands used to build an old-style archive.
36173 old_archive_cmds=$lt_old_archive_cmds_CXX
36175 # A language specific compiler.
36176 CC=$lt_compiler_CXX
36178 # Is the compiler the GNU compiler?
36179 with_gcc=$GCC_CXX
36181 # Compiler flag to turn off builtin functions.
36182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36184 # How to pass a linker flag through the compiler.
36185 wl=$lt_lt_prog_compiler_wl_CXX
36187 # Additional compiler flags for building library objects.
36188 pic_flag=$lt_lt_prog_compiler_pic_CXX
36190 # Compiler flag to prevent dynamic linking.
36191 link_static_flag=$lt_lt_prog_compiler_static_CXX
36193 # Does compiler simultaneously support -c and -o options?
36194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36196 # Whether or not to add -lc for building shared libraries.
36197 build_libtool_need_lc=$archive_cmds_need_lc_CXX
36199 # Whether or not to disallow shared libs when runtime libs are static.
36200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36202 # Compiler flag to allow reflexive dlopens.
36203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36205 # Compiler flag to generate shared objects directly from archives.
36206 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36208 # Whether the compiler copes with passing no objects directly.
36209 compiler_needs_object=$lt_compiler_needs_object_CXX
36211 # Create an old-style archive from a shared archive.
36212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36214 # Create a temporary old-style archive to link instead of a shared archive.
36215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36217 # Commands used to build a shared archive.
36218 archive_cmds=$lt_archive_cmds_CXX
36219 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36221 # Commands used to build a loadable module if different from building
36222 # a shared archive.
36223 module_cmds=$lt_module_cmds_CXX
36224 module_expsym_cmds=$lt_module_expsym_cmds_CXX
36226 # Whether we are building with GNU ld or not.
36227 with_gnu_ld=$lt_with_gnu_ld_CXX
36229 # Flag that allows shared libraries with undefined symbols to be built.
36230 allow_undefined_flag=$lt_allow_undefined_flag_CXX
36232 # Flag that enforces no undefined symbols.
36233 no_undefined_flag=$lt_no_undefined_flag_CXX
36235 # Flag to hardcode \$libdir into a binary during linking.
36236 # This must work even if \$libdir does not exist
36237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36239 # If ld is used when linking, flag to hardcode \$libdir into a binary
36240 # during linking. This must work even if \$libdir does not exist.
36241 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36243 # Whether we need a single "-rpath" flag with a separated argument.
36244 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36246 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36247 # DIR into the resulting binary.
36248 hardcode_direct=$hardcode_direct_CXX
36250 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36251 # DIR into the resulting binary and the resulting library dependency is
36252 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36253 # library is relocated.
36254 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36256 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36257 # into the resulting binary.
36258 hardcode_minus_L=$hardcode_minus_L_CXX
36260 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36261 # into the resulting binary.
36262 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36264 # Set to "yes" if building a shared library automatically hardcodes DIR
36265 # into the library and all subsequent libraries and executables linked
36266 # against it.
36267 hardcode_automatic=$hardcode_automatic_CXX
36269 # Set to yes if linker adds runtime paths of dependent libraries
36270 # to runtime path list.
36271 inherit_rpath=$inherit_rpath_CXX
36273 # Whether libtool must link a program against all its dependency libraries.
36274 link_all_deplibs=$link_all_deplibs_CXX
36276 # Fix the shell variable \$srcfile for the compiler.
36277 fix_srcfile_path=$lt_fix_srcfile_path_CXX
36279 # Set to "yes" if exported symbols are required.
36280 always_export_symbols=$always_export_symbols_CXX
36282 # The commands to list exported symbols.
36283 export_symbols_cmds=$lt_export_symbols_cmds_CXX
36285 # Symbols that should not be listed in the preloaded symbols.
36286 exclude_expsyms=$lt_exclude_expsyms_CXX
36288 # Symbols that must always be exported.
36289 include_expsyms=$lt_include_expsyms_CXX
36291 # Commands necessary for linking programs (against libraries) with templates.
36292 prelink_cmds=$lt_prelink_cmds_CXX
36294 # Specify filename containing input files.
36295 file_list_spec=$lt_file_list_spec_CXX
36297 # How to hardcode a shared library path into an executable.
36298 hardcode_action=$hardcode_action_CXX
36300 # The directories searched by this compiler when creating a shared library.
36301 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36303 # Dependencies to place before and after the objects being linked to
36304 # create a shared library.
36305 predep_objects=$lt_predep_objects_CXX
36306 postdep_objects=$lt_postdep_objects_CXX
36307 predeps=$lt_predeps_CXX
36308 postdeps=$lt_postdeps_CXX
36310 # The library search path used internally by the compiler when linking
36311 # a shared library.
36312 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36314 # ### END LIBTOOL TAG CONFIG: CXX
36315 _LT_EOF
36318 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36319 "default-1":C)
36320 for ac_file in $CONFIG_FILES; do
36321 # Support "outfile[:infile[:infile...]]"
36322 case "$ac_file" in
36323 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36324 esac
36325 # PO directories have a Makefile.in generated from Makefile.in.in.
36326 case "$ac_file" in */Makefile.in)
36327 # Adjust a relative srcdir.
36328 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36329 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
36330 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36331 # In autoconf-2.13 it is called $ac_given_srcdir.
36332 # In autoconf-2.50 it is called $srcdir.
36333 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36334 case "$ac_given_srcdir" in
36335 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36336 /*) top_srcdir="$ac_given_srcdir" ;;
36337 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36338 esac
36339 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36340 rm -f "$ac_dir/POTFILES"
36341 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36342 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36343 POMAKEFILEDEPS="POTFILES.in"
36344 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36345 # on $ac_dir but don't depend on user-specified configuration
36346 # parameters.
36347 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36348 # The LINGUAS file contains the set of available languages.
36349 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36350 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
36352 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36353 # Hide the ALL_LINGUAS assigment from automake.
36354 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36355 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36356 else
36357 # The set of available languages was given in configure.ac.
36358 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36360 case "$ac_given_srcdir" in
36361 .) srcdirpre= ;;
36362 *) srcdirpre='$(srcdir)/' ;;
36363 esac
36364 POFILES=
36365 GMOFILES=
36366 UPDATEPOFILES=
36367 DUMMYPOFILES=
36368 for lang in $ALL_LINGUAS; do
36369 POFILES="$POFILES $srcdirpre$lang.po"
36370 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36371 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36372 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36373 done
36374 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36375 # environment variable.
36376 INST_LINGUAS=
36377 if test -n "$ALL_LINGUAS"; then
36378 for presentlang in $ALL_LINGUAS; do
36379 useit=no
36380 if test "%UNSET%" != "$LINGUAS"; then
36381 desiredlanguages="$LINGUAS"
36382 else
36383 desiredlanguages="$ALL_LINGUAS"
36385 for desiredlang in $desiredlanguages; do
36386 # Use the presentlang catalog if desiredlang is
36387 # a. equal to presentlang, or
36388 # b. a variant of presentlang (because in this case,
36389 # presentlang can be used as a fallback for messages
36390 # which are not translated in the desiredlang catalog).
36391 case "$desiredlang" in
36392 "$presentlang"*) useit=yes;;
36393 esac
36394 done
36395 if test $useit = yes; then
36396 INST_LINGUAS="$INST_LINGUAS $presentlang"
36398 done
36400 CATALOGS=
36401 if test -n "$INST_LINGUAS"; then
36402 for lang in $INST_LINGUAS; do
36403 CATALOGS="$CATALOGS $lang.gmo"
36404 done
36406 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36407 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36408 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36409 if test -f "$f"; then
36410 case "$f" in
36411 *.orig | *.bak | *~) ;;
36412 *) cat "$f" >> "$ac_dir/Makefile" ;;
36413 esac
36415 done
36418 esac
36419 done ;;
36420 "nm.h":L) echo > stamp-nmh ;;
36421 "gcore":F) chmod +x gcore ;;
36423 esac
36424 done # for ac_tag
36427 as_fn_exit 0
36428 _ACEOF
36429 ac_clean_files=$ac_clean_files_save
36431 test $ac_write_fail = 0 ||
36432 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36435 # configure is writing to config.log, and then calls config.status.
36436 # config.status does its own redirection, appending to config.log.
36437 # Unfortunately, on DOS this fails, as config.log is still kept open
36438 # by configure, so config.status won't be able to write to it; its
36439 # output is simply discarded. So we exec the FD to /dev/null,
36440 # effectively closing config.log, so it can be properly (re)opened and
36441 # appended to by config.status. When coming back to configure, we
36442 # need to make the FD available again.
36443 if test "$no_create" != yes; then
36444 ac_cs_success=:
36445 ac_config_status_args=
36446 test "$silent" = yes &&
36447 ac_config_status_args="$ac_config_status_args --quiet"
36448 exec 5>/dev/null
36449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36450 exec 5>>config.log
36451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36452 # would make configure fail if this is the last instruction.
36453 $ac_cs_success || as_fn_exit 1
36457 # CONFIG_SUBDIRS section.
36459 if test "$no_recursion" != yes; then
36461 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
36462 # so they do not pile up.
36463 ac_sub_configure_args=
36464 ac_prev=
36465 eval "set x $ac_configure_args"
36466 shift
36467 for ac_arg
36469 if test -n "$ac_prev"; then
36470 ac_prev=
36471 continue
36473 case $ac_arg in
36474 -cache-file | --cache-file | --cache-fil | --cache-fi \
36475 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36476 ac_prev=cache_file ;;
36477 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36478 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36479 | --c=*)
36481 --config-cache | -C)
36483 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36484 ac_prev=srcdir ;;
36485 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36488 ac_prev=prefix ;;
36489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36491 --disable-option-checking)
36494 case $ac_arg in
36495 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36496 esac
36497 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
36498 esac
36499 done
36501 # Always prepend --prefix to ensure using the same prefix
36502 # in subdir configurations.
36503 ac_arg="--prefix=$prefix"
36504 case $ac_arg in
36505 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36506 esac
36507 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
36509 # Pass --silent
36510 if test "$silent" = yes; then
36511 ac_sub_configure_args="--silent $ac_sub_configure_args"
36514 # Always prepend --disable-option-checking to silence warnings, since
36515 # different subdirs can have different --enable and --with options.
36516 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
36518 ac_popdir=`pwd`
36519 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36521 # Do not complain, so a configure script can configure whichever
36522 # parts of a large source tree are present.
36523 test -d "$srcdir/$ac_dir" || continue
36525 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36526 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
36527 $as_echo "$ac_msg" >&6
36528 as_dir="$ac_dir"; as_fn_mkdir_p
36529 ac_builddir=.
36531 case "$ac_dir" in
36532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36535 # A ".." for each directory in $ac_dir_suffix.
36536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36537 case $ac_top_builddir_sub in
36538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36540 esac ;;
36541 esac
36542 ac_abs_top_builddir=$ac_pwd
36543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36544 # for backward compatibility:
36545 ac_top_builddir=$ac_top_build_prefix
36547 case $srcdir in
36548 .) # We are building in place.
36549 ac_srcdir=.
36550 ac_top_srcdir=$ac_top_builddir_sub
36551 ac_abs_top_srcdir=$ac_pwd ;;
36552 [\\/]* | ?:[\\/]* ) # Absolute name.
36553 ac_srcdir=$srcdir$ac_dir_suffix;
36554 ac_top_srcdir=$srcdir
36555 ac_abs_top_srcdir=$srcdir ;;
36556 *) # Relative name.
36557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36558 ac_top_srcdir=$ac_top_build_prefix$srcdir
36559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36560 esac
36561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36564 cd "$ac_dir"
36566 # Check for guested configure; otherwise get Cygnus style configure.
36567 if test -f "$ac_srcdir/configure.gnu"; then
36568 ac_sub_configure=$ac_srcdir/configure.gnu
36569 elif test -f "$ac_srcdir/configure"; then
36570 ac_sub_configure=$ac_srcdir/configure
36571 elif test -f "$ac_srcdir/configure.in"; then
36572 # This should be Cygnus configure.
36573 ac_sub_configure=$ac_aux_dir/configure
36574 else
36575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
36576 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36577 ac_sub_configure=
36580 # The recursion is here.
36581 if test -n "$ac_sub_configure"; then
36582 # Make the cache file name correct relative to the subdirectory.
36583 case $cache_file in
36584 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36585 *) # Relative name.
36586 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36587 esac
36589 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36590 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36591 # The eval makes quoting arguments work.
36592 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36593 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36594 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
36597 cd "$ac_popdir"
36598 done
36600 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36602 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}