s390: Fix build when using EXEEXT_FOR_BUILD
[binutils-gdb.git] / gdb / configure
blob3db27c981494d01a824e698062e5c51ffa29bc83
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 ENABLE_BFD_64_BIT_FALSE
764 ENABLE_BFD_64_BIT_TRUE
765 subdirs
766 GDB_DATADIR
767 DEBUGDIR
768 MAKEINFO_EXTRA_FLAGS
769 MAKEINFOFLAGS
770 MAKEINFO
771 PACKAGE
772 CATOBJEXT
773 GENCAT
774 INSTOBJEXT
775 DATADIRNAME
776 CATALOGS
777 INCINTL
778 LIBINTL_DEP
779 POSUB
780 LTLIBINTL
781 LIBINTL
782 INTLLIBS
783 LTLIBICONV
784 LIBICONV
785 INTL_MACOSX_LIBS
786 MSGMERGE
787 XGETTEXT
788 GMSGFMT
789 MSGFMT
790 USE_NLS
791 MKINSTALLDIRS
792 INSTALL_DATA
793 INSTALL_SCRIPT
794 INSTALL_PROGRAM
795 SET_MAKE
796 PKG_CONFIG_LIBDIR
797 PKG_CONFIG_PATH
798 PKG_CONFIG
799 CCDEPMODE
800 DEPDIR
801 am__leading_dot
802 LTLIBXXHASH
803 LIBXXHASH
804 HAVE_LIBXXHASH
805 LTLIBIPT
806 LIBIPT
807 HAVE_LIBIPT
808 PTHREAD_CFLAGS
809 PTHREAD_LIBS
810 PTHREAD_CC
811 ax_pthread_config
812 ALLOCA
813 CXX_DIALECT
814 HAVE_CXX17
815 CXXCPP
816 OTOOL64
817 OTOOL
818 LIPO
819 NMEDIT
820 DSYMUTIL
822 RANLIB
824 OBJDUMP
825 LN_S
827 ac_ct_DUMPBIN
828 DUMPBIN
830 FGREP
832 LIBTOOL
833 target_noncanonical
834 INSTALL_STRIP_PROGRAM
835 STRIP
836 install_sh
837 LARGEFILE_CPPFLAGS
838 target_os
839 target_vendor
840 target_cpu
841 target
842 host_os
843 host_vendor
844 host_cpu
845 host
846 build_os
847 build_vendor
848 build_cpu
849 build
850 EGREP
851 GREP
853 ac_ct_CXX
854 CXXFLAGS
856 OBJEXT
857 EXEEXT
858 ac_ct_CC
859 CPPFLAGS
860 LDFLAGS
861 CFLAGS
863 MAINT
864 MAINTAINER_MODE_FALSE
865 MAINTAINER_MODE_TRUE
866 target_alias
867 host_alias
868 build_alias
869 LIBS
870 ECHO_T
871 ECHO_N
872 ECHO_C
873 DEFS
874 mandir
875 localedir
876 libdir
877 psdir
878 pdfdir
879 dvidir
880 htmldir
881 infodir
882 docdir
883 oldincludedir
884 includedir
885 localstatedir
886 sharedstatedir
887 sysconfdir
888 datadir
889 datarootdir
890 libexecdir
891 sbindir
892 bindir
893 program_transform_name
894 prefix
895 exec_prefix
896 PACKAGE_URL
897 PACKAGE_BUGREPORT
898 PACKAGE_STRING
899 PACKAGE_VERSION
900 PACKAGE_TARNAME
901 PACKAGE_NAME
902 PATH_SEPARATOR
903 SHELL'
904 ac_subst_files='nat_makefile_frag'
905 ac_user_opts='
906 enable_option_checking
907 enable_maintainer_mode
908 enable_plugins
909 enable_largefile
910 enable_shared
911 enable_static
912 with_pic
913 enable_fast_install
914 with_gnu_ld
915 enable_libtool_lock
916 enable_threading
917 with_intel_pt
918 enable_rpath
919 with_libipt_prefix
920 with_libipt_type
921 with_xxhash
922 with_libxxhash_prefix
923 with_libxxhash_type
924 enable_nls
925 with_libiconv_prefix
926 with_libiconv_type
927 with_libintl_prefix
928 with_libintl_type
929 with_separate_debug_dir
930 with_additional_debug_dirs
931 with_gdb_datadir
932 with_relocated_sources
933 with_auto_load_dir
934 with_auto_load_safe_path
935 enable_targets
936 enable_64_bit_bfd
937 with_amd_dbgapi
938 enable_tui
939 enable_gdbtk
940 with_debuginfod
941 with_libunwind_ia64
942 with_curses
943 enable_profiling
944 enable_codesign
945 with_pkgversion
946 with_bugurl
947 with_system_zlib
948 with_zstd
949 with_iconv_bin
950 with_system_readline
951 with_jit_reader_dir
952 with_expat
953 with_libexpat_prefix
954 with_libexpat_type
955 with_python
956 with_python_libdir
957 with_guile
958 enable_source_highlight
959 with_sysroot
960 with_system_gdbinit
961 with_system_gdbinit_dir
962 enable_werror
963 enable_build_warnings
964 enable_gdb_build_warnings
965 enable_ubsan
966 with_lzma
967 with_liblzma_prefix
968 with_liblzma_type
969 with_tcl
970 with_tk
971 with_x
972 enable_sim
973 enable_libbacktrace
974 with_babeltrace
975 with_libbabeltrace_prefix
976 with_libbabeltrace_type
977 enable_libctf
978 enable_unit_tests
980 ac_precious_vars='build_alias
981 host_alias
982 target_alias
984 CFLAGS
985 LDFLAGS
986 LIBS
987 CPPFLAGS
989 CXXFLAGS
992 CXXCPP
993 PKG_CONFIG
994 PKG_CONFIG_PATH
995 PKG_CONFIG_LIBDIR
996 MAKEINFO
997 MAKEINFOFLAGS
998 AMD_DBGAPI_CFLAGS
999 AMD_DBGAPI_LIBS
1000 DEBUGINFOD_CFLAGS
1001 DEBUGINFOD_LIBS
1002 YACC
1003 YFLAGS
1004 ZSTD_CFLAGS
1005 ZSTD_LIBS
1006 GMPLIBS
1007 GMPINC
1008 XMKMF'
1009 ac_subdirs_all='testsuite
1010 gdbtk'
1012 # Initialize some variables set by options.
1013 ac_init_help=
1014 ac_init_version=false
1015 ac_unrecognized_opts=
1016 ac_unrecognized_sep=
1017 # The variables have the same names as the options, with
1018 # dashes changed to underlines.
1019 cache_file=/dev/null
1020 exec_prefix=NONE
1021 no_create=
1022 no_recursion=
1023 prefix=NONE
1024 program_prefix=NONE
1025 program_suffix=NONE
1026 program_transform_name=s,x,x,
1027 silent=
1028 site=
1029 srcdir=
1030 verbose=
1031 x_includes=NONE
1032 x_libraries=NONE
1034 # Installation directory options.
1035 # These are left unexpanded so users can "make install exec_prefix=/foo"
1036 # and all the variables that are supposed to be based on exec_prefix
1037 # by default will actually change.
1038 # Use braces instead of parens because sh, perl, etc. also accept them.
1039 # (The list follows the same order as the GNU Coding Standards.)
1040 bindir='${exec_prefix}/bin'
1041 sbindir='${exec_prefix}/sbin'
1042 libexecdir='${exec_prefix}/libexec'
1043 datarootdir='${prefix}/share'
1044 datadir='${datarootdir}'
1045 sysconfdir='${prefix}/etc'
1046 sharedstatedir='${prefix}/com'
1047 localstatedir='${prefix}/var'
1048 includedir='${prefix}/include'
1049 oldincludedir='/usr/include'
1050 docdir='${datarootdir}/doc/${PACKAGE}'
1051 infodir='${datarootdir}/info'
1052 htmldir='${docdir}'
1053 dvidir='${docdir}'
1054 pdfdir='${docdir}'
1055 psdir='${docdir}'
1056 libdir='${exec_prefix}/lib'
1057 localedir='${datarootdir}/locale'
1058 mandir='${datarootdir}/man'
1060 ac_prev=
1061 ac_dashdash=
1062 for ac_option
1064 # If the previous option needs an argument, assign it.
1065 if test -n "$ac_prev"; then
1066 eval $ac_prev=\$ac_option
1067 ac_prev=
1068 continue
1071 case $ac_option in
1072 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1073 *=) ac_optarg= ;;
1074 *) ac_optarg=yes ;;
1075 esac
1077 # Accept the important Cygnus configure options, so we can diagnose typos.
1079 case $ac_dashdash$ac_option in
1081 ac_dashdash=yes ;;
1083 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1084 ac_prev=bindir ;;
1085 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1086 bindir=$ac_optarg ;;
1088 -build | --build | --buil | --bui | --bu)
1089 ac_prev=build_alias ;;
1090 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1091 build_alias=$ac_optarg ;;
1093 -cache-file | --cache-file | --cache-fil | --cache-fi \
1094 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1095 ac_prev=cache_file ;;
1096 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1097 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1098 cache_file=$ac_optarg ;;
1100 --config-cache | -C)
1101 cache_file=config.cache ;;
1103 -datadir | --datadir | --datadi | --datad)
1104 ac_prev=datadir ;;
1105 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1106 datadir=$ac_optarg ;;
1108 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1109 | --dataroo | --dataro | --datar)
1110 ac_prev=datarootdir ;;
1111 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1112 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1113 datarootdir=$ac_optarg ;;
1115 -disable-* | --disable-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid feature name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1124 "enable_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval enable_$ac_useropt=no ;;
1131 -docdir | --docdir | --docdi | --doc | --do)
1132 ac_prev=docdir ;;
1133 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1134 docdir=$ac_optarg ;;
1136 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1137 ac_prev=dvidir ;;
1138 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1139 dvidir=$ac_optarg ;;
1141 -enable-* | --enable-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid feature name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "enable_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval enable_$ac_useropt=\$ac_optarg ;;
1157 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1158 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1159 | --exec | --exe | --ex)
1160 ac_prev=exec_prefix ;;
1161 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1162 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1163 | --exec=* | --exe=* | --ex=*)
1164 exec_prefix=$ac_optarg ;;
1166 -gas | --gas | --ga | --g)
1167 # Obsolete; use --with-gas.
1168 with_gas=yes ;;
1170 -help | --help | --hel | --he | -h)
1171 ac_init_help=long ;;
1172 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1173 ac_init_help=recursive ;;
1174 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1175 ac_init_help=short ;;
1177 -host | --host | --hos | --ho)
1178 ac_prev=host_alias ;;
1179 -host=* | --host=* | --hos=* | --ho=*)
1180 host_alias=$ac_optarg ;;
1182 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1183 ac_prev=htmldir ;;
1184 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1185 | --ht=*)
1186 htmldir=$ac_optarg ;;
1188 -includedir | --includedir | --includedi | --included | --include \
1189 | --includ | --inclu | --incl | --inc)
1190 ac_prev=includedir ;;
1191 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1192 | --includ=* | --inclu=* | --incl=* | --inc=*)
1193 includedir=$ac_optarg ;;
1195 -infodir | --infodir | --infodi | --infod | --info | --inf)
1196 ac_prev=infodir ;;
1197 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1198 infodir=$ac_optarg ;;
1200 -libdir | --libdir | --libdi | --libd)
1201 ac_prev=libdir ;;
1202 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1203 libdir=$ac_optarg ;;
1205 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1206 | --libexe | --libex | --libe)
1207 ac_prev=libexecdir ;;
1208 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1209 | --libexe=* | --libex=* | --libe=*)
1210 libexecdir=$ac_optarg ;;
1212 -localedir | --localedir | --localedi | --localed | --locale)
1213 ac_prev=localedir ;;
1214 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1215 localedir=$ac_optarg ;;
1217 -localstatedir | --localstatedir | --localstatedi | --localstated \
1218 | --localstate | --localstat | --localsta | --localst | --locals)
1219 ac_prev=localstatedir ;;
1220 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1221 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1222 localstatedir=$ac_optarg ;;
1224 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1225 ac_prev=mandir ;;
1226 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1227 mandir=$ac_optarg ;;
1229 -nfp | --nfp | --nf)
1230 # Obsolete; use --without-fp.
1231 with_fp=no ;;
1233 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1234 | --no-cr | --no-c | -n)
1235 no_create=yes ;;
1237 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1238 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1239 no_recursion=yes ;;
1241 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1242 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1243 | --oldin | --oldi | --old | --ol | --o)
1244 ac_prev=oldincludedir ;;
1245 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1246 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1247 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1248 oldincludedir=$ac_optarg ;;
1250 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1251 ac_prev=prefix ;;
1252 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1253 prefix=$ac_optarg ;;
1255 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1256 | --program-pre | --program-pr | --program-p)
1257 ac_prev=program_prefix ;;
1258 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1259 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1260 program_prefix=$ac_optarg ;;
1262 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1263 | --program-suf | --program-su | --program-s)
1264 ac_prev=program_suffix ;;
1265 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1266 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1267 program_suffix=$ac_optarg ;;
1269 -program-transform-name | --program-transform-name \
1270 | --program-transform-nam | --program-transform-na \
1271 | --program-transform-n | --program-transform- \
1272 | --program-transform | --program-transfor \
1273 | --program-transfo | --program-transf \
1274 | --program-trans | --program-tran \
1275 | --progr-tra | --program-tr | --program-t)
1276 ac_prev=program_transform_name ;;
1277 -program-transform-name=* | --program-transform-name=* \
1278 | --program-transform-nam=* | --program-transform-na=* \
1279 | --program-transform-n=* | --program-transform-=* \
1280 | --program-transform=* | --program-transfor=* \
1281 | --program-transfo=* | --program-transf=* \
1282 | --program-trans=* | --program-tran=* \
1283 | --progr-tra=* | --program-tr=* | --program-t=*)
1284 program_transform_name=$ac_optarg ;;
1286 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1287 ac_prev=pdfdir ;;
1288 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1289 pdfdir=$ac_optarg ;;
1291 -psdir | --psdir | --psdi | --psd | --ps)
1292 ac_prev=psdir ;;
1293 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1294 psdir=$ac_optarg ;;
1296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1297 | -silent | --silent | --silen | --sile | --sil)
1298 silent=yes ;;
1300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1301 ac_prev=sbindir ;;
1302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1303 | --sbi=* | --sb=*)
1304 sbindir=$ac_optarg ;;
1306 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1308 | --sharedst | --shareds | --shared | --share | --shar \
1309 | --sha | --sh)
1310 ac_prev=sharedstatedir ;;
1311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1314 | --sha=* | --sh=*)
1315 sharedstatedir=$ac_optarg ;;
1317 -site | --site | --sit)
1318 ac_prev=site ;;
1319 -site=* | --site=* | --sit=*)
1320 site=$ac_optarg ;;
1322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1323 ac_prev=srcdir ;;
1324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1325 srcdir=$ac_optarg ;;
1327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1328 | --syscon | --sysco | --sysc | --sys | --sy)
1329 ac_prev=sysconfdir ;;
1330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1332 sysconfdir=$ac_optarg ;;
1334 -target | --target | --targe | --targ | --tar | --ta | --t)
1335 ac_prev=target_alias ;;
1336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1337 target_alias=$ac_optarg ;;
1339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1340 verbose=yes ;;
1342 -version | --version | --versio | --versi | --vers | -V)
1343 ac_init_version=: ;;
1345 -with-* | --with-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349 as_fn_error $? "invalid package name: $ac_useropt"
1350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1354 "with_$ac_useropt"
1355 "*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval with_$ac_useropt=\$ac_optarg ;;
1361 -without-* | --without-*)
1362 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1365 as_fn_error $? "invalid package name: $ac_useropt"
1366 ac_useropt_orig=$ac_useropt
1367 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368 case $ac_user_opts in
1370 "with_$ac_useropt"
1371 "*) ;;
1372 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1373 ac_unrecognized_sep=', ';;
1374 esac
1375 eval with_$ac_useropt=no ;;
1377 --x)
1378 # Obsolete; use --with-x.
1379 with_x=yes ;;
1381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1382 | --x-incl | --x-inc | --x-in | --x-i)
1383 ac_prev=x_includes ;;
1384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1386 x_includes=$ac_optarg ;;
1388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1390 ac_prev=x_libraries ;;
1391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1393 x_libraries=$ac_optarg ;;
1395 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1396 Try \`$0 --help' for more information"
1399 *=*)
1400 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1401 # Reject names that are not valid shell variable names.
1402 case $ac_envvar in #(
1403 '' | [0-9]* | *[!_$as_cr_alnum]* )
1404 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1405 esac
1406 eval $ac_envvar=\$ac_optarg
1407 export $ac_envvar ;;
1410 # FIXME: should be removed in autoconf 3.0.
1411 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1412 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1413 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1414 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1417 esac
1418 done
1420 if test -n "$ac_prev"; then
1421 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1422 as_fn_error $? "missing argument to $ac_option"
1425 if test -n "$ac_unrecognized_opts"; then
1426 case $enable_option_checking in
1427 no) ;;
1428 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1429 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1430 esac
1433 # Check all directory arguments for consistency.
1434 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1435 datadir sysconfdir sharedstatedir localstatedir includedir \
1436 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1437 libdir localedir mandir
1439 eval ac_val=\$$ac_var
1440 # Remove trailing slashes.
1441 case $ac_val in
1442 */ )
1443 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1444 eval $ac_var=\$ac_val;;
1445 esac
1446 # Be sure to have absolute directory names.
1447 case $ac_val in
1448 [\\/$]* | ?:[\\/]* ) continue;;
1449 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1450 esac
1451 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1452 done
1454 # There might be people who depend on the old broken behavior: `$host'
1455 # used to hold the argument of --host etc.
1456 # FIXME: To remove some day.
1457 build=$build_alias
1458 host=$host_alias
1459 target=$target_alias
1461 # FIXME: To remove some day.
1462 if test "x$host_alias" != x; then
1463 if test "x$build_alias" = x; then
1464 cross_compiling=maybe
1465 elif test "x$build_alias" != "x$host_alias"; then
1466 cross_compiling=yes
1470 ac_tool_prefix=
1471 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1473 test "$silent" = yes && exec 6>/dev/null
1476 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1477 ac_ls_di=`ls -di .` &&
1478 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1479 as_fn_error $? "working directory cannot be determined"
1480 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1481 as_fn_error $? "pwd does not report name of working directory"
1484 # Find the source files, if location was not specified.
1485 if test -z "$srcdir"; then
1486 ac_srcdir_defaulted=yes
1487 # Try the directory containing this script, then the parent directory.
1488 ac_confdir=`$as_dirname -- "$as_myself" ||
1489 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1490 X"$as_myself" : 'X\(//\)[^/]' \| \
1491 X"$as_myself" : 'X\(//\)$' \| \
1492 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1493 $as_echo X"$as_myself" |
1494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1495 s//\1/
1498 /^X\(\/\/\)[^/].*/{
1499 s//\1/
1502 /^X\(\/\/\)$/{
1503 s//\1/
1506 /^X\(\/\).*/{
1507 s//\1/
1510 s/.*/./; q'`
1511 srcdir=$ac_confdir
1512 if test ! -r "$srcdir/$ac_unique_file"; then
1513 srcdir=..
1515 else
1516 ac_srcdir_defaulted=no
1518 if test ! -r "$srcdir/$ac_unique_file"; then
1519 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1520 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1522 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1523 ac_abs_confdir=`(
1524 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1525 pwd)`
1526 # When building in place, set srcdir=.
1527 if test "$ac_abs_confdir" = "$ac_pwd"; then
1528 srcdir=.
1530 # Remove unnecessary trailing slashes from srcdir.
1531 # Double slashes in file names in object file debugging info
1532 # mess up M-x gdb in Emacs.
1533 case $srcdir in
1534 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1535 esac
1536 for ac_var in $ac_precious_vars; do
1537 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1538 eval ac_env_${ac_var}_value=\$${ac_var}
1539 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1540 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1541 done
1544 # Report the --help message.
1546 if test "$ac_init_help" = "long"; then
1547 # Omit some internal or obsolete options to make the list less imposing.
1548 # This message is too long to be a string in the A/UX 3.1 sh.
1549 cat <<_ACEOF
1550 \`configure' configures this package to adapt to many kinds of systems.
1552 Usage: $0 [OPTION]... [VAR=VALUE]...
1554 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1555 VAR=VALUE. See below for descriptions of some of the useful variables.
1557 Defaults for the options are specified in brackets.
1559 Configuration:
1560 -h, --help display this help and exit
1561 --help=short display options specific to this package
1562 --help=recursive display the short help of all the included packages
1563 -V, --version display version information and exit
1564 -q, --quiet, --silent do not print \`checking ...' messages
1565 --cache-file=FILE cache test results in FILE [disabled]
1566 -C, --config-cache alias for \`--cache-file=config.cache'
1567 -n, --no-create do not create output files
1568 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1570 Installation directories:
1571 --prefix=PREFIX install architecture-independent files in PREFIX
1572 [$ac_default_prefix]
1573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1574 [PREFIX]
1576 By default, \`make install' will install all the files in
1577 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1578 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1579 for instance \`--prefix=\$HOME'.
1581 For better control, use the options below.
1583 Fine tuning of the installation directories:
1584 --bindir=DIR user executables [EPREFIX/bin]
1585 --sbindir=DIR system admin executables [EPREFIX/sbin]
1586 --libexecdir=DIR program executables [EPREFIX/libexec]
1587 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1588 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1589 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1590 --libdir=DIR object code libraries [EPREFIX/lib]
1591 --includedir=DIR C header files [PREFIX/include]
1592 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1593 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1594 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1595 --infodir=DIR info documentation [DATAROOTDIR/info]
1596 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1597 --mandir=DIR man documentation [DATAROOTDIR/man]
1598 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1599 --htmldir=DIR html documentation [DOCDIR]
1600 --dvidir=DIR dvi documentation [DOCDIR]
1601 --pdfdir=DIR pdf documentation [DOCDIR]
1602 --psdir=DIR ps documentation [DOCDIR]
1603 _ACEOF
1605 cat <<\_ACEOF
1607 Program names:
1608 --program-prefix=PREFIX prepend PREFIX to installed program names
1609 --program-suffix=SUFFIX append SUFFIX to installed program names
1610 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1612 X features:
1613 --x-includes=DIR X include files are in DIR
1614 --x-libraries=DIR X library files are in DIR
1616 System types:
1617 --build=BUILD configure for building on BUILD [guessed]
1618 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1619 --target=TARGET configure for building compilers for TARGET [HOST]
1620 _ACEOF
1623 if test -n "$ac_init_help"; then
1625 cat <<\_ACEOF
1627 Optional Features:
1628 --disable-option-checking ignore unrecognized --enable/--with options
1629 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1630 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1631 --enable-maintainer-mode
1632 enable make rules and dependencies not useful (and
1633 sometimes confusing) to the casual installer
1634 --enable-plugins Enable support for plugins
1635 --disable-largefile omit support for large files
1636 --enable-shared[=PKGS] build shared libraries [default=yes]
1637 --enable-static[=PKGS] build static libraries [default=yes]
1638 --enable-fast-install[=PKGS]
1639 optimize for fast installation [default=yes]
1640 --disable-libtool-lock avoid locking (might break parallel builds)
1641 --enable-threading include support for parallel processing of data
1642 (yes/no)
1643 --disable-rpath do not hardcode runtime library paths
1644 --disable-nls do not use Native Language Support
1645 --enable-targets=TARGETS
1646 alternative target configurations
1647 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1648 --enable-tui enable full-screen terminal user interface (TUI)
1649 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1650 --enable-profiling enable profiling of GDB
1651 --enable-codesign=CERT sign gdb with 'codesign -s CERT'
1652 --enable-source-highlight
1653 enable source-highlight for source listings
1654 --enable-werror treat compile warnings as errors
1655 --enable-build-warnings enable build-time compiler warnings if gcc is used
1656 --enable-gdb-build-warnings
1657 enable GDB specific build-time compiler warnings if
1658 gcc is used
1659 --enable-ubsan enable undefined behavior sanitizer (auto/yes/no)
1660 --enable-sim link gdb with simulator
1661 --enable-libbacktrace use libbacktrace to write a backtrace after a fatal
1662 signal.
1663 --enable-libctf Handle .ctf type-info sections [default=yes]
1664 --enable-unit-tests Enable the inclusion of unit tests when compiling
1667 Optional Packages:
1668 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1669 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1670 --with-pic try to use only PIC/non-PIC objects [default=use
1671 both]
1672 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1673 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1674 --with-gnu-ld assume the C compiler uses GNU ld default=no
1675 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1676 --without-libipt-prefix don't search for libipt in includedir and libdir
1677 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1678 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1679 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1680 --without-libxxhash-prefix don't search for libxxhash in includedir and libdir
1681 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1682 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1683 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1684 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1685 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1686 --without-libintl-prefix don't search for libintl in includedir and libdir
1687 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1688 --with-separate-debug-dir=PATH
1689 look for global separate debug info in this path
1690 [LIBDIR/debug]
1691 --with-additional-debug-dirs=PATHs
1692 colon-separated list of additional directories to
1693 search for separate debug info
1694 --with-gdb-datadir=PATH look for global separate data files in this path
1695 [DATADIR/gdb]
1696 --with-relocated-sources=PATH
1697 automatically relocate this path for source files
1698 --with-auto-load-dir=PATH
1699 directories from which to load auto-loaded scripts
1700 [$debugdir:$datadir/auto-load]
1701 --with-auto-load-safe-path=PATH
1702 directories safe to hold auto-loaded files
1703 [--with-auto-load-dir]
1704 --without-auto-load-safe-path
1705 do not restrict auto-loaded files locations
1706 --with-amd-dbgapi support for the amd-dbgapi target (yes / no / auto)
1707 --with-debuginfod Enable debuginfo lookups with debuginfod
1708 (auto/yes/no)
1709 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1710 --with-curses use the curses library instead of the termcap
1711 library
1712 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1713 --with-bugurl=URL Direct users to URL to report a bug
1714 --with-system-zlib use installed libz
1715 --with-zstd support zstd compressed debug sections
1716 (default=auto)
1717 --with-iconv-bin=PATH specify where to find the iconv program
1718 --with-system-readline use installed readline library
1719 --with-jit-reader-dir=PATH
1720 directory to load the JIT readers from
1721 --with-expat include expat support (auto/yes/no)
1722 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1723 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1724 --with-libexpat-type=TYPE type of library to search for (auto/static/shared)
1725 --with-python[=PYTHON] include python support
1726 (auto/yes/no/<python-program>)
1727 --with-python-libdir[=DIR]
1728 search for python's libraries in DIR
1729 --with-guile[=GUILE] include guile support
1730 (auto/yes/no/<guile-version>/<pkg-config-program>)
1731 --with-sysroot[=DIR] search for usr/lib et al within DIR
1732 --with-system-gdbinit=PATH
1733 automatically load a system-wide gdbinit file
1734 --with-system-gdbinit-dir=PATH
1735 automatically load system-wide gdbinit files from
1736 this directory
1737 --with-lzma support lzma compression (auto/yes/no)
1738 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1739 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1740 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1741 --with-tcl directory containing tcl configuration (tclConfig.sh)
1742 --with-tk directory containing tk configuration (tkConfig.sh)
1743 --with-x use the X Window System
1744 --with-babeltrace include babeltrace support (auto/yes/no)
1745 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1746 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1747 --with-libbabeltrace-type=TYPE type of library to search for (auto/static/shared)
1749 Some influential environment variables:
1750 CC C compiler command
1751 CFLAGS C compiler flags
1752 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1753 nonstandard directory <lib dir>
1754 LIBS libraries to pass to the linker, e.g. -l<library>
1755 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1756 you have headers in a nonstandard directory <include dir>
1757 CXX C++ compiler command
1758 CXXFLAGS C++ compiler flags
1759 CPP C preprocessor
1760 CXXCPP C++ preprocessor
1761 PKG_CONFIG path to pkg-config utility
1762 PKG_CONFIG_PATH
1763 directories to add to pkg-config's search path
1764 PKG_CONFIG_LIBDIR
1765 path overriding pkg-config's built-in search path
1766 MAKEINFO Parent configure detects if it is of sufficient version.
1767 MAKEINFOFLAGS
1768 Parameters for MAKEINFO.
1769 AMD_DBGAPI_CFLAGS
1770 C compiler flags for AMD_DBGAPI, overriding pkg-config
1771 AMD_DBGAPI_LIBS
1772 linker flags for AMD_DBGAPI, overriding pkg-config
1773 DEBUGINFOD_CFLAGS
1774 C compiler flags for DEBUGINFOD, overriding pkg-config
1775 DEBUGINFOD_LIBS
1776 linker flags for DEBUGINFOD, overriding pkg-config
1777 YACC The `Yet Another Compiler Compiler' implementation to use.
1778 Defaults to the first program found out of: `bison -y', `byacc',
1779 `yacc'.
1780 YFLAGS The list of arguments that will be passed by default to $YACC.
1781 This script will default YFLAGS to the empty string to avoid a
1782 default value of `-d' given by some make applications.
1783 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1784 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1785 GMPLIBS How to link GMP
1786 GMPINC How to find GMP include files
1787 XMKMF Path to xmkmf, Makefile generator for X Window System
1789 Use these variables to override the choices made by `configure' or to help
1790 it to find libraries and programs with nonstandard names/locations.
1792 Report bugs to the package provider.
1793 _ACEOF
1794 ac_status=$?
1797 if test "$ac_init_help" = "recursive"; then
1798 # If there are subdirs, report their specific --help.
1799 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1800 test -d "$ac_dir" ||
1801 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1802 continue
1803 ac_builddir=.
1805 case "$ac_dir" in
1806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1808 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1809 # A ".." for each directory in $ac_dir_suffix.
1810 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1811 case $ac_top_builddir_sub in
1812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1814 esac ;;
1815 esac
1816 ac_abs_top_builddir=$ac_pwd
1817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1818 # for backward compatibility:
1819 ac_top_builddir=$ac_top_build_prefix
1821 case $srcdir in
1822 .) # We are building in place.
1823 ac_srcdir=.
1824 ac_top_srcdir=$ac_top_builddir_sub
1825 ac_abs_top_srcdir=$ac_pwd ;;
1826 [\\/]* | ?:[\\/]* ) # Absolute name.
1827 ac_srcdir=$srcdir$ac_dir_suffix;
1828 ac_top_srcdir=$srcdir
1829 ac_abs_top_srcdir=$srcdir ;;
1830 *) # Relative name.
1831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1832 ac_top_srcdir=$ac_top_build_prefix$srcdir
1833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1834 esac
1835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1837 cd "$ac_dir" || { ac_status=$?; continue; }
1838 # Check for guested configure.
1839 if test -f "$ac_srcdir/configure.gnu"; then
1840 echo &&
1841 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1842 elif test -f "$ac_srcdir/configure"; then
1843 echo &&
1844 $SHELL "$ac_srcdir/configure" --help=recursive
1845 else
1846 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1847 fi || ac_status=$?
1848 cd "$ac_pwd" || { ac_status=$?; break; }
1849 done
1852 test -n "$ac_init_help" && exit $ac_status
1853 if $ac_init_version; then
1854 cat <<\_ACEOF
1855 configure
1856 generated by GNU Autoconf 2.69
1858 Copyright (C) 2012 Free Software Foundation, Inc.
1859 This configure script is free software; the Free Software Foundation
1860 gives unlimited permission to copy, distribute and modify it.
1861 _ACEOF
1862 exit
1865 ## ------------------------ ##
1866 ## Autoconf initialization. ##
1867 ## ------------------------ ##
1869 # ac_fn_c_try_compile LINENO
1870 # --------------------------
1871 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_compile ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 rm -f conftest.$ac_objext
1876 if { { ac_try="$ac_compile"
1877 case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_compile") 2>conftest.err
1884 ac_status=$?
1885 if test -s conftest.err; then
1886 grep -v '^ *+' conftest.err >conftest.er1
1887 cat conftest.er1 >&5
1888 mv -f conftest.er1 conftest.err
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && {
1892 test -z "$ac_c_werror_flag" ||
1893 test ! -s conftest.err
1894 } && test -s conftest.$ac_objext; then :
1895 ac_retval=0
1896 else
1897 $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1900 ac_retval=1
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1905 } # ac_fn_c_try_compile
1907 # ac_fn_cxx_try_compile LINENO
1908 # ----------------------------
1909 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_cxx_try_compile ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 rm -f conftest.$ac_objext
1914 if { { ac_try="$ac_compile"
1915 case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_compile") 2>conftest.err
1922 ac_status=$?
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && {
1930 test -z "$ac_cxx_werror_flag" ||
1931 test ! -s conftest.err
1932 } && test -s conftest.$ac_objext; then :
1933 ac_retval=0
1934 else
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1938 ac_retval=1
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1943 } # ac_fn_cxx_try_compile
1945 # ac_fn_c_try_cpp LINENO
1946 # ----------------------
1947 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_c_try_cpp ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if { { ac_try="$ac_cpp conftest.$ac_ext"
1952 case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959 ac_status=$?
1960 if test -s conftest.err; then
1961 grep -v '^ *+' conftest.err >conftest.er1
1962 cat conftest.er1 >&5
1963 mv -f conftest.er1 conftest.err
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } > conftest.i && {
1967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1968 test ! -s conftest.err
1969 }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1975 ac_retval=1
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1980 } # ac_fn_c_try_cpp
1982 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1983 # -------------------------------------------------------
1984 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1985 # the include files in INCLUDES and setting the cache variable VAR
1986 # accordingly.
1987 ac_fn_c_check_header_mongrel ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if eval \${$3+:} false; then :
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1996 eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 else
2000 # Is the header compilable?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2002 $as_echo_n "checking $2 usability... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 ac_header_compiler=yes
2010 else
2011 ac_header_compiler=no
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2015 $as_echo "$ac_header_compiler" >&6; }
2017 # Is the header present?
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2019 $as_echo_n "checking $2 presence... " >&6; }
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 #include <$2>
2023 _ACEOF
2024 if ac_fn_c_try_cpp "$LINENO"; then :
2025 ac_header_preproc=yes
2026 else
2027 ac_header_preproc=no
2029 rm -f conftest.err conftest.i conftest.$ac_ext
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2031 $as_echo "$ac_header_preproc" >&6; }
2033 # So? What about this header?
2034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2035 yes:no: )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2037 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2041 no:yes:* )
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2043 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2045 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2047 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2049 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053 esac
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2058 else
2059 eval "$3=\$ac_header_compiler"
2061 eval ac_res=\$$3
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_header_mongrel
2069 # ac_fn_c_try_run LINENO
2070 # ----------------------
2071 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2072 # that executables *can* be run.
2073 ac_fn_c_try_run ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 if { { ac_try="$ac_link"
2077 case "(($ac_try" in
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_link") 2>&5
2084 ac_status=$?
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2087 { { case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090 esac
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_try") 2>&5
2094 ac_status=$?
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; }; }; then :
2097 ac_retval=0
2098 else
2099 $as_echo "$as_me: program exited with status $ac_status" >&5
2100 $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2103 ac_retval=$ac_status
2105 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 as_fn_set_status $ac_retval
2109 } # ac_fn_c_try_run
2111 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2112 # -------------------------------------------------------
2113 # Tests whether HEADER exists and can be compiled using the include files in
2114 # INCLUDES, setting the cache variable VAR accordingly.
2115 ac_fn_c_check_header_compile ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119 $as_echo_n "checking for $2... " >&6; }
2120 if eval \${$3+:} false; then :
2121 $as_echo_n "(cached) " >&6
2122 else
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2126 #include <$2>
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 eval "$3=yes"
2130 else
2131 eval "$3=no"
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 eval ac_res=\$$3
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 } # ac_fn_c_check_header_compile
2142 # ac_fn_c_try_link LINENO
2143 # -----------------------
2144 # Try to link conftest.$ac_ext, and return whether this succeeded.
2145 ac_fn_c_try_link ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 rm -f conftest.$ac_objext conftest$ac_exeext
2149 if { { ac_try="$ac_link"
2150 case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153 esac
2154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_link") 2>conftest.err
2157 ac_status=$?
2158 if test -s conftest.err; then
2159 grep -v '^ *+' conftest.err >conftest.er1
2160 cat conftest.er1 >&5
2161 mv -f conftest.er1 conftest.err
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; } && {
2165 test -z "$ac_c_werror_flag" ||
2166 test ! -s conftest.err
2167 } && test -s conftest$ac_exeext && {
2168 test "$cross_compiling" = yes ||
2169 test -x conftest$ac_exeext
2170 }; then :
2171 ac_retval=0
2172 else
2173 $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2176 ac_retval=1
2178 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2179 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2180 # interfere with the next link command; also delete a directory that is
2181 # left behind by Apple's compiler. We do this before executing the actions.
2182 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184 as_fn_set_status $ac_retval
2186 } # ac_fn_c_try_link
2188 # ac_fn_c_check_func LINENO FUNC VAR
2189 # ----------------------------------
2190 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2191 ac_fn_c_check_func ()
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2195 $as_echo_n "checking for $2... " >&6; }
2196 if eval \${$3+:} false; then :
2197 $as_echo_n "(cached) " >&6
2198 else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2203 #define $2 innocuous_$2
2205 /* System header to define __stub macros and hopefully few prototypes,
2206 which can conflict with char $2 (); below.
2207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2208 <limits.h> exists even on freestanding compilers. */
2210 #ifdef __STDC__
2211 # include <limits.h>
2212 #else
2213 # include <assert.h>
2214 #endif
2216 #undef $2
2218 /* Override any GCC internal prototype to avoid an error.
2219 Use char because int might match the return type of a GCC
2220 builtin and then its argument prototype would still apply. */
2221 #ifdef __cplusplus
2222 extern "C"
2223 #endif
2224 char $2 ();
2225 /* The GNU C library defines this for functions which it implements
2226 to always fail with ENOSYS. Some functions are actually named
2227 something starting with __ and the normal name is an alias. */
2228 #if defined __stub_$2 || defined __stub___$2
2229 choke me
2230 #endif
2233 main ()
2235 return $2 ();
2237 return 0;
2239 _ACEOF
2240 if ac_fn_c_try_link "$LINENO"; then :
2241 eval "$3=yes"
2242 else
2243 eval "$3=no"
2245 rm -f core conftest.err conftest.$ac_objext \
2246 conftest$ac_exeext conftest.$ac_ext
2248 eval ac_res=\$$3
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250 $as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253 } # ac_fn_c_check_func
2255 # ac_fn_cxx_try_cpp LINENO
2256 # ------------------------
2257 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2258 ac_fn_cxx_try_cpp ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 if { { ac_try="$ac_cpp conftest.$ac_ext"
2262 case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2265 esac
2266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2267 $as_echo "$ac_try_echo"; } >&5
2268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2269 ac_status=$?
2270 if test -s conftest.err; then
2271 grep -v '^ *+' conftest.err >conftest.er1
2272 cat conftest.er1 >&5
2273 mv -f conftest.er1 conftest.err
2275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2276 test $ac_status = 0; } > conftest.i && {
2277 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2278 test ! -s conftest.err
2279 }; then :
2280 ac_retval=0
2281 else
2282 $as_echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2285 ac_retval=1
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288 as_fn_set_status $ac_retval
2290 } # ac_fn_cxx_try_cpp
2292 # ac_fn_cxx_try_link LINENO
2293 # -------------------------
2294 # Try to link conftest.$ac_ext, and return whether this succeeded.
2295 ac_fn_cxx_try_link ()
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 rm -f conftest.$ac_objext conftest$ac_exeext
2299 if { { ac_try="$ac_link"
2300 case "(($ac_try" in
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2303 esac
2304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2305 $as_echo "$ac_try_echo"; } >&5
2306 (eval "$ac_link") 2>conftest.err
2307 ac_status=$?
2308 if test -s conftest.err; then
2309 grep -v '^ *+' conftest.err >conftest.er1
2310 cat conftest.er1 >&5
2311 mv -f conftest.er1 conftest.err
2313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2314 test $ac_status = 0; } && {
2315 test -z "$ac_cxx_werror_flag" ||
2316 test ! -s conftest.err
2317 } && test -s conftest$ac_exeext && {
2318 test "$cross_compiling" = yes ||
2319 test -x conftest$ac_exeext
2320 }; then :
2321 ac_retval=0
2322 else
2323 $as_echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2326 ac_retval=1
2328 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2329 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2330 # interfere with the next link command; also delete a directory that is
2331 # left behind by Apple's compiler. We do this before executing the actions.
2332 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2333 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2334 as_fn_set_status $ac_retval
2336 } # ac_fn_cxx_try_link
2338 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2339 # -------------------------------------------
2340 # Tests whether TYPE exists after having included INCLUDES, setting cache
2341 # variable VAR accordingly.
2342 ac_fn_c_check_type ()
2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2346 $as_echo_n "checking for $2... " >&6; }
2347 if eval \${$3+:} false; then :
2348 $as_echo_n "(cached) " >&6
2349 else
2350 eval "$3=no"
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2355 main ()
2357 if (sizeof ($2))
2358 return 0;
2360 return 0;
2362 _ACEOF
2363 if ac_fn_c_try_compile "$LINENO"; then :
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2368 main ()
2370 if (sizeof (($2)))
2371 return 0;
2373 return 0;
2375 _ACEOF
2376 if ac_fn_c_try_compile "$LINENO"; then :
2378 else
2379 eval "$3=yes"
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 eval ac_res=\$$3
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387 $as_echo "$ac_res" >&6; }
2388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2390 } # ac_fn_c_check_type
2392 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2393 # ---------------------------------------------
2394 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2395 # accordingly.
2396 ac_fn_c_check_decl ()
2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399 as_decl_name=`echo $2|sed 's/ *(.*//'`
2400 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2402 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2403 if eval \${$3+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2410 main ()
2412 #ifndef $as_decl_name
2413 #ifdef __cplusplus
2414 (void) $as_decl_use;
2415 #else
2416 (void) $as_decl_name;
2417 #endif
2418 #endif
2421 return 0;
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425 eval "$3=yes"
2426 else
2427 eval "$3=no"
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 eval ac_res=\$$3
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433 $as_echo "$ac_res" >&6; }
2434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436 } # ac_fn_c_check_decl
2438 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2439 # ----------------------------------------------------
2440 # Tries to find if the field MEMBER exists in type AGGR, after including
2441 # INCLUDES, setting cache variable VAR accordingly.
2442 ac_fn_c_check_member ()
2444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2446 $as_echo_n "checking for $2.$3... " >&6; }
2447 if eval \${$4+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449 else
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h. */
2454 main ()
2456 static $2 ac_aggr;
2457 if (ac_aggr.$3)
2458 return 0;
2460 return 0;
2462 _ACEOF
2463 if ac_fn_c_try_compile "$LINENO"; then :
2464 eval "$4=yes"
2465 else
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2470 main ()
2472 static $2 ac_aggr;
2473 if (sizeof ac_aggr.$3)
2474 return 0;
2476 return 0;
2478 _ACEOF
2479 if ac_fn_c_try_compile "$LINENO"; then :
2480 eval "$4=yes"
2481 else
2482 eval "$4=no"
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 eval ac_res=\$$4
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2490 $as_echo "$ac_res" >&6; }
2491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2493 } # ac_fn_c_check_member
2495 # ac_fn_cxx_check_func LINENO FUNC VAR
2496 # ------------------------------------
2497 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2498 ac_fn_cxx_check_func ()
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2502 $as_echo_n "checking for $2... " >&6; }
2503 if eval \${$3+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2508 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2510 #define $2 innocuous_$2
2512 /* System header to define __stub macros and hopefully few prototypes,
2513 which can conflict with char $2 (); below.
2514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2515 <limits.h> exists even on freestanding compilers. */
2517 #ifdef __STDC__
2518 # include <limits.h>
2519 #else
2520 # include <assert.h>
2521 #endif
2523 #undef $2
2525 /* Override any GCC internal prototype to avoid an error.
2526 Use char because int might match the return type of a GCC
2527 builtin and then its argument prototype would still apply. */
2528 #ifdef __cplusplus
2529 extern "C"
2530 #endif
2531 char $2 ();
2532 /* The GNU C library defines this for functions which it implements
2533 to always fail with ENOSYS. Some functions are actually named
2534 something starting with __ and the normal name is an alias. */
2535 #if defined __stub_$2 || defined __stub___$2
2536 choke me
2537 #endif
2540 main ()
2542 return $2 ();
2544 return 0;
2546 _ACEOF
2547 if ac_fn_cxx_try_link "$LINENO"; then :
2548 eval "$3=yes"
2549 else
2550 eval "$3=no"
2552 rm -f core conftest.err conftest.$ac_objext \
2553 conftest$ac_exeext conftest.$ac_ext
2555 eval ac_res=\$$3
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 $as_echo "$ac_res" >&6; }
2558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2560 } # ac_fn_cxx_check_func
2562 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2563 # --------------------------------------------
2564 # Tries to find the compile-time value of EXPR in a program that includes
2565 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2566 # computed
2567 ac_fn_c_compute_int ()
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 if test "$cross_compiling" = yes; then
2571 # Depending upon the size, compute the lo and hi bounds.
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2576 main ()
2578 static int test_array [1 - 2 * !(($2) >= 0)];
2579 test_array [0] = 0;
2580 return test_array [0];
2583 return 0;
2585 _ACEOF
2586 if ac_fn_c_try_compile "$LINENO"; then :
2587 ac_lo=0 ac_mid=0
2588 while :; do
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2593 main ()
2595 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2596 test_array [0] = 0;
2597 return test_array [0];
2600 return 0;
2602 _ACEOF
2603 if ac_fn_c_try_compile "$LINENO"; then :
2604 ac_hi=$ac_mid; break
2605 else
2606 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2607 if test $ac_lo -le $ac_mid; then
2608 ac_lo= ac_hi=
2609 break
2611 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 done
2615 else
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2620 main ()
2622 static int test_array [1 - 2 * !(($2) < 0)];
2623 test_array [0] = 0;
2624 return test_array [0];
2627 return 0;
2629 _ACEOF
2630 if ac_fn_c_try_compile "$LINENO"; then :
2631 ac_hi=-1 ac_mid=-1
2632 while :; do
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2637 main ()
2639 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2640 test_array [0] = 0;
2641 return test_array [0];
2644 return 0;
2646 _ACEOF
2647 if ac_fn_c_try_compile "$LINENO"; then :
2648 ac_lo=$ac_mid; break
2649 else
2650 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2651 if test $ac_mid -le $ac_hi; then
2652 ac_lo= ac_hi=
2653 break
2655 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 done
2659 else
2660 ac_lo= ac_hi=
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 # Binary search between lo and hi bounds.
2666 while test "x$ac_lo" != "x$ac_hi"; do
2667 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2672 main ()
2674 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2675 test_array [0] = 0;
2676 return test_array [0];
2679 return 0;
2681 _ACEOF
2682 if ac_fn_c_try_compile "$LINENO"; then :
2683 ac_hi=$ac_mid
2684 else
2685 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 done
2689 case $ac_lo in #((
2690 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2691 '') ac_retval=1 ;;
2692 esac
2693 else
2694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h. */
2697 static long int longval () { return $2; }
2698 static unsigned long int ulongval () { return $2; }
2699 #include <stdio.h>
2700 #include <stdlib.h>
2702 main ()
2705 FILE *f = fopen ("conftest.val", "w");
2706 if (! f)
2707 return 1;
2708 if (($2) < 0)
2710 long int i = longval ();
2711 if (i != ($2))
2712 return 1;
2713 fprintf (f, "%ld", i);
2715 else
2717 unsigned long int i = ulongval ();
2718 if (i != ($2))
2719 return 1;
2720 fprintf (f, "%lu", i);
2722 /* Do not output a trailing newline, as this causes \r\n confusion
2723 on some platforms. */
2724 return ferror (f) || fclose (f) != 0;
2727 return 0;
2729 _ACEOF
2730 if ac_fn_c_try_run "$LINENO"; then :
2731 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2732 else
2733 ac_retval=1
2735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2736 conftest.$ac_objext conftest.beam conftest.$ac_ext
2737 rm -f conftest.val
2740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2741 as_fn_set_status $ac_retval
2743 } # ac_fn_c_compute_int
2744 cat >config.log <<_ACEOF
2745 This file contains any messages produced by compilers while
2746 running configure, to aid debugging if configure makes a mistake.
2748 It was created by $as_me, which was
2749 generated by GNU Autoconf 2.69. Invocation command line was
2751 $ $0 $@
2753 _ACEOF
2754 exec 5>>config.log
2756 cat <<_ASUNAME
2757 ## --------- ##
2758 ## Platform. ##
2759 ## --------- ##
2761 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2762 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2763 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2764 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2765 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2767 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2768 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2770 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2771 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2772 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2773 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2774 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2775 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2776 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2778 _ASUNAME
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 $as_echo "PATH: $as_dir"
2786 done
2787 IFS=$as_save_IFS
2789 } >&5
2791 cat >&5 <<_ACEOF
2794 ## ----------- ##
2795 ## Core tests. ##
2796 ## ----------- ##
2798 _ACEOF
2801 # Keep a trace of the command line.
2802 # Strip out --no-create and --no-recursion so they do not pile up.
2803 # Strip out --silent because we don't want to record it for future runs.
2804 # Also quote any args containing shell meta-characters.
2805 # Make two passes to allow for proper duplicate-argument suppression.
2806 ac_configure_args=
2807 ac_configure_args0=
2808 ac_configure_args1=
2809 ac_must_keep_next=false
2810 for ac_pass in 1 2
2812 for ac_arg
2814 case $ac_arg in
2815 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2817 | -silent | --silent | --silen | --sile | --sil)
2818 continue ;;
2819 *\'*)
2820 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2821 esac
2822 case $ac_pass in
2823 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2825 as_fn_append ac_configure_args1 " '$ac_arg'"
2826 if test $ac_must_keep_next = true; then
2827 ac_must_keep_next=false # Got value, back to normal.
2828 else
2829 case $ac_arg in
2830 *=* | --config-cache | -C | -disable-* | --disable-* \
2831 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2832 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2833 | -with-* | --with-* | -without-* | --without-* | --x)
2834 case "$ac_configure_args0 " in
2835 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2836 esac
2838 -* ) ac_must_keep_next=true ;;
2839 esac
2841 as_fn_append ac_configure_args " '$ac_arg'"
2843 esac
2844 done
2845 done
2846 { ac_configure_args0=; unset ac_configure_args0;}
2847 { ac_configure_args1=; unset ac_configure_args1;}
2849 # When interrupted or exit'd, cleanup temporary files, and complete
2850 # config.log. We remove comments because anyway the quotes in there
2851 # would cause problems or look ugly.
2852 # WARNING: Use '\'' to represent an apostrophe within the trap.
2853 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2854 trap 'exit_status=$?
2855 # Save into config.log some information that might help in debugging.
2857 echo
2859 $as_echo "## ---------------- ##
2860 ## Cache variables. ##
2861 ## ---------------- ##"
2862 echo
2863 # The following way of writing the cache mishandles newlines in values,
2865 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2866 eval ac_val=\$$ac_var
2867 case $ac_val in #(
2868 *${as_nl}*)
2869 case $ac_var in #(
2870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2872 esac
2873 case $ac_var in #(
2874 _ | IFS | as_nl) ;; #(
2875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2876 *) { eval $ac_var=; unset $ac_var;} ;;
2877 esac ;;
2878 esac
2879 done
2880 (set) 2>&1 |
2881 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2882 *${as_nl}ac_space=\ *)
2883 sed -n \
2884 "s/'\''/'\''\\\\'\'''\''/g;
2885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2886 ;; #(
2888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2890 esac |
2891 sort
2893 echo
2895 $as_echo "## ----------------- ##
2896 ## Output variables. ##
2897 ## ----------------- ##"
2898 echo
2899 for ac_var in $ac_subst_vars
2901 eval ac_val=\$$ac_var
2902 case $ac_val in
2903 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2904 esac
2905 $as_echo "$ac_var='\''$ac_val'\''"
2906 done | sort
2907 echo
2909 if test -n "$ac_subst_files"; then
2910 $as_echo "## ------------------- ##
2911 ## File substitutions. ##
2912 ## ------------------- ##"
2913 echo
2914 for ac_var in $ac_subst_files
2916 eval ac_val=\$$ac_var
2917 case $ac_val in
2918 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2919 esac
2920 $as_echo "$ac_var='\''$ac_val'\''"
2921 done | sort
2922 echo
2925 if test -s confdefs.h; then
2926 $as_echo "## ----------- ##
2927 ## confdefs.h. ##
2928 ## ----------- ##"
2929 echo
2930 cat confdefs.h
2931 echo
2933 test "$ac_signal" != 0 &&
2934 $as_echo "$as_me: caught signal $ac_signal"
2935 $as_echo "$as_me: exit $exit_status"
2936 } >&5
2937 rm -f core *.core core.conftest.* &&
2938 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2939 exit $exit_status
2941 for ac_signal in 1 2 13 15; do
2942 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2943 done
2944 ac_signal=0
2946 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2947 rm -f -r conftest* confdefs.h
2949 $as_echo "/* confdefs.h */" > confdefs.h
2951 # Predefined preprocessor variables.
2953 cat >>confdefs.h <<_ACEOF
2954 #define PACKAGE_NAME "$PACKAGE_NAME"
2955 _ACEOF
2957 cat >>confdefs.h <<_ACEOF
2958 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2959 _ACEOF
2961 cat >>confdefs.h <<_ACEOF
2962 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2963 _ACEOF
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE_STRING "$PACKAGE_STRING"
2967 _ACEOF
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2971 _ACEOF
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_URL "$PACKAGE_URL"
2975 _ACEOF
2978 # Let the site file select an alternate cache file if it wants to.
2979 # Prefer an explicitly selected file to automatically selected ones.
2980 ac_site_file1=NONE
2981 ac_site_file2=NONE
2982 if test -n "$CONFIG_SITE"; then
2983 # We do not want a PATH search for config.site.
2984 case $CONFIG_SITE in #((
2985 -*) ac_site_file1=./$CONFIG_SITE;;
2986 */*) ac_site_file1=$CONFIG_SITE;;
2987 *) ac_site_file1=./$CONFIG_SITE;;
2988 esac
2989 elif test "x$prefix" != xNONE; then
2990 ac_site_file1=$prefix/share/config.site
2991 ac_site_file2=$prefix/etc/config.site
2992 else
2993 ac_site_file1=$ac_default_prefix/share/config.site
2994 ac_site_file2=$ac_default_prefix/etc/config.site
2996 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2998 test "x$ac_site_file" = xNONE && continue
2999 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3001 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3002 sed 's/^/| /' "$ac_site_file" >&5
3003 . "$ac_site_file" \
3004 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006 as_fn_error $? "failed to load site script $ac_site_file
3007 See \`config.log' for more details" "$LINENO" 5; }
3009 done
3011 if test -r "$cache_file"; then
3012 # Some versions of bash will fail to source /dev/null (special files
3013 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3014 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3016 $as_echo "$as_me: loading cache $cache_file" >&6;}
3017 case $cache_file in
3018 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3019 *) . "./$cache_file";;
3020 esac
3022 else
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3024 $as_echo "$as_me: creating cache $cache_file" >&6;}
3025 >$cache_file
3028 as_fn_append ac_header_list " stdlib.h"
3029 as_fn_append ac_header_list " unistd.h"
3030 as_fn_append ac_header_list " sys/param.h"
3031 gt_needs="$gt_needs "
3032 # Check that the precious variables saved in the cache have kept the same
3033 # value.
3034 ac_cache_corrupted=false
3035 for ac_var in $ac_precious_vars; do
3036 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3037 eval ac_new_set=\$ac_env_${ac_var}_set
3038 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3039 eval ac_new_val=\$ac_env_${ac_var}_value
3040 case $ac_old_set,$ac_new_set in
3041 set,)
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3043 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3044 ac_cache_corrupted=: ;;
3045 ,set)
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3047 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3048 ac_cache_corrupted=: ;;
3049 ,);;
3051 if test "x$ac_old_val" != "x$ac_new_val"; then
3052 # differences in whitespace do not lead to failure.
3053 ac_old_val_w=`echo x $ac_old_val`
3054 ac_new_val_w=`echo x $ac_new_val`
3055 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3057 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3058 ac_cache_corrupted=:
3059 else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3061 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3062 eval $ac_var=\$ac_old_val
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3065 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3067 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3068 fi;;
3069 esac
3070 # Pass precious variables to config.status.
3071 if test "$ac_new_set" = set; then
3072 case $ac_new_val in
3073 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3074 *) ac_arg=$ac_var=$ac_new_val ;;
3075 esac
3076 case " $ac_configure_args " in
3077 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3078 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3079 esac
3081 done
3082 if $ac_cache_corrupted; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3086 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3087 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3089 ## -------------------- ##
3090 ## Main body of script. ##
3091 ## -------------------- ##
3093 ac_ext=c
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105 ac_config_headers="$ac_config_headers config.h:config.in"
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3109 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3110 # Check whether --enable-maintainer-mode was given.
3111 if test "${enable_maintainer_mode+set}" = set; then :
3112 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3113 else
3114 USE_MAINTAINER_MODE=no
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3118 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3119 if test $USE_MAINTAINER_MODE = yes; then
3120 MAINTAINER_MODE_TRUE=
3121 MAINTAINER_MODE_FALSE='#'
3122 else
3123 MAINTAINER_MODE_TRUE='#'
3124 MAINTAINER_MODE_FALSE=
3127 MAINT=$MAINTAINER_MODE_TRUE
3131 ac_ext=c
3132 ac_cpp='$CPP $CPPFLAGS'
3133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3175 if test -z "$ac_cv_prog_CC"; then
3176 ac_ct_CC=$CC
3177 # Extract the first word of "gcc", so it can be a program name with args.
3178 set dummy gcc; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -n "$ac_ct_CC"; then
3185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_CC="gcc"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3198 done
3199 done
3200 IFS=$as_save_IFS
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3213 if test "x$ac_ct_CC" = x; then
3214 CC=""
3215 else
3216 case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222 CC=$ac_ct_CC
3224 else
3225 CC="$ac_cv_prog_CC"
3228 if test -z "$CC"; then
3229 if test -n "$ac_tool_prefix"; then
3230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3231 set dummy ${ac_tool_prefix}cc; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_prog_CC+:} false; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC="$CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_CC="${ac_tool_prefix}cc"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 break 2
3251 done
3252 done
3253 IFS=$as_save_IFS
3257 CC=$ac_cv_prog_CC
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3269 if test -z "$CC"; then
3270 # Extract the first word of "cc", so it can be a program name with args.
3271 set dummy cc; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if ${ac_cv_prog_CC+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3279 else
3280 ac_prog_rejected=no
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3289 ac_prog_rejected=yes
3290 continue
3292 ac_cv_prog_CC="cc"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3296 done
3297 done
3298 IFS=$as_save_IFS
3300 if test $ac_prog_rejected = yes; then
3301 # We found a bogon in the path, so make sure we never use it.
3302 set dummy $ac_cv_prog_CC
3303 shift
3304 if test $# != 0; then
3305 # We chose a different compiler from the bogus one.
3306 # However, it has the same basename, so the bogon will be chosen
3307 # first if we set CC to just the basename; use the full file name.
3308 shift
3309 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3314 CC=$ac_cv_prog_CC
3315 if test -n "$CC"; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3317 $as_echo "$CC" >&6; }
3318 else
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3325 if test -z "$CC"; then
3326 if test -n "$ac_tool_prefix"; then
3327 for ac_prog in cl.exe
3329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC="$CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3350 done
3351 done
3352 IFS=$as_save_IFS
3356 CC=$ac_cv_prog_CC
3357 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3366 test -n "$CC" && break
3367 done
3369 if test -z "$CC"; then
3370 ac_ct_CC=$CC
3371 for ac_prog in cl.exe
3373 # Extract the first word of "$ac_prog", so it can be a program name with args.
3374 set dummy $ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 if test -n "$ac_ct_CC"; then
3381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_CC="$ac_prog"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3394 done
3395 done
3396 IFS=$as_save_IFS
3400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3401 if test -n "$ac_ct_CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3403 $as_echo "$ac_ct_CC" >&6; }
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3410 test -n "$ac_ct_CC" && break
3411 done
3413 if test "x$ac_ct_CC" = x; then
3414 CC=""
3415 else
3416 case $cross_compiling:$ac_tool_warned in
3417 yes:)
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3420 ac_tool_warned=yes ;;
3421 esac
3422 CC=$ac_ct_CC
3429 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "no acceptable C compiler found in \$PATH
3432 See \`config.log' for more details" "$LINENO" 5; }
3434 # Provide some information about the compiler.
3435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3436 set X $ac_compile
3437 ac_compiler=$2
3438 for ac_option in --version -v -V -qversion; do
3439 { { ac_try="$ac_compiler $ac_option >&5"
3440 case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3447 ac_status=$?
3448 if test -s conftest.err; then
3449 sed '10a\
3450 ... rest of stderr output deleted ...
3451 10q' conftest.err >conftest.er1
3452 cat conftest.er1 >&5
3454 rm -f conftest.er1 conftest.err
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }
3457 done
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3463 main ()
3467 return 0;
3469 _ACEOF
3470 ac_clean_files_save=$ac_clean_files
3471 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3472 # Try to create an executable without -o first, disregard a.out.
3473 # It will help us diagnose broken compilers, and finding out an intuition
3474 # of exeext.
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3476 $as_echo_n "checking whether the C compiler works... " >&6; }
3477 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3479 # The possible output files:
3480 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3482 ac_rmfiles=
3483 for ac_file in $ac_files
3485 case $ac_file in
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3487 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3488 esac
3489 done
3490 rm -f $ac_rmfiles
3492 if { { ac_try="$ac_link_default"
3493 case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_link_default") 2>&5
3500 ac_status=$?
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; then :
3503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3505 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3506 # so that the user can short-circuit this test for compilers unknown to
3507 # Autoconf.
3508 for ac_file in $ac_files ''
3510 test -f "$ac_file" || continue
3511 case $ac_file in
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3514 [ab].out )
3515 # We found the default executable, but exeext='' is most
3516 # certainly right.
3517 break;;
3518 *.* )
3519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3520 then :; else
3521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523 # We set ac_cv_exeext here because the later test for it is not
3524 # safe: cross compilers may not add the suffix if given an `-o'
3525 # argument, so we may need to know it at that point already.
3526 # Even if this section looks crufty: it has the advantage of
3527 # actually working.
3528 break;;
3530 break;;
3531 esac
3532 done
3533 test "$ac_cv_exeext" = no && ac_cv_exeext=
3535 else
3536 ac_file=''
3538 if test -z "$ac_file"; then :
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 $as_echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error 77 "C compiler cannot create executables
3547 See \`config.log' for more details" "$LINENO" 5; }
3548 else
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3550 $as_echo "yes" >&6; }
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3553 $as_echo_n "checking for C compiler default output file name... " >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3555 $as_echo "$ac_file" >&6; }
3556 ac_exeext=$ac_cv_exeext
3558 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3559 ac_clean_files=$ac_clean_files_save
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3561 $as_echo_n "checking for suffix of executables... " >&6; }
3562 if { { ac_try="$ac_link"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_link") 2>&5
3570 ac_status=$?
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }; then :
3573 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3574 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3575 # work properly (i.e., refer to `conftest.exe'), while it won't with
3576 # `rm'.
3577 for ac_file in conftest.exe conftest conftest.*; do
3578 test -f "$ac_file" || continue
3579 case $ac_file in
3580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3581 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3582 break;;
3583 * ) break;;
3584 esac
3585 done
3586 else
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3590 See \`config.log' for more details" "$LINENO" 5; }
3592 rm -f conftest conftest$ac_cv_exeext
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3594 $as_echo "$ac_cv_exeext" >&6; }
3596 rm -f conftest.$ac_ext
3597 EXEEXT=$ac_cv_exeext
3598 ac_exeext=$EXEEXT
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601 #include <stdio.h>
3603 main ()
3605 FILE *f = fopen ("conftest.out", "w");
3606 return ferror (f) || fclose (f) != 0;
3609 return 0;
3611 _ACEOF
3612 ac_clean_files="$ac_clean_files conftest.out"
3613 # Check that the compiler produces executables we can run. If not, either
3614 # the compiler is broken, or we cross compile.
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3616 $as_echo_n "checking whether we are cross compiling... " >&6; }
3617 if test "$cross_compiling" != yes; then
3618 { { ac_try="$ac_link"
3619 case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625 (eval "$ac_link") 2>&5
3626 ac_status=$?
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }
3629 if { ac_try='./conftest$ac_cv_exeext'
3630 { { case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_try") 2>&5
3637 ac_status=$?
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }; }; then
3640 cross_compiling=no
3641 else
3642 if test "$cross_compiling" = maybe; then
3643 cross_compiling=yes
3644 else
3645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error $? "cannot run C compiled programs.
3648 If you meant to cross compile, use \`--host'.
3649 See \`config.log' for more details" "$LINENO" 5; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3654 $as_echo "$cross_compiling" >&6; }
3656 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3657 ac_clean_files=$ac_clean_files_save
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3659 $as_echo_n "checking for suffix of object files... " >&6; }
3660 if ${ac_cv_objext+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3667 main ()
3671 return 0;
3673 _ACEOF
3674 rm -f conftest.o conftest.obj
3675 if { { ac_try="$ac_compile"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682 (eval "$ac_compile") 2>&5
3683 ac_status=$?
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }; then :
3686 for ac_file in conftest.o conftest.obj conftest.*; do
3687 test -f "$ac_file" || continue;
3688 case $ac_file in
3689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3690 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3691 break;;
3692 esac
3693 done
3694 else
3695 $as_echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error $? "cannot compute suffix of object files: cannot compile
3701 See \`config.log' for more details" "$LINENO" 5; }
3703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3706 $as_echo "$ac_cv_objext" >&6; }
3707 OBJEXT=$ac_cv_objext
3708 ac_objext=$OBJEXT
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3710 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3711 if ${ac_cv_c_compiler_gnu+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3718 main ()
3720 #ifndef __GNUC__
3721 choke me
3722 #endif
3725 return 0;
3727 _ACEOF
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729 ac_compiler_gnu=yes
3730 else
3731 ac_compiler_gnu=no
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3738 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3739 if test $ac_compiler_gnu = yes; then
3740 GCC=yes
3741 else
3742 GCC=
3744 ac_test_CFLAGS=${CFLAGS+set}
3745 ac_save_CFLAGS=$CFLAGS
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3747 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3748 if ${ac_cv_prog_cc_g+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 ac_save_c_werror_flag=$ac_c_werror_flag
3752 ac_c_werror_flag=yes
3753 ac_cv_prog_cc_g=no
3754 CFLAGS="-g"
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3759 main ()
3763 return 0;
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767 ac_cv_prog_cc_g=yes
3768 else
3769 CFLAGS=""
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3774 main ()
3778 return 0;
3780 _ACEOF
3781 if ac_fn_c_try_compile "$LINENO"; then :
3783 else
3784 ac_c_werror_flag=$ac_save_c_werror_flag
3785 CFLAGS="-g"
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3790 main ()
3794 return 0;
3796 _ACEOF
3797 if ac_fn_c_try_compile "$LINENO"; then :
3798 ac_cv_prog_cc_g=yes
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 ac_c_werror_flag=$ac_save_c_werror_flag
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3808 $as_echo "$ac_cv_prog_cc_g" >&6; }
3809 if test "$ac_test_CFLAGS" = set; then
3810 CFLAGS=$ac_save_CFLAGS
3811 elif test $ac_cv_prog_cc_g = yes; then
3812 if test "$GCC" = yes; then
3813 CFLAGS="-g -O2"
3814 else
3815 CFLAGS="-g"
3817 else
3818 if test "$GCC" = yes; then
3819 CFLAGS="-O2"
3820 else
3821 CFLAGS=
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3825 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3826 if ${ac_cv_prog_cc_c89+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 ac_cv_prog_cc_c89=no
3830 ac_save_CC=$CC
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833 #include <stdarg.h>
3834 #include <stdio.h>
3835 struct stat;
3836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3837 struct buf { int x; };
3838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3839 static char *e (p, i)
3840 char **p;
3841 int i;
3843 return p[i];
3845 static char *f (char * (*g) (char **, int), char **p, ...)
3847 char *s;
3848 va_list v;
3849 va_start (v,p);
3850 s = g (p, va_arg (v,int));
3851 va_end (v);
3852 return s;
3855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3856 function prototypes and stuff, but not '\xHH' hex character constants.
3857 These don't provoke an error unfortunately, instead are silently treated
3858 as 'x'. The following induces an error, until -std is added to get
3859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3860 array size at least. It's necessary to write '\x00'==0 to get something
3861 that's true only with -std. */
3862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3865 inside strings and character constants. */
3866 #define FOO(x) 'x'
3867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3869 int test (int i, double x);
3870 struct s1 {int (*f) (int a);};
3871 struct s2 {int (*f) (double a);};
3872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3873 int argc;
3874 char **argv;
3876 main ()
3878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3880 return 0;
3882 _ACEOF
3883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3886 CC="$ac_save_CC $ac_arg"
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888 ac_cv_prog_cc_c89=$ac_arg
3890 rm -f core conftest.err conftest.$ac_objext
3891 test "x$ac_cv_prog_cc_c89" != "xno" && break
3892 done
3893 rm -f conftest.$ac_ext
3894 CC=$ac_save_CC
3897 # AC_CACHE_VAL
3898 case "x$ac_cv_prog_cc_c89" in
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3901 $as_echo "none needed" >&6; } ;;
3902 xno)
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3904 $as_echo "unsupported" >&6; } ;;
3906 CC="$CC $ac_cv_prog_cc_c89"
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3908 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3909 esac
3910 if test "x$ac_cv_prog_cc_c89" != xno; then :
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 ac_ext=cpp
3921 ac_cpp='$CXXCPP $CPPFLAGS'
3922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3925 if test -z "$CXX"; then
3926 if test -n "$CCC"; then
3927 CXX=$CCC
3928 else
3929 if test -n "$ac_tool_prefix"; then
3930 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if ${ac_cv_prog_CXX+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test -n "$CXX"; then
3940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3953 done
3954 done
3955 IFS=$as_save_IFS
3959 CXX=$ac_cv_prog_CXX
3960 if test -n "$CXX"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3962 $as_echo "$CXX" >&6; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3969 test -n "$CXX" && break
3970 done
3972 if test -z "$CXX"; then
3973 ac_ct_CXX=$CXX
3974 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -n "$ac_ct_CXX"; then
3984 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_ac_ct_CXX="$ac_prog"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3997 done
3998 done
3999 IFS=$as_save_IFS
4003 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4004 if test -n "$ac_ct_CXX"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4006 $as_echo "$ac_ct_CXX" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4013 test -n "$ac_ct_CXX" && break
4014 done
4016 if test "x$ac_ct_CXX" = x; then
4017 CXX="g++"
4018 else
4019 case $cross_compiling:$ac_tool_warned in
4020 yes:)
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023 ac_tool_warned=yes ;;
4024 esac
4025 CXX=$ac_ct_CXX
4031 # Provide some information about the compiler.
4032 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4033 set X $ac_compile
4034 ac_compiler=$2
4035 for ac_option in --version -v -V -qversion; do
4036 { { ac_try="$ac_compiler $ac_option >&5"
4037 case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040 esac
4041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042 $as_echo "$ac_try_echo"; } >&5
4043 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4044 ac_status=$?
4045 if test -s conftest.err; then
4046 sed '10a\
4047 ... rest of stderr output deleted ...
4048 10q' conftest.err >conftest.er1
4049 cat conftest.er1 >&5
4051 rm -f conftest.er1 conftest.err
4052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }
4054 done
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4057 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4058 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4065 main ()
4067 #ifndef __GNUC__
4068 choke me
4069 #endif
4072 return 0;
4074 _ACEOF
4075 if ac_fn_cxx_try_compile "$LINENO"; then :
4076 ac_compiler_gnu=yes
4077 else
4078 ac_compiler_gnu=no
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4085 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4086 if test $ac_compiler_gnu = yes; then
4087 GXX=yes
4088 else
4089 GXX=
4091 ac_test_CXXFLAGS=${CXXFLAGS+set}
4092 ac_save_CXXFLAGS=$CXXFLAGS
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4094 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4095 if ${ac_cv_prog_cxx_g+:} false; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4099 ac_cxx_werror_flag=yes
4100 ac_cv_prog_cxx_g=no
4101 CXXFLAGS="-g"
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4106 main ()
4110 return 0;
4112 _ACEOF
4113 if ac_fn_cxx_try_compile "$LINENO"; then :
4114 ac_cv_prog_cxx_g=yes
4115 else
4116 CXXFLAGS=""
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4121 main ()
4125 return 0;
4127 _ACEOF
4128 if ac_fn_cxx_try_compile "$LINENO"; then :
4130 else
4131 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4132 CXXFLAGS="-g"
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 main ()
4141 return 0;
4143 _ACEOF
4144 if ac_fn_cxx_try_compile "$LINENO"; then :
4145 ac_cv_prog_cxx_g=yes
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4155 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4156 if test "$ac_test_CXXFLAGS" = set; then
4157 CXXFLAGS=$ac_save_CXXFLAGS
4158 elif test $ac_cv_prog_cxx_g = yes; then
4159 if test "$GXX" = yes; then
4160 CXXFLAGS="-g -O2"
4161 else
4162 CXXFLAGS="-g"
4164 else
4165 if test "$GXX" = yes; then
4166 CXXFLAGS="-O2"
4167 else
4168 CXXFLAGS=
4171 ac_ext=c
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 ac_ext=c
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4185 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4186 # On Suns, sometimes $CPP names a directory.
4187 if test -n "$CPP" && test -d "$CPP"; then
4188 CPP=
4190 if test -z "$CPP"; then
4191 if ${ac_cv_prog_CPP+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 # Double quotes because CPP needs to be expanded
4195 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4197 ac_preproc_ok=false
4198 for ac_c_preproc_warn_flag in '' yes
4200 # Use a header file that comes with gcc, so configuring glibc
4201 # with a fresh cross-compiler works.
4202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203 # <limits.h> exists even on freestanding compilers.
4204 # On the NeXT, cc -E runs the code through the compiler's parser,
4205 # not just through cpp. "Syntax error" is here to catch this case.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #ifdef __STDC__
4209 # include <limits.h>
4210 #else
4211 # include <assert.h>
4212 #endif
4213 Syntax error
4214 _ACEOF
4215 if ac_fn_c_try_cpp "$LINENO"; then :
4217 else
4218 # Broken: fails on valid input.
4219 continue
4221 rm -f conftest.err conftest.i conftest.$ac_ext
4223 # OK, works on sane cases. Now check whether nonexistent headers
4224 # can be detected and how.
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4228 _ACEOF
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4230 # Broken: success on invalid input.
4231 continue
4232 else
4233 # Passes both tests.
4234 ac_preproc_ok=:
4235 break
4237 rm -f conftest.err conftest.i conftest.$ac_ext
4239 done
4240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4241 rm -f conftest.i conftest.err conftest.$ac_ext
4242 if $ac_preproc_ok; then :
4243 break
4246 done
4247 ac_cv_prog_CPP=$CPP
4250 CPP=$ac_cv_prog_CPP
4251 else
4252 ac_cv_prog_CPP=$CPP
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4255 $as_echo "$CPP" >&6; }
4256 ac_preproc_ok=false
4257 for ac_c_preproc_warn_flag in '' yes
4259 # Use a header file that comes with gcc, so configuring glibc
4260 # with a fresh cross-compiler works.
4261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 # <limits.h> exists even on freestanding compilers.
4263 # On the NeXT, cc -E runs the code through the compiler's parser,
4264 # not just through cpp. "Syntax error" is here to catch this case.
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267 #ifdef __STDC__
4268 # include <limits.h>
4269 #else
4270 # include <assert.h>
4271 #endif
4272 Syntax error
4273 _ACEOF
4274 if ac_fn_c_try_cpp "$LINENO"; then :
4276 else
4277 # Broken: fails on valid input.
4278 continue
4280 rm -f conftest.err conftest.i conftest.$ac_ext
4282 # OK, works on sane cases. Now check whether nonexistent headers
4283 # can be detected and how.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <ac_nonexistent.h>
4287 _ACEOF
4288 if ac_fn_c_try_cpp "$LINENO"; then :
4289 # Broken: success on invalid input.
4290 continue
4291 else
4292 # Passes both tests.
4293 ac_preproc_ok=:
4294 break
4296 rm -f conftest.err conftest.i conftest.$ac_ext
4298 done
4299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4300 rm -f conftest.i conftest.err conftest.$ac_ext
4301 if $ac_preproc_ok; then :
4303 else
4304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4306 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4307 See \`config.log' for more details" "$LINENO" 5; }
4310 ac_ext=c
4311 ac_cpp='$CPP $CPPFLAGS'
4312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4318 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4319 if ${ac_cv_path_GREP+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -z "$GREP"; then
4323 ac_path_GREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_prog in grep ggrep; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4333 as_fn_executable_p "$ac_path_GREP" || continue
4334 # Check for GNU ac_path_GREP and select it if it is found.
4335 # Check for GNU $ac_path_GREP
4336 case `"$ac_path_GREP" --version 2>&1` in
4337 *GNU*)
4338 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4340 ac_count=0
4341 $as_echo_n 0123456789 >"conftest.in"
4342 while :
4344 cat "conftest.in" "conftest.in" >"conftest.tmp"
4345 mv "conftest.tmp" "conftest.in"
4346 cp "conftest.in" "conftest.nl"
4347 $as_echo 'GREP' >> "conftest.nl"
4348 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350 as_fn_arith $ac_count + 1 && ac_count=$as_val
4351 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4352 # Best one so far, save it but keep looking for a better one
4353 ac_cv_path_GREP="$ac_path_GREP"
4354 ac_path_GREP_max=$ac_count
4356 # 10*(2^10) chars as input seems more than enough
4357 test $ac_count -gt 10 && break
4358 done
4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360 esac
4362 $ac_path_GREP_found && break 3
4363 done
4364 done
4365 done
4366 IFS=$as_save_IFS
4367 if test -z "$ac_cv_path_GREP"; then
4368 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4370 else
4371 ac_cv_path_GREP=$GREP
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4376 $as_echo "$ac_cv_path_GREP" >&6; }
4377 GREP="$ac_cv_path_GREP"
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4381 $as_echo_n "checking for egrep... " >&6; }
4382 if ${ac_cv_path_EGREP+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4386 then ac_cv_path_EGREP="$GREP -E"
4387 else
4388 if test -z "$EGREP"; then
4389 ac_path_EGREP_found=false
4390 # Loop through the user's path and test for each of PROGNAME-LIST
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_prog in egrep; do
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4399 as_fn_executable_p "$ac_path_EGREP" || continue
4400 # Check for GNU ac_path_EGREP and select it if it is found.
4401 # Check for GNU $ac_path_EGREP
4402 case `"$ac_path_EGREP" --version 2>&1` in
4403 *GNU*)
4404 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4406 ac_count=0
4407 $as_echo_n 0123456789 >"conftest.in"
4408 while :
4410 cat "conftest.in" "conftest.in" >"conftest.tmp"
4411 mv "conftest.tmp" "conftest.in"
4412 cp "conftest.in" "conftest.nl"
4413 $as_echo 'EGREP' >> "conftest.nl"
4414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416 as_fn_arith $ac_count + 1 && ac_count=$as_val
4417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4418 # Best one so far, save it but keep looking for a better one
4419 ac_cv_path_EGREP="$ac_path_EGREP"
4420 ac_path_EGREP_max=$ac_count
4422 # 10*(2^10) chars as input seems more than enough
4423 test $ac_count -gt 10 && break
4424 done
4425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426 esac
4428 $ac_path_EGREP_found && break 3
4429 done
4430 done
4431 done
4432 IFS=$as_save_IFS
4433 if test -z "$ac_cv_path_EGREP"; then
4434 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4436 else
4437 ac_cv_path_EGREP=$EGREP
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4443 $as_echo "$ac_cv_path_EGREP" >&6; }
4444 EGREP="$ac_cv_path_EGREP"
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4448 $as_echo_n "checking for ANSI C header files... " >&6; }
4449 if ${ac_cv_header_stdc+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454 #include <stdlib.h>
4455 #include <stdarg.h>
4456 #include <string.h>
4457 #include <float.h>
4460 main ()
4464 return 0;
4466 _ACEOF
4467 if ac_fn_c_try_compile "$LINENO"; then :
4468 ac_cv_header_stdc=yes
4469 else
4470 ac_cv_header_stdc=no
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 if test $ac_cv_header_stdc = yes; then
4475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 #include <string.h>
4480 _ACEOF
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482 $EGREP "memchr" >/dev/null 2>&1; then :
4484 else
4485 ac_cv_header_stdc=no
4487 rm -f conftest*
4491 if test $ac_cv_header_stdc = yes; then
4492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495 #include <stdlib.h>
4497 _ACEOF
4498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4499 $EGREP "free" >/dev/null 2>&1; then :
4501 else
4502 ac_cv_header_stdc=no
4504 rm -f conftest*
4508 if test $ac_cv_header_stdc = yes; then
4509 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4510 if test "$cross_compiling" = yes; then :
4512 else
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515 #include <ctype.h>
4516 #include <stdlib.h>
4517 #if ((' ' & 0x0FF) == 0x020)
4518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4520 #else
4521 # define ISLOWER(c) \
4522 (('a' <= (c) && (c) <= 'i') \
4523 || ('j' <= (c) && (c) <= 'r') \
4524 || ('s' <= (c) && (c) <= 'z'))
4525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4526 #endif
4528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4530 main ()
4532 int i;
4533 for (i = 0; i < 256; i++)
4534 if (XOR (islower (i), ISLOWER (i))
4535 || toupper (i) != TOUPPER (i))
4536 return 2;
4537 return 0;
4539 _ACEOF
4540 if ac_fn_c_try_run "$LINENO"; then :
4542 else
4543 ac_cv_header_stdc=no
4545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4546 conftest.$ac_objext conftest.beam conftest.$ac_ext
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4552 $as_echo "$ac_cv_header_stdc" >&6; }
4553 if test $ac_cv_header_stdc = yes; then
4555 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4559 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4560 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4561 inttypes.h stdint.h unistd.h
4562 do :
4563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4564 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4567 cat >>confdefs.h <<_ACEOF
4568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4569 _ACEOF
4573 done
4577 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4578 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4579 MINIX=yes
4580 else
4581 MINIX=
4585 if test "$MINIX" = yes; then
4587 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4590 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4593 $as_echo "#define _MINIX 1" >>confdefs.h
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4599 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4600 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4606 # define __EXTENSIONS__ 1
4607 $ac_includes_default
4609 main ()
4613 return 0;
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"; then :
4617 ac_cv_safe_to_define___extensions__=yes
4618 else
4619 ac_cv_safe_to_define___extensions__=no
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4624 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4625 test $ac_cv_safe_to_define___extensions__ = yes &&
4626 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4628 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4630 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4632 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4634 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4637 ac_aux_dir=
4638 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4639 if test -f "$ac_dir/install-sh"; then
4640 ac_aux_dir=$ac_dir
4641 ac_install_sh="$ac_aux_dir/install-sh -c"
4642 break
4643 elif test -f "$ac_dir/install.sh"; then
4644 ac_aux_dir=$ac_dir
4645 ac_install_sh="$ac_aux_dir/install.sh -c"
4646 break
4647 elif test -f "$ac_dir/shtool"; then
4648 ac_aux_dir=$ac_dir
4649 ac_install_sh="$ac_aux_dir/shtool install -c"
4650 break
4652 done
4653 if test -z "$ac_aux_dir"; then
4654 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4657 # These three variables are undocumented and unsupported,
4658 # and are intended to be withdrawn in a future Autoconf release.
4659 # They can cause serious problems if a builder's source tree is in a directory
4660 # whose full name contains unusual characters.
4661 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4662 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4663 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4666 # Make sure we can run config.sub.
4667 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4668 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4671 $as_echo_n "checking build system type... " >&6; }
4672 if ${ac_cv_build+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 ac_build_alias=$build_alias
4676 test "x$ac_build_alias" = x &&
4677 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4678 test "x$ac_build_alias" = x &&
4679 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4680 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4685 $as_echo "$ac_cv_build" >&6; }
4686 case $ac_cv_build in
4687 *-*-*) ;;
4688 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4689 esac
4690 build=$ac_cv_build
4691 ac_save_IFS=$IFS; IFS='-'
4692 set x $ac_cv_build
4693 shift
4694 build_cpu=$1
4695 build_vendor=$2
4696 shift; shift
4697 # Remember, the first character of IFS is used to create $*,
4698 # except with old shells:
4699 build_os=$*
4700 IFS=$ac_save_IFS
4701 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4705 $as_echo_n "checking host system type... " >&6; }
4706 if ${ac_cv_host+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 if test "x$host_alias" = x; then
4710 ac_cv_host=$ac_cv_build
4711 else
4712 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4713 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4718 $as_echo "$ac_cv_host" >&6; }
4719 case $ac_cv_host in
4720 *-*-*) ;;
4721 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4722 esac
4723 host=$ac_cv_host
4724 ac_save_IFS=$IFS; IFS='-'
4725 set x $ac_cv_host
4726 shift
4727 host_cpu=$1
4728 host_vendor=$2
4729 shift; shift
4730 # Remember, the first character of IFS is used to create $*,
4731 # except with old shells:
4732 host_os=$*
4733 IFS=$ac_save_IFS
4734 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4738 $as_echo_n "checking target system type... " >&6; }
4739 if ${ac_cv_target+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test "x$target_alias" = x; then
4743 ac_cv_target=$ac_cv_host
4744 else
4745 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4746 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4751 $as_echo "$ac_cv_target" >&6; }
4752 case $ac_cv_target in
4753 *-*-*) ;;
4754 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4755 esac
4756 target=$ac_cv_target
4757 ac_save_IFS=$IFS; IFS='-'
4758 set x $ac_cv_target
4759 shift
4760 target_cpu=$1
4761 target_vendor=$2
4762 shift; shift
4763 # Remember, the first character of IFS is used to create $*,
4764 # except with old shells:
4765 target_os=$*
4766 IFS=$ac_save_IFS
4767 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4770 # The aliases save the names the user supplied, while $host etc.
4771 # will get canonicalized.
4772 test -n "$target_alias" &&
4773 test "$program_prefix$program_suffix$program_transform_name" = \
4774 NONENONEs,x,x, &&
4775 program_prefix=${target_alias}-
4777 # The tests for host and target for $enable_largefile require
4778 # canonical names.
4782 # As the $enable_largefile decision depends on --enable-plugins we must set it
4783 # even in directories otherwise not depending on the $plugins option.
4786 maybe_plugins=no
4787 for ac_header in dlfcn.h
4788 do :
4789 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4791 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4792 cat >>confdefs.h <<_ACEOF
4793 #define HAVE_DLFCN_H 1
4794 _ACEOF
4795 maybe_plugins=yes
4798 done
4800 for ac_header in windows.h
4801 do :
4802 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4804 if test "x$ac_cv_header_windows_h" = xyes; then :
4805 cat >>confdefs.h <<_ACEOF
4806 #define HAVE_WINDOWS_H 1
4807 _ACEOF
4808 maybe_plugins=yes
4811 done
4814 # Check whether --enable-plugins was given.
4815 if test "${enable_plugins+set}" = set; then :
4816 enableval=$enable_plugins; case "${enableval}" in
4817 no) plugins=no ;;
4818 *) plugins=yes
4819 if test "$maybe_plugins" != "yes" ; then
4820 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4821 fi ;;
4822 esac
4823 else
4824 plugins=$maybe_plugins
4828 if test "$plugins" = "yes"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4830 $as_echo_n "checking for library containing dlsym... " >&6; }
4831 if ${ac_cv_search_dlsym+:} false; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 ac_func_search_save_LIBS=$LIBS
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4838 /* Override any GCC internal prototype to avoid an error.
4839 Use char because int might match the return type of a GCC
4840 builtin and then its argument prototype would still apply. */
4841 #ifdef __cplusplus
4842 extern "C"
4843 #endif
4844 char dlsym ();
4846 main ()
4848 return dlsym ();
4850 return 0;
4852 _ACEOF
4853 for ac_lib in '' dl; do
4854 if test -z "$ac_lib"; then
4855 ac_res="none required"
4856 else
4857 ac_res=-l$ac_lib
4858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4860 if ac_fn_c_try_link "$LINENO"; then :
4861 ac_cv_search_dlsym=$ac_res
4863 rm -f core conftest.err conftest.$ac_objext \
4864 conftest$ac_exeext
4865 if ${ac_cv_search_dlsym+:} false; then :
4866 break
4868 done
4869 if ${ac_cv_search_dlsym+:} false; then :
4871 else
4872 ac_cv_search_dlsym=no
4874 rm conftest.$ac_ext
4875 LIBS=$ac_func_search_save_LIBS
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4878 $as_echo "$ac_cv_search_dlsym" >&6; }
4879 ac_res=$ac_cv_search_dlsym
4880 if test "$ac_res" != no; then :
4881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4888 case "${host}" in
4889 sparc-*-solaris*|i?86-*-solaris*)
4890 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4891 # were mutually exclusive until Solaris 11.3. Without procfs support,
4892 # the bfd/ elf module cannot provide certain routines such as
4893 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4894 # explicitly requested large-file support through the
4895 # --enable-largefile switch, disable large-file support in favor of
4896 # procfs support.
4898 # Check if <sys/procfs.h> is incompatible with large-file support.
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901 #define _FILE_OFFSET_BITS 64
4902 #define _STRUCTURED_PROC 1
4903 #include <sys/procfs.h>
4905 main ()
4909 return 0;
4911 _ACEOF
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913 acx_cv_procfs_lfs=yes
4914 else
4915 acx_cv_procfs_lfs=no
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919 # Forcefully disable large-file support only if necessary, gdb is in
4920 # tree and enabled.
4921 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4922 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
4923 : ${enable_largefile="no"}
4924 if test "$plugins" = yes; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4926 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4927 $as_echo "$as_me: WARNING:
4928 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4929 plugins=no
4933 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4934 # benefit of g++ 9+ which predefines it on Solaris.
4935 if test "$enable_largefile" = no; then
4936 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
4940 esac
4942 # Check whether --enable-largefile was given.
4943 if test "${enable_largefile+set}" = set; then :
4944 enableval=$enable_largefile;
4947 if test "$enable_largefile" != no; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4950 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4951 if ${ac_cv_sys_largefile_CC+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 ac_cv_sys_largefile_CC=no
4955 if test "$GCC" != yes; then
4956 ac_save_CC=$CC
4957 while :; do
4958 # IRIX 6.2 and later do not support large files by default,
4959 # so use the C compiler's -n32 option if that helps.
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962 #include <sys/types.h>
4963 /* Check that off_t can represent 2**63 - 1 correctly.
4964 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4965 since some C++ compilers masquerading as C compilers
4966 incorrectly reject 9223372036854775807. */
4967 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4968 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4969 && LARGE_OFF_T % 2147483647 == 1)
4970 ? 1 : -1];
4972 main ()
4976 return 0;
4978 _ACEOF
4979 if ac_fn_c_try_compile "$LINENO"; then :
4980 break
4982 rm -f core conftest.err conftest.$ac_objext
4983 CC="$CC -n32"
4984 if ac_fn_c_try_compile "$LINENO"; then :
4985 ac_cv_sys_largefile_CC=' -n32'; break
4987 rm -f core conftest.err conftest.$ac_objext
4988 break
4989 done
4990 CC=$ac_save_CC
4991 rm -f conftest.$ac_ext
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4995 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4996 if test "$ac_cv_sys_largefile_CC" != no; then
4997 CC=$CC$ac_cv_sys_largefile_CC
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5001 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5002 if ${ac_cv_sys_file_offset_bits+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 while :; do
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 #include <sys/types.h>
5009 /* Check that off_t can represent 2**63 - 1 correctly.
5010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5011 since some C++ compilers masquerading as C compilers
5012 incorrectly reject 9223372036854775807. */
5013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5015 && LARGE_OFF_T % 2147483647 == 1)
5016 ? 1 : -1];
5018 main ()
5022 return 0;
5024 _ACEOF
5025 if ac_fn_c_try_compile "$LINENO"; then :
5026 ac_cv_sys_file_offset_bits=no; break
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5031 #define _FILE_OFFSET_BITS 64
5032 #include <sys/types.h>
5033 /* Check that off_t can represent 2**63 - 1 correctly.
5034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5035 since some C++ compilers masquerading as C compilers
5036 incorrectly reject 9223372036854775807. */
5037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5039 && LARGE_OFF_T % 2147483647 == 1)
5040 ? 1 : -1];
5042 main ()
5046 return 0;
5048 _ACEOF
5049 if ac_fn_c_try_compile "$LINENO"; then :
5050 ac_cv_sys_file_offset_bits=64; break
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 ac_cv_sys_file_offset_bits=unknown
5054 break
5055 done
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5058 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5059 case $ac_cv_sys_file_offset_bits in #(
5060 no | unknown) ;;
5062 cat >>confdefs.h <<_ACEOF
5063 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5064 _ACEOF
5066 esac
5067 rm -rf conftest*
5068 if test $ac_cv_sys_file_offset_bits = unknown; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5070 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5071 if ${ac_cv_sys_large_files+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 while :; do
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #include <sys/types.h>
5078 /* Check that off_t can represent 2**63 - 1 correctly.
5079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5080 since some C++ compilers masquerading as C compilers
5081 incorrectly reject 9223372036854775807. */
5082 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5084 && LARGE_OFF_T % 2147483647 == 1)
5085 ? 1 : -1];
5087 main ()
5091 return 0;
5093 _ACEOF
5094 if ac_fn_c_try_compile "$LINENO"; then :
5095 ac_cv_sys_large_files=no; break
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5100 #define _LARGE_FILES 1
5101 #include <sys/types.h>
5102 /* Check that off_t can represent 2**63 - 1 correctly.
5103 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5104 since some C++ compilers masquerading as C compilers
5105 incorrectly reject 9223372036854775807. */
5106 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5108 && LARGE_OFF_T % 2147483647 == 1)
5109 ? 1 : -1];
5111 main ()
5115 return 0;
5117 _ACEOF
5118 if ac_fn_c_try_compile "$LINENO"; then :
5119 ac_cv_sys_large_files=1; break
5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 ac_cv_sys_large_files=unknown
5123 break
5124 done
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5127 $as_echo "$ac_cv_sys_large_files" >&6; }
5128 case $ac_cv_sys_large_files in #(
5129 no | unknown) ;;
5131 cat >>confdefs.h <<_ACEOF
5132 #define _LARGE_FILES $ac_cv_sys_large_files
5133 _ACEOF
5135 esac
5136 rm -rf conftest*
5143 # Expand $ac_aux_dir to an absolute path.
5144 am_aux_dir=`cd "$ac_aux_dir" && pwd`
5146 if test x"${install_sh+set}" != xset; then
5147 case $am_aux_dir in
5148 *\ * | *\ *)
5149 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5151 install_sh="\${SHELL} $am_aux_dir/install-sh"
5152 esac
5155 # Installed binaries are usually stripped using 'strip' when the user
5156 # run "make install-strip". However 'strip' might not be the right
5157 # tool to use in cross-compilation environments, therefore Automake
5158 # will honor the 'STRIP' environment variable to overrule this program.
5159 if test "$cross_compiling" != no; then
5160 if test -n "$ac_tool_prefix"; then
5161 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5162 set dummy ${ac_tool_prefix}strip; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_prog_STRIP+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$STRIP"; then
5169 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5182 done
5183 done
5184 IFS=$as_save_IFS
5188 STRIP=$ac_cv_prog_STRIP
5189 if test -n "$STRIP"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5191 $as_echo "$STRIP" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5199 if test -z "$ac_cv_prog_STRIP"; then
5200 ac_ct_STRIP=$STRIP
5201 # Extract the first word of "strip", so it can be a program name with args.
5202 set dummy strip; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$ac_ct_STRIP"; then
5209 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_ac_ct_STRIP="strip"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5222 done
5223 done
5224 IFS=$as_save_IFS
5228 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5229 if test -n "$ac_ct_STRIP"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5231 $as_echo "$ac_ct_STRIP" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5237 if test "x$ac_ct_STRIP" = x; then
5238 STRIP=":"
5239 else
5240 case $cross_compiling:$ac_tool_warned in
5241 yes:)
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5244 ac_tool_warned=yes ;;
5245 esac
5246 STRIP=$ac_ct_STRIP
5248 else
5249 STRIP="$ac_cv_prog_STRIP"
5253 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5256 ac_aux_dir=
5257 for ac_dir in .. "$srcdir"/..; do
5258 if test -f "$ac_dir/install-sh"; then
5259 ac_aux_dir=$ac_dir
5260 ac_install_sh="$ac_aux_dir/install-sh -c"
5261 break
5262 elif test -f "$ac_dir/install.sh"; then
5263 ac_aux_dir=$ac_dir
5264 ac_install_sh="$ac_aux_dir/install.sh -c"
5265 break
5266 elif test -f "$ac_dir/shtool"; then
5267 ac_aux_dir=$ac_dir
5268 ac_install_sh="$ac_aux_dir/shtool install -c"
5269 break
5271 done
5272 if test -z "$ac_aux_dir"; then
5273 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5276 # These three variables are undocumented and unsupported,
5277 # and are intended to be withdrawn in a future Autoconf release.
5278 # They can cause serious problems if a builder's source tree is in a directory
5279 # whose full name contains unusual characters.
5280 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5281 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5282 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5286 # Set build, build_cpu, build_vendor and build_os.
5289 # Set host, host_cpu, host_vendor, and host_os.
5292 # Set target, target_cpu, target_vendor, and target_os.
5295 case ${build_alias} in
5296 "") build_noncanonical=${build} ;;
5297 *) build_noncanonical=${build_alias} ;;
5298 esac
5300 case ${host_alias} in
5301 "") host_noncanonical=${build_noncanonical} ;;
5302 *) host_noncanonical=${host_alias} ;;
5303 esac
5305 case ${target_alias} in
5306 "") target_noncanonical=${host_noncanonical} ;;
5307 *) target_noncanonical=${target_alias} ;;
5308 esac
5313 test "$program_prefix" != NONE &&
5314 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5315 # Use a double $ so make ignores it.
5316 test "$program_suffix" != NONE &&
5317 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5318 # Double any \ or $.
5319 # By default was `s,x,x', remove it if useless.
5320 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5321 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5324 # We require libtool to link with the in-tree libtool libraries
5325 # the proper way.
5326 case `pwd` in
5327 *\ * | *\ *)
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5329 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5330 esac
5334 macro_version='2.2.7a'
5335 macro_revision='1.3134'
5349 ltmain="$ac_aux_dir/ltmain.sh"
5351 # Backslashify metacharacters that are still active within
5352 # double-quoted strings.
5353 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5355 # Same as above, but do not quote variable references.
5356 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5358 # Sed substitution to delay expansion of an escaped shell variable in a
5359 # double_quote_subst'ed string.
5360 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5362 # Sed substitution to delay expansion of an escaped single quote.
5363 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5365 # Sed substitution to avoid accidental globbing in evaled expressions
5366 no_glob_subst='s/\*/\\\*/g'
5368 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5369 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5370 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5373 $as_echo_n "checking how to print strings... " >&6; }
5374 # Test print first, because it will be a builtin if present.
5375 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5376 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5377 ECHO='print -r --'
5378 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5379 ECHO='printf %s\n'
5380 else
5381 # Use this function as a fallback that always works.
5382 func_fallback_echo ()
5384 eval 'cat <<_LTECHO_EOF
5386 _LTECHO_EOF'
5388 ECHO='func_fallback_echo'
5391 # func_echo_all arg...
5392 # Invoke $ECHO with all args, space-separated.
5393 func_echo_all ()
5395 $ECHO ""
5398 case "$ECHO" in
5399 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5400 $as_echo "printf" >&6; } ;;
5401 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5402 $as_echo "print -r" >&6; } ;;
5403 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5404 $as_echo "cat" >&6; } ;;
5405 esac
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5421 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5422 if ${ac_cv_path_SED+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5426 for ac_i in 1 2 3 4 5 6 7; do
5427 ac_script="$ac_script$as_nl$ac_script"
5428 done
5429 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5430 { ac_script=; unset ac_script;}
5431 if test -z "$SED"; then
5432 ac_path_SED_found=false
5433 # Loop through the user's path and test for each of PROGNAME-LIST
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_prog in sed gsed; do
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5442 as_fn_executable_p "$ac_path_SED" || continue
5443 # Check for GNU ac_path_SED and select it if it is found.
5444 # Check for GNU $ac_path_SED
5445 case `"$ac_path_SED" --version 2>&1` in
5446 *GNU*)
5447 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5449 ac_count=0
5450 $as_echo_n 0123456789 >"conftest.in"
5451 while :
5453 cat "conftest.in" "conftest.in" >"conftest.tmp"
5454 mv "conftest.tmp" "conftest.in"
5455 cp "conftest.in" "conftest.nl"
5456 $as_echo '' >> "conftest.nl"
5457 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5459 as_fn_arith $ac_count + 1 && ac_count=$as_val
5460 if test $ac_count -gt ${ac_path_SED_max-0}; then
5461 # Best one so far, save it but keep looking for a better one
5462 ac_cv_path_SED="$ac_path_SED"
5463 ac_path_SED_max=$ac_count
5465 # 10*(2^10) chars as input seems more than enough
5466 test $ac_count -gt 10 && break
5467 done
5468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5469 esac
5471 $ac_path_SED_found && break 3
5472 done
5473 done
5474 done
5475 IFS=$as_save_IFS
5476 if test -z "$ac_cv_path_SED"; then
5477 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5479 else
5480 ac_cv_path_SED=$SED
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5485 $as_echo "$ac_cv_path_SED" >&6; }
5486 SED="$ac_cv_path_SED"
5487 rm -f conftest.sed
5489 test -z "$SED" && SED=sed
5490 Xsed="$SED -e 1s/^X//"
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5503 $as_echo_n "checking for fgrep... " >&6; }
5504 if ${ac_cv_path_FGREP+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5508 then ac_cv_path_FGREP="$GREP -F"
5509 else
5510 if test -z "$FGREP"; then
5511 ac_path_FGREP_found=false
5512 # Loop through the user's path and test for each of PROGNAME-LIST
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_prog in fgrep; do
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5521 as_fn_executable_p "$ac_path_FGREP" || continue
5522 # Check for GNU ac_path_FGREP and select it if it is found.
5523 # Check for GNU $ac_path_FGREP
5524 case `"$ac_path_FGREP" --version 2>&1` in
5525 *GNU*)
5526 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5528 ac_count=0
5529 $as_echo_n 0123456789 >"conftest.in"
5530 while :
5532 cat "conftest.in" "conftest.in" >"conftest.tmp"
5533 mv "conftest.tmp" "conftest.in"
5534 cp "conftest.in" "conftest.nl"
5535 $as_echo 'FGREP' >> "conftest.nl"
5536 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5538 as_fn_arith $ac_count + 1 && ac_count=$as_val
5539 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5540 # Best one so far, save it but keep looking for a better one
5541 ac_cv_path_FGREP="$ac_path_FGREP"
5542 ac_path_FGREP_max=$ac_count
5544 # 10*(2^10) chars as input seems more than enough
5545 test $ac_count -gt 10 && break
5546 done
5547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5548 esac
5550 $ac_path_FGREP_found && break 3
5551 done
5552 done
5553 done
5554 IFS=$as_save_IFS
5555 if test -z "$ac_cv_path_FGREP"; then
5556 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5558 else
5559 ac_cv_path_FGREP=$FGREP
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5565 $as_echo "$ac_cv_path_FGREP" >&6; }
5566 FGREP="$ac_cv_path_FGREP"
5569 test -z "$GREP" && GREP=grep
5589 # Check whether --with-gnu-ld was given.
5590 if test "${with_gnu_ld+set}" = set; then :
5591 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5592 else
5593 with_gnu_ld=no
5596 ac_prog=ld
5597 if test "$GCC" = yes; then
5598 # Check if gcc -print-prog-name=ld gives a path.
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5600 $as_echo_n "checking for ld used by $CC... " >&6; }
5601 case $host in
5602 *-*-mingw*)
5603 # gcc leaves a trailing carriage return which upsets mingw
5604 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5606 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5607 esac
5608 case $ac_prog in
5609 # Accept absolute paths.
5610 [\\/]* | ?:[\\/]*)
5611 re_direlt='/[^/][^/]*/\.\./'
5612 # Canonicalize the pathname of ld
5613 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5614 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5615 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5616 done
5617 test -z "$LD" && LD="$ac_prog"
5620 # If it fails, then pretend we aren't using GCC.
5621 ac_prog=ld
5624 # If it is relative, then search for the first ld in PATH.
5625 with_gnu_ld=unknown
5627 esac
5628 elif test "$with_gnu_ld" = yes; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5630 $as_echo_n "checking for GNU ld... " >&6; }
5631 else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5633 $as_echo_n "checking for non-GNU ld... " >&6; }
5635 if ${lt_cv_path_LD+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -z "$LD"; then
5639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5640 for ac_dir in $PATH; do
5641 IFS="$lt_save_ifs"
5642 test -z "$ac_dir" && ac_dir=.
5643 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5644 lt_cv_path_LD="$ac_dir/$ac_prog"
5645 # Check to see if the program is GNU ld. I'd rather use --version,
5646 # but apparently some variants of GNU ld only accept -v.
5647 # Break only if it was the GNU/non-GNU ld that we prefer.
5648 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5649 *GNU* | *'with BFD'*)
5650 test "$with_gnu_ld" != no && break
5653 test "$with_gnu_ld" != yes && break
5655 esac
5657 done
5658 IFS="$lt_save_ifs"
5659 else
5660 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5664 LD="$lt_cv_path_LD"
5665 if test -n "$LD"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5667 $as_echo "$LD" >&6; }
5668 else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5672 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5674 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5675 if ${lt_cv_prog_gnu_ld+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5679 case `$LD -v 2>&1 </dev/null` in
5680 *GNU* | *'with BFD'*)
5681 lt_cv_prog_gnu_ld=yes
5684 lt_cv_prog_gnu_ld=no
5686 esac
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5689 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5690 with_gnu_ld=$lt_cv_prog_gnu_ld
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5701 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5702 if ${lt_cv_path_NM+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 if test -n "$NM"; then
5706 # Let the user override the nm to test.
5707 lt_nm_to_check="$NM"
5708 else
5709 lt_nm_to_check="${ac_tool_prefix}nm"
5710 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5711 lt_nm_to_check="$lt_nm_to_check nm"
5714 for lt_tmp_nm in "$lt_nm_to_check"; do
5715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5716 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5717 IFS="$lt_save_ifs"
5718 test -z "$ac_dir" && ac_dir=.
5719 # Strip out any user-provided options from the nm to test twice,
5720 # the first time to test to see if nm (rather than its options) has
5721 # an explicit path, the second time to yield a file which can be
5722 # nm'ed itself.
5723 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5724 case "$tmp_nm_path" in
5725 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5726 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5727 esac
5728 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5729 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5730 # Check to see if the nm accepts a BSD-compat flag.
5731 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5732 # nm: unknown option "B" ignored
5733 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5734 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5735 break
5738 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5739 *$tmp_nm*)
5740 lt_cv_path_NM="$tmp_nm -p"
5741 break
5744 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5745 continue # so that we can try to find one that supports BSD flags
5747 esac
5749 esac
5751 done
5752 IFS="$lt_save_ifs"
5753 done
5754 : ${lt_cv_path_NM=no}
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5757 $as_echo "$lt_cv_path_NM" >&6; }
5758 if test "$lt_cv_path_NM" != "no"; then
5759 NM="$lt_cv_path_NM"
5760 else
5761 # Didn't find any BSD compatible name lister, look for dumpbin.
5762 if test -n "$DUMPBIN"; then :
5763 # Let the user override the test.
5764 else
5765 if test -n "$ac_tool_prefix"; then
5766 for ac_prog in dumpbin "link -dump"
5768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if ${ac_cv_prog_DUMPBIN+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 if test -n "$DUMPBIN"; then
5776 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 break 2
5789 done
5790 done
5791 IFS=$as_save_IFS
5795 DUMPBIN=$ac_cv_prog_DUMPBIN
5796 if test -n "$DUMPBIN"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5798 $as_echo "$DUMPBIN" >&6; }
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5805 test -n "$DUMPBIN" && break
5806 done
5808 if test -z "$DUMPBIN"; then
5809 ac_ct_DUMPBIN=$DUMPBIN
5810 for ac_prog in dumpbin "link -dump"
5812 # Extract the first word of "$ac_prog", so it can be a program name with args.
5813 set dummy $ac_prog; ac_word=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 if test -n "$ac_ct_DUMPBIN"; then
5820 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5833 done
5834 done
5835 IFS=$as_save_IFS
5839 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5840 if test -n "$ac_ct_DUMPBIN"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5842 $as_echo "$ac_ct_DUMPBIN" >&6; }
5843 else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5849 test -n "$ac_ct_DUMPBIN" && break
5850 done
5852 if test "x$ac_ct_DUMPBIN" = x; then
5853 DUMPBIN=":"
5854 else
5855 case $cross_compiling:$ac_tool_warned in
5856 yes:)
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5859 ac_tool_warned=yes ;;
5860 esac
5861 DUMPBIN=$ac_ct_DUMPBIN
5865 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5866 *COFF*)
5867 DUMPBIN="$DUMPBIN -symbols"
5870 DUMPBIN=:
5872 esac
5875 if test "$DUMPBIN" != ":"; then
5876 NM="$DUMPBIN"
5879 test -z "$NM" && NM=nm
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5887 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5888 if ${lt_cv_nm_interface+:} false; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 lt_cv_nm_interface="BSD nm"
5892 echo "int some_variable = 0;" > conftest.$ac_ext
5893 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5894 (eval "$ac_compile" 2>conftest.err)
5895 cat conftest.err >&5
5896 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5897 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5898 cat conftest.err >&5
5899 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5900 cat conftest.out >&5
5901 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5902 lt_cv_nm_interface="MS dumpbin"
5904 rm -f conftest*
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5907 $as_echo "$lt_cv_nm_interface" >&6; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5910 $as_echo_n "checking whether ln -s works... " >&6; }
5911 LN_S=$as_ln_s
5912 if test "$LN_S" = "ln -s"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5914 $as_echo "yes" >&6; }
5915 else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5917 $as_echo "no, using $LN_S" >&6; }
5920 # find the maximum length of command line arguments
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5922 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5923 if ${lt_cv_sys_max_cmd_len+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5927 teststring="ABCD"
5929 case $build_os in
5930 msdosdjgpp*)
5931 # On DJGPP, this test can blow up pretty badly due to problems in libc
5932 # (any single argument exceeding 2000 bytes causes a buffer overrun
5933 # during glob expansion). Even if it were fixed, the result of this
5934 # check would be larger than it should be.
5935 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5938 gnu*)
5939 # Under GNU Hurd, this test is not required because there is
5940 # no limit to the length of command line arguments.
5941 # Libtool will interpret -1 as no limit whatsoever
5942 lt_cv_sys_max_cmd_len=-1;
5945 cygwin* | mingw* | cegcc*)
5946 # On Win9x/ME, this test blows up -- it succeeds, but takes
5947 # about 5 minutes as the teststring grows exponentially.
5948 # Worse, since 9x/ME are not pre-emptively multitasking,
5949 # you end up with a "frozen" computer, even though with patience
5950 # the test eventually succeeds (with a max line length of 256k).
5951 # Instead, let's just punt: use the minimum linelength reported by
5952 # all of the supported platforms: 8192 (on NT/2K/XP).
5953 lt_cv_sys_max_cmd_len=8192;
5956 mint*)
5957 # On MiNT this can take a long time and run out of memory.
5958 lt_cv_sys_max_cmd_len=8192;
5961 amigaos*)
5962 # On AmigaOS with pdksh, this test takes hours, literally.
5963 # So we just punt and use a minimum line length of 8192.
5964 lt_cv_sys_max_cmd_len=8192;
5967 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5968 # This has been around since 386BSD, at least. Likely further.
5969 if test -x /sbin/sysctl; then
5970 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5971 elif test -x /usr/sbin/sysctl; then
5972 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5973 else
5974 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5976 # And add a safety zone
5977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5981 interix*)
5982 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5983 lt_cv_sys_max_cmd_len=196608
5986 osf*)
5987 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5988 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5989 # nice to cause kernel panics so lets avoid the loop below.
5990 # First set a reasonable default.
5991 lt_cv_sys_max_cmd_len=16384
5993 if test -x /sbin/sysconfig; then
5994 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5995 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5996 esac
5999 sco3.2v5*)
6000 lt_cv_sys_max_cmd_len=102400
6002 sysv5* | sco5v6* | sysv4.2uw2*)
6003 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6004 if test -n "$kargmax"; then
6005 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6006 else
6007 lt_cv_sys_max_cmd_len=32768
6011 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6012 if test -n "$lt_cv_sys_max_cmd_len"; then
6013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6015 else
6016 # Make teststring a little bigger before we do anything with it.
6017 # a 1K string should be a reasonable start.
6018 for i in 1 2 3 4 5 6 7 8 ; do
6019 teststring=$teststring$teststring
6020 done
6021 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6022 # If test is not a shell built-in, we'll probably end up computing a
6023 # maximum length that is only half of the actual maximum length, but
6024 # we can't tell.
6025 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6026 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6027 test $i != 17 # 1/2 MB should be enough
6029 i=`expr $i + 1`
6030 teststring=$teststring$teststring
6031 done
6032 # Only check the string length outside the loop.
6033 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6034 teststring=
6035 # Add a significant safety factor because C++ compilers can tack on
6036 # massive amounts of additional arguments before passing them to the
6037 # linker. It appears as though 1/2 is a usable value.
6038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6041 esac
6045 if test -n $lt_cv_sys_max_cmd_len ; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6047 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6048 else
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6050 $as_echo "none" >&6; }
6052 max_cmd_len=$lt_cv_sys_max_cmd_len
6059 : ${CP="cp -f"}
6060 : ${MV="mv -f"}
6061 : ${RM="rm -f"}
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6064 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6065 # Try some XSI features
6066 xsi_shell=no
6067 ( _lt_dummy="a/b/c"
6068 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6069 = c,a/b,, \
6070 && eval 'test $(( 1 + 1 )) -eq 2 \
6071 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6072 && xsi_shell=yes
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6074 $as_echo "$xsi_shell" >&6; }
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6078 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6079 lt_shell_append=no
6080 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6081 >/dev/null 2>&1 \
6082 && lt_shell_append=yes
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6084 $as_echo "$lt_shell_append" >&6; }
6087 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6088 lt_unset=unset
6089 else
6090 lt_unset=false
6097 # test EBCDIC or ASCII
6098 case `echo X|tr X '\101'` in
6099 A) # ASCII based system
6100 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6101 lt_SP2NL='tr \040 \012'
6102 lt_NL2SP='tr \015\012 \040\040'
6104 *) # EBCDIC based system
6105 lt_SP2NL='tr \100 \n'
6106 lt_NL2SP='tr \r\n \100\100'
6108 esac
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6119 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6120 if ${lt_cv_ld_reload_flag+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 lt_cv_ld_reload_flag='-r'
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6126 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6127 reload_flag=$lt_cv_ld_reload_flag
6128 case $reload_flag in
6129 "" | " "*) ;;
6130 *) reload_flag=" $reload_flag" ;;
6131 esac
6132 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6133 case $host_os in
6134 darwin*)
6135 if test "$GCC" = yes; then
6136 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6137 else
6138 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6141 esac
6151 if test -n "$ac_tool_prefix"; then
6152 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6153 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if ${ac_cv_prog_OBJDUMP+:} false; then :
6157 $as_echo_n "(cached) " >&6
6158 else
6159 if test -n "$OBJDUMP"; then
6160 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6173 done
6174 done
6175 IFS=$as_save_IFS
6179 OBJDUMP=$ac_cv_prog_OBJDUMP
6180 if test -n "$OBJDUMP"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6182 $as_echo "$OBJDUMP" >&6; }
6183 else
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6190 if test -z "$ac_cv_prog_OBJDUMP"; then
6191 ac_ct_OBJDUMP=$OBJDUMP
6192 # Extract the first word of "objdump", so it can be a program name with args.
6193 set dummy objdump; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 if test -n "$ac_ct_OBJDUMP"; then
6200 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6213 done
6214 done
6215 IFS=$as_save_IFS
6219 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6220 if test -n "$ac_ct_OBJDUMP"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6222 $as_echo "$ac_ct_OBJDUMP" >&6; }
6223 else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6228 if test "x$ac_ct_OBJDUMP" = x; then
6229 OBJDUMP="false"
6230 else
6231 case $cross_compiling:$ac_tool_warned in
6232 yes:)
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6235 ac_tool_warned=yes ;;
6236 esac
6237 OBJDUMP=$ac_ct_OBJDUMP
6239 else
6240 OBJDUMP="$ac_cv_prog_OBJDUMP"
6243 test -z "$OBJDUMP" && OBJDUMP=objdump
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6254 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6255 if ${lt_cv_deplibs_check_method+:} false; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 lt_cv_file_magic_cmd='$MAGIC_CMD'
6259 lt_cv_file_magic_test_file=
6260 lt_cv_deplibs_check_method='unknown'
6261 # Need to set the preceding variable on all platforms that support
6262 # interlibrary dependencies.
6263 # 'none' -- dependencies not supported.
6264 # `unknown' -- same as none, but documents that we really don't know.
6265 # 'pass_all' -- all dependencies passed with no checks.
6266 # 'test_compile' -- check by making test program.
6267 # 'file_magic [[regex]]' -- check by looking for files in library path
6268 # which responds to the $file_magic_cmd with a given extended regex.
6269 # If you have `file' or equivalent on your system and you're not sure
6270 # whether `pass_all' will *always* work, you probably want this one.
6272 case $host_os in
6273 aix[4-9]*)
6274 lt_cv_deplibs_check_method=pass_all
6277 beos*)
6278 lt_cv_deplibs_check_method=pass_all
6281 bsdi[45]*)
6282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6283 lt_cv_file_magic_cmd='/usr/bin/file -L'
6284 lt_cv_file_magic_test_file=/shlib/libc.so
6287 cygwin*)
6288 # func_win32_libid is a shell function defined in ltmain.sh
6289 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6290 lt_cv_file_magic_cmd='func_win32_libid'
6293 mingw* | pw32*)
6294 # Base MSYS/MinGW do not provide the 'file' command needed by
6295 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6296 # unless we find 'file', for example because we are cross-compiling.
6297 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6298 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6300 lt_cv_file_magic_cmd='func_win32_libid'
6301 else
6302 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6303 lt_cv_file_magic_cmd='$OBJDUMP -f'
6307 cegcc*)
6308 # use the weaker test based on 'objdump'. See mingw*.
6309 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6310 lt_cv_file_magic_cmd='$OBJDUMP -f'
6313 darwin* | rhapsody*)
6314 lt_cv_deplibs_check_method=pass_all
6317 freebsd* | dragonfly*)
6318 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6319 case $host_cpu in
6320 i*86 )
6321 # Not sure whether the presence of OpenBSD here was a mistake.
6322 # Let's accept both of them until this is cleared up.
6323 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6324 lt_cv_file_magic_cmd=/usr/bin/file
6325 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6327 esac
6328 else
6329 lt_cv_deplibs_check_method=pass_all
6333 gnu*)
6334 lt_cv_deplibs_check_method=pass_all
6337 haiku*)
6338 lt_cv_deplibs_check_method=pass_all
6341 hpux10.20* | hpux11*)
6342 lt_cv_file_magic_cmd=/usr/bin/file
6343 case $host_cpu in
6344 ia64*)
6345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6346 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6348 hppa*64*)
6349 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]'
6350 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6353 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6354 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6356 esac
6359 interix[3-9]*)
6360 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6364 irix5* | irix6* | nonstopux*)
6365 case $LD in
6366 *-32|*"-32 ") libmagic=32-bit;;
6367 *-n32|*"-n32 ") libmagic=N32;;
6368 *-64|*"-64 ") libmagic=64-bit;;
6369 *) libmagic=never-match;;
6370 esac
6371 lt_cv_deplibs_check_method=pass_all
6374 # This must be Linux ELF.
6375 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6376 lt_cv_deplibs_check_method=pass_all
6379 netbsd*)
6380 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6382 else
6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6387 newos6*)
6388 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6389 lt_cv_file_magic_cmd=/usr/bin/file
6390 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6393 *nto* | *qnx*)
6394 lt_cv_deplibs_check_method=pass_all
6397 openbsd*)
6398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6400 else
6401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6405 osf3* | osf4* | osf5*)
6406 lt_cv_deplibs_check_method=pass_all
6409 rdos*)
6410 lt_cv_deplibs_check_method=pass_all
6413 solaris*)
6414 lt_cv_deplibs_check_method=pass_all
6417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6418 lt_cv_deplibs_check_method=pass_all
6421 sysv4 | sysv4.3*)
6422 case $host_vendor in
6423 motorola)
6424 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]'
6425 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6427 ncr)
6428 lt_cv_deplibs_check_method=pass_all
6430 sequent)
6431 lt_cv_file_magic_cmd='/bin/file'
6432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6434 sni)
6435 lt_cv_file_magic_cmd='/bin/file'
6436 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6437 lt_cv_file_magic_test_file=/lib/libc.so
6439 siemens)
6440 lt_cv_deplibs_check_method=pass_all
6443 lt_cv_deplibs_check_method=pass_all
6445 esac
6448 tpf*)
6449 lt_cv_deplibs_check_method=pass_all
6451 vxworks*)
6452 # Assume VxWorks cross toolchains are built on Linux, possibly
6453 # as canadian for Windows hosts.
6454 lt_cv_deplibs_check_method=pass_all
6456 esac
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6460 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6461 file_magic_cmd=$lt_cv_file_magic_cmd
6462 deplibs_check_method=$lt_cv_deplibs_check_method
6463 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6476 plugin_option=
6477 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6478 for plugin in $plugin_names; do
6479 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6480 if test x$plugin_so = x$plugin; then
6481 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6483 if test x$plugin_so != x$plugin; then
6484 plugin_option="--plugin $plugin_so"
6485 break
6487 done
6489 if test -n "$ac_tool_prefix"; then
6490 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6491 set dummy ${ac_tool_prefix}ar; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_prog_AR+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if test -n "$AR"; then
6498 ac_cv_prog_AR="$AR" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_AR="${ac_tool_prefix}ar"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6511 done
6512 done
6513 IFS=$as_save_IFS
6517 AR=$ac_cv_prog_AR
6518 if test -n "$AR"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6520 $as_echo "$AR" >&6; }
6521 else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6528 if test -z "$ac_cv_prog_AR"; then
6529 ac_ct_AR=$AR
6530 # Extract the first word of "ar", so it can be a program name with args.
6531 set dummy ar; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 if test -n "$ac_ct_AR"; then
6538 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6547 ac_cv_prog_ac_ct_AR="ar"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 break 2
6551 done
6552 done
6553 IFS=$as_save_IFS
6557 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6558 if test -n "$ac_ct_AR"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6560 $as_echo "$ac_ct_AR" >&6; }
6561 else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6566 if test "x$ac_ct_AR" = x; then
6567 AR="false"
6568 else
6569 case $cross_compiling:$ac_tool_warned in
6570 yes:)
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6573 ac_tool_warned=yes ;;
6574 esac
6575 AR=$ac_ct_AR
6577 else
6578 AR="$ac_cv_prog_AR"
6581 test -z "$AR" && AR=ar
6582 if test -n "$plugin_option"; then
6583 if $AR --help 2>&1 | grep -q "\--plugin"; then
6584 touch conftest.c
6585 $AR $plugin_option rc conftest.a conftest.c
6586 if test "$?" != 0; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6588 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6589 else
6590 AR="$AR $plugin_option"
6592 rm -f conftest.*
6595 test -z "$AR_FLAGS" && AR_FLAGS=cru
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}strip; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_prog_STRIP+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 if test -n "$STRIP"; then
6616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6629 done
6630 done
6631 IFS=$as_save_IFS
6635 STRIP=$ac_cv_prog_STRIP
6636 if test -n "$STRIP"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6638 $as_echo "$STRIP" >&6; }
6639 else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6646 if test -z "$ac_cv_prog_STRIP"; then
6647 ac_ct_STRIP=$STRIP
6648 # Extract the first word of "strip", so it can be a program name with args.
6649 set dummy strip; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 if test -n "$ac_ct_STRIP"; then
6656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6665 ac_cv_prog_ac_ct_STRIP="strip"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6669 done
6670 done
6671 IFS=$as_save_IFS
6675 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6676 if test -n "$ac_ct_STRIP"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6678 $as_echo "$ac_ct_STRIP" >&6; }
6679 else
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6684 if test "x$ac_ct_STRIP" = x; then
6685 STRIP=":"
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693 STRIP=$ac_ct_STRIP
6695 else
6696 STRIP="$ac_cv_prog_STRIP"
6699 test -z "$STRIP" && STRIP=:
6706 if test -n "$ac_tool_prefix"; then
6707 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6708 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if ${ac_cv_prog_RANLIB+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 if test -n "$RANLIB"; then
6715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6728 done
6729 done
6730 IFS=$as_save_IFS
6734 RANLIB=$ac_cv_prog_RANLIB
6735 if test -n "$RANLIB"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6737 $as_echo "$RANLIB" >&6; }
6738 else
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6745 if test -z "$ac_cv_prog_RANLIB"; then
6746 ac_ct_RANLIB=$RANLIB
6747 # Extract the first word of "ranlib", so it can be a program name with args.
6748 set dummy ranlib; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6754 if test -n "$ac_ct_RANLIB"; then
6755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764 ac_cv_prog_ac_ct_RANLIB="ranlib"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6768 done
6769 done
6770 IFS=$as_save_IFS
6774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6775 if test -n "$ac_ct_RANLIB"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6777 $as_echo "$ac_ct_RANLIB" >&6; }
6778 else
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6783 if test "x$ac_ct_RANLIB" = x; then
6784 RANLIB=":"
6785 else
6786 case $cross_compiling:$ac_tool_warned in
6787 yes:)
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6790 ac_tool_warned=yes ;;
6791 esac
6792 RANLIB=$ac_ct_RANLIB
6794 else
6795 RANLIB="$ac_cv_prog_RANLIB"
6798 test -z "$RANLIB" && RANLIB=:
6799 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6800 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6801 RANLIB="$RANLIB $plugin_option"
6810 # Determine commands to create old-style static archives.
6811 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6812 old_postinstall_cmds='chmod 644 $oldlib'
6813 old_postuninstall_cmds=
6815 if test -n "$RANLIB"; then
6816 case $host_os in
6817 openbsd*)
6818 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6821 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6823 esac
6824 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6827 case $host_os in
6828 darwin*)
6829 lock_old_archive_extraction=yes ;;
6831 lock_old_archive_extraction=no ;;
6832 esac
6854 for ac_prog in gawk mawk nawk awk
6856 # Extract the first word of "$ac_prog", so it can be a program name with args.
6857 set dummy $ac_prog; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_prog_AWK+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test -n "$AWK"; then
6864 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_AWK="$ac_prog"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6877 done
6878 done
6879 IFS=$as_save_IFS
6883 AWK=$ac_cv_prog_AWK
6884 if test -n "$AWK"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6886 $as_echo "$AWK" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6893 test -n "$AWK" && break
6894 done
6914 # If no C compiler was specified, use CC.
6915 LTCC=${LTCC-"$CC"}
6917 # If no C compiler flags were specified, use CFLAGS.
6918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6920 # Allow CC to be a program name with arguments.
6921 compiler=$CC
6924 # Check for command to grab the raw symbol name followed by C symbol from nm.
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6926 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6927 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6931 # These are sane defaults that work on at least a few old systems.
6932 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6934 # Character class describing NM global symbol codes.
6935 symcode='[BCDEGRST]'
6937 # Regexp to match symbols that can be accessed directly from C.
6938 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6940 # Define system-specific variables.
6941 case $host_os in
6942 aix*)
6943 symcode='[BCDT]'
6945 cygwin* | mingw* | pw32* | cegcc*)
6946 symcode='[ABCDGISTW]'
6948 hpux*)
6949 if test "$host_cpu" = ia64; then
6950 symcode='[ABCDEGRST]'
6953 irix* | nonstopux*)
6954 symcode='[BCDEGRST]'
6956 osf*)
6957 symcode='[BCDEGQRST]'
6959 solaris*)
6960 symcode='[BCDRT]'
6962 sco3.2v5*)
6963 symcode='[DT]'
6965 sysv4.2uw2*)
6966 symcode='[DT]'
6968 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6969 symcode='[ABDT]'
6971 sysv4)
6972 symcode='[DFNSTU]'
6974 esac
6976 # If we're using GNU nm, then use its standard symbol codes.
6977 case `$NM -V 2>&1` in
6978 *GNU* | *'with BFD'*)
6979 symcode='[ABCDGIRSTW]' ;;
6980 esac
6982 # Transform an extracted symbol line into a proper C declaration.
6983 # Some systems (esp. on ia64) link data and code symbols differently,
6984 # so use this general approach.
6985 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6987 # Transform an extracted symbol line into symbol name and symbol address
6988 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6989 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'"
6991 # Handle CRLF in mingw tool chain
6992 opt_cr=
6993 case $build_os in
6994 mingw*)
6995 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6997 esac
6999 # Try without a prefix underscore, then with it.
7000 for ac_symprfx in "" "_"; do
7002 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7003 symxfrm="\\1 $ac_symprfx\\2 \\2"
7005 # Write the raw and C identifiers.
7006 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7007 # Fake it for dumpbin and say T for any non-static function
7008 # and D for any global variable.
7009 # Also find C++ and __fastcall symbols from MSVC++,
7010 # which start with @ or ?.
7011 lt_cv_sys_global_symbol_pipe="$AWK '"\
7012 " {last_section=section; section=\$ 3};"\
7013 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7014 " \$ 0!~/External *\|/{next};"\
7015 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7016 " {if(hide[section]) next};"\
7017 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7018 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7019 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7020 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7021 " ' prfx=^$ac_symprfx"
7022 else
7023 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7026 # Check to see that the pipe works correctly.
7027 pipe_works=no
7029 rm -f conftest*
7030 cat > conftest.$ac_ext <<_LT_EOF
7031 #ifdef __cplusplus
7032 extern "C" {
7033 #endif
7034 char nm_test_var;
7035 void nm_test_func(void);
7036 void nm_test_func(void){}
7037 #ifdef __cplusplus
7039 #endif
7040 int main(){nm_test_var='a';nm_test_func();return(0);}
7041 _LT_EOF
7043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7044 (eval $ac_compile) 2>&5
7045 ac_status=$?
7046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7047 test $ac_status = 0; }; then
7048 # Now try to grab the symbols.
7049 nlist=conftest.nm
7050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7051 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7052 ac_status=$?
7053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054 test $ac_status = 0; } && test -s "$nlist"; then
7055 # Try sorting and uniquifying the output.
7056 if sort "$nlist" | uniq > "$nlist"T; then
7057 mv -f "$nlist"T "$nlist"
7058 else
7059 rm -f "$nlist"T
7062 # Make sure that we snagged all the symbols we need.
7063 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7064 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7065 cat <<_LT_EOF > conftest.$ac_ext
7066 #ifdef __cplusplus
7067 extern "C" {
7068 #endif
7070 _LT_EOF
7071 # Now generate the symbol file.
7072 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7074 cat <<_LT_EOF >> conftest.$ac_ext
7076 /* The mapping between symbol names and symbols. */
7077 const struct {
7078 const char *name;
7079 void *address;
7081 lt__PROGRAM__LTX_preloaded_symbols[] =
7083 { "@PROGRAM@", (void *) 0 },
7084 _LT_EOF
7085 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7086 cat <<\_LT_EOF >> conftest.$ac_ext
7087 {0, (void *) 0}
7090 /* This works around a problem in FreeBSD linker */
7091 #ifdef FREEBSD_WORKAROUND
7092 static const void *lt_preloaded_setup() {
7093 return lt__PROGRAM__LTX_preloaded_symbols;
7095 #endif
7097 #ifdef __cplusplus
7099 #endif
7100 _LT_EOF
7101 # Now try linking the two files.
7102 mv conftest.$ac_objext conftstm.$ac_objext
7103 lt_save_LIBS="$LIBS"
7104 lt_save_CFLAGS="$CFLAGS"
7105 LIBS="conftstm.$ac_objext"
7106 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7108 (eval $ac_link) 2>&5
7109 ac_status=$?
7110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7111 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7112 pipe_works=yes
7114 LIBS="$lt_save_LIBS"
7115 CFLAGS="$lt_save_CFLAGS"
7116 else
7117 echo "cannot find nm_test_func in $nlist" >&5
7119 else
7120 echo "cannot find nm_test_var in $nlist" >&5
7122 else
7123 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7125 else
7126 echo "$progname: failed program was:" >&5
7127 cat conftest.$ac_ext >&5
7129 rm -rf conftest* conftst*
7131 # Do not use the global_symbol_pipe unless it works.
7132 if test "$pipe_works" = yes; then
7133 break
7134 else
7135 lt_cv_sys_global_symbol_pipe=
7137 done
7141 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7142 lt_cv_sys_global_symbol_to_cdecl=
7144 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7146 $as_echo "failed" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7149 $as_echo "ok" >&6; }
7173 # Check whether --enable-libtool-lock was given.
7174 if test "${enable_libtool_lock+set}" = set; then :
7175 enableval=$enable_libtool_lock;
7178 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7180 # Some flags need to be propagated to the compiler or linker for good
7181 # libtool support.
7182 case $host in
7183 ia64-*-hpux*)
7184 # Find out which ABI we are using.
7185 echo 'int i;' > conftest.$ac_ext
7186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7187 (eval $ac_compile) 2>&5
7188 ac_status=$?
7189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7190 test $ac_status = 0; }; then
7191 case `/usr/bin/file conftest.$ac_objext` in
7192 *ELF-32*)
7193 HPUX_IA64_MODE="32"
7195 *ELF-64*)
7196 HPUX_IA64_MODE="64"
7198 esac
7200 rm -rf conftest*
7202 *-*-irix6*)
7203 # Find out which ABI we are using.
7204 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7206 (eval $ac_compile) 2>&5
7207 ac_status=$?
7208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7209 test $ac_status = 0; }; then
7210 if test "$lt_cv_prog_gnu_ld" = yes; then
7211 case `/usr/bin/file conftest.$ac_objext` in
7212 *32-bit*)
7213 LD="${LD-ld} -melf32bsmip"
7215 *N32*)
7216 LD="${LD-ld} -melf32bmipn32"
7218 *64-bit*)
7219 LD="${LD-ld} -melf64bmip"
7221 esac
7222 else
7223 case `/usr/bin/file conftest.$ac_objext` in
7224 *32-bit*)
7225 LD="${LD-ld} -32"
7227 *N32*)
7228 LD="${LD-ld} -n32"
7230 *64-bit*)
7231 LD="${LD-ld} -64"
7233 esac
7236 rm -rf conftest*
7239 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7240 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7241 # Find out which ABI we are using.
7242 echo 'int i;' > conftest.$ac_ext
7243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7244 (eval $ac_compile) 2>&5
7245 ac_status=$?
7246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7247 test $ac_status = 0; }; then
7248 case `/usr/bin/file conftest.o` in
7249 *32-bit*)
7250 case $host in
7251 x86_64-*kfreebsd*-gnu)
7252 LD="${LD-ld} -m elf_i386_fbsd"
7254 x86_64-*linux*)
7255 case `/usr/bin/file conftest.o` in
7256 *x86-64*)
7257 LD="${LD-ld} -m elf32_x86_64"
7260 LD="${LD-ld} -m elf_i386"
7262 esac
7264 powerpc64le-*linux*)
7265 LD="${LD-ld} -m elf32lppclinux"
7267 powerpc64-*linux*)
7268 LD="${LD-ld} -m elf32ppclinux"
7270 s390x-*linux*)
7271 LD="${LD-ld} -m elf_s390"
7273 sparc64-*linux*)
7274 LD="${LD-ld} -m elf32_sparc"
7276 esac
7278 *64-bit*)
7279 case $host in
7280 x86_64-*kfreebsd*-gnu)
7281 LD="${LD-ld} -m elf_x86_64_fbsd"
7283 x86_64-*linux*)
7284 LD="${LD-ld} -m elf_x86_64"
7286 powerpcle-*linux*)
7287 LD="${LD-ld} -m elf64lppc"
7289 powerpc-*linux*)
7290 LD="${LD-ld} -m elf64ppc"
7292 s390*-*linux*|s390*-*tpf*)
7293 LD="${LD-ld} -m elf64_s390"
7295 sparc*-*linux*)
7296 LD="${LD-ld} -m elf64_sparc"
7298 esac
7300 esac
7302 rm -rf conftest*
7305 *-*-sco3.2v5*)
7306 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7307 SAVE_CFLAGS="$CFLAGS"
7308 CFLAGS="$CFLAGS -belf"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7310 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7311 if ${lt_cv_cc_needs_belf+:} false; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314 ac_ext=c
7315 ac_cpp='$CPP $CPPFLAGS'
7316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7324 main ()
7328 return 0;
7330 _ACEOF
7331 if ac_fn_c_try_link "$LINENO"; then :
7332 lt_cv_cc_needs_belf=yes
7333 else
7334 lt_cv_cc_needs_belf=no
7336 rm -f core conftest.err conftest.$ac_objext \
7337 conftest$ac_exeext conftest.$ac_ext
7338 ac_ext=c
7339 ac_cpp='$CPP $CPPFLAGS'
7340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7346 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7347 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7349 CFLAGS="$SAVE_CFLAGS"
7352 sparc*-*solaris*)
7353 # Find out which ABI we are using.
7354 echo 'int i;' > conftest.$ac_ext
7355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7356 (eval $ac_compile) 2>&5
7357 ac_status=$?
7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7359 test $ac_status = 0; }; then
7360 case `/usr/bin/file conftest.o` in
7361 *64-bit*)
7362 case $lt_cv_prog_gnu_ld in
7363 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7365 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7366 LD="${LD-ld} -64"
7369 esac
7371 esac
7373 rm -rf conftest*
7375 esac
7377 need_locks="$enable_libtool_lock"
7380 case $host_os in
7381 rhapsody* | darwin*)
7382 if test -n "$ac_tool_prefix"; then
7383 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7384 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 if test -n "$DSYMUTIL"; then
7391 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7404 done
7405 done
7406 IFS=$as_save_IFS
7410 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7411 if test -n "$DSYMUTIL"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7413 $as_echo "$DSYMUTIL" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7421 if test -z "$ac_cv_prog_DSYMUTIL"; then
7422 ac_ct_DSYMUTIL=$DSYMUTIL
7423 # Extract the first word of "dsymutil", so it can be a program name with args.
7424 set dummy dsymutil; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 if test -n "$ac_ct_DSYMUTIL"; then
7431 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7432 else
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7444 done
7445 done
7446 IFS=$as_save_IFS
7450 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7451 if test -n "$ac_ct_DSYMUTIL"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7453 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7459 if test "x$ac_ct_DSYMUTIL" = x; then
7460 DSYMUTIL=":"
7461 else
7462 case $cross_compiling:$ac_tool_warned in
7463 yes:)
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7466 ac_tool_warned=yes ;;
7467 esac
7468 DSYMUTIL=$ac_ct_DSYMUTIL
7470 else
7471 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7474 if test -n "$ac_tool_prefix"; then
7475 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_NMEDIT+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 if test -n "$NMEDIT"; then
7483 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7496 done
7497 done
7498 IFS=$as_save_IFS
7502 NMEDIT=$ac_cv_prog_NMEDIT
7503 if test -n "$NMEDIT"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7505 $as_echo "$NMEDIT" >&6; }
7506 else
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7513 if test -z "$ac_cv_prog_NMEDIT"; then
7514 ac_ct_NMEDIT=$NMEDIT
7515 # Extract the first word of "nmedit", so it can be a program name with args.
7516 set dummy nmedit; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 if test -n "$ac_ct_NMEDIT"; then
7523 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7536 done
7537 done
7538 IFS=$as_save_IFS
7542 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7543 if test -n "$ac_ct_NMEDIT"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7545 $as_echo "$ac_ct_NMEDIT" >&6; }
7546 else
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7551 if test "x$ac_ct_NMEDIT" = x; then
7552 NMEDIT=":"
7553 else
7554 case $cross_compiling:$ac_tool_warned in
7555 yes:)
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558 ac_tool_warned=yes ;;
7559 esac
7560 NMEDIT=$ac_ct_NMEDIT
7562 else
7563 NMEDIT="$ac_cv_prog_NMEDIT"
7566 if test -n "$ac_tool_prefix"; then
7567 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7568 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_LIPO+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 if test -n "$LIPO"; then
7575 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7588 done
7589 done
7590 IFS=$as_save_IFS
7594 LIPO=$ac_cv_prog_LIPO
7595 if test -n "$LIPO"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7597 $as_echo "$LIPO" >&6; }
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7605 if test -z "$ac_cv_prog_LIPO"; then
7606 ac_ct_LIPO=$LIPO
7607 # Extract the first word of "lipo", so it can be a program name with args.
7608 set dummy lipo; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7614 if test -n "$ac_ct_LIPO"; then
7615 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7616 else
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_ac_ct_LIPO="lipo"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 break 2
7628 done
7629 done
7630 IFS=$as_save_IFS
7634 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7635 if test -n "$ac_ct_LIPO"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7637 $as_echo "$ac_ct_LIPO" >&6; }
7638 else
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7643 if test "x$ac_ct_LIPO" = x; then
7644 LIPO=":"
7645 else
7646 case $cross_compiling:$ac_tool_warned in
7647 yes:)
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7650 ac_tool_warned=yes ;;
7651 esac
7652 LIPO=$ac_ct_LIPO
7654 else
7655 LIPO="$ac_cv_prog_LIPO"
7658 if test -n "$ac_tool_prefix"; then
7659 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7660 set dummy ${ac_tool_prefix}otool; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_OTOOL+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 if test -n "$OTOOL"; then
7667 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7680 done
7681 done
7682 IFS=$as_save_IFS
7686 OTOOL=$ac_cv_prog_OTOOL
7687 if test -n "$OTOOL"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7689 $as_echo "$OTOOL" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7697 if test -z "$ac_cv_prog_OTOOL"; then
7698 ac_ct_OTOOL=$OTOOL
7699 # Extract the first word of "otool", so it can be a program name with args.
7700 set dummy otool; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 if test -n "$ac_ct_OTOOL"; then
7707 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7712 IFS=$as_save_IFS
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716 ac_cv_prog_ac_ct_OTOOL="otool"
7717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 break 2
7720 done
7721 done
7722 IFS=$as_save_IFS
7726 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7727 if test -n "$ac_ct_OTOOL"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7729 $as_echo "$ac_ct_OTOOL" >&6; }
7730 else
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7735 if test "x$ac_ct_OTOOL" = x; then
7736 OTOOL=":"
7737 else
7738 case $cross_compiling:$ac_tool_warned in
7739 yes:)
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7742 ac_tool_warned=yes ;;
7743 esac
7744 OTOOL=$ac_ct_OTOOL
7746 else
7747 OTOOL="$ac_cv_prog_OTOOL"
7750 if test -n "$ac_tool_prefix"; then
7751 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7752 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_prog_OTOOL64+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 if test -n "$OTOOL64"; then
7759 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7772 done
7773 done
7774 IFS=$as_save_IFS
7778 OTOOL64=$ac_cv_prog_OTOOL64
7779 if test -n "$OTOOL64"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7781 $as_echo "$OTOOL64" >&6; }
7782 else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7789 if test -z "$ac_cv_prog_OTOOL64"; then
7790 ac_ct_OTOOL64=$OTOOL64
7791 # Extract the first word of "otool64", so it can be a program name with args.
7792 set dummy otool64; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$ac_ct_OTOOL64"; then
7799 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_ac_ct_OTOOL64="otool64"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7819 if test -n "$ac_ct_OTOOL64"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7821 $as_echo "$ac_ct_OTOOL64" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7827 if test "x$ac_ct_OTOOL64" = x; then
7828 OTOOL64=":"
7829 else
7830 case $cross_compiling:$ac_tool_warned in
7831 yes:)
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7834 ac_tool_warned=yes ;;
7835 esac
7836 OTOOL64=$ac_ct_OTOOL64
7838 else
7839 OTOOL64="$ac_cv_prog_OTOOL64"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7869 $as_echo_n "checking for -single_module linker flag... " >&6; }
7870 if ${lt_cv_apple_cc_single_mod+:} false; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 lt_cv_apple_cc_single_mod=no
7874 if test -z "${LT_MULTI_MODULE}"; then
7875 # By default we will add the -single_module flag. You can override
7876 # by either setting the environment variable LT_MULTI_MODULE
7877 # non-empty at configure time, or by adding -multi_module to the
7878 # link flags.
7879 rm -rf libconftest.dylib*
7880 echo "int foo(void){return 1;}" > conftest.c
7881 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7882 -dynamiclib -Wl,-single_module conftest.c" >&5
7883 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7884 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7885 _lt_result=$?
7886 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7887 lt_cv_apple_cc_single_mod=yes
7888 else
7889 cat conftest.err >&5
7891 rm -rf libconftest.dylib*
7892 rm -f conftest.*
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7896 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7898 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7899 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 lt_cv_ld_exported_symbols_list=no
7903 save_LDFLAGS=$LDFLAGS
7904 echo "_main" > conftest.sym
7905 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7910 main ()
7914 return 0;
7916 _ACEOF
7917 if ac_fn_c_try_link "$LINENO"; then :
7918 lt_cv_ld_exported_symbols_list=yes
7919 else
7920 lt_cv_ld_exported_symbols_list=no
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924 LDFLAGS="$save_LDFLAGS"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7928 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7930 $as_echo_n "checking for -force_load linker flag... " >&6; }
7931 if ${lt_cv_ld_force_load+:} false; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 lt_cv_ld_force_load=no
7935 cat > conftest.c << _LT_EOF
7936 int forced_loaded() { return 2;}
7937 _LT_EOF
7938 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7939 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7940 echo "$AR cru libconftest.a conftest.o" >&5
7941 $AR cru libconftest.a conftest.o 2>&5
7942 cat > conftest.c << _LT_EOF
7943 int main() { return 0;}
7944 _LT_EOF
7945 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7946 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7947 _lt_result=$?
7948 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7949 lt_cv_ld_force_load=yes
7950 else
7951 cat conftest.err >&5
7953 rm -f conftest.err libconftest.a conftest conftest.c
7954 rm -rf conftest.dSYM
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7958 $as_echo "$lt_cv_ld_force_load" >&6; }
7959 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7960 # build without first building modern cctools / linker.
7961 case $host_cpu-$host_os in
7962 *-rhapsody* | *-darwin1.[012])
7963 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7964 *-darwin1.*)
7965 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7966 *-darwin*)
7967 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7968 # deployment target is forced to an earlier version.
7969 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7970 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7972 10.[012][,.]*)
7973 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7977 esac
7979 esac
7980 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7981 _lt_dar_single_mod='$single_module'
7983 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7984 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7985 else
7986 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7988 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7989 _lt_dsymutil='~$DSYMUTIL $lib || :'
7990 else
7991 _lt_dsymutil=
7994 esac
7996 for ac_header in dlfcn.h
7997 do :
7998 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8000 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8001 cat >>confdefs.h <<_ACEOF
8002 #define HAVE_DLFCN_H 1
8003 _ACEOF
8007 done
8014 # Set options
8018 enable_dlopen=no
8021 enable_win32_dll=no
8024 # Check whether --enable-shared was given.
8025 if test "${enable_shared+set}" = set; then :
8026 enableval=$enable_shared; p=${PACKAGE-default}
8027 case $enableval in
8028 yes) enable_shared=yes ;;
8029 no) enable_shared=no ;;
8031 enable_shared=no
8032 # Look at the argument we got. We use all the common list separators.
8033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8034 for pkg in $enableval; do
8035 IFS="$lt_save_ifs"
8036 if test "X$pkg" = "X$p"; then
8037 enable_shared=yes
8039 done
8040 IFS="$lt_save_ifs"
8042 esac
8043 else
8044 enable_shared=yes
8055 # Check whether --enable-static was given.
8056 if test "${enable_static+set}" = set; then :
8057 enableval=$enable_static; p=${PACKAGE-default}
8058 case $enableval in
8059 yes) enable_static=yes ;;
8060 no) enable_static=no ;;
8062 enable_static=no
8063 # Look at the argument we got. We use all the common list separators.
8064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8065 for pkg in $enableval; do
8066 IFS="$lt_save_ifs"
8067 if test "X$pkg" = "X$p"; then
8068 enable_static=yes
8070 done
8071 IFS="$lt_save_ifs"
8073 esac
8074 else
8075 enable_static=yes
8087 # Check whether --with-pic was given.
8088 if test "${with_pic+set}" = set; then :
8089 withval=$with_pic; pic_mode="$withval"
8090 else
8091 pic_mode=default
8095 test -z "$pic_mode" && pic_mode=default
8103 # Check whether --enable-fast-install was given.
8104 if test "${enable_fast_install+set}" = set; then :
8105 enableval=$enable_fast_install; p=${PACKAGE-default}
8106 case $enableval in
8107 yes) enable_fast_install=yes ;;
8108 no) enable_fast_install=no ;;
8110 enable_fast_install=no
8111 # Look at the argument we got. We use all the common list separators.
8112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8113 for pkg in $enableval; do
8114 IFS="$lt_save_ifs"
8115 if test "X$pkg" = "X$p"; then
8116 enable_fast_install=yes
8118 done
8119 IFS="$lt_save_ifs"
8121 esac
8122 else
8123 enable_fast_install=yes
8136 # This can be used to rebuild libtool when needed
8137 LIBTOOL_DEPS="$ltmain"
8139 # Always use our own libtool.
8140 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8167 test -z "$LN_S" && LN_S="ln -s"
8182 if test -n "${ZSH_VERSION+set}" ; then
8183 setopt NO_GLOB_SUBST
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8187 $as_echo_n "checking for objdir... " >&6; }
8188 if ${lt_cv_objdir+:} false; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 rm -f .libs 2>/dev/null
8192 mkdir .libs 2>/dev/null
8193 if test -d .libs; then
8194 lt_cv_objdir=.libs
8195 else
8196 # MS-DOS does not allow filenames that begin with a dot.
8197 lt_cv_objdir=_libs
8199 rmdir .libs 2>/dev/null
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8202 $as_echo "$lt_cv_objdir" >&6; }
8203 objdir=$lt_cv_objdir
8209 cat >>confdefs.h <<_ACEOF
8210 #define LT_OBJDIR "$lt_cv_objdir/"
8211 _ACEOF
8216 case $host_os in
8217 aix3*)
8218 # AIX sometimes has problems with the GCC collect2 program. For some
8219 # reason, if we set the COLLECT_NAMES environment variable, the problems
8220 # vanish in a puff of smoke.
8221 if test "X${COLLECT_NAMES+set}" != Xset; then
8222 COLLECT_NAMES=
8223 export COLLECT_NAMES
8226 esac
8228 # Global variables:
8229 ofile=libtool
8230 can_build_shared=yes
8232 # All known linkers require a `.a' archive for static linking (except MSVC,
8233 # which needs '.lib').
8234 libext=a
8236 with_gnu_ld="$lt_cv_prog_gnu_ld"
8238 old_CC="$CC"
8239 old_CFLAGS="$CFLAGS"
8241 # Set sane defaults for various variables
8242 test -z "$CC" && CC=cc
8243 test -z "$LTCC" && LTCC=$CC
8244 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8245 test -z "$LD" && LD=ld
8246 test -z "$ac_objext" && ac_objext=o
8248 for cc_temp in $compiler""; do
8249 case $cc_temp in
8250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8252 \-*) ;;
8253 *) break;;
8254 esac
8255 done
8256 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8259 # Only perform the check for file, if the check method requires it
8260 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8261 case $deplibs_check_method in
8262 file_magic*)
8263 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8265 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8266 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 case $MAGIC_CMD in
8270 [\\/*] | ?:[\\/]*)
8271 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8274 lt_save_MAGIC_CMD="$MAGIC_CMD"
8275 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8276 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8277 for ac_dir in $ac_dummy; do
8278 IFS="$lt_save_ifs"
8279 test -z "$ac_dir" && ac_dir=.
8280 if test -f $ac_dir/${ac_tool_prefix}file; then
8281 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8282 if test -n "$file_magic_test_file"; then
8283 case $deplibs_check_method in
8284 "file_magic "*)
8285 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8287 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8288 $EGREP "$file_magic_regex" > /dev/null; then
8290 else
8291 cat <<_LT_EOF 1>&2
8293 *** Warning: the command libtool uses to detect shared libraries,
8294 *** $file_magic_cmd, produces output that libtool cannot recognize.
8295 *** The result is that libtool may fail to recognize shared libraries
8296 *** as such. This will affect the creation of libtool libraries that
8297 *** depend on shared libraries, but programs linked with such libtool
8298 *** libraries will work regardless of this problem. Nevertheless, you
8299 *** may want to report the problem to your system manager and/or to
8300 *** bug-libtool@gnu.org
8302 _LT_EOF
8303 fi ;;
8304 esac
8306 break
8308 done
8309 IFS="$lt_save_ifs"
8310 MAGIC_CMD="$lt_save_MAGIC_CMD"
8312 esac
8315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8316 if test -n "$MAGIC_CMD"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8318 $as_echo "$MAGIC_CMD" >&6; }
8319 else
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321 $as_echo "no" >&6; }
8328 if test -z "$lt_cv_path_MAGIC_CMD"; then
8329 if test -n "$ac_tool_prefix"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8331 $as_echo_n "checking for file... " >&6; }
8332 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 case $MAGIC_CMD in
8336 [\\/*] | ?:[\\/]*)
8337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8340 lt_save_MAGIC_CMD="$MAGIC_CMD"
8341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8342 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8343 for ac_dir in $ac_dummy; do
8344 IFS="$lt_save_ifs"
8345 test -z "$ac_dir" && ac_dir=.
8346 if test -f $ac_dir/file; then
8347 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8348 if test -n "$file_magic_test_file"; then
8349 case $deplibs_check_method in
8350 "file_magic "*)
8351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8354 $EGREP "$file_magic_regex" > /dev/null; then
8356 else
8357 cat <<_LT_EOF 1>&2
8359 *** Warning: the command libtool uses to detect shared libraries,
8360 *** $file_magic_cmd, produces output that libtool cannot recognize.
8361 *** The result is that libtool may fail to recognize shared libraries
8362 *** as such. This will affect the creation of libtool libraries that
8363 *** depend on shared libraries, but programs linked with such libtool
8364 *** libraries will work regardless of this problem. Nevertheless, you
8365 *** may want to report the problem to your system manager and/or to
8366 *** bug-libtool@gnu.org
8368 _LT_EOF
8369 fi ;;
8370 esac
8372 break
8374 done
8375 IFS="$lt_save_ifs"
8376 MAGIC_CMD="$lt_save_MAGIC_CMD"
8378 esac
8381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8382 if test -n "$MAGIC_CMD"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8384 $as_echo "$MAGIC_CMD" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8391 else
8392 MAGIC_CMD=:
8398 esac
8400 # Use C for the default configuration in the libtool script
8402 lt_save_CC="$CC"
8403 ac_ext=c
8404 ac_cpp='$CPP $CPPFLAGS'
8405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410 # Source file extension for C test sources.
8411 ac_ext=c
8413 # Object file extension for compiled C test sources.
8414 objext=o
8415 objext=$objext
8417 # Code to be used in simple compile tests
8418 lt_simple_compile_test_code="int some_variable = 0;"
8420 # Code to be used in simple link tests
8421 lt_simple_link_test_code='int main(){return(0);}'
8429 # If no C compiler was specified, use CC.
8430 LTCC=${LTCC-"$CC"}
8432 # If no C compiler flags were specified, use CFLAGS.
8433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8435 # Allow CC to be a program name with arguments.
8436 compiler=$CC
8438 # Save the default compiler, since it gets overwritten when the other
8439 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8440 compiler_DEFAULT=$CC
8442 # save warnings/boilerplate of simple test code
8443 ac_outfile=conftest.$ac_objext
8444 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8445 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8446 _lt_compiler_boilerplate=`cat conftest.err`
8447 $RM conftest*
8449 ac_outfile=conftest.$ac_objext
8450 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8451 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8452 _lt_linker_boilerplate=`cat conftest.err`
8453 $RM -r conftest*
8456 ## CAVEAT EMPTOR:
8457 ## There is no encapsulation within the following macros, do not change
8458 ## the running order or otherwise move them around unless you know exactly
8459 ## what you are doing...
8460 if test -n "$compiler"; then
8462 lt_prog_compiler_no_builtin_flag=
8464 if test "$GCC" = yes; then
8465 case $cc_basename in
8466 nvcc*)
8467 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8469 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8470 esac
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8473 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8474 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 lt_cv_prog_compiler_rtti_exceptions=no
8478 ac_outfile=conftest.$ac_objext
8479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8480 lt_compiler_flag="-fno-rtti -fno-exceptions"
8481 # Insert the option either (1) after the last *FLAGS variable, or
8482 # (2) before a word containing "conftest.", or (3) at the end.
8483 # Note that $ac_compile itself does not contain backslashes and begins
8484 # with a dollar sign (not a hyphen), so the echo should work correctly.
8485 # The option is referenced via a variable to avoid confusing sed.
8486 lt_compile=`echo "$ac_compile" | $SED \
8487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8489 -e 's:$: $lt_compiler_flag:'`
8490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8491 (eval "$lt_compile" 2>conftest.err)
8492 ac_status=$?
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 if (exit $ac_status) && test -s "$ac_outfile"; then
8496 # The compiler can only warn and ignore the option if not recognized
8497 # So say no if there are warnings other than the usual output.
8498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8501 lt_cv_prog_compiler_rtti_exceptions=yes
8504 $RM conftest*
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8508 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8510 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8511 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8512 else
8523 lt_prog_compiler_wl=
8524 lt_prog_compiler_pic=
8525 lt_prog_compiler_static=
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8528 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8530 if test "$GCC" = yes; then
8531 lt_prog_compiler_wl='-Wl,'
8532 lt_prog_compiler_static='-static'
8534 case $host_os in
8535 aix*)
8536 # All AIX code is PIC.
8537 if test "$host_cpu" = ia64; then
8538 # AIX 5 now supports IA64 processor
8539 lt_prog_compiler_static='-Bstatic'
8541 lt_prog_compiler_pic='-fPIC'
8544 amigaos*)
8545 case $host_cpu in
8546 powerpc)
8547 # see comment about AmigaOS4 .so support
8548 lt_prog_compiler_pic='-fPIC'
8550 m68k)
8551 # FIXME: we need at least 68020 code to build shared libraries, but
8552 # adding the `-m68020' flag to GCC prevents building anything better,
8553 # like `-m68040'.
8554 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8556 esac
8559 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8560 # PIC is the default for these OSes.
8563 mingw* | cygwin* | pw32* | os2* | cegcc*)
8564 # This hack is so that the source file can tell whether it is being
8565 # built for inclusion in a dll (and should export symbols for example).
8566 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8567 # (--disable-auto-import) libraries
8568 lt_prog_compiler_pic='-DDLL_EXPORT'
8571 darwin* | rhapsody*)
8572 # PIC is the default on this platform
8573 # Common symbols not allowed in MH_DYLIB files
8574 lt_prog_compiler_pic='-fno-common'
8577 haiku*)
8578 # PIC is the default for Haiku.
8579 # The "-static" flag exists, but is broken.
8580 lt_prog_compiler_static=
8583 hpux*)
8584 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8585 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8586 # sets the default TLS model and affects inlining.
8587 case $host_cpu in
8588 hppa*64*)
8589 # +Z the default
8592 lt_prog_compiler_pic='-fPIC'
8594 esac
8597 interix[3-9]*)
8598 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8599 # Instead, we relocate shared libraries at runtime.
8602 msdosdjgpp*)
8603 # Just because we use GCC doesn't mean we suddenly get shared libraries
8604 # on systems that don't support them.
8605 lt_prog_compiler_can_build_shared=no
8606 enable_shared=no
8609 *nto* | *qnx*)
8610 # QNX uses GNU C++, but need to define -shared option too, otherwise
8611 # it will coredump.
8612 lt_prog_compiler_pic='-fPIC -shared'
8615 sysv4*MP*)
8616 if test -d /usr/nec; then
8617 lt_prog_compiler_pic=-Kconform_pic
8622 lt_prog_compiler_pic='-fPIC'
8624 esac
8626 case $cc_basename in
8627 nvcc*) # Cuda Compiler Driver 2.2
8628 lt_prog_compiler_wl='-Xlinker '
8629 lt_prog_compiler_pic='-Xcompiler -fPIC'
8631 esac
8632 else
8633 # PORTME Check for flag to pass linker flags through the system compiler.
8634 case $host_os in
8635 aix*)
8636 lt_prog_compiler_wl='-Wl,'
8637 if test "$host_cpu" = ia64; then
8638 # AIX 5 now supports IA64 processor
8639 lt_prog_compiler_static='-Bstatic'
8640 else
8641 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8645 mingw* | cygwin* | pw32* | os2* | cegcc*)
8646 # This hack is so that the source file can tell whether it is being
8647 # built for inclusion in a dll (and should export symbols for example).
8648 lt_prog_compiler_pic='-DDLL_EXPORT'
8651 hpux9* | hpux10* | hpux11*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8654 # not for PA HP-UX.
8655 case $host_cpu in
8656 hppa*64*|ia64*)
8657 # +Z the default
8660 lt_prog_compiler_pic='+Z'
8662 esac
8663 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8664 lt_prog_compiler_static='${wl}-a ${wl}archive'
8667 irix5* | irix6* | nonstopux*)
8668 lt_prog_compiler_wl='-Wl,'
8669 # PIC (with -KPIC) is the default.
8670 lt_prog_compiler_static='-non_shared'
8673 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8674 case $cc_basename in
8675 # old Intel for x86_64 which still supported -KPIC.
8676 ecc*)
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-static'
8681 # icc used to be incompatible with GCC.
8682 # ICC 10 doesn't accept -KPIC any more.
8683 icc* | ifort*)
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-fPIC'
8686 lt_prog_compiler_static='-static'
8688 # Lahey Fortran 8.1.
8689 lf95*)
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='--shared'
8692 lt_prog_compiler_static='--static'
8694 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8695 # Portland Group compilers (*not* the Pentium gcc compiler,
8696 # which looks to be a dead project)
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_pic='-fpic'
8699 lt_prog_compiler_static='-Bstatic'
8701 ccc*)
8702 lt_prog_compiler_wl='-Wl,'
8703 # All Alpha code is PIC.
8704 lt_prog_compiler_static='-non_shared'
8706 xl* | bgxl* | bgf* | mpixl*)
8707 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8708 lt_prog_compiler_wl='-Wl,'
8709 lt_prog_compiler_pic='-qpic'
8710 lt_prog_compiler_static='-qstaticlink'
8713 case `$CC -V 2>&1 | sed 5q` in
8714 *Sun\ F* | *Sun*Fortran*)
8715 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8716 lt_prog_compiler_pic='-KPIC'
8717 lt_prog_compiler_static='-Bstatic'
8718 lt_prog_compiler_wl=''
8720 *Sun\ C*)
8721 # Sun C 5.9
8722 lt_prog_compiler_pic='-KPIC'
8723 lt_prog_compiler_static='-Bstatic'
8724 lt_prog_compiler_wl='-Wl,'
8726 esac
8728 esac
8731 newsos6)
8732 lt_prog_compiler_pic='-KPIC'
8733 lt_prog_compiler_static='-Bstatic'
8736 *nto* | *qnx*)
8737 # QNX uses GNU C++, but need to define -shared option too, otherwise
8738 # it will coredump.
8739 lt_prog_compiler_pic='-fPIC -shared'
8742 osf3* | osf4* | osf5*)
8743 lt_prog_compiler_wl='-Wl,'
8744 # All OSF/1 code is PIC.
8745 lt_prog_compiler_static='-non_shared'
8748 rdos*)
8749 lt_prog_compiler_static='-non_shared'
8752 solaris*)
8753 lt_prog_compiler_pic='-KPIC'
8754 lt_prog_compiler_static='-Bstatic'
8755 case $cc_basename in
8756 f77* | f90* | f95*)
8757 lt_prog_compiler_wl='-Qoption ld ';;
8759 lt_prog_compiler_wl='-Wl,';;
8760 esac
8763 sunos4*)
8764 lt_prog_compiler_wl='-Qoption ld '
8765 lt_prog_compiler_pic='-PIC'
8766 lt_prog_compiler_static='-Bstatic'
8769 sysv4 | sysv4.2uw2* | sysv4.3*)
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_pic='-KPIC'
8772 lt_prog_compiler_static='-Bstatic'
8775 sysv4*MP*)
8776 if test -d /usr/nec ;then
8777 lt_prog_compiler_pic='-Kconform_pic'
8778 lt_prog_compiler_static='-Bstatic'
8782 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_pic='-KPIC'
8785 lt_prog_compiler_static='-Bstatic'
8788 unicos*)
8789 lt_prog_compiler_wl='-Wl,'
8790 lt_prog_compiler_can_build_shared=no
8793 uts4*)
8794 lt_prog_compiler_pic='-pic'
8795 lt_prog_compiler_static='-Bstatic'
8799 lt_prog_compiler_can_build_shared=no
8801 esac
8804 case $host_os in
8805 # For platforms which do not support PIC, -DPIC is meaningless:
8806 *djgpp*)
8807 lt_prog_compiler_pic=
8810 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8812 esac
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8814 $as_echo "$lt_prog_compiler_pic" >&6; }
8822 # Check to make sure the PIC flag actually works.
8824 if test -n "$lt_prog_compiler_pic"; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8826 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8827 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 lt_cv_prog_compiler_pic_works=no
8831 ac_outfile=conftest.$ac_objext
8832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8833 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8834 # Insert the option either (1) after the last *FLAGS variable, or
8835 # (2) before a word containing "conftest.", or (3) at the end.
8836 # Note that $ac_compile itself does not contain backslashes and begins
8837 # with a dollar sign (not a hyphen), so the echo should work correctly.
8838 # The option is referenced via a variable to avoid confusing sed.
8839 lt_compile=`echo "$ac_compile" | $SED \
8840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8842 -e 's:$: $lt_compiler_flag:'`
8843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8844 (eval "$lt_compile" 2>conftest.err)
8845 ac_status=$?
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 if (exit $ac_status) && test -s "$ac_outfile"; then
8849 # The compiler can only warn and ignore the option if not recognized
8850 # So say no if there are warnings other than the usual output.
8851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8854 lt_cv_prog_compiler_pic_works=yes
8857 $RM conftest*
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8861 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8863 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8864 case $lt_prog_compiler_pic in
8865 "" | " "*) ;;
8866 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8867 esac
8868 else
8869 lt_prog_compiler_pic=
8870 lt_prog_compiler_can_build_shared=no
8881 # Check to make sure the static flag actually works.
8883 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8885 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8886 if ${lt_cv_prog_compiler_static_works+:} false; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 lt_cv_prog_compiler_static_works=no
8890 save_LDFLAGS="$LDFLAGS"
8891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8894 # The linker can only warn and ignore the option if not recognized
8895 # So say no if there are warnings
8896 if test -s conftest.err; then
8897 # Append any errors to the config.log.
8898 cat conftest.err 1>&5
8899 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8901 if diff conftest.exp conftest.er2 >/dev/null; then
8902 lt_cv_prog_compiler_static_works=yes
8904 else
8905 lt_cv_prog_compiler_static_works=yes
8908 $RM -r conftest*
8909 LDFLAGS="$save_LDFLAGS"
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8913 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8915 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8917 else
8918 lt_prog_compiler_static=
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8929 if ${lt_cv_prog_compiler_c_o+:} false; then :
8930 $as_echo_n "(cached) " >&6
8931 else
8932 lt_cv_prog_compiler_c_o=no
8933 $RM -r conftest 2>/dev/null
8934 mkdir conftest
8935 cd conftest
8936 mkdir out
8937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939 lt_compiler_flag="-o out/conftest2.$ac_objext"
8940 # Insert the option either (1) after the last *FLAGS variable, or
8941 # (2) before a word containing "conftest.", or (3) at the end.
8942 # Note that $ac_compile itself does not contain backslashes and begins
8943 # with a dollar sign (not a hyphen), so the echo should work correctly.
8944 lt_compile=`echo "$ac_compile" | $SED \
8945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8947 -e 's:$: $lt_compiler_flag:'`
8948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8949 (eval "$lt_compile" 2>out/conftest.err)
8950 ac_status=$?
8951 cat out/conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8954 then
8955 # The compiler can only warn and ignore the option if not recognized
8956 # So say no if there are warnings
8957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8960 lt_cv_prog_compiler_c_o=yes
8963 chmod u+w . 2>&5
8964 $RM conftest*
8965 # SGI C++ compiler will create directory out/ii_files/ for
8966 # template instantiation
8967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8968 $RM out/* && rmdir out
8969 cd ..
8970 $RM -r conftest
8971 $RM conftest*
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8983 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8984 if ${lt_cv_prog_compiler_c_o+:} false; then :
8985 $as_echo_n "(cached) " >&6
8986 else
8987 lt_cv_prog_compiler_c_o=no
8988 $RM -r conftest 2>/dev/null
8989 mkdir conftest
8990 cd conftest
8991 mkdir out
8992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8994 lt_compiler_flag="-o out/conftest2.$ac_objext"
8995 # Insert the option either (1) after the last *FLAGS variable, or
8996 # (2) before a word containing "conftest.", or (3) at the end.
8997 # Note that $ac_compile itself does not contain backslashes and begins
8998 # with a dollar sign (not a hyphen), so the echo should work correctly.
8999 lt_compile=`echo "$ac_compile" | $SED \
9000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9002 -e 's:$: $lt_compiler_flag:'`
9003 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9004 (eval "$lt_compile" 2>out/conftest.err)
9005 ac_status=$?
9006 cat out/conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9009 then
9010 # The compiler can only warn and ignore the option if not recognized
9011 # So say no if there are warnings
9012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9015 lt_cv_prog_compiler_c_o=yes
9018 chmod u+w . 2>&5
9019 $RM conftest*
9020 # SGI C++ compiler will create directory out/ii_files/ for
9021 # template instantiation
9022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9023 $RM out/* && rmdir out
9024 cd ..
9025 $RM -r conftest
9026 $RM conftest*
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9030 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9035 hard_links="nottested"
9036 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9037 # do not overwrite the value of need_locks provided by the user
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9039 $as_echo_n "checking if we can lock with hard links... " >&6; }
9040 hard_links=yes
9041 $RM conftest*
9042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9043 touch conftest.a
9044 ln conftest.a conftest.b 2>&5 || hard_links=no
9045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9047 $as_echo "$hard_links" >&6; }
9048 if test "$hard_links" = no; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9050 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9051 need_locks=warn
9053 else
9054 need_locks=no
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9063 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9065 runpath_var=
9066 allow_undefined_flag=
9067 always_export_symbols=no
9068 archive_cmds=
9069 archive_expsym_cmds=
9070 compiler_needs_object=no
9071 enable_shared_with_static_runtimes=no
9072 export_dynamic_flag_spec=
9073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9074 hardcode_automatic=no
9075 hardcode_direct=no
9076 hardcode_direct_absolute=no
9077 hardcode_libdir_flag_spec=
9078 hardcode_libdir_flag_spec_ld=
9079 hardcode_libdir_separator=
9080 hardcode_minus_L=no
9081 hardcode_shlibpath_var=unsupported
9082 inherit_rpath=no
9083 link_all_deplibs=unknown
9084 module_cmds=
9085 module_expsym_cmds=
9086 old_archive_from_new_cmds=
9087 old_archive_from_expsyms_cmds=
9088 thread_safe_flag_spec=
9089 whole_archive_flag_spec=
9090 # include_expsyms should be a list of space-separated symbols to be *always*
9091 # included in the symbol list
9092 include_expsyms=
9093 # exclude_expsyms can be an extended regexp of symbols to exclude
9094 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9095 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9096 # as well as any symbol that contains `d'.
9097 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9098 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9099 # platforms (ab)use it in PIC code, but their linkers get confused if
9100 # the symbol is explicitly referenced. Since portable code cannot
9101 # rely on this symbol name, it's probably fine to never include it in
9102 # preloaded symbol tables.
9103 # Exclude shared library initialization/finalization symbols.
9104 extract_expsyms_cmds=
9106 case $host_os in
9107 cygwin* | mingw* | pw32* | cegcc*)
9108 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9109 # When not using gcc, we currently assume that we are using
9110 # Microsoft Visual C++.
9111 if test "$GCC" != yes; then
9112 with_gnu_ld=no
9115 interix*)
9116 # we just hope/assume this is gcc and not c89 (= MSVC++)
9117 with_gnu_ld=yes
9119 openbsd*)
9120 with_gnu_ld=no
9122 esac
9124 ld_shlibs=yes
9126 # On some targets, GNU ld is compatible enough with the native linker
9127 # that we're better off using the native interface for both.
9128 lt_use_gnu_ld_interface=no
9129 if test "$with_gnu_ld" = yes; then
9130 case $host_os in
9131 aix*)
9132 # The AIX port of GNU ld has always aspired to compatibility
9133 # with the native linker. However, as the warning in the GNU ld
9134 # block says, versions before 2.19.5* couldn't really create working
9135 # shared libraries, regardless of the interface used.
9136 case `$LD -v 2>&1` in
9137 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9138 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9139 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9141 lt_use_gnu_ld_interface=yes
9143 esac
9146 lt_use_gnu_ld_interface=yes
9148 esac
9151 if test "$lt_use_gnu_ld_interface" = yes; then
9152 # If archive_cmds runs LD, not CC, wlarc should be empty
9153 wlarc='${wl}'
9155 # Set some defaults for GNU ld with shared library support. These
9156 # are reset later if shared libraries are not supported. Putting them
9157 # here allows them to be overridden if necessary.
9158 runpath_var=LD_RUN_PATH
9159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9160 export_dynamic_flag_spec='${wl}--export-dynamic'
9161 # ancient GNU ld didn't support --whole-archive et. al.
9162 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9163 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9164 else
9165 whole_archive_flag_spec=
9167 supports_anon_versioning=no
9168 case `$LD -v 2>&1` in
9169 *GNU\ gold*) supports_anon_versioning=yes ;;
9170 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9173 *\ 2.11.*) ;; # other 2.11 versions
9174 *) supports_anon_versioning=yes ;;
9175 esac
9177 # See if GNU ld supports shared libraries.
9178 case $host_os in
9179 aix[3-9]*)
9180 # On AIX/PPC, the GNU linker is very broken
9181 if test "$host_cpu" != ia64; then
9182 ld_shlibs=no
9183 cat <<_LT_EOF 1>&2
9185 *** Warning: the GNU linker, at least up to release 2.19, is reported
9186 *** to be unable to reliably create shared libraries on AIX.
9187 *** Therefore, libtool is disabling shared libraries support. If you
9188 *** really care for shared libraries, you may want to install binutils
9189 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9190 *** You will then need to restart the configuration process.
9192 _LT_EOF
9196 amigaos*)
9197 case $host_cpu in
9198 powerpc)
9199 # see comment about AmigaOS4 .so support
9200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201 archive_expsym_cmds=''
9203 m68k)
9204 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)'
9205 hardcode_libdir_flag_spec='-L$libdir'
9206 hardcode_minus_L=yes
9208 esac
9211 beos*)
9212 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9213 allow_undefined_flag=unsupported
9214 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9215 # support --undefined. This deserves some investigation. FIXME
9216 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217 else
9218 ld_shlibs=no
9222 cygwin* | mingw* | pw32* | cegcc*)
9223 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9224 # as there is no search path for DLLs.
9225 hardcode_libdir_flag_spec='-L$libdir'
9226 export_dynamic_flag_spec='${wl}--export-all-symbols'
9227 allow_undefined_flag=unsupported
9228 always_export_symbols=no
9229 enable_shared_with_static_runtimes=yes
9230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9232 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9234 # If the export-symbols file already is a .def file (1st line
9235 # is EXPORTS), use it as is; otherwise, prepend...
9236 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9237 cp $export_symbols $output_objdir/$soname.def;
9238 else
9239 echo EXPORTS > $output_objdir/$soname.def;
9240 cat $export_symbols >> $output_objdir/$soname.def;
9242 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9243 else
9244 ld_shlibs=no
9248 haiku*)
9249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250 link_all_deplibs=yes
9253 interix[3-9]*)
9254 hardcode_direct=no
9255 hardcode_shlibpath_var=no
9256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9257 export_dynamic_flag_spec='${wl}-E'
9258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9259 # Instead, shared libraries are loaded at an image base (0x10000000 by
9260 # default) and relocated if they conflict, which is a slow very memory
9261 # consuming and fragmenting process. To avoid this, we pick a random,
9262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9265 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'
9268 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9269 tmp_diet=no
9270 if test "$host_os" = linux-dietlibc; then
9271 case $cc_basename in
9272 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9273 esac
9275 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9276 && test "$tmp_diet" = no
9277 then
9278 tmp_addflag=' $pic_flag'
9279 tmp_sharedflag='-shared'
9280 case $cc_basename,$host_cpu in
9281 pgcc*) # Portland Group C compiler
9282 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'
9283 tmp_addflag=' $pic_flag'
9285 pgf77* | pgf90* | pgf95* | pgfortran*)
9286 # Portland Group f77 and f90 compilers
9287 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'
9288 tmp_addflag=' $pic_flag -Mnomain' ;;
9289 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9290 tmp_addflag=' -i_dynamic' ;;
9291 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9292 tmp_addflag=' -i_dynamic -nofor_main' ;;
9293 ifc* | ifort*) # Intel Fortran compiler
9294 tmp_addflag=' -nofor_main' ;;
9295 lf95*) # Lahey Fortran 8.1
9296 whole_archive_flag_spec=
9297 tmp_sharedflag='--shared' ;;
9298 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9299 tmp_sharedflag='-qmkshrobj'
9300 tmp_addflag= ;;
9301 nvcc*) # Cuda Compiler Driver 2.2
9302 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'
9303 compiler_needs_object=yes
9305 esac
9306 case `$CC -V 2>&1 | sed 5q` in
9307 *Sun\ C*) # Sun C 5.9
9308 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'
9309 compiler_needs_object=yes
9310 tmp_sharedflag='-G' ;;
9311 *Sun\ F*) # Sun Fortran 8.3
9312 tmp_sharedflag='-G' ;;
9313 esac
9314 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316 if test "x$supports_anon_versioning" = xyes; then
9317 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9318 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9319 echo "local: *; };" >> $output_objdir/$libname.ver~
9320 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9323 case $cc_basename in
9324 xlf* | bgf* | bgxlf* | mpixlf*)
9325 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9326 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9327 hardcode_libdir_flag_spec=
9328 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9329 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9330 if test "x$supports_anon_versioning" = xyes; then
9331 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9333 echo "local: *; };" >> $output_objdir/$libname.ver~
9334 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9337 esac
9338 else
9339 ld_shlibs=no
9343 netbsd*)
9344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9345 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9346 wlarc=
9347 else
9348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9353 solaris*)
9354 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9355 ld_shlibs=no
9356 cat <<_LT_EOF 1>&2
9358 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9359 *** create shared libraries on Solaris systems. Therefore, libtool
9360 *** is disabling shared libraries support. We urge you to upgrade GNU
9361 *** binutils to release 2.9.1 or newer. Another option is to modify
9362 *** your PATH or compiler configuration so that the native linker is
9363 *** used, and then restart.
9365 _LT_EOF
9366 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9369 else
9370 ld_shlibs=no
9374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9375 case `$LD -v 2>&1` in
9376 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9377 ld_shlibs=no
9378 cat <<_LT_EOF 1>&2
9380 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9381 *** reliably create shared libraries on SCO systems. Therefore, libtool
9382 *** is disabling shared libraries support. We urge you to upgrade GNU
9383 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9384 *** your PATH or compiler configuration so that the native linker is
9385 *** used, and then restart.
9387 _LT_EOF
9390 # For security reasons, it is highly recommended that you always
9391 # use absolute paths for naming shared libraries, and exclude the
9392 # DT_RUNPATH tag from executables and libraries. But doing so
9393 # requires that you compile everything twice, which is a pain.
9394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9398 else
9399 ld_shlibs=no
9402 esac
9405 sunos4*)
9406 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9407 wlarc=
9408 hardcode_direct=yes
9409 hardcode_shlibpath_var=no
9413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9416 else
9417 ld_shlibs=no
9420 esac
9422 if test "$ld_shlibs" = no; then
9423 runpath_var=
9424 hardcode_libdir_flag_spec=
9425 export_dynamic_flag_spec=
9426 whole_archive_flag_spec=
9428 else
9429 # PORTME fill in a description of your system's linker (not GNU ld)
9430 case $host_os in
9431 aix3*)
9432 allow_undefined_flag=unsupported
9433 always_export_symbols=yes
9434 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'
9435 # Note: this linker hardcodes the directories in LIBPATH if there
9436 # are no directories specified by -L.
9437 hardcode_minus_L=yes
9438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9439 # Neither direct hardcoding nor static linking is supported with a
9440 # broken collect2.
9441 hardcode_direct=unsupported
9445 aix[4-9]*)
9446 if test "$host_cpu" = ia64; then
9447 # On IA64, the linker does run time linking by default, so we don't
9448 # have to do anything special.
9449 aix_use_runtimelinking=no
9450 exp_sym_flag='-Bexport'
9451 no_entry_flag=""
9452 else
9453 # If we're using GNU nm, then we don't want the "-C" option.
9454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9455 # Also, AIX nm treats weak defined symbols like other global
9456 # defined symbols, whereas GNU nm marks them as "W".
9457 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9458 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'
9459 else
9460 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'
9462 aix_use_runtimelinking=no
9464 # Test if we are trying to use run time linking or normal
9465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9466 # need to do runtime linking.
9467 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9468 for ld_flag in $LDFLAGS; do
9469 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9470 aix_use_runtimelinking=yes
9471 break
9473 done
9475 esac
9477 exp_sym_flag='-bexport'
9478 no_entry_flag='-bnoentry'
9481 # When large executables or shared objects are built, AIX ld can
9482 # have problems creating the table of contents. If linking a library
9483 # or program results in "error TOC overflow" add -mminimal-toc to
9484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9487 archive_cmds=''
9488 hardcode_direct=yes
9489 hardcode_direct_absolute=yes
9490 hardcode_libdir_separator=':'
9491 link_all_deplibs=yes
9492 file_list_spec='${wl}-f,'
9494 if test "$GCC" = yes; then
9495 case $host_os in aix4.[012]|aix4.[012].*)
9496 # We only want to do this on AIX 4.2 and lower, the check
9497 # below for broken collect2 doesn't work under 4.3+
9498 collect2name=`${CC} -print-prog-name=collect2`
9499 if test -f "$collect2name" &&
9500 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9501 then
9502 # We have reworked collect2
9504 else
9505 # We have old collect2
9506 hardcode_direct=unsupported
9507 # It fails to find uninstalled libraries when the uninstalled
9508 # path is not listed in the libpath. Setting hardcode_minus_L
9509 # to unsupported forces relinking
9510 hardcode_minus_L=yes
9511 hardcode_libdir_flag_spec='-L$libdir'
9512 hardcode_libdir_separator=
9515 esac
9516 shared_flag='-shared'
9517 if test "$aix_use_runtimelinking" = yes; then
9518 shared_flag="$shared_flag "'${wl}-G'
9520 else
9521 # not using gcc
9522 if test "$host_cpu" = ia64; then
9523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9524 # chokes on -Wl,-G. The following line is correct:
9525 shared_flag='-G'
9526 else
9527 if test "$aix_use_runtimelinking" = yes; then
9528 shared_flag='${wl}-G'
9529 else
9530 shared_flag='${wl}-bM:SRE'
9535 export_dynamic_flag_spec='${wl}-bexpall'
9536 # It seems that -bexpall does not export symbols beginning with
9537 # underscore (_), so it is better to generate a list of symbols to export.
9538 always_export_symbols=yes
9539 if test "$aix_use_runtimelinking" = yes; then
9540 # Warning - without using the other runtime loading flags (-brtl),
9541 # -berok will link without error, but may produce a broken library.
9542 allow_undefined_flag='-berok'
9543 # Determine the default libpath from the value encoded in an
9544 # empty executable.
9545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546 /* end confdefs.h. */
9549 main ()
9553 return 0;
9555 _ACEOF
9556 if ac_fn_c_try_link "$LINENO"; then :
9558 lt_aix_libpath_sed='
9559 /Import File Strings/,/^$/ {
9560 /^0/ {
9561 s/^0 *\(.*\)$/\1/
9565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9566 # Check for a 64-bit object if we didn't find anything.
9567 if test -z "$aix_libpath"; then
9568 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9571 rm -f core conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9575 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9576 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"
9577 else
9578 if test "$host_cpu" = ia64; then
9579 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9580 allow_undefined_flag="-z nodefs"
9581 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"
9582 else
9583 # Determine the default libpath from the value encoded in an
9584 # empty executable.
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9589 main ()
9593 return 0;
9595 _ACEOF
9596 if ac_fn_c_try_link "$LINENO"; then :
9598 lt_aix_libpath_sed='
9599 /Import File Strings/,/^$/ {
9600 /^0/ {
9601 s/^0 *\(.*\)$/\1/
9605 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9606 # Check for a 64-bit object if we didn't find anything.
9607 if test -z "$aix_libpath"; then
9608 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9615 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9616 # Warning - without using the other run time loading flags,
9617 # -berok will link without error, but may produce a broken library.
9618 no_undefined_flag=' ${wl}-bernotok'
9619 allow_undefined_flag=' ${wl}-berok'
9620 if test "$with_gnu_ld" = yes; then
9621 # We only use this code for GNU lds that support --whole-archive.
9622 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9623 else
9624 # Exported symbols can be pulled into shared objects from archives
9625 whole_archive_flag_spec='$convenience'
9627 archive_cmds_need_lc=yes
9628 # This is similar to how AIX traditionally builds its shared libraries.
9629 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'
9634 amigaos*)
9635 case $host_cpu in
9636 powerpc)
9637 # see comment about AmigaOS4 .so support
9638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9639 archive_expsym_cmds=''
9641 m68k)
9642 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)'
9643 hardcode_libdir_flag_spec='-L$libdir'
9644 hardcode_minus_L=yes
9646 esac
9649 bsdi[45]*)
9650 export_dynamic_flag_spec=-rdynamic
9653 cygwin* | mingw* | pw32* | cegcc*)
9654 # When not using gcc, we currently assume that we are using
9655 # Microsoft Visual C++.
9656 # hardcode_libdir_flag_spec is actually meaningless, as there is
9657 # no search path for DLLs.
9658 hardcode_libdir_flag_spec=' '
9659 allow_undefined_flag=unsupported
9660 # Tell ltmain to make .lib files, not .a files.
9661 libext=lib
9662 # Tell ltmain to make .dll files, not .so files.
9663 shrext_cmds=".dll"
9664 # FIXME: Setting linknames here is a bad hack.
9665 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9666 # The linker will automatically build a .lib file if we build a DLL.
9667 old_archive_from_new_cmds='true'
9668 # FIXME: Should let the user specify the lib program.
9669 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9670 fix_srcfile_path='`cygpath -w "$srcfile"`'
9671 enable_shared_with_static_runtimes=yes
9674 darwin* | rhapsody*)
9677 archive_cmds_need_lc=no
9678 hardcode_direct=no
9679 hardcode_automatic=yes
9680 hardcode_shlibpath_var=unsupported
9681 if test "$lt_cv_ld_force_load" = "yes"; then
9682 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\"`'
9683 else
9684 whole_archive_flag_spec=''
9686 link_all_deplibs=yes
9687 allow_undefined_flag="$_lt_dar_allow_undefined"
9688 case $cc_basename in
9689 ifort*) _lt_dar_can_shared=yes ;;
9690 *) _lt_dar_can_shared=$GCC ;;
9691 esac
9692 if test "$_lt_dar_can_shared" = "yes"; then
9693 output_verbose_link_cmd=func_echo_all
9694 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9695 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9696 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}"
9697 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}"
9699 else
9700 ld_shlibs=no
9705 dgux*)
9706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_libdir_flag_spec='-L$libdir'
9708 hardcode_shlibpath_var=no
9711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9712 # support. Future versions do this automatically, but an explicit c++rt0.o
9713 # does not break anything, and helps significantly (at the cost of a little
9714 # extra space).
9715 freebsd2.2*)
9716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 hardcode_direct=yes
9719 hardcode_shlibpath_var=no
9722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9723 freebsd2.*)
9724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_direct=yes
9726 hardcode_minus_L=yes
9727 hardcode_shlibpath_var=no
9730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9731 freebsd* | dragonfly*)
9732 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9733 hardcode_libdir_flag_spec='-R$libdir'
9734 hardcode_direct=yes
9735 hardcode_shlibpath_var=no
9738 hpux9*)
9739 if test "$GCC" = yes; then
9740 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'
9741 else
9742 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'
9744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9745 hardcode_libdir_separator=:
9746 hardcode_direct=yes
9748 # hardcode_minus_L: Not really in the search PATH,
9749 # but as the default location of the library.
9750 hardcode_minus_L=yes
9751 export_dynamic_flag_spec='${wl}-E'
9754 hpux10*)
9755 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9756 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9757 else
9758 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9760 if test "$with_gnu_ld" = no; then
9761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9762 hardcode_libdir_flag_spec_ld='+b $libdir'
9763 hardcode_libdir_separator=:
9764 hardcode_direct=yes
9765 hardcode_direct_absolute=yes
9766 export_dynamic_flag_spec='${wl}-E'
9767 # hardcode_minus_L: Not really in the search PATH,
9768 # but as the default location of the library.
9769 hardcode_minus_L=yes
9773 hpux11*)
9774 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9775 case $host_cpu in
9776 hppa*64*)
9777 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9779 ia64*)
9780 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9783 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9785 esac
9786 else
9787 case $host_cpu in
9788 hppa*64*)
9789 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9791 ia64*)
9792 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9796 # Older versions of the 11.00 compiler do not understand -b yet
9797 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9799 $as_echo_n "checking if $CC understands -b... " >&6; }
9800 if ${lt_cv_prog_compiler__b+:} false; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 lt_cv_prog_compiler__b=no
9804 save_LDFLAGS="$LDFLAGS"
9805 LDFLAGS="$LDFLAGS -b"
9806 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9807 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9808 # The linker can only warn and ignore the option if not recognized
9809 # So say no if there are warnings
9810 if test -s conftest.err; then
9811 # Append any errors to the config.log.
9812 cat conftest.err 1>&5
9813 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9815 if diff conftest.exp conftest.er2 >/dev/null; then
9816 lt_cv_prog_compiler__b=yes
9818 else
9819 lt_cv_prog_compiler__b=yes
9822 $RM -r conftest*
9823 LDFLAGS="$save_LDFLAGS"
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9827 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9829 if test x"$lt_cv_prog_compiler__b" = xyes; then
9830 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9831 else
9832 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9836 esac
9838 if test "$with_gnu_ld" = no; then
9839 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9840 hardcode_libdir_separator=:
9842 case $host_cpu in
9843 hppa*64*|ia64*)
9844 hardcode_direct=no
9845 hardcode_shlibpath_var=no
9848 hardcode_direct=yes
9849 hardcode_direct_absolute=yes
9850 export_dynamic_flag_spec='${wl}-E'
9852 # hardcode_minus_L: Not really in the search PATH,
9853 # but as the default location of the library.
9854 hardcode_minus_L=yes
9856 esac
9860 irix5* | irix6* | nonstopux*)
9861 if test "$GCC" = yes; then
9862 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'
9863 # Try to use the -exported_symbol ld option, if it does not
9864 # work, assume that -exports_file does not work either and
9865 # implicitly export all symbols.
9866 save_LDFLAGS="$LDFLAGS"
9867 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 int foo(void) {}
9871 _ACEOF
9872 if ac_fn_c_try_link "$LINENO"; then :
9873 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'
9876 rm -f core conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9878 LDFLAGS="$save_LDFLAGS"
9879 else
9880 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'
9881 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'
9883 archive_cmds_need_lc='no'
9884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9885 hardcode_libdir_separator=:
9886 inherit_rpath=yes
9887 link_all_deplibs=yes
9890 netbsd*)
9891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9893 else
9894 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9896 hardcode_libdir_flag_spec='-R$libdir'
9897 hardcode_direct=yes
9898 hardcode_shlibpath_var=no
9901 newsos6)
9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_direct=yes
9904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9905 hardcode_libdir_separator=:
9906 hardcode_shlibpath_var=no
9909 *nto* | *qnx*)
9912 openbsd*)
9913 if test -f /usr/libexec/ld.so; then
9914 hardcode_direct=yes
9915 hardcode_shlibpath_var=no
9916 hardcode_direct_absolute=yes
9917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9918 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9919 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9920 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9921 export_dynamic_flag_spec='${wl}-E'
9922 else
9923 case $host_os in
9924 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9926 hardcode_libdir_flag_spec='-R$libdir'
9929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9932 esac
9934 else
9935 ld_shlibs=no
9939 os2*)
9940 hardcode_libdir_flag_spec='-L$libdir'
9941 hardcode_minus_L=yes
9942 allow_undefined_flag=unsupported
9943 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'
9944 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9947 osf3*)
9948 if test "$GCC" = yes; then
9949 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9950 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'
9951 else
9952 allow_undefined_flag=' -expect_unresolved \*'
9953 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'
9955 archive_cmds_need_lc='no'
9956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9957 hardcode_libdir_separator=:
9960 osf4* | osf5*) # as osf3* with the addition of -msym flag
9961 if test "$GCC" = yes; then
9962 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9963 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'
9964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9965 else
9966 allow_undefined_flag=' -expect_unresolved \*'
9967 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'
9968 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~
9969 $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'
9971 # Both c and cxx compiler support -rpath directly
9972 hardcode_libdir_flag_spec='-rpath $libdir'
9974 archive_cmds_need_lc='no'
9975 hardcode_libdir_separator=:
9978 solaris*)
9979 no_undefined_flag=' -z defs'
9980 if test "$GCC" = yes; then
9981 wlarc='${wl}'
9982 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9983 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9984 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9985 else
9986 case `$CC -V 2>&1` in
9987 *"Compilers 5.0"*)
9988 wlarc=''
9989 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9991 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9994 wlarc='${wl}'
9995 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9997 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9999 esac
10001 hardcode_libdir_flag_spec='-R$libdir'
10002 hardcode_shlibpath_var=no
10003 case $host_os in
10004 solaris2.[0-5] | solaris2.[0-5].*) ;;
10006 # The compiler driver will combine and reorder linker options,
10007 # but understands `-z linker_flag'. GCC discards it without `$wl',
10008 # but is careful enough not to reorder.
10009 # Supported since Solaris 2.6 (maybe 2.5.1?)
10010 if test "$GCC" = yes; then
10011 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10012 else
10013 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10016 esac
10017 link_all_deplibs=yes
10020 sunos4*)
10021 if test "x$host_vendor" = xsequent; then
10022 # Use $CC to link under sequent, because it throws in some extra .o
10023 # files that make .init and .fini sections work.
10024 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10025 else
10026 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10028 hardcode_libdir_flag_spec='-L$libdir'
10029 hardcode_direct=yes
10030 hardcode_minus_L=yes
10031 hardcode_shlibpath_var=no
10034 sysv4)
10035 case $host_vendor in
10036 sni)
10037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_direct=yes # is this really true???
10040 siemens)
10041 ## LD is ld it makes a PLAMLIB
10042 ## CC just makes a GrossModule.
10043 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10044 reload_cmds='$CC -r -o $output$reload_objs'
10045 hardcode_direct=no
10047 motorola)
10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10051 esac
10052 runpath_var='LD_RUN_PATH'
10053 hardcode_shlibpath_var=no
10056 sysv4.3*)
10057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058 hardcode_shlibpath_var=no
10059 export_dynamic_flag_spec='-Bexport'
10062 sysv4*MP*)
10063 if test -d /usr/nec; then
10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_shlibpath_var=no
10066 runpath_var=LD_RUN_PATH
10067 hardcode_runpath_var=yes
10068 ld_shlibs=yes
10072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10073 no_undefined_flag='${wl}-z,text'
10074 archive_cmds_need_lc=no
10075 hardcode_shlibpath_var=no
10076 runpath_var='LD_RUN_PATH'
10078 if test "$GCC" = yes; then
10079 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 else
10082 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10087 sysv5* | sco3.2v5* | sco5v6*)
10088 # Note: We can NOT use -z defs as we might desire, because we do not
10089 # link with -lc, and that would cause any symbols used from libc to
10090 # always be unresolved, which means just about no library would
10091 # ever link correctly. If we're not using GNU ld we use -z text
10092 # though, which does catch some bad symbols but isn't as heavy-handed
10093 # as -z defs.
10094 no_undefined_flag='${wl}-z,text'
10095 allow_undefined_flag='${wl}-z,nodefs'
10096 archive_cmds_need_lc=no
10097 hardcode_shlibpath_var=no
10098 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10099 hardcode_libdir_separator=':'
10100 link_all_deplibs=yes
10101 export_dynamic_flag_spec='${wl}-Bexport'
10102 runpath_var='LD_RUN_PATH'
10104 if test "$GCC" = yes; then
10105 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 else
10108 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 uts4*)
10114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_libdir_flag_spec='-L$libdir'
10116 hardcode_shlibpath_var=no
10120 ld_shlibs=no
10122 esac
10124 if test x$host_vendor = xsni; then
10125 case $host in
10126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10127 export_dynamic_flag_spec='${wl}-Blargedynsym'
10129 esac
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10134 $as_echo "$ld_shlibs" >&6; }
10135 test "$ld_shlibs" = no && can_build_shared=no
10137 with_gnu_ld=$with_gnu_ld
10154 # Do we need to explicitly link libc?
10156 case "x$archive_cmds_need_lc" in
10157 x|xyes)
10158 # Assume -lc should be added
10159 archive_cmds_need_lc=yes
10161 if test "$enable_shared" = yes && test "$GCC" = yes; then
10162 case $archive_cmds in
10163 *'~'*)
10164 # FIXME: we may have to deal with multi-command sequences.
10166 '$CC '*)
10167 # Test whether the compiler implicitly links with -lc since on some
10168 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10169 # to ld, don't add -lc before -lgcc.
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10171 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10172 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 $RM conftest*
10176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10179 (eval $ac_compile) 2>&5
10180 ac_status=$?
10181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10182 test $ac_status = 0; } 2>conftest.err; then
10183 soname=conftest
10184 lib=conftest
10185 libobjs=conftest.$ac_objext
10186 deplibs=
10187 wl=$lt_prog_compiler_wl
10188 pic_flag=$lt_prog_compiler_pic
10189 compiler_flags=-v
10190 linker_flags=-v
10191 verstring=
10192 output_objdir=.
10193 libname=conftest
10194 lt_save_allow_undefined_flag=$allow_undefined_flag
10195 allow_undefined_flag=
10196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10197 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10198 ac_status=$?
10199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10200 test $ac_status = 0; }
10201 then
10202 lt_cv_archive_cmds_need_lc=no
10203 else
10204 lt_cv_archive_cmds_need_lc=yes
10206 allow_undefined_flag=$lt_save_allow_undefined_flag
10207 else
10208 cat conftest.err 1>&5
10210 $RM conftest*
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10214 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10215 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10217 esac
10220 esac
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10379 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10381 if test "$GCC" = yes; then
10382 case $host_os in
10383 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10384 *) lt_awk_arg="/^libraries:/" ;;
10385 esac
10386 case $host_os in
10387 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10388 *) lt_sed_strip_eq="s,=/,/,g" ;;
10389 esac
10390 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10391 case $lt_search_path_spec in
10392 *\;*)
10393 # if the path contains ";" then we assume it to be the separator
10394 # otherwise default to the standard path separator (i.e. ":") - it is
10395 # assumed that no part of a normal pathname contains ";" but that should
10396 # okay in the real world where ";" in dirpaths is itself problematic.
10397 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10400 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10402 esac
10403 # Ok, now we have the path, separated by spaces, we can step through it
10404 # and add multilib dir if necessary.
10405 lt_tmp_lt_search_path_spec=
10406 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10407 for lt_sys_path in $lt_search_path_spec; do
10408 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10409 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10410 else
10411 test -d "$lt_sys_path" && \
10412 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10414 done
10415 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10416 BEGIN {RS=" "; FS="/|\n";} {
10417 lt_foo="";
10418 lt_count=0;
10419 for (lt_i = NF; lt_i > 0; lt_i--) {
10420 if ($lt_i != "" && $lt_i != ".") {
10421 if ($lt_i == "..") {
10422 lt_count++;
10423 } else {
10424 if (lt_count == 0) {
10425 lt_foo="/" $lt_i lt_foo;
10426 } else {
10427 lt_count--;
10432 if (lt_foo != "") { lt_freq[lt_foo]++; }
10433 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10435 # AWK program above erroneously prepends '/' to C:/dos/paths
10436 # for these hosts.
10437 case $host_os in
10438 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10439 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10440 esac
10441 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10442 else
10443 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10445 library_names_spec=
10446 libname_spec='lib$name'
10447 soname_spec=
10448 shrext_cmds=".so"
10449 postinstall_cmds=
10450 postuninstall_cmds=
10451 finish_cmds=
10452 finish_eval=
10453 shlibpath_var=
10454 shlibpath_overrides_runpath=unknown
10455 version_type=none
10456 dynamic_linker="$host_os ld.so"
10457 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10458 need_lib_prefix=unknown
10459 hardcode_into_libs=no
10461 # when you set need_version to no, make sure it does not cause -set_version
10462 # flags to be left without arguments
10463 need_version=unknown
10465 case $host_os in
10466 aix3*)
10467 version_type=linux
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10469 shlibpath_var=LIBPATH
10471 # AIX 3 has no versioning support, so we append a major version to the name.
10472 soname_spec='${libname}${release}${shared_ext}$major'
10475 aix[4-9]*)
10476 version_type=linux
10477 need_lib_prefix=no
10478 need_version=no
10479 hardcode_into_libs=yes
10480 if test "$host_cpu" = ia64; then
10481 # AIX 5 supports IA64
10482 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10483 shlibpath_var=LD_LIBRARY_PATH
10484 else
10485 # With GCC up to 2.95.x, collect2 would create an import file
10486 # for dependence libraries. The import file would start with
10487 # the line `#! .'. This would cause the generated library to
10488 # depend on `.', always an invalid library. This was fixed in
10489 # development snapshots of GCC prior to 3.0.
10490 case $host_os in
10491 aix4 | aix4.[01] | aix4.[01].*)
10492 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10493 echo ' yes '
10494 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10496 else
10497 can_build_shared=no
10500 esac
10501 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10502 # soname into executable. Probably we can add versioning support to
10503 # collect2, so additional links can be useful in future.
10504 if test "$aix_use_runtimelinking" = yes; then
10505 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10506 # instead of lib<name>.a to let people know that these are not
10507 # typical AIX shared libraries.
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 else
10510 # We preserve .a as extension for shared libraries through AIX4.2
10511 # and later when we are not doing run time linking.
10512 library_names_spec='${libname}${release}.a $libname.a'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10515 shlibpath_var=LIBPATH
10519 amigaos*)
10520 case $host_cpu in
10521 powerpc)
10522 # Since July 2007 AmigaOS4 officially supports .so libraries.
10523 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 m68k)
10527 library_names_spec='$libname.ixlibrary $libname.a'
10528 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10529 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'
10531 esac
10534 beos*)
10535 library_names_spec='${libname}${shared_ext}'
10536 dynamic_linker="$host_os ld.so"
10537 shlibpath_var=LIBRARY_PATH
10540 bsdi[45]*)
10541 version_type=linux
10542 need_version=no
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10546 shlibpath_var=LD_LIBRARY_PATH
10547 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10548 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10549 # the default ld.so.conf also contains /usr/contrib/lib and
10550 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10551 # libtool to hard-code these into programs
10554 cygwin* | mingw* | pw32* | cegcc*)
10555 version_type=windows
10556 shrext_cmds=".dll"
10557 need_version=no
10558 need_lib_prefix=no
10560 case $GCC,$host_os in
10561 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10562 library_names_spec='$libname.dll.a'
10563 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10564 postinstall_cmds='base_file=`basename \${file}`~
10565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10566 dldir=$destdir/`dirname \$dlpath`~
10567 test -d \$dldir || mkdir -p \$dldir~
10568 $install_prog $dir/$dlname \$dldir/$dlname~
10569 chmod a+x \$dldir/$dlname~
10570 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10571 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10573 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10574 dlpath=$dir/\$dldll~
10575 $RM \$dlpath'
10576 shlibpath_overrides_runpath=yes
10578 case $host_os in
10579 cygwin*)
10580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10581 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10583 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10585 mingw* | cegcc*)
10586 # MinGW DLLs use traditional 'lib' prefix
10587 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10589 pw32*)
10590 # pw32 DLLs use 'pw' prefix rather than 'lib'
10591 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10593 esac
10597 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10599 esac
10600 dynamic_linker='Win32 ld.exe'
10601 # FIXME: first we should search . and the directory the executable is in
10602 shlibpath_var=PATH
10605 darwin* | rhapsody*)
10606 dynamic_linker="$host_os dyld"
10607 version_type=darwin
10608 need_lib_prefix=no
10609 need_version=no
10610 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10611 soname_spec='${libname}${release}${major}$shared_ext'
10612 shlibpath_overrides_runpath=yes
10613 shlibpath_var=DYLD_LIBRARY_PATH
10614 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10616 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10617 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10620 dgux*)
10621 version_type=linux
10622 need_lib_prefix=no
10623 need_version=no
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 shlibpath_var=LD_LIBRARY_PATH
10629 freebsd* | dragonfly*)
10630 # DragonFly does not have aout. When/if they implement a new
10631 # versioning mechanism, adjust this.
10632 if test -x /usr/bin/objformat; then
10633 objformat=`/usr/bin/objformat`
10634 else
10635 case $host_os in
10636 freebsd[23].*) objformat=aout ;;
10637 *) objformat=elf ;;
10638 esac
10640 version_type=freebsd-$objformat
10641 case $version_type in
10642 freebsd-elf*)
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10644 need_version=no
10645 need_lib_prefix=no
10647 freebsd-*)
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10649 need_version=yes
10651 esac
10652 shlibpath_var=LD_LIBRARY_PATH
10653 case $host_os in
10654 freebsd2.*)
10655 shlibpath_overrides_runpath=yes
10657 freebsd3.[01]* | freebsdelf3.[01]*)
10658 shlibpath_overrides_runpath=yes
10659 hardcode_into_libs=yes
10661 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10662 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10663 shlibpath_overrides_runpath=no
10664 hardcode_into_libs=yes
10666 *) # from 4.6 on, and DragonFly
10667 shlibpath_overrides_runpath=yes
10668 hardcode_into_libs=yes
10670 esac
10673 haiku*)
10674 version_type=linux
10675 need_lib_prefix=no
10676 need_version=no
10677 dynamic_linker="$host_os runtime_loader"
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 shlibpath_var=LIBRARY_PATH
10681 shlibpath_overrides_runpath=yes
10682 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10683 hardcode_into_libs=yes
10686 hpux9* | hpux10* | hpux11*)
10687 # Give a soname corresponding to the major version so that dld.sl refuses to
10688 # link against other versions.
10689 version_type=sunos
10690 need_lib_prefix=no
10691 need_version=no
10692 case $host_cpu in
10693 ia64*)
10694 shrext_cmds='.so'
10695 hardcode_into_libs=yes
10696 dynamic_linker="$host_os dld.so"
10697 shlibpath_var=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 soname_spec='${libname}${release}${shared_ext}$major'
10701 if test "X$HPUX_IA64_MODE" = X32; then
10702 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10703 else
10704 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10706 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10708 hppa*64*)
10709 shrext_cmds='.sl'
10710 hardcode_into_libs=yes
10711 dynamic_linker="$host_os dld.sl"
10712 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10720 shrext_cmds='.sl'
10721 dynamic_linker="$host_os dld.sl"
10722 shlibpath_var=SHLIB_PATH
10723 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725 soname_spec='${libname}${release}${shared_ext}$major'
10727 esac
10728 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10729 postinstall_cmds='chmod 555 $lib'
10730 # or fails outright, so override atomically:
10731 install_override_mode=555
10734 interix[3-9]*)
10735 version_type=linux
10736 need_lib_prefix=no
10737 need_version=no
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10741 shlibpath_var=LD_LIBRARY_PATH
10742 shlibpath_overrides_runpath=no
10743 hardcode_into_libs=yes
10746 irix5* | irix6* | nonstopux*)
10747 case $host_os in
10748 nonstopux*) version_type=nonstopux ;;
10750 if test "$lt_cv_prog_gnu_ld" = yes; then
10751 version_type=linux
10752 else
10753 version_type=irix
10754 fi ;;
10755 esac
10756 need_lib_prefix=no
10757 need_version=no
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10760 case $host_os in
10761 irix5* | nonstopux*)
10762 libsuff= shlibsuff=
10765 case $LD in # libtool.m4 will add one of these switches to LD
10766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10767 libsuff= shlibsuff= libmagic=32-bit;;
10768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10769 libsuff=32 shlibsuff=N32 libmagic=N32;;
10770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10772 *) libsuff= shlibsuff= libmagic=never-match;;
10773 esac
10775 esac
10776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10777 shlibpath_overrides_runpath=no
10778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10780 hardcode_into_libs=yes
10783 # No shared lib support for Linux oldld, aout, or coff.
10784 linux*oldld* | linux*aout* | linux*coff*)
10785 dynamic_linker=no
10788 # This must be Linux ELF.
10790 # uclinux* changes (here and below) have been submitted to the libtool
10791 # project, but have not yet been accepted: they are GCC-local changes
10792 # for the time being. (See
10793 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10794 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10795 version_type=linux
10796 need_lib_prefix=no
10797 need_version=no
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=no
10804 # Some binutils ld are patched to set DT_RUNPATH
10805 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 lt_cv_shlibpath_overrides_runpath=no
10809 save_LDFLAGS=$LDFLAGS
10810 save_libdir=$libdir
10811 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10812 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10817 main ()
10821 return 0;
10823 _ACEOF
10824 if ac_fn_c_try_link "$LINENO"; then :
10825 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10826 lt_cv_shlibpath_overrides_runpath=yes
10829 rm -f core conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10831 LDFLAGS=$save_LDFLAGS
10832 libdir=$save_libdir
10836 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10838 # This implies no fast_install, which is unacceptable.
10839 # Some rework will be needed to allow for fast_install
10840 # before this can be enabled.
10841 hardcode_into_libs=yes
10843 # Append ld.so.conf contents to the search path
10844 if test -f /etc/ld.so.conf; then
10845 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' ' '`
10846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10849 # We used to test for /lib/ld.so.1 and disable shared libraries on
10850 # powerpc, because MkLinux only supported shared libraries with the
10851 # GNU dynamic linker. Since this was broken with cross compilers,
10852 # most powerpc-linux boxes support dynamic linking these days and
10853 # people can always --disable-shared, the test was removed, and we
10854 # assume the GNU/Linux dynamic linker is in use.
10855 dynamic_linker='GNU/Linux ld.so'
10858 netbsd*)
10859 version_type=sunos
10860 need_lib_prefix=no
10861 need_version=no
10862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10865 dynamic_linker='NetBSD (a.out) ld.so'
10866 else
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 dynamic_linker='NetBSD ld.elf_so'
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=yes
10873 hardcode_into_libs=yes
10876 newsos6)
10877 version_type=linux
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879 shlibpath_var=LD_LIBRARY_PATH
10880 shlibpath_overrides_runpath=yes
10883 *nto* | *qnx*)
10884 version_type=qnx
10885 need_lib_prefix=no
10886 need_version=no
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888 soname_spec='${libname}${release}${shared_ext}$major'
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=no
10891 hardcode_into_libs=yes
10892 dynamic_linker='ldqnx.so'
10895 openbsd*)
10896 version_type=sunos
10897 sys_lib_dlsearch_path_spec="/usr/lib"
10898 need_lib_prefix=no
10899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10900 case $host_os in
10901 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10902 *) need_version=no ;;
10903 esac
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10908 case $host_os in
10909 openbsd2.[89] | openbsd2.[89].*)
10910 shlibpath_overrides_runpath=no
10913 shlibpath_overrides_runpath=yes
10915 esac
10916 else
10917 shlibpath_overrides_runpath=yes
10921 os2*)
10922 libname_spec='$name'
10923 shrext_cmds=".dll"
10924 need_lib_prefix=no
10925 library_names_spec='$libname${shared_ext} $libname.a'
10926 dynamic_linker='OS/2 ld.exe'
10927 shlibpath_var=LIBPATH
10930 osf3* | osf4* | osf5*)
10931 version_type=osf
10932 need_lib_prefix=no
10933 need_version=no
10934 soname_spec='${libname}${release}${shared_ext}$major'
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936 shlibpath_var=LD_LIBRARY_PATH
10937 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10938 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10941 rdos*)
10942 dynamic_linker=no
10945 solaris*)
10946 version_type=linux
10947 need_lib_prefix=no
10948 need_version=no
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=yes
10953 hardcode_into_libs=yes
10954 # ldd complains unless libraries are executable
10955 postinstall_cmds='chmod +x $lib'
10958 sunos4*)
10959 version_type=sunos
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10961 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=yes
10964 if test "$with_gnu_ld" = yes; then
10965 need_lib_prefix=no
10967 need_version=yes
10970 sysv4 | sysv4.3*)
10971 version_type=linux
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 case $host_vendor in
10976 sni)
10977 shlibpath_overrides_runpath=no
10978 need_lib_prefix=no
10979 runpath_var=LD_RUN_PATH
10981 siemens)
10982 need_lib_prefix=no
10984 motorola)
10985 need_lib_prefix=no
10986 need_version=no
10987 shlibpath_overrides_runpath=no
10988 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10990 esac
10993 sysv4*MP*)
10994 if test -d /usr/nec ;then
10995 version_type=linux
10996 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10997 soname_spec='$libname${shared_ext}.$major'
10998 shlibpath_var=LD_LIBRARY_PATH
11002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11003 version_type=freebsd-elf
11004 need_lib_prefix=no
11005 need_version=no
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=yes
11010 hardcode_into_libs=yes
11011 if test "$with_gnu_ld" = yes; then
11012 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11013 else
11014 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11015 case $host_os in
11016 sco3.2v5*)
11017 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11019 esac
11021 sys_lib_dlsearch_path_spec='/usr/lib'
11024 tpf*)
11025 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11026 version_type=linux
11027 need_lib_prefix=no
11028 need_version=no
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=no
11032 hardcode_into_libs=yes
11035 uts4*)
11036 version_type=linux
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 shlibpath_var=LD_LIBRARY_PATH
11042 # Shared libraries for VwWorks, >= 7 only at this stage
11043 # and (fpic) still incompatible with "large" code models
11044 # in a few configurations. Only for RTP mode in any case,
11045 # and upon explicit request at configure time.
11046 vxworks7*)
11047 dynamic_linker=no
11048 case ${with_multisubdir}-${enable_shared} in
11049 *large*)
11051 *mrtp*-yes)
11052 version_type=linux
11053 need_lib_prefix=no
11054 need_version=no
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 dynamic_linker="$host_os module_loader"
11059 esac
11062 dynamic_linker=no
11064 esac
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11066 $as_echo "$dynamic_linker" >&6; }
11067 test "$dynamic_linker" = no && can_build_shared=no
11069 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11070 if test "$GCC" = yes; then
11071 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11074 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11075 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11077 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11078 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11173 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11174 hardcode_action=
11175 if test -n "$hardcode_libdir_flag_spec" ||
11176 test -n "$runpath_var" ||
11177 test "X$hardcode_automatic" = "Xyes" ; then
11179 # We can hardcode non-existent directories.
11180 if test "$hardcode_direct" != no &&
11181 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11182 # have to relink, otherwise we might link with an installed library
11183 # when we should be linking with a yet-to-be-installed one
11184 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11185 test "$hardcode_minus_L" != no; then
11186 # Linking always hardcodes the temporary library directory.
11187 hardcode_action=relink
11188 else
11189 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11190 hardcode_action=immediate
11192 else
11193 # We cannot hardcode anything, or else we can only hardcode existing
11194 # directories.
11195 hardcode_action=unsupported
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11198 $as_echo "$hardcode_action" >&6; }
11200 if test "$hardcode_action" = relink ||
11201 test "$inherit_rpath" = yes; then
11202 # Fast installation is not supported
11203 enable_fast_install=no
11204 elif test "$shlibpath_overrides_runpath" = yes ||
11205 test "$enable_shared" = no; then
11206 # Fast installation is not necessary
11207 enable_fast_install=needless
11215 if test "x$enable_dlopen" != xyes; then
11216 enable_dlopen=unknown
11217 enable_dlopen_self=unknown
11218 enable_dlopen_self_static=unknown
11219 else
11220 lt_cv_dlopen=no
11221 lt_cv_dlopen_libs=
11223 case $host_os in
11224 beos*)
11225 lt_cv_dlopen="load_add_on"
11226 lt_cv_dlopen_libs=
11227 lt_cv_dlopen_self=yes
11230 mingw* | pw32* | cegcc*)
11231 lt_cv_dlopen="LoadLibrary"
11232 lt_cv_dlopen_libs=
11235 cygwin*)
11236 lt_cv_dlopen="dlopen"
11237 lt_cv_dlopen_libs=
11240 darwin*)
11241 # if libdl is installed we need to link against it
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11243 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11244 if ${ac_cv_lib_dl_dlopen+:} false; then :
11245 $as_echo_n "(cached) " >&6
11246 else
11247 ac_check_lib_save_LIBS=$LIBS
11248 LIBS="-ldl $LIBS"
11249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250 /* end confdefs.h. */
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11255 #ifdef __cplusplus
11256 extern "C"
11257 #endif
11258 char dlopen ();
11260 main ()
11262 return dlopen ();
11264 return 0;
11266 _ACEOF
11267 if ac_fn_c_try_link "$LINENO"; then :
11268 ac_cv_lib_dl_dlopen=yes
11269 else
11270 ac_cv_lib_dl_dlopen=no
11272 rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274 LIBS=$ac_check_lib_save_LIBS
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11277 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11278 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11280 else
11282 lt_cv_dlopen="dyld"
11283 lt_cv_dlopen_libs=
11284 lt_cv_dlopen_self=yes
11291 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11292 if test "x$ac_cv_func_shl_load" = xyes; then :
11293 lt_cv_dlopen="shl_load"
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11296 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11297 if ${ac_cv_lib_dld_shl_load+:} false; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 ac_check_lib_save_LIBS=$LIBS
11301 LIBS="-ldld $LIBS"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char shl_load ();
11313 main ()
11315 return shl_load ();
11317 return 0;
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321 ac_cv_lib_dld_shl_load=yes
11322 else
11323 ac_cv_lib_dld_shl_load=no
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11330 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11331 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11332 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11333 else
11334 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11335 if test "x$ac_cv_func_dlopen" = xyes; then :
11336 lt_cv_dlopen="dlopen"
11337 else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11339 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11340 if ${ac_cv_lib_dl_dlopen+:} false; then :
11341 $as_echo_n "(cached) " >&6
11342 else
11343 ac_check_lib_save_LIBS=$LIBS
11344 LIBS="-ldl $LIBS"
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11348 /* Override any GCC internal prototype to avoid an error.
11349 Use char because int might match the return type of a GCC
11350 builtin and then its argument prototype would still apply. */
11351 #ifdef __cplusplus
11352 extern "C"
11353 #endif
11354 char dlopen ();
11356 main ()
11358 return dlopen ();
11360 return 0;
11362 _ACEOF
11363 if ac_fn_c_try_link "$LINENO"; then :
11364 ac_cv_lib_dl_dlopen=yes
11365 else
11366 ac_cv_lib_dl_dlopen=no
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 LIBS=$ac_check_lib_save_LIBS
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11373 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11374 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11376 else
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11378 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11379 if ${ac_cv_lib_svld_dlopen+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 ac_check_lib_save_LIBS=$LIBS
11383 LIBS="-lsvld $LIBS"
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11387 /* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 char dlopen ();
11395 main ()
11397 return dlopen ();
11399 return 0;
11401 _ACEOF
11402 if ac_fn_c_try_link "$LINENO"; then :
11403 ac_cv_lib_svld_dlopen=yes
11404 else
11405 ac_cv_lib_svld_dlopen=no
11407 rm -f core conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409 LIBS=$ac_check_lib_save_LIBS
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11412 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11413 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11415 else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11417 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11418 if ${ac_cv_lib_dld_dld_link+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 ac_check_lib_save_LIBS=$LIBS
11422 LIBS="-ldld $LIBS"
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11426 /* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
11429 #ifdef __cplusplus
11430 extern "C"
11431 #endif
11432 char dld_link ();
11434 main ()
11436 return dld_link ();
11438 return 0;
11440 _ACEOF
11441 if ac_fn_c_try_link "$LINENO"; then :
11442 ac_cv_lib_dld_dld_link=yes
11443 else
11444 ac_cv_lib_dld_dld_link=no
11446 rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11451 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11452 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11453 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11472 esac
11474 if test "x$lt_cv_dlopen" != xno; then
11475 enable_dlopen=yes
11476 else
11477 enable_dlopen=no
11480 case $lt_cv_dlopen in
11481 dlopen)
11482 save_CPPFLAGS="$CPPFLAGS"
11483 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11485 save_LDFLAGS="$LDFLAGS"
11486 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11488 save_LIBS="$LIBS"
11489 LIBS="$lt_cv_dlopen_libs $LIBS"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11492 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11493 if ${lt_cv_dlopen_self+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 if test "$cross_compiling" = yes; then :
11497 lt_cv_dlopen_self=cross
11498 else
11499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11500 lt_status=$lt_dlunknown
11501 cat > conftest.$ac_ext <<_LT_EOF
11502 #line 11502 "configure"
11503 #include "confdefs.h"
11505 #if HAVE_DLFCN_H
11506 #include <dlfcn.h>
11507 #endif
11509 #include <stdio.h>
11511 #ifdef RTLD_GLOBAL
11512 # define LT_DLGLOBAL RTLD_GLOBAL
11513 #else
11514 # ifdef DL_GLOBAL
11515 # define LT_DLGLOBAL DL_GLOBAL
11516 # else
11517 # define LT_DLGLOBAL 0
11518 # endif
11519 #endif
11521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11522 find out it does not work in some platform. */
11523 #ifndef LT_DLLAZY_OR_NOW
11524 # ifdef RTLD_LAZY
11525 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11526 # else
11527 # ifdef DL_LAZY
11528 # define LT_DLLAZY_OR_NOW DL_LAZY
11529 # else
11530 # ifdef RTLD_NOW
11531 # define LT_DLLAZY_OR_NOW RTLD_NOW
11532 # else
11533 # ifdef DL_NOW
11534 # define LT_DLLAZY_OR_NOW DL_NOW
11535 # else
11536 # define LT_DLLAZY_OR_NOW 0
11537 # endif
11538 # endif
11539 # endif
11540 # endif
11541 #endif
11543 /* When -fvisbility=hidden is used, assume the code has been annotated
11544 correspondingly for the symbols needed. */
11545 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11546 void fnord () __attribute__((visibility("default")));
11547 #endif
11549 void fnord () { int i=42; }
11550 int main ()
11552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11553 int status = $lt_dlunknown;
11555 if (self)
11557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11558 else
11560 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11561 else puts (dlerror ());
11563 /* dlclose (self); */
11565 else
11566 puts (dlerror ());
11568 return status;
11570 _LT_EOF
11571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11572 (eval $ac_link) 2>&5
11573 ac_status=$?
11574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11576 (./conftest; exit; ) >&5 2>/dev/null
11577 lt_status=$?
11578 case x$lt_status in
11579 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11580 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11581 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11582 esac
11583 else :
11584 # compilation failed
11585 lt_cv_dlopen_self=no
11588 rm -fr conftest*
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11593 $as_echo "$lt_cv_dlopen_self" >&6; }
11595 if test "x$lt_cv_dlopen_self" = xyes; then
11596 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11598 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11599 if ${lt_cv_dlopen_self_static+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 if test "$cross_compiling" = yes; then :
11603 lt_cv_dlopen_self_static=cross
11604 else
11605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11606 lt_status=$lt_dlunknown
11607 cat > conftest.$ac_ext <<_LT_EOF
11608 #line 11608 "configure"
11609 #include "confdefs.h"
11611 #if HAVE_DLFCN_H
11612 #include <dlfcn.h>
11613 #endif
11615 #include <stdio.h>
11617 #ifdef RTLD_GLOBAL
11618 # define LT_DLGLOBAL RTLD_GLOBAL
11619 #else
11620 # ifdef DL_GLOBAL
11621 # define LT_DLGLOBAL DL_GLOBAL
11622 # else
11623 # define LT_DLGLOBAL 0
11624 # endif
11625 #endif
11627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11628 find out it does not work in some platform. */
11629 #ifndef LT_DLLAZY_OR_NOW
11630 # ifdef RTLD_LAZY
11631 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11632 # else
11633 # ifdef DL_LAZY
11634 # define LT_DLLAZY_OR_NOW DL_LAZY
11635 # else
11636 # ifdef RTLD_NOW
11637 # define LT_DLLAZY_OR_NOW RTLD_NOW
11638 # else
11639 # ifdef DL_NOW
11640 # define LT_DLLAZY_OR_NOW DL_NOW
11641 # else
11642 # define LT_DLLAZY_OR_NOW 0
11643 # endif
11644 # endif
11645 # endif
11646 # endif
11647 #endif
11649 /* When -fvisbility=hidden is used, assume the code has been annotated
11650 correspondingly for the symbols needed. */
11651 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11652 void fnord () __attribute__((visibility("default")));
11653 #endif
11655 void fnord () { int i=42; }
11656 int main ()
11658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11659 int status = $lt_dlunknown;
11661 if (self)
11663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11664 else
11666 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11667 else puts (dlerror ());
11669 /* dlclose (self); */
11671 else
11672 puts (dlerror ());
11674 return status;
11676 _LT_EOF
11677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11678 (eval $ac_link) 2>&5
11679 ac_status=$?
11680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11681 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11682 (./conftest; exit; ) >&5 2>/dev/null
11683 lt_status=$?
11684 case x$lt_status in
11685 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11686 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11687 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11688 esac
11689 else :
11690 # compilation failed
11691 lt_cv_dlopen_self_static=no
11694 rm -fr conftest*
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11699 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11702 CPPFLAGS="$save_CPPFLAGS"
11703 LDFLAGS="$save_LDFLAGS"
11704 LIBS="$save_LIBS"
11706 esac
11708 case $lt_cv_dlopen_self in
11709 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11710 *) enable_dlopen_self=unknown ;;
11711 esac
11713 case $lt_cv_dlopen_self_static in
11714 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11715 *) enable_dlopen_self_static=unknown ;;
11716 esac
11735 striplib=
11736 old_striplib=
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11738 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11739 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11740 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11741 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743 $as_echo "yes" >&6; }
11744 else
11745 # FIXME - insert some real tests, host_os isn't really good enough
11746 case $host_os in
11747 darwin*)
11748 if test -n "$STRIP" ; then
11749 striplib="$STRIP -x"
11750 old_striplib="$STRIP -S"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11752 $as_echo "yes" >&6; }
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11762 esac
11776 # Report which library types will actually be built
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11778 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11780 $as_echo "$can_build_shared" >&6; }
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11783 $as_echo_n "checking whether to build shared libraries... " >&6; }
11784 test "$can_build_shared" = "no" && enable_shared=no
11786 # On AIX, shared libraries and static libraries use the same namespace, and
11787 # are all built from PIC.
11788 case $host_os in
11789 aix3*)
11790 test "$enable_shared" = yes && enable_static=no
11791 if test -n "$RANLIB"; then
11792 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11793 postinstall_cmds='$RANLIB $lib'
11797 aix[4-9]*)
11798 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11799 test "$enable_shared" = yes && enable_static=no
11802 esac
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11804 $as_echo "$enable_shared" >&6; }
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11807 $as_echo_n "checking whether to build static libraries... " >&6; }
11808 # Make sure either enable_shared or enable_static is yes.
11809 test "$enable_shared" = yes || enable_static=yes
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11811 $as_echo "$enable_static" >&6; }
11817 ac_ext=c
11818 ac_cpp='$CPP $CPPFLAGS'
11819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11823 CC="$lt_save_CC"
11825 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11826 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11827 (test "X$CXX" != "Xg++"))) ; then
11828 ac_ext=cpp
11829 ac_cpp='$CXXCPP $CPPFLAGS'
11830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11834 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11835 if test -z "$CXXCPP"; then
11836 if ${ac_cv_prog_CXXCPP+:} false; then :
11837 $as_echo_n "(cached) " >&6
11838 else
11839 # Double quotes because CXXCPP needs to be expanded
11840 for CXXCPP in "$CXX -E" "/lib/cpp"
11842 ac_preproc_ok=false
11843 for ac_cxx_preproc_warn_flag in '' yes
11845 # Use a header file that comes with gcc, so configuring glibc
11846 # with a fresh cross-compiler works.
11847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11848 # <limits.h> exists even on freestanding compilers.
11849 # On the NeXT, cc -E runs the code through the compiler's parser,
11850 # not just through cpp. "Syntax error" is here to catch this case.
11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h. */
11853 #ifdef __STDC__
11854 # include <limits.h>
11855 #else
11856 # include <assert.h>
11857 #endif
11858 Syntax error
11859 _ACEOF
11860 if ac_fn_cxx_try_cpp "$LINENO"; then :
11862 else
11863 # Broken: fails on valid input.
11864 continue
11866 rm -f conftest.err conftest.i conftest.$ac_ext
11868 # OK, works on sane cases. Now check whether nonexistent headers
11869 # can be detected and how.
11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h. */
11872 #include <ac_nonexistent.h>
11873 _ACEOF
11874 if ac_fn_cxx_try_cpp "$LINENO"; then :
11875 # Broken: success on invalid input.
11876 continue
11877 else
11878 # Passes both tests.
11879 ac_preproc_ok=:
11880 break
11882 rm -f conftest.err conftest.i conftest.$ac_ext
11884 done
11885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11886 rm -f conftest.i conftest.err conftest.$ac_ext
11887 if $ac_preproc_ok; then :
11888 break
11891 done
11892 ac_cv_prog_CXXCPP=$CXXCPP
11895 CXXCPP=$ac_cv_prog_CXXCPP
11896 else
11897 ac_cv_prog_CXXCPP=$CXXCPP
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11900 $as_echo "$CXXCPP" >&6; }
11901 ac_preproc_ok=false
11902 for ac_cxx_preproc_warn_flag in '' yes
11904 # Use a header file that comes with gcc, so configuring glibc
11905 # with a fresh cross-compiler works.
11906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11907 # <limits.h> exists even on freestanding compilers.
11908 # On the NeXT, cc -E runs the code through the compiler's parser,
11909 # not just through cpp. "Syntax error" is here to catch this case.
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11912 #ifdef __STDC__
11913 # include <limits.h>
11914 #else
11915 # include <assert.h>
11916 #endif
11917 Syntax error
11918 _ACEOF
11919 if ac_fn_cxx_try_cpp "$LINENO"; then :
11921 else
11922 # Broken: fails on valid input.
11923 continue
11925 rm -f conftest.err conftest.i conftest.$ac_ext
11927 # OK, works on sane cases. Now check whether nonexistent headers
11928 # can be detected and how.
11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930 /* end confdefs.h. */
11931 #include <ac_nonexistent.h>
11932 _ACEOF
11933 if ac_fn_cxx_try_cpp "$LINENO"; then :
11934 # Broken: success on invalid input.
11935 continue
11936 else
11937 # Passes both tests.
11938 ac_preproc_ok=:
11939 break
11941 rm -f conftest.err conftest.i conftest.$ac_ext
11943 done
11944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11945 rm -f conftest.i conftest.err conftest.$ac_ext
11946 if $ac_preproc_ok; then :
11948 else
11949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11951 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11952 See \`config.log' for more details" "$LINENO" 5; }
11955 ac_ext=c
11956 ac_cpp='$CPP $CPPFLAGS'
11957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11961 else
11962 _lt_caught_CXX_error=yes
11965 ac_ext=cpp
11966 ac_cpp='$CXXCPP $CPPFLAGS'
11967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11971 archive_cmds_need_lc_CXX=no
11972 allow_undefined_flag_CXX=
11973 always_export_symbols_CXX=no
11974 archive_expsym_cmds_CXX=
11975 compiler_needs_object_CXX=no
11976 export_dynamic_flag_spec_CXX=
11977 hardcode_direct_CXX=no
11978 hardcode_direct_absolute_CXX=no
11979 hardcode_libdir_flag_spec_CXX=
11980 hardcode_libdir_flag_spec_ld_CXX=
11981 hardcode_libdir_separator_CXX=
11982 hardcode_minus_L_CXX=no
11983 hardcode_shlibpath_var_CXX=unsupported
11984 hardcode_automatic_CXX=no
11985 inherit_rpath_CXX=no
11986 module_cmds_CXX=
11987 module_expsym_cmds_CXX=
11988 link_all_deplibs_CXX=unknown
11989 old_archive_cmds_CXX=$old_archive_cmds
11990 reload_flag_CXX=$reload_flag
11991 reload_cmds_CXX=$reload_cmds
11992 no_undefined_flag_CXX=
11993 whole_archive_flag_spec_CXX=
11994 enable_shared_with_static_runtimes_CXX=no
11996 # Source file extension for C++ test sources.
11997 ac_ext=cpp
11999 # Object file extension for compiled C++ test sources.
12000 objext=o
12001 objext_CXX=$objext
12003 # No sense in running all these tests if we already determined that
12004 # the CXX compiler isn't working. Some variables (like enable_shared)
12005 # are currently assumed to apply to all compilers on this platform,
12006 # and will be corrupted by setting them based on a non-working compiler.
12007 if test "$_lt_caught_CXX_error" != yes; then
12008 # Code to be used in simple compile tests
12009 lt_simple_compile_test_code="int some_variable = 0;"
12011 # Code to be used in simple link tests
12012 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12014 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12021 # If no C compiler was specified, use CC.
12022 LTCC=${LTCC-"$CC"}
12024 # If no C compiler flags were specified, use CFLAGS.
12025 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12027 # Allow CC to be a program name with arguments.
12028 compiler=$CC
12031 # save warnings/boilerplate of simple test code
12032 ac_outfile=conftest.$ac_objext
12033 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12034 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12035 _lt_compiler_boilerplate=`cat conftest.err`
12036 $RM conftest*
12038 ac_outfile=conftest.$ac_objext
12039 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12040 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12041 _lt_linker_boilerplate=`cat conftest.err`
12042 $RM -r conftest*
12045 # Allow CC to be a program name with arguments.
12046 lt_save_CC=$CC
12047 lt_save_LD=$LD
12048 lt_save_GCC=$GCC
12049 GCC=$GXX
12050 lt_save_with_gnu_ld=$with_gnu_ld
12051 lt_save_path_LD=$lt_cv_path_LD
12052 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12053 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12054 else
12055 $as_unset lt_cv_prog_gnu_ld
12057 if test -n "${lt_cv_path_LDCXX+set}"; then
12058 lt_cv_path_LD=$lt_cv_path_LDCXX
12059 else
12060 $as_unset lt_cv_path_LD
12062 test -z "${LDCXX+set}" || LD=$LDCXX
12063 CC=${CXX-"c++"}
12064 compiler=$CC
12065 compiler_CXX=$CC
12066 for cc_temp in $compiler""; do
12067 case $cc_temp in
12068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12070 \-*) ;;
12071 *) break;;
12072 esac
12073 done
12074 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12077 if test -n "$compiler"; then
12078 # We don't want -fno-exception when compiling C++ code, so set the
12079 # no_builtin_flag separately
12080 if test "$GXX" = yes; then
12081 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12082 else
12083 lt_prog_compiler_no_builtin_flag_CXX=
12086 if test "$GXX" = yes; then
12087 # Set up default GNU C++ configuration
12091 # Check whether --with-gnu-ld was given.
12092 if test "${with_gnu_ld+set}" = set; then :
12093 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12094 else
12095 with_gnu_ld=no
12098 ac_prog=ld
12099 if test "$GCC" = yes; then
12100 # Check if gcc -print-prog-name=ld gives a path.
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12102 $as_echo_n "checking for ld used by $CC... " >&6; }
12103 case $host in
12104 *-*-mingw*)
12105 # gcc leaves a trailing carriage return which upsets mingw
12106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12109 esac
12110 case $ac_prog in
12111 # Accept absolute paths.
12112 [\\/]* | ?:[\\/]*)
12113 re_direlt='/[^/][^/]*/\.\./'
12114 # Canonicalize the pathname of ld
12115 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12116 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12117 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12118 done
12119 test -z "$LD" && LD="$ac_prog"
12122 # If it fails, then pretend we aren't using GCC.
12123 ac_prog=ld
12126 # If it is relative, then search for the first ld in PATH.
12127 with_gnu_ld=unknown
12129 esac
12130 elif test "$with_gnu_ld" = yes; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12132 $as_echo_n "checking for GNU ld... " >&6; }
12133 else
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12135 $as_echo_n "checking for non-GNU ld... " >&6; }
12137 if ${lt_cv_path_LD+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 if test -z "$LD"; then
12141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12142 for ac_dir in $PATH; do
12143 IFS="$lt_save_ifs"
12144 test -z "$ac_dir" && ac_dir=.
12145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12146 lt_cv_path_LD="$ac_dir/$ac_prog"
12147 # Check to see if the program is GNU ld. I'd rather use --version,
12148 # but apparently some variants of GNU ld only accept -v.
12149 # Break only if it was the GNU/non-GNU ld that we prefer.
12150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12151 *GNU* | *'with BFD'*)
12152 test "$with_gnu_ld" != no && break
12155 test "$with_gnu_ld" != yes && break
12157 esac
12159 done
12160 IFS="$lt_save_ifs"
12161 else
12162 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12166 LD="$lt_cv_path_LD"
12167 if test -n "$LD"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12169 $as_echo "$LD" >&6; }
12170 else
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12174 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12176 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12177 if ${lt_cv_prog_gnu_ld+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12181 case `$LD -v 2>&1 </dev/null` in
12182 *GNU* | *'with BFD'*)
12183 lt_cv_prog_gnu_ld=yes
12186 lt_cv_prog_gnu_ld=no
12188 esac
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12191 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12192 with_gnu_ld=$lt_cv_prog_gnu_ld
12200 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12201 # archiving commands below assume that GNU ld is being used.
12202 if test "$with_gnu_ld" = yes; then
12203 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12204 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'
12206 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12207 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12209 # If archive_cmds runs LD, not CC, wlarc should be empty
12210 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12211 # investigate it a little bit more. (MM)
12212 wlarc='${wl}'
12214 # ancient GNU ld didn't support --whole-archive et. al.
12215 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12216 $GREP 'no-whole-archive' > /dev/null; then
12217 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12218 else
12219 whole_archive_flag_spec_CXX=
12221 else
12222 with_gnu_ld=no
12223 wlarc=
12225 # A generic and very simple default shared library creation
12226 # command for GNU C++ for the case where it uses the native
12227 # linker, instead of GNU ld. If possible, this setting should
12228 # overridden to take advantage of the native linker features on
12229 # the platform it is being used on.
12230 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12233 # Commands to make compiler produce verbose output that lists
12234 # what "hidden" libraries, object files and flags are used when
12235 # linking a shared library.
12236 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12238 else
12239 GXX=no
12240 with_gnu_ld=no
12241 wlarc=
12244 # PORTME: fill in a description of your system's C++ link characteristics
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12246 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12247 ld_shlibs_CXX=yes
12248 case $host_os in
12249 aix3*)
12250 # FIXME: insert proper C++ library support
12251 ld_shlibs_CXX=no
12253 aix[4-9]*)
12254 if test "$host_cpu" = ia64; then
12255 # On IA64, the linker does run time linking by default, so we don't
12256 # have to do anything special.
12257 aix_use_runtimelinking=no
12258 exp_sym_flag='-Bexport'
12259 no_entry_flag=""
12260 else
12261 aix_use_runtimelinking=no
12263 # Test if we are trying to use run time linking or normal
12264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12265 # need to do runtime linking.
12266 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12267 for ld_flag in $LDFLAGS; do
12268 case $ld_flag in
12269 *-brtl*)
12270 aix_use_runtimelinking=yes
12271 break
12273 esac
12274 done
12276 esac
12278 exp_sym_flag='-bexport'
12279 no_entry_flag='-bnoentry'
12282 # When large executables or shared objects are built, AIX ld can
12283 # have problems creating the table of contents. If linking a library
12284 # or program results in "error TOC overflow" add -mminimal-toc to
12285 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12286 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12288 archive_cmds_CXX=''
12289 hardcode_direct_CXX=yes
12290 hardcode_direct_absolute_CXX=yes
12291 hardcode_libdir_separator_CXX=':'
12292 link_all_deplibs_CXX=yes
12293 file_list_spec_CXX='${wl}-f,'
12295 if test "$GXX" = yes; then
12296 case $host_os in aix4.[012]|aix4.[012].*)
12297 # We only want to do this on AIX 4.2 and lower, the check
12298 # below for broken collect2 doesn't work under 4.3+
12299 collect2name=`${CC} -print-prog-name=collect2`
12300 if test -f "$collect2name" &&
12301 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12302 then
12303 # We have reworked collect2
12305 else
12306 # We have old collect2
12307 hardcode_direct_CXX=unsupported
12308 # It fails to find uninstalled libraries when the uninstalled
12309 # path is not listed in the libpath. Setting hardcode_minus_L
12310 # to unsupported forces relinking
12311 hardcode_minus_L_CXX=yes
12312 hardcode_libdir_flag_spec_CXX='-L$libdir'
12313 hardcode_libdir_separator_CXX=
12315 esac
12316 shared_flag='-shared'
12317 if test "$aix_use_runtimelinking" = yes; then
12318 shared_flag="$shared_flag "'${wl}-G'
12320 else
12321 # not using gcc
12322 if test "$host_cpu" = ia64; then
12323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12324 # chokes on -Wl,-G. The following line is correct:
12325 shared_flag='-G'
12326 else
12327 if test "$aix_use_runtimelinking" = yes; then
12328 shared_flag='${wl}-G'
12329 else
12330 shared_flag='${wl}-bM:SRE'
12335 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12336 # It seems that -bexpall does not export symbols beginning with
12337 # underscore (_), so it is better to generate a list of symbols to
12338 # export.
12339 always_export_symbols_CXX=yes
12340 if test "$aix_use_runtimelinking" = yes; then
12341 # Warning - without using the other runtime loading flags (-brtl),
12342 # -berok will link without error, but may produce a broken library.
12343 allow_undefined_flag_CXX='-berok'
12344 # Determine the default libpath from the value encoded in an empty
12345 # executable.
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12350 main ()
12354 return 0;
12356 _ACEOF
12357 if ac_fn_cxx_try_link "$LINENO"; then :
12359 lt_aix_libpath_sed='
12360 /Import File Strings/,/^$/ {
12361 /^0/ {
12362 s/^0 *\(.*\)$/\1/
12366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12367 # Check for a 64-bit object if we didn't find anything.
12368 if test -z "$aix_libpath"; then
12369 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12372 rm -f core conftest.err conftest.$ac_objext \
12373 conftest$ac_exeext conftest.$ac_ext
12374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12376 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12378 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"
12379 else
12380 if test "$host_cpu" = ia64; then
12381 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12382 allow_undefined_flag_CXX="-z nodefs"
12383 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"
12384 else
12385 # Determine the default libpath from the value encoded in an
12386 # empty executable.
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12391 main ()
12395 return 0;
12397 _ACEOF
12398 if ac_fn_cxx_try_link "$LINENO"; then :
12400 lt_aix_libpath_sed='
12401 /Import File Strings/,/^$/ {
12402 /^0/ {
12403 s/^0 *\(.*\)$/\1/
12407 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12408 # Check for a 64-bit object if we didn't find anything.
12409 if test -z "$aix_libpath"; then
12410 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12413 rm -f core conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
12415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12417 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12418 # Warning - without using the other run time loading flags,
12419 # -berok will link without error, but may produce a broken library.
12420 no_undefined_flag_CXX=' ${wl}-bernotok'
12421 allow_undefined_flag_CXX=' ${wl}-berok'
12422 if test "$with_gnu_ld" = yes; then
12423 # We only use this code for GNU lds that support --whole-archive.
12424 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12425 else
12426 # Exported symbols can be pulled into shared objects from archives
12427 whole_archive_flag_spec_CXX='$convenience'
12429 archive_cmds_need_lc_CXX=yes
12430 # This is similar to how AIX traditionally builds its shared
12431 # libraries.
12432 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'
12437 beos*)
12438 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12439 allow_undefined_flag_CXX=unsupported
12440 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12441 # support --undefined. This deserves some investigation. FIXME
12442 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12443 else
12444 ld_shlibs_CXX=no
12448 chorus*)
12449 case $cc_basename in
12451 # FIXME: insert proper C++ library support
12452 ld_shlibs_CXX=no
12454 esac
12457 cygwin* | mingw* | pw32* | cegcc*)
12458 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12459 # as there is no search path for DLLs.
12460 hardcode_libdir_flag_spec_CXX='-L$libdir'
12461 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12462 allow_undefined_flag_CXX=unsupported
12463 always_export_symbols_CXX=no
12464 enable_shared_with_static_runtimes_CXX=yes
12466 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12467 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'
12468 # If the export-symbols file already is a .def file (1st line
12469 # is EXPORTS), use it as is; otherwise, prepend...
12470 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12471 cp $export_symbols $output_objdir/$soname.def;
12472 else
12473 echo EXPORTS > $output_objdir/$soname.def;
12474 cat $export_symbols >> $output_objdir/$soname.def;
12476 $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'
12477 else
12478 ld_shlibs_CXX=no
12481 darwin* | rhapsody*)
12484 archive_cmds_need_lc_CXX=no
12485 hardcode_direct_CXX=no
12486 hardcode_automatic_CXX=yes
12487 hardcode_shlibpath_var_CXX=unsupported
12488 if test "$lt_cv_ld_force_load" = "yes"; then
12489 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\"`'
12490 else
12491 whole_archive_flag_spec_CXX=''
12493 link_all_deplibs_CXX=yes
12494 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12495 case $cc_basename in
12496 ifort*) _lt_dar_can_shared=yes ;;
12497 *) _lt_dar_can_shared=$GCC ;;
12498 esac
12499 if test "$_lt_dar_can_shared" = "yes"; then
12500 output_verbose_link_cmd=func_echo_all
12501 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}"
12502 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12503 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}"
12504 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}"
12505 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12506 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}"
12507 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}"
12510 else
12511 ld_shlibs_CXX=no
12516 dgux*)
12517 case $cc_basename in
12518 ec++*)
12519 # FIXME: insert proper C++ library support
12520 ld_shlibs_CXX=no
12522 ghcx*)
12523 # Green Hills C++ Compiler
12524 # FIXME: insert proper C++ library support
12525 ld_shlibs_CXX=no
12528 # FIXME: insert proper C++ library support
12529 ld_shlibs_CXX=no
12531 esac
12534 freebsd2.*)
12535 # C++ shared libraries reported to be fairly broken before
12536 # switch to ELF
12537 ld_shlibs_CXX=no
12540 freebsd-elf*)
12541 archive_cmds_need_lc_CXX=no
12544 freebsd* | dragonfly*)
12545 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12546 # conventions
12547 ld_shlibs_CXX=yes
12550 gnu*)
12553 haiku*)
12554 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12555 link_all_deplibs_CXX=yes
12558 hpux9*)
12559 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12560 hardcode_libdir_separator_CXX=:
12561 export_dynamic_flag_spec_CXX='${wl}-E'
12562 hardcode_direct_CXX=yes
12563 hardcode_minus_L_CXX=yes # Not in the search PATH,
12564 # but as the default
12565 # location of the library.
12567 case $cc_basename in
12568 CC*)
12569 # FIXME: insert proper C++ library support
12570 ld_shlibs_CXX=no
12572 aCC*)
12573 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'
12574 # Commands to make compiler produce verbose output that lists
12575 # what "hidden" libraries, object files and flags are used when
12576 # linking a shared library.
12578 # There doesn't appear to be a way to prevent this compiler from
12579 # explicitly linking system object files so we need to strip them
12580 # from the output so that they don't get included in the library
12581 # dependencies.
12582 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"'
12585 if test "$GXX" = yes; then
12586 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'
12587 else
12588 # FIXME: insert proper C++ library support
12589 ld_shlibs_CXX=no
12592 esac
12595 hpux10*|hpux11*)
12596 if test $with_gnu_ld = no; then
12597 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12598 hardcode_libdir_separator_CXX=:
12600 case $host_cpu in
12601 hppa*64*|ia64*)
12604 export_dynamic_flag_spec_CXX='${wl}-E'
12606 esac
12608 case $host_cpu in
12609 hppa*64*|ia64*)
12610 hardcode_direct_CXX=no
12611 hardcode_shlibpath_var_CXX=no
12614 hardcode_direct_CXX=yes
12615 hardcode_direct_absolute_CXX=yes
12616 hardcode_minus_L_CXX=yes # Not in the search PATH,
12617 # but as the default
12618 # location of the library.
12620 esac
12622 case $cc_basename in
12623 CC*)
12624 # FIXME: insert proper C++ library support
12625 ld_shlibs_CXX=no
12627 aCC*)
12628 case $host_cpu in
12629 hppa*64*)
12630 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12632 ia64*)
12633 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12636 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12638 esac
12639 # Commands to make compiler produce verbose output that lists
12640 # what "hidden" libraries, object files and flags are used when
12641 # linking a shared library.
12643 # There doesn't appear to be a way to prevent this compiler from
12644 # explicitly linking system object files so we need to strip them
12645 # from the output so that they don't get included in the library
12646 # dependencies.
12647 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"'
12650 if test "$GXX" = yes; then
12651 if test $with_gnu_ld = no; then
12652 case $host_cpu in
12653 hppa*64*)
12654 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12656 ia64*)
12657 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12660 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'
12662 esac
12664 else
12665 # FIXME: insert proper C++ library support
12666 ld_shlibs_CXX=no
12669 esac
12672 interix[3-9]*)
12673 hardcode_direct_CXX=no
12674 hardcode_shlibpath_var_CXX=no
12675 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12676 export_dynamic_flag_spec_CXX='${wl}-E'
12677 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12678 # Instead, shared libraries are loaded at an image base (0x10000000 by
12679 # default) and relocated if they conflict, which is a slow very memory
12680 # consuming and fragmenting process. To avoid this, we pick a random,
12681 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12682 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12683 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'
12684 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'
12686 irix5* | irix6*)
12687 case $cc_basename in
12688 CC*)
12689 # SGI C++
12690 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'
12692 # Archives containing C++ object files must be created using
12693 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12694 # necessary to make sure instantiated templates are included
12695 # in the archive.
12696 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12699 if test "$GXX" = yes; then
12700 if test "$with_gnu_ld" = no; then
12701 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'
12702 else
12703 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'
12706 link_all_deplibs_CXX=yes
12708 esac
12709 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12710 hardcode_libdir_separator_CXX=:
12711 inherit_rpath_CXX=yes
12714 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12715 case $cc_basename in
12716 KCC*)
12717 # Kuck and Associates, Inc. (KAI) C++ Compiler
12719 # KCC will only create a shared library if the output file
12720 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12721 # to its proper name (with version) after linking.
12722 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'
12723 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'
12724 # Commands to make compiler produce verbose output that lists
12725 # what "hidden" libraries, object files and flags are used when
12726 # linking a shared library.
12728 # There doesn't appear to be a way to prevent this compiler from
12729 # explicitly linking system object files so we need to strip them
12730 # from the output so that they don't get included in the library
12731 # dependencies.
12732 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"'
12734 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12735 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12737 # Archives containing C++ object files must be created using
12738 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12739 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12741 icpc* | ecpc* )
12742 # Intel C++
12743 with_gnu_ld=yes
12744 # version 8.0 and above of icpc choke on multiply defined symbols
12745 # if we add $predep_objects and $postdep_objects, however 7.1 and
12746 # earlier do not add the objects themselves.
12747 case `$CC -V 2>&1` in
12748 *"Version 7."*)
12749 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12750 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'
12752 *) # Version 8.0 or newer
12753 tmp_idyn=
12754 case $host_cpu in
12755 ia64*) tmp_idyn=' -i_dynamic';;
12756 esac
12757 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12758 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'
12760 esac
12761 archive_cmds_need_lc_CXX=no
12762 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12763 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12764 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12766 pgCC* | pgcpp*)
12767 # Portland Group C++ compiler
12768 case `$CC -V` in
12769 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12770 prelink_cmds_CXX='tpldir=Template.dir~
12771 rm -rf $tpldir~
12772 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12773 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12774 old_archive_cmds_CXX='tpldir=Template.dir~
12775 rm -rf $tpldir~
12776 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12777 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12778 $RANLIB $oldlib'
12779 archive_cmds_CXX='tpldir=Template.dir~
12780 rm -rf $tpldir~
12781 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12782 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12783 archive_expsym_cmds_CXX='tpldir=Template.dir~
12784 rm -rf $tpldir~
12785 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12786 $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'
12788 *) # Version 6 and above use weak symbols
12789 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12790 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'
12792 esac
12794 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12796 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'
12798 cxx*)
12799 # Compaq C++
12800 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12801 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'
12803 runpath_var=LD_RUN_PATH
12804 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12805 hardcode_libdir_separator_CXX=:
12807 # Commands to make compiler produce verbose output that lists
12808 # what "hidden" libraries, object files and flags are used when
12809 # linking a shared library.
12811 # There doesn't appear to be a way to prevent this compiler from
12812 # explicitly linking system object files so we need to strip them
12813 # from the output so that they don't get included in the library
12814 # dependencies.
12815 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'
12817 xl* | mpixl* | bgxl*)
12818 # IBM XL 8.0 on PPC, with GNU ld
12819 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12820 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12821 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12822 if test "x$supports_anon_versioning" = xyes; then
12823 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12824 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12825 echo "local: *; };" >> $output_objdir/$libname.ver~
12826 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12830 case `$CC -V 2>&1 | sed 5q` in
12831 *Sun\ C*)
12832 # Sun C++ 5.9
12833 no_undefined_flag_CXX=' -zdefs'
12834 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12835 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'
12836 hardcode_libdir_flag_spec_CXX='-R$libdir'
12837 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'
12838 compiler_needs_object_CXX=yes
12840 # Not sure whether something based on
12841 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12842 # would be better.
12843 output_verbose_link_cmd='func_echo_all'
12845 # Archives containing C++ object files must be created using
12846 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12847 # necessary to make sure instantiated templates are included
12848 # in the archive.
12849 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12851 esac
12853 esac
12856 lynxos*)
12857 # FIXME: insert proper C++ library support
12858 ld_shlibs_CXX=no
12861 m88k*)
12862 # FIXME: insert proper C++ library support
12863 ld_shlibs_CXX=no
12866 mvs*)
12867 case $cc_basename in
12868 cxx*)
12869 # FIXME: insert proper C++ library support
12870 ld_shlibs_CXX=no
12873 # FIXME: insert proper C++ library support
12874 ld_shlibs_CXX=no
12876 esac
12879 netbsd*)
12880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12881 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12882 wlarc=
12883 hardcode_libdir_flag_spec_CXX='-R$libdir'
12884 hardcode_direct_CXX=yes
12885 hardcode_shlibpath_var_CXX=no
12887 # Workaround some broken pre-1.5 toolchains
12888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12891 *nto* | *qnx*)
12892 ld_shlibs_CXX=yes
12895 openbsd2*)
12896 # C++ shared libraries are fairly broken
12897 ld_shlibs_CXX=no
12900 openbsd*)
12901 if test -f /usr/libexec/ld.so; then
12902 hardcode_direct_CXX=yes
12903 hardcode_shlibpath_var_CXX=no
12904 hardcode_direct_absolute_CXX=yes
12905 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12906 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12908 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12909 export_dynamic_flag_spec_CXX='${wl}-E'
12910 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12912 output_verbose_link_cmd=func_echo_all
12913 else
12914 ld_shlibs_CXX=no
12918 osf3* | osf4* | osf5*)
12919 case $cc_basename in
12920 KCC*)
12921 # Kuck and Associates, Inc. (KAI) C++ Compiler
12923 # KCC will only create a shared library if the output file
12924 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12925 # to its proper name (with version) after linking.
12926 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'
12928 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12929 hardcode_libdir_separator_CXX=:
12931 # Archives containing C++ object files must be created using
12932 # the KAI C++ compiler.
12933 case $host in
12934 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12935 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12936 esac
12938 RCC*)
12939 # Rational C++ 2.4.1
12940 # FIXME: insert proper C++ library support
12941 ld_shlibs_CXX=no
12943 cxx*)
12944 case $host in
12945 osf3*)
12946 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12947 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'
12948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12951 allow_undefined_flag_CXX=' -expect_unresolved \*'
12952 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'
12953 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12954 echo "-hidden">> $lib.exp~
12955 $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~
12956 $RM $lib.exp'
12957 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12959 esac
12961 hardcode_libdir_separator_CXX=:
12963 # Commands to make compiler produce verbose output that lists
12964 # what "hidden" libraries, object files and flags are used when
12965 # linking a shared library.
12967 # There doesn't appear to be a way to prevent this compiler from
12968 # explicitly linking system object files so we need to strip them
12969 # from the output so that they don't get included in the library
12970 # dependencies.
12971 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"'
12974 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12975 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12976 case $host in
12977 osf3*)
12978 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'
12981 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'
12983 esac
12985 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12986 hardcode_libdir_separator_CXX=:
12988 # Commands to make compiler produce verbose output that lists
12989 # what "hidden" libraries, object files and flags are used when
12990 # linking a shared library.
12991 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12993 else
12994 # FIXME: insert proper C++ library support
12995 ld_shlibs_CXX=no
12998 esac
13001 psos*)
13002 # FIXME: insert proper C++ library support
13003 ld_shlibs_CXX=no
13006 sunos4*)
13007 case $cc_basename in
13008 CC*)
13009 # Sun C++ 4.x
13010 # FIXME: insert proper C++ library support
13011 ld_shlibs_CXX=no
13013 lcc*)
13014 # Lucid
13015 # FIXME: insert proper C++ library support
13016 ld_shlibs_CXX=no
13019 # FIXME: insert proper C++ library support
13020 ld_shlibs_CXX=no
13022 esac
13025 solaris*)
13026 case $cc_basename in
13027 CC*)
13028 # Sun C++ 4.2, 5.x and Centerline C++
13029 archive_cmds_need_lc_CXX=yes
13030 no_undefined_flag_CXX=' -zdefs'
13031 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13032 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13033 $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'
13035 hardcode_libdir_flag_spec_CXX='-R$libdir'
13036 hardcode_shlibpath_var_CXX=no
13037 case $host_os in
13038 solaris2.[0-5] | solaris2.[0-5].*) ;;
13040 # The compiler driver will combine and reorder linker options,
13041 # but understands `-z linker_flag'.
13042 # Supported since Solaris 2.6 (maybe 2.5.1?)
13043 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13045 esac
13046 link_all_deplibs_CXX=yes
13048 output_verbose_link_cmd='func_echo_all'
13050 # Archives containing C++ object files must be created using
13051 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13052 # necessary to make sure instantiated templates are included
13053 # in the archive.
13054 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13056 gcx*)
13057 # Green Hills C++ Compiler
13058 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13060 # The C++ compiler must be used to create the archive.
13061 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13064 # GNU C++ compiler with Solaris linker
13065 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13066 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13067 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13068 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13069 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13070 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13072 # Commands to make compiler produce verbose output that lists
13073 # what "hidden" libraries, object files and flags are used when
13074 # linking a shared library.
13075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13076 else
13077 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13078 # platform.
13079 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13080 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13081 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13083 # Commands to make compiler produce verbose output that lists
13084 # what "hidden" libraries, object files and flags are used when
13085 # linking a shared library.
13086 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13089 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13090 case $host_os in
13091 solaris2.[0-5] | solaris2.[0-5].*) ;;
13093 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13095 esac
13098 esac
13101 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13102 no_undefined_flag_CXX='${wl}-z,text'
13103 archive_cmds_need_lc_CXX=no
13104 hardcode_shlibpath_var_CXX=no
13105 runpath_var='LD_RUN_PATH'
13107 case $cc_basename in
13108 CC*)
13109 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13110 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13113 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13114 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13116 esac
13119 sysv5* | sco3.2v5* | sco5v6*)
13120 # Note: We can NOT use -z defs as we might desire, because we do not
13121 # link with -lc, and that would cause any symbols used from libc to
13122 # always be unresolved, which means just about no library would
13123 # ever link correctly. If we're not using GNU ld we use -z text
13124 # though, which does catch some bad symbols but isn't as heavy-handed
13125 # as -z defs.
13126 no_undefined_flag_CXX='${wl}-z,text'
13127 allow_undefined_flag_CXX='${wl}-z,nodefs'
13128 archive_cmds_need_lc_CXX=no
13129 hardcode_shlibpath_var_CXX=no
13130 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13131 hardcode_libdir_separator_CXX=':'
13132 link_all_deplibs_CXX=yes
13133 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13134 runpath_var='LD_RUN_PATH'
13136 case $cc_basename in
13137 CC*)
13138 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13139 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13140 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13141 '"$old_archive_cmds_CXX"
13142 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13143 '"$reload_cmds_CXX"
13146 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13147 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13149 esac
13152 tandem*)
13153 case $cc_basename in
13154 NCC*)
13155 # NonStop-UX NCC 3.20
13156 # FIXME: insert proper C++ library support
13157 ld_shlibs_CXX=no
13160 # FIXME: insert proper C++ library support
13161 ld_shlibs_CXX=no
13163 esac
13166 vxworks*)
13167 # For VxWorks ports, we assume the use of a GNU linker with
13168 # standard elf conventions.
13169 ld_shlibs_CXX=yes
13173 # FIXME: insert proper C++ library support
13174 ld_shlibs_CXX=no
13176 esac
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13179 $as_echo "$ld_shlibs_CXX" >&6; }
13180 test "$ld_shlibs_CXX" = no && can_build_shared=no
13182 GCC_CXX="$GXX"
13183 LD_CXX="$LD"
13185 ## CAVEAT EMPTOR:
13186 ## There is no encapsulation within the following macros, do not change
13187 ## the running order or otherwise move them around unless you know exactly
13188 ## what you are doing...
13189 # Dependencies to place before and after the object being linked:
13190 predep_objects_CXX=
13191 postdep_objects_CXX=
13192 predeps_CXX=
13193 postdeps_CXX=
13194 compiler_lib_search_path_CXX=
13196 cat > conftest.$ac_ext <<_LT_EOF
13197 class Foo
13199 public:
13200 Foo (void) { a = 0; }
13201 private:
13202 int a;
13204 _LT_EOF
13206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13207 (eval $ac_compile) 2>&5
13208 ac_status=$?
13209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13210 test $ac_status = 0; }; then
13211 # Parse the compiler output and extract the necessary
13212 # objects, libraries and library flags.
13214 # Sentinel used to keep track of whether or not we are before
13215 # the conftest object file.
13216 pre_test_object_deps_done=no
13218 for p in `eval "$output_verbose_link_cmd"`; do
13219 case $p in
13221 -L* | -R* | -l*)
13222 # Some compilers place space between "-{L,R}" and the path.
13223 # Remove the space.
13224 if test $p = "-L" ||
13225 test $p = "-R"; then
13226 prev=$p
13227 continue
13228 else
13229 prev=
13232 if test "$pre_test_object_deps_done" = no; then
13233 case $p in
13234 -L* | -R*)
13235 # Internal compiler library paths should come after those
13236 # provided the user. The postdeps already come after the
13237 # user supplied libs so there is no need to process them.
13238 if test -z "$compiler_lib_search_path_CXX"; then
13239 compiler_lib_search_path_CXX="${prev}${p}"
13240 else
13241 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13244 # The "-l" case would never come before the object being
13245 # linked, so don't bother handling this case.
13246 esac
13247 else
13248 if test -z "$postdeps_CXX"; then
13249 postdeps_CXX="${prev}${p}"
13250 else
13251 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13256 *.$objext)
13257 # This assumes that the test object file only shows up
13258 # once in the compiler output.
13259 if test "$p" = "conftest.$objext"; then
13260 pre_test_object_deps_done=yes
13261 continue
13264 if test "$pre_test_object_deps_done" = no; then
13265 if test -z "$predep_objects_CXX"; then
13266 predep_objects_CXX="$p"
13267 else
13268 predep_objects_CXX="$predep_objects_CXX $p"
13270 else
13271 if test -z "$postdep_objects_CXX"; then
13272 postdep_objects_CXX="$p"
13273 else
13274 postdep_objects_CXX="$postdep_objects_CXX $p"
13279 *) ;; # Ignore the rest.
13281 esac
13282 done
13284 # Clean up.
13285 rm -f a.out a.exe
13286 else
13287 echo "libtool.m4: error: problem compiling CXX test program"
13290 $RM -f confest.$objext
13292 # PORTME: override above test on systems where it is broken
13293 case $host_os in
13294 interix[3-9]*)
13295 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13296 # hack all around it, let's just trust "g++" to DTRT.
13297 predep_objects_CXX=
13298 postdep_objects_CXX=
13299 postdeps_CXX=
13302 linux*)
13303 case `$CC -V 2>&1 | sed 5q` in
13304 *Sun\ C*)
13305 # Sun C++ 5.9
13307 # The more standards-conforming stlport4 library is
13308 # incompatible with the Cstd library. Avoid specifying
13309 # it if it's in CXXFLAGS. Ignore libCrun as
13310 # -library=stlport4 depends on it.
13311 case " $CXX $CXXFLAGS " in
13312 *" -library=stlport4 "*)
13313 solaris_use_stlport4=yes
13315 esac
13317 if test "$solaris_use_stlport4" != yes; then
13318 postdeps_CXX='-library=Cstd -library=Crun'
13321 esac
13324 solaris*)
13325 case $cc_basename in
13326 CC*)
13327 # The more standards-conforming stlport4 library is
13328 # incompatible with the Cstd library. Avoid specifying
13329 # it if it's in CXXFLAGS. Ignore libCrun as
13330 # -library=stlport4 depends on it.
13331 case " $CXX $CXXFLAGS " in
13332 *" -library=stlport4 "*)
13333 solaris_use_stlport4=yes
13335 esac
13337 # Adding this requires a known-good setup of shared libraries for
13338 # Sun compiler versions before 5.6, else PIC objects from an old
13339 # archive will be linked into the output, leading to subtle bugs.
13340 if test "$solaris_use_stlport4" != yes; then
13341 postdeps_CXX='-library=Cstd -library=Crun'
13344 esac
13346 esac
13349 case " $postdeps_CXX " in
13350 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13351 esac
13352 compiler_lib_search_dirs_CXX=
13353 if test -n "${compiler_lib_search_path_CXX}"; then
13354 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13387 lt_prog_compiler_wl_CXX=
13388 lt_prog_compiler_pic_CXX=
13389 lt_prog_compiler_static_CXX=
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13392 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13394 # C++ specific cases for pic, static, wl, etc.
13395 if test "$GXX" = yes; then
13396 lt_prog_compiler_wl_CXX='-Wl,'
13397 lt_prog_compiler_static_CXX='-static'
13399 case $host_os in
13400 aix*)
13401 # All AIX code is PIC.
13402 if test "$host_cpu" = ia64; then
13403 # AIX 5 now supports IA64 processor
13404 lt_prog_compiler_static_CXX='-Bstatic'
13406 lt_prog_compiler_pic_CXX='-fPIC'
13409 amigaos*)
13410 case $host_cpu in
13411 powerpc)
13412 # see comment about AmigaOS4 .so support
13413 lt_prog_compiler_pic_CXX='-fPIC'
13415 m68k)
13416 # FIXME: we need at least 68020 code to build shared libraries, but
13417 # adding the `-m68020' flag to GCC prevents building anything better,
13418 # like `-m68040'.
13419 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13421 esac
13424 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13425 # PIC is the default for these OSes.
13427 mingw* | cygwin* | os2* | pw32* | cegcc*)
13428 # This hack is so that the source file can tell whether it is being
13429 # built for inclusion in a dll (and should export symbols for example).
13430 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13431 # (--disable-auto-import) libraries
13432 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13434 darwin* | rhapsody*)
13435 # PIC is the default on this platform
13436 # Common symbols not allowed in MH_DYLIB files
13437 lt_prog_compiler_pic_CXX='-fno-common'
13439 *djgpp*)
13440 # DJGPP does not support shared libraries at all
13441 lt_prog_compiler_pic_CXX=
13443 haiku*)
13444 # PIC is the default for Haiku.
13445 # The "-static" flag exists, but is broken.
13446 lt_prog_compiler_static_CXX=
13448 interix[3-9]*)
13449 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13450 # Instead, we relocate shared libraries at runtime.
13452 sysv4*MP*)
13453 if test -d /usr/nec; then
13454 lt_prog_compiler_pic_CXX=-Kconform_pic
13457 hpux*)
13458 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13459 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13460 # sets the default TLS model and affects inlining.
13461 case $host_cpu in
13462 hppa*64*)
13465 lt_prog_compiler_pic_CXX='-fPIC'
13467 esac
13469 *qnx* | *nto*)
13470 # QNX uses GNU C++, but need to define -shared option too, otherwise
13471 # it will coredump.
13472 lt_prog_compiler_pic_CXX='-fPIC -shared'
13475 lt_prog_compiler_pic_CXX='-fPIC'
13477 esac
13478 else
13479 case $host_os in
13480 aix[4-9]*)
13481 # All AIX code is PIC.
13482 if test "$host_cpu" = ia64; then
13483 # AIX 5 now supports IA64 processor
13484 lt_prog_compiler_static_CXX='-Bstatic'
13485 else
13486 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13489 chorus*)
13490 case $cc_basename in
13491 cxch68*)
13492 # Green Hills C++ Compiler
13493 # _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"
13495 esac
13497 dgux*)
13498 case $cc_basename in
13499 ec++*)
13500 lt_prog_compiler_pic_CXX='-KPIC'
13502 ghcx*)
13503 # Green Hills C++ Compiler
13504 lt_prog_compiler_pic_CXX='-pic'
13508 esac
13510 freebsd* | dragonfly*)
13511 # FreeBSD uses GNU C++
13513 hpux9* | hpux10* | hpux11*)
13514 case $cc_basename in
13515 CC*)
13516 lt_prog_compiler_wl_CXX='-Wl,'
13517 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13518 if test "$host_cpu" != ia64; then
13519 lt_prog_compiler_pic_CXX='+Z'
13522 aCC*)
13523 lt_prog_compiler_wl_CXX='-Wl,'
13524 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13525 case $host_cpu in
13526 hppa*64*|ia64*)
13527 # +Z the default
13530 lt_prog_compiler_pic_CXX='+Z'
13532 esac
13536 esac
13538 interix*)
13539 # This is c89, which is MS Visual C++ (no shared libs)
13540 # Anyone wants to do a port?
13542 irix5* | irix6* | nonstopux*)
13543 case $cc_basename in
13544 CC*)
13545 lt_prog_compiler_wl_CXX='-Wl,'
13546 lt_prog_compiler_static_CXX='-non_shared'
13547 # CC pic flag -KPIC is the default.
13551 esac
13553 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13554 case $cc_basename in
13555 KCC*)
13556 # KAI C++ Compiler
13557 lt_prog_compiler_wl_CXX='--backend -Wl,'
13558 lt_prog_compiler_pic_CXX='-fPIC'
13560 ecpc* )
13561 # old Intel C++ for x86_64 which still supported -KPIC.
13562 lt_prog_compiler_wl_CXX='-Wl,'
13563 lt_prog_compiler_pic_CXX='-KPIC'
13564 lt_prog_compiler_static_CXX='-static'
13566 icpc* )
13567 # Intel C++, used to be incompatible with GCC.
13568 # ICC 10 doesn't accept -KPIC any more.
13569 lt_prog_compiler_wl_CXX='-Wl,'
13570 lt_prog_compiler_pic_CXX='-fPIC'
13571 lt_prog_compiler_static_CXX='-static'
13573 pgCC* | pgcpp*)
13574 # Portland Group C++ compiler
13575 lt_prog_compiler_wl_CXX='-Wl,'
13576 lt_prog_compiler_pic_CXX='-fpic'
13577 lt_prog_compiler_static_CXX='-Bstatic'
13579 cxx*)
13580 # Compaq C++
13581 # Make sure the PIC flag is empty. It appears that all Alpha
13582 # Linux and Compaq Tru64 Unix objects are PIC.
13583 lt_prog_compiler_pic_CXX=
13584 lt_prog_compiler_static_CXX='-non_shared'
13586 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13587 # IBM XL 8.0, 9.0 on PPC and BlueGene
13588 lt_prog_compiler_wl_CXX='-Wl,'
13589 lt_prog_compiler_pic_CXX='-qpic'
13590 lt_prog_compiler_static_CXX='-qstaticlink'
13593 case `$CC -V 2>&1 | sed 5q` in
13594 *Sun\ C*)
13595 # Sun C++ 5.9
13596 lt_prog_compiler_pic_CXX='-KPIC'
13597 lt_prog_compiler_static_CXX='-Bstatic'
13598 lt_prog_compiler_wl_CXX='-Qoption ld '
13600 esac
13602 esac
13604 lynxos*)
13606 m88k*)
13608 mvs*)
13609 case $cc_basename in
13610 cxx*)
13611 lt_prog_compiler_pic_CXX='-W c,exportall'
13615 esac
13617 netbsd*)
13619 *qnx* | *nto*)
13620 # QNX uses GNU C++, but need to define -shared option too, otherwise
13621 # it will coredump.
13622 lt_prog_compiler_pic_CXX='-fPIC -shared'
13624 osf3* | osf4* | osf5*)
13625 case $cc_basename in
13626 KCC*)
13627 lt_prog_compiler_wl_CXX='--backend -Wl,'
13629 RCC*)
13630 # Rational C++ 2.4.1
13631 lt_prog_compiler_pic_CXX='-pic'
13633 cxx*)
13634 # Digital/Compaq C++
13635 lt_prog_compiler_wl_CXX='-Wl,'
13636 # Make sure the PIC flag is empty. It appears that all Alpha
13637 # Linux and Compaq Tru64 Unix objects are PIC.
13638 lt_prog_compiler_pic_CXX=
13639 lt_prog_compiler_static_CXX='-non_shared'
13643 esac
13645 psos*)
13647 solaris*)
13648 case $cc_basename in
13649 CC*)
13650 # Sun C++ 4.2, 5.x and Centerline C++
13651 lt_prog_compiler_pic_CXX='-KPIC'
13652 lt_prog_compiler_static_CXX='-Bstatic'
13653 lt_prog_compiler_wl_CXX='-Qoption ld '
13655 gcx*)
13656 # Green Hills C++ Compiler
13657 lt_prog_compiler_pic_CXX='-PIC'
13661 esac
13663 sunos4*)
13664 case $cc_basename in
13665 CC*)
13666 # Sun C++ 4.x
13667 lt_prog_compiler_pic_CXX='-pic'
13668 lt_prog_compiler_static_CXX='-Bstatic'
13670 lcc*)
13671 # Lucid
13672 lt_prog_compiler_pic_CXX='-pic'
13676 esac
13678 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13679 case $cc_basename in
13680 CC*)
13681 lt_prog_compiler_wl_CXX='-Wl,'
13682 lt_prog_compiler_pic_CXX='-KPIC'
13683 lt_prog_compiler_static_CXX='-Bstatic'
13685 esac
13687 tandem*)
13688 case $cc_basename in
13689 NCC*)
13690 # NonStop-UX NCC 3.20
13691 lt_prog_compiler_pic_CXX='-KPIC'
13695 esac
13697 vxworks*)
13700 lt_prog_compiler_can_build_shared_CXX=no
13702 esac
13705 case $host_os in
13706 # For platforms which do not support PIC, -DPIC is meaningless:
13707 *djgpp*)
13708 lt_prog_compiler_pic_CXX=
13711 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13713 esac
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13715 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13720 # Check to make sure the PIC flag actually works.
13722 if test -n "$lt_prog_compiler_pic_CXX"; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13724 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13725 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13726 $as_echo_n "(cached) " >&6
13727 else
13728 lt_cv_prog_compiler_pic_works_CXX=no
13729 ac_outfile=conftest.$ac_objext
13730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13731 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13732 # Insert the option either (1) after the last *FLAGS variable, or
13733 # (2) before a word containing "conftest.", or (3) at the end.
13734 # Note that $ac_compile itself does not contain backslashes and begins
13735 # with a dollar sign (not a hyphen), so the echo should work correctly.
13736 # The option is referenced via a variable to avoid confusing sed.
13737 lt_compile=`echo "$ac_compile" | $SED \
13738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13740 -e 's:$: $lt_compiler_flag:'`
13741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13742 (eval "$lt_compile" 2>conftest.err)
13743 ac_status=$?
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 if (exit $ac_status) && test -s "$ac_outfile"; then
13747 # The compiler can only warn and ignore the option if not recognized
13748 # So say no if there are warnings other than the usual output.
13749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13752 lt_cv_prog_compiler_pic_works_CXX=yes
13755 $RM conftest*
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13759 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13761 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13762 case $lt_prog_compiler_pic_CXX in
13763 "" | " "*) ;;
13764 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13765 esac
13766 else
13767 lt_prog_compiler_pic_CXX=
13768 lt_prog_compiler_can_build_shared_CXX=no
13776 # Check to make sure the static flag actually works.
13778 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13780 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13781 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13782 $as_echo_n "(cached) " >&6
13783 else
13784 lt_cv_prog_compiler_static_works_CXX=no
13785 save_LDFLAGS="$LDFLAGS"
13786 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13789 # The linker can only warn and ignore the option if not recognized
13790 # So say no if there are warnings
13791 if test -s conftest.err; then
13792 # Append any errors to the config.log.
13793 cat conftest.err 1>&5
13794 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13796 if diff conftest.exp conftest.er2 >/dev/null; then
13797 lt_cv_prog_compiler_static_works_CXX=yes
13799 else
13800 lt_cv_prog_compiler_static_works_CXX=yes
13803 $RM -r conftest*
13804 LDFLAGS="$save_LDFLAGS"
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13808 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13810 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13812 else
13813 lt_prog_compiler_static_CXX=
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13820 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13821 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 lt_cv_prog_compiler_c_o_CXX=no
13825 $RM -r conftest 2>/dev/null
13826 mkdir conftest
13827 cd conftest
13828 mkdir out
13829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13831 lt_compiler_flag="-o out/conftest2.$ac_objext"
13832 # Insert the option either (1) after the last *FLAGS variable, or
13833 # (2) before a word containing "conftest.", or (3) at the end.
13834 # Note that $ac_compile itself does not contain backslashes and begins
13835 # with a dollar sign (not a hyphen), so the echo should work correctly.
13836 lt_compile=`echo "$ac_compile" | $SED \
13837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13839 -e 's:$: $lt_compiler_flag:'`
13840 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13841 (eval "$lt_compile" 2>out/conftest.err)
13842 ac_status=$?
13843 cat out/conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13846 then
13847 # The compiler can only warn and ignore the option if not recognized
13848 # So say no if there are warnings
13849 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13850 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13851 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13852 lt_cv_prog_compiler_c_o_CXX=yes
13855 chmod u+w . 2>&5
13856 $RM conftest*
13857 # SGI C++ compiler will create directory out/ii_files/ for
13858 # template instantiation
13859 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13860 $RM out/* && rmdir out
13861 cd ..
13862 $RM -r conftest
13863 $RM conftest*
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13867 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13872 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13873 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 lt_cv_prog_compiler_c_o_CXX=no
13877 $RM -r conftest 2>/dev/null
13878 mkdir conftest
13879 cd conftest
13880 mkdir out
13881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13883 lt_compiler_flag="-o out/conftest2.$ac_objext"
13884 # Insert the option either (1) after the last *FLAGS variable, or
13885 # (2) before a word containing "conftest.", or (3) at the end.
13886 # Note that $ac_compile itself does not contain backslashes and begins
13887 # with a dollar sign (not a hyphen), so the echo should work correctly.
13888 lt_compile=`echo "$ac_compile" | $SED \
13889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13891 -e 's:$: $lt_compiler_flag:'`
13892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13893 (eval "$lt_compile" 2>out/conftest.err)
13894 ac_status=$?
13895 cat out/conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13898 then
13899 # The compiler can only warn and ignore the option if not recognized
13900 # So say no if there are warnings
13901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13904 lt_cv_prog_compiler_c_o_CXX=yes
13907 chmod u+w . 2>&5
13908 $RM conftest*
13909 # SGI C++ compiler will create directory out/ii_files/ for
13910 # template instantiation
13911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13912 $RM out/* && rmdir out
13913 cd ..
13914 $RM -r conftest
13915 $RM conftest*
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13919 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13924 hard_links="nottested"
13925 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13926 # do not overwrite the value of need_locks provided by the user
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13928 $as_echo_n "checking if we can lock with hard links... " >&6; }
13929 hard_links=yes
13930 $RM conftest*
13931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13932 touch conftest.a
13933 ln conftest.a conftest.b 2>&5 || hard_links=no
13934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13936 $as_echo "$hard_links" >&6; }
13937 if test "$hard_links" = no; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13939 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13940 need_locks=warn
13942 else
13943 need_locks=no
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13949 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13951 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13952 case $host_os in
13953 aix[4-9]*)
13954 # If we're using GNU nm, then we don't want the "-C" option.
13955 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13956 # Also, AIX nm treats weak defined symbols like other global defined
13957 # symbols, whereas GNU nm marks them as "W".
13958 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13959 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'
13960 else
13961 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'
13964 pw32*)
13965 export_symbols_cmds_CXX="$ltdll_cmds"
13967 cygwin* | mingw* | cegcc*)
13968 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'
13971 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13973 esac
13974 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13977 $as_echo "$ld_shlibs_CXX" >&6; }
13978 test "$ld_shlibs_CXX" = no && can_build_shared=no
13980 with_gnu_ld_CXX=$with_gnu_ld
13988 # Do we need to explicitly link libc?
13990 case "x$archive_cmds_need_lc_CXX" in
13991 x|xyes)
13992 # Assume -lc should be added
13993 archive_cmds_need_lc_CXX=yes
13995 if test "$enable_shared" = yes && test "$GCC" = yes; then
13996 case $archive_cmds_CXX in
13997 *'~'*)
13998 # FIXME: we may have to deal with multi-command sequences.
14000 '$CC '*)
14001 # Test whether the compiler implicitly links with -lc since on some
14002 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14003 # to ld, don't add -lc before -lgcc.
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14005 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14006 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008 else
14009 $RM conftest*
14010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14013 (eval $ac_compile) 2>&5
14014 ac_status=$?
14015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14016 test $ac_status = 0; } 2>conftest.err; then
14017 soname=conftest
14018 lib=conftest
14019 libobjs=conftest.$ac_objext
14020 deplibs=
14021 wl=$lt_prog_compiler_wl_CXX
14022 pic_flag=$lt_prog_compiler_pic_CXX
14023 compiler_flags=-v
14024 linker_flags=-v
14025 verstring=
14026 output_objdir=.
14027 libname=conftest
14028 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14029 allow_undefined_flag_CXX=
14030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14031 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14032 ac_status=$?
14033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14034 test $ac_status = 0; }
14035 then
14036 lt_cv_archive_cmds_need_lc_CXX=no
14037 else
14038 lt_cv_archive_cmds_need_lc_CXX=yes
14040 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14041 else
14042 cat conftest.err 1>&5
14044 $RM conftest*
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14048 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14049 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14051 esac
14054 esac
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14120 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14122 library_names_spec=
14123 libname_spec='lib$name'
14124 soname_spec=
14125 shrext_cmds=".so"
14126 postinstall_cmds=
14127 postuninstall_cmds=
14128 finish_cmds=
14129 finish_eval=
14130 shlibpath_var=
14131 shlibpath_overrides_runpath=unknown
14132 version_type=none
14133 dynamic_linker="$host_os ld.so"
14134 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14135 need_lib_prefix=unknown
14136 hardcode_into_libs=no
14138 # when you set need_version to no, make sure it does not cause -set_version
14139 # flags to be left without arguments
14140 need_version=unknown
14142 case $host_os in
14143 aix3*)
14144 version_type=linux
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14146 shlibpath_var=LIBPATH
14148 # AIX 3 has no versioning support, so we append a major version to the name.
14149 soname_spec='${libname}${release}${shared_ext}$major'
14152 aix[4-9]*)
14153 version_type=linux
14154 need_lib_prefix=no
14155 need_version=no
14156 hardcode_into_libs=yes
14157 if test "$host_cpu" = ia64; then
14158 # AIX 5 supports IA64
14159 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14160 shlibpath_var=LD_LIBRARY_PATH
14161 else
14162 # With GCC up to 2.95.x, collect2 would create an import file
14163 # for dependence libraries. The import file would start with
14164 # the line `#! .'. This would cause the generated library to
14165 # depend on `.', always an invalid library. This was fixed in
14166 # development snapshots of GCC prior to 3.0.
14167 case $host_os in
14168 aix4 | aix4.[01] | aix4.[01].*)
14169 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14170 echo ' yes '
14171 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14173 else
14174 can_build_shared=no
14177 esac
14178 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14179 # soname into executable. Probably we can add versioning support to
14180 # collect2, so additional links can be useful in future.
14181 if test "$aix_use_runtimelinking" = yes; then
14182 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14183 # instead of lib<name>.a to let people know that these are not
14184 # typical AIX shared libraries.
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 else
14187 # We preserve .a as extension for shared libraries through AIX4.2
14188 # and later when we are not doing run time linking.
14189 library_names_spec='${libname}${release}.a $libname.a'
14190 soname_spec='${libname}${release}${shared_ext}$major'
14192 shlibpath_var=LIBPATH
14196 amigaos*)
14197 case $host_cpu in
14198 powerpc)
14199 # Since July 2007 AmigaOS4 officially supports .so libraries.
14200 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203 m68k)
14204 library_names_spec='$libname.ixlibrary $libname.a'
14205 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14206 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'
14208 esac
14211 beos*)
14212 library_names_spec='${libname}${shared_ext}'
14213 dynamic_linker="$host_os ld.so"
14214 shlibpath_var=LIBRARY_PATH
14217 bsdi[45]*)
14218 version_type=linux
14219 need_version=no
14220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14221 soname_spec='${libname}${release}${shared_ext}$major'
14222 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14223 shlibpath_var=LD_LIBRARY_PATH
14224 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14225 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14226 # the default ld.so.conf also contains /usr/contrib/lib and
14227 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14228 # libtool to hard-code these into programs
14231 cygwin* | mingw* | pw32* | cegcc*)
14232 version_type=windows
14233 shrext_cmds=".dll"
14234 need_version=no
14235 need_lib_prefix=no
14237 case $GCC,$host_os in
14238 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14239 library_names_spec='$libname.dll.a'
14240 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14241 postinstall_cmds='base_file=`basename \${file}`~
14242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14243 dldir=$destdir/`dirname \$dlpath`~
14244 test -d \$dldir || mkdir -p \$dldir~
14245 $install_prog $dir/$dlname \$dldir/$dlname~
14246 chmod a+x \$dldir/$dlname~
14247 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14248 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14250 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14251 dlpath=$dir/\$dldll~
14252 $RM \$dlpath'
14253 shlibpath_overrides_runpath=yes
14255 case $host_os in
14256 cygwin*)
14257 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14258 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14261 mingw* | cegcc*)
14262 # MinGW DLLs use traditional 'lib' prefix
14263 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14265 pw32*)
14266 # pw32 DLLs use 'pw' prefix rather than 'lib'
14267 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14269 esac
14273 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14275 esac
14276 dynamic_linker='Win32 ld.exe'
14277 # FIXME: first we should search . and the directory the executable is in
14278 shlibpath_var=PATH
14281 darwin* | rhapsody*)
14282 dynamic_linker="$host_os dyld"
14283 version_type=darwin
14284 need_lib_prefix=no
14285 need_version=no
14286 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14287 soname_spec='${libname}${release}${major}$shared_ext'
14288 shlibpath_overrides_runpath=yes
14289 shlibpath_var=DYLD_LIBRARY_PATH
14290 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14292 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14295 dgux*)
14296 version_type=linux
14297 need_lib_prefix=no
14298 need_version=no
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14300 soname_spec='${libname}${release}${shared_ext}$major'
14301 shlibpath_var=LD_LIBRARY_PATH
14304 freebsd* | dragonfly*)
14305 # DragonFly does not have aout. When/if they implement a new
14306 # versioning mechanism, adjust this.
14307 if test -x /usr/bin/objformat; then
14308 objformat=`/usr/bin/objformat`
14309 else
14310 case $host_os in
14311 freebsd[23].*) objformat=aout ;;
14312 *) objformat=elf ;;
14313 esac
14315 version_type=freebsd-$objformat
14316 case $version_type in
14317 freebsd-elf*)
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14319 need_version=no
14320 need_lib_prefix=no
14322 freebsd-*)
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14324 need_version=yes
14326 esac
14327 shlibpath_var=LD_LIBRARY_PATH
14328 case $host_os in
14329 freebsd2.*)
14330 shlibpath_overrides_runpath=yes
14332 freebsd3.[01]* | freebsdelf3.[01]*)
14333 shlibpath_overrides_runpath=yes
14334 hardcode_into_libs=yes
14336 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14337 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14338 shlibpath_overrides_runpath=no
14339 hardcode_into_libs=yes
14341 *) # from 4.6 on, and DragonFly
14342 shlibpath_overrides_runpath=yes
14343 hardcode_into_libs=yes
14345 esac
14348 haiku*)
14349 version_type=linux
14350 need_lib_prefix=no
14351 need_version=no
14352 dynamic_linker="$host_os runtime_loader"
14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14354 soname_spec='${libname}${release}${shared_ext}$major'
14355 shlibpath_var=LIBRARY_PATH
14356 shlibpath_overrides_runpath=yes
14357 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14358 hardcode_into_libs=yes
14361 hpux9* | hpux10* | hpux11*)
14362 # Give a soname corresponding to the major version so that dld.sl refuses to
14363 # link against other versions.
14364 version_type=sunos
14365 need_lib_prefix=no
14366 need_version=no
14367 case $host_cpu in
14368 ia64*)
14369 shrext_cmds='.so'
14370 hardcode_into_libs=yes
14371 dynamic_linker="$host_os dld.so"
14372 shlibpath_var=LD_LIBRARY_PATH
14373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375 soname_spec='${libname}${release}${shared_ext}$major'
14376 if test "X$HPUX_IA64_MODE" = X32; then
14377 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14378 else
14379 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14383 hppa*64*)
14384 shrext_cmds='.sl'
14385 hardcode_into_libs=yes
14386 dynamic_linker="$host_os dld.sl"
14387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390 soname_spec='${libname}${release}${shared_ext}$major'
14391 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14395 shrext_cmds='.sl'
14396 dynamic_linker="$host_os dld.sl"
14397 shlibpath_var=SHLIB_PATH
14398 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400 soname_spec='${libname}${release}${shared_ext}$major'
14402 esac
14403 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14404 postinstall_cmds='chmod 555 $lib'
14405 # or fails outright, so override atomically:
14406 install_override_mode=555
14409 interix[3-9]*)
14410 version_type=linux
14411 need_lib_prefix=no
14412 need_version=no
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14414 soname_spec='${libname}${release}${shared_ext}$major'
14415 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14416 shlibpath_var=LD_LIBRARY_PATH
14417 shlibpath_overrides_runpath=no
14418 hardcode_into_libs=yes
14421 irix5* | irix6* | nonstopux*)
14422 case $host_os in
14423 nonstopux*) version_type=nonstopux ;;
14425 if test "$lt_cv_prog_gnu_ld" = yes; then
14426 version_type=linux
14427 else
14428 version_type=irix
14429 fi ;;
14430 esac
14431 need_lib_prefix=no
14432 need_version=no
14433 soname_spec='${libname}${release}${shared_ext}$major'
14434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14435 case $host_os in
14436 irix5* | nonstopux*)
14437 libsuff= shlibsuff=
14440 case $LD in # libtool.m4 will add one of these switches to LD
14441 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14442 libsuff= shlibsuff= libmagic=32-bit;;
14443 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14444 libsuff=32 shlibsuff=N32 libmagic=N32;;
14445 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14446 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14447 *) libsuff= shlibsuff= libmagic=never-match;;
14448 esac
14450 esac
14451 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14452 shlibpath_overrides_runpath=no
14453 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14454 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14455 hardcode_into_libs=yes
14458 # No shared lib support for Linux oldld, aout, or coff.
14459 linux*oldld* | linux*aout* | linux*coff*)
14460 dynamic_linker=no
14463 # This must be Linux ELF.
14465 # uclinux* changes (here and below) have been submitted to the libtool
14466 # project, but have not yet been accepted: they are GCC-local changes
14467 # for the time being. (See
14468 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14469 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14470 version_type=linux
14471 need_lib_prefix=no
14472 need_version=no
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474 soname_spec='${libname}${release}${shared_ext}$major'
14475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14476 shlibpath_var=LD_LIBRARY_PATH
14477 shlibpath_overrides_runpath=no
14479 # Some binutils ld are patched to set DT_RUNPATH
14480 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 lt_cv_shlibpath_overrides_runpath=no
14484 save_LDFLAGS=$LDFLAGS
14485 save_libdir=$libdir
14486 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14487 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14492 main ()
14496 return 0;
14498 _ACEOF
14499 if ac_fn_cxx_try_link "$LINENO"; then :
14500 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14501 lt_cv_shlibpath_overrides_runpath=yes
14504 rm -f core conftest.err conftest.$ac_objext \
14505 conftest$ac_exeext conftest.$ac_ext
14506 LDFLAGS=$save_LDFLAGS
14507 libdir=$save_libdir
14511 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14513 # This implies no fast_install, which is unacceptable.
14514 # Some rework will be needed to allow for fast_install
14515 # before this can be enabled.
14516 hardcode_into_libs=yes
14518 # Append ld.so.conf contents to the search path
14519 if test -f /etc/ld.so.conf; then
14520 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' ' '`
14521 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14524 # We used to test for /lib/ld.so.1 and disable shared libraries on
14525 # powerpc, because MkLinux only supported shared libraries with the
14526 # GNU dynamic linker. Since this was broken with cross compilers,
14527 # most powerpc-linux boxes support dynamic linking these days and
14528 # people can always --disable-shared, the test was removed, and we
14529 # assume the GNU/Linux dynamic linker is in use.
14530 dynamic_linker='GNU/Linux ld.so'
14533 netbsd*)
14534 version_type=sunos
14535 need_lib_prefix=no
14536 need_version=no
14537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14540 dynamic_linker='NetBSD (a.out) ld.so'
14541 else
14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14543 soname_spec='${libname}${release}${shared_ext}$major'
14544 dynamic_linker='NetBSD ld.elf_so'
14546 shlibpath_var=LD_LIBRARY_PATH
14547 shlibpath_overrides_runpath=yes
14548 hardcode_into_libs=yes
14551 newsos6)
14552 version_type=linux
14553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14554 shlibpath_var=LD_LIBRARY_PATH
14555 shlibpath_overrides_runpath=yes
14558 *nto* | *qnx*)
14559 version_type=qnx
14560 need_lib_prefix=no
14561 need_version=no
14562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14563 soname_spec='${libname}${release}${shared_ext}$major'
14564 shlibpath_var=LD_LIBRARY_PATH
14565 shlibpath_overrides_runpath=no
14566 hardcode_into_libs=yes
14567 dynamic_linker='ldqnx.so'
14570 openbsd*)
14571 version_type=sunos
14572 sys_lib_dlsearch_path_spec="/usr/lib"
14573 need_lib_prefix=no
14574 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14575 case $host_os in
14576 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14577 *) need_version=no ;;
14578 esac
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14581 shlibpath_var=LD_LIBRARY_PATH
14582 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14583 case $host_os in
14584 openbsd2.[89] | openbsd2.[89].*)
14585 shlibpath_overrides_runpath=no
14588 shlibpath_overrides_runpath=yes
14590 esac
14591 else
14592 shlibpath_overrides_runpath=yes
14596 os2*)
14597 libname_spec='$name'
14598 shrext_cmds=".dll"
14599 need_lib_prefix=no
14600 library_names_spec='$libname${shared_ext} $libname.a'
14601 dynamic_linker='OS/2 ld.exe'
14602 shlibpath_var=LIBPATH
14605 osf3* | osf4* | osf5*)
14606 version_type=osf
14607 need_lib_prefix=no
14608 need_version=no
14609 soname_spec='${libname}${release}${shared_ext}$major'
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 shlibpath_var=LD_LIBRARY_PATH
14612 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14613 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14616 rdos*)
14617 dynamic_linker=no
14620 solaris*)
14621 version_type=linux
14622 need_lib_prefix=no
14623 need_version=no
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 shlibpath_var=LD_LIBRARY_PATH
14627 shlibpath_overrides_runpath=yes
14628 hardcode_into_libs=yes
14629 # ldd complains unless libraries are executable
14630 postinstall_cmds='chmod +x $lib'
14633 sunos4*)
14634 version_type=sunos
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14637 shlibpath_var=LD_LIBRARY_PATH
14638 shlibpath_overrides_runpath=yes
14639 if test "$with_gnu_ld" = yes; then
14640 need_lib_prefix=no
14642 need_version=yes
14645 sysv4 | sysv4.3*)
14646 version_type=linux
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14648 soname_spec='${libname}${release}${shared_ext}$major'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 case $host_vendor in
14651 sni)
14652 shlibpath_overrides_runpath=no
14653 need_lib_prefix=no
14654 runpath_var=LD_RUN_PATH
14656 siemens)
14657 need_lib_prefix=no
14659 motorola)
14660 need_lib_prefix=no
14661 need_version=no
14662 shlibpath_overrides_runpath=no
14663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14665 esac
14668 sysv4*MP*)
14669 if test -d /usr/nec ;then
14670 version_type=linux
14671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14672 soname_spec='$libname${shared_ext}.$major'
14673 shlibpath_var=LD_LIBRARY_PATH
14677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14678 version_type=freebsd-elf
14679 need_lib_prefix=no
14680 need_version=no
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 shlibpath_overrides_runpath=yes
14685 hardcode_into_libs=yes
14686 if test "$with_gnu_ld" = yes; then
14687 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14688 else
14689 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14690 case $host_os in
14691 sco3.2v5*)
14692 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14694 esac
14696 sys_lib_dlsearch_path_spec='/usr/lib'
14699 tpf*)
14700 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14701 version_type=linux
14702 need_lib_prefix=no
14703 need_version=no
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705 shlibpath_var=LD_LIBRARY_PATH
14706 shlibpath_overrides_runpath=no
14707 hardcode_into_libs=yes
14710 uts4*)
14711 version_type=linux
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 shlibpath_var=LD_LIBRARY_PATH
14717 # Shared libraries for VwWorks, >= 7 only at this stage
14718 # and (fpic) still incompatible with "large" code models
14719 # in a few configurations. Only for RTP mode in any case,
14720 # and upon explicit request at configure time.
14721 vxworks7*)
14722 dynamic_linker=no
14723 case ${with_multisubdir}-${enable_shared} in
14724 *large*)
14726 *mrtp*-yes)
14727 version_type=linux
14728 need_lib_prefix=no
14729 need_version=no
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731 soname_spec='${libname}${release}${shared_ext}$major'
14732 dynamic_linker="$host_os module_loader"
14734 esac
14737 dynamic_linker=no
14739 esac
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14741 $as_echo "$dynamic_linker" >&6; }
14742 test "$dynamic_linker" = no && can_build_shared=no
14744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14745 if test "$GCC" = yes; then
14746 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14749 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14750 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14752 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14753 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14794 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14795 hardcode_action_CXX=
14796 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14797 test -n "$runpath_var_CXX" ||
14798 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14800 # We can hardcode non-existent directories.
14801 if test "$hardcode_direct_CXX" != no &&
14802 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14803 # have to relink, otherwise we might link with an installed library
14804 # when we should be linking with a yet-to-be-installed one
14805 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14806 test "$hardcode_minus_L_CXX" != no; then
14807 # Linking always hardcodes the temporary library directory.
14808 hardcode_action_CXX=relink
14809 else
14810 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14811 hardcode_action_CXX=immediate
14813 else
14814 # We cannot hardcode anything, or else we can only hardcode existing
14815 # directories.
14816 hardcode_action_CXX=unsupported
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14819 $as_echo "$hardcode_action_CXX" >&6; }
14821 if test "$hardcode_action_CXX" = relink ||
14822 test "$inherit_rpath_CXX" = yes; then
14823 # Fast installation is not supported
14824 enable_fast_install=no
14825 elif test "$shlibpath_overrides_runpath" = yes ||
14826 test "$enable_shared" = no; then
14827 # Fast installation is not necessary
14828 enable_fast_install=needless
14837 fi # test -n "$compiler"
14839 CC=$lt_save_CC
14840 LDCXX=$LD
14841 LD=$lt_save_LD
14842 GCC=$lt_save_GCC
14843 with_gnu_ld=$lt_save_with_gnu_ld
14844 lt_cv_path_LDCXX=$lt_cv_path_LD
14845 lt_cv_path_LD=$lt_save_path_LD
14846 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14847 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14848 fi # test "$_lt_caught_CXX_error" != yes
14850 ac_ext=c
14851 ac_cpp='$CPP $CPPFLAGS'
14852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14868 ac_config_commands="$ac_config_commands libtool"
14873 # Only expand once:
14876 # ... and we need it soon, since it is used by some of the
14877 # link tests in the configure script.
14878 : ${CONFIG_LT=./config.lt}
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14880 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
14881 as_write_fail=0
14882 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14883 #! $SHELL
14884 # Generated by $as_me.
14885 # Run this file to recreate a libtool stub with the current configuration.
14886 SHELL=\${CONFIG_SHELL-$SHELL}
14887 export SHELL
14888 _ASEOF
14889 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
14890 ## -------------------- ##
14891 ## M4sh Initialization. ##
14892 ## -------------------- ##
14894 # Be more Bourne compatible
14895 DUALCASE=1; export DUALCASE # for MKS sh
14896 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14897 emulate sh
14898 NULLCMD=:
14899 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14900 # is contrary to our usage. Disable this feature.
14901 alias -g '${1+"$@"}'='"$@"'
14902 setopt NO_GLOB_SUBST
14903 else
14904 case `(set -o) 2>/dev/null` in #(
14905 *posix*) :
14906 set -o posix ;; #(
14907 *) :
14909 esac
14913 as_nl='
14915 export as_nl
14916 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14917 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14920 # Prefer a ksh shell builtin over an external printf program on Solaris,
14921 # but without wasting forks for bash or zsh.
14922 if test -z "$BASH_VERSION$ZSH_VERSION" \
14923 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14924 as_echo='print -r --'
14925 as_echo_n='print -rn --'
14926 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14927 as_echo='printf %s\n'
14928 as_echo_n='printf %s'
14929 else
14930 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14931 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14932 as_echo_n='/usr/ucb/echo -n'
14933 else
14934 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14935 as_echo_n_body='eval
14936 arg=$1;
14937 case $arg in #(
14938 *"$as_nl"*)
14939 expr "X$arg" : "X\\(.*\\)$as_nl";
14940 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14941 esac;
14942 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14944 export as_echo_n_body
14945 as_echo_n='sh -c $as_echo_n_body as_echo'
14947 export as_echo_body
14948 as_echo='sh -c $as_echo_body as_echo'
14951 # The user is always right.
14952 if test "${PATH_SEPARATOR+set}" != set; then
14953 PATH_SEPARATOR=:
14954 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14955 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14956 PATH_SEPARATOR=';'
14961 # IFS
14962 # We need space, tab and new line, in precisely that order. Quoting is
14963 # there to prevent editors from complaining about space-tab.
14964 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14965 # splitting by setting IFS to empty value.)
14966 IFS=" "" $as_nl"
14968 # Find who we are. Look in the path if we contain no directory separator.
14969 as_myself=
14970 case $0 in #((
14971 *[\\/]* ) as_myself=$0 ;;
14972 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14973 for as_dir in $PATH
14975 IFS=$as_save_IFS
14976 test -z "$as_dir" && as_dir=.
14977 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14978 done
14979 IFS=$as_save_IFS
14982 esac
14983 # We did not find ourselves, most probably we were run as `sh COMMAND'
14984 # in which case we are not to be found in the path.
14985 if test "x$as_myself" = x; then
14986 as_myself=$0
14988 if test ! -f "$as_myself"; then
14989 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14990 exit 1
14993 # Unset variables that we do not need and which cause bugs (e.g. in
14994 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14995 # suppresses any "Segmentation fault" message there. '((' could
14996 # trigger a bug in pdksh 5.2.14.
14997 for as_var in BASH_ENV ENV MAIL MAILPATH
14998 do eval test x\${$as_var+set} = xset \
14999 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15000 done
15001 PS1='$ '
15002 PS2='> '
15003 PS4='+ '
15005 # NLS nuisances.
15006 LC_ALL=C
15007 export LC_ALL
15008 LANGUAGE=C
15009 export LANGUAGE
15011 # CDPATH.
15012 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15015 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15016 # ----------------------------------------
15017 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15018 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15019 # script with STATUS, using 1 if that was 0.
15020 as_fn_error ()
15022 as_status=$1; test $as_status -eq 0 && as_status=1
15023 if test "$4"; then
15024 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15025 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15027 $as_echo "$as_me: error: $2" >&2
15028 as_fn_exit $as_status
15029 } # as_fn_error
15032 # as_fn_set_status STATUS
15033 # -----------------------
15034 # Set $? to STATUS, without forking.
15035 as_fn_set_status ()
15037 return $1
15038 } # as_fn_set_status
15040 # as_fn_exit STATUS
15041 # -----------------
15042 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15043 as_fn_exit ()
15045 set +e
15046 as_fn_set_status $1
15047 exit $1
15048 } # as_fn_exit
15050 # as_fn_unset VAR
15051 # ---------------
15052 # Portably unset VAR.
15053 as_fn_unset ()
15055 { eval $1=; unset $1;}
15057 as_unset=as_fn_unset
15058 # as_fn_append VAR VALUE
15059 # ----------------------
15060 # Append the text in VALUE to the end of the definition contained in VAR. Take
15061 # advantage of any shell optimizations that allow amortized linear growth over
15062 # repeated appends, instead of the typical quadratic growth present in naive
15063 # implementations.
15064 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15065 eval 'as_fn_append ()
15067 eval $1+=\$2
15069 else
15070 as_fn_append ()
15072 eval $1=\$$1\$2
15074 fi # as_fn_append
15076 # as_fn_arith ARG...
15077 # ------------------
15078 # Perform arithmetic evaluation on the ARGs, and store the result in the
15079 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15080 # must be portable across $(()) and expr.
15081 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15082 eval 'as_fn_arith ()
15084 as_val=$(( $* ))
15086 else
15087 as_fn_arith ()
15089 as_val=`expr "$@" || test $? -eq 1`
15091 fi # as_fn_arith
15094 if expr a : '\(a\)' >/dev/null 2>&1 &&
15095 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15096 as_expr=expr
15097 else
15098 as_expr=false
15101 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15102 as_basename=basename
15103 else
15104 as_basename=false
15107 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15108 as_dirname=dirname
15109 else
15110 as_dirname=false
15113 as_me=`$as_basename -- "$0" ||
15114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15115 X"$0" : 'X\(//\)$' \| \
15116 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15117 $as_echo X/"$0" |
15118 sed '/^.*\/\([^/][^/]*\)\/*$/{
15119 s//\1/
15122 /^X\/\(\/\/\)$/{
15123 s//\1/
15126 /^X\/\(\/\).*/{
15127 s//\1/
15130 s/.*/./; q'`
15132 # Avoid depending upon Character Ranges.
15133 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15134 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15135 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15136 as_cr_digits='0123456789'
15137 as_cr_alnum=$as_cr_Letters$as_cr_digits
15139 ECHO_C= ECHO_N= ECHO_T=
15140 case `echo -n x` in #(((((
15141 -n*)
15142 case `echo 'xy\c'` in
15143 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15144 xy) ECHO_C='\c';;
15145 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15146 ECHO_T=' ';;
15147 esac;;
15149 ECHO_N='-n';;
15150 esac
15152 rm -f conf$$ conf$$.exe conf$$.file
15153 if test -d conf$$.dir; then
15154 rm -f conf$$.dir/conf$$.file
15155 else
15156 rm -f conf$$.dir
15157 mkdir conf$$.dir 2>/dev/null
15159 if (echo >conf$$.file) 2>/dev/null; then
15160 if ln -s conf$$.file conf$$ 2>/dev/null; then
15161 as_ln_s='ln -s'
15162 # ... but there are two gotchas:
15163 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15164 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15165 # In both cases, we have to default to `cp -pR'.
15166 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15167 as_ln_s='cp -pR'
15168 elif ln conf$$.file conf$$ 2>/dev/null; then
15169 as_ln_s=ln
15170 else
15171 as_ln_s='cp -pR'
15173 else
15174 as_ln_s='cp -pR'
15176 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15177 rmdir conf$$.dir 2>/dev/null
15180 # as_fn_mkdir_p
15181 # -------------
15182 # Create "$as_dir" as a directory, including parents if necessary.
15183 as_fn_mkdir_p ()
15186 case $as_dir in #(
15187 -*) as_dir=./$as_dir;;
15188 esac
15189 test -d "$as_dir" || eval $as_mkdir_p || {
15190 as_dirs=
15191 while :; do
15192 case $as_dir in #(
15193 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15194 *) as_qdir=$as_dir;;
15195 esac
15196 as_dirs="'$as_qdir' $as_dirs"
15197 as_dir=`$as_dirname -- "$as_dir" ||
15198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15199 X"$as_dir" : 'X\(//\)[^/]' \| \
15200 X"$as_dir" : 'X\(//\)$' \| \
15201 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15202 $as_echo X"$as_dir" |
15203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15204 s//\1/
15207 /^X\(\/\/\)[^/].*/{
15208 s//\1/
15211 /^X\(\/\/\)$/{
15212 s//\1/
15215 /^X\(\/\).*/{
15216 s//\1/
15219 s/.*/./; q'`
15220 test -d "$as_dir" && break
15221 done
15222 test -z "$as_dirs" || eval "mkdir $as_dirs"
15223 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15226 } # as_fn_mkdir_p
15227 if mkdir -p . 2>/dev/null; then
15228 as_mkdir_p='mkdir -p "$as_dir"'
15229 else
15230 test -d ./-p && rmdir ./-p
15231 as_mkdir_p=false
15235 # as_fn_executable_p FILE
15236 # -----------------------
15237 # Test if FILE is an executable regular file.
15238 as_fn_executable_p ()
15240 test -f "$1" && test -x "$1"
15241 } # as_fn_executable_p
15242 as_test_x='test -x'
15243 as_executable_p=as_fn_executable_p
15245 # Sed expression to map a string onto a valid CPP name.
15246 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15248 # Sed expression to map a string onto a valid variable name.
15249 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15252 exec 6>&1
15253 ## --------------------------------- ##
15254 ## Main body of "$CONFIG_LT" script. ##
15255 ## --------------------------------- ##
15256 _ASEOF
15257 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
15259 cat >>"$CONFIG_LT" <<\_LTEOF
15260 lt_cl_silent=false
15261 exec 5>>config.log
15263 echo
15264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15265 ## Running $as_me. ##
15266 _ASBOX
15267 } >&5
15269 lt_cl_help="\
15270 \`$as_me' creates a local libtool stub from the current configuration,
15271 for use in further configure time tests before the real libtool is
15272 generated.
15274 Usage: $0 [OPTIONS]
15276 -h, --help print this help, then exit
15277 -V, --version print version number, then exit
15278 -q, --quiet do not print progress messages
15279 -d, --debug don't remove temporary files
15281 Report bugs to <bug-libtool@gnu.org>."
15283 lt_cl_version="\
15284 config.lt
15285 configured by $0, generated by GNU Autoconf 2.69.
15287 Copyright (C) 2009 Free Software Foundation, Inc.
15288 This config.lt script is free software; the Free Software Foundation
15289 gives unlimited permision to copy, distribute and modify it."
15291 while test $# != 0
15293 case $1 in
15294 --version | --v* | -V )
15295 echo "$lt_cl_version"; exit 0 ;;
15296 --help | --h* | -h )
15297 echo "$lt_cl_help"; exit 0 ;;
15298 --debug | --d* | -d )
15299 debug=: ;;
15300 --quiet | --q* | --silent | --s* | -q )
15301 lt_cl_silent=: ;;
15303 -*) as_fn_error $? "unrecognized option: $1
15304 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15306 *) as_fn_error $? "unrecognized argument: $1
15307 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15308 esac
15309 shift
15310 done
15312 if $lt_cl_silent; then
15313 exec 6>/dev/null
15315 _LTEOF
15317 cat >>"$CONFIG_LT" <<_LTEOF
15320 # The HP-UX ksh and POSIX shell print the target directory to stdout
15321 # if CDPATH is set.
15322 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15324 sed_quote_subst='$sed_quote_subst'
15325 double_quote_subst='$double_quote_subst'
15326 delay_variable_subst='$delay_variable_subst'
15327 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15328 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15329 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15330 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15331 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15332 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15333 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15334 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15335 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15336 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15337 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15338 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15339 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15340 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15341 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15342 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15343 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15344 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15345 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15346 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15347 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15348 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15349 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15350 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15351 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15352 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15353 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15354 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15355 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15356 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15357 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15358 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15359 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15360 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15361 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15362 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15363 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15364 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15365 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15366 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15367 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15368 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15369 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15370 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15371 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15372 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15373 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15374 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15375 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"`'
15376 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15377 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15378 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15379 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15380 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15381 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15382 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15383 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15384 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15385 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15386 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15387 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15388 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15389 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15390 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15391 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15392 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15393 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15394 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15395 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15396 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15397 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15398 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15399 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15400 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15401 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15402 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15403 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15404 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15405 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15406 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15407 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15408 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15409 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15410 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15411 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15412 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15413 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15414 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15415 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15416 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15417 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15418 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15419 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15420 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15421 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15422 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15423 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15424 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15425 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15426 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15427 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15428 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15429 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15430 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15431 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15432 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15433 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15434 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15435 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15436 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15437 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15438 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15439 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15440 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15441 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15442 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15443 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15444 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15445 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15446 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15447 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15448 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15449 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15450 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15451 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15452 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15453 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15454 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15455 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15456 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15457 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15458 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15459 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15460 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15461 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15462 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15463 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15464 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15465 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15466 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15467 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15468 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15469 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15470 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15471 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15472 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15473 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15474 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15475 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15476 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15477 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15478 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15479 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15480 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15481 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15482 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15483 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15484 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15485 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15486 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15487 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15488 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15489 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15490 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15491 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15492 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15493 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15494 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15495 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15496 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15497 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15498 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15499 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15500 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15501 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15503 LTCC='$LTCC'
15504 LTCFLAGS='$LTCFLAGS'
15505 compiler='$compiler_DEFAULT'
15507 # A function that is used when there is no print builtin or printf.
15508 func_fallback_echo ()
15510 eval 'cat <<_LTECHO_EOF
15512 _LTECHO_EOF'
15515 # Quote evaled strings.
15516 for var in SHELL \
15517 ECHO \
15518 SED \
15519 GREP \
15520 EGREP \
15521 FGREP \
15522 LD \
15523 NM \
15524 LN_S \
15525 lt_SP2NL \
15526 lt_NL2SP \
15527 reload_flag \
15528 OBJDUMP \
15529 deplibs_check_method \
15530 file_magic_cmd \
15531 AR \
15532 AR_FLAGS \
15533 STRIP \
15534 RANLIB \
15535 CC \
15536 CFLAGS \
15537 compiler \
15538 lt_cv_sys_global_symbol_pipe \
15539 lt_cv_sys_global_symbol_to_cdecl \
15540 lt_cv_sys_global_symbol_to_c_name_address \
15541 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15542 lt_prog_compiler_no_builtin_flag \
15543 lt_prog_compiler_wl \
15544 lt_prog_compiler_pic \
15545 lt_prog_compiler_static \
15546 lt_cv_prog_compiler_c_o \
15547 need_locks \
15548 DSYMUTIL \
15549 NMEDIT \
15550 LIPO \
15551 OTOOL \
15552 OTOOL64 \
15553 shrext_cmds \
15554 export_dynamic_flag_spec \
15555 whole_archive_flag_spec \
15556 compiler_needs_object \
15557 with_gnu_ld \
15558 allow_undefined_flag \
15559 no_undefined_flag \
15560 hardcode_libdir_flag_spec \
15561 hardcode_libdir_flag_spec_ld \
15562 hardcode_libdir_separator \
15563 fix_srcfile_path \
15564 exclude_expsyms \
15565 include_expsyms \
15566 file_list_spec \
15567 variables_saved_for_relink \
15568 libname_spec \
15569 library_names_spec \
15570 soname_spec \
15571 install_override_mode \
15572 finish_eval \
15573 old_striplib \
15574 striplib \
15575 compiler_lib_search_dirs \
15576 predep_objects \
15577 postdep_objects \
15578 predeps \
15579 postdeps \
15580 compiler_lib_search_path \
15581 LD_CXX \
15582 reload_flag_CXX \
15583 compiler_CXX \
15584 lt_prog_compiler_no_builtin_flag_CXX \
15585 lt_prog_compiler_wl_CXX \
15586 lt_prog_compiler_pic_CXX \
15587 lt_prog_compiler_static_CXX \
15588 lt_cv_prog_compiler_c_o_CXX \
15589 export_dynamic_flag_spec_CXX \
15590 whole_archive_flag_spec_CXX \
15591 compiler_needs_object_CXX \
15592 with_gnu_ld_CXX \
15593 allow_undefined_flag_CXX \
15594 no_undefined_flag_CXX \
15595 hardcode_libdir_flag_spec_CXX \
15596 hardcode_libdir_flag_spec_ld_CXX \
15597 hardcode_libdir_separator_CXX \
15598 fix_srcfile_path_CXX \
15599 exclude_expsyms_CXX \
15600 include_expsyms_CXX \
15601 file_list_spec_CXX \
15602 compiler_lib_search_dirs_CXX \
15603 predep_objects_CXX \
15604 postdep_objects_CXX \
15605 predeps_CXX \
15606 postdeps_CXX \
15607 compiler_lib_search_path_CXX; do
15608 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15609 *[\\\\\\\`\\"\\\$]*)
15610 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15613 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15615 esac
15616 done
15618 # Double-quote double-evaled strings.
15619 for var in reload_cmds \
15620 old_postinstall_cmds \
15621 old_postuninstall_cmds \
15622 old_archive_cmds \
15623 extract_expsyms_cmds \
15624 old_archive_from_new_cmds \
15625 old_archive_from_expsyms_cmds \
15626 archive_cmds \
15627 archive_expsym_cmds \
15628 module_cmds \
15629 module_expsym_cmds \
15630 export_symbols_cmds \
15631 prelink_cmds \
15632 postinstall_cmds \
15633 postuninstall_cmds \
15634 finish_cmds \
15635 sys_lib_search_path_spec \
15636 sys_lib_dlsearch_path_spec \
15637 reload_cmds_CXX \
15638 old_archive_cmds_CXX \
15639 old_archive_from_new_cmds_CXX \
15640 old_archive_from_expsyms_cmds_CXX \
15641 archive_cmds_CXX \
15642 archive_expsym_cmds_CXX \
15643 module_cmds_CXX \
15644 module_expsym_cmds_CXX \
15645 export_symbols_cmds_CXX \
15646 prelink_cmds_CXX; do
15647 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15648 *[\\\\\\\`\\"\\\$]*)
15649 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15652 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15654 esac
15655 done
15657 ac_aux_dir='$ac_aux_dir'
15658 xsi_shell='$xsi_shell'
15659 lt_shell_append='$lt_shell_append'
15661 # See if we are running on zsh, and set the options which allow our
15662 # commands through without removal of \ escapes INIT.
15663 if test -n "\${ZSH_VERSION+set}" ; then
15664 setopt NO_GLOB_SUBST
15668 PACKAGE='$PACKAGE'
15669 VERSION='$VERSION'
15670 TIMESTAMP='$TIMESTAMP'
15671 RM='$RM'
15672 ofile='$ofile'
15678 _LTEOF
15680 cat >>"$CONFIG_LT" <<\_LTEOF
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15682 $as_echo "$as_me: creating $ofile" >&6;}
15685 # See if we are running on zsh, and set the options which allow our
15686 # commands through without removal of \ escapes.
15687 if test -n "${ZSH_VERSION+set}" ; then
15688 setopt NO_GLOB_SUBST
15691 cfgfile="${ofile}T"
15692 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15693 $RM "$cfgfile"
15695 cat <<_LT_EOF >> "$cfgfile"
15696 #! $SHELL
15698 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15699 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15701 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15703 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15704 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15705 # Written by Gordon Matzigkeit, 1996
15707 # This file is part of GNU Libtool.
15709 # GNU Libtool is free software; you can redistribute it and/or
15710 # modify it under the terms of the GNU General Public License as
15711 # published by the Free Software Foundation; either version 2 of
15712 # the License, or (at your option) any later version.
15714 # As a special exception to the GNU General Public License,
15715 # if you distribute this file as part of a program or library that
15716 # is built using GNU Libtool, you may include this file under the
15717 # same distribution terms that you use for the rest of that program.
15719 # GNU Libtool is distributed in the hope that it will be useful,
15720 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15721 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15722 # GNU General Public License for more details.
15724 # You should have received a copy of the GNU General Public License
15725 # along with GNU Libtool; see the file COPYING. If not, a copy
15726 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15727 # obtained by writing to the Free Software Foundation, Inc.,
15728 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15731 # The names of the tagged configurations supported by this script.
15732 available_tags="CXX "
15734 # ### BEGIN LIBTOOL CONFIG
15736 # Which release of libtool.m4 was used?
15737 macro_version=$macro_version
15738 macro_revision=$macro_revision
15740 # Whether or not to build shared libraries.
15741 build_libtool_libs=$enable_shared
15743 # Whether or not to build static libraries.
15744 build_old_libs=$enable_static
15746 # What type of objects to build.
15747 pic_mode=$pic_mode
15749 # Whether or not to optimize for fast installation.
15750 fast_install=$enable_fast_install
15752 # Shell to use when invoking shell scripts.
15753 SHELL=$lt_SHELL
15755 # An echo program that protects backslashes.
15756 ECHO=$lt_ECHO
15758 # The host system.
15759 host_alias=$host_alias
15760 host=$host
15761 host_os=$host_os
15763 # The build system.
15764 build_alias=$build_alias
15765 build=$build
15766 build_os=$build_os
15768 # A sed program that does not truncate output.
15769 SED=$lt_SED
15771 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15772 Xsed="\$SED -e 1s/^X//"
15774 # A grep program that handles long lines.
15775 GREP=$lt_GREP
15777 # An ERE matcher.
15778 EGREP=$lt_EGREP
15780 # A literal string matcher.
15781 FGREP=$lt_FGREP
15783 # A BSD- or MS-compatible name lister.
15784 NM=$lt_NM
15786 # Whether we need soft or hard links.
15787 LN_S=$lt_LN_S
15789 # What is the maximum length of a command?
15790 max_cmd_len=$max_cmd_len
15792 # Object file suffix (normally "o").
15793 objext=$ac_objext
15795 # Executable file suffix (normally "").
15796 exeext=$exeext
15798 # whether the shell understands "unset".
15799 lt_unset=$lt_unset
15801 # turn spaces into newlines.
15802 SP2NL=$lt_lt_SP2NL
15804 # turn newlines into spaces.
15805 NL2SP=$lt_lt_NL2SP
15807 # An object symbol dumper.
15808 OBJDUMP=$lt_OBJDUMP
15810 # Method to check whether dependent libraries are shared objects.
15811 deplibs_check_method=$lt_deplibs_check_method
15813 # Command to use when deplibs_check_method == "file_magic".
15814 file_magic_cmd=$lt_file_magic_cmd
15816 # The archiver.
15817 AR=$lt_AR
15818 AR_FLAGS=$lt_AR_FLAGS
15820 # A symbol stripping program.
15821 STRIP=$lt_STRIP
15823 # Commands used to install an old-style archive.
15824 RANLIB=$lt_RANLIB
15825 old_postinstall_cmds=$lt_old_postinstall_cmds
15826 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15828 # Whether to use a lock for old archive extraction.
15829 lock_old_archive_extraction=$lock_old_archive_extraction
15831 # A C compiler.
15832 LTCC=$lt_CC
15834 # LTCC compiler flags.
15835 LTCFLAGS=$lt_CFLAGS
15837 # Take the output of nm and produce a listing of raw symbols and C names.
15838 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15840 # Transform the output of nm in a proper C declaration.
15841 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15843 # Transform the output of nm in a C name address pair.
15844 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15846 # Transform the output of nm in a C name address pair when lib prefix is needed.
15847 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15849 # The name of the directory that contains temporary libtool files.
15850 objdir=$objdir
15852 # Used to examine libraries when file_magic_cmd begins with "file".
15853 MAGIC_CMD=$MAGIC_CMD
15855 # Must we lock files when doing compilation?
15856 need_locks=$lt_need_locks
15858 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15859 DSYMUTIL=$lt_DSYMUTIL
15861 # Tool to change global to local symbols on Mac OS X.
15862 NMEDIT=$lt_NMEDIT
15864 # Tool to manipulate fat objects and archives on Mac OS X.
15865 LIPO=$lt_LIPO
15867 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15868 OTOOL=$lt_OTOOL
15870 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15871 OTOOL64=$lt_OTOOL64
15873 # Old archive suffix (normally "a").
15874 libext=$libext
15876 # Shared library suffix (normally ".so").
15877 shrext_cmds=$lt_shrext_cmds
15879 # The commands to extract the exported symbol list from a shared archive.
15880 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15882 # Variables whose values should be saved in libtool wrapper scripts and
15883 # restored at link time.
15884 variables_saved_for_relink=$lt_variables_saved_for_relink
15886 # Do we need the "lib" prefix for modules?
15887 need_lib_prefix=$need_lib_prefix
15889 # Do we need a version for libraries?
15890 need_version=$need_version
15892 # Library versioning type.
15893 version_type=$version_type
15895 # Shared library runtime path variable.
15896 runpath_var=$runpath_var
15898 # Shared library path variable.
15899 shlibpath_var=$shlibpath_var
15901 # Is shlibpath searched before the hard-coded library search path?
15902 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15904 # Format of library name prefix.
15905 libname_spec=$lt_libname_spec
15907 # List of archive names. First name is the real one, the rest are links.
15908 # The last name is the one that the linker finds with -lNAME
15909 library_names_spec=$lt_library_names_spec
15911 # The coded name of the library, if different from the real name.
15912 soname_spec=$lt_soname_spec
15914 # Permission mode override for installation of shared libraries.
15915 install_override_mode=$lt_install_override_mode
15917 # Command to use after installation of a shared archive.
15918 postinstall_cmds=$lt_postinstall_cmds
15920 # Command to use after uninstallation of a shared archive.
15921 postuninstall_cmds=$lt_postuninstall_cmds
15923 # Commands used to finish a libtool library installation in a directory.
15924 finish_cmds=$lt_finish_cmds
15926 # As "finish_cmds", except a single script fragment to be evaled but
15927 # not shown.
15928 finish_eval=$lt_finish_eval
15930 # Whether we should hardcode library paths into libraries.
15931 hardcode_into_libs=$hardcode_into_libs
15933 # Compile-time system search path for libraries.
15934 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15936 # Run-time system search path for libraries.
15937 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15939 # Whether dlopen is supported.
15940 dlopen_support=$enable_dlopen
15942 # Whether dlopen of programs is supported.
15943 dlopen_self=$enable_dlopen_self
15945 # Whether dlopen of statically linked programs is supported.
15946 dlopen_self_static=$enable_dlopen_self_static
15948 # Commands to strip libraries.
15949 old_striplib=$lt_old_striplib
15950 striplib=$lt_striplib
15953 # The linker used to build libraries.
15954 LD=$lt_LD
15956 # How to create reloadable object files.
15957 reload_flag=$lt_reload_flag
15958 reload_cmds=$lt_reload_cmds
15960 # Commands used to build an old-style archive.
15961 old_archive_cmds=$lt_old_archive_cmds
15963 # A language specific compiler.
15964 CC=$lt_compiler
15966 # Is the compiler the GNU compiler?
15967 with_gcc=$GCC
15969 # Compiler flag to turn off builtin functions.
15970 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15972 # How to pass a linker flag through the compiler.
15973 wl=$lt_lt_prog_compiler_wl
15975 # Additional compiler flags for building library objects.
15976 pic_flag=$lt_lt_prog_compiler_pic
15978 # Compiler flag to prevent dynamic linking.
15979 link_static_flag=$lt_lt_prog_compiler_static
15981 # Does compiler simultaneously support -c and -o options?
15982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15984 # Whether or not to add -lc for building shared libraries.
15985 build_libtool_need_lc=$archive_cmds_need_lc
15987 # Whether or not to disallow shared libs when runtime libs are static.
15988 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15990 # Compiler flag to allow reflexive dlopens.
15991 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15993 # Compiler flag to generate shared objects directly from archives.
15994 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15996 # Whether the compiler copes with passing no objects directly.
15997 compiler_needs_object=$lt_compiler_needs_object
15999 # Create an old-style archive from a shared archive.
16000 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16002 # Create a temporary old-style archive to link instead of a shared archive.
16003 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16005 # Commands used to build a shared archive.
16006 archive_cmds=$lt_archive_cmds
16007 archive_expsym_cmds=$lt_archive_expsym_cmds
16009 # Commands used to build a loadable module if different from building
16010 # a shared archive.
16011 module_cmds=$lt_module_cmds
16012 module_expsym_cmds=$lt_module_expsym_cmds
16014 # Whether we are building with GNU ld or not.
16015 with_gnu_ld=$lt_with_gnu_ld
16017 # Flag that allows shared libraries with undefined symbols to be built.
16018 allow_undefined_flag=$lt_allow_undefined_flag
16020 # Flag that enforces no undefined symbols.
16021 no_undefined_flag=$lt_no_undefined_flag
16023 # Flag to hardcode \$libdir into a binary during linking.
16024 # This must work even if \$libdir does not exist
16025 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16027 # If ld is used when linking, flag to hardcode \$libdir into a binary
16028 # during linking. This must work even if \$libdir does not exist.
16029 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16031 # Whether we need a single "-rpath" flag with a separated argument.
16032 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16034 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16035 # DIR into the resulting binary.
16036 hardcode_direct=$hardcode_direct
16038 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16039 # DIR into the resulting binary and the resulting library dependency is
16040 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16041 # library is relocated.
16042 hardcode_direct_absolute=$hardcode_direct_absolute
16044 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16045 # into the resulting binary.
16046 hardcode_minus_L=$hardcode_minus_L
16048 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16049 # into the resulting binary.
16050 hardcode_shlibpath_var=$hardcode_shlibpath_var
16052 # Set to "yes" if building a shared library automatically hardcodes DIR
16053 # into the library and all subsequent libraries and executables linked
16054 # against it.
16055 hardcode_automatic=$hardcode_automatic
16057 # Set to yes if linker adds runtime paths of dependent libraries
16058 # to runtime path list.
16059 inherit_rpath=$inherit_rpath
16061 # Whether libtool must link a program against all its dependency libraries.
16062 link_all_deplibs=$link_all_deplibs
16064 # Fix the shell variable \$srcfile for the compiler.
16065 fix_srcfile_path=$lt_fix_srcfile_path
16067 # Set to "yes" if exported symbols are required.
16068 always_export_symbols=$always_export_symbols
16070 # The commands to list exported symbols.
16071 export_symbols_cmds=$lt_export_symbols_cmds
16073 # Symbols that should not be listed in the preloaded symbols.
16074 exclude_expsyms=$lt_exclude_expsyms
16076 # Symbols that must always be exported.
16077 include_expsyms=$lt_include_expsyms
16079 # Commands necessary for linking programs (against libraries) with templates.
16080 prelink_cmds=$lt_prelink_cmds
16082 # Specify filename containing input files.
16083 file_list_spec=$lt_file_list_spec
16085 # How to hardcode a shared library path into an executable.
16086 hardcode_action=$hardcode_action
16088 # The directories searched by this compiler when creating a shared library.
16089 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16091 # Dependencies to place before and after the objects being linked to
16092 # create a shared library.
16093 predep_objects=$lt_predep_objects
16094 postdep_objects=$lt_postdep_objects
16095 predeps=$lt_predeps
16096 postdeps=$lt_postdeps
16098 # The library search path used internally by the compiler when linking
16099 # a shared library.
16100 compiler_lib_search_path=$lt_compiler_lib_search_path
16102 # ### END LIBTOOL CONFIG
16104 _LT_EOF
16106 case $host_os in
16107 aix3*)
16108 cat <<\_LT_EOF >> "$cfgfile"
16109 # AIX sometimes has problems with the GCC collect2 program. For some
16110 # reason, if we set the COLLECT_NAMES environment variable, the problems
16111 # vanish in a puff of smoke.
16112 if test "X${COLLECT_NAMES+set}" != Xset; then
16113 COLLECT_NAMES=
16114 export COLLECT_NAMES
16116 _LT_EOF
16118 esac
16121 ltmain="$ac_aux_dir/ltmain.sh"
16124 # We use sed instead of cat because bash on DJGPP gets confused if
16125 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16126 # text mode, it properly converts lines to CR/LF. This bash problem
16127 # is reportedly fixed, but why not run on old versions too?
16128 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16129 || (rm -f "$cfgfile"; exit 1)
16131 case $xsi_shell in
16132 yes)
16133 cat << \_LT_EOF >> "$cfgfile"
16135 # func_dirname file append nondir_replacement
16136 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16137 # otherwise set result to NONDIR_REPLACEMENT.
16138 func_dirname ()
16140 case ${1} in
16141 */*) func_dirname_result="${1%/*}${2}" ;;
16142 * ) func_dirname_result="${3}" ;;
16143 esac
16146 # func_basename file
16147 func_basename ()
16149 func_basename_result="${1##*/}"
16152 # func_dirname_and_basename file append nondir_replacement
16153 # perform func_basename and func_dirname in a single function
16154 # call:
16155 # dirname: Compute the dirname of FILE. If nonempty,
16156 # add APPEND to the result, otherwise set result
16157 # to NONDIR_REPLACEMENT.
16158 # value returned in "$func_dirname_result"
16159 # basename: Compute filename of FILE.
16160 # value retuned in "$func_basename_result"
16161 # Implementation must be kept synchronized with func_dirname
16162 # and func_basename. For efficiency, we do not delegate to
16163 # those functions but instead duplicate the functionality here.
16164 func_dirname_and_basename ()
16166 case ${1} in
16167 */*) func_dirname_result="${1%/*}${2}" ;;
16168 * ) func_dirname_result="${3}" ;;
16169 esac
16170 func_basename_result="${1##*/}"
16173 # func_stripname prefix suffix name
16174 # strip PREFIX and SUFFIX off of NAME.
16175 # PREFIX and SUFFIX must not contain globbing or regex special
16176 # characters, hashes, percent signs, but SUFFIX may contain a leading
16177 # dot (in which case that matches only a dot).
16178 func_stripname ()
16180 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16181 # positional parameters, so assign one to ordinary parameter first.
16182 func_stripname_result=${3}
16183 func_stripname_result=${func_stripname_result#"${1}"}
16184 func_stripname_result=${func_stripname_result%"${2}"}
16187 # func_opt_split
16188 func_opt_split ()
16190 func_opt_split_opt=${1%%=*}
16191 func_opt_split_arg=${1#*=}
16194 # func_lo2o object
16195 func_lo2o ()
16197 case ${1} in
16198 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16199 *) func_lo2o_result=${1} ;;
16200 esac
16203 # func_xform libobj-or-source
16204 func_xform ()
16206 func_xform_result=${1%.*}.lo
16209 # func_arith arithmetic-term...
16210 func_arith ()
16212 func_arith_result=$(( $* ))
16215 # func_len string
16216 # STRING may not start with a hyphen.
16217 func_len ()
16219 func_len_result=${#1}
16222 _LT_EOF
16224 *) # Bourne compatible functions.
16225 cat << \_LT_EOF >> "$cfgfile"
16227 # func_dirname file append nondir_replacement
16228 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16229 # otherwise set result to NONDIR_REPLACEMENT.
16230 func_dirname ()
16232 # Extract subdirectory from the argument.
16233 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16234 if test "X$func_dirname_result" = "X${1}"; then
16235 func_dirname_result="${3}"
16236 else
16237 func_dirname_result="$func_dirname_result${2}"
16241 # func_basename file
16242 func_basename ()
16244 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16248 # func_stripname prefix suffix name
16249 # strip PREFIX and SUFFIX off of NAME.
16250 # PREFIX and SUFFIX must not contain globbing or regex special
16251 # characters, hashes, percent signs, but SUFFIX may contain a leading
16252 # dot (in which case that matches only a dot).
16253 # func_strip_suffix prefix name
16254 func_stripname ()
16256 case ${2} in
16257 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16258 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16259 esac
16262 # sed scripts:
16263 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16264 my_sed_long_arg='1s/^-[^=]*=//'
16266 # func_opt_split
16267 func_opt_split ()
16269 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16270 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16273 # func_lo2o object
16274 func_lo2o ()
16276 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16279 # func_xform libobj-or-source
16280 func_xform ()
16282 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16285 # func_arith arithmetic-term...
16286 func_arith ()
16288 func_arith_result=`expr "$@"`
16291 # func_len string
16292 # STRING may not start with a hyphen.
16293 func_len ()
16295 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16298 _LT_EOF
16299 esac
16301 case $lt_shell_append in
16302 yes)
16303 cat << \_LT_EOF >> "$cfgfile"
16305 # func_append var value
16306 # Append VALUE to the end of shell variable VAR.
16307 func_append ()
16309 eval "$1+=\$2"
16311 _LT_EOF
16314 cat << \_LT_EOF >> "$cfgfile"
16316 # func_append var value
16317 # Append VALUE to the end of shell variable VAR.
16318 func_append ()
16320 eval "$1=\$$1\$2"
16323 _LT_EOF
16325 esac
16328 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16329 || (rm -f "$cfgfile"; exit 1)
16331 mv -f "$cfgfile" "$ofile" ||
16332 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16333 chmod +x "$ofile"
16336 cat <<_LT_EOF >> "$ofile"
16338 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16340 # The linker used to build libraries.
16341 LD=$lt_LD_CXX
16343 # How to create reloadable object files.
16344 reload_flag=$lt_reload_flag_CXX
16345 reload_cmds=$lt_reload_cmds_CXX
16347 # Commands used to build an old-style archive.
16348 old_archive_cmds=$lt_old_archive_cmds_CXX
16350 # A language specific compiler.
16351 CC=$lt_compiler_CXX
16353 # Is the compiler the GNU compiler?
16354 with_gcc=$GCC_CXX
16356 # Compiler flag to turn off builtin functions.
16357 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16359 # How to pass a linker flag through the compiler.
16360 wl=$lt_lt_prog_compiler_wl_CXX
16362 # Additional compiler flags for building library objects.
16363 pic_flag=$lt_lt_prog_compiler_pic_CXX
16365 # Compiler flag to prevent dynamic linking.
16366 link_static_flag=$lt_lt_prog_compiler_static_CXX
16368 # Does compiler simultaneously support -c and -o options?
16369 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16371 # Whether or not to add -lc for building shared libraries.
16372 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16374 # Whether or not to disallow shared libs when runtime libs are static.
16375 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16377 # Compiler flag to allow reflexive dlopens.
16378 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16380 # Compiler flag to generate shared objects directly from archives.
16381 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16383 # Whether the compiler copes with passing no objects directly.
16384 compiler_needs_object=$lt_compiler_needs_object_CXX
16386 # Create an old-style archive from a shared archive.
16387 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16389 # Create a temporary old-style archive to link instead of a shared archive.
16390 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16392 # Commands used to build a shared archive.
16393 archive_cmds=$lt_archive_cmds_CXX
16394 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16396 # Commands used to build a loadable module if different from building
16397 # a shared archive.
16398 module_cmds=$lt_module_cmds_CXX
16399 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16401 # Whether we are building with GNU ld or not.
16402 with_gnu_ld=$lt_with_gnu_ld_CXX
16404 # Flag that allows shared libraries with undefined symbols to be built.
16405 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16407 # Flag that enforces no undefined symbols.
16408 no_undefined_flag=$lt_no_undefined_flag_CXX
16410 # Flag to hardcode \$libdir into a binary during linking.
16411 # This must work even if \$libdir does not exist
16412 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16414 # If ld is used when linking, flag to hardcode \$libdir into a binary
16415 # during linking. This must work even if \$libdir does not exist.
16416 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16418 # Whether we need a single "-rpath" flag with a separated argument.
16419 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16421 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16422 # DIR into the resulting binary.
16423 hardcode_direct=$hardcode_direct_CXX
16425 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16426 # DIR into the resulting binary and the resulting library dependency is
16427 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16428 # library is relocated.
16429 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16431 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16432 # into the resulting binary.
16433 hardcode_minus_L=$hardcode_minus_L_CXX
16435 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16436 # into the resulting binary.
16437 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16439 # Set to "yes" if building a shared library automatically hardcodes DIR
16440 # into the library and all subsequent libraries and executables linked
16441 # against it.
16442 hardcode_automatic=$hardcode_automatic_CXX
16444 # Set to yes if linker adds runtime paths of dependent libraries
16445 # to runtime path list.
16446 inherit_rpath=$inherit_rpath_CXX
16448 # Whether libtool must link a program against all its dependency libraries.
16449 link_all_deplibs=$link_all_deplibs_CXX
16451 # Fix the shell variable \$srcfile for the compiler.
16452 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16454 # Set to "yes" if exported symbols are required.
16455 always_export_symbols=$always_export_symbols_CXX
16457 # The commands to list exported symbols.
16458 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16460 # Symbols that should not be listed in the preloaded symbols.
16461 exclude_expsyms=$lt_exclude_expsyms_CXX
16463 # Symbols that must always be exported.
16464 include_expsyms=$lt_include_expsyms_CXX
16466 # Commands necessary for linking programs (against libraries) with templates.
16467 prelink_cmds=$lt_prelink_cmds_CXX
16469 # Specify filename containing input files.
16470 file_list_spec=$lt_file_list_spec_CXX
16472 # How to hardcode a shared library path into an executable.
16473 hardcode_action=$hardcode_action_CXX
16475 # The directories searched by this compiler when creating a shared library.
16476 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16478 # Dependencies to place before and after the objects being linked to
16479 # create a shared library.
16480 predep_objects=$lt_predep_objects_CXX
16481 postdep_objects=$lt_postdep_objects_CXX
16482 predeps=$lt_predeps_CXX
16483 postdeps=$lt_postdeps_CXX
16485 # The library search path used internally by the compiler when linking
16486 # a shared library.
16487 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16489 # ### END LIBTOOL TAG CONFIG: CXX
16490 _LT_EOF
16493 as_fn_exit 0
16494 _LTEOF
16495 chmod +x "$CONFIG_LT"
16497 # configure is writing to config.log, but config.lt does its own redirection,
16498 # appending to config.log, which fails on DOS, as config.log is still kept
16499 # open by configure. Here we exec the FD to /dev/null, effectively closing
16500 # config.log, so it can be properly (re)opened and appended to by config.lt.
16501 lt_cl_success=:
16502 test "$silent" = yes &&
16503 lt_config_lt_args="$lt_config_lt_args --quiet"
16504 exec 5>/dev/null
16505 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16506 exec 5>>config.log
16507 $lt_cl_success || as_fn_exit 1
16510 # We require a C++17 compiler. Check if one is available, and if
16511 # necessary, set CXX_DIALECT to some -std=xxx switch.
16512 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true
16513 ac_ext=cpp
16514 ac_cpp='$CXXCPP $CPPFLAGS'
16515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16518 CXX_DIALECT=""
16519 ac_success=no
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
16522 $as_echo_n "checking whether $CXX supports C++17 features by default... " >&6; }
16523 if ${ax_cv_cxx_compile_cxx17+:} false; then :
16524 $as_echo_n "(cached) " >&6
16525 else
16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16530 // If the compiler admits that it is not ready for C++11, why torture it?
16531 // Hopefully, this will speed up the test.
16533 #ifndef __cplusplus
16535 #error "This is not a C++ compiler"
16537 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
16538 // only set it correctly if /Zc:__cplusplus is specified as well as a
16539 // /std:c++NN switch:
16540 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
16541 #elif __cplusplus < 201103L && !defined _MSC_VER
16543 #error "This is not a C++11 compiler"
16545 #else
16547 namespace cxx11
16550 namespace test_static_assert
16553 template <typename T>
16554 struct check
16556 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16561 namespace test_final_override
16564 struct Base
16566 virtual ~Base() {}
16567 virtual void f() {}
16570 struct Derived : public Base
16572 virtual ~Derived() override {}
16573 virtual void f() override {}
16578 namespace test_double_right_angle_brackets
16581 template < typename T >
16582 struct check {};
16584 typedef check<void> single_type;
16585 typedef check<check<void>> double_type;
16586 typedef check<check<check<void>>> triple_type;
16587 typedef check<check<check<check<void>>>> quadruple_type;
16591 namespace test_decltype
16597 int a = 1;
16598 decltype(a) b = 2;
16599 return a + b;
16604 namespace test_type_deduction
16607 template < typename T1, typename T2 >
16608 struct is_same
16610 static const bool value = false;
16613 template < typename T >
16614 struct is_same<T, T>
16616 static const bool value = true;
16619 template < typename T1, typename T2 >
16620 auto
16621 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16623 return a1 + a2;
16627 test(const int c, volatile int v)
16629 static_assert(is_same<int, decltype(0)>::value == true, "");
16630 static_assert(is_same<int, decltype(c)>::value == false, "");
16631 static_assert(is_same<int, decltype(v)>::value == false, "");
16632 auto ac = c;
16633 auto av = v;
16634 auto sumi = ac + av + 'x';
16635 auto sumf = ac + av + 1.0;
16636 static_assert(is_same<int, decltype(ac)>::value == true, "");
16637 static_assert(is_same<int, decltype(av)>::value == true, "");
16638 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16639 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16640 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16641 return (sumf > 0.0) ? sumi : add(c, v);
16646 namespace test_noexcept
16649 int f() { return 0; }
16650 int g() noexcept { return 0; }
16652 static_assert(noexcept(f()) == false, "");
16653 static_assert(noexcept(g()) == true, "");
16657 namespace test_constexpr
16660 template < typename CharT >
16661 unsigned long constexpr
16662 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16664 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16667 template < typename CharT >
16668 unsigned long constexpr
16669 strlen_c(const CharT *const s) noexcept
16671 return strlen_c_r(s, 0UL);
16674 static_assert(strlen_c("") == 0UL, "");
16675 static_assert(strlen_c("1") == 1UL, "");
16676 static_assert(strlen_c("example") == 7UL, "");
16677 static_assert(strlen_c("another\0example") == 7UL, "");
16681 namespace test_rvalue_references
16684 template < int N >
16685 struct answer
16687 static constexpr int value = N;
16690 answer<1> f(int&) { return answer<1>(); }
16691 answer<2> f(const int&) { return answer<2>(); }
16692 answer<3> f(int&&) { return answer<3>(); }
16694 void
16695 test()
16697 int i = 0;
16698 const int c = 0;
16699 static_assert(decltype(f(i))::value == 1, "");
16700 static_assert(decltype(f(c))::value == 2, "");
16701 static_assert(decltype(f(0))::value == 3, "");
16706 namespace test_uniform_initialization
16709 struct test
16711 static const int zero {};
16712 static const int one {1};
16715 static_assert(test::zero == 0, "");
16716 static_assert(test::one == 1, "");
16720 namespace test_lambdas
16723 void
16724 test1()
16726 auto lambda1 = [](){};
16727 auto lambda2 = lambda1;
16728 lambda1();
16729 lambda2();
16733 test2()
16735 auto a = [](int i, int j){ return i + j; }(1, 2);
16736 auto b = []() -> int { return '0'; }();
16737 auto c = [=](){ return a + b; }();
16738 auto d = [&](){ return c; }();
16739 auto e = [a, &b](int x) mutable {
16740 const auto identity = [](int y){ return y; };
16741 for (auto i = 0; i < a; ++i)
16742 a += b--;
16743 return x + identity(a + b);
16744 }(0);
16745 return a + b + c + d + e;
16749 test3()
16751 const auto nullary = [](){ return 0; };
16752 const auto unary = [](int x){ return x; };
16753 using nullary_t = decltype(nullary);
16754 using unary_t = decltype(unary);
16755 const auto higher1st = [](nullary_t f){ return f(); };
16756 const auto higher2nd = [unary](nullary_t f1){
16757 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16759 return higher1st(nullary) + higher2nd(nullary)(unary);
16764 namespace test_variadic_templates
16767 template <int...>
16768 struct sum;
16770 template <int N0, int... N1toN>
16771 struct sum<N0, N1toN...>
16773 static constexpr auto value = N0 + sum<N1toN...>::value;
16776 template <>
16777 struct sum<>
16779 static constexpr auto value = 0;
16782 static_assert(sum<>::value == 0, "");
16783 static_assert(sum<1>::value == 1, "");
16784 static_assert(sum<23>::value == 23, "");
16785 static_assert(sum<1, 2>::value == 3, "");
16786 static_assert(sum<5, 5, 11>::value == 21, "");
16787 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16791 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16792 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16793 // because of this.
16794 namespace test_template_alias_sfinae
16797 struct foo {};
16799 template<typename T>
16800 using member = typename T::member_type;
16802 template<typename T>
16803 void func(...) {}
16805 template<typename T>
16806 void func(member<T>*) {}
16808 void test();
16810 void test() { func<foo>(0); }
16814 } // namespace cxx11
16816 #endif // __cplusplus >= 201103L
16821 // If the compiler admits that it is not ready for C++14, why torture it?
16822 // Hopefully, this will speed up the test.
16824 #ifndef __cplusplus
16826 #error "This is not a C++ compiler"
16828 #elif __cplusplus < 201402L && !defined _MSC_VER
16830 #error "This is not a C++14 compiler"
16832 #else
16834 namespace cxx14
16837 namespace test_polymorphic_lambdas
16841 test()
16843 const auto lambda = [](auto&&... args){
16844 const auto istiny = [](auto x){
16845 return (sizeof(x) == 1UL) ? 1 : 0;
16847 const int aretiny[] = { istiny(args)... };
16848 return aretiny[0];
16850 return lambda(1, 1L, 1.0f, '1');
16855 namespace test_binary_literals
16858 constexpr auto ivii = 0b0000000000101010;
16859 static_assert(ivii == 42, "wrong value");
16863 namespace test_generalized_constexpr
16866 template < typename CharT >
16867 constexpr unsigned long
16868 strlen_c(const CharT *const s) noexcept
16870 auto length = 0UL;
16871 for (auto p = s; *p; ++p)
16872 ++length;
16873 return length;
16876 static_assert(strlen_c("") == 0UL, "");
16877 static_assert(strlen_c("x") == 1UL, "");
16878 static_assert(strlen_c("test") == 4UL, "");
16879 static_assert(strlen_c("another\0test") == 7UL, "");
16883 namespace test_lambda_init_capture
16887 test()
16889 auto x = 0;
16890 const auto lambda1 = [a = x](int b){ return a + b; };
16891 const auto lambda2 = [a = lambda1(x)](){ return a; };
16892 return lambda2();
16897 namespace test_digit_separators
16900 constexpr auto ten_million = 100'000'000;
16901 static_assert(ten_million == 100000000, "");
16905 namespace test_return_type_deduction
16908 auto f(int& x) { return x; }
16909 decltype(auto) g(int& x) { return x; }
16911 template < typename T1, typename T2 >
16912 struct is_same
16914 static constexpr auto value = false;
16917 template < typename T >
16918 struct is_same<T, T>
16920 static constexpr auto value = true;
16924 test()
16926 auto x = 0;
16927 static_assert(is_same<int, decltype(f(x))>::value, "");
16928 static_assert(is_same<int&, decltype(g(x))>::value, "");
16929 return x;
16934 } // namespace cxx14
16936 #endif // __cplusplus >= 201402L
16941 // If the compiler admits that it is not ready for C++17, why torture it?
16942 // Hopefully, this will speed up the test.
16944 #ifndef __cplusplus
16946 #error "This is not a C++ compiler"
16948 #elif __cplusplus < 201703L && !defined _MSC_VER
16950 #error "This is not a C++17 compiler"
16952 #else
16954 #include <initializer_list>
16955 #include <utility>
16956 #include <type_traits>
16958 namespace cxx17
16961 namespace test_constexpr_lambdas
16964 constexpr int foo = [](){return 42;}();
16968 namespace test::nested_namespace::definitions
16973 namespace test_fold_expression
16976 template<typename... Args>
16977 int multiply(Args... args)
16979 return (args * ... * 1);
16982 template<typename... Args>
16983 bool all(Args... args)
16985 return (args && ...);
16990 namespace test_extended_static_assert
16993 static_assert (true);
16997 namespace test_auto_brace_init_list
17000 auto foo = {5};
17001 auto bar {5};
17003 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
17004 static_assert(std::is_same<int, decltype(bar)>::value);
17007 namespace test_typename_in_template_template_parameter
17010 template<template<typename> typename X> struct D;
17014 namespace test_fallthrough_nodiscard_maybe_unused_attributes
17017 int f1()
17019 return 42;
17022 [[nodiscard]] int f2()
17024 [[maybe_unused]] auto unused = f1();
17026 switch (f1())
17028 case 17:
17029 f1();
17030 [[fallthrough]];
17031 case 42:
17032 f1();
17034 return f1();
17039 namespace test_extended_aggregate_initialization
17042 struct base1
17044 int b1, b2 = 42;
17047 struct base2
17049 base2() {
17050 b3 = 42;
17052 int b3;
17055 struct derived : base1, base2
17057 int d;
17060 derived d1 {{1, 2}, {}, 4}; // full initialization
17061 derived d2 {{}, {}, 4}; // value-initialized bases
17065 namespace test_general_range_based_for_loop
17068 struct iter
17070 int i;
17072 int& operator* ()
17074 return i;
17077 const int& operator* () const
17079 return i;
17082 iter& operator++()
17084 ++i;
17085 return *this;
17089 struct sentinel
17091 int i;
17094 bool operator== (const iter& i, const sentinel& s)
17096 return i.i == s.i;
17099 bool operator!= (const iter& i, const sentinel& s)
17101 return !(i == s);
17104 struct range
17106 iter begin() const
17108 return {0};
17111 sentinel end() const
17113 return {5};
17117 void f()
17119 range r {};
17121 for (auto i : r)
17123 [[maybe_unused]] auto v = i;
17129 namespace test_lambda_capture_asterisk_this_by_value
17132 struct t
17134 int i;
17135 int foo()
17137 return [*this]()
17139 return i;
17140 }();
17146 namespace test_enum_class_construction
17149 enum class byte : unsigned char
17152 byte foo {42};
17156 namespace test_constexpr_if
17159 template <bool cond>
17160 int f ()
17162 if constexpr(cond)
17164 return 13;
17166 else
17168 return 42;
17174 namespace test_selection_statement_with_initializer
17177 int f()
17179 return 13;
17182 int f2()
17184 if (auto i = f(); i > 0)
17186 return 3;
17189 switch (auto i = f(); i + 4)
17191 case 17:
17192 return 2;
17194 default:
17195 return 1;
17201 namespace test_template_argument_deduction_for_class_templates
17204 template <typename T1, typename T2>
17205 struct pair
17207 pair (T1 p1, T2 p2)
17208 : m1 {p1},
17209 m2 {p2}
17212 T1 m1;
17213 T2 m2;
17216 void f()
17218 [[maybe_unused]] auto p = pair{13, 42u};
17223 namespace test_non_type_auto_template_parameters
17226 template <auto n>
17227 struct B
17230 B<5> b1;
17231 B<'a'> b2;
17235 namespace test_structured_bindings
17238 int arr[2] = { 1, 2 };
17239 std::pair<int, int> pr = { 1, 2 };
17241 auto f1() -> int(&)[2]
17243 return arr;
17246 auto f2() -> std::pair<int, int>&
17248 return pr;
17251 struct S
17253 int x1 : 2;
17254 volatile double y1;
17257 S f3()
17259 return {};
17262 auto [ x1, y1 ] = f1();
17263 auto& [ xr1, yr1 ] = f1();
17264 auto [ x2, y2 ] = f2();
17265 auto& [ xr2, yr2 ] = f2();
17266 const auto [ x3, y3 ] = f3();
17270 namespace test_exception_spec_type_system
17273 struct Good {};
17274 struct Bad {};
17276 void g1() noexcept;
17277 void g2();
17279 template<typename T>
17281 f(T*, T*);
17283 template<typename T1, typename T2>
17284 Good
17285 f(T1*, T2*);
17287 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
17291 namespace test_inline_variables
17294 template<class T> void f(T)
17297 template<class T> inline T g(T)
17299 return T{};
17302 template<> inline void f<>(int)
17305 template<> int g<>(int)
17307 return 5;
17312 } // namespace cxx17
17314 #endif // __cplusplus < 201703L && !defined _MSC_VER
17318 _ACEOF
17319 if ac_fn_cxx_try_compile "$LINENO"; then :
17320 ax_cv_cxx_compile_cxx17=yes
17321 else
17322 ax_cv_cxx_compile_cxx17=no
17324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
17327 $as_echo "$ax_cv_cxx_compile_cxx17" >&6; }
17328 if test x$ax_cv_cxx_compile_cxx17 = xyes; then
17329 ac_success=yes
17332 if test x$ac_success = xno; then
17333 for alternative in ${ax_cxx_compile_alternatives}; do
17334 switch="-std=gnu++${alternative}"
17335 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
17337 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
17338 if eval \${$cachevar+:} false; then :
17339 $as_echo_n "(cached) " >&6
17340 else
17341 ac_save_CXX="$CXX"
17342 CXX="$CXX $switch"
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17347 // If the compiler admits that it is not ready for C++11, why torture it?
17348 // Hopefully, this will speed up the test.
17350 #ifndef __cplusplus
17352 #error "This is not a C++ compiler"
17354 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
17355 // only set it correctly if /Zc:__cplusplus is specified as well as a
17356 // /std:c++NN switch:
17357 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
17358 #elif __cplusplus < 201103L && !defined _MSC_VER
17360 #error "This is not a C++11 compiler"
17362 #else
17364 namespace cxx11
17367 namespace test_static_assert
17370 template <typename T>
17371 struct check
17373 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17378 namespace test_final_override
17381 struct Base
17383 virtual ~Base() {}
17384 virtual void f() {}
17387 struct Derived : public Base
17389 virtual ~Derived() override {}
17390 virtual void f() override {}
17395 namespace test_double_right_angle_brackets
17398 template < typename T >
17399 struct check {};
17401 typedef check<void> single_type;
17402 typedef check<check<void>> double_type;
17403 typedef check<check<check<void>>> triple_type;
17404 typedef check<check<check<check<void>>>> quadruple_type;
17408 namespace test_decltype
17414 int a = 1;
17415 decltype(a) b = 2;
17416 return a + b;
17421 namespace test_type_deduction
17424 template < typename T1, typename T2 >
17425 struct is_same
17427 static const bool value = false;
17430 template < typename T >
17431 struct is_same<T, T>
17433 static const bool value = true;
17436 template < typename T1, typename T2 >
17437 auto
17438 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17440 return a1 + a2;
17444 test(const int c, volatile int v)
17446 static_assert(is_same<int, decltype(0)>::value == true, "");
17447 static_assert(is_same<int, decltype(c)>::value == false, "");
17448 static_assert(is_same<int, decltype(v)>::value == false, "");
17449 auto ac = c;
17450 auto av = v;
17451 auto sumi = ac + av + 'x';
17452 auto sumf = ac + av + 1.0;
17453 static_assert(is_same<int, decltype(ac)>::value == true, "");
17454 static_assert(is_same<int, decltype(av)>::value == true, "");
17455 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17456 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17457 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17458 return (sumf > 0.0) ? sumi : add(c, v);
17463 namespace test_noexcept
17466 int f() { return 0; }
17467 int g() noexcept { return 0; }
17469 static_assert(noexcept(f()) == false, "");
17470 static_assert(noexcept(g()) == true, "");
17474 namespace test_constexpr
17477 template < typename CharT >
17478 unsigned long constexpr
17479 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17481 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17484 template < typename CharT >
17485 unsigned long constexpr
17486 strlen_c(const CharT *const s) noexcept
17488 return strlen_c_r(s, 0UL);
17491 static_assert(strlen_c("") == 0UL, "");
17492 static_assert(strlen_c("1") == 1UL, "");
17493 static_assert(strlen_c("example") == 7UL, "");
17494 static_assert(strlen_c("another\0example") == 7UL, "");
17498 namespace test_rvalue_references
17501 template < int N >
17502 struct answer
17504 static constexpr int value = N;
17507 answer<1> f(int&) { return answer<1>(); }
17508 answer<2> f(const int&) { return answer<2>(); }
17509 answer<3> f(int&&) { return answer<3>(); }
17511 void
17512 test()
17514 int i = 0;
17515 const int c = 0;
17516 static_assert(decltype(f(i))::value == 1, "");
17517 static_assert(decltype(f(c))::value == 2, "");
17518 static_assert(decltype(f(0))::value == 3, "");
17523 namespace test_uniform_initialization
17526 struct test
17528 static const int zero {};
17529 static const int one {1};
17532 static_assert(test::zero == 0, "");
17533 static_assert(test::one == 1, "");
17537 namespace test_lambdas
17540 void
17541 test1()
17543 auto lambda1 = [](){};
17544 auto lambda2 = lambda1;
17545 lambda1();
17546 lambda2();
17550 test2()
17552 auto a = [](int i, int j){ return i + j; }(1, 2);
17553 auto b = []() -> int { return '0'; }();
17554 auto c = [=](){ return a + b; }();
17555 auto d = [&](){ return c; }();
17556 auto e = [a, &b](int x) mutable {
17557 const auto identity = [](int y){ return y; };
17558 for (auto i = 0; i < a; ++i)
17559 a += b--;
17560 return x + identity(a + b);
17561 }(0);
17562 return a + b + c + d + e;
17566 test3()
17568 const auto nullary = [](){ return 0; };
17569 const auto unary = [](int x){ return x; };
17570 using nullary_t = decltype(nullary);
17571 using unary_t = decltype(unary);
17572 const auto higher1st = [](nullary_t f){ return f(); };
17573 const auto higher2nd = [unary](nullary_t f1){
17574 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17576 return higher1st(nullary) + higher2nd(nullary)(unary);
17581 namespace test_variadic_templates
17584 template <int...>
17585 struct sum;
17587 template <int N0, int... N1toN>
17588 struct sum<N0, N1toN...>
17590 static constexpr auto value = N0 + sum<N1toN...>::value;
17593 template <>
17594 struct sum<>
17596 static constexpr auto value = 0;
17599 static_assert(sum<>::value == 0, "");
17600 static_assert(sum<1>::value == 1, "");
17601 static_assert(sum<23>::value == 23, "");
17602 static_assert(sum<1, 2>::value == 3, "");
17603 static_assert(sum<5, 5, 11>::value == 21, "");
17604 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17608 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17609 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17610 // because of this.
17611 namespace test_template_alias_sfinae
17614 struct foo {};
17616 template<typename T>
17617 using member = typename T::member_type;
17619 template<typename T>
17620 void func(...) {}
17622 template<typename T>
17623 void func(member<T>*) {}
17625 void test();
17627 void test() { func<foo>(0); }
17631 } // namespace cxx11
17633 #endif // __cplusplus >= 201103L
17638 // If the compiler admits that it is not ready for C++14, why torture it?
17639 // Hopefully, this will speed up the test.
17641 #ifndef __cplusplus
17643 #error "This is not a C++ compiler"
17645 #elif __cplusplus < 201402L && !defined _MSC_VER
17647 #error "This is not a C++14 compiler"
17649 #else
17651 namespace cxx14
17654 namespace test_polymorphic_lambdas
17658 test()
17660 const auto lambda = [](auto&&... args){
17661 const auto istiny = [](auto x){
17662 return (sizeof(x) == 1UL) ? 1 : 0;
17664 const int aretiny[] = { istiny(args)... };
17665 return aretiny[0];
17667 return lambda(1, 1L, 1.0f, '1');
17672 namespace test_binary_literals
17675 constexpr auto ivii = 0b0000000000101010;
17676 static_assert(ivii == 42, "wrong value");
17680 namespace test_generalized_constexpr
17683 template < typename CharT >
17684 constexpr unsigned long
17685 strlen_c(const CharT *const s) noexcept
17687 auto length = 0UL;
17688 for (auto p = s; *p; ++p)
17689 ++length;
17690 return length;
17693 static_assert(strlen_c("") == 0UL, "");
17694 static_assert(strlen_c("x") == 1UL, "");
17695 static_assert(strlen_c("test") == 4UL, "");
17696 static_assert(strlen_c("another\0test") == 7UL, "");
17700 namespace test_lambda_init_capture
17704 test()
17706 auto x = 0;
17707 const auto lambda1 = [a = x](int b){ return a + b; };
17708 const auto lambda2 = [a = lambda1(x)](){ return a; };
17709 return lambda2();
17714 namespace test_digit_separators
17717 constexpr auto ten_million = 100'000'000;
17718 static_assert(ten_million == 100000000, "");
17722 namespace test_return_type_deduction
17725 auto f(int& x) { return x; }
17726 decltype(auto) g(int& x) { return x; }
17728 template < typename T1, typename T2 >
17729 struct is_same
17731 static constexpr auto value = false;
17734 template < typename T >
17735 struct is_same<T, T>
17737 static constexpr auto value = true;
17741 test()
17743 auto x = 0;
17744 static_assert(is_same<int, decltype(f(x))>::value, "");
17745 static_assert(is_same<int&, decltype(g(x))>::value, "");
17746 return x;
17751 } // namespace cxx14
17753 #endif // __cplusplus >= 201402L
17758 // If the compiler admits that it is not ready for C++17, why torture it?
17759 // Hopefully, this will speed up the test.
17761 #ifndef __cplusplus
17763 #error "This is not a C++ compiler"
17765 #elif __cplusplus < 201703L && !defined _MSC_VER
17767 #error "This is not a C++17 compiler"
17769 #else
17771 #include <initializer_list>
17772 #include <utility>
17773 #include <type_traits>
17775 namespace cxx17
17778 namespace test_constexpr_lambdas
17781 constexpr int foo = [](){return 42;}();
17785 namespace test::nested_namespace::definitions
17790 namespace test_fold_expression
17793 template<typename... Args>
17794 int multiply(Args... args)
17796 return (args * ... * 1);
17799 template<typename... Args>
17800 bool all(Args... args)
17802 return (args && ...);
17807 namespace test_extended_static_assert
17810 static_assert (true);
17814 namespace test_auto_brace_init_list
17817 auto foo = {5};
17818 auto bar {5};
17820 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
17821 static_assert(std::is_same<int, decltype(bar)>::value);
17824 namespace test_typename_in_template_template_parameter
17827 template<template<typename> typename X> struct D;
17831 namespace test_fallthrough_nodiscard_maybe_unused_attributes
17834 int f1()
17836 return 42;
17839 [[nodiscard]] int f2()
17841 [[maybe_unused]] auto unused = f1();
17843 switch (f1())
17845 case 17:
17846 f1();
17847 [[fallthrough]];
17848 case 42:
17849 f1();
17851 return f1();
17856 namespace test_extended_aggregate_initialization
17859 struct base1
17861 int b1, b2 = 42;
17864 struct base2
17866 base2() {
17867 b3 = 42;
17869 int b3;
17872 struct derived : base1, base2
17874 int d;
17877 derived d1 {{1, 2}, {}, 4}; // full initialization
17878 derived d2 {{}, {}, 4}; // value-initialized bases
17882 namespace test_general_range_based_for_loop
17885 struct iter
17887 int i;
17889 int& operator* ()
17891 return i;
17894 const int& operator* () const
17896 return i;
17899 iter& operator++()
17901 ++i;
17902 return *this;
17906 struct sentinel
17908 int i;
17911 bool operator== (const iter& i, const sentinel& s)
17913 return i.i == s.i;
17916 bool operator!= (const iter& i, const sentinel& s)
17918 return !(i == s);
17921 struct range
17923 iter begin() const
17925 return {0};
17928 sentinel end() const
17930 return {5};
17934 void f()
17936 range r {};
17938 for (auto i : r)
17940 [[maybe_unused]] auto v = i;
17946 namespace test_lambda_capture_asterisk_this_by_value
17949 struct t
17951 int i;
17952 int foo()
17954 return [*this]()
17956 return i;
17957 }();
17963 namespace test_enum_class_construction
17966 enum class byte : unsigned char
17969 byte foo {42};
17973 namespace test_constexpr_if
17976 template <bool cond>
17977 int f ()
17979 if constexpr(cond)
17981 return 13;
17983 else
17985 return 42;
17991 namespace test_selection_statement_with_initializer
17994 int f()
17996 return 13;
17999 int f2()
18001 if (auto i = f(); i > 0)
18003 return 3;
18006 switch (auto i = f(); i + 4)
18008 case 17:
18009 return 2;
18011 default:
18012 return 1;
18018 namespace test_template_argument_deduction_for_class_templates
18021 template <typename T1, typename T2>
18022 struct pair
18024 pair (T1 p1, T2 p2)
18025 : m1 {p1},
18026 m2 {p2}
18029 T1 m1;
18030 T2 m2;
18033 void f()
18035 [[maybe_unused]] auto p = pair{13, 42u};
18040 namespace test_non_type_auto_template_parameters
18043 template <auto n>
18044 struct B
18047 B<5> b1;
18048 B<'a'> b2;
18052 namespace test_structured_bindings
18055 int arr[2] = { 1, 2 };
18056 std::pair<int, int> pr = { 1, 2 };
18058 auto f1() -> int(&)[2]
18060 return arr;
18063 auto f2() -> std::pair<int, int>&
18065 return pr;
18068 struct S
18070 int x1 : 2;
18071 volatile double y1;
18074 S f3()
18076 return {};
18079 auto [ x1, y1 ] = f1();
18080 auto& [ xr1, yr1 ] = f1();
18081 auto [ x2, y2 ] = f2();
18082 auto& [ xr2, yr2 ] = f2();
18083 const auto [ x3, y3 ] = f3();
18087 namespace test_exception_spec_type_system
18090 struct Good {};
18091 struct Bad {};
18093 void g1() noexcept;
18094 void g2();
18096 template<typename T>
18098 f(T*, T*);
18100 template<typename T1, typename T2>
18101 Good
18102 f(T1*, T2*);
18104 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
18108 namespace test_inline_variables
18111 template<class T> void f(T)
18114 template<class T> inline T g(T)
18116 return T{};
18119 template<> inline void f<>(int)
18122 template<> int g<>(int)
18124 return 5;
18129 } // namespace cxx17
18131 #endif // __cplusplus < 201703L && !defined _MSC_VER
18135 _ACEOF
18136 if ac_fn_cxx_try_compile "$LINENO"; then :
18137 eval $cachevar=yes
18138 else
18139 eval $cachevar=no
18141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18142 CXX="$ac_save_CXX"
18144 eval ac_res=\$$cachevar
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18146 $as_echo "$ac_res" >&6; }
18147 if eval test x\$$cachevar = xyes; then
18148 CXX_DIALECT="$switch"
18149 CXX="$CXX $switch"
18150 if test -n "$CXXCPP" ; then
18151 CXXCPP="$CXXCPP $switch"
18153 ac_success=yes
18154 break
18156 done
18159 if test x$ac_success = xno; then
18160 for alternative in ${ax_cxx_compile_alternatives}; do
18161 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
18162 if test x"$switch" = xMSVC; then
18163 switch=-std:c++${alternative}
18164 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | $as_tr_sh`
18165 else
18166 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
18169 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
18170 if eval \${$cachevar+:} false; then :
18171 $as_echo_n "(cached) " >&6
18172 else
18173 ac_save_CXX="$CXX"
18174 CXX="$CXX $switch"
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18179 // If the compiler admits that it is not ready for C++11, why torture it?
18180 // Hopefully, this will speed up the test.
18182 #ifndef __cplusplus
18184 #error "This is not a C++ compiler"
18186 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
18187 // only set it correctly if /Zc:__cplusplus is specified as well as a
18188 // /std:c++NN switch:
18189 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
18190 #elif __cplusplus < 201103L && !defined _MSC_VER
18192 #error "This is not a C++11 compiler"
18194 #else
18196 namespace cxx11
18199 namespace test_static_assert
18202 template <typename T>
18203 struct check
18205 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18210 namespace test_final_override
18213 struct Base
18215 virtual ~Base() {}
18216 virtual void f() {}
18219 struct Derived : public Base
18221 virtual ~Derived() override {}
18222 virtual void f() override {}
18227 namespace test_double_right_angle_brackets
18230 template < typename T >
18231 struct check {};
18233 typedef check<void> single_type;
18234 typedef check<check<void>> double_type;
18235 typedef check<check<check<void>>> triple_type;
18236 typedef check<check<check<check<void>>>> quadruple_type;
18240 namespace test_decltype
18246 int a = 1;
18247 decltype(a) b = 2;
18248 return a + b;
18253 namespace test_type_deduction
18256 template < typename T1, typename T2 >
18257 struct is_same
18259 static const bool value = false;
18262 template < typename T >
18263 struct is_same<T, T>
18265 static const bool value = true;
18268 template < typename T1, typename T2 >
18269 auto
18270 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18272 return a1 + a2;
18276 test(const int c, volatile int v)
18278 static_assert(is_same<int, decltype(0)>::value == true, "");
18279 static_assert(is_same<int, decltype(c)>::value == false, "");
18280 static_assert(is_same<int, decltype(v)>::value == false, "");
18281 auto ac = c;
18282 auto av = v;
18283 auto sumi = ac + av + 'x';
18284 auto sumf = ac + av + 1.0;
18285 static_assert(is_same<int, decltype(ac)>::value == true, "");
18286 static_assert(is_same<int, decltype(av)>::value == true, "");
18287 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18288 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18289 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18290 return (sumf > 0.0) ? sumi : add(c, v);
18295 namespace test_noexcept
18298 int f() { return 0; }
18299 int g() noexcept { return 0; }
18301 static_assert(noexcept(f()) == false, "");
18302 static_assert(noexcept(g()) == true, "");
18306 namespace test_constexpr
18309 template < typename CharT >
18310 unsigned long constexpr
18311 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18313 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18316 template < typename CharT >
18317 unsigned long constexpr
18318 strlen_c(const CharT *const s) noexcept
18320 return strlen_c_r(s, 0UL);
18323 static_assert(strlen_c("") == 0UL, "");
18324 static_assert(strlen_c("1") == 1UL, "");
18325 static_assert(strlen_c("example") == 7UL, "");
18326 static_assert(strlen_c("another\0example") == 7UL, "");
18330 namespace test_rvalue_references
18333 template < int N >
18334 struct answer
18336 static constexpr int value = N;
18339 answer<1> f(int&) { return answer<1>(); }
18340 answer<2> f(const int&) { return answer<2>(); }
18341 answer<3> f(int&&) { return answer<3>(); }
18343 void
18344 test()
18346 int i = 0;
18347 const int c = 0;
18348 static_assert(decltype(f(i))::value == 1, "");
18349 static_assert(decltype(f(c))::value == 2, "");
18350 static_assert(decltype(f(0))::value == 3, "");
18355 namespace test_uniform_initialization
18358 struct test
18360 static const int zero {};
18361 static const int one {1};
18364 static_assert(test::zero == 0, "");
18365 static_assert(test::one == 1, "");
18369 namespace test_lambdas
18372 void
18373 test1()
18375 auto lambda1 = [](){};
18376 auto lambda2 = lambda1;
18377 lambda1();
18378 lambda2();
18382 test2()
18384 auto a = [](int i, int j){ return i + j; }(1, 2);
18385 auto b = []() -> int { return '0'; }();
18386 auto c = [=](){ return a + b; }();
18387 auto d = [&](){ return c; }();
18388 auto e = [a, &b](int x) mutable {
18389 const auto identity = [](int y){ return y; };
18390 for (auto i = 0; i < a; ++i)
18391 a += b--;
18392 return x + identity(a + b);
18393 }(0);
18394 return a + b + c + d + e;
18398 test3()
18400 const auto nullary = [](){ return 0; };
18401 const auto unary = [](int x){ return x; };
18402 using nullary_t = decltype(nullary);
18403 using unary_t = decltype(unary);
18404 const auto higher1st = [](nullary_t f){ return f(); };
18405 const auto higher2nd = [unary](nullary_t f1){
18406 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18408 return higher1st(nullary) + higher2nd(nullary)(unary);
18413 namespace test_variadic_templates
18416 template <int...>
18417 struct sum;
18419 template <int N0, int... N1toN>
18420 struct sum<N0, N1toN...>
18422 static constexpr auto value = N0 + sum<N1toN...>::value;
18425 template <>
18426 struct sum<>
18428 static constexpr auto value = 0;
18431 static_assert(sum<>::value == 0, "");
18432 static_assert(sum<1>::value == 1, "");
18433 static_assert(sum<23>::value == 23, "");
18434 static_assert(sum<1, 2>::value == 3, "");
18435 static_assert(sum<5, 5, 11>::value == 21, "");
18436 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18440 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18441 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18442 // because of this.
18443 namespace test_template_alias_sfinae
18446 struct foo {};
18448 template<typename T>
18449 using member = typename T::member_type;
18451 template<typename T>
18452 void func(...) {}
18454 template<typename T>
18455 void func(member<T>*) {}
18457 void test();
18459 void test() { func<foo>(0); }
18463 } // namespace cxx11
18465 #endif // __cplusplus >= 201103L
18470 // If the compiler admits that it is not ready for C++14, why torture it?
18471 // Hopefully, this will speed up the test.
18473 #ifndef __cplusplus
18475 #error "This is not a C++ compiler"
18477 #elif __cplusplus < 201402L && !defined _MSC_VER
18479 #error "This is not a C++14 compiler"
18481 #else
18483 namespace cxx14
18486 namespace test_polymorphic_lambdas
18490 test()
18492 const auto lambda = [](auto&&... args){
18493 const auto istiny = [](auto x){
18494 return (sizeof(x) == 1UL) ? 1 : 0;
18496 const int aretiny[] = { istiny(args)... };
18497 return aretiny[0];
18499 return lambda(1, 1L, 1.0f, '1');
18504 namespace test_binary_literals
18507 constexpr auto ivii = 0b0000000000101010;
18508 static_assert(ivii == 42, "wrong value");
18512 namespace test_generalized_constexpr
18515 template < typename CharT >
18516 constexpr unsigned long
18517 strlen_c(const CharT *const s) noexcept
18519 auto length = 0UL;
18520 for (auto p = s; *p; ++p)
18521 ++length;
18522 return length;
18525 static_assert(strlen_c("") == 0UL, "");
18526 static_assert(strlen_c("x") == 1UL, "");
18527 static_assert(strlen_c("test") == 4UL, "");
18528 static_assert(strlen_c("another\0test") == 7UL, "");
18532 namespace test_lambda_init_capture
18536 test()
18538 auto x = 0;
18539 const auto lambda1 = [a = x](int b){ return a + b; };
18540 const auto lambda2 = [a = lambda1(x)](){ return a; };
18541 return lambda2();
18546 namespace test_digit_separators
18549 constexpr auto ten_million = 100'000'000;
18550 static_assert(ten_million == 100000000, "");
18554 namespace test_return_type_deduction
18557 auto f(int& x) { return x; }
18558 decltype(auto) g(int& x) { return x; }
18560 template < typename T1, typename T2 >
18561 struct is_same
18563 static constexpr auto value = false;
18566 template < typename T >
18567 struct is_same<T, T>
18569 static constexpr auto value = true;
18573 test()
18575 auto x = 0;
18576 static_assert(is_same<int, decltype(f(x))>::value, "");
18577 static_assert(is_same<int&, decltype(g(x))>::value, "");
18578 return x;
18583 } // namespace cxx14
18585 #endif // __cplusplus >= 201402L
18590 // If the compiler admits that it is not ready for C++17, why torture it?
18591 // Hopefully, this will speed up the test.
18593 #ifndef __cplusplus
18595 #error "This is not a C++ compiler"
18597 #elif __cplusplus < 201703L && !defined _MSC_VER
18599 #error "This is not a C++17 compiler"
18601 #else
18603 #include <initializer_list>
18604 #include <utility>
18605 #include <type_traits>
18607 namespace cxx17
18610 namespace test_constexpr_lambdas
18613 constexpr int foo = [](){return 42;}();
18617 namespace test::nested_namespace::definitions
18622 namespace test_fold_expression
18625 template<typename... Args>
18626 int multiply(Args... args)
18628 return (args * ... * 1);
18631 template<typename... Args>
18632 bool all(Args... args)
18634 return (args && ...);
18639 namespace test_extended_static_assert
18642 static_assert (true);
18646 namespace test_auto_brace_init_list
18649 auto foo = {5};
18650 auto bar {5};
18652 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
18653 static_assert(std::is_same<int, decltype(bar)>::value);
18656 namespace test_typename_in_template_template_parameter
18659 template<template<typename> typename X> struct D;
18663 namespace test_fallthrough_nodiscard_maybe_unused_attributes
18666 int f1()
18668 return 42;
18671 [[nodiscard]] int f2()
18673 [[maybe_unused]] auto unused = f1();
18675 switch (f1())
18677 case 17:
18678 f1();
18679 [[fallthrough]];
18680 case 42:
18681 f1();
18683 return f1();
18688 namespace test_extended_aggregate_initialization
18691 struct base1
18693 int b1, b2 = 42;
18696 struct base2
18698 base2() {
18699 b3 = 42;
18701 int b3;
18704 struct derived : base1, base2
18706 int d;
18709 derived d1 {{1, 2}, {}, 4}; // full initialization
18710 derived d2 {{}, {}, 4}; // value-initialized bases
18714 namespace test_general_range_based_for_loop
18717 struct iter
18719 int i;
18721 int& operator* ()
18723 return i;
18726 const int& operator* () const
18728 return i;
18731 iter& operator++()
18733 ++i;
18734 return *this;
18738 struct sentinel
18740 int i;
18743 bool operator== (const iter& i, const sentinel& s)
18745 return i.i == s.i;
18748 bool operator!= (const iter& i, const sentinel& s)
18750 return !(i == s);
18753 struct range
18755 iter begin() const
18757 return {0};
18760 sentinel end() const
18762 return {5};
18766 void f()
18768 range r {};
18770 for (auto i : r)
18772 [[maybe_unused]] auto v = i;
18778 namespace test_lambda_capture_asterisk_this_by_value
18781 struct t
18783 int i;
18784 int foo()
18786 return [*this]()
18788 return i;
18789 }();
18795 namespace test_enum_class_construction
18798 enum class byte : unsigned char
18801 byte foo {42};
18805 namespace test_constexpr_if
18808 template <bool cond>
18809 int f ()
18811 if constexpr(cond)
18813 return 13;
18815 else
18817 return 42;
18823 namespace test_selection_statement_with_initializer
18826 int f()
18828 return 13;
18831 int f2()
18833 if (auto i = f(); i > 0)
18835 return 3;
18838 switch (auto i = f(); i + 4)
18840 case 17:
18841 return 2;
18843 default:
18844 return 1;
18850 namespace test_template_argument_deduction_for_class_templates
18853 template <typename T1, typename T2>
18854 struct pair
18856 pair (T1 p1, T2 p2)
18857 : m1 {p1},
18858 m2 {p2}
18861 T1 m1;
18862 T2 m2;
18865 void f()
18867 [[maybe_unused]] auto p = pair{13, 42u};
18872 namespace test_non_type_auto_template_parameters
18875 template <auto n>
18876 struct B
18879 B<5> b1;
18880 B<'a'> b2;
18884 namespace test_structured_bindings
18887 int arr[2] = { 1, 2 };
18888 std::pair<int, int> pr = { 1, 2 };
18890 auto f1() -> int(&)[2]
18892 return arr;
18895 auto f2() -> std::pair<int, int>&
18897 return pr;
18900 struct S
18902 int x1 : 2;
18903 volatile double y1;
18906 S f3()
18908 return {};
18911 auto [ x1, y1 ] = f1();
18912 auto& [ xr1, yr1 ] = f1();
18913 auto [ x2, y2 ] = f2();
18914 auto& [ xr2, yr2 ] = f2();
18915 const auto [ x3, y3 ] = f3();
18919 namespace test_exception_spec_type_system
18922 struct Good {};
18923 struct Bad {};
18925 void g1() noexcept;
18926 void g2();
18928 template<typename T>
18930 f(T*, T*);
18932 template<typename T1, typename T2>
18933 Good
18934 f(T1*, T2*);
18936 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
18940 namespace test_inline_variables
18943 template<class T> void f(T)
18946 template<class T> inline T g(T)
18948 return T{};
18951 template<> inline void f<>(int)
18954 template<> int g<>(int)
18956 return 5;
18961 } // namespace cxx17
18963 #endif // __cplusplus < 201703L && !defined _MSC_VER
18967 _ACEOF
18968 if ac_fn_cxx_try_compile "$LINENO"; then :
18969 eval $cachevar=yes
18970 else
18971 eval $cachevar=no
18973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18974 CXX="$ac_save_CXX"
18976 eval ac_res=\$$cachevar
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18978 $as_echo "$ac_res" >&6; }
18979 if eval test x\$$cachevar = xyes; then
18980 CXX_DIALECT="$switch"
18981 CXX="$CXX $switch"
18982 if test -n "$CXXCPP" ; then
18983 CXXCPP="$CXXCPP $switch"
18985 ac_success=yes
18986 break
18988 done
18989 if test x$ac_success = xyes; then
18990 break
18992 done
18994 ac_ext=c
18995 ac_cpp='$CPP $CPPFLAGS'
18996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19000 if test x$ax_cxx_compile_cxx17_required = xtrue; then
19001 if test x$ac_success = xno; then
19002 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
19005 if test x$ac_success = xno; then
19006 HAVE_CXX17=0
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
19008 $as_echo "$as_me: No compiler with C++17 support was found" >&6;}
19009 else
19010 HAVE_CXX17=1
19012 $as_echo "#define HAVE_CXX17 1" >>confdefs.h
19019 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19020 if test "x$ac_cv_type_size_t" = xyes; then :
19022 else
19024 cat >>confdefs.h <<_ACEOF
19025 #define size_t unsigned int
19026 _ACEOF
19033 for ac_header in $ac_header_list
19034 do :
19035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19036 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19038 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19039 cat >>confdefs.h <<_ACEOF
19040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19041 _ACEOF
19045 done
19053 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19054 if test "x$ac_cv_type_pid_t" = xyes; then :
19056 else
19058 cat >>confdefs.h <<_ACEOF
19059 #define pid_t int
19060 _ACEOF
19065 if test "X$prefix" = "XNONE"; then
19066 acl_final_prefix="$ac_default_prefix"
19067 else
19068 acl_final_prefix="$prefix"
19070 if test "X$exec_prefix" = "XNONE"; then
19071 acl_final_exec_prefix='${prefix}'
19072 else
19073 acl_final_exec_prefix="$exec_prefix"
19075 acl_save_prefix="$prefix"
19076 prefix="$acl_final_prefix"
19077 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19078 prefix="$acl_save_prefix"
19081 # Check whether --with-gnu-ld was given.
19082 if test "${with_gnu_ld+set}" = set; then :
19083 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19084 else
19085 with_gnu_ld=no
19088 # Prepare PATH_SEPARATOR.
19089 # The user is always right.
19090 if test "${PATH_SEPARATOR+set}" != set; then
19091 echo "#! /bin/sh" >conf$$.sh
19092 echo "exit 0" >>conf$$.sh
19093 chmod +x conf$$.sh
19094 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19095 PATH_SEPARATOR=';'
19096 else
19097 PATH_SEPARATOR=:
19099 rm -f conf$$.sh
19101 ac_prog=ld
19102 if test "$GCC" = yes; then
19103 # Check if gcc -print-prog-name=ld gives a path.
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
19105 $as_echo_n "checking for ld used by GCC... " >&6; }
19106 case $host in
19107 *-*-mingw*)
19108 # gcc leaves a trailing carriage return which upsets mingw
19109 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19111 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19112 esac
19113 case $ac_prog in
19114 # Accept absolute paths.
19115 [\\/]* | [A-Za-z]:[\\/]*)
19116 re_direlt='/[^/][^/]*/\.\./'
19117 # Canonicalize the path of ld
19118 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19119 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19120 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19121 done
19122 test -z "$LD" && LD="$ac_prog"
19125 # If it fails, then pretend we aren't using GCC.
19126 ac_prog=ld
19129 # If it is relative, then search for the first ld in PATH.
19130 with_gnu_ld=unknown
19132 esac
19133 elif test "$with_gnu_ld" = yes; then
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19135 $as_echo_n "checking for GNU ld... " >&6; }
19136 else
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19138 $as_echo_n "checking for non-GNU ld... " >&6; }
19140 if ${acl_cv_path_LD+:} false; then :
19141 $as_echo_n "(cached) " >&6
19142 else
19143 if test -z "$LD"; then
19144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19145 for ac_dir in $PATH; do
19146 test -z "$ac_dir" && ac_dir=.
19147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19148 acl_cv_path_LD="$ac_dir/$ac_prog"
19149 # Check to see if the program is GNU ld. I'd rather use --version,
19150 # but apparently some GNU ld's only accept -v.
19151 # Break only if it was the GNU/non-GNU ld that we prefer.
19152 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
19153 test "$with_gnu_ld" != no && break
19154 else
19155 test "$with_gnu_ld" != yes && break
19158 done
19159 IFS="$ac_save_ifs"
19160 else
19161 acl_cv_path_LD="$LD" # Let the user override the test with a path.
19165 LD="$acl_cv_path_LD"
19166 if test -n "$LD"; then
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19168 $as_echo "$LD" >&6; }
19169 else
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19171 $as_echo "no" >&6; }
19173 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19175 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19176 if ${acl_cv_prog_gnu_ld+:} false; then :
19177 $as_echo_n "(cached) " >&6
19178 else
19179 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19180 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
19181 acl_cv_prog_gnu_ld=yes
19182 else
19183 acl_cv_prog_gnu_ld=no
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19187 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
19188 with_gnu_ld=$acl_cv_prog_gnu_ld
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19193 $as_echo_n "checking for shared library run path origin... " >&6; }
19194 if ${acl_cv_rpath+:} false; then :
19195 $as_echo_n "(cached) " >&6
19196 else
19198 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19199 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19200 . ./conftest.sh
19201 rm -f ./conftest.sh
19202 acl_cv_rpath=done
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19206 $as_echo "$acl_cv_rpath" >&6; }
19207 wl="$acl_cv_wl"
19208 libext="$acl_cv_libext"
19209 shlibext="$acl_cv_shlibext"
19210 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19211 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19212 hardcode_direct="$acl_cv_hardcode_direct"
19213 hardcode_minus_L="$acl_cv_hardcode_minus_L"
19214 # Check whether --enable-rpath was given.
19215 if test "${enable_rpath+set}" = set; then :
19216 enableval=$enable_rpath; :
19217 else
19218 enable_rpath=yes
19223 # Set the 'development' global.
19224 . $srcdir/../bfd/development.sh
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19227 $as_echo_n "checking for ANSI C header files... " >&6; }
19228 if ${ac_cv_header_stdc+:} false; then :
19229 $as_echo_n "(cached) " >&6
19230 else
19231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19232 /* end confdefs.h. */
19233 #include <stdlib.h>
19234 #include <stdarg.h>
19235 #include <string.h>
19236 #include <float.h>
19239 main ()
19243 return 0;
19245 _ACEOF
19246 if ac_fn_c_try_compile "$LINENO"; then :
19247 ac_cv_header_stdc=yes
19248 else
19249 ac_cv_header_stdc=no
19251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19253 if test $ac_cv_header_stdc = yes; then
19254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19256 /* end confdefs.h. */
19257 #include <string.h>
19259 _ACEOF
19260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19261 $EGREP "memchr" >/dev/null 2>&1; then :
19263 else
19264 ac_cv_header_stdc=no
19266 rm -f conftest*
19270 if test $ac_cv_header_stdc = yes; then
19271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19274 #include <stdlib.h>
19276 _ACEOF
19277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19278 $EGREP "free" >/dev/null 2>&1; then :
19280 else
19281 ac_cv_header_stdc=no
19283 rm -f conftest*
19287 if test $ac_cv_header_stdc = yes; then
19288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19289 if test "$cross_compiling" = yes; then :
19291 else
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h. */
19294 #include <ctype.h>
19295 #include <stdlib.h>
19296 #if ((' ' & 0x0FF) == 0x020)
19297 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19298 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19299 #else
19300 # define ISLOWER(c) \
19301 (('a' <= (c) && (c) <= 'i') \
19302 || ('j' <= (c) && (c) <= 'r') \
19303 || ('s' <= (c) && (c) <= 'z'))
19304 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19305 #endif
19307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19309 main ()
19311 int i;
19312 for (i = 0; i < 256; i++)
19313 if (XOR (islower (i), ISLOWER (i))
19314 || toupper (i) != TOUPPER (i))
19315 return 2;
19316 return 0;
19318 _ACEOF
19319 if ac_fn_c_try_run "$LINENO"; then :
19321 else
19322 ac_cv_header_stdc=no
19324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19325 conftest.$ac_objext conftest.beam conftest.$ac_ext
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19331 $as_echo "$ac_cv_header_stdc" >&6; }
19332 if test $ac_cv_header_stdc = yes; then
19334 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19338 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19339 # for constant arguments. Useless!
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19341 $as_echo_n "checking for working alloca.h... " >&6; }
19342 if ${ac_cv_working_alloca_h+:} false; then :
19343 $as_echo_n "(cached) " >&6
19344 else
19345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19346 /* end confdefs.h. */
19347 #include <alloca.h>
19349 main ()
19351 char *p = (char *) alloca (2 * sizeof (int));
19352 if (p) return 0;
19354 return 0;
19356 _ACEOF
19357 if ac_fn_c_try_link "$LINENO"; then :
19358 ac_cv_working_alloca_h=yes
19359 else
19360 ac_cv_working_alloca_h=no
19362 rm -f core conftest.err conftest.$ac_objext \
19363 conftest$ac_exeext conftest.$ac_ext
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19366 $as_echo "$ac_cv_working_alloca_h" >&6; }
19367 if test $ac_cv_working_alloca_h = yes; then
19369 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19374 $as_echo_n "checking for alloca... " >&6; }
19375 if ${ac_cv_func_alloca_works+:} false; then :
19376 $as_echo_n "(cached) " >&6
19377 else
19378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19379 /* end confdefs.h. */
19380 #ifdef __GNUC__
19381 # define alloca __builtin_alloca
19382 #else
19383 # ifdef _MSC_VER
19384 # include <malloc.h>
19385 # define alloca _alloca
19386 # else
19387 # ifdef HAVE_ALLOCA_H
19388 # include <alloca.h>
19389 # else
19390 # ifdef _AIX
19391 #pragma alloca
19392 # else
19393 # ifndef alloca /* predefined by HP cc +Olibcalls */
19394 void *alloca (size_t);
19395 # endif
19396 # endif
19397 # endif
19398 # endif
19399 #endif
19402 main ()
19404 char *p = (char *) alloca (1);
19405 if (p) return 0;
19407 return 0;
19409 _ACEOF
19410 if ac_fn_c_try_link "$LINENO"; then :
19411 ac_cv_func_alloca_works=yes
19412 else
19413 ac_cv_func_alloca_works=no
19415 rm -f core conftest.err conftest.$ac_objext \
19416 conftest$ac_exeext conftest.$ac_ext
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19419 $as_echo "$ac_cv_func_alloca_works" >&6; }
19421 if test $ac_cv_func_alloca_works = yes; then
19423 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19425 else
19426 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19427 # that cause trouble. Some versions do not even contain alloca or
19428 # contain a buggy version. If you still want to use their alloca,
19429 # use ar to extract alloca.o from them instead of compiling alloca.c.
19431 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19433 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19437 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19438 if ${ac_cv_os_cray+:} false; then :
19439 $as_echo_n "(cached) " >&6
19440 else
19441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19443 #if defined CRAY && ! defined CRAY2
19444 webecray
19445 #else
19446 wenotbecray
19447 #endif
19449 _ACEOF
19450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19451 $EGREP "webecray" >/dev/null 2>&1; then :
19452 ac_cv_os_cray=yes
19453 else
19454 ac_cv_os_cray=no
19456 rm -f conftest*
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19460 $as_echo "$ac_cv_os_cray" >&6; }
19461 if test $ac_cv_os_cray = yes; then
19462 for ac_func in _getb67 GETB67 getb67; do
19463 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19464 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19465 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19467 cat >>confdefs.h <<_ACEOF
19468 #define CRAY_STACKSEG_END $ac_func
19469 _ACEOF
19471 break
19474 done
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19478 $as_echo_n "checking stack direction for C alloca... " >&6; }
19479 if ${ac_cv_c_stack_direction+:} false; then :
19480 $as_echo_n "(cached) " >&6
19481 else
19482 if test "$cross_compiling" = yes; then :
19483 ac_cv_c_stack_direction=0
19484 else
19485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19486 /* end confdefs.h. */
19487 $ac_includes_default
19489 find_stack_direction (int *addr, int depth)
19491 int dir, dummy = 0;
19492 if (! addr)
19493 addr = &dummy;
19494 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19495 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19496 return dir + dummy;
19500 main (int argc, char **argv)
19502 return find_stack_direction (0, argc + !argv + 20) < 0;
19504 _ACEOF
19505 if ac_fn_c_try_run "$LINENO"; then :
19506 ac_cv_c_stack_direction=1
19507 else
19508 ac_cv_c_stack_direction=-1
19510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19511 conftest.$ac_objext conftest.beam conftest.$ac_ext
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19516 $as_echo "$ac_cv_c_stack_direction" >&6; }
19517 cat >>confdefs.h <<_ACEOF
19518 #define STACK_DIRECTION $ac_cv_c_stack_direction
19519 _ACEOF
19525 WIN32APILIBS=
19526 case ${host} in
19527 *mingw32*)
19529 $as_echo "#define USE_WIN32API 1" >>confdefs.h
19531 WIN32APILIBS="-lws2_32"
19533 esac
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19537 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19538 if ${am_cv_langinfo_codeset+:} false; then :
19539 $as_echo_n "(cached) " >&6
19540 else
19541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19542 /* end confdefs.h. */
19543 #include <langinfo.h>
19545 main ()
19547 char* cs = nl_langinfo(CODESET);
19549 return 0;
19551 _ACEOF
19552 if ac_fn_c_try_link "$LINENO"; then :
19553 am_cv_langinfo_codeset=yes
19554 else
19555 am_cv_langinfo_codeset=no
19557 rm -f core conftest.err conftest.$ac_objext \
19558 conftest$ac_exeext conftest.$ac_ext
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19562 $as_echo "$am_cv_langinfo_codeset" >&6; }
19563 if test $am_cv_langinfo_codeset = yes; then
19565 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19570 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h
19571 do :
19572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19573 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19574 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19575 cat >>confdefs.h <<_ACEOF
19576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19577 _ACEOF
19581 done
19585 for ac_func in getpagesize
19586 do :
19587 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19588 if test "x$ac_cv_func_getpagesize" = xyes; then :
19589 cat >>confdefs.h <<_ACEOF
19590 #define HAVE_GETPAGESIZE 1
19591 _ACEOF
19594 done
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19597 $as_echo_n "checking for working mmap... " >&6; }
19598 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19599 $as_echo_n "(cached) " >&6
19600 else
19601 if test "$cross_compiling" = yes; then :
19602 ac_cv_func_mmap_fixed_mapped=no
19603 else
19604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605 /* end confdefs.h. */
19606 $ac_includes_default
19607 /* malloc might have been renamed as rpl_malloc. */
19608 #undef malloc
19610 /* Thanks to Mike Haertel and Jim Avera for this test.
19611 Here is a matrix of mmap possibilities:
19612 mmap private not fixed
19613 mmap private fixed at somewhere currently unmapped
19614 mmap private fixed at somewhere already mapped
19615 mmap shared not fixed
19616 mmap shared fixed at somewhere currently unmapped
19617 mmap shared fixed at somewhere already mapped
19618 For private mappings, we should verify that changes cannot be read()
19619 back from the file, nor mmap's back from the file at a different
19620 address. (There have been systems where private was not correctly
19621 implemented like the infamous i386 svr4.0, and systems where the
19622 VM page cache was not coherent with the file system buffer cache
19623 like early versions of FreeBSD and possibly contemporary NetBSD.)
19624 For shared mappings, we should conversely verify that changes get
19625 propagated back to all the places they're supposed to be.
19627 Grep wants private fixed already mapped.
19628 The main things grep needs to know about mmap are:
19629 * does it exist and is it safe to write into the mmap'd area
19630 * how to use it (BSD variants) */
19632 #include <fcntl.h>
19633 #include <sys/mman.h>
19635 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19636 char *malloc ();
19637 #endif
19639 /* This mess was copied from the GNU getpagesize.h. */
19640 #ifndef HAVE_GETPAGESIZE
19641 # ifdef _SC_PAGESIZE
19642 # define getpagesize() sysconf(_SC_PAGESIZE)
19643 # else /* no _SC_PAGESIZE */
19644 # ifdef HAVE_SYS_PARAM_H
19645 # include <sys/param.h>
19646 # ifdef EXEC_PAGESIZE
19647 # define getpagesize() EXEC_PAGESIZE
19648 # else /* no EXEC_PAGESIZE */
19649 # ifdef NBPG
19650 # define getpagesize() NBPG * CLSIZE
19651 # ifndef CLSIZE
19652 # define CLSIZE 1
19653 # endif /* no CLSIZE */
19654 # else /* no NBPG */
19655 # ifdef NBPC
19656 # define getpagesize() NBPC
19657 # else /* no NBPC */
19658 # ifdef PAGESIZE
19659 # define getpagesize() PAGESIZE
19660 # endif /* PAGESIZE */
19661 # endif /* no NBPC */
19662 # endif /* no NBPG */
19663 # endif /* no EXEC_PAGESIZE */
19664 # else /* no HAVE_SYS_PARAM_H */
19665 # define getpagesize() 8192 /* punt totally */
19666 # endif /* no HAVE_SYS_PARAM_H */
19667 # endif /* no _SC_PAGESIZE */
19669 #endif /* no HAVE_GETPAGESIZE */
19672 main ()
19674 char *data, *data2, *data3;
19675 const char *cdata2;
19676 int i, pagesize;
19677 int fd, fd2;
19679 pagesize = getpagesize ();
19681 /* First, make a file with some known garbage in it. */
19682 data = (char *) malloc (pagesize);
19683 if (!data)
19684 return 1;
19685 for (i = 0; i < pagesize; ++i)
19686 *(data + i) = rand ();
19687 umask (0);
19688 fd = creat ("conftest.mmap", 0600);
19689 if (fd < 0)
19690 return 2;
19691 if (write (fd, data, pagesize) != pagesize)
19692 return 3;
19693 close (fd);
19695 /* Next, check that the tail of a page is zero-filled. File must have
19696 non-zero length, otherwise we risk SIGBUS for entire page. */
19697 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19698 if (fd2 < 0)
19699 return 4;
19700 cdata2 = "";
19701 if (write (fd2, cdata2, 1) != 1)
19702 return 5;
19703 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19704 if (data2 == MAP_FAILED)
19705 return 6;
19706 for (i = 0; i < pagesize; ++i)
19707 if (*(data2 + i))
19708 return 7;
19709 close (fd2);
19710 if (munmap (data2, pagesize))
19711 return 8;
19713 /* Next, try to mmap the file at a fixed address which already has
19714 something else allocated at it. If we can, also make sure that
19715 we see the same garbage. */
19716 fd = open ("conftest.mmap", O_RDWR);
19717 if (fd < 0)
19718 return 9;
19719 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19720 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19721 return 10;
19722 for (i = 0; i < pagesize; ++i)
19723 if (*(data + i) != *(data2 + i))
19724 return 11;
19726 /* Finally, make sure that changes to the mapped area do not
19727 percolate back to the file as seen by read(). (This is a bug on
19728 some variants of i386 svr4.0.) */
19729 for (i = 0; i < pagesize; ++i)
19730 *(data2 + i) = *(data2 + i) + 1;
19731 data3 = (char *) malloc (pagesize);
19732 if (!data3)
19733 return 12;
19734 if (read (fd, data3, pagesize) != pagesize)
19735 return 13;
19736 for (i = 0; i < pagesize; ++i)
19737 if (*(data + i) != *(data3 + i))
19738 return 14;
19739 close (fd);
19740 return 0;
19742 _ACEOF
19743 if ac_fn_c_try_run "$LINENO"; then :
19744 ac_cv_func_mmap_fixed_mapped=yes
19745 else
19746 ac_cv_func_mmap_fixed_mapped=no
19748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19749 conftest.$ac_objext conftest.beam conftest.$ac_ext
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19754 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19755 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19757 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19760 rm -f conftest.mmap conftest.txt
19762 for ac_header in vfork.h
19763 do :
19764 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19765 if test "x$ac_cv_header_vfork_h" = xyes; then :
19766 cat >>confdefs.h <<_ACEOF
19767 #define HAVE_VFORK_H 1
19768 _ACEOF
19772 done
19774 for ac_func in fork vfork
19775 do :
19776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19778 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19779 cat >>confdefs.h <<_ACEOF
19780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19781 _ACEOF
19784 done
19786 if test "x$ac_cv_func_fork" = xyes; then
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19788 $as_echo_n "checking for working fork... " >&6; }
19789 if ${ac_cv_func_fork_works+:} false; then :
19790 $as_echo_n "(cached) " >&6
19791 else
19792 if test "$cross_compiling" = yes; then :
19793 ac_cv_func_fork_works=cross
19794 else
19795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796 /* end confdefs.h. */
19797 $ac_includes_default
19799 main ()
19802 /* By Ruediger Kuhlmann. */
19803 return fork () < 0;
19806 return 0;
19808 _ACEOF
19809 if ac_fn_c_try_run "$LINENO"; then :
19810 ac_cv_func_fork_works=yes
19811 else
19812 ac_cv_func_fork_works=no
19814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19815 conftest.$ac_objext conftest.beam conftest.$ac_ext
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19820 $as_echo "$ac_cv_func_fork_works" >&6; }
19822 else
19823 ac_cv_func_fork_works=$ac_cv_func_fork
19825 if test "x$ac_cv_func_fork_works" = xcross; then
19826 case $host in
19827 *-*-amigaos* | *-*-msdosdjgpp*)
19828 # Override, as these systems have only a dummy fork() stub
19829 ac_cv_func_fork_works=no
19832 ac_cv_func_fork_works=yes
19834 esac
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19836 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19838 ac_cv_func_vfork_works=$ac_cv_func_vfork
19839 if test "x$ac_cv_func_vfork" = xyes; then
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19841 $as_echo_n "checking for working vfork... " >&6; }
19842 if ${ac_cv_func_vfork_works+:} false; then :
19843 $as_echo_n "(cached) " >&6
19844 else
19845 if test "$cross_compiling" = yes; then :
19846 ac_cv_func_vfork_works=cross
19847 else
19848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19849 /* end confdefs.h. */
19850 /* Thanks to Paul Eggert for this test. */
19851 $ac_includes_default
19852 #include <sys/wait.h>
19853 #ifdef HAVE_VFORK_H
19854 # include <vfork.h>
19855 #endif
19856 /* On some sparc systems, changes by the child to local and incoming
19857 argument registers are propagated back to the parent. The compiler
19858 is told about this with #include <vfork.h>, but some compilers
19859 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19860 static variable whose address is put into a register that is
19861 clobbered by the vfork. */
19862 static void
19863 #ifdef __cplusplus
19864 sparc_address_test (int arg)
19865 # else
19866 sparc_address_test (arg) int arg;
19867 #endif
19869 static pid_t child;
19870 if (!child) {
19871 child = vfork ();
19872 if (child < 0) {
19873 perror ("vfork");
19874 _exit(2);
19876 if (!child) {
19877 arg = getpid();
19878 write(-1, "", 0);
19879 _exit (arg);
19885 main ()
19887 pid_t parent = getpid ();
19888 pid_t child;
19890 sparc_address_test (0);
19892 child = vfork ();
19894 if (child == 0) {
19895 /* Here is another test for sparc vfork register problems. This
19896 test uses lots of local variables, at least as many local
19897 variables as main has allocated so far including compiler
19898 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19899 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19900 reuse the register of parent for one of the local variables,
19901 since it will think that parent can't possibly be used any more
19902 in this routine. Assigning to the local variable will thus
19903 munge parent in the parent process. */
19904 pid_t
19905 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19906 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19907 /* Convince the compiler that p..p7 are live; otherwise, it might
19908 use the same hardware register for all 8 local variables. */
19909 if (p != p1 || p != p2 || p != p3 || p != p4
19910 || p != p5 || p != p6 || p != p7)
19911 _exit(1);
19913 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19914 from child file descriptors. If the child closes a descriptor
19915 before it execs or exits, this munges the parent's descriptor
19916 as well. Test for this by closing stdout in the child. */
19917 _exit(close(fileno(stdout)) != 0);
19918 } else {
19919 int status;
19920 struct stat st;
19922 while (wait(&status) != child)
19924 return (
19925 /* Was there some problem with vforking? */
19926 child < 0
19928 /* Did the child fail? (This shouldn't happen.) */
19929 || status
19931 /* Did the vfork/compiler bug occur? */
19932 || parent != getpid()
19934 /* Did the file descriptor bug occur? */
19935 || fstat(fileno(stdout), &st) != 0
19939 _ACEOF
19940 if ac_fn_c_try_run "$LINENO"; then :
19941 ac_cv_func_vfork_works=yes
19942 else
19943 ac_cv_func_vfork_works=no
19945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19946 conftest.$ac_objext conftest.beam conftest.$ac_ext
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19951 $as_echo "$ac_cv_func_vfork_works" >&6; }
19954 if test "x$ac_cv_func_fork_works" = xcross; then
19955 ac_cv_func_vfork_works=$ac_cv_func_vfork
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19957 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19960 if test "x$ac_cv_func_vfork_works" = xyes; then
19962 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19964 else
19966 $as_echo "#define vfork fork" >>confdefs.h
19969 if test "x$ac_cv_func_fork_works" = xyes; then
19971 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19975 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
19977 $as_echo_n "checking for library containing socketpair... " >&6; }
19978 if ${ac_cv_search_socketpair+:} false; then :
19979 $as_echo_n "(cached) " >&6
19980 else
19981 ac_func_search_save_LIBS=$LIBS
19982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h. */
19985 /* Override any GCC internal prototype to avoid an error.
19986 Use char because int might match the return type of a GCC
19987 builtin and then its argument prototype would still apply. */
19988 #ifdef __cplusplus
19989 extern "C"
19990 #endif
19991 char socketpair ();
19993 main ()
19995 return socketpair ();
19997 return 0;
19999 _ACEOF
20000 for ac_lib in '' socket; do
20001 if test -z "$ac_lib"; then
20002 ac_res="none required"
20003 else
20004 ac_res=-l$ac_lib
20005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20007 if ac_fn_c_try_link "$LINENO"; then :
20008 ac_cv_search_socketpair=$ac_res
20010 rm -f core conftest.err conftest.$ac_objext \
20011 conftest$ac_exeext
20012 if ${ac_cv_search_socketpair+:} false; then :
20013 break
20015 done
20016 if ${ac_cv_search_socketpair+:} false; then :
20018 else
20019 ac_cv_search_socketpair=no
20021 rm conftest.$ac_ext
20022 LIBS=$ac_func_search_save_LIBS
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
20025 $as_echo "$ac_cv_search_socketpair" >&6; }
20026 ac_res=$ac_cv_search_socketpair
20027 if test "$ac_res" != no; then :
20028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20032 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
20033 ptrace64 sbrk setns sigaltstack sigprocmask \
20034 setpgid setpgrp getrusage getauxval sigtimedwait
20035 do :
20036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20037 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20038 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20039 cat >>confdefs.h <<_ACEOF
20040 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20041 _ACEOF
20044 done
20047 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
20048 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
20049 # only in linux/personality.h.
20050 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
20052 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
20053 ac_have_decl=1
20054 else
20055 ac_have_decl=0
20058 cat >>confdefs.h <<_ACEOF
20059 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
20060 _ACEOF
20063 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
20064 if test "x$ac_cv_have_decl_strstr" = xyes; then :
20065 ac_have_decl=1
20066 else
20067 ac_have_decl=0
20070 cat >>confdefs.h <<_ACEOF
20071 #define HAVE_DECL_STRSTR $ac_have_decl
20072 _ACEOF
20075 # ----------------------- #
20076 # Checks for structures. #
20077 # ----------------------- #
20079 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
20080 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
20082 cat >>confdefs.h <<_ACEOF
20083 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20084 _ACEOF
20088 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
20089 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
20091 cat >>confdefs.h <<_ACEOF
20092 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20093 _ACEOF
20099 # On FreeBSD we need libutil for the kinfo_get* functions. On
20100 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
20101 # Figure out which one to use.
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
20103 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
20104 if ${ac_cv_search_kinfo_getfile+:} false; then :
20105 $as_echo_n "(cached) " >&6
20106 else
20107 ac_func_search_save_LIBS=$LIBS
20108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h. */
20111 /* Override any GCC internal prototype to avoid an error.
20112 Use char because int might match the return type of a GCC
20113 builtin and then its argument prototype would still apply. */
20114 #ifdef __cplusplus
20115 extern "C"
20116 #endif
20117 char kinfo_getfile ();
20119 main ()
20121 return kinfo_getfile ();
20123 return 0;
20125 _ACEOF
20126 for ac_lib in '' util util-freebsd; do
20127 if test -z "$ac_lib"; then
20128 ac_res="none required"
20129 else
20130 ac_res=-l$ac_lib
20131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20133 if ac_fn_c_try_link "$LINENO"; then :
20134 ac_cv_search_kinfo_getfile=$ac_res
20136 rm -f core conftest.err conftest.$ac_objext \
20137 conftest$ac_exeext
20138 if ${ac_cv_search_kinfo_getfile+:} false; then :
20139 break
20141 done
20142 if ${ac_cv_search_kinfo_getfile+:} false; then :
20144 else
20145 ac_cv_search_kinfo_getfile=no
20147 rm conftest.$ac_ext
20148 LIBS=$ac_func_search_save_LIBS
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
20151 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
20152 ac_res=$ac_cv_search_kinfo_getfile
20153 if test "$ac_res" != no; then :
20154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20159 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
20160 for ac_func in kinfo_getfile
20161 do :
20162 ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
20163 if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
20164 cat >>confdefs.h <<_ACEOF
20165 #define HAVE_KINFO_GETFILE 1
20166 _ACEOF
20169 done
20172 # ----------------------- #
20173 # Check for threading. #
20174 # ----------------------- #
20176 # Check whether --enable-threading was given.
20177 if test "${enable_threading+set}" = set; then :
20178 enableval=$enable_threading; case "$enableval" in
20179 yes) want_threading=yes ;;
20180 no) want_threading=no ;;
20181 *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
20182 esac
20183 else
20184 want_threading=yes
20188 # Check for std::thread. This does not work on some platforms, like
20189 # mingw and DJGPP.
20190 ac_ext=cpp
20191 ac_cpp='$CXXCPP $CPPFLAGS'
20192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20200 ac_ext=c
20201 ac_cpp='$CPP $CPPFLAGS'
20202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20206 ax_pthread_ok=no
20208 # We used to check for pthread.h first, but this fails if pthread.h
20209 # requires special compiler flags (e.g. on Tru64 or Sequent).
20210 # It gets checked for in the link test anyway.
20212 # First of all, check if the user has set any of the PTHREAD_LIBS,
20213 # etcetera environment variables, and if threads linking works using
20214 # them:
20215 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
20216 ax_pthread_save_CC="$CC"
20217 ax_pthread_save_CFLAGS="$CFLAGS"
20218 ax_pthread_save_LIBS="$LIBS"
20219 if test "x$PTHREAD_CC" != "x"; then :
20220 CC="$PTHREAD_CC"
20222 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20223 LIBS="$PTHREAD_LIBS $LIBS"
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
20225 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
20226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20227 /* end confdefs.h. */
20229 /* Override any GCC internal prototype to avoid an error.
20230 Use char because int might match the return type of a GCC
20231 builtin and then its argument prototype would still apply. */
20232 #ifdef __cplusplus
20233 extern "C"
20234 #endif
20235 char pthread_join ();
20237 main ()
20239 return pthread_join ();
20241 return 0;
20243 _ACEOF
20244 if ac_fn_c_try_link "$LINENO"; then :
20245 ax_pthread_ok=yes
20247 rm -f core conftest.err conftest.$ac_objext \
20248 conftest$ac_exeext conftest.$ac_ext
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20250 $as_echo "$ax_pthread_ok" >&6; }
20251 if test "x$ax_pthread_ok" = "xno"; then
20252 PTHREAD_LIBS=""
20253 PTHREAD_CFLAGS=""
20255 CC="$ax_pthread_save_CC"
20256 CFLAGS="$ax_pthread_save_CFLAGS"
20257 LIBS="$ax_pthread_save_LIBS"
20260 # We must check for the threads library under a number of different
20261 # names; the ordering is very important because some systems
20262 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20263 # libraries is broken (non-POSIX).
20265 # Create a list of thread flags to try. Items starting with a "-" are
20266 # C compiler flags, and other items are library names, except for "none"
20267 # which indicates that we try without any flags at all, and "pthread-config"
20268 # which is a program returning the flags for the Pth emulation library.
20270 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20272 # The ordering *is* (sometimes) important. Some notes on the
20273 # individual items follow:
20275 # pthreads: AIX (must check this before -lpthread)
20276 # none: in case threads are in libc; should be tried before -Kthread and
20277 # other compiler flags to prevent continual compiler warnings
20278 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20279 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
20280 # (Note: HP C rejects this with "bad form for `-t' option")
20281 # -pthreads: Solaris/gcc (Note: HP C also rejects)
20282 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20283 # doesn't hurt to check since this sometimes defines pthreads and
20284 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
20285 # is present but should not be used directly; and before -mthreads,
20286 # because the compiler interprets this as "-mt" + "-hreads")
20287 # -mthreads: Mingw32/gcc, Lynx/gcc
20288 # pthread: Linux, etcetera
20289 # --thread-safe: KAI C++
20290 # pthread-config: use pthread-config program (for GNU Pth library)
20292 case $host_os in
20294 freebsd*)
20296 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20297 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20299 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
20302 hpux*)
20304 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
20305 # multi-threading and also sets -lpthread."
20307 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
20310 openedition*)
20312 # IBM z/OS requires a feature-test macro to be defined in order to
20313 # enable POSIX threads at all, so give the user a hint if this is
20314 # not set. (We don't define these ourselves, as they can affect
20315 # other portions of the system API in unpredictable ways.)
20317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20318 /* end confdefs.h. */
20320 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20321 AX_PTHREAD_ZOS_MISSING
20322 # endif
20324 _ACEOF
20325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20326 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20328 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20330 rm -f conftest*
20334 solaris*)
20336 # On Solaris (at least, for some versions), libc contains stubbed
20337 # (non-functional) versions of the pthreads routines, so link-based
20338 # tests will erroneously succeed. (N.B.: The stubs are missing
20339 # pthread_cleanup_push, or rather a function called by this macro,
20340 # so we could check for that, but who knows whether they'll stub
20341 # that too in a future libc.) So we'll check first for the
20342 # standard Solaris way of linking pthreads (-mt -lpthread).
20344 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
20346 esac
20348 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20350 if test "x$GCC" = "xyes"; then :
20351 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
20354 # The presence of a feature test macro requesting re-entrant function
20355 # definitions is, on some systems, a strong hint that pthreads support is
20356 # correctly enabled
20358 case $host_os in
20359 darwin* | hpux* | linux* | osf* | solaris*)
20360 ax_pthread_check_macro="_REENTRANT"
20363 aix*)
20364 ax_pthread_check_macro="_THREAD_SAFE"
20368 ax_pthread_check_macro="--"
20370 esac
20371 if test "x$ax_pthread_check_macro" = "x--"; then :
20372 ax_pthread_check_cond=0
20373 else
20374 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
20377 # Are we compiling with Clang?
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20380 $as_echo_n "checking whether $CC is Clang... " >&6; }
20381 if ${ax_cv_PTHREAD_CLANG+:} false; then :
20382 $as_echo_n "(cached) " >&6
20383 else
20384 ax_cv_PTHREAD_CLANG=no
20385 # Note that Autoconf sets GCC=yes for Clang as well as GCC
20386 if test "x$GCC" = "xyes"; then
20387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20388 /* end confdefs.h. */
20389 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20390 # if defined(__clang__) && defined(__llvm__)
20391 AX_PTHREAD_CC_IS_CLANG
20392 # endif
20394 _ACEOF
20395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20396 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
20397 ax_cv_PTHREAD_CLANG=yes
20399 rm -f conftest*
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20405 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20406 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
20408 ax_pthread_clang_warning=no
20410 # Clang needs special handling, because older versions handle the -pthread
20411 # option in a rather... idiosyncratic way
20413 if test "x$ax_pthread_clang" = "xyes"; then
20415 # Clang takes -pthread; it has never supported any other flag
20417 # (Note 1: This will need to be revisited if a system that Clang
20418 # supports has POSIX threads in a separate library. This tends not
20419 # to be the way of modern systems, but it's conceivable.)
20421 # (Note 2: On some systems, notably Darwin, -pthread is not needed
20422 # to get POSIX threads support; the API is always present and
20423 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
20424 # -pthread does define _REENTRANT, and while the Darwin headers
20425 # ignore this macro, third-party headers might not.)
20427 PTHREAD_CFLAGS="-pthread"
20428 PTHREAD_LIBS=
20430 ax_pthread_ok=yes
20432 # However, older versions of Clang make a point of warning the user
20433 # that, in an invocation where only linking and no compilation is
20434 # taking place, the -pthread option has no effect ("argument unused
20435 # during compilation"). They expect -pthread to be passed in only
20436 # when source code is being compiled.
20438 # Problem is, this is at odds with the way Automake and most other
20439 # C build frameworks function, which is that the same flags used in
20440 # compilation (CFLAGS) are also used in linking. Many systems
20441 # supported by AX_PTHREAD require exactly this for POSIX threads
20442 # support, and in fact it is often not straightforward to specify a
20443 # flag that is used only in the compilation phase and not in
20444 # linking. Such a scenario is extremely rare in practice.
20446 # Even though use of the -pthread flag in linking would only print
20447 # a warning, this can be a nuisance for well-run software projects
20448 # that build with -Werror. So if the active version of Clang has
20449 # this misfeature, we search for an option to squash it.
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20452 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20453 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
20454 $as_echo_n "(cached) " >&6
20455 else
20456 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20457 # Create an alternate version of $ac_link that compiles and
20458 # links in two steps (.c -> .o, .o -> exe) instead of one
20459 # (.c -> exe), because the warning occurs only in the second
20460 # step
20461 ax_pthread_save_ac_link="$ac_link"
20462 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20463 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20464 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20465 ax_pthread_save_CFLAGS="$CFLAGS"
20466 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20467 if test "x$ax_pthread_try" = "xunknown"; then :
20468 break
20470 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20471 ac_link="$ax_pthread_save_ac_link"
20472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20473 /* end confdefs.h. */
20474 int main(void){return 0;}
20475 _ACEOF
20476 if ac_fn_c_try_link "$LINENO"; then :
20477 ac_link="$ax_pthread_2step_ac_link"
20478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h. */
20480 int main(void){return 0;}
20481 _ACEOF
20482 if ac_fn_c_try_link "$LINENO"; then :
20483 break
20485 rm -f core conftest.err conftest.$ac_objext \
20486 conftest$ac_exeext conftest.$ac_ext
20489 rm -f core conftest.err conftest.$ac_objext \
20490 conftest$ac_exeext conftest.$ac_ext
20491 done
20492 ac_link="$ax_pthread_save_ac_link"
20493 CFLAGS="$ax_pthread_save_CFLAGS"
20494 if test "x$ax_pthread_try" = "x"; then :
20495 ax_pthread_try=no
20497 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20501 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20503 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20504 no | unknown) ;;
20505 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20506 esac
20508 fi # $ax_pthread_clang = yes
20510 if test "x$ax_pthread_ok" = "xno"; then
20511 for ax_pthread_try_flag in $ax_pthread_flags; do
20513 case $ax_pthread_try_flag in
20514 none)
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20516 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20519 -mt,pthread)
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20521 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20522 PTHREAD_CFLAGS="-mt"
20523 PTHREAD_LIBS="-lpthread"
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20528 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20529 PTHREAD_CFLAGS="$ax_pthread_try_flag"
20532 pthread-config)
20533 # Extract the first word of "pthread-config", so it can be a program name with args.
20534 set dummy pthread-config; ac_word=$2
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20536 $as_echo_n "checking for $ac_word... " >&6; }
20537 if ${ac_cv_prog_ax_pthread_config+:} false; then :
20538 $as_echo_n "(cached) " >&6
20539 else
20540 if test -n "$ax_pthread_config"; then
20541 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20542 else
20543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20544 for as_dir in $PATH
20546 IFS=$as_save_IFS
20547 test -z "$as_dir" && as_dir=.
20548 for ac_exec_ext in '' $ac_executable_extensions; do
20549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20550 ac_cv_prog_ax_pthread_config="yes"
20551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20552 break 2
20554 done
20555 done
20556 IFS=$as_save_IFS
20558 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20561 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20562 if test -n "$ax_pthread_config"; then
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20564 $as_echo "$ax_pthread_config" >&6; }
20565 else
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20567 $as_echo "no" >&6; }
20571 if test "x$ax_pthread_config" = "xno"; then :
20572 continue
20574 PTHREAD_CFLAGS="`pthread-config --cflags`"
20575 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20580 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20581 PTHREAD_LIBS="-l$ax_pthread_try_flag"
20583 esac
20585 ax_pthread_save_CFLAGS="$CFLAGS"
20586 ax_pthread_save_LIBS="$LIBS"
20587 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20588 LIBS="$PTHREAD_LIBS $LIBS"
20590 # Check for various functions. We must include pthread.h,
20591 # since some functions may be macros. (On the Sequent, we
20592 # need a special flag -Kthread to make this header compile.)
20593 # We check for pthread_join because it is in -lpthread on IRIX
20594 # while pthread_create is in libc. We check for pthread_attr_init
20595 # due to DEC craziness with -lpthreads. We check for
20596 # pthread_cleanup_push because it is one of the few pthread
20597 # functions on Solaris that doesn't have a non-functional libc stub.
20598 # We try pthread_create on general principles.
20600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20601 /* end confdefs.h. */
20602 #include <pthread.h>
20603 # if $ax_pthread_check_cond
20604 # error "$ax_pthread_check_macro must be defined"
20605 # endif
20606 static void routine(void *a) { a = 0; }
20607 static void *start_routine(void *a) { return a; }
20609 main ()
20611 pthread_t th; pthread_attr_t attr;
20612 pthread_create(&th, 0, start_routine, 0);
20613 pthread_join(th, 0);
20614 pthread_attr_init(&attr);
20615 pthread_cleanup_push(routine, 0);
20616 pthread_cleanup_pop(0) /* ; */
20618 return 0;
20620 _ACEOF
20621 if ac_fn_c_try_link "$LINENO"; then :
20622 ax_pthread_ok=yes
20624 rm -f core conftest.err conftest.$ac_objext \
20625 conftest$ac_exeext conftest.$ac_ext
20627 CFLAGS="$ax_pthread_save_CFLAGS"
20628 LIBS="$ax_pthread_save_LIBS"
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20631 $as_echo "$ax_pthread_ok" >&6; }
20632 if test "x$ax_pthread_ok" = "xyes"; then :
20633 break
20636 PTHREAD_LIBS=""
20637 PTHREAD_CFLAGS=""
20638 done
20641 # Various other checks:
20642 if test "x$ax_pthread_ok" = "xyes"; then
20643 ax_pthread_save_CFLAGS="$CFLAGS"
20644 ax_pthread_save_LIBS="$LIBS"
20645 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20646 LIBS="$PTHREAD_LIBS $LIBS"
20648 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20650 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20651 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
20652 $as_echo_n "(cached) " >&6
20653 else
20654 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20655 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20657 /* end confdefs.h. */
20658 #include <pthread.h>
20660 main ()
20662 int attr = $ax_pthread_attr; return attr /* ; */
20664 return 0;
20666 _ACEOF
20667 if ac_fn_c_try_link "$LINENO"; then :
20668 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20670 rm -f core conftest.err conftest.$ac_objext \
20671 conftest$ac_exeext conftest.$ac_ext
20672 done
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20676 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20677 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20678 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20679 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20681 cat >>confdefs.h <<_ACEOF
20682 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20683 _ACEOF
20685 ax_pthread_joinable_attr_defined=yes
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20690 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20691 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
20692 $as_echo_n "(cached) " >&6
20693 else
20694 ax_cv_PTHREAD_SPECIAL_FLAGS=no
20695 case $host_os in
20696 solaris*)
20697 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20699 esac
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20703 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20704 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20705 test "x$ax_pthread_special_flags_added" != "xyes"; then :
20706 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20707 ax_pthread_special_flags_added=yes
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20711 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20712 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
20713 $as_echo_n "(cached) " >&6
20714 else
20715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h. */
20717 #include <pthread.h>
20719 main ()
20721 int i = PTHREAD_PRIO_INHERIT;
20723 return 0;
20725 _ACEOF
20726 if ac_fn_c_try_link "$LINENO"; then :
20727 ax_cv_PTHREAD_PRIO_INHERIT=yes
20728 else
20729 ax_cv_PTHREAD_PRIO_INHERIT=no
20731 rm -f core conftest.err conftest.$ac_objext \
20732 conftest$ac_exeext conftest.$ac_ext
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20736 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20737 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20738 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20740 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20742 ax_pthread_prio_inherit_defined=yes
20746 CFLAGS="$ax_pthread_save_CFLAGS"
20747 LIBS="$ax_pthread_save_LIBS"
20749 # More AIX lossage: compile with *_r variant
20750 if test "x$GCC" != "xyes"; then
20751 case $host_os in
20752 aix*)
20753 case "x/$CC" in #(
20754 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20755 #handle absolute path differently from PATH based program lookup
20756 case "x$CC" in #(
20757 x/*) :
20758 if as_fn_executable_p ${CC}_r; then :
20759 PTHREAD_CC="${CC}_r"
20760 fi ;; #(
20761 *) :
20762 for ac_prog in ${CC}_r
20764 # Extract the first word of "$ac_prog", so it can be a program name with args.
20765 set dummy $ac_prog; ac_word=$2
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20767 $as_echo_n "checking for $ac_word... " >&6; }
20768 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20769 $as_echo_n "(cached) " >&6
20770 else
20771 if test -n "$PTHREAD_CC"; then
20772 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20773 else
20774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20775 for as_dir in $PATH
20777 IFS=$as_save_IFS
20778 test -z "$as_dir" && as_dir=.
20779 for ac_exec_ext in '' $ac_executable_extensions; do
20780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20781 ac_cv_prog_PTHREAD_CC="$ac_prog"
20782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20783 break 2
20785 done
20786 done
20787 IFS=$as_save_IFS
20791 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20792 if test -n "$PTHREAD_CC"; then
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20794 $as_echo "$PTHREAD_CC" >&6; }
20795 else
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20797 $as_echo "no" >&6; }
20801 test -n "$PTHREAD_CC" && break
20802 done
20803 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20805 esac ;; #(
20806 *) :
20808 esac
20810 esac
20814 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20820 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20821 if test "x$ax_pthread_ok" = "xyes"; then
20822 threads=yes
20824 else
20825 ax_pthread_ok=no
20826 threads=no
20828 ac_ext=cpp
20829 ac_cpp='$CXXCPP $CPPFLAGS'
20830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20835 save_LIBS="$LIBS"
20836 LIBS="$PTHREAD_LIBS $LIBS"
20837 save_CXXFLAGS="$CXXFLAGS"
20838 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
20840 $as_echo_n "checking for std::thread... " >&6; }
20841 if ${gdb_cv_cxx_std_thread+:} false; then :
20842 $as_echo_n "(cached) " >&6
20843 else
20844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20845 /* end confdefs.h. */
20846 #if defined (__MINGW32__) || defined (__CYGWIN__)
20847 # ifdef _WIN32_WINNT
20848 # if _WIN32_WINNT < 0x0501
20849 # undef _WIN32_WINNT
20850 # define _WIN32_WINNT 0x0501
20851 # endif
20852 # else
20853 # define _WIN32_WINNT 0x0501
20854 # endif
20855 #endif /* __MINGW32__ || __CYGWIN__ */
20856 #include <thread>
20857 void callback() { }
20859 main ()
20861 std::thread t(callback);
20863 return 0;
20865 _ACEOF
20866 if ac_fn_cxx_try_compile "$LINENO"; then :
20867 gdb_cv_cxx_std_thread=yes
20868 else
20869 gdb_cv_cxx_std_thread=no
20871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
20874 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
20876 if test "$threads" = "yes"; then
20877 # This check must be here, while LIBS includes any necessary
20878 # threading library.
20879 for ac_func in pthread_sigmask pthread_setname_np
20880 do :
20881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20882 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
20883 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20884 cat >>confdefs.h <<_ACEOF
20885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20886 _ACEOF
20889 done
20892 LIBS="$save_LIBS"
20893 CXXFLAGS="$save_CXXFLAGS"
20895 if test "$want_threading" = "yes"; then
20896 if test "$gdb_cv_cxx_std_thread" = "yes"; then
20898 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
20902 ac_ext=c
20903 ac_cpp='$CPP $CPPFLAGS'
20904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
20910 $as_echo_n "checking for sigsetjmp... " >&6; }
20911 if ${gdb_cv_func_sigsetjmp+:} false; then :
20912 $as_echo_n "(cached) " >&6
20913 else
20914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20915 /* end confdefs.h. */
20916 #include <setjmp.h>
20918 main ()
20920 sigjmp_buf env;
20921 while (! sigsetjmp (env, 1))
20922 siglongjmp (env, 1);
20925 return 0;
20927 _ACEOF
20928 if ac_fn_c_try_compile "$LINENO"; then :
20929 gdb_cv_func_sigsetjmp=yes
20930 else
20931 gdb_cv_func_sigsetjmp=no
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
20938 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
20939 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
20941 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
20946 # Check whether --with-intel_pt was given.
20947 if test "${with_intel_pt+set}" = set; then :
20948 withval=$with_intel_pt;
20949 else
20950 with_intel_pt=auto
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
20954 $as_echo_n "checking whether to use intel pt... " >&6; }
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
20956 $as_echo "$with_intel_pt" >&6; }
20958 if test "${with_intel_pt}" = no; then
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
20960 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
20961 HAVE_LIBIPT=no
20962 else
20963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20964 /* end confdefs.h. */
20966 #include <linux/perf_event.h>
20967 #ifndef PERF_ATTR_SIZE_VER5
20968 # error
20969 #endif
20971 _ACEOF
20972 if ac_fn_c_try_cpp "$LINENO"; then :
20973 perf_event=yes
20974 else
20975 perf_event=no
20977 rm -f conftest.err conftest.i conftest.$ac_ext
20978 if test "$perf_event" != yes; then
20979 if test "$with_intel_pt" = yes; then
20980 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
20981 else
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
20983 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
20995 use_additional=yes
20997 acl_save_prefix="$prefix"
20998 prefix="$acl_final_prefix"
20999 acl_save_exec_prefix="$exec_prefix"
21000 exec_prefix="$acl_final_exec_prefix"
21002 eval additional_includedir=\"$includedir\"
21003 eval additional_libdir=\"$libdir\"
21005 exec_prefix="$acl_save_exec_prefix"
21006 prefix="$acl_save_prefix"
21009 # Check whether --with-libipt-prefix was given.
21010 if test "${with_libipt_prefix+set}" = set; then :
21011 withval=$with_libipt_prefix;
21012 if test "X$withval" = "Xno"; then
21013 use_additional=no
21014 else
21015 if test "X$withval" = "X"; then
21017 acl_save_prefix="$prefix"
21018 prefix="$acl_final_prefix"
21019 acl_save_exec_prefix="$exec_prefix"
21020 exec_prefix="$acl_final_exec_prefix"
21022 eval additional_includedir=\"$includedir\"
21023 eval additional_libdir=\"$libdir\"
21025 exec_prefix="$acl_save_exec_prefix"
21026 prefix="$acl_save_prefix"
21028 else
21029 additional_includedir="$withval/include"
21030 additional_libdir="$withval/lib"
21037 # Check whether --with-libipt-type was given.
21038 if test "${with_libipt_type+set}" = set; then :
21039 withval=$with_libipt_type; with_libipt_type=$withval
21040 else
21041 with_libipt_type=auto
21044 lib_type=`eval echo \$with_libipt_type`
21046 LIBIPT=
21047 LTLIBIPT=
21048 INCIPT=
21049 rpathdirs=
21050 ltrpathdirs=
21051 names_already_handled=
21052 names_next_round='ipt '
21053 while test -n "$names_next_round"; do
21054 names_this_round="$names_next_round"
21055 names_next_round=
21056 for name in $names_this_round; do
21057 already_handled=
21058 for n in $names_already_handled; do
21059 if test "$n" = "$name"; then
21060 already_handled=yes
21061 break
21063 done
21064 if test -z "$already_handled"; then
21065 names_already_handled="$names_already_handled $name"
21066 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21067 eval value=\"\$HAVE_LIB$uppername\"
21068 if test -n "$value"; then
21069 if test "$value" = yes; then
21070 eval value=\"\$LIB$uppername\"
21071 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
21072 eval value=\"\$LTLIB$uppername\"
21073 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
21074 else
21077 else
21078 found_dir=
21079 found_la=
21080 found_so=
21081 found_a=
21082 if test $use_additional = yes; then
21083 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21084 found_dir="$additional_libdir"
21085 found_so="$additional_libdir/lib$name.$shlibext"
21086 if test -f "$additional_libdir/lib$name.la"; then
21087 found_la="$additional_libdir/lib$name.la"
21089 elif test x$lib_type != xshared; then
21090 if test -f "$additional_libdir/lib$name.$libext"; then
21091 found_dir="$additional_libdir"
21092 found_a="$additional_libdir/lib$name.$libext"
21093 if test -f "$additional_libdir/lib$name.la"; then
21094 found_la="$additional_libdir/lib$name.la"
21099 if test "X$found_dir" = "X"; then
21100 for x in $LDFLAGS $LTLIBIPT; do
21102 acl_save_prefix="$prefix"
21103 prefix="$acl_final_prefix"
21104 acl_save_exec_prefix="$exec_prefix"
21105 exec_prefix="$acl_final_exec_prefix"
21106 eval x=\"$x\"
21107 exec_prefix="$acl_save_exec_prefix"
21108 prefix="$acl_save_prefix"
21110 case "$x" in
21111 -L*)
21112 dir=`echo "X$x" | sed -e 's/^X-L//'`
21113 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21114 found_dir="$dir"
21115 found_so="$dir/lib$name.$shlibext"
21116 if test -f "$dir/lib$name.la"; then
21117 found_la="$dir/lib$name.la"
21119 elif test x$lib_type != xshared; then
21120 if test -f "$dir/lib$name.$libext"; then
21121 found_dir="$dir"
21122 found_a="$dir/lib$name.$libext"
21123 if test -f "$dir/lib$name.la"; then
21124 found_la="$dir/lib$name.la"
21129 esac
21130 if test "X$found_dir" != "X"; then
21131 break
21133 done
21135 if test "X$found_dir" != "X"; then
21136 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
21137 if test "X$found_so" != "X"; then
21138 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21139 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
21140 else
21141 haveit=
21142 for x in $ltrpathdirs; do
21143 if test "X$x" = "X$found_dir"; then
21144 haveit=yes
21145 break
21147 done
21148 if test -z "$haveit"; then
21149 ltrpathdirs="$ltrpathdirs $found_dir"
21151 if test "$hardcode_direct" = yes; then
21152 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
21153 else
21154 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21155 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
21156 haveit=
21157 for x in $rpathdirs; do
21158 if test "X$x" = "X$found_dir"; then
21159 haveit=yes
21160 break
21162 done
21163 if test -z "$haveit"; then
21164 rpathdirs="$rpathdirs $found_dir"
21166 else
21167 haveit=
21168 for x in $LDFLAGS $LIBIPT; do
21170 acl_save_prefix="$prefix"
21171 prefix="$acl_final_prefix"
21172 acl_save_exec_prefix="$exec_prefix"
21173 exec_prefix="$acl_final_exec_prefix"
21174 eval x=\"$x\"
21175 exec_prefix="$acl_save_exec_prefix"
21176 prefix="$acl_save_prefix"
21178 if test "X$x" = "X-L$found_dir"; then
21179 haveit=yes
21180 break
21182 done
21183 if test -z "$haveit"; then
21184 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
21186 if test "$hardcode_minus_L" != no; then
21187 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
21188 else
21189 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
21194 else
21195 if test "X$found_a" != "X"; then
21196 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
21197 else
21198 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
21201 additional_includedir=
21202 case "$found_dir" in
21203 */lib | */lib/)
21204 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21205 additional_includedir="$basedir/include"
21207 esac
21208 if test "X$additional_includedir" != "X"; then
21209 if test "X$additional_includedir" != "X/usr/include"; then
21210 haveit=
21211 if test "X$additional_includedir" = "X/usr/local/include"; then
21212 if test -n "$GCC"; then
21213 case $host_os in
21214 linux*) haveit=yes;;
21215 esac
21218 if test -z "$haveit"; then
21219 for x in $CPPFLAGS $INCIPT; do
21221 acl_save_prefix="$prefix"
21222 prefix="$acl_final_prefix"
21223 acl_save_exec_prefix="$exec_prefix"
21224 exec_prefix="$acl_final_exec_prefix"
21225 eval x=\"$x\"
21226 exec_prefix="$acl_save_exec_prefix"
21227 prefix="$acl_save_prefix"
21229 if test "X$x" = "X-I$additional_includedir"; then
21230 haveit=yes
21231 break
21233 done
21234 if test -z "$haveit"; then
21235 if test -d "$additional_includedir"; then
21236 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
21242 if test -n "$found_la"; then
21243 save_libdir="$libdir"
21244 case "$found_la" in
21245 */* | *\\*) . "$found_la" ;;
21246 *) . "./$found_la" ;;
21247 esac
21248 libdir="$save_libdir"
21249 for dep in $dependency_libs; do
21250 case "$dep" in
21251 -L*)
21252 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21253 if test "X$additional_libdir" != "X/usr/lib"; then
21254 haveit=
21255 if test "X$additional_libdir" = "X/usr/local/lib"; 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 haveit=
21264 for x in $LDFLAGS $LIBIPT; do
21266 acl_save_prefix="$prefix"
21267 prefix="$acl_final_prefix"
21268 acl_save_exec_prefix="$exec_prefix"
21269 exec_prefix="$acl_final_exec_prefix"
21270 eval x=\"$x\"
21271 exec_prefix="$acl_save_exec_prefix"
21272 prefix="$acl_save_prefix"
21274 if test "X$x" = "X-L$additional_libdir"; then
21275 haveit=yes
21276 break
21278 done
21279 if test -z "$haveit"; then
21280 if test -d "$additional_libdir"; then
21281 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
21284 haveit=
21285 for x in $LDFLAGS $LTLIBIPT; do
21287 acl_save_prefix="$prefix"
21288 prefix="$acl_final_prefix"
21289 acl_save_exec_prefix="$exec_prefix"
21290 exec_prefix="$acl_final_exec_prefix"
21291 eval x=\"$x\"
21292 exec_prefix="$acl_save_exec_prefix"
21293 prefix="$acl_save_prefix"
21295 if test "X$x" = "X-L$additional_libdir"; then
21296 haveit=yes
21297 break
21299 done
21300 if test -z "$haveit"; then
21301 if test -d "$additional_libdir"; then
21302 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
21308 -R*)
21309 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21310 if test "$enable_rpath" != no; then
21311 haveit=
21312 for x in $rpathdirs; do
21313 if test "X$x" = "X$dir"; then
21314 haveit=yes
21315 break
21317 done
21318 if test -z "$haveit"; then
21319 rpathdirs="$rpathdirs $dir"
21321 haveit=
21322 for x in $ltrpathdirs; do
21323 if test "X$x" = "X$dir"; then
21324 haveit=yes
21325 break
21327 done
21328 if test -z "$haveit"; then
21329 ltrpathdirs="$ltrpathdirs $dir"
21333 -l*)
21334 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21336 *.la)
21337 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21340 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
21341 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
21343 esac
21344 done
21346 else
21347 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
21348 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
21349 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
21350 else
21351 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
21352 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
21357 done
21358 done
21359 if test "X$rpathdirs" != "X"; then
21360 if test -n "$hardcode_libdir_separator"; then
21361 alldirs=
21362 for found_dir in $rpathdirs; do
21363 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21364 done
21365 acl_save_libdir="$libdir"
21366 libdir="$alldirs"
21367 eval flag=\"$hardcode_libdir_flag_spec\"
21368 libdir="$acl_save_libdir"
21369 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
21370 else
21371 for found_dir in $rpathdirs; do
21372 acl_save_libdir="$libdir"
21373 libdir="$found_dir"
21374 eval flag=\"$hardcode_libdir_flag_spec\"
21375 libdir="$acl_save_libdir"
21376 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
21377 done
21380 if test "X$ltrpathdirs" != "X"; then
21381 for found_dir in $ltrpathdirs; do
21382 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
21383 done
21387 ac_save_CPPFLAGS="$CPPFLAGS"
21389 for element in $INCIPT; do
21390 haveit=
21391 for x in $CPPFLAGS; do
21393 acl_save_prefix="$prefix"
21394 prefix="$acl_final_prefix"
21395 acl_save_exec_prefix="$exec_prefix"
21396 exec_prefix="$acl_final_exec_prefix"
21397 eval x=\"$x\"
21398 exec_prefix="$acl_save_exec_prefix"
21399 prefix="$acl_save_prefix"
21401 if test "X$x" = "X$element"; then
21402 haveit=yes
21403 break
21405 done
21406 if test -z "$haveit"; then
21407 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21409 done
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
21413 $as_echo_n "checking for libipt... " >&6; }
21414 if ${ac_cv_libipt+:} false; then :
21415 $as_echo_n "(cached) " >&6
21416 else
21418 ac_save_LIBS="$LIBS"
21419 LIBS="$LIBS $LIBIPT"
21420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21421 /* end confdefs.h. */
21422 #include "intel-pt.h"
21424 main ()
21426 pt_insn_alloc_decoder (0);
21428 return 0;
21430 _ACEOF
21431 if ac_fn_c_try_link "$LINENO"; then :
21432 ac_cv_libipt=yes
21433 else
21434 ac_cv_libipt=no
21436 rm -f core conftest.err conftest.$ac_objext \
21437 conftest$ac_exeext conftest.$ac_ext
21438 LIBS="$ac_save_LIBS"
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
21442 $as_echo "$ac_cv_libipt" >&6; }
21443 if test "$ac_cv_libipt" = yes; then
21444 HAVE_LIBIPT=yes
21446 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
21449 $as_echo_n "checking how to link with libipt... " >&6; }
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
21451 $as_echo "$LIBIPT" >&6; }
21452 else
21453 HAVE_LIBIPT=no
21454 CPPFLAGS="$ac_save_CPPFLAGS"
21455 LIBIPT=
21456 LTLIBIPT=
21464 if test "$HAVE_LIBIPT" != yes; then
21465 if test "$with_intel_pt" = yes; then
21466 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
21467 else
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
21469 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
21471 else
21472 save_LIBS=$LIBS
21473 LIBS="$LIBS $LIBIPT"
21474 for ac_func in pt_insn_event
21475 do :
21476 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
21477 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
21478 cat >>confdefs.h <<_ACEOF
21479 #define HAVE_PT_INSN_EVENT 1
21480 _ACEOF
21483 done
21485 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
21487 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
21489 cat >>confdefs.h <<_ACEOF
21490 #define HAVE_STRUCT_PT_INSN_ENABLED 1
21491 _ACEOF
21495 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
21497 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
21499 cat >>confdefs.h <<_ACEOF
21500 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
21501 _ACEOF
21506 LIBS=$save_LIBS
21510 # Check if the compiler and runtime support printing long longs.
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
21513 $as_echo_n "checking for long long support in printf... " >&6; }
21514 if ${gdb_cv_printf_has_long_long+:} false; then :
21515 $as_echo_n "(cached) " >&6
21516 else
21517 if test "$cross_compiling" = yes; then :
21518 gdb_cv_printf_has_long_long=no
21519 else
21520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21521 /* end confdefs.h. */
21522 $ac_includes_default
21524 main ()
21526 char buf[32];
21527 long long l = 0;
21528 l = (l << 16) + 0x0123;
21529 l = (l << 16) + 0x4567;
21530 l = (l << 16) + 0x89ab;
21531 l = (l << 16) + 0xcdef;
21532 sprintf (buf, "0x%016llx", l);
21533 return (strcmp ("0x0123456789abcdef", buf));
21535 return 0;
21537 _ACEOF
21538 if ac_fn_c_try_run "$LINENO"; then :
21539 gdb_cv_printf_has_long_long=yes
21540 else
21541 gdb_cv_printf_has_long_long=no
21543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21544 conftest.$ac_objext conftest.beam conftest.$ac_ext
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
21549 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
21550 if test "$gdb_cv_printf_has_long_long" = yes; then
21552 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
21557 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
21559 for ac_header in sys/procfs.h
21560 do :
21561 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
21562 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
21563 cat >>confdefs.h <<_ACEOF
21564 #define HAVE_SYS_PROCFS_H 1
21565 _ACEOF
21569 done
21571 if test "$ac_cv_header_sys_procfs_h" = yes; then
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
21574 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
21575 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
21576 $as_echo_n "(cached) " >&6
21577 else
21578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21579 /* end confdefs.h. */
21581 #define _SYSCALL32
21582 #include <sys/procfs.h>
21584 main ()
21586 gregset_t avar
21588 return 0;
21590 _ACEOF
21591 if ac_fn_c_try_compile "$LINENO"; then :
21592 bfd_cv_have_sys_procfs_type_gregset_t=yes
21593 else
21594 bfd_cv_have_sys_procfs_type_gregset_t=no
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
21602 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21606 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
21610 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
21611 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
21612 $as_echo_n "(cached) " >&6
21613 else
21614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21615 /* end confdefs.h. */
21617 #define _SYSCALL32
21618 #include <sys/procfs.h>
21620 main ()
21622 fpregset_t avar
21624 return 0;
21626 _ACEOF
21627 if ac_fn_c_try_compile "$LINENO"; then :
21628 bfd_cv_have_sys_procfs_type_fpregset_t=yes
21629 else
21630 bfd_cv_have_sys_procfs_type_fpregset_t=no
21633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
21638 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21642 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
21646 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
21647 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
21648 $as_echo_n "(cached) " >&6
21649 else
21650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21651 /* end confdefs.h. */
21653 #define _SYSCALL32
21654 #include <sys/procfs.h>
21656 main ()
21658 prgregset_t avar
21660 return 0;
21662 _ACEOF
21663 if ac_fn_c_try_compile "$LINENO"; then :
21664 bfd_cv_have_sys_procfs_type_prgregset_t=yes
21665 else
21666 bfd_cv_have_sys_procfs_type_prgregset_t=no
21669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21672 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21674 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21678 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
21682 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
21683 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
21684 $as_echo_n "(cached) " >&6
21685 else
21686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21687 /* end confdefs.h. */
21689 #define _SYSCALL32
21690 #include <sys/procfs.h>
21692 main ()
21694 prfpregset_t avar
21696 return 0;
21698 _ACEOF
21699 if ac_fn_c_try_compile "$LINENO"; then :
21700 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
21701 else
21702 bfd_cv_have_sys_procfs_type_prfpregset_t=no
21705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21708 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21710 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21714 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
21718 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
21719 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
21720 $as_echo_n "(cached) " >&6
21721 else
21722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21723 /* end confdefs.h. */
21725 #define _SYSCALL32
21726 #include <sys/procfs.h>
21728 main ()
21730 prgregset32_t avar
21732 return 0;
21734 _ACEOF
21735 if ac_fn_c_try_compile "$LINENO"; then :
21736 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
21737 else
21738 bfd_cv_have_sys_procfs_type_prgregset32_t=no
21741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21744 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21746 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21750 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
21754 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
21755 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
21756 $as_echo_n "(cached) " >&6
21757 else
21758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21759 /* end confdefs.h. */
21761 #define _SYSCALL32
21762 #include <sys/procfs.h>
21764 main ()
21766 lwpid_t avar
21768 return 0;
21770 _ACEOF
21771 if ac_fn_c_try_compile "$LINENO"; then :
21772 bfd_cv_have_sys_procfs_type_lwpid_t=yes
21773 else
21774 bfd_cv_have_sys_procfs_type_lwpid_t=no
21777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21780 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
21782 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21786 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
21790 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
21791 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
21792 $as_echo_n "(cached) " >&6
21793 else
21794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21795 /* end confdefs.h. */
21797 #define _SYSCALL32
21798 #include <sys/procfs.h>
21800 main ()
21802 psaddr_t avar
21804 return 0;
21806 _ACEOF
21807 if ac_fn_c_try_compile "$LINENO"; then :
21808 bfd_cv_have_sys_procfs_type_psaddr_t=yes
21809 else
21810 bfd_cv_have_sys_procfs_type_psaddr_t=no
21813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
21818 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21822 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
21826 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
21827 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
21828 $as_echo_n "(cached) " >&6
21829 else
21830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21833 #define _SYSCALL32
21834 #include <sys/procfs.h>
21836 main ()
21838 elf_fpregset_t avar
21840 return 0;
21842 _ACEOF
21843 if ac_fn_c_try_compile "$LINENO"; then :
21844 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
21845 else
21846 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
21849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21852 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
21854 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
21858 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
21862 # Check for xxhash
21864 # Check whether --with-xxhash was given.
21865 if test "${with_xxhash+set}" = set; then :
21866 withval=$with_xxhash;
21867 else
21868 with_xxhash=auto
21872 if test "x$with_xxhash" != "xno"; then
21881 use_additional=yes
21883 acl_save_prefix="$prefix"
21884 prefix="$acl_final_prefix"
21885 acl_save_exec_prefix="$exec_prefix"
21886 exec_prefix="$acl_final_exec_prefix"
21888 eval additional_includedir=\"$includedir\"
21889 eval additional_libdir=\"$libdir\"
21891 exec_prefix="$acl_save_exec_prefix"
21892 prefix="$acl_save_prefix"
21895 # Check whether --with-libxxhash-prefix was given.
21896 if test "${with_libxxhash_prefix+set}" = set; then :
21897 withval=$with_libxxhash_prefix;
21898 if test "X$withval" = "Xno"; then
21899 use_additional=no
21900 else
21901 if test "X$withval" = "X"; then
21903 acl_save_prefix="$prefix"
21904 prefix="$acl_final_prefix"
21905 acl_save_exec_prefix="$exec_prefix"
21906 exec_prefix="$acl_final_exec_prefix"
21908 eval additional_includedir=\"$includedir\"
21909 eval additional_libdir=\"$libdir\"
21911 exec_prefix="$acl_save_exec_prefix"
21912 prefix="$acl_save_prefix"
21914 else
21915 additional_includedir="$withval/include"
21916 additional_libdir="$withval/lib"
21923 # Check whether --with-libxxhash-type was given.
21924 if test "${with_libxxhash_type+set}" = set; then :
21925 withval=$with_libxxhash_type; with_libxxhash_type=$withval
21926 else
21927 with_libxxhash_type=auto
21930 lib_type=`eval echo \$with_libxxhash_type`
21932 LIBXXHASH=
21933 LTLIBXXHASH=
21934 INCXXHASH=
21935 rpathdirs=
21936 ltrpathdirs=
21937 names_already_handled=
21938 names_next_round='xxhash '
21939 while test -n "$names_next_round"; do
21940 names_this_round="$names_next_round"
21941 names_next_round=
21942 for name in $names_this_round; do
21943 already_handled=
21944 for n in $names_already_handled; do
21945 if test "$n" = "$name"; then
21946 already_handled=yes
21947 break
21949 done
21950 if test -z "$already_handled"; then
21951 names_already_handled="$names_already_handled $name"
21952 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21953 eval value=\"\$HAVE_LIB$uppername\"
21954 if test -n "$value"; then
21955 if test "$value" = yes; then
21956 eval value=\"\$LIB$uppername\"
21957 test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value"
21958 eval value=\"\$LTLIB$uppername\"
21959 test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
21960 else
21963 else
21964 found_dir=
21965 found_la=
21966 found_so=
21967 found_a=
21968 if test $use_additional = yes; then
21969 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21970 found_dir="$additional_libdir"
21971 found_so="$additional_libdir/lib$name.$shlibext"
21972 if test -f "$additional_libdir/lib$name.la"; then
21973 found_la="$additional_libdir/lib$name.la"
21975 elif test x$lib_type != xshared; then
21976 if test -f "$additional_libdir/lib$name.$libext"; then
21977 found_dir="$additional_libdir"
21978 found_a="$additional_libdir/lib$name.$libext"
21979 if test -f "$additional_libdir/lib$name.la"; then
21980 found_la="$additional_libdir/lib$name.la"
21985 if test "X$found_dir" = "X"; then
21986 for x in $LDFLAGS $LTLIBXXHASH; do
21988 acl_save_prefix="$prefix"
21989 prefix="$acl_final_prefix"
21990 acl_save_exec_prefix="$exec_prefix"
21991 exec_prefix="$acl_final_exec_prefix"
21992 eval x=\"$x\"
21993 exec_prefix="$acl_save_exec_prefix"
21994 prefix="$acl_save_prefix"
21996 case "$x" in
21997 -L*)
21998 dir=`echo "X$x" | sed -e 's/^X-L//'`
21999 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
22000 found_dir="$dir"
22001 found_so="$dir/lib$name.$shlibext"
22002 if test -f "$dir/lib$name.la"; then
22003 found_la="$dir/lib$name.la"
22005 elif test x$lib_type != xshared; then
22006 if test -f "$dir/lib$name.$libext"; then
22007 found_dir="$dir"
22008 found_a="$dir/lib$name.$libext"
22009 if test -f "$dir/lib$name.la"; then
22010 found_la="$dir/lib$name.la"
22015 esac
22016 if test "X$found_dir" != "X"; then
22017 break
22019 done
22021 if test "X$found_dir" != "X"; then
22022 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
22023 if test "X$found_so" != "X"; then
22024 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22025 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22026 else
22027 haveit=
22028 for x in $ltrpathdirs; do
22029 if test "X$x" = "X$found_dir"; then
22030 haveit=yes
22031 break
22033 done
22034 if test -z "$haveit"; then
22035 ltrpathdirs="$ltrpathdirs $found_dir"
22037 if test "$hardcode_direct" = yes; then
22038 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22039 else
22040 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22041 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22042 haveit=
22043 for x in $rpathdirs; do
22044 if test "X$x" = "X$found_dir"; then
22045 haveit=yes
22046 break
22048 done
22049 if test -z "$haveit"; then
22050 rpathdirs="$rpathdirs $found_dir"
22052 else
22053 haveit=
22054 for x in $LDFLAGS $LIBXXHASH; do
22056 acl_save_prefix="$prefix"
22057 prefix="$acl_final_prefix"
22058 acl_save_exec_prefix="$exec_prefix"
22059 exec_prefix="$acl_final_exec_prefix"
22060 eval x=\"$x\"
22061 exec_prefix="$acl_save_exec_prefix"
22062 prefix="$acl_save_prefix"
22064 if test "X$x" = "X-L$found_dir"; then
22065 haveit=yes
22066 break
22068 done
22069 if test -z "$haveit"; then
22070 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
22072 if test "$hardcode_minus_L" != no; then
22073 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22074 else
22075 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
22080 else
22081 if test "X$found_a" != "X"; then
22082 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
22083 else
22084 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
22087 additional_includedir=
22088 case "$found_dir" in
22089 */lib | */lib/)
22090 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22091 additional_includedir="$basedir/include"
22093 esac
22094 if test "X$additional_includedir" != "X"; then
22095 if test "X$additional_includedir" != "X/usr/include"; then
22096 haveit=
22097 if test "X$additional_includedir" = "X/usr/local/include"; then
22098 if test -n "$GCC"; then
22099 case $host_os in
22100 linux*) haveit=yes;;
22101 esac
22104 if test -z "$haveit"; then
22105 for x in $CPPFLAGS $INCXXHASH; do
22107 acl_save_prefix="$prefix"
22108 prefix="$acl_final_prefix"
22109 acl_save_exec_prefix="$exec_prefix"
22110 exec_prefix="$acl_final_exec_prefix"
22111 eval x=\"$x\"
22112 exec_prefix="$acl_save_exec_prefix"
22113 prefix="$acl_save_prefix"
22115 if test "X$x" = "X-I$additional_includedir"; then
22116 haveit=yes
22117 break
22119 done
22120 if test -z "$haveit"; then
22121 if test -d "$additional_includedir"; then
22122 INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
22128 if test -n "$found_la"; then
22129 save_libdir="$libdir"
22130 case "$found_la" in
22131 */* | *\\*) . "$found_la" ;;
22132 *) . "./$found_la" ;;
22133 esac
22134 libdir="$save_libdir"
22135 for dep in $dependency_libs; do
22136 case "$dep" in
22137 -L*)
22138 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22139 if test "X$additional_libdir" != "X/usr/lib"; then
22140 haveit=
22141 if test "X$additional_libdir" = "X/usr/local/lib"; then
22142 if test -n "$GCC"; then
22143 case $host_os in
22144 linux*) haveit=yes;;
22145 esac
22148 if test -z "$haveit"; then
22149 haveit=
22150 for x in $LDFLAGS $LIBXXHASH; do
22152 acl_save_prefix="$prefix"
22153 prefix="$acl_final_prefix"
22154 acl_save_exec_prefix="$exec_prefix"
22155 exec_prefix="$acl_final_exec_prefix"
22156 eval x=\"$x\"
22157 exec_prefix="$acl_save_exec_prefix"
22158 prefix="$acl_save_prefix"
22160 if test "X$x" = "X-L$additional_libdir"; then
22161 haveit=yes
22162 break
22164 done
22165 if test -z "$haveit"; then
22166 if test -d "$additional_libdir"; then
22167 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
22170 haveit=
22171 for x in $LDFLAGS $LTLIBXXHASH; do
22173 acl_save_prefix="$prefix"
22174 prefix="$acl_final_prefix"
22175 acl_save_exec_prefix="$exec_prefix"
22176 exec_prefix="$acl_final_exec_prefix"
22177 eval x=\"$x\"
22178 exec_prefix="$acl_save_exec_prefix"
22179 prefix="$acl_save_prefix"
22181 if test "X$x" = "X-L$additional_libdir"; then
22182 haveit=yes
22183 break
22185 done
22186 if test -z "$haveit"; then
22187 if test -d "$additional_libdir"; then
22188 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
22194 -R*)
22195 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22196 if test "$enable_rpath" != no; then
22197 haveit=
22198 for x in $rpathdirs; do
22199 if test "X$x" = "X$dir"; then
22200 haveit=yes
22201 break
22203 done
22204 if test -z "$haveit"; then
22205 rpathdirs="$rpathdirs $dir"
22207 haveit=
22208 for x in $ltrpathdirs; do
22209 if test "X$x" = "X$dir"; then
22210 haveit=yes
22211 break
22213 done
22214 if test -z "$haveit"; then
22215 ltrpathdirs="$ltrpathdirs $dir"
22219 -l*)
22220 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22222 *.la)
22223 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22226 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep"
22227 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
22229 esac
22230 done
22232 else
22233 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
22234 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
22235 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
22236 else
22237 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
22238 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
22243 done
22244 done
22245 if test "X$rpathdirs" != "X"; then
22246 if test -n "$hardcode_libdir_separator"; then
22247 alldirs=
22248 for found_dir in $rpathdirs; do
22249 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22250 done
22251 acl_save_libdir="$libdir"
22252 libdir="$alldirs"
22253 eval flag=\"$hardcode_libdir_flag_spec\"
22254 libdir="$acl_save_libdir"
22255 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
22256 else
22257 for found_dir in $rpathdirs; do
22258 acl_save_libdir="$libdir"
22259 libdir="$found_dir"
22260 eval flag=\"$hardcode_libdir_flag_spec\"
22261 libdir="$acl_save_libdir"
22262 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
22263 done
22266 if test "X$ltrpathdirs" != "X"; then
22267 for found_dir in $ltrpathdirs; do
22268 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
22269 done
22273 ac_save_CPPFLAGS="$CPPFLAGS"
22275 for element in $INCXXHASH; do
22276 haveit=
22277 for x in $CPPFLAGS; do
22279 acl_save_prefix="$prefix"
22280 prefix="$acl_final_prefix"
22281 acl_save_exec_prefix="$exec_prefix"
22282 exec_prefix="$acl_final_exec_prefix"
22283 eval x=\"$x\"
22284 exec_prefix="$acl_save_exec_prefix"
22285 prefix="$acl_save_prefix"
22287 if test "X$x" = "X$element"; then
22288 haveit=yes
22289 break
22291 done
22292 if test -z "$haveit"; then
22293 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22295 done
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
22299 $as_echo_n "checking for libxxhash... " >&6; }
22300 if ${ac_cv_libxxhash+:} false; then :
22301 $as_echo_n "(cached) " >&6
22302 else
22304 ac_save_LIBS="$LIBS"
22305 LIBS="$LIBS $LIBXXHASH"
22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22307 /* end confdefs.h. */
22308 #include <xxhash.h>
22310 main ()
22312 XXH32("foo", 3, 0);
22315 return 0;
22317 _ACEOF
22318 if ac_fn_c_try_link "$LINENO"; then :
22319 ac_cv_libxxhash=yes
22320 else
22321 ac_cv_libxxhash=no
22323 rm -f core conftest.err conftest.$ac_objext \
22324 conftest$ac_exeext conftest.$ac_ext
22325 LIBS="$ac_save_LIBS"
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
22329 $as_echo "$ac_cv_libxxhash" >&6; }
22330 if test "$ac_cv_libxxhash" = yes; then
22331 HAVE_LIBXXHASH=yes
22333 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
22336 $as_echo_n "checking how to link with libxxhash... " >&6; }
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
22338 $as_echo "$LIBXXHASH" >&6; }
22339 else
22340 HAVE_LIBXXHASH=no
22341 CPPFLAGS="$ac_save_CPPFLAGS"
22342 LIBXXHASH=
22343 LTLIBXXHASH=
22351 if test "$HAVE_LIBXXHASH" != yes; then
22352 if test "$with_xxhash" = yes; then
22353 as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
22356 if test "x$with_xxhash" = "xauto"; then
22357 with_xxhash="$HAVE_LIBXXHASH"
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
22362 $as_echo_n "checking whether to use xxhash... " >&6; }
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
22364 $as_echo "$with_xxhash" >&6; }
22367 # Dependency checking.
22368 rm -rf .tst 2>/dev/null
22369 mkdir .tst 2>/dev/null
22370 if test -d .tst; then
22371 am__leading_dot=.
22372 else
22373 am__leading_dot=_
22375 rmdir .tst 2>/dev/null
22377 DEPDIR="${am__leading_dot}deps"
22379 ac_config_commands="$ac_config_commands depdir"
22382 depcc="$CC" am_compiler_list=
22384 am_depcomp=$ac_aux_dir/depcomp
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
22386 $as_echo_n "checking dependency style of $depcc... " >&6; }
22387 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
22388 $as_echo_n "(cached) " >&6
22389 else
22390 if test -f "$am_depcomp"; then
22391 # We make a subdir and do the tests there. Otherwise we can end up
22392 # making bogus files that we don't know about and never remove. For
22393 # instance it was reported that on HP-UX the gcc test will end up
22394 # making a dummy file named `D' -- because `-MD' means `put the output
22395 # in D'.
22396 mkdir conftest.dir
22397 # Copy depcomp to subdir because otherwise we won't find it if we're
22398 # using a relative directory.
22399 cp "$am_depcomp" conftest.dir
22400 cd conftest.dir
22401 # We will build objects and dependencies in a subdirectory because
22402 # it helps to detect inapplicable dependency modes. For instance
22403 # both Tru64's cc and ICC support -MD to output dependencies as a
22404 # side effect of compilation, but ICC will put the dependencies in
22405 # the current directory while Tru64 will put them in the object
22406 # directory.
22407 mkdir sub
22409 am_cv_CC_dependencies_compiler_type=none
22410 if test "$am_compiler_list" = ""; then
22411 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22413 for depmode in $am_compiler_list; do
22414 if test $depmode = none; then break; fi
22416 $as_echo "$as_me:$LINENO: trying $depmode" >&5
22417 # Setup a source with many dependencies, because some compilers
22418 # like to wrap large dependency lists on column 80 (with \), and
22419 # we should not choose a depcomp mode which is confused by this.
22421 # We need to recreate these files for each test, as the compiler may
22422 # overwrite some of them when testing with obscure command lines.
22423 # This happens at least with the AIX C compiler.
22424 : > sub/conftest.c
22425 for i in 1 2 3 4 5 6; do
22426 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22427 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22428 # Solaris 8's {/usr,}/bin/sh.
22429 touch sub/conftst$i.h
22430 done
22431 echo "include sub/conftest.Po" > confmf
22433 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22434 # mode. It turns out that the SunPro C++ compiler does not properly
22435 # handle `-M -o', and we need to detect this.
22436 depcmd="depmode=$depmode \
22437 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22439 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
22440 echo "| $depcmd" | sed -e 's/ */ /g' >&5
22441 if env $depcmd > conftest.err 2>&1 &&
22442 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
22443 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
22444 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
22445 # icc doesn't choke on unknown options, it will just issue warnings
22446 # or remarks (even with -Werror). So we grep stderr for any message
22447 # that says an option was ignored or not supported.
22448 # When given -MP, icc 7.0 and 7.1 complain thusly:
22449 # icc: Command line warning: ignoring option '-M'; no argument required
22450 # The diagnosis changed in icc 8.0:
22451 # icc: Command line remark: option '-MP' not supported
22452 if (grep 'ignoring option' conftest.err ||
22453 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22454 am_cv_CC_dependencies_compiler_type=$depmode
22455 $as_echo "$as_me:$LINENO: success" >&5
22456 break
22459 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
22460 sed -e 's/^/| /' < conftest.err >&5
22461 done
22463 cd ..
22464 rm -rf conftest.dir
22465 else
22466 am_cv_CC_dependencies_compiler_type=none
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
22471 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
22472 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
22473 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
22474 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22479 # Since the first call to PKG_CHECK_MODULES may not happen (is guarded by
22480 # a condition), we must call PKG_PROG_PKG_CONFIG explicitly to probe for
22481 # pkg-config.
22489 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22490 if test -n "$ac_tool_prefix"; then
22491 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22492 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22494 $as_echo_n "checking for $ac_word... " >&6; }
22495 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22496 $as_echo_n "(cached) " >&6
22497 else
22498 case $PKG_CONFIG in
22499 [\\/]* | ?:[\\/]*)
22500 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22504 for as_dir in $PATH
22506 IFS=$as_save_IFS
22507 test -z "$as_dir" && as_dir=.
22508 for ac_exec_ext in '' $ac_executable_extensions; do
22509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22510 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22512 break 2
22514 done
22515 done
22516 IFS=$as_save_IFS
22519 esac
22521 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22522 if test -n "$PKG_CONFIG"; then
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22524 $as_echo "$PKG_CONFIG" >&6; }
22525 else
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22527 $as_echo "no" >&6; }
22532 if test -z "$ac_cv_path_PKG_CONFIG"; then
22533 ac_pt_PKG_CONFIG=$PKG_CONFIG
22534 # Extract the first word of "pkg-config", so it can be a program name with args.
22535 set dummy pkg-config; ac_word=$2
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22537 $as_echo_n "checking for $ac_word... " >&6; }
22538 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
22539 $as_echo_n "(cached) " >&6
22540 else
22541 case $ac_pt_PKG_CONFIG in
22542 [\\/]* | ?:[\\/]*)
22543 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22547 for as_dir in $PATH
22549 IFS=$as_save_IFS
22550 test -z "$as_dir" && as_dir=.
22551 for ac_exec_ext in '' $ac_executable_extensions; do
22552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22553 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22555 break 2
22557 done
22558 done
22559 IFS=$as_save_IFS
22562 esac
22564 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22565 if test -n "$ac_pt_PKG_CONFIG"; then
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22567 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22568 else
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22570 $as_echo "no" >&6; }
22573 if test "x$ac_pt_PKG_CONFIG" = x; then
22574 PKG_CONFIG=""
22575 else
22576 case $cross_compiling:$ac_tool_warned in
22577 yes:)
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22580 ac_tool_warned=yes ;;
22581 esac
22582 PKG_CONFIG=$ac_pt_PKG_CONFIG
22584 else
22585 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22589 if test -n "$PKG_CONFIG"; then
22590 _pkg_min_version=0.9.0
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22592 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22593 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22595 $as_echo "yes" >&6; }
22596 else
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22598 $as_echo "no" >&6; }
22599 PKG_CONFIG=""
22604 CONFIG_OBS=
22605 CONFIG_DEPS=
22606 CONFIG_SRCS=
22607 ENABLE_CFLAGS=
22609 CONFIG_ALL=
22610 CONFIG_CLEAN=
22611 CONFIG_INSTALL=
22612 CONFIG_UNINSTALL=
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
22615 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
22616 set x ${MAKE-make}
22617 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22618 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
22619 $as_echo_n "(cached) " >&6
22620 else
22621 cat >conftest.make <<\_ACEOF
22622 SHELL = /bin/sh
22623 all:
22624 @echo '@@@%%%=$(MAKE)=@@@%%%'
22625 _ACEOF
22626 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
22627 case `${MAKE-make} -f conftest.make 2>/dev/null` in
22628 *@@@%%%=?*=@@@%%%*)
22629 eval ac_cv_prog_make_${ac_make}_set=yes;;
22631 eval ac_cv_prog_make_${ac_make}_set=no;;
22632 esac
22633 rm -f conftest.make
22635 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22637 $as_echo "yes" >&6; }
22638 SET_MAKE=
22639 else
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22641 $as_echo "no" >&6; }
22642 SET_MAKE="MAKE=${MAKE-make}"
22645 # Find a good install program. We prefer a C program (faster),
22646 # so one script is as good as another. But avoid the broken or
22647 # incompatible versions:
22648 # SysV /etc/install, /usr/sbin/install
22649 # SunOS /usr/etc/install
22650 # IRIX /sbin/install
22651 # AIX /bin/install
22652 # AmigaOS /C/install, which installs bootblocks on floppy discs
22653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
22654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
22655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
22656 # OS/2's system install, which has a completely different semantic
22657 # ./install, which can be erroneously created by make from ./install.sh.
22658 # Reject install programs that cannot install multiple files.
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
22660 $as_echo_n "checking for a BSD-compatible install... " >&6; }
22661 if test -z "$INSTALL"; then
22662 if ${ac_cv_path_install+:} false; then :
22663 $as_echo_n "(cached) " >&6
22664 else
22665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22666 for as_dir in $PATH
22668 IFS=$as_save_IFS
22669 test -z "$as_dir" && as_dir=.
22670 # Account for people who put trailing slashes in PATH elements.
22671 case $as_dir/ in #((
22672 ./ | .// | /[cC]/* | \
22673 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
22674 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
22675 /usr/ucb/* ) ;;
22677 # OSF1 and SCO ODT 3.0 have their own names for install.
22678 # Don't use installbsd from OSF since it installs stuff as root
22679 # by default.
22680 for ac_prog in ginstall scoinst install; do
22681 for ac_exec_ext in '' $ac_executable_extensions; do
22682 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
22683 if test $ac_prog = install &&
22684 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22685 # AIX install. It has an incompatible calling convention.
22687 elif test $ac_prog = install &&
22688 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22689 # program-specific install script used by HP pwplus--don't use.
22691 else
22692 rm -rf conftest.one conftest.two conftest.dir
22693 echo one > conftest.one
22694 echo two > conftest.two
22695 mkdir conftest.dir
22696 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
22697 test -s conftest.one && test -s conftest.two &&
22698 test -s conftest.dir/conftest.one &&
22699 test -s conftest.dir/conftest.two
22700 then
22701 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
22702 break 3
22706 done
22707 done
22709 esac
22711 done
22712 IFS=$as_save_IFS
22714 rm -rf conftest.one conftest.two conftest.dir
22717 if test "${ac_cv_path_install+set}" = set; then
22718 INSTALL=$ac_cv_path_install
22719 else
22720 # As a last resort, use the slow shell script. Don't cache a
22721 # value for INSTALL within a source directory, because that will
22722 # break other packages using the cache if that directory is
22723 # removed, or if the value is a relative name.
22724 INSTALL=$ac_install_sh
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
22728 $as_echo "$INSTALL" >&6; }
22730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22731 # It thinks the first close brace ends the variable substitution.
22732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
22734 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
22736 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
22739 MKINSTALLDIRS=
22740 if test -n "$ac_aux_dir"; then
22741 case "$ac_aux_dir" in
22742 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
22743 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
22744 esac
22746 if test -z "$MKINSTALLDIRS"; then
22747 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
22753 $as_echo_n "checking whether NLS is requested... " >&6; }
22754 # Check whether --enable-nls was given.
22755 if test "${enable_nls+set}" = set; then :
22756 enableval=$enable_nls; USE_NLS=$enableval
22757 else
22758 USE_NLS=yes
22761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
22762 $as_echo "$USE_NLS" >&6; }
22769 # Prepare PATH_SEPARATOR.
22770 # The user is always right.
22771 if test "${PATH_SEPARATOR+set}" != set; then
22772 echo "#! /bin/sh" >conf$$.sh
22773 echo "exit 0" >>conf$$.sh
22774 chmod +x conf$$.sh
22775 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22776 PATH_SEPARATOR=';'
22777 else
22778 PATH_SEPARATOR=:
22780 rm -f conf$$.sh
22783 # Find out how to test for executable files. Don't use a zero-byte file,
22784 # as systems may use methods other than mode bits to determine executability.
22785 cat >conf$$.file <<_ASEOF
22786 #! /bin/sh
22787 exit 0
22788 _ASEOF
22789 chmod +x conf$$.file
22790 if test -x conf$$.file >/dev/null 2>&1; then
22791 ac_executable_p="test -x"
22792 else
22793 ac_executable_p="test -f"
22795 rm -f conf$$.file
22797 # Extract the first word of "msgfmt", so it can be a program name with args.
22798 set dummy msgfmt; ac_word=$2
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22800 $as_echo_n "checking for $ac_word... " >&6; }
22801 if ${ac_cv_path_MSGFMT+:} false; then :
22802 $as_echo_n "(cached) " >&6
22803 else
22804 case "$MSGFMT" in
22805 [\\/]* | ?:[\\/]*)
22806 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22809 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22810 for ac_dir in $PATH; do
22811 IFS="$ac_save_IFS"
22812 test -z "$ac_dir" && ac_dir=.
22813 for ac_exec_ext in '' $ac_executable_extensions; do
22814 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22815 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
22816 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22817 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22818 break 2
22821 done
22822 done
22823 IFS="$ac_save_IFS"
22824 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22826 esac
22828 MSGFMT="$ac_cv_path_MSGFMT"
22829 if test "$MSGFMT" != ":"; then
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
22831 $as_echo "$MSGFMT" >&6; }
22832 else
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22834 $as_echo "no" >&6; }
22837 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22838 set dummy gmsgfmt; ac_word=$2
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22840 $as_echo_n "checking for $ac_word... " >&6; }
22841 if ${ac_cv_path_GMSGFMT+:} false; then :
22842 $as_echo_n "(cached) " >&6
22843 else
22844 case $GMSGFMT in
22845 [\\/]* | ?:[\\/]*)
22846 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22850 for as_dir in $PATH
22852 IFS=$as_save_IFS
22853 test -z "$as_dir" && as_dir=.
22854 for ac_exec_ext in '' $ac_executable_extensions; do
22855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22856 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22858 break 2
22860 done
22861 done
22862 IFS=$as_save_IFS
22864 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22866 esac
22868 GMSGFMT=$ac_cv_path_GMSGFMT
22869 if test -n "$GMSGFMT"; then
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
22871 $as_echo "$GMSGFMT" >&6; }
22872 else
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22874 $as_echo "no" >&6; }
22880 # Prepare PATH_SEPARATOR.
22881 # The user is always right.
22882 if test "${PATH_SEPARATOR+set}" != set; then
22883 echo "#! /bin/sh" >conf$$.sh
22884 echo "exit 0" >>conf$$.sh
22885 chmod +x conf$$.sh
22886 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22887 PATH_SEPARATOR=';'
22888 else
22889 PATH_SEPARATOR=:
22891 rm -f conf$$.sh
22894 # Find out how to test for executable files. Don't use a zero-byte file,
22895 # as systems may use methods other than mode bits to determine executability.
22896 cat >conf$$.file <<_ASEOF
22897 #! /bin/sh
22898 exit 0
22899 _ASEOF
22900 chmod +x conf$$.file
22901 if test -x conf$$.file >/dev/null 2>&1; then
22902 ac_executable_p="test -x"
22903 else
22904 ac_executable_p="test -f"
22906 rm -f conf$$.file
22908 # Extract the first word of "xgettext", so it can be a program name with args.
22909 set dummy xgettext; ac_word=$2
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22911 $as_echo_n "checking for $ac_word... " >&6; }
22912 if ${ac_cv_path_XGETTEXT+:} false; then :
22913 $as_echo_n "(cached) " >&6
22914 else
22915 case "$XGETTEXT" in
22916 [\\/]* | ?:[\\/]*)
22917 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22920 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22921 for ac_dir in $PATH; do
22922 IFS="$ac_save_IFS"
22923 test -z "$ac_dir" && ac_dir=.
22924 for ac_exec_ext in '' $ac_executable_extensions; do
22925 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22926 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22927 (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
22928 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22929 break 2
22932 done
22933 done
22934 IFS="$ac_save_IFS"
22935 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22937 esac
22939 XGETTEXT="$ac_cv_path_XGETTEXT"
22940 if test "$XGETTEXT" != ":"; then
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
22942 $as_echo "$XGETTEXT" >&6; }
22943 else
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22945 $as_echo "no" >&6; }
22948 rm -f messages.po
22951 # Prepare PATH_SEPARATOR.
22952 # The user is always right.
22953 if test "${PATH_SEPARATOR+set}" != set; then
22954 echo "#! /bin/sh" >conf$$.sh
22955 echo "exit 0" >>conf$$.sh
22956 chmod +x conf$$.sh
22957 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22958 PATH_SEPARATOR=';'
22959 else
22960 PATH_SEPARATOR=:
22962 rm -f conf$$.sh
22965 # Find out how to test for executable files. Don't use a zero-byte file,
22966 # as systems may use methods other than mode bits to determine executability.
22967 cat >conf$$.file <<_ASEOF
22968 #! /bin/sh
22969 exit 0
22970 _ASEOF
22971 chmod +x conf$$.file
22972 if test -x conf$$.file >/dev/null 2>&1; then
22973 ac_executable_p="test -x"
22974 else
22975 ac_executable_p="test -f"
22977 rm -f conf$$.file
22979 # Extract the first word of "msgmerge", so it can be a program name with args.
22980 set dummy msgmerge; ac_word=$2
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22982 $as_echo_n "checking for $ac_word... " >&6; }
22983 if ${ac_cv_path_MSGMERGE+:} false; then :
22984 $as_echo_n "(cached) " >&6
22985 else
22986 case "$MSGMERGE" in
22987 [\\/]* | ?:[\\/]*)
22988 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22991 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22992 for ac_dir in $PATH; do
22993 IFS="$ac_save_IFS"
22994 test -z "$ac_dir" && ac_dir=.
22995 for ac_exec_ext in '' $ac_executable_extensions; do
22996 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22997 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22998 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22999 break 2
23002 done
23003 done
23004 IFS="$ac_save_IFS"
23005 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
23007 esac
23009 MSGMERGE="$ac_cv_path_MSGMERGE"
23010 if test "$MSGMERGE" != ":"; then
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
23012 $as_echo "$MSGMERGE" >&6; }
23013 else
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23015 $as_echo "no" >&6; }
23019 if test "$GMSGFMT" != ":"; then
23020 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
23021 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23023 else
23024 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
23026 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
23027 GMSGFMT=":"
23031 if test "$XGETTEXT" != ":"; then
23032 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
23033 (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
23035 else
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
23037 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
23038 XGETTEXT=":"
23040 rm -f messages.po
23043 ac_config_commands="$ac_config_commands default-1"
23052 use_additional=yes
23054 acl_save_prefix="$prefix"
23055 prefix="$acl_final_prefix"
23056 acl_save_exec_prefix="$exec_prefix"
23057 exec_prefix="$acl_final_exec_prefix"
23059 eval additional_includedir=\"$includedir\"
23060 eval additional_libdir=\"$libdir\"
23062 exec_prefix="$acl_save_exec_prefix"
23063 prefix="$acl_save_prefix"
23066 # Check whether --with-libiconv-prefix was given.
23067 if test "${with_libiconv_prefix+set}" = set; then :
23068 withval=$with_libiconv_prefix;
23069 if test "X$withval" = "Xno"; then
23070 use_additional=no
23071 else
23072 if test "X$withval" = "X"; then
23074 acl_save_prefix="$prefix"
23075 prefix="$acl_final_prefix"
23076 acl_save_exec_prefix="$exec_prefix"
23077 exec_prefix="$acl_final_exec_prefix"
23079 eval additional_includedir=\"$includedir\"
23080 eval additional_libdir=\"$libdir\"
23082 exec_prefix="$acl_save_exec_prefix"
23083 prefix="$acl_save_prefix"
23085 else
23086 additional_includedir="$withval/include"
23087 additional_libdir="$withval/lib"
23094 # Check whether --with-libiconv-type was given.
23095 if test "${with_libiconv_type+set}" = set; then :
23096 withval=$with_libiconv_type; with_libiconv_type=$withval
23097 else
23098 with_libiconv_type=auto
23101 lib_type=`eval echo \$with_libiconv_type`
23103 LIBICONV=
23104 LTLIBICONV=
23105 INCICONV=
23106 rpathdirs=
23107 ltrpathdirs=
23108 names_already_handled=
23109 names_next_round='iconv '
23110 while test -n "$names_next_round"; do
23111 names_this_round="$names_next_round"
23112 names_next_round=
23113 for name in $names_this_round; do
23114 already_handled=
23115 for n in $names_already_handled; do
23116 if test "$n" = "$name"; then
23117 already_handled=yes
23118 break
23120 done
23121 if test -z "$already_handled"; then
23122 names_already_handled="$names_already_handled $name"
23123 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23124 eval value=\"\$HAVE_LIB$uppername\"
23125 if test -n "$value"; then
23126 if test "$value" = yes; then
23127 eval value=\"\$LIB$uppername\"
23128 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
23129 eval value=\"\$LTLIB$uppername\"
23130 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
23131 else
23134 else
23135 found_dir=
23136 found_la=
23137 found_so=
23138 found_a=
23139 if test $use_additional = yes; then
23140 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
23141 found_dir="$additional_libdir"
23142 found_so="$additional_libdir/lib$name.$shlibext"
23143 if test -f "$additional_libdir/lib$name.la"; then
23144 found_la="$additional_libdir/lib$name.la"
23146 elif test x$lib_type != xshared; then
23147 if test -f "$additional_libdir/lib$name.$libext"; then
23148 found_dir="$additional_libdir"
23149 found_a="$additional_libdir/lib$name.$libext"
23150 if test -f "$additional_libdir/lib$name.la"; then
23151 found_la="$additional_libdir/lib$name.la"
23156 if test "X$found_dir" = "X"; then
23157 for x in $LDFLAGS $LTLIBICONV; do
23159 acl_save_prefix="$prefix"
23160 prefix="$acl_final_prefix"
23161 acl_save_exec_prefix="$exec_prefix"
23162 exec_prefix="$acl_final_exec_prefix"
23163 eval x=\"$x\"
23164 exec_prefix="$acl_save_exec_prefix"
23165 prefix="$acl_save_prefix"
23167 case "$x" in
23168 -L*)
23169 dir=`echo "X$x" | sed -e 's/^X-L//'`
23170 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
23171 found_dir="$dir"
23172 found_so="$dir/lib$name.$shlibext"
23173 if test -f "$dir/lib$name.la"; then
23174 found_la="$dir/lib$name.la"
23176 elif test x$lib_type != xshared; then
23177 if test -f "$dir/lib$name.$libext"; then
23178 found_dir="$dir"
23179 found_a="$dir/lib$name.$libext"
23180 if test -f "$dir/lib$name.la"; then
23181 found_la="$dir/lib$name.la"
23186 esac
23187 if test "X$found_dir" != "X"; then
23188 break
23190 done
23192 if test "X$found_dir" != "X"; then
23193 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
23194 if test "X$found_so" != "X"; then
23195 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23196 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23197 else
23198 haveit=
23199 for x in $ltrpathdirs; do
23200 if test "X$x" = "X$found_dir"; then
23201 haveit=yes
23202 break
23204 done
23205 if test -z "$haveit"; then
23206 ltrpathdirs="$ltrpathdirs $found_dir"
23208 if test "$hardcode_direct" = yes; then
23209 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23210 else
23211 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23212 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23213 haveit=
23214 for x in $rpathdirs; do
23215 if test "X$x" = "X$found_dir"; then
23216 haveit=yes
23217 break
23219 done
23220 if test -z "$haveit"; then
23221 rpathdirs="$rpathdirs $found_dir"
23223 else
23224 haveit=
23225 for x in $LDFLAGS $LIBICONV; do
23227 acl_save_prefix="$prefix"
23228 prefix="$acl_final_prefix"
23229 acl_save_exec_prefix="$exec_prefix"
23230 exec_prefix="$acl_final_exec_prefix"
23231 eval x=\"$x\"
23232 exec_prefix="$acl_save_exec_prefix"
23233 prefix="$acl_save_prefix"
23235 if test "X$x" = "X-L$found_dir"; then
23236 haveit=yes
23237 break
23239 done
23240 if test -z "$haveit"; then
23241 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
23243 if test "$hardcode_minus_L" != no; then
23244 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23245 else
23246 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
23251 else
23252 if test "X$found_a" != "X"; then
23253 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
23254 else
23255 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
23258 additional_includedir=
23259 case "$found_dir" in
23260 */lib | */lib/)
23261 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23262 additional_includedir="$basedir/include"
23264 esac
23265 if test "X$additional_includedir" != "X"; then
23266 if test "X$additional_includedir" != "X/usr/include"; then
23267 haveit=
23268 if test "X$additional_includedir" = "X/usr/local/include"; then
23269 if test -n "$GCC"; then
23270 case $host_os in
23271 linux*) haveit=yes;;
23272 esac
23275 if test -z "$haveit"; then
23276 for x in $CPPFLAGS $INCICONV; do
23278 acl_save_prefix="$prefix"
23279 prefix="$acl_final_prefix"
23280 acl_save_exec_prefix="$exec_prefix"
23281 exec_prefix="$acl_final_exec_prefix"
23282 eval x=\"$x\"
23283 exec_prefix="$acl_save_exec_prefix"
23284 prefix="$acl_save_prefix"
23286 if test "X$x" = "X-I$additional_includedir"; then
23287 haveit=yes
23288 break
23290 done
23291 if test -z "$haveit"; then
23292 if test -d "$additional_includedir"; then
23293 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
23299 if test -n "$found_la"; then
23300 save_libdir="$libdir"
23301 case "$found_la" in
23302 */* | *\\*) . "$found_la" ;;
23303 *) . "./$found_la" ;;
23304 esac
23305 libdir="$save_libdir"
23306 for dep in $dependency_libs; do
23307 case "$dep" in
23308 -L*)
23309 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23310 if test "X$additional_libdir" != "X/usr/lib"; then
23311 haveit=
23312 if test "X$additional_libdir" = "X/usr/local/lib"; then
23313 if test -n "$GCC"; then
23314 case $host_os in
23315 linux*) haveit=yes;;
23316 esac
23319 if test -z "$haveit"; then
23320 haveit=
23321 for x in $LDFLAGS $LIBICONV; do
23323 acl_save_prefix="$prefix"
23324 prefix="$acl_final_prefix"
23325 acl_save_exec_prefix="$exec_prefix"
23326 exec_prefix="$acl_final_exec_prefix"
23327 eval x=\"$x\"
23328 exec_prefix="$acl_save_exec_prefix"
23329 prefix="$acl_save_prefix"
23331 if test "X$x" = "X-L$additional_libdir"; then
23332 haveit=yes
23333 break
23335 done
23336 if test -z "$haveit"; then
23337 if test -d "$additional_libdir"; then
23338 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
23341 haveit=
23342 for x in $LDFLAGS $LTLIBICONV; do
23344 acl_save_prefix="$prefix"
23345 prefix="$acl_final_prefix"
23346 acl_save_exec_prefix="$exec_prefix"
23347 exec_prefix="$acl_final_exec_prefix"
23348 eval x=\"$x\"
23349 exec_prefix="$acl_save_exec_prefix"
23350 prefix="$acl_save_prefix"
23352 if test "X$x" = "X-L$additional_libdir"; then
23353 haveit=yes
23354 break
23356 done
23357 if test -z "$haveit"; then
23358 if test -d "$additional_libdir"; then
23359 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
23365 -R*)
23366 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23367 if test "$enable_rpath" != no; then
23368 haveit=
23369 for x in $rpathdirs; do
23370 if test "X$x" = "X$dir"; then
23371 haveit=yes
23372 break
23374 done
23375 if test -z "$haveit"; then
23376 rpathdirs="$rpathdirs $dir"
23378 haveit=
23379 for x in $ltrpathdirs; do
23380 if test "X$x" = "X$dir"; then
23381 haveit=yes
23382 break
23384 done
23385 if test -z "$haveit"; then
23386 ltrpathdirs="$ltrpathdirs $dir"
23390 -l*)
23391 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23393 *.la)
23394 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23397 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
23398 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
23400 esac
23401 done
23403 else
23404 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
23405 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
23406 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
23407 else
23408 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
23409 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
23414 done
23415 done
23416 if test "X$rpathdirs" != "X"; then
23417 if test -n "$hardcode_libdir_separator"; then
23418 alldirs=
23419 for found_dir in $rpathdirs; do
23420 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23421 done
23422 acl_save_libdir="$libdir"
23423 libdir="$alldirs"
23424 eval flag=\"$hardcode_libdir_flag_spec\"
23425 libdir="$acl_save_libdir"
23426 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23427 else
23428 for found_dir in $rpathdirs; do
23429 acl_save_libdir="$libdir"
23430 libdir="$found_dir"
23431 eval flag=\"$hardcode_libdir_flag_spec\"
23432 libdir="$acl_save_libdir"
23433 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23434 done
23437 if test "X$ltrpathdirs" != "X"; then
23438 for found_dir in $ltrpathdirs; do
23439 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
23440 done
23447 if test -f ../gettext/uninstalled-config.sh; then
23448 relative_builddir='$(top_builddir)/../gettext'
23449 . ../gettext/uninstalled-config.sh
23450 else
23451 # The sister gettext directory doesn't exist and won't collect information on
23452 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
23477 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23478 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
23479 $as_echo_n "(cached) " >&6
23480 else
23481 gt_save_LIBS="$LIBS"
23482 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
23483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23484 /* end confdefs.h. */
23485 #include <CoreFoundation/CFPreferences.h>
23487 main ()
23489 CFPreferencesCopyAppValue(NULL, NULL)
23491 return 0;
23493 _ACEOF
23494 if ac_fn_c_try_link "$LINENO"; then :
23495 gt_cv_func_CFPreferencesCopyAppValue=yes
23496 else
23497 gt_cv_func_CFPreferencesCopyAppValue=no
23499 rm -f core conftest.err conftest.$ac_objext \
23500 conftest$ac_exeext conftest.$ac_ext
23501 LIBS="$gt_save_LIBS"
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23504 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23505 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23507 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
23511 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
23512 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
23513 $as_echo_n "(cached) " >&6
23514 else
23515 gt_save_LIBS="$LIBS"
23516 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
23517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23518 /* end confdefs.h. */
23519 #include <CoreFoundation/CFLocale.h>
23521 main ()
23523 CFLocaleCopyPreferredLanguages();
23525 return 0;
23527 _ACEOF
23528 if ac_fn_c_try_link "$LINENO"; then :
23529 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
23530 else
23531 gt_cv_func_CFLocaleCopyPreferredLanguages=no
23533 rm -f core conftest.err conftest.$ac_objext \
23534 conftest$ac_exeext conftest.$ac_ext
23535 LIBS="$gt_save_LIBS"
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
23538 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
23539 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
23541 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
23544 INTL_MACOSX_LIBS=
23545 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
23546 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
23547 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
23555 LIBINTL=
23556 LTLIBINTL=
23557 POSUB=
23559 case " $gt_needs " in
23560 *" need-formatstring-macros "*) gt_api_version=3 ;;
23561 *" need-ngettext "*) gt_api_version=2 ;;
23562 *) gt_api_version=1 ;;
23563 esac
23564 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
23565 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
23567 if test "$USE_NLS" = "yes"; then
23568 gt_use_preinstalled_gnugettext=no
23571 if test $gt_api_version -ge 3; then
23572 gt_revision_test_code='
23573 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
23574 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
23575 #endif
23576 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
23578 else
23579 gt_revision_test_code=
23581 if test $gt_api_version -ge 2; then
23582 gt_expression_test_code=' + * ngettext ("", "", 0)'
23583 else
23584 gt_expression_test_code=
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
23588 $as_echo_n "checking for GNU gettext in libc... " >&6; }
23589 if eval \${$gt_func_gnugettext_libc+:} false; then :
23590 $as_echo_n "(cached) " >&6
23591 else
23592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23593 /* end confdefs.h. */
23595 #include <libintl.h>
23596 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
23597 extern int _nl_msg_cat_cntr;
23598 extern int *_nl_domain_bindings;
23599 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
23600 #else
23601 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
23602 #endif
23603 $gt_revision_test_code
23606 main ()
23609 bindtextdomain ("", "");
23610 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
23613 return 0;
23615 _ACEOF
23616 if ac_fn_c_try_link "$LINENO"; then :
23617 eval "$gt_func_gnugettext_libc=yes"
23618 else
23619 eval "$gt_func_gnugettext_libc=no"
23621 rm -f core conftest.err conftest.$ac_objext \
23622 conftest$ac_exeext conftest.$ac_ext
23624 eval ac_res=\$$gt_func_gnugettext_libc
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23626 $as_echo "$ac_res" >&6; }
23628 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
23634 am_save_CPPFLAGS="$CPPFLAGS"
23636 for element in $INCICONV; do
23637 haveit=
23638 for x in $CPPFLAGS; do
23640 acl_save_prefix="$prefix"
23641 prefix="$acl_final_prefix"
23642 acl_save_exec_prefix="$exec_prefix"
23643 exec_prefix="$acl_final_exec_prefix"
23644 eval x=\"$x\"
23645 exec_prefix="$acl_save_exec_prefix"
23646 prefix="$acl_save_prefix"
23648 if test "X$x" = "X$element"; then
23649 haveit=yes
23650 break
23652 done
23653 if test -z "$haveit"; then
23654 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23656 done
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
23660 $as_echo_n "checking for iconv... " >&6; }
23661 if ${am_cv_func_iconv+:} false; then :
23662 $as_echo_n "(cached) " >&6
23663 else
23665 am_cv_func_iconv="no, consider installing GNU libiconv"
23666 am_cv_lib_iconv=no
23667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23668 /* end confdefs.h. */
23670 #include <stdlib.h>
23671 #include <iconv.h>
23674 main ()
23676 iconv_t cd = iconv_open("","");
23677 iconv(cd,NULL,NULL,NULL,NULL);
23678 iconv_close(cd);
23680 return 0;
23682 _ACEOF
23683 if ac_fn_c_try_link "$LINENO"; then :
23684 am_cv_func_iconv=yes
23686 rm -f core conftest.err conftest.$ac_objext \
23687 conftest$ac_exeext conftest.$ac_ext
23688 if test "$am_cv_func_iconv" != yes; then
23689 am_save_LIBS="$LIBS"
23690 LIBS="$LIBS $LIBICONV"
23691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23692 /* end confdefs.h. */
23694 #include <stdlib.h>
23695 #include <iconv.h>
23698 main ()
23700 iconv_t cd = iconv_open("","");
23701 iconv(cd,NULL,NULL,NULL,NULL);
23702 iconv_close(cd);
23704 return 0;
23706 _ACEOF
23707 if ac_fn_c_try_link "$LINENO"; then :
23708 am_cv_lib_iconv=yes
23709 am_cv_func_iconv=yes
23711 rm -f core conftest.err conftest.$ac_objext \
23712 conftest$ac_exeext conftest.$ac_ext
23713 LIBS="$am_save_LIBS"
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
23718 $as_echo "$am_cv_func_iconv" >&6; }
23719 if test "$am_cv_func_iconv" = yes; then
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
23721 $as_echo_n "checking for working iconv... " >&6; }
23722 if ${am_cv_func_iconv_works+:} false; then :
23723 $as_echo_n "(cached) " >&6
23724 else
23726 am_save_LIBS="$LIBS"
23727 if test $am_cv_lib_iconv = yes; then
23728 LIBS="$LIBS $LIBICONV"
23730 am_cv_func_iconv_works=no
23731 for ac_iconv_const in '' 'const'; do
23732 if test "$cross_compiling" = yes; then :
23733 case "$host_os" in
23734 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
23735 *) am_cv_func_iconv_works="guessing yes" ;;
23736 esac
23737 else
23738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23739 /* end confdefs.h. */
23741 #include <iconv.h>
23742 #include <string.h>
23744 #ifndef ICONV_CONST
23745 # define ICONV_CONST $ac_iconv_const
23746 #endif
23749 main ()
23751 int result = 0;
23752 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
23753 successful returns. This is even documented in
23754 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
23756 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
23757 if (cd_utf8_to_88591 != (iconv_t)(-1))
23759 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
23760 char buf[10];
23761 ICONV_CONST char *inptr = input;
23762 size_t inbytesleft = strlen (input);
23763 char *outptr = buf;
23764 size_t outbytesleft = sizeof (buf);
23765 size_t res = iconv (cd_utf8_to_88591,
23766 &inptr, &inbytesleft,
23767 &outptr, &outbytesleft);
23768 if (res == 0)
23769 result |= 1;
23770 iconv_close (cd_utf8_to_88591);
23773 /* Test against Solaris 10 bug: Failures are not distinguishable from
23774 successful returns. */
23776 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
23777 if (cd_ascii_to_88591 != (iconv_t)(-1))
23779 static ICONV_CONST char input[] = "\263";
23780 char buf[10];
23781 ICONV_CONST char *inptr = input;
23782 size_t inbytesleft = strlen (input);
23783 char *outptr = buf;
23784 size_t outbytesleft = sizeof (buf);
23785 size_t res = iconv (cd_ascii_to_88591,
23786 &inptr, &inbytesleft,
23787 &outptr, &outbytesleft);
23788 if (res == 0)
23789 result |= 2;
23790 iconv_close (cd_ascii_to_88591);
23793 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
23795 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
23796 if (cd_88591_to_utf8 != (iconv_t)(-1))
23798 static ICONV_CONST char input[] = "\304";
23799 static char buf[2] = { (char)0xDE, (char)0xAD };
23800 ICONV_CONST char *inptr = input;
23801 size_t inbytesleft = 1;
23802 char *outptr = buf;
23803 size_t outbytesleft = 1;
23804 size_t res = iconv (cd_88591_to_utf8,
23805 &inptr, &inbytesleft,
23806 &outptr, &outbytesleft);
23807 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
23808 result |= 4;
23809 iconv_close (cd_88591_to_utf8);
23812 #if 0 /* This bug could be worked around by the caller. */
23813 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
23815 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
23816 if (cd_88591_to_utf8 != (iconv_t)(-1))
23818 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
23819 char buf[50];
23820 ICONV_CONST char *inptr = input;
23821 size_t inbytesleft = strlen (input);
23822 char *outptr = buf;
23823 size_t outbytesleft = sizeof (buf);
23824 size_t res = iconv (cd_88591_to_utf8,
23825 &inptr, &inbytesleft,
23826 &outptr, &outbytesleft);
23827 if ((int)res > 0)
23828 result |= 8;
23829 iconv_close (cd_88591_to_utf8);
23832 #endif
23833 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
23834 provided. */
23836 /* Try standardized names. */
23837 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
23838 /* Try IRIX, OSF/1 names. */
23839 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
23840 /* Try AIX names. */
23841 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
23842 /* Try HP-UX names. */
23843 iconv_t cd4 = iconv_open ("utf8", "eucJP");
23844 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
23845 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
23846 result |= 16;
23847 if (cd1 != (iconv_t)(-1))
23848 iconv_close (cd1);
23849 if (cd2 != (iconv_t)(-1))
23850 iconv_close (cd2);
23851 if (cd3 != (iconv_t)(-1))
23852 iconv_close (cd3);
23853 if (cd4 != (iconv_t)(-1))
23854 iconv_close (cd4);
23856 return result;
23859 return 0;
23861 _ACEOF
23862 if ac_fn_c_try_run "$LINENO"; then :
23863 am_cv_func_iconv_works=yes
23865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23866 conftest.$ac_objext conftest.beam conftest.$ac_ext
23869 test "$am_cv_func_iconv_works" = no || break
23870 done
23871 LIBS="$am_save_LIBS"
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
23875 $as_echo "$am_cv_func_iconv_works" >&6; }
23876 case "$am_cv_func_iconv_works" in
23877 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
23878 *) am_func_iconv=yes ;;
23879 esac
23880 else
23881 am_func_iconv=no am_cv_lib_iconv=no
23883 if test "$am_func_iconv" = yes; then
23885 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
23888 if test "$am_cv_lib_iconv" = yes; then
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
23890 $as_echo_n "checking how to link with libiconv... " >&6; }
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
23892 $as_echo "$LIBICONV" >&6; }
23893 else
23894 CPPFLAGS="$am_save_CPPFLAGS"
23895 LIBICONV=
23896 LTLIBICONV=
23904 use_additional=yes
23906 acl_save_prefix="$prefix"
23907 prefix="$acl_final_prefix"
23908 acl_save_exec_prefix="$exec_prefix"
23909 exec_prefix="$acl_final_exec_prefix"
23911 eval additional_includedir=\"$includedir\"
23912 eval additional_libdir=\"$libdir\"
23914 exec_prefix="$acl_save_exec_prefix"
23915 prefix="$acl_save_prefix"
23918 # Check whether --with-libintl-prefix was given.
23919 if test "${with_libintl_prefix+set}" = set; then :
23920 withval=$with_libintl_prefix;
23921 if test "X$withval" = "Xno"; then
23922 use_additional=no
23923 else
23924 if test "X$withval" = "X"; then
23926 acl_save_prefix="$prefix"
23927 prefix="$acl_final_prefix"
23928 acl_save_exec_prefix="$exec_prefix"
23929 exec_prefix="$acl_final_exec_prefix"
23931 eval additional_includedir=\"$includedir\"
23932 eval additional_libdir=\"$libdir\"
23934 exec_prefix="$acl_save_exec_prefix"
23935 prefix="$acl_save_prefix"
23937 else
23938 additional_includedir="$withval/include"
23939 additional_libdir="$withval/lib"
23946 # Check whether --with-libintl-type was given.
23947 if test "${with_libintl_type+set}" = set; then :
23948 withval=$with_libintl_type; with_libintl_type=$withval
23949 else
23950 with_libintl_type=auto
23953 lib_type=`eval echo \$with_libintl_type`
23955 LIBINTL=
23956 LTLIBINTL=
23957 INCINTL=
23958 rpathdirs=
23959 ltrpathdirs=
23960 names_already_handled=
23961 names_next_round='intl '
23962 while test -n "$names_next_round"; do
23963 names_this_round="$names_next_round"
23964 names_next_round=
23965 for name in $names_this_round; do
23966 already_handled=
23967 for n in $names_already_handled; do
23968 if test "$n" = "$name"; then
23969 already_handled=yes
23970 break
23972 done
23973 if test -z "$already_handled"; then
23974 names_already_handled="$names_already_handled $name"
23975 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23976 eval value=\"\$HAVE_LIB$uppername\"
23977 if test -n "$value"; then
23978 if test "$value" = yes; then
23979 eval value=\"\$LIB$uppername\"
23980 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23981 eval value=\"\$LTLIB$uppername\"
23982 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23983 else
23986 else
23987 found_dir=
23988 found_la=
23989 found_so=
23990 found_a=
23991 if test $use_additional = yes; then
23992 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
23993 found_dir="$additional_libdir"
23994 found_so="$additional_libdir/lib$name.$shlibext"
23995 if test -f "$additional_libdir/lib$name.la"; then
23996 found_la="$additional_libdir/lib$name.la"
23998 elif test x$lib_type != xshared; then
23999 if test -f "$additional_libdir/lib$name.$libext"; then
24000 found_dir="$additional_libdir"
24001 found_a="$additional_libdir/lib$name.$libext"
24002 if test -f "$additional_libdir/lib$name.la"; then
24003 found_la="$additional_libdir/lib$name.la"
24008 if test "X$found_dir" = "X"; then
24009 for x in $LDFLAGS $LTLIBINTL; do
24011 acl_save_prefix="$prefix"
24012 prefix="$acl_final_prefix"
24013 acl_save_exec_prefix="$exec_prefix"
24014 exec_prefix="$acl_final_exec_prefix"
24015 eval x=\"$x\"
24016 exec_prefix="$acl_save_exec_prefix"
24017 prefix="$acl_save_prefix"
24019 case "$x" in
24020 -L*)
24021 dir=`echo "X$x" | sed -e 's/^X-L//'`
24022 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
24023 found_dir="$dir"
24024 found_so="$dir/lib$name.$shlibext"
24025 if test -f "$dir/lib$name.la"; then
24026 found_la="$dir/lib$name.la"
24028 elif test x$lib_type != xshared; then
24029 if test -f "$dir/lib$name.$libext"; then
24030 found_dir="$dir"
24031 found_a="$dir/lib$name.$libext"
24032 if test -f "$dir/lib$name.la"; then
24033 found_la="$dir/lib$name.la"
24038 esac
24039 if test "X$found_dir" != "X"; then
24040 break
24042 done
24044 if test "X$found_dir" != "X"; then
24045 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24046 if test "X$found_so" != "X"; then
24047 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
24048 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24049 else
24050 haveit=
24051 for x in $ltrpathdirs; do
24052 if test "X$x" = "X$found_dir"; then
24053 haveit=yes
24054 break
24056 done
24057 if test -z "$haveit"; then
24058 ltrpathdirs="$ltrpathdirs $found_dir"
24060 if test "$hardcode_direct" = yes; then
24061 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24062 else
24063 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24064 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24065 haveit=
24066 for x in $rpathdirs; do
24067 if test "X$x" = "X$found_dir"; then
24068 haveit=yes
24069 break
24071 done
24072 if test -z "$haveit"; then
24073 rpathdirs="$rpathdirs $found_dir"
24075 else
24076 haveit=
24077 for x in $LDFLAGS $LIBINTL; do
24079 acl_save_prefix="$prefix"
24080 prefix="$acl_final_prefix"
24081 acl_save_exec_prefix="$exec_prefix"
24082 exec_prefix="$acl_final_exec_prefix"
24083 eval x=\"$x\"
24084 exec_prefix="$acl_save_exec_prefix"
24085 prefix="$acl_save_prefix"
24087 if test "X$x" = "X-L$found_dir"; then
24088 haveit=yes
24089 break
24091 done
24092 if test -z "$haveit"; then
24093 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24095 if test "$hardcode_minus_L" != no; then
24096 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24097 else
24098 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24103 else
24104 if test "X$found_a" != "X"; then
24105 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24106 else
24107 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24110 additional_includedir=
24111 case "$found_dir" in
24112 */lib | */lib/)
24113 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24114 additional_includedir="$basedir/include"
24116 esac
24117 if test "X$additional_includedir" != "X"; then
24118 if test "X$additional_includedir" != "X/usr/include"; then
24119 haveit=
24120 if test "X$additional_includedir" = "X/usr/local/include"; then
24121 if test -n "$GCC"; then
24122 case $host_os in
24123 linux*) haveit=yes;;
24124 esac
24127 if test -z "$haveit"; then
24128 for x in $CPPFLAGS $INCINTL; do
24130 acl_save_prefix="$prefix"
24131 prefix="$acl_final_prefix"
24132 acl_save_exec_prefix="$exec_prefix"
24133 exec_prefix="$acl_final_exec_prefix"
24134 eval x=\"$x\"
24135 exec_prefix="$acl_save_exec_prefix"
24136 prefix="$acl_save_prefix"
24138 if test "X$x" = "X-I$additional_includedir"; then
24139 haveit=yes
24140 break
24142 done
24143 if test -z "$haveit"; then
24144 if test -d "$additional_includedir"; then
24145 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24151 if test -n "$found_la"; then
24152 save_libdir="$libdir"
24153 case "$found_la" in
24154 */* | *\\*) . "$found_la" ;;
24155 *) . "./$found_la" ;;
24156 esac
24157 libdir="$save_libdir"
24158 for dep in $dependency_libs; do
24159 case "$dep" in
24160 -L*)
24161 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24162 if test "X$additional_libdir" != "X/usr/lib"; then
24163 haveit=
24164 if test "X$additional_libdir" = "X/usr/local/lib"; then
24165 if test -n "$GCC"; then
24166 case $host_os in
24167 linux*) haveit=yes;;
24168 esac
24171 if test -z "$haveit"; then
24172 haveit=
24173 for x in $LDFLAGS $LIBINTL; do
24175 acl_save_prefix="$prefix"
24176 prefix="$acl_final_prefix"
24177 acl_save_exec_prefix="$exec_prefix"
24178 exec_prefix="$acl_final_exec_prefix"
24179 eval x=\"$x\"
24180 exec_prefix="$acl_save_exec_prefix"
24181 prefix="$acl_save_prefix"
24183 if test "X$x" = "X-L$additional_libdir"; then
24184 haveit=yes
24185 break
24187 done
24188 if test -z "$haveit"; then
24189 if test -d "$additional_libdir"; then
24190 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24193 haveit=
24194 for x in $LDFLAGS $LTLIBINTL; do
24196 acl_save_prefix="$prefix"
24197 prefix="$acl_final_prefix"
24198 acl_save_exec_prefix="$exec_prefix"
24199 exec_prefix="$acl_final_exec_prefix"
24200 eval x=\"$x\"
24201 exec_prefix="$acl_save_exec_prefix"
24202 prefix="$acl_save_prefix"
24204 if test "X$x" = "X-L$additional_libdir"; then
24205 haveit=yes
24206 break
24208 done
24209 if test -z "$haveit"; then
24210 if test -d "$additional_libdir"; then
24211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24217 -R*)
24218 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24219 if test "$enable_rpath" != no; then
24220 haveit=
24221 for x in $rpathdirs; do
24222 if test "X$x" = "X$dir"; then
24223 haveit=yes
24224 break
24226 done
24227 if test -z "$haveit"; then
24228 rpathdirs="$rpathdirs $dir"
24230 haveit=
24231 for x in $ltrpathdirs; do
24232 if test "X$x" = "X$dir"; then
24233 haveit=yes
24234 break
24236 done
24237 if test -z "$haveit"; then
24238 ltrpathdirs="$ltrpathdirs $dir"
24242 -l*)
24243 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24245 *.la)
24246 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24249 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
24250 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24252 esac
24253 done
24255 else
24256 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
24257 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24258 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24259 else
24260 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
24261 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
24266 done
24267 done
24268 if test "X$rpathdirs" != "X"; then
24269 if test -n "$hardcode_libdir_separator"; then
24270 alldirs=
24271 for found_dir in $rpathdirs; do
24272 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24273 done
24274 acl_save_libdir="$libdir"
24275 libdir="$alldirs"
24276 eval flag=\"$hardcode_libdir_flag_spec\"
24277 libdir="$acl_save_libdir"
24278 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24279 else
24280 for found_dir in $rpathdirs; do
24281 acl_save_libdir="$libdir"
24282 libdir="$found_dir"
24283 eval flag=\"$hardcode_libdir_flag_spec\"
24284 libdir="$acl_save_libdir"
24285 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24286 done
24289 if test "X$ltrpathdirs" != "X"; then
24290 for found_dir in $ltrpathdirs; do
24291 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24292 done
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
24296 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
24297 if eval \${$gt_func_gnugettext_libintl+:} false; then :
24298 $as_echo_n "(cached) " >&6
24299 else
24300 gt_save_CPPFLAGS="$CPPFLAGS"
24301 CPPFLAGS="$CPPFLAGS $INCINTL"
24302 gt_save_LIBS="$LIBS"
24303 LIBS="$LIBS $LIBINTL"
24304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24305 /* end confdefs.h. */
24307 #include <libintl.h>
24308 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
24309 extern int _nl_msg_cat_cntr;
24310 extern
24311 #ifdef __cplusplus
24313 #endif
24314 const char *_nl_expand_alias (const char *);
24315 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
24316 #else
24317 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
24318 #endif
24319 $gt_revision_test_code
24322 main ()
24325 bindtextdomain ("", "");
24326 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
24329 return 0;
24331 _ACEOF
24332 if ac_fn_c_try_link "$LINENO"; then :
24333 eval "$gt_func_gnugettext_libintl=yes"
24334 else
24335 eval "$gt_func_gnugettext_libintl=no"
24337 rm -f core conftest.err conftest.$ac_objext \
24338 conftest$ac_exeext conftest.$ac_ext
24339 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
24340 LIBS="$LIBS $LIBICONV"
24341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24342 /* end confdefs.h. */
24344 #include <libintl.h>
24345 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
24346 extern int _nl_msg_cat_cntr;
24347 extern
24348 #ifdef __cplusplus
24350 #endif
24351 const char *_nl_expand_alias (const char *);
24352 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
24353 #else
24354 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
24355 #endif
24356 $gt_revision_test_code
24359 main ()
24362 bindtextdomain ("", "");
24363 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
24366 return 0;
24368 _ACEOF
24369 if ac_fn_c_try_link "$LINENO"; then :
24370 LIBINTL="$LIBINTL $LIBICONV"
24371 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
24372 eval "$gt_func_gnugettext_libintl=yes"
24375 rm -f core conftest.err conftest.$ac_objext \
24376 conftest$ac_exeext conftest.$ac_ext
24378 CPPFLAGS="$gt_save_CPPFLAGS"
24379 LIBS="$gt_save_LIBS"
24381 eval ac_res=\$$gt_func_gnugettext_libintl
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24383 $as_echo "$ac_res" >&6; }
24386 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
24387 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
24388 && test "$PACKAGE" != gettext-runtime \
24389 && test "$PACKAGE" != gettext-tools; }; then
24390 gt_use_preinstalled_gnugettext=yes
24391 else
24392 LIBINTL=
24393 LTLIBINTL=
24394 INCINTL=
24399 if test -n "$INTL_MACOSX_LIBS"; then
24400 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24401 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24402 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
24403 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
24407 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24408 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24410 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
24412 else
24413 USE_NLS=no
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
24418 $as_echo_n "checking whether to use NLS... " >&6; }
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
24420 $as_echo "$USE_NLS" >&6; }
24421 if test "$USE_NLS" = "yes"; then
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
24423 $as_echo_n "checking where the gettext function comes from... " >&6; }
24424 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24425 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
24426 gt_source="external libintl"
24427 else
24428 gt_source="libc"
24430 else
24431 gt_source="included intl directory"
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
24434 $as_echo "$gt_source" >&6; }
24437 if test "$USE_NLS" = "yes"; then
24439 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24440 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
24442 $as_echo_n "checking how to link with libintl... " >&6; }
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
24444 $as_echo "$LIBINTL" >&6; }
24446 for element in $INCINTL; do
24447 haveit=
24448 for x in $CPPFLAGS; do
24450 acl_save_prefix="$prefix"
24451 prefix="$acl_final_prefix"
24452 acl_save_exec_prefix="$exec_prefix"
24453 exec_prefix="$acl_final_exec_prefix"
24454 eval x=\"$x\"
24455 exec_prefix="$acl_save_exec_prefix"
24456 prefix="$acl_save_prefix"
24458 if test "X$x" = "X$element"; then
24459 haveit=yes
24460 break
24462 done
24463 if test -z "$haveit"; then
24464 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24466 done
24471 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
24474 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
24478 POSUB=po
24483 INTLLIBS="$LIBINTL"
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
24503 $as_echo_n "checking whether NLS is requested... " >&6; }
24504 if test x"$USE_NLS" != xyes; then
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24506 $as_echo "no" >&6; }
24507 else
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24509 $as_echo "yes" >&6; }
24511 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
24515 $as_echo_n "checking for catalogs to be installed... " >&6; }
24516 # Look for .po and .gmo files in the source directory.
24517 CATALOGS=
24518 XLINGUAS=
24519 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
24520 # If there aren't any .gmo files the shell will give us the
24521 # literal string "../path/to/srcdir/po/*.gmo" which has to be
24522 # weeded out.
24523 case "$cat" in *\**)
24524 continue;;
24525 esac
24526 # The quadruple backslash is collapsed to a double backslash
24527 # by the backticks, then collapsed again by the double quotes,
24528 # leaving us with one backslash in the sed expression (right
24529 # before the dot that mustn't act as a wildcard).
24530 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
24531 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
24532 # The user is allowed to set LINGUAS to a list of languages to
24533 # install catalogs for. If it's empty that means "all of them."
24534 if test "x$LINGUAS" = x; then
24535 CATALOGS="$CATALOGS $cat"
24536 XLINGUAS="$XLINGUAS $lang"
24537 else
24538 case "$LINGUAS" in *$lang*)
24539 CATALOGS="$CATALOGS $cat"
24540 XLINGUAS="$XLINGUAS $lang"
24542 esac
24544 done
24545 LINGUAS="$XLINGUAS"
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
24547 $as_echo "$LINGUAS" >&6; }
24550 DATADIRNAME=share
24552 INSTOBJEXT=.mo
24554 GENCAT=gencat
24556 CATOBJEXT=.gmo
24560 localedir='${datadir}/locale'
24563 if test x"$USE_NLS" = xyes; then
24564 CONFIG_ALL="$CONFIG_ALL all-po"
24565 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
24566 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
24567 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
24570 PACKAGE=gdb
24572 cat >>confdefs.h <<_ACEOF
24573 #define PACKAGE "$PACKAGE"
24574 _ACEOF
24578 # We never need to detect it in this sub-configure.
24579 # But preserve it for config.status --recheck.
24583 MAKEINFO_EXTRA_FLAGS=""
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
24585 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
24586 if ${gdb_cv_have_makeinfo_click+:} false; then :
24587 $as_echo_n "(cached) " >&6
24588 else
24589 echo '@clicksequence{a @click{} b}' >conftest.texinfo
24590 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
24591 gdb_cv_have_makeinfo_click=yes
24592 else
24593 gdb_cv_have_makeinfo_click=no
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
24597 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
24598 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
24599 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
24605 # Check whether --with-separate-debug-dir was given.
24606 if test "${with_separate_debug_dir+set}" = set; then :
24607 withval=$with_separate_debug_dir;
24608 DEBUGDIR=$withval
24609 else
24610 DEBUGDIR=${libdir}/debug
24614 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24616 ac_define_dir=`eval echo $DEBUGDIR`
24617 ac_define_dir=`eval echo $ac_define_dir`
24619 cat >>confdefs.h <<_ACEOF
24620 #define DEBUGDIR "$ac_define_dir"
24621 _ACEOF
24626 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
24627 if test "x$prefix" = xNONE; then
24628 test_prefix=/usr/local
24629 else
24630 test_prefix=$prefix
24632 else
24633 test_prefix=$exec_prefix
24635 value=0
24636 case ${ac_define_dir} in
24637 "${test_prefix}"|"${test_prefix}/"*|\
24638 '${exec_prefix}'|'${exec_prefix}/'*)
24639 value=1
24641 esac
24643 cat >>confdefs.h <<_ACEOF
24644 #define DEBUGDIR_RELOCATABLE $value
24645 _ACEOF
24651 # Check whether --with-additional-debug-dirs was given.
24652 if test "${with_additional_debug_dirs+set}" = set; then :
24653 withval=$with_additional_debug_dirs;
24654 cat >>confdefs.h <<_ACEOF
24655 #define ADDITIONAL_DEBUG_DIRS "${withval}"
24656 _ACEOF
24661 # We can't pass paths as command line arguments.
24662 # Mingw32 tries to be clever and will convert the paths for us.
24663 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
24664 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
24665 # This breaks GDB's relocatable path conversions since paths passed in
24666 # config.h would not get so translated, the path prefixes no longer match.
24668 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24669 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24670 ac_define_dir=`eval echo $bindir`
24671 ac_define_dir=`eval echo $ac_define_dir`
24673 cat >>confdefs.h <<_ACEOF
24674 #define BINDIR "$ac_define_dir"
24675 _ACEOF
24679 # GDB's datadir relocation
24683 # Check whether --with-gdb-datadir was given.
24684 if test "${with_gdb_datadir+set}" = set; then :
24685 withval=$with_gdb_datadir;
24686 GDB_DATADIR=$withval
24687 else
24688 GDB_DATADIR=${datadir}/gdb
24692 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24693 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24694 ac_define_dir=`eval echo $GDB_DATADIR`
24695 ac_define_dir=`eval echo $ac_define_dir`
24697 cat >>confdefs.h <<_ACEOF
24698 #define GDB_DATADIR "$ac_define_dir"
24699 _ACEOF
24704 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
24705 if test "x$prefix" = xNONE; then
24706 test_prefix=/usr/local
24707 else
24708 test_prefix=$prefix
24710 else
24711 test_prefix=$exec_prefix
24713 value=0
24714 case ${ac_define_dir} in
24715 "${test_prefix}"|"${test_prefix}/"*|\
24716 '${exec_prefix}'|'${exec_prefix}/'*)
24717 value=1
24719 esac
24721 cat >>confdefs.h <<_ACEOF
24722 #define GDB_DATADIR_RELOCATABLE $value
24723 _ACEOF
24729 # Check whether --with-relocated-sources was given.
24730 if test "${with_relocated_sources+set}" = set; then :
24731 withval=$with_relocated_sources; reloc_srcdir="${withval}"
24733 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24734 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24735 ac_define_dir=`eval echo $reloc_srcdir`
24736 ac_define_dir=`eval echo $ac_define_dir`
24738 cat >>confdefs.h <<_ACEOF
24739 #define RELOC_SRCDIR "$ac_define_dir"
24740 _ACEOF
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
24748 $as_echo_n "checking for default auto-load directory... " >&6; }
24750 # Check whether --with-auto-load-dir was given.
24751 if test "${with_auto_load_dir+set}" = set; then :
24752 withval=$with_auto_load_dir;
24753 else
24754 with_auto_load_dir='$debugdir:$datadir/auto-load'
24757 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
24759 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24760 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24761 ac_define_dir=`eval echo $escape_dir`
24762 ac_define_dir=`eval echo $ac_define_dir`
24764 cat >>confdefs.h <<_ACEOF
24765 #define AUTO_LOAD_DIR "$ac_define_dir"
24766 _ACEOF
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
24770 $as_echo "$with_auto_load_dir" >&6; }
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
24773 $as_echo_n "checking for default auto-load safe-path... " >&6; }
24775 # Check whether --with-auto-load-safe-path was given.
24776 if test "${with_auto_load_safe_path+set}" = set; then :
24777 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
24778 with_auto_load_safe_path="/"
24780 else
24781 with_auto_load_safe_path="$with_auto_load_dir"
24784 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
24786 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24788 ac_define_dir=`eval echo $escape_dir`
24789 ac_define_dir=`eval echo $ac_define_dir`
24791 cat >>confdefs.h <<_ACEOF
24792 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
24793 _ACEOF
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
24797 $as_echo "$with_auto_load_safe_path" >&6; }
24801 subdirs="$subdirs testsuite"
24804 # Check whether to support alternative target configurations
24805 # Check whether --enable-targets was given.
24806 if test "${enable_targets+set}" = set; then :
24807 enableval=$enable_targets; case "${enableval}" in
24808 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
24810 no) enable_targets= ;;
24811 *) enable_targets=$enableval ;;
24812 esac
24816 # Check whether --enable-64-bit-bfd was given.
24817 if test "${enable_64_bit_bfd+set}" = set; then :
24818 enableval=$enable_64_bit_bfd; case $enableval in #(
24819 yes|no) :
24820 ;; #(
24821 *) :
24822 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
24823 *) :
24825 esac
24826 else
24827 enable_64_bit_bfd=no
24831 if test "x$enable_64_bit_bfd" = "xno"; then :
24832 # The cast to long int works around a bug in the HP C Compiler
24833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24835 # This bug is HP SR number 8606223364.
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
24837 $as_echo_n "checking size of void *... " >&6; }
24838 if ${ac_cv_sizeof_void_p+:} false; then :
24839 $as_echo_n "(cached) " >&6
24840 else
24841 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
24843 else
24844 if test "$ac_cv_type_void_p" = yes; then
24845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24847 as_fn_error 77 "cannot compute sizeof (void *)
24848 See \`config.log' for more details" "$LINENO" 5; }
24849 else
24850 ac_cv_sizeof_void_p=0
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
24856 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24860 cat >>confdefs.h <<_ACEOF
24861 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24862 _ACEOF
24865 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
24866 enable_64_bit_bfd=yes
24871 if test "x$enable_64_bit_bfd" = "xyes"; then
24872 ENABLE_BFD_64_BIT_TRUE=
24873 ENABLE_BFD_64_BIT_FALSE='#'
24874 else
24875 ENABLE_BFD_64_BIT_TRUE='#'
24876 ENABLE_BFD_64_BIT_FALSE=
24881 # Provide defaults for some variables set by the per-host and per-target
24882 # configuration.
24883 gdb_host_obs=posix-hdep.o
24885 if test "${target}" = "${host}"; then
24886 gdb_native=yes
24887 else
24888 gdb_native=no
24891 . $srcdir/configure.host
24893 # Accumulate some settings from configure.tgt over all enabled targets
24895 TARGET_OBS=
24896 all_targets=
24897 HAVE_NATIVE_GCORE_TARGET=
24899 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
24901 if test "$targ_alias" = "all"; then
24902 all_targets=true
24903 else
24904 # Canonicalize the secondary target names.
24905 result=`$ac_config_sub $targ_alias 2>/dev/null`
24906 if test -n "$result"; then
24907 targ=$result
24908 else
24909 targ=$targ_alias
24912 . ${srcdir}/configure.tgt
24914 if test -z "${gdb_target_obs}"; then :
24915 as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
24918 # Target-specific object files
24919 for i in ${gdb_target_obs}; do
24920 case " $TARGET_OBS " in
24921 *" ${i} "*) ;;
24923 TARGET_OBS="$TARGET_OBS ${i}"
24925 esac
24926 done
24928 # Check whether this target needs 64-bit CORE_ADDR
24929 if test x${enable_64_bit_bfd} = xno; then
24930 . ${srcdir}/../bfd/config.bfd
24933 # Check whether this target is native and supports gcore.
24934 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
24935 && $gdb_have_gcore; then
24936 HAVE_NATIVE_GCORE_TARGET=1
24939 done
24941 if test x${all_targets} = xtrue; then
24942 if test x${enable_64_bit_bfd} = xyes; then
24943 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
24944 else
24945 TARGET_OBS='$(ALL_TARGET_OBS)'
24949 # AMD debugger API support.
24952 # Check whether --with-amd-dbgapi was given.
24953 if test "${with_amd_dbgapi+set}" = set; then :
24954 withval=$with_amd_dbgapi;
24955 case $withval in
24956 yes | no | auto)
24959 as_fn_error $? "bad value $withval for --with-amd-dbgapi" "$LINENO" 5
24961 esac
24963 else
24964 with_amd_dbgapi=auto
24968 # If the user passes --without-amd-dbgapi but also explicitly enables a target
24969 # that requires amd-dbgapi, it is an error.
24970 if test "$with_amd_dbgapi" = no -a "$gdb_require_amd_dbgapi" = true; then
24971 as_fn_error $? "an explicitly enabled target requires amd-dbgapi, but amd-dbgapi is explicitly disabled" "$LINENO" 5
24974 # Look for amd-dbgapi if:
24976 # - a target architecture requiring it has explicitly been enabled, or
24977 # - --enable-targets=all was provided and the user did not explicitly disable
24978 # amd-dbgapi support
24979 if test "$gdb_require_amd_dbgapi" = true \
24980 -o \( "$all_targets" = true -a "$with_amd_dbgapi" != no \); then
24981 # amd-dbgapi version 0.68 is part of ROCm 5.4. There is no guarantee of API
24982 # stability until amd-dbgapi hits 1.0, but for convenience, still check for
24983 # greater or equal that version. It can be handy when testing with a newer
24984 # version of the library.
24986 pkg_failed=no
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.68.0" >&5
24988 $as_echo_n "checking for amd-dbgapi >= 0.68.0... " >&6; }
24990 if test -n "$AMD_DBGAPI_CFLAGS"; then
24991 pkg_cv_AMD_DBGAPI_CFLAGS="$AMD_DBGAPI_CFLAGS"
24992 elif test -n "$PKG_CONFIG"; then
24993 if test -n "$PKG_CONFIG" && \
24994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
24995 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
24996 ac_status=$?
24997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24998 test $ac_status = 0; }; then
24999 pkg_cv_AMD_DBGAPI_CFLAGS=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.68.0" 2>/dev/null`
25000 test "x$?" != "x0" && pkg_failed=yes
25001 else
25002 pkg_failed=yes
25004 else
25005 pkg_failed=untried
25007 if test -n "$AMD_DBGAPI_LIBS"; then
25008 pkg_cv_AMD_DBGAPI_LIBS="$AMD_DBGAPI_LIBS"
25009 elif test -n "$PKG_CONFIG"; then
25010 if test -n "$PKG_CONFIG" && \
25011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
25012 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
25013 ac_status=$?
25014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25015 test $ac_status = 0; }; then
25016 pkg_cv_AMD_DBGAPI_LIBS=`$PKG_CONFIG --libs "amd-dbgapi >= 0.68.0" 2>/dev/null`
25017 test "x$?" != "x0" && pkg_failed=yes
25018 else
25019 pkg_failed=yes
25021 else
25022 pkg_failed=untried
25025 if test $pkg_failed = no; then
25026 pkg_save_LDFLAGS="$LDFLAGS"
25027 LDFLAGS="$LDFLAGS $pkg_cv_AMD_DBGAPI_LIBS"
25028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25029 /* end confdefs.h. */
25032 main ()
25036 return 0;
25038 _ACEOF
25039 if ac_fn_c_try_link "$LINENO"; then :
25041 else
25042 pkg_failed=yes
25044 rm -f core conftest.err conftest.$ac_objext \
25045 conftest$ac_exeext conftest.$ac_ext
25046 LDFLAGS=$pkg_save_LDFLAGS
25051 if test $pkg_failed = yes; then
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25053 $as_echo "no" >&6; }
25055 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25056 _pkg_short_errors_supported=yes
25057 else
25058 _pkg_short_errors_supported=no
25060 if test $_pkg_short_errors_supported = yes; then
25061 AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
25062 else
25063 AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
25065 # Put the nasty error message in config.log where it belongs
25066 echo "$AMD_DBGAPI_PKG_ERRORS" >&5
25068 has_amd_dbgapi=no
25069 elif test $pkg_failed = untried; then
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25071 $as_echo "no" >&6; }
25072 has_amd_dbgapi=no
25073 else
25074 AMD_DBGAPI_CFLAGS=$pkg_cv_AMD_DBGAPI_CFLAGS
25075 AMD_DBGAPI_LIBS=$pkg_cv_AMD_DBGAPI_LIBS
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25077 $as_echo "yes" >&6; }
25078 has_amd_dbgapi=yes
25081 if test "$has_amd_dbgapi" = "yes"; then
25083 $as_echo "#define HAVE_AMD_DBGAPI 1" >>confdefs.h
25085 TARGET_OBS="$TARGET_OBS amd-dbgapi-target.o"
25087 # If --enable-targets=all was provided, use the list of all files depending
25088 # on amd-dbgapi that is hardcoded in the Makefile. Else, the appropriate
25089 # architecture entry in configure.tgt will have added the files to
25090 # gdb_target_obs.
25091 if test "$all_targets" = true; then
25092 TARGET_OBS="$TARGET_OBS \$(ALL_AMD_DBGAPI_TARGET_OBS)"
25094 elif test "$gdb_require_amd_dbgapi" = true -o "$with_amd_dbgapi" = yes; then
25095 # amd-dbgapi was not found and...
25097 # - a target requiring it was explicitly enabled, or
25098 # - the user explicitly wants to enable amd-dbgapi
25099 as_fn_error $? "amd-dbgapi is required, but cannot find an appropriate version: $AMD_DBGAPI_PKG_ERRORS" "$LINENO" 5
25106 # For other settings, only the main target counts.
25107 gdb_sim=
25108 gdb_osabi=
25109 targ=$target; . ${srcdir}/configure.tgt
25111 # Fetch the default architecture and default target vector from BFD.
25112 targ=$target; . $srcdir/../bfd/config.bfd
25114 # We only want the first architecture, so strip off the others if
25115 # there is more than one.
25116 targ_archs=`echo $targ_archs | sed 's/ .*//'`
25118 if test "x$targ_archs" != x; then
25120 cat >>confdefs.h <<_ACEOF
25121 #define DEFAULT_BFD_ARCH $targ_archs
25122 _ACEOF
25125 if test "x$targ_defvec" != x; then
25127 cat >>confdefs.h <<_ACEOF
25128 #define DEFAULT_BFD_VEC $targ_defvec
25129 _ACEOF
25133 # Enable TUI.
25134 # Check whether --enable-tui was given.
25135 if test "${enable_tui+set}" = set; then :
25136 enableval=$enable_tui;
25137 case $enableval in
25138 yes | no | auto)
25141 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5
25143 esac
25145 else
25146 enable_tui=auto
25150 # Enable gdbtk.
25151 # Check whether --enable-gdbtk was given.
25152 if test "${enable_gdbtk+set}" = set; then :
25153 enableval=$enable_gdbtk;
25154 case $enableval in
25155 yes | no)
25158 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5
25160 esac
25162 else
25163 if test -d "$srcdir/gdbtk"; then
25164 enable_gdbtk=yes
25165 else
25166 enable_gdbtk=no
25170 # We unconditionally disable gdbtk tests on selected platforms.
25171 case $host_os in
25172 go32* | windows*)
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
25174 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
25175 enable_gdbtk=no ;;
25176 esac
25178 # Handle optional debuginfod support
25180 # Handle optional debuginfod support as well as optional section
25181 # downloading support.
25183 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
25185 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
25186 # version >= 0.188.
25188 # Check whether --with-debuginfod was given.
25189 if test "${with_debuginfod+set}" = set; then :
25190 withval=$with_debuginfod;
25191 else
25192 with_debuginfod=auto
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
25196 $as_echo_n "checking whether to use debuginfod... " >&6; }
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
25198 $as_echo "$with_debuginfod" >&6; }
25200 if test "x$with_debuginfod" != xno; then
25202 pkg_failed=no
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
25204 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
25206 if test -n "$DEBUGINFOD_CFLAGS"; then
25207 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
25208 elif test -n "$PKG_CONFIG"; then
25209 if test -n "$PKG_CONFIG" && \
25210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
25211 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
25212 ac_status=$?
25213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214 test $ac_status = 0; }; then
25215 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
25216 test "x$?" != "x0" && pkg_failed=yes
25217 else
25218 pkg_failed=yes
25220 else
25221 pkg_failed=untried
25223 if test -n "$DEBUGINFOD_LIBS"; then
25224 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
25225 elif test -n "$PKG_CONFIG"; then
25226 if test -n "$PKG_CONFIG" && \
25227 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
25228 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
25229 ac_status=$?
25230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25231 test $ac_status = 0; }; then
25232 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
25233 test "x$?" != "x0" && pkg_failed=yes
25234 else
25235 pkg_failed=yes
25237 else
25238 pkg_failed=untried
25241 if test $pkg_failed = no; then
25242 pkg_save_LDFLAGS="$LDFLAGS"
25243 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
25244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25245 /* end confdefs.h. */
25248 main ()
25252 return 0;
25254 _ACEOF
25255 if ac_fn_c_try_link "$LINENO"; then :
25257 else
25258 pkg_failed=yes
25260 rm -f core conftest.err conftest.$ac_objext \
25261 conftest$ac_exeext conftest.$ac_ext
25262 LDFLAGS=$pkg_save_LDFLAGS
25267 if test $pkg_failed = yes; then
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25269 $as_echo "no" >&6; }
25271 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25272 _pkg_short_errors_supported=yes
25273 else
25274 _pkg_short_errors_supported=no
25276 if test $_pkg_short_errors_supported = yes; then
25277 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
25278 else
25279 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
25281 # Put the nasty error message in config.log where it belongs
25282 echo "$DEBUGINFOD_PKG_ERRORS" >&5
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
25285 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
25286 elif test $pkg_failed = untried; then
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25288 $as_echo "no" >&6; }
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
25290 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
25291 else
25292 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
25293 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25295 $as_echo "yes" >&6; }
25297 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
25302 pkg_failed=no
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
25304 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
25306 if test -n "$DEBUGINFOD_CFLAGS"; then
25307 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
25308 elif test -n "$PKG_CONFIG"; then
25309 if test -n "$PKG_CONFIG" && \
25310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
25311 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
25312 ac_status=$?
25313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25314 test $ac_status = 0; }; then
25315 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
25316 test "x$?" != "x0" && pkg_failed=yes
25317 else
25318 pkg_failed=yes
25320 else
25321 pkg_failed=untried
25323 if test -n "$DEBUGINFOD_LIBS"; then
25324 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
25325 elif test -n "$PKG_CONFIG"; then
25326 if test -n "$PKG_CONFIG" && \
25327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
25328 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
25329 ac_status=$?
25330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25331 test $ac_status = 0; }; then
25332 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
25333 test "x$?" != "x0" && pkg_failed=yes
25334 else
25335 pkg_failed=yes
25337 else
25338 pkg_failed=untried
25341 if test $pkg_failed = no; then
25342 pkg_save_LDFLAGS="$LDFLAGS"
25343 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
25344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25345 /* end confdefs.h. */
25348 main ()
25352 return 0;
25354 _ACEOF
25355 if ac_fn_c_try_link "$LINENO"; then :
25357 else
25358 pkg_failed=yes
25360 rm -f core conftest.err conftest.$ac_objext \
25361 conftest$ac_exeext conftest.$ac_ext
25362 LDFLAGS=$pkg_save_LDFLAGS
25367 if test $pkg_failed = yes; then
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25369 $as_echo "no" >&6; }
25371 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25372 _pkg_short_errors_supported=yes
25373 else
25374 _pkg_short_errors_supported=no
25376 if test $_pkg_short_errors_supported = yes; then
25377 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
25378 else
25379 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
25381 # Put the nasty error message in config.log where it belongs
25382 echo "$DEBUGINFOD_PKG_ERRORS" >&5
25384 if test "x$with_debuginfod" = xyes; then
25385 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
25386 else
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
25388 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
25390 elif test $pkg_failed = untried; then
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25392 $as_echo "no" >&6; }
25393 if test "x$with_debuginfod" = xyes; then
25394 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
25395 else
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
25397 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
25399 else
25400 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
25401 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25403 $as_echo "yes" >&6; }
25405 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
25408 else
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
25410 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
25414 # Libunwind support for ia64.
25416 # Check whether --with-libunwind-ia64 was given.
25417 if test "${with_libunwind_ia64+set}" = set; then :
25418 withval=$with_libunwind_ia64;
25419 else
25420 with_libunwind_ia64=auto
25424 # Backward compatibility option.
25425 if test "${with_libunwind+set}" = set; then
25426 if test x"$with_libunwind_ia64" != xauto; then
25427 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
25430 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
25431 with_libunwind_ia64="$with_libunwind"
25434 case "$with_libunwind_ia64" in
25435 yes | no)
25437 auto)
25438 for ac_header in libunwind-ia64.h
25439 do :
25440 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
25441 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
25442 cat >>confdefs.h <<_ACEOF
25443 #define HAVE_LIBUNWIND_IA64_H 1
25444 _ACEOF
25448 done
25450 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
25453 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
25455 esac
25457 if test x"$with_libunwind_ia64" = xyes; then
25458 for ac_header in libunwind-ia64.h
25459 do :
25460 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
25461 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
25462 cat >>confdefs.h <<_ACEOF
25463 #define HAVE_LIBUNWIND_IA64_H 1
25464 _ACEOF
25468 done
25470 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
25471 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
25473 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
25474 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
25475 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
25478 opt_curses=no
25480 # Check whether --with-curses was given.
25481 if test "${with_curses+set}" = set; then :
25482 withval=$with_curses; opt_curses=$withval
25486 prefer_curses=no
25487 if test "$opt_curses" = "yes"; then
25488 prefer_curses=yes
25491 # Profiling support.
25492 # Check whether --enable-profiling was given.
25493 if test "${enable_profiling+set}" = set; then :
25494 enableval=$enable_profiling;
25495 case $enableval in
25496 yes | no)
25499 as_fn_error $? "bad value $enableval for --enable-profiling" "$LINENO" 5
25501 esac
25503 else
25504 enable_profiling=no
25508 for ac_func in monstartup _mcleanup
25509 do :
25510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25511 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25512 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25513 cat >>confdefs.h <<_ACEOF
25514 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25515 _ACEOF
25518 done
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
25521 $as_echo_n "checking for _etext... " >&6; }
25522 if ${ac_cv_var__etext+:} false; then :
25523 $as_echo_n "(cached) " >&6
25524 else
25525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25526 /* end confdefs.h. */
25527 #include <stdlib.h>
25528 extern char _etext;
25530 main ()
25532 free (&_etext);
25535 return 0;
25537 _ACEOF
25538 if ac_fn_c_try_link "$LINENO"; then :
25539 ac_cv_var__etext=yes
25540 else
25541 ac_cv_var__etext=no
25544 rm -f core conftest.err conftest.$ac_objext \
25545 conftest$ac_exeext conftest.$ac_ext
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
25549 $as_echo "$ac_cv_var__etext" >&6; }
25550 if test "$ac_cv_var__etext" = yes; then
25552 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
25556 $as_echo_n "checking for etext... " >&6; }
25557 if ${ac_cv_var_etext+:} false; then :
25558 $as_echo_n "(cached) " >&6
25559 else
25560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25561 /* end confdefs.h. */
25562 #include <stdlib.h>
25563 extern char etext;
25565 main ()
25567 free (&etext);
25570 return 0;
25572 _ACEOF
25573 if ac_fn_c_try_link "$LINENO"; then :
25574 ac_cv_var_etext=yes
25575 else
25576 ac_cv_var_etext=no
25579 rm -f core conftest.err conftest.$ac_objext \
25580 conftest$ac_exeext conftest.$ac_ext
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
25584 $as_echo "$ac_cv_var_etext" >&6; }
25585 if test "$ac_cv_var_etext" = yes; then
25587 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
25590 if test "$enable_profiling" = yes ; then
25591 if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
25592 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
25594 PROFILE_CFLAGS=-pg
25595 OLD_CFLAGS="$CFLAGS"
25596 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
25599 $as_echo_n "checking whether $CC supports -pg... " >&6; }
25600 if ${ac_cv_cc_supports_pg+:} false; then :
25601 $as_echo_n "(cached) " >&6
25602 else
25603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25604 /* end confdefs.h. */
25607 main ()
25609 int x;
25611 return 0;
25613 _ACEOF
25614 if ac_fn_c_try_compile "$LINENO"; then :
25615 ac_cv_cc_supports_pg=yes
25616 else
25617 ac_cv_cc_supports_pg=no
25620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
25624 $as_echo "$ac_cv_cc_supports_pg" >&6; }
25626 if test "$ac_cv_cc_supports_pg" = no; then
25627 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
25630 CFLAGS="$OLD_CFLAGS"
25633 CODESIGN_CERT=
25634 # Check whether --enable-codesign was given.
25635 if test "${enable_codesign+set}" = set; then :
25636 enableval=$enable_codesign; CODESIGN_CERT=$enableval
25643 # Check whether --with-pkgversion was given.
25644 if test "${with_pkgversion+set}" = set; then :
25645 withval=$with_pkgversion; case "$withval" in
25646 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
25647 no) PKGVERSION= ;;
25648 *) PKGVERSION="($withval) " ;;
25649 esac
25650 else
25651 PKGVERSION="(GDB) "
25659 # Check whether --with-bugurl was given.
25660 if test "${with_bugurl+set}" = set; then :
25661 withval=$with_bugurl; case "$withval" in
25662 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
25663 no) BUGURL=
25665 *) BUGURL="$withval"
25667 esac
25668 else
25669 BUGURL="https://www.gnu.org/software/gdb/bugs/"
25673 case ${BUGURL} in
25675 REPORT_BUGS_TO=
25676 REPORT_BUGS_TEXI=
25679 REPORT_BUGS_TO="<$BUGURL>"
25680 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
25682 esac;
25687 cat >>confdefs.h <<_ACEOF
25688 #define PKGVERSION "$PKGVERSION"
25689 _ACEOF
25692 cat >>confdefs.h <<_ACEOF
25693 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
25694 _ACEOF
25697 # --------------------- #
25698 # Checks for programs. #
25699 # --------------------- #
25701 for ac_prog in gawk mawk nawk awk
25703 # Extract the first word of "$ac_prog", so it can be a program name with args.
25704 set dummy $ac_prog; ac_word=$2
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25706 $as_echo_n "checking for $ac_word... " >&6; }
25707 if ${ac_cv_prog_AWK+:} false; then :
25708 $as_echo_n "(cached) " >&6
25709 else
25710 if test -n "$AWK"; then
25711 ac_cv_prog_AWK="$AWK" # Let the user override the test.
25712 else
25713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25714 for as_dir in $PATH
25716 IFS=$as_save_IFS
25717 test -z "$as_dir" && as_dir=.
25718 for ac_exec_ext in '' $ac_executable_extensions; do
25719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25720 ac_cv_prog_AWK="$ac_prog"
25721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25722 break 2
25724 done
25725 done
25726 IFS=$as_save_IFS
25730 AWK=$ac_cv_prog_AWK
25731 if test -n "$AWK"; then
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25733 $as_echo "$AWK" >&6; }
25734 else
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25736 $as_echo "no" >&6; }
25740 test -n "$AWK" && break
25741 done
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25745 $as_echo_n "checking whether ln -s works... " >&6; }
25746 LN_S=$as_ln_s
25747 if test "$LN_S" = "ln -s"; then
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25749 $as_echo "yes" >&6; }
25750 else
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25752 $as_echo "no, using $LN_S" >&6; }
25755 if test -n "$ac_tool_prefix"; then
25756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
25757 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25759 $as_echo_n "checking for $ac_word... " >&6; }
25760 if ${ac_cv_prog_RANLIB+:} false; then :
25761 $as_echo_n "(cached) " >&6
25762 else
25763 if test -n "$RANLIB"; then
25764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
25765 else
25766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25767 for as_dir in $PATH
25769 IFS=$as_save_IFS
25770 test -z "$as_dir" && as_dir=.
25771 for ac_exec_ext in '' $ac_executable_extensions; do
25772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25773 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
25774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25775 break 2
25777 done
25778 done
25779 IFS=$as_save_IFS
25783 RANLIB=$ac_cv_prog_RANLIB
25784 if test -n "$RANLIB"; then
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
25786 $as_echo "$RANLIB" >&6; }
25787 else
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25789 $as_echo "no" >&6; }
25794 if test -z "$ac_cv_prog_RANLIB"; then
25795 ac_ct_RANLIB=$RANLIB
25796 # Extract the first word of "ranlib", so it can be a program name with args.
25797 set dummy ranlib; ac_word=$2
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25799 $as_echo_n "checking for $ac_word... " >&6; }
25800 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
25801 $as_echo_n "(cached) " >&6
25802 else
25803 if test -n "$ac_ct_RANLIB"; then
25804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
25805 else
25806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25807 for as_dir in $PATH
25809 IFS=$as_save_IFS
25810 test -z "$as_dir" && as_dir=.
25811 for ac_exec_ext in '' $ac_executable_extensions; do
25812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25813 ac_cv_prog_ac_ct_RANLIB="ranlib"
25814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25815 break 2
25817 done
25818 done
25819 IFS=$as_save_IFS
25823 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
25824 if test -n "$ac_ct_RANLIB"; then
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
25826 $as_echo "$ac_ct_RANLIB" >&6; }
25827 else
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25829 $as_echo "no" >&6; }
25832 if test "x$ac_ct_RANLIB" = x; then
25833 RANLIB=":"
25834 else
25835 case $cross_compiling:$ac_tool_warned in
25836 yes:)
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25839 ac_tool_warned=yes ;;
25840 esac
25841 RANLIB=$ac_ct_RANLIB
25843 else
25844 RANLIB="$ac_cv_prog_RANLIB"
25847 for ac_prog in 'bison -y' byacc
25849 # Extract the first word of "$ac_prog", so it can be a program name with args.
25850 set dummy $ac_prog; ac_word=$2
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25852 $as_echo_n "checking for $ac_word... " >&6; }
25853 if ${ac_cv_prog_YACC+:} false; then :
25854 $as_echo_n "(cached) " >&6
25855 else
25856 if test -n "$YACC"; then
25857 ac_cv_prog_YACC="$YACC" # Let the user override the test.
25858 else
25859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25860 for as_dir in $PATH
25862 IFS=$as_save_IFS
25863 test -z "$as_dir" && as_dir=.
25864 for ac_exec_ext in '' $ac_executable_extensions; do
25865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25866 ac_cv_prog_YACC="$ac_prog"
25867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25868 break 2
25870 done
25871 done
25872 IFS=$as_save_IFS
25876 YACC=$ac_cv_prog_YACC
25877 if test -n "$YACC"; then
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
25879 $as_echo "$YACC" >&6; }
25880 else
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25882 $as_echo "no" >&6; }
25886 test -n "$YACC" && break
25887 done
25888 test -n "$YACC" || YACC="yacc"
25891 if test -n "$ac_tool_prefix"; then
25892 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
25893 set dummy ${ac_tool_prefix}ar; ac_word=$2
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25895 $as_echo_n "checking for $ac_word... " >&6; }
25896 if ${ac_cv_prog_AR+:} false; then :
25897 $as_echo_n "(cached) " >&6
25898 else
25899 if test -n "$AR"; then
25900 ac_cv_prog_AR="$AR" # Let the user override the test.
25901 else
25902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25903 for as_dir in $PATH
25905 IFS=$as_save_IFS
25906 test -z "$as_dir" && as_dir=.
25907 for ac_exec_ext in '' $ac_executable_extensions; do
25908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25909 ac_cv_prog_AR="${ac_tool_prefix}ar"
25910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25911 break 2
25913 done
25914 done
25915 IFS=$as_save_IFS
25919 AR=$ac_cv_prog_AR
25920 if test -n "$AR"; then
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
25922 $as_echo "$AR" >&6; }
25923 else
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25925 $as_echo "no" >&6; }
25930 if test -z "$ac_cv_prog_AR"; then
25931 ac_ct_AR=$AR
25932 # Extract the first word of "ar", so it can be a program name with args.
25933 set dummy ar; ac_word=$2
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25935 $as_echo_n "checking for $ac_word... " >&6; }
25936 if ${ac_cv_prog_ac_ct_AR+:} false; then :
25937 $as_echo_n "(cached) " >&6
25938 else
25939 if test -n "$ac_ct_AR"; then
25940 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
25941 else
25942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25943 for as_dir in $PATH
25945 IFS=$as_save_IFS
25946 test -z "$as_dir" && as_dir=.
25947 for ac_exec_ext in '' $ac_executable_extensions; do
25948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25949 ac_cv_prog_ac_ct_AR="ar"
25950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25951 break 2
25953 done
25954 done
25955 IFS=$as_save_IFS
25959 ac_ct_AR=$ac_cv_prog_ac_ct_AR
25960 if test -n "$ac_ct_AR"; then
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
25962 $as_echo "$ac_ct_AR" >&6; }
25963 else
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25965 $as_echo "no" >&6; }
25968 if test "x$ac_ct_AR" = x; then
25969 AR=""
25970 else
25971 case $cross_compiling:$ac_tool_warned in
25972 yes:)
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25975 ac_tool_warned=yes ;;
25976 esac
25977 AR=$ac_ct_AR
25979 else
25980 AR="$ac_cv_prog_AR"
25983 if test -n "$ac_tool_prefix"; then
25984 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
25985 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25987 $as_echo_n "checking for $ac_word... " >&6; }
25988 if ${ac_cv_prog_DLLTOOL+:} false; then :
25989 $as_echo_n "(cached) " >&6
25990 else
25991 if test -n "$DLLTOOL"; then
25992 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
25993 else
25994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25995 for as_dir in $PATH
25997 IFS=$as_save_IFS
25998 test -z "$as_dir" && as_dir=.
25999 for ac_exec_ext in '' $ac_executable_extensions; do
26000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26001 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
26002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26003 break 2
26005 done
26006 done
26007 IFS=$as_save_IFS
26011 DLLTOOL=$ac_cv_prog_DLLTOOL
26012 if test -n "$DLLTOOL"; then
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
26014 $as_echo "$DLLTOOL" >&6; }
26015 else
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26017 $as_echo "no" >&6; }
26022 if test -z "$ac_cv_prog_DLLTOOL"; then
26023 ac_ct_DLLTOOL=$DLLTOOL
26024 # Extract the first word of "dlltool", so it can be a program name with args.
26025 set dummy dlltool; ac_word=$2
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26027 $as_echo_n "checking for $ac_word... " >&6; }
26028 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
26029 $as_echo_n "(cached) " >&6
26030 else
26031 if test -n "$ac_ct_DLLTOOL"; then
26032 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
26033 else
26034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26035 for as_dir in $PATH
26037 IFS=$as_save_IFS
26038 test -z "$as_dir" && as_dir=.
26039 for ac_exec_ext in '' $ac_executable_extensions; do
26040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26041 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
26042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26043 break 2
26045 done
26046 done
26047 IFS=$as_save_IFS
26051 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
26052 if test -n "$ac_ct_DLLTOOL"; then
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
26054 $as_echo "$ac_ct_DLLTOOL" >&6; }
26055 else
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26057 $as_echo "no" >&6; }
26060 if test "x$ac_ct_DLLTOOL" = x; then
26061 DLLTOOL=""
26062 else
26063 case $cross_compiling:$ac_tool_warned in
26064 yes:)
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26067 ac_tool_warned=yes ;;
26068 esac
26069 DLLTOOL=$ac_ct_DLLTOOL
26071 else
26072 DLLTOOL="$ac_cv_prog_DLLTOOL"
26075 if test -n "$ac_tool_prefix"; then
26076 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
26077 set dummy ${ac_tool_prefix}windres; ac_word=$2
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26079 $as_echo_n "checking for $ac_word... " >&6; }
26080 if ${ac_cv_prog_WINDRES+:} false; then :
26081 $as_echo_n "(cached) " >&6
26082 else
26083 if test -n "$WINDRES"; then
26084 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
26085 else
26086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26087 for as_dir in $PATH
26089 IFS=$as_save_IFS
26090 test -z "$as_dir" && as_dir=.
26091 for ac_exec_ext in '' $ac_executable_extensions; do
26092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26093 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
26094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26095 break 2
26097 done
26098 done
26099 IFS=$as_save_IFS
26103 WINDRES=$ac_cv_prog_WINDRES
26104 if test -n "$WINDRES"; then
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
26106 $as_echo "$WINDRES" >&6; }
26107 else
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26109 $as_echo "no" >&6; }
26114 if test -z "$ac_cv_prog_WINDRES"; then
26115 ac_ct_WINDRES=$WINDRES
26116 # Extract the first word of "windres", so it can be a program name with args.
26117 set dummy windres; ac_word=$2
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26119 $as_echo_n "checking for $ac_word... " >&6; }
26120 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
26121 $as_echo_n "(cached) " >&6
26122 else
26123 if test -n "$ac_ct_WINDRES"; then
26124 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
26125 else
26126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26127 for as_dir in $PATH
26129 IFS=$as_save_IFS
26130 test -z "$as_dir" && as_dir=.
26131 for ac_exec_ext in '' $ac_executable_extensions; do
26132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26133 ac_cv_prog_ac_ct_WINDRES="windres"
26134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26135 break 2
26137 done
26138 done
26139 IFS=$as_save_IFS
26143 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
26144 if test -n "$ac_ct_WINDRES"; then
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
26146 $as_echo "$ac_ct_WINDRES" >&6; }
26147 else
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26149 $as_echo "no" >&6; }
26152 if test "x$ac_ct_WINDRES" = x; then
26153 WINDRES=""
26154 else
26155 case $cross_compiling:$ac_tool_warned in
26156 yes:)
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26159 ac_tool_warned=yes ;;
26160 esac
26161 WINDRES=$ac_ct_WINDRES
26163 else
26164 WINDRES="$ac_cv_prog_WINDRES"
26168 case $host_os in
26169 gnu*)
26170 # Needed for GNU Hurd hosts.
26171 if test -n "$ac_tool_prefix"; then
26172 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
26173 set dummy ${ac_tool_prefix}mig; ac_word=$2
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26175 $as_echo_n "checking for $ac_word... " >&6; }
26176 if ${ac_cv_prog_MIG+:} false; then :
26177 $as_echo_n "(cached) " >&6
26178 else
26179 if test -n "$MIG"; then
26180 ac_cv_prog_MIG="$MIG" # Let the user override the test.
26181 else
26182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26183 for as_dir in $PATH
26185 IFS=$as_save_IFS
26186 test -z "$as_dir" && as_dir=.
26187 for ac_exec_ext in '' $ac_executable_extensions; do
26188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26189 ac_cv_prog_MIG="${ac_tool_prefix}mig"
26190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26191 break 2
26193 done
26194 done
26195 IFS=$as_save_IFS
26199 MIG=$ac_cv_prog_MIG
26200 if test -n "$MIG"; then
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
26202 $as_echo "$MIG" >&6; }
26203 else
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26205 $as_echo "no" >&6; }
26210 if test -z "$ac_cv_prog_MIG"; then
26211 ac_ct_MIG=$MIG
26212 # Extract the first word of "mig", so it can be a program name with args.
26213 set dummy mig; ac_word=$2
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26215 $as_echo_n "checking for $ac_word... " >&6; }
26216 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
26217 $as_echo_n "(cached) " >&6
26218 else
26219 if test -n "$ac_ct_MIG"; then
26220 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
26221 else
26222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26223 for as_dir in $PATH
26225 IFS=$as_save_IFS
26226 test -z "$as_dir" && as_dir=.
26227 for ac_exec_ext in '' $ac_executable_extensions; do
26228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26229 ac_cv_prog_ac_ct_MIG="mig"
26230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26231 break 2
26233 done
26234 done
26235 IFS=$as_save_IFS
26239 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
26240 if test -n "$ac_ct_MIG"; then
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
26242 $as_echo "$ac_ct_MIG" >&6; }
26243 else
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26245 $as_echo "no" >&6; }
26248 if test "x$ac_ct_MIG" = x; then
26249 MIG=""
26250 else
26251 case $cross_compiling:$ac_tool_warned in
26252 yes:)
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26255 ac_tool_warned=yes ;;
26256 esac
26257 MIG=$ac_ct_MIG
26259 else
26260 MIG="$ac_cv_prog_MIG"
26263 if test x"$MIG" = x; then
26264 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
26267 esac
26269 # ---------------------- #
26270 # Checks for libraries. #
26271 # ---------------------- #
26273 # We might need to link with -lm; most simulators need it.
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
26275 $as_echo_n "checking for main in -lm... " >&6; }
26276 if ${ac_cv_lib_m_main+:} false; then :
26277 $as_echo_n "(cached) " >&6
26278 else
26279 ac_check_lib_save_LIBS=$LIBS
26280 LIBS="-lm $LIBS"
26281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26282 /* end confdefs.h. */
26286 main ()
26288 return main ();
26290 return 0;
26292 _ACEOF
26293 if ac_fn_c_try_link "$LINENO"; then :
26294 ac_cv_lib_m_main=yes
26295 else
26296 ac_cv_lib_m_main=no
26298 rm -f core conftest.err conftest.$ac_objext \
26299 conftest$ac_exeext conftest.$ac_ext
26300 LIBS=$ac_check_lib_save_LIBS
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
26303 $as_echo "$ac_cv_lib_m_main" >&6; }
26304 if test "x$ac_cv_lib_m_main" = xyes; then :
26305 cat >>confdefs.h <<_ACEOF
26306 #define HAVE_LIBM 1
26307 _ACEOF
26309 LIBS="-lm $LIBS"
26314 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26316 $as_echo_n "checking for library containing gethostbyname... " >&6; }
26317 if ${ac_cv_search_gethostbyname+:} false; then :
26318 $as_echo_n "(cached) " >&6
26319 else
26320 ac_func_search_save_LIBS=$LIBS
26321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26322 /* end confdefs.h. */
26324 /* Override any GCC internal prototype to avoid an error.
26325 Use char because int might match the return type of a GCC
26326 builtin and then its argument prototype would still apply. */
26327 #ifdef __cplusplus
26328 extern "C"
26329 #endif
26330 char gethostbyname ();
26332 main ()
26334 return gethostbyname ();
26336 return 0;
26338 _ACEOF
26339 for ac_lib in '' nsl; do
26340 if test -z "$ac_lib"; then
26341 ac_res="none required"
26342 else
26343 ac_res=-l$ac_lib
26344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26346 if ac_fn_c_try_link "$LINENO"; then :
26347 ac_cv_search_gethostbyname=$ac_res
26349 rm -f core conftest.err conftest.$ac_objext \
26350 conftest$ac_exeext
26351 if ${ac_cv_search_gethostbyname+:} false; then :
26352 break
26354 done
26355 if ${ac_cv_search_gethostbyname+:} false; then :
26357 else
26358 ac_cv_search_gethostbyname=no
26360 rm conftest.$ac_ext
26361 LIBS=$ac_func_search_save_LIBS
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26364 $as_echo "$ac_cv_search_gethostbyname" >&6; }
26365 ac_res=$ac_cv_search_gethostbyname
26366 if test "$ac_res" != no; then :
26367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26372 # Link in zlib/zstd if we can. This allows us to read compressed debug
26373 # sections.
26375 # Use the system's zlib library.
26376 zlibdir="-L\$(top_builddir)/../zlib"
26377 zlibinc="-I\$(top_srcdir)/../zlib"
26379 # Check whether --with-system-zlib was given.
26380 if test "${with_system_zlib+set}" = set; then :
26381 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
26382 zlibdir=
26383 zlibinc=
26393 # Check whether --with-zstd was given.
26394 if test "${with_zstd+set}" = set; then :
26395 withval=$with_zstd;
26396 else
26397 with_zstd=auto
26401 if test "$with_zstd" != no; then :
26403 pkg_failed=no
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
26405 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
26407 if test -n "$ZSTD_CFLAGS"; then
26408 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
26409 elif test -n "$PKG_CONFIG"; then
26410 if test -n "$PKG_CONFIG" && \
26411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
26412 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
26413 ac_status=$?
26414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26415 test $ac_status = 0; }; then
26416 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
26417 test "x$?" != "x0" && pkg_failed=yes
26418 else
26419 pkg_failed=yes
26421 else
26422 pkg_failed=untried
26424 if test -n "$ZSTD_LIBS"; then
26425 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
26426 elif test -n "$PKG_CONFIG"; then
26427 if test -n "$PKG_CONFIG" && \
26428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
26429 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
26430 ac_status=$?
26431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432 test $ac_status = 0; }; then
26433 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
26434 test "x$?" != "x0" && pkg_failed=yes
26435 else
26436 pkg_failed=yes
26438 else
26439 pkg_failed=untried
26442 if test $pkg_failed = no; then
26443 pkg_save_LDFLAGS="$LDFLAGS"
26444 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
26445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26446 /* end confdefs.h. */
26449 main ()
26453 return 0;
26455 _ACEOF
26456 if ac_fn_c_try_link "$LINENO"; then :
26458 else
26459 pkg_failed=yes
26461 rm -f core conftest.err conftest.$ac_objext \
26462 conftest$ac_exeext conftest.$ac_ext
26463 LDFLAGS=$pkg_save_LDFLAGS
26468 if test $pkg_failed = yes; then
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26470 $as_echo "no" >&6; }
26472 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26473 _pkg_short_errors_supported=yes
26474 else
26475 _pkg_short_errors_supported=no
26477 if test $_pkg_short_errors_supported = yes; then
26478 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
26479 else
26480 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
26482 # Put the nasty error message in config.log where it belongs
26483 echo "$ZSTD_PKG_ERRORS" >&5
26486 if test "$with_zstd" = yes; then
26487 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
26490 elif test $pkg_failed = untried; then
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26492 $as_echo "no" >&6; }
26494 if test "$with_zstd" = yes; then
26495 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
26498 else
26499 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
26500 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26502 $as_echo "yes" >&6; }
26505 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
26518 am_save_CPPFLAGS="$CPPFLAGS"
26520 for element in $INCICONV; do
26521 haveit=
26522 for x in $CPPFLAGS; do
26524 acl_save_prefix="$prefix"
26525 prefix="$acl_final_prefix"
26526 acl_save_exec_prefix="$exec_prefix"
26527 exec_prefix="$acl_final_exec_prefix"
26528 eval x=\"$x\"
26529 exec_prefix="$acl_save_exec_prefix"
26530 prefix="$acl_save_prefix"
26532 if test "X$x" = "X$element"; then
26533 haveit=yes
26534 break
26536 done
26537 if test -z "$haveit"; then
26538 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26540 done
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
26544 $as_echo_n "checking for iconv... " >&6; }
26545 if ${am_cv_func_iconv+:} false; then :
26546 $as_echo_n "(cached) " >&6
26547 else
26549 am_cv_func_iconv="no, consider installing GNU libiconv"
26550 am_cv_lib_iconv=no
26551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26552 /* end confdefs.h. */
26554 #include <stdlib.h>
26555 #include <iconv.h>
26558 main ()
26560 iconv_t cd = iconv_open("","");
26561 iconv(cd,NULL,NULL,NULL,NULL);
26562 iconv_close(cd);
26564 return 0;
26566 _ACEOF
26567 if ac_fn_c_try_link "$LINENO"; then :
26568 am_cv_func_iconv=yes
26570 rm -f core conftest.err conftest.$ac_objext \
26571 conftest$ac_exeext conftest.$ac_ext
26572 if test "$am_cv_func_iconv" != yes; then
26573 am_save_LIBS="$LIBS"
26574 LIBS="$LIBS $LIBICONV"
26575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26576 /* end confdefs.h. */
26578 #include <stdlib.h>
26579 #include <iconv.h>
26582 main ()
26584 iconv_t cd = iconv_open("","");
26585 iconv(cd,NULL,NULL,NULL,NULL);
26586 iconv_close(cd);
26588 return 0;
26590 _ACEOF
26591 if ac_fn_c_try_link "$LINENO"; then :
26592 am_cv_lib_iconv=yes
26593 am_cv_func_iconv=yes
26595 rm -f core conftest.err conftest.$ac_objext \
26596 conftest$ac_exeext conftest.$ac_ext
26597 LIBS="$am_save_LIBS"
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
26602 $as_echo "$am_cv_func_iconv" >&6; }
26603 if test "$am_cv_func_iconv" = yes; then
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
26605 $as_echo_n "checking for working iconv... " >&6; }
26606 if ${am_cv_func_iconv_works+:} false; then :
26607 $as_echo_n "(cached) " >&6
26608 else
26610 am_save_LIBS="$LIBS"
26611 if test $am_cv_lib_iconv = yes; then
26612 LIBS="$LIBS $LIBICONV"
26614 am_cv_func_iconv_works=no
26615 for ac_iconv_const in '' 'const'; do
26616 if test "$cross_compiling" = yes; then :
26617 case "$host_os" in
26618 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
26619 *) am_cv_func_iconv_works="guessing yes" ;;
26620 esac
26621 else
26622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26623 /* end confdefs.h. */
26625 #include <iconv.h>
26626 #include <string.h>
26628 #ifndef ICONV_CONST
26629 # define ICONV_CONST $ac_iconv_const
26630 #endif
26633 main ()
26635 int result = 0;
26636 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
26637 successful returns. This is even documented in
26638 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
26640 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
26641 if (cd_utf8_to_88591 != (iconv_t)(-1))
26643 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
26644 char buf[10];
26645 ICONV_CONST char *inptr = input;
26646 size_t inbytesleft = strlen (input);
26647 char *outptr = buf;
26648 size_t outbytesleft = sizeof (buf);
26649 size_t res = iconv (cd_utf8_to_88591,
26650 &inptr, &inbytesleft,
26651 &outptr, &outbytesleft);
26652 if (res == 0)
26653 result |= 1;
26654 iconv_close (cd_utf8_to_88591);
26657 /* Test against Solaris 10 bug: Failures are not distinguishable from
26658 successful returns. */
26660 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
26661 if (cd_ascii_to_88591 != (iconv_t)(-1))
26663 static ICONV_CONST char input[] = "\263";
26664 char buf[10];
26665 ICONV_CONST char *inptr = input;
26666 size_t inbytesleft = strlen (input);
26667 char *outptr = buf;
26668 size_t outbytesleft = sizeof (buf);
26669 size_t res = iconv (cd_ascii_to_88591,
26670 &inptr, &inbytesleft,
26671 &outptr, &outbytesleft);
26672 if (res == 0)
26673 result |= 2;
26674 iconv_close (cd_ascii_to_88591);
26677 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
26679 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
26680 if (cd_88591_to_utf8 != (iconv_t)(-1))
26682 static ICONV_CONST char input[] = "\304";
26683 static char buf[2] = { (char)0xDE, (char)0xAD };
26684 ICONV_CONST char *inptr = input;
26685 size_t inbytesleft = 1;
26686 char *outptr = buf;
26687 size_t outbytesleft = 1;
26688 size_t res = iconv (cd_88591_to_utf8,
26689 &inptr, &inbytesleft,
26690 &outptr, &outbytesleft);
26691 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
26692 result |= 4;
26693 iconv_close (cd_88591_to_utf8);
26696 #if 0 /* This bug could be worked around by the caller. */
26697 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
26699 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
26700 if (cd_88591_to_utf8 != (iconv_t)(-1))
26702 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
26703 char buf[50];
26704 ICONV_CONST char *inptr = input;
26705 size_t inbytesleft = strlen (input);
26706 char *outptr = buf;
26707 size_t outbytesleft = sizeof (buf);
26708 size_t res = iconv (cd_88591_to_utf8,
26709 &inptr, &inbytesleft,
26710 &outptr, &outbytesleft);
26711 if ((int)res > 0)
26712 result |= 8;
26713 iconv_close (cd_88591_to_utf8);
26716 #endif
26717 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
26718 provided. */
26720 /* Try standardized names. */
26721 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
26722 /* Try IRIX, OSF/1 names. */
26723 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
26724 /* Try AIX names. */
26725 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
26726 /* Try HP-UX names. */
26727 iconv_t cd4 = iconv_open ("utf8", "eucJP");
26728 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
26729 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
26730 result |= 16;
26731 if (cd1 != (iconv_t)(-1))
26732 iconv_close (cd1);
26733 if (cd2 != (iconv_t)(-1))
26734 iconv_close (cd2);
26735 if (cd3 != (iconv_t)(-1))
26736 iconv_close (cd3);
26737 if (cd4 != (iconv_t)(-1))
26738 iconv_close (cd4);
26740 return result;
26743 return 0;
26745 _ACEOF
26746 if ac_fn_c_try_run "$LINENO"; then :
26747 am_cv_func_iconv_works=yes
26749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26750 conftest.$ac_objext conftest.beam conftest.$ac_ext
26753 test "$am_cv_func_iconv_works" = no || break
26754 done
26755 LIBS="$am_save_LIBS"
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
26759 $as_echo "$am_cv_func_iconv_works" >&6; }
26760 case "$am_cv_func_iconv_works" in
26761 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
26762 *) am_func_iconv=yes ;;
26763 esac
26764 else
26765 am_func_iconv=no am_cv_lib_iconv=no
26767 if test "$am_func_iconv" = yes; then
26769 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
26772 if test "$am_cv_lib_iconv" = yes; then
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
26774 $as_echo_n "checking how to link with libiconv... " >&6; }
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
26776 $as_echo "$LIBICONV" >&6; }
26777 else
26778 CPPFLAGS="$am_save_CPPFLAGS"
26779 LIBICONV=
26780 LTLIBICONV=
26785 if test "$am_cv_func_iconv" = yes; then
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
26787 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
26788 if ${gl_cv_iconv_nonconst+:} false; then :
26789 $as_echo_n "(cached) " >&6
26790 else
26791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26792 /* end confdefs.h. */
26794 #include <stdlib.h>
26795 #include <iconv.h>
26796 extern
26797 #ifdef __cplusplus
26799 #endif
26800 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26803 main ()
26807 return 0;
26809 _ACEOF
26810 if ac_fn_c_try_compile "$LINENO"; then :
26811 gl_cv_iconv_nonconst=yes
26812 else
26813 gl_cv_iconv_nonconst=no
26815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
26819 $as_echo "$gl_cv_iconv_nonconst" >&6; }
26820 else
26821 gl_cv_iconv_nonconst=yes
26823 if test $gl_cv_iconv_nonconst = yes; then
26824 iconv_arg1=""
26825 else
26826 iconv_arg1="const"
26829 cat >>confdefs.h <<_ACEOF
26830 #define ICONV_CONST $iconv_arg1
26831 _ACEOF
26835 if test "$am_func_iconv" = yes; then
26836 if test -n "$LIBICONV"; then
26837 am_cv_func_iconv_summary='yes, in libiconv'
26838 else
26839 am_cv_func_iconv_summary='yes, in libc'
26841 else
26842 if test "$am_cv_func_iconv" = yes; then
26843 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
26844 else
26845 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
26850 # GDB may fork/exec the iconv program to get the list of supported character
26851 # sets. Allow the user to specify where to find it.
26852 # There are several factors affecting the choice of option name:
26853 # - There is already --with-libiconv-prefix but we can't use it, it specifies
26854 # the build-time location of libiconv files.
26855 # - The program we need to find is iconv, which comes with glibc. The user
26856 # doesn't necessarily have libiconv installed. Therefore naming this
26857 # --with-libiconv-foo feels wrong.
26858 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
26859 # defined to work on directories not files (though it really doesn't know
26860 # the difference).
26861 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
26862 # with --with-libiconv-prefix.
26863 # Putting these together is why the option name is --with-iconv-bin.
26866 # Check whether --with-iconv-bin was given.
26867 if test "${with_iconv_bin+set}" = set; then :
26868 withval=$with_iconv_bin; iconv_bin="${withval}"
26870 cat >>confdefs.h <<_ACEOF
26871 #define ICONV_BIN "${iconv_bin}"
26872 _ACEOF
26875 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
26876 if test "x$prefix" = xNONE; then
26877 test_prefix=/usr/local
26878 else
26879 test_prefix=$prefix
26881 else
26882 test_prefix=$exec_prefix
26884 value=0
26885 case ${iconv_bin} in
26886 "${test_prefix}"|"${test_prefix}/"*|\
26887 '${exec_prefix}'|'${exec_prefix}/'*)
26888 value=1
26890 esac
26892 cat >>confdefs.h <<_ACEOF
26893 #define ICONV_BIN_RELOCATABLE $value
26894 _ACEOF
26901 # For the TUI, we need enhanced curses functionality.
26902 if test x"$enable_tui" != xno; then
26903 prefer_curses=yes
26906 curses_found=no
26907 if test x"$prefer_curses" = xyes; then
26908 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
26909 # curses library because the latter might not provide all the
26910 # functionality we need. However, this leads to problems on systems
26911 # where the linker searches /usr/local/lib, but the compiler doesn't
26912 # search /usr/local/include, if ncurses is installed in /usr/local. A
26913 # default installation of ncurses on alpha*-dec-osf* will lead to such
26914 # a situation.
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
26916 $as_echo_n "checking for library containing waddstr... " >&6; }
26917 if ${ac_cv_search_waddstr+:} false; then :
26918 $as_echo_n "(cached) " >&6
26919 else
26920 ac_func_search_save_LIBS=$LIBS
26921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26922 /* end confdefs.h. */
26924 /* Override any GCC internal prototype to avoid an error.
26925 Use char because int might match the return type of a GCC
26926 builtin and then its argument prototype would still apply. */
26927 #ifdef __cplusplus
26928 extern "C"
26929 #endif
26930 char waddstr ();
26932 main ()
26934 return waddstr ();
26936 return 0;
26938 _ACEOF
26939 for ac_lib in '' ncursesw ncurses cursesX curses; do
26940 if test -z "$ac_lib"; then
26941 ac_res="none required"
26942 else
26943 ac_res=-l$ac_lib
26944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26946 if ac_fn_c_try_link "$LINENO"; then :
26947 ac_cv_search_waddstr=$ac_res
26949 rm -f core conftest.err conftest.$ac_objext \
26950 conftest$ac_exeext
26951 if ${ac_cv_search_waddstr+:} false; then :
26952 break
26954 done
26955 if ${ac_cv_search_waddstr+:} false; then :
26957 else
26958 ac_cv_search_waddstr=no
26960 rm conftest.$ac_ext
26961 LIBS=$ac_func_search_save_LIBS
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
26964 $as_echo "$ac_cv_search_waddstr" >&6; }
26965 ac_res=$ac_cv_search_waddstr
26966 if test "$ac_res" != no; then :
26967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26968 curses_found=yes
26970 $as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h
26977 # Check whether we should enable the TUI, but only do so if we really
26978 # can.
26979 if test x"$enable_tui" != xno; then
26980 if test "$curses_found" != no; then
26981 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
26982 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
26983 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
26984 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
26985 else
26986 if test x"$enable_tui" = xyes; then
26987 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
26988 else
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
26990 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
26995 # Since GDB uses Readline, we need termcap functionality. In many
26996 # cases this will be provided by the curses library, but some systems
26997 # have a separate termcap library, or no curses library at all.
26999 case $host_os in
27000 cygwin*)
27001 if test -d "$srcdir/libtermcap"; then
27002 LIBS="../libtermcap/libtermcap.a $LIBS"
27003 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
27004 fi ;;
27005 go32* | *djgpp*)
27006 ac_cv_search_tgetent="none required"
27008 esac
27010 # These are the libraries checked by Readline.
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
27012 $as_echo_n "checking for library containing tgetent... " >&6; }
27013 if ${ac_cv_search_tgetent+:} false; then :
27014 $as_echo_n "(cached) " >&6
27015 else
27016 ac_func_search_save_LIBS=$LIBS
27017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27018 /* end confdefs.h. */
27020 /* Override any GCC internal prototype to avoid an error.
27021 Use char because int might match the return type of a GCC
27022 builtin and then its argument prototype would still apply. */
27023 #ifdef __cplusplus
27024 extern "C"
27025 #endif
27026 char tgetent ();
27028 main ()
27030 return tgetent ();
27032 return 0;
27034 _ACEOF
27035 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
27036 if test -z "$ac_lib"; then
27037 ac_res="none required"
27038 else
27039 ac_res=-l$ac_lib
27040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27042 if ac_fn_c_try_link "$LINENO"; then :
27043 ac_cv_search_tgetent=$ac_res
27045 rm -f core conftest.err conftest.$ac_objext \
27046 conftest$ac_exeext
27047 if ${ac_cv_search_tgetent+:} false; then :
27048 break
27050 done
27051 if ${ac_cv_search_tgetent+:} false; then :
27053 else
27054 ac_cv_search_tgetent=no
27056 rm conftest.$ac_ext
27057 LIBS=$ac_func_search_save_LIBS
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
27060 $as_echo "$ac_cv_search_tgetent" >&6; }
27061 ac_res=$ac_cv_search_tgetent
27062 if test "$ac_res" != no; then :
27063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27068 if test "$ac_cv_search_tgetent" = no; then
27069 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
27073 # Check whether --with-system-readline was given.
27074 if test "${with_system_readline+set}" = set; then :
27075 withval=$with_system_readline;
27079 if test "$with_system_readline" = yes; then
27080 for ac_header in readline/readline.h
27081 do :
27082 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
27083 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
27084 cat >>confdefs.h <<_ACEOF
27085 #define HAVE_READLINE_READLINE_H 1
27086 _ACEOF
27087 readline_h=yes
27088 else
27089 readline_h=no
27092 done
27094 if test "$readline_h" = "no"; then
27095 as_fn_error $? "readline development packages are probably missing" "$LINENO" 5
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
27098 $as_echo_n "checking whether system readline is new enough... " >&6; }
27099 if ${gdb_cv_readline_ok+:} false; then :
27100 $as_echo_n "(cached) " >&6
27101 else
27102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27103 /* end confdefs.h. */
27104 #include <stdio.h>
27105 #include <readline/readline.h>
27107 main ()
27109 #if RL_VERSION_MAJOR < 7
27110 # error "readline version 7 required"
27111 #endif
27114 return 0;
27116 _ACEOF
27117 if ac_fn_c_try_compile "$LINENO"; then :
27118 gdb_cv_readline_ok=yes
27119 else
27120 gdb_cv_readline_ok=no
27123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
27127 $as_echo "$gdb_cv_readline_ok" >&6; }
27128 if test "$gdb_cv_readline_ok" != yes; then
27129 as_fn_error $? "system readline is not new enough" "$LINENO" 5
27132 READLINE=-lreadline
27133 READLINE_DEPS=
27134 READLINE_CFLAGS=
27135 READLINE_TEXI_INCFLAG=
27136 READLINE_DOC_SOURCE_INCLUDES='$(READLINE_SYSTEM_DOC_INCLUDES)'
27137 else
27138 READLINE='$(READLINE_DIR)/libreadline.a'
27139 READLINE_DEPS='$(READLINE)'
27140 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
27141 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
27142 READLINE_DOC_SOURCE_INCLUDES='$(READLINE_INTREE_DOC_INCLUDES)'
27150 # Generate jit-reader.h
27152 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
27153 TARGET_PTR=
27155 # The cast to long int works around a bug in the HP C Compiler
27156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27158 # This bug is HP SR number 8606223364.
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
27160 $as_echo_n "checking size of unsigned long long... " >&6; }
27161 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
27162 $as_echo_n "(cached) " >&6
27163 else
27164 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
27166 else
27167 if test "$ac_cv_type_unsigned_long_long" = yes; then
27168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27170 as_fn_error 77 "cannot compute sizeof (unsigned long long)
27171 See \`config.log' for more details" "$LINENO" 5; }
27172 else
27173 ac_cv_sizeof_unsigned_long_long=0
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
27179 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
27183 cat >>confdefs.h <<_ACEOF
27184 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27185 _ACEOF
27188 # The cast to long int works around a bug in the HP C Compiler
27189 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27190 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27191 # This bug is HP SR number 8606223364.
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
27193 $as_echo_n "checking size of unsigned long... " >&6; }
27194 if ${ac_cv_sizeof_unsigned_long+:} false; then :
27195 $as_echo_n "(cached) " >&6
27196 else
27197 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
27199 else
27200 if test "$ac_cv_type_unsigned_long" = yes; then
27201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27203 as_fn_error 77 "cannot compute sizeof (unsigned long)
27204 See \`config.log' for more details" "$LINENO" 5; }
27205 else
27206 ac_cv_sizeof_unsigned_long=0
27211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
27212 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
27216 cat >>confdefs.h <<_ACEOF
27217 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
27218 _ACEOF
27221 # The cast to long int works around a bug in the HP C Compiler
27222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27224 # This bug is HP SR number 8606223364.
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
27226 $as_echo_n "checking size of unsigned __int128... " >&6; }
27227 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
27228 $as_echo_n "(cached) " >&6
27229 else
27230 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
27232 else
27233 if test "$ac_cv_type_unsigned___int128" = yes; then
27234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27236 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
27237 See \`config.log' for more details" "$LINENO" 5; }
27238 else
27239 ac_cv_sizeof_unsigned___int128=0
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
27245 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
27249 cat >>confdefs.h <<_ACEOF
27250 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
27251 _ACEOF
27255 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
27256 TARGET_PTR="unsigned long"
27257 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
27258 TARGET_PTR="unsigned long long"
27259 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
27260 TARGET_PTR="unsigned __int128"
27261 else
27262 TARGET_PTR="unsigned long"
27266 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27270 $as_echo_n "checking for library containing dlopen... " >&6; }
27271 if ${ac_cv_search_dlopen+:} false; then :
27272 $as_echo_n "(cached) " >&6
27273 else
27274 ac_func_search_save_LIBS=$LIBS
27275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27276 /* end confdefs.h. */
27278 /* Override any GCC internal prototype to avoid an error.
27279 Use char because int might match the return type of a GCC
27280 builtin and then its argument prototype would still apply. */
27281 #ifdef __cplusplus
27282 extern "C"
27283 #endif
27284 char dlopen ();
27286 main ()
27288 return dlopen ();
27290 return 0;
27292 _ACEOF
27293 for ac_lib in '' dl; do
27294 if test -z "$ac_lib"; then
27295 ac_res="none required"
27296 else
27297 ac_res=-l$ac_lib
27298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27300 if ac_fn_c_try_link "$LINENO"; then :
27301 ac_cv_search_dlopen=$ac_res
27303 rm -f core conftest.err conftest.$ac_objext \
27304 conftest$ac_exeext
27305 if ${ac_cv_search_dlopen+:} false; then :
27306 break
27308 done
27309 if ${ac_cv_search_dlopen+:} false; then :
27311 else
27312 ac_cv_search_dlopen=no
27314 rm conftest.$ac_ext
27315 LIBS=$ac_func_search_save_LIBS
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27318 $as_echo "$ac_cv_search_dlopen" >&6; }
27319 ac_res=$ac_cv_search_dlopen
27320 if test "$ac_res" != no; then :
27321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27328 # Check whether --with-jit-reader-dir was given.
27329 if test "${with_jit_reader_dir+set}" = set; then :
27330 withval=$with_jit_reader_dir;
27331 JIT_READER_DIR=$withval
27332 else
27333 JIT_READER_DIR=${libdir}/gdb
27337 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
27338 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27339 ac_define_dir=`eval echo $JIT_READER_DIR`
27340 ac_define_dir=`eval echo $ac_define_dir`
27342 cat >>confdefs.h <<_ACEOF
27343 #define JIT_READER_DIR "$ac_define_dir"
27344 _ACEOF
27349 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
27350 if test "x$prefix" = xNONE; then
27351 test_prefix=/usr/local
27352 else
27353 test_prefix=$prefix
27355 else
27356 test_prefix=$exec_prefix
27358 value=0
27359 case ${ac_define_dir} in
27360 "${test_prefix}"|"${test_prefix}/"*|\
27361 '${exec_prefix}'|'${exec_prefix}/'*)
27362 value=1
27364 esac
27366 cat >>confdefs.h <<_ACEOF
27367 #define JIT_READER_DIR_RELOCATABLE $value
27368 _ACEOF
27374 # Check whether --with-expat was given.
27375 if test "${with_expat+set}" = set; then :
27376 withval=$with_expat;
27377 else
27378 with_expat=auto
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
27382 $as_echo_n "checking whether to use expat... " >&6; }
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
27384 $as_echo "$with_expat" >&6; }
27386 if test "${with_expat}" = no; then
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
27388 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
27389 HAVE_LIBEXPAT=no
27390 else
27399 use_additional=yes
27401 acl_save_prefix="$prefix"
27402 prefix="$acl_final_prefix"
27403 acl_save_exec_prefix="$exec_prefix"
27404 exec_prefix="$acl_final_exec_prefix"
27406 eval additional_includedir=\"$includedir\"
27407 eval additional_libdir=\"$libdir\"
27409 exec_prefix="$acl_save_exec_prefix"
27410 prefix="$acl_save_prefix"
27413 # Check whether --with-libexpat-prefix was given.
27414 if test "${with_libexpat_prefix+set}" = set; then :
27415 withval=$with_libexpat_prefix;
27416 if test "X$withval" = "Xno"; then
27417 use_additional=no
27418 else
27419 if test "X$withval" = "X"; then
27421 acl_save_prefix="$prefix"
27422 prefix="$acl_final_prefix"
27423 acl_save_exec_prefix="$exec_prefix"
27424 exec_prefix="$acl_final_exec_prefix"
27426 eval additional_includedir=\"$includedir\"
27427 eval additional_libdir=\"$libdir\"
27429 exec_prefix="$acl_save_exec_prefix"
27430 prefix="$acl_save_prefix"
27432 else
27433 additional_includedir="$withval/include"
27434 additional_libdir="$withval/lib"
27441 # Check whether --with-libexpat-type was given.
27442 if test "${with_libexpat_type+set}" = set; then :
27443 withval=$with_libexpat_type; with_libexpat_type=$withval
27444 else
27445 with_libexpat_type=auto
27448 lib_type=`eval echo \$with_libexpat_type`
27450 LIBEXPAT=
27451 LTLIBEXPAT=
27452 INCEXPAT=
27453 rpathdirs=
27454 ltrpathdirs=
27455 names_already_handled=
27456 names_next_round='expat '
27457 while test -n "$names_next_round"; do
27458 names_this_round="$names_next_round"
27459 names_next_round=
27460 for name in $names_this_round; do
27461 already_handled=
27462 for n in $names_already_handled; do
27463 if test "$n" = "$name"; then
27464 already_handled=yes
27465 break
27467 done
27468 if test -z "$already_handled"; then
27469 names_already_handled="$names_already_handled $name"
27470 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27471 eval value=\"\$HAVE_LIB$uppername\"
27472 if test -n "$value"; then
27473 if test "$value" = yes; then
27474 eval value=\"\$LIB$uppername\"
27475 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
27476 eval value=\"\$LTLIB$uppername\"
27477 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
27478 else
27481 else
27482 found_dir=
27483 found_la=
27484 found_so=
27485 found_a=
27486 if test $use_additional = yes; then
27487 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
27488 found_dir="$additional_libdir"
27489 found_so="$additional_libdir/lib$name.$shlibext"
27490 if test -f "$additional_libdir/lib$name.la"; then
27491 found_la="$additional_libdir/lib$name.la"
27493 elif test x$lib_type != xshared; then
27494 if test -f "$additional_libdir/lib$name.$libext"; then
27495 found_dir="$additional_libdir"
27496 found_a="$additional_libdir/lib$name.$libext"
27497 if test -f "$additional_libdir/lib$name.la"; then
27498 found_la="$additional_libdir/lib$name.la"
27503 if test "X$found_dir" = "X"; then
27504 for x in $LDFLAGS $LTLIBEXPAT; do
27506 acl_save_prefix="$prefix"
27507 prefix="$acl_final_prefix"
27508 acl_save_exec_prefix="$exec_prefix"
27509 exec_prefix="$acl_final_exec_prefix"
27510 eval x=\"$x\"
27511 exec_prefix="$acl_save_exec_prefix"
27512 prefix="$acl_save_prefix"
27514 case "$x" in
27515 -L*)
27516 dir=`echo "X$x" | sed -e 's/^X-L//'`
27517 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
27518 found_dir="$dir"
27519 found_so="$dir/lib$name.$shlibext"
27520 if test -f "$dir/lib$name.la"; then
27521 found_la="$dir/lib$name.la"
27523 elif test x$lib_type != xshared; then
27524 if test -f "$dir/lib$name.$libext"; then
27525 found_dir="$dir"
27526 found_a="$dir/lib$name.$libext"
27527 if test -f "$dir/lib$name.la"; then
27528 found_la="$dir/lib$name.la"
27533 esac
27534 if test "X$found_dir" != "X"; then
27535 break
27537 done
27539 if test "X$found_dir" != "X"; then
27540 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
27541 if test "X$found_so" != "X"; then
27542 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
27543 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27544 else
27545 haveit=
27546 for x in $ltrpathdirs; do
27547 if test "X$x" = "X$found_dir"; then
27548 haveit=yes
27549 break
27551 done
27552 if test -z "$haveit"; then
27553 ltrpathdirs="$ltrpathdirs $found_dir"
27555 if test "$hardcode_direct" = yes; then
27556 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27557 else
27558 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27559 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27560 haveit=
27561 for x in $rpathdirs; do
27562 if test "X$x" = "X$found_dir"; then
27563 haveit=yes
27564 break
27566 done
27567 if test -z "$haveit"; then
27568 rpathdirs="$rpathdirs $found_dir"
27570 else
27571 haveit=
27572 for x in $LDFLAGS $LIBEXPAT; do
27574 acl_save_prefix="$prefix"
27575 prefix="$acl_final_prefix"
27576 acl_save_exec_prefix="$exec_prefix"
27577 exec_prefix="$acl_final_exec_prefix"
27578 eval x=\"$x\"
27579 exec_prefix="$acl_save_exec_prefix"
27580 prefix="$acl_save_prefix"
27582 if test "X$x" = "X-L$found_dir"; then
27583 haveit=yes
27584 break
27586 done
27587 if test -z "$haveit"; then
27588 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
27590 if test "$hardcode_minus_L" != no; then
27591 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27592 else
27593 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
27598 else
27599 if test "X$found_a" != "X"; then
27600 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
27601 else
27602 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
27605 additional_includedir=
27606 case "$found_dir" in
27607 */lib | */lib/)
27608 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27609 additional_includedir="$basedir/include"
27611 esac
27612 if test "X$additional_includedir" != "X"; then
27613 if test "X$additional_includedir" != "X/usr/include"; then
27614 haveit=
27615 if test "X$additional_includedir" = "X/usr/local/include"; then
27616 if test -n "$GCC"; then
27617 case $host_os in
27618 linux*) haveit=yes;;
27619 esac
27622 if test -z "$haveit"; then
27623 for x in $CPPFLAGS $INCEXPAT; do
27625 acl_save_prefix="$prefix"
27626 prefix="$acl_final_prefix"
27627 acl_save_exec_prefix="$exec_prefix"
27628 exec_prefix="$acl_final_exec_prefix"
27629 eval x=\"$x\"
27630 exec_prefix="$acl_save_exec_prefix"
27631 prefix="$acl_save_prefix"
27633 if test "X$x" = "X-I$additional_includedir"; then
27634 haveit=yes
27635 break
27637 done
27638 if test -z "$haveit"; then
27639 if test -d "$additional_includedir"; then
27640 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
27646 if test -n "$found_la"; then
27647 save_libdir="$libdir"
27648 case "$found_la" in
27649 */* | *\\*) . "$found_la" ;;
27650 *) . "./$found_la" ;;
27651 esac
27652 libdir="$save_libdir"
27653 for dep in $dependency_libs; do
27654 case "$dep" in
27655 -L*)
27656 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27657 if test "X$additional_libdir" != "X/usr/lib"; then
27658 haveit=
27659 if test "X$additional_libdir" = "X/usr/local/lib"; then
27660 if test -n "$GCC"; then
27661 case $host_os in
27662 linux*) haveit=yes;;
27663 esac
27666 if test -z "$haveit"; then
27667 haveit=
27668 for x in $LDFLAGS $LIBEXPAT; do
27670 acl_save_prefix="$prefix"
27671 prefix="$acl_final_prefix"
27672 acl_save_exec_prefix="$exec_prefix"
27673 exec_prefix="$acl_final_exec_prefix"
27674 eval x=\"$x\"
27675 exec_prefix="$acl_save_exec_prefix"
27676 prefix="$acl_save_prefix"
27678 if test "X$x" = "X-L$additional_libdir"; then
27679 haveit=yes
27680 break
27682 done
27683 if test -z "$haveit"; then
27684 if test -d "$additional_libdir"; then
27685 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
27688 haveit=
27689 for x in $LDFLAGS $LTLIBEXPAT; do
27691 acl_save_prefix="$prefix"
27692 prefix="$acl_final_prefix"
27693 acl_save_exec_prefix="$exec_prefix"
27694 exec_prefix="$acl_final_exec_prefix"
27695 eval x=\"$x\"
27696 exec_prefix="$acl_save_exec_prefix"
27697 prefix="$acl_save_prefix"
27699 if test "X$x" = "X-L$additional_libdir"; then
27700 haveit=yes
27701 break
27703 done
27704 if test -z "$haveit"; then
27705 if test -d "$additional_libdir"; then
27706 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
27712 -R*)
27713 dir=`echo "X$dep" | sed -e 's/^X-R//'`
27714 if test "$enable_rpath" != no; then
27715 haveit=
27716 for x in $rpathdirs; do
27717 if test "X$x" = "X$dir"; then
27718 haveit=yes
27719 break
27721 done
27722 if test -z "$haveit"; then
27723 rpathdirs="$rpathdirs $dir"
27725 haveit=
27726 for x in $ltrpathdirs; do
27727 if test "X$x" = "X$dir"; then
27728 haveit=yes
27729 break
27731 done
27732 if test -z "$haveit"; then
27733 ltrpathdirs="$ltrpathdirs $dir"
27737 -l*)
27738 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27740 *.la)
27741 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27744 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
27745 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
27747 esac
27748 done
27750 else
27751 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
27752 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
27753 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
27754 else
27755 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
27756 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
27761 done
27762 done
27763 if test "X$rpathdirs" != "X"; then
27764 if test -n "$hardcode_libdir_separator"; then
27765 alldirs=
27766 for found_dir in $rpathdirs; do
27767 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27768 done
27769 acl_save_libdir="$libdir"
27770 libdir="$alldirs"
27771 eval flag=\"$hardcode_libdir_flag_spec\"
27772 libdir="$acl_save_libdir"
27773 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
27774 else
27775 for found_dir in $rpathdirs; do
27776 acl_save_libdir="$libdir"
27777 libdir="$found_dir"
27778 eval flag=\"$hardcode_libdir_flag_spec\"
27779 libdir="$acl_save_libdir"
27780 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
27781 done
27784 if test "X$ltrpathdirs" != "X"; then
27785 for found_dir in $ltrpathdirs; do
27786 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
27787 done
27791 ac_save_CPPFLAGS="$CPPFLAGS"
27793 for element in $INCEXPAT; do
27794 haveit=
27795 for x in $CPPFLAGS; do
27797 acl_save_prefix="$prefix"
27798 prefix="$acl_final_prefix"
27799 acl_save_exec_prefix="$exec_prefix"
27800 exec_prefix="$acl_final_exec_prefix"
27801 eval x=\"$x\"
27802 exec_prefix="$acl_save_exec_prefix"
27803 prefix="$acl_save_prefix"
27805 if test "X$x" = "X$element"; then
27806 haveit=yes
27807 break
27809 done
27810 if test -z "$haveit"; then
27811 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27813 done
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
27817 $as_echo_n "checking for libexpat... " >&6; }
27818 if ${ac_cv_libexpat+:} false; then :
27819 $as_echo_n "(cached) " >&6
27820 else
27822 ac_save_LIBS="$LIBS"
27823 LIBS="$LIBS $LIBEXPAT"
27824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27825 /* end confdefs.h. */
27826 #include "expat.h"
27828 main ()
27830 XML_Parser p = XML_ParserCreate (0);
27832 return 0;
27834 _ACEOF
27835 if ac_fn_c_try_link "$LINENO"; then :
27836 ac_cv_libexpat=yes
27837 else
27838 ac_cv_libexpat=no
27840 rm -f core conftest.err conftest.$ac_objext \
27841 conftest$ac_exeext conftest.$ac_ext
27842 LIBS="$ac_save_LIBS"
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
27846 $as_echo "$ac_cv_libexpat" >&6; }
27847 if test "$ac_cv_libexpat" = yes; then
27848 HAVE_LIBEXPAT=yes
27850 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
27853 $as_echo_n "checking how to link with libexpat... " >&6; }
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
27855 $as_echo "$LIBEXPAT" >&6; }
27856 else
27857 HAVE_LIBEXPAT=no
27858 CPPFLAGS="$ac_save_CPPFLAGS"
27859 LIBEXPAT=
27860 LTLIBEXPAT=
27868 if test "$HAVE_LIBEXPAT" != yes; then
27869 if test "$with_expat" = yes; then
27870 as_fn_error $? "expat is missing or unusable" "$LINENO" 5
27871 else
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
27873 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
27875 else
27876 save_LIBS=$LIBS
27877 LIBS="$LIBS $LIBEXPAT"
27878 for ac_func in XML_StopParser
27879 do :
27880 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
27881 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
27882 cat >>confdefs.h <<_ACEOF
27883 #define HAVE_XML_STOPPARSER 1
27884 _ACEOF
27887 done
27889 LIBS=$save_LIBS
27896 # --------------------- #
27897 # Check for libpython. #
27898 # --------------------- #
27905 # Check whether --with-python was given.
27906 if test "${with_python+set}" = set; then :
27907 withval=$with_python;
27908 else
27909 with_python=auto
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
27913 $as_echo_n "checking whether to use python... " >&6; }
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
27915 $as_echo "$with_python" >&6; }
27917 if test "${with_python}" = no; then
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
27919 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
27920 have_libpython=no
27921 else
27922 case "${with_python}" in
27923 [\\/]* | ?:[\\/]*)
27924 if test -d "${with_python}"; then
27925 # Assume the python binary is ${with_python}/bin/python.
27926 python_prog="${with_python}/bin/python"
27927 python_prefix=
27928 # If python does not exit ${with_python}/bin, then try in
27929 # ${with_python}. On Windows/MinGW, this is where the Python
27930 # executable is.
27931 if test ! -x "${python_prog}"; then
27932 python_prog="${with_python}/python"
27933 python_prefix=
27935 if test ! -x "${python_prog}"; then
27936 # Fall back to gdb 7.0/7.1 behaviour.
27937 python_prog=missing
27938 python_prefix=${with_python}
27940 elif test -x "${with_python}"; then
27941 # While we can't run python compiled for $host (unless host == build),
27942 # the user could write a script that provides the needed information,
27943 # so we support that.
27944 python_prog=${with_python}
27945 python_prefix=
27946 else
27947 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
27950 */*)
27951 # Disallow --with-python=foo/bar.
27952 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
27955 # The user has either specified auto, yes, or the name of the python
27956 # program assumed to be in $PATH.
27957 python_prefix=
27958 case "${with_python}" in
27959 yes | auto)
27960 if test "${build}" = "${host}"; then
27961 # Look first for 'python', then 'python3'.
27962 for ac_prog in python python3
27964 # Extract the first word of "$ac_prog", so it can be a program name with args.
27965 set dummy $ac_prog; ac_word=$2
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27967 $as_echo_n "checking for $ac_word... " >&6; }
27968 if ${ac_cv_path_python_prog_path+:} false; then :
27969 $as_echo_n "(cached) " >&6
27970 else
27971 case $python_prog_path in
27972 [\\/]* | ?:[\\/]*)
27973 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
27976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27977 for as_dir in $PATH
27979 IFS=$as_save_IFS
27980 test -z "$as_dir" && as_dir=.
27981 for ac_exec_ext in '' $ac_executable_extensions; do
27982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27983 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
27984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27985 break 2
27987 done
27988 done
27989 IFS=$as_save_IFS
27992 esac
27994 python_prog_path=$ac_cv_path_python_prog_path
27995 if test -n "$python_prog_path"; then
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
27997 $as_echo "$python_prog_path" >&6; }
27998 else
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28000 $as_echo "no" >&6; }
28004 test -n "$python_prog_path" && break
28005 done
28006 test -n "$python_prog_path" || python_prog_path="missing"
28008 if test "${python_prog_path}" = missing; then
28009 python_prog=missing
28010 else
28011 python_prog=${python_prog_path}
28013 else
28014 # Not much we can do except assume the cross-compiler will find the
28015 # right files.
28016 python_prog=missing
28020 # While we can't run python compiled for $host (unless host == build),
28021 # the user could write a script that provides the needed information,
28022 # so we support that.
28023 python_prog="${with_python}"
28024 # Extract the first word of "${python_prog}", so it can be a program name with args.
28025 set dummy ${python_prog}; ac_word=$2
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28027 $as_echo_n "checking for $ac_word... " >&6; }
28028 if ${ac_cv_path_python_prog_path+:} false; then :
28029 $as_echo_n "(cached) " >&6
28030 else
28031 case $python_prog_path in
28032 [\\/]* | ?:[\\/]*)
28033 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
28036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28037 for as_dir in $PATH
28039 IFS=$as_save_IFS
28040 test -z "$as_dir" && as_dir=.
28041 for ac_exec_ext in '' $ac_executable_extensions; do
28042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28043 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
28044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28045 break 2
28047 done
28048 done
28049 IFS=$as_save_IFS
28051 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
28053 esac
28055 python_prog_path=$ac_cv_path_python_prog_path
28056 if test -n "$python_prog_path"; then
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
28058 $as_echo "$python_prog_path" >&6; }
28059 else
28060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28061 $as_echo "no" >&6; }
28065 if test "${python_prog_path}" = missing; then
28066 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
28069 esac
28070 esac
28072 if test "${python_prog}" != missing; then
28073 # We have a python program to use, but it may be too old.
28074 # Don't flag an error for --with-python=auto (the default).
28075 have_python_config=yes
28076 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
28077 if test $? != 0; then
28078 have_python_config=failed
28079 if test "${with_python}" != auto; then
28080 as_fn_error $? "failure running python-config --includes" "$LINENO" 5
28083 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
28084 if test $? != 0; then
28085 have_python_config=failed
28086 if test "${with_python}" != auto; then
28087 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
28090 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
28091 if test $? != 0; then
28092 have_python_config=failed
28093 if test "${with_python}" != auto; then
28094 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
28097 else
28098 # We do not have a python executable we can use to determine where
28099 # to find the Python headers and libs. We cannot guess the include
28100 # path from the python_prefix either, because that include path
28101 # depends on the Python version. So, there is nothing much we can
28102 # do except assume that the compiler will be able to find those files.
28103 python_includes=
28104 python_libs=
28105 have_python_config=no
28108 # If we have python-config, only try the configuration it provides.
28109 # Otherwise fallback on the old way of trying different versions of
28110 # python in turn.
28112 have_libpython=no
28113 if test "${have_python_config}" = yes; then
28116 new_CPPFLAGS=${python_includes}
28117 new_LIBS=${python_libs}
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
28119 $as_echo_n "checking for python... " >&6; }
28120 save_CPPFLAGS=$CPPFLAGS
28121 save_LIBS=$LIBS
28122 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28123 LIBS="$new_LIBS $LIBS"
28124 found_usable_python=no
28125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28126 /* end confdefs.h. */
28127 #include "Python.h"
28129 main ()
28132 #if PY_MAJOR_VERSION != 3
28133 # error "We only support Python 3"
28134 #endif
28135 Py_Initialize ();
28138 return 0;
28140 _ACEOF
28141 if ac_fn_c_try_link "$LINENO"; then :
28142 have_libpython=yes
28143 found_usable_python=yes
28144 PYTHON_CPPFLAGS=$new_CPPFLAGS
28145 PYTHON_LIBS=$new_LIBS
28147 rm -f core conftest.err conftest.$ac_objext \
28148 conftest$ac_exeext conftest.$ac_ext
28149 CPPFLAGS=$save_CPPFLAGS
28150 LIBS=$save_LIBS
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
28152 $as_echo "${found_usable_python}" >&6; }
28156 if test "${have_libpython}" = no; then
28157 case "${with_python}" in
28158 yes)
28159 as_fn_error $? "python is missing or unusable" "$LINENO" 5
28161 auto)
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
28163 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
28166 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
28168 esac
28169 else
28170 if test -n "${python_prefix}"; then
28172 cat >>confdefs.h <<_ACEOF
28173 #define WITH_PYTHON_PATH "${python_prefix}"
28174 _ACEOF
28177 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28178 if test "x$prefix" = xNONE; then
28179 test_prefix=/usr/local
28180 else
28181 test_prefix=$prefix
28183 else
28184 test_prefix=$exec_prefix
28186 value=0
28187 case ${python_prefix} in
28188 "${test_prefix}"|"${test_prefix}/"*|\
28189 '${exec_prefix}'|'${exec_prefix}/'*)
28190 value=1
28192 esac
28194 cat >>confdefs.h <<_ACEOF
28195 #define PYTHON_PATH_RELOCATABLE $value
28196 _ACEOF
28204 # Check whether --with-python-libdir was given.
28205 if test "${with_python_libdir+set}" = set; then :
28206 withval=$with_python_libdir;
28207 else
28209 # If no python libdir is specified then select one based on
28210 # python's prefix path.
28211 if test -n "${python_prefix}"; then
28212 with_python_libdir=${python_prefix}/lib
28218 if test "${have_libpython}" != no; then
28220 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
28222 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
28223 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
28224 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
28225 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
28226 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
28228 if test -n "${with_python_libdir}"; then
28230 cat >>confdefs.h <<_ACEOF
28231 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
28232 _ACEOF
28235 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28236 if test "x$prefix" = xNONE; then
28237 test_prefix=/usr/local
28238 else
28239 test_prefix=$prefix
28241 else
28242 test_prefix=$exec_prefix
28244 value=0
28245 case ${with_python_libdir} in
28246 "${test_prefix}"|"${test_prefix}/"*|\
28247 '${exec_prefix}'|'${exec_prefix}/'*)
28248 value=1
28250 esac
28252 cat >>confdefs.h <<_ACEOF
28253 #define PYTHON_LIBDIR_RELOCATABLE $value
28254 _ACEOF
28259 # Flags needed to compile Python code (taken from python-config --cflags).
28260 # We cannot call python-config directly because it will output whatever was
28261 # used when compiling the Python interpreter itself, including flags which
28262 # would make the python-related objects be compiled differently from the
28263 # rest of GDB (e.g., -O2 and -fPIC).
28264 if test "${GCC}" = yes; then
28265 tentative_python_cflags="-fno-strict-aliasing -fwrapv"
28266 # Python headers recommend -DNDEBUG, but it's unclear if that just
28267 # refers to building Python itself. In release mode, though, it
28268 # doesn't hurt for the Python code in gdb to follow.
28269 $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
28272 if test "x${tentative_python_cflags}" != x; then
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
28274 $as_echo_n "checking compiler flags for python code... " >&6; }
28275 for flag in ${tentative_python_cflags}; do
28276 # Check that the compiler accepts it
28277 saved_CFLAGS="$CFLAGS"
28278 CFLAGS="$CFLAGS $flag"
28279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28280 /* end confdefs.h. */
28283 main ()
28287 return 0;
28289 _ACEOF
28290 if ac_fn_c_try_compile "$LINENO"; then :
28291 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
28293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28294 CFLAGS="$saved_CFLAGS"
28295 done
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
28297 $as_echo "${PYTHON_CFLAGS}" >&6; }
28300 # On x64 Windows, Python's include headers, and pyconfig.h in
28301 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
28302 # version of Windows. Unfortunately, MS_WIN64 is only defined if
28303 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
28304 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
28305 # The issue was reported to the Python community, but still isn't
28306 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
28308 case "$gdb_host" in
28309 mingw64)
28310 if test "${GCC}" = yes; then
28311 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
28314 esac
28315 else
28316 # Even if Python support is not compiled in, we need to have this file
28317 # included so that the "python" command, et.al., still exists.
28318 CONFIG_OBS="$CONFIG_OBS python/python.o"
28319 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
28322 # Work around Python http://bugs.python.org/issue10112. See also
28323 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
28324 # no effect. Note that the only test after this that uses Python is
28325 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
28326 # run without -export-dynamic too.
28327 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
28332 if test "${have_libpython}" != no; then
28333 HAVE_PYTHON_TRUE=
28334 HAVE_PYTHON_FALSE='#'
28335 else
28336 HAVE_PYTHON_TRUE='#'
28337 HAVE_PYTHON_FALSE=
28341 # -------------------- #
28342 # Check for libguile. #
28343 # -------------------- #
28350 # Check whether --with-guile was given.
28351 if test "${with_guile+set}" = set; then :
28352 withval=$with_guile;
28353 else
28354 with_guile=auto
28357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
28358 $as_echo_n "checking whether to use guile... " >&6; }
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
28360 $as_echo "$with_guile" >&6; }
28362 # Extract the first word of "pkg-config", so it can be a program name with args.
28363 set dummy pkg-config; ac_word=$2
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28365 $as_echo_n "checking for $ac_word... " >&6; }
28366 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
28367 $as_echo_n "(cached) " >&6
28368 else
28369 case $pkg_config_prog_path in
28370 [\\/]* | ?:[\\/]*)
28371 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
28374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28375 for as_dir in $PATH
28377 IFS=$as_save_IFS
28378 test -z "$as_dir" && as_dir=.
28379 for ac_exec_ext in '' $ac_executable_extensions; do
28380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28381 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
28382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28383 break 2
28385 done
28386 done
28387 IFS=$as_save_IFS
28389 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
28391 esac
28393 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
28394 if test -n "$pkg_config_prog_path"; then
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
28396 $as_echo "$pkg_config_prog_path" >&6; }
28397 else
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28399 $as_echo "no" >&6; }
28404 try_guile_versions="guile-3.0 guile-2.2 guile-2.0"
28405 have_libguile=no
28406 case "${with_guile}" in
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
28409 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
28411 auto)
28412 if test "${pkg_config_prog_path}" = "missing"; then
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
28414 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
28415 else
28417 pkg_config=${pkg_config_prog_path}
28418 guile_version_list=${try_guile_versions}
28419 flag_errors=no
28421 found_usable_guile=checking
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28423 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28424 for guile_version in ${guile_version_list}; do
28425 ${pkg_config} --exists ${guile_version} 2>/dev/null
28426 if test $? != 0; then
28427 continue
28429 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
28430 if test $? != 0; then
28431 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28433 new_LIBS=`${pkg_config} --libs ${guile_version}`
28434 if test $? != 0; then
28435 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28437 found_usable_guile=${guile_version}
28438 break
28439 done
28440 if test "${found_usable_guile}" = "checking"; then
28441 if test "${flag_errors}" = "yes"; then
28442 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28443 else
28444 found_usable_guile=no
28447 if test "${found_usable_guile}" != no; then
28448 save_CPPFLAGS=$CPPFLAGS
28449 save_LIBS=$LIBS
28450 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28451 LIBS="$LIBS $new_LIBS"
28452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28453 /* end confdefs.h. */
28454 #include "libguile.h"
28456 main ()
28458 scm_init_guile ();
28460 return 0;
28462 _ACEOF
28463 if ac_fn_c_try_link "$LINENO"; then :
28464 have_libguile=yes
28465 GUILE_CPPFLAGS=$new_CPPFLAGS
28466 GUILE_LIBS=$new_LIBS
28467 else
28468 found_usable_guile=no
28470 rm -f core conftest.err conftest.$ac_objext \
28471 conftest$ac_exeext conftest.$ac_ext
28472 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28473 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
28475 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28480 CPPFLAGS=$save_CPPFLAGS
28481 LIBS=$save_LIBS
28482 if test "${found_usable_guile}" = no; then
28483 if test "${flag_errors}" = yes; then
28484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28486 as_fn_error $? "linking guile version ${guile_version} test program failed
28487 See \`config.log' for more details" "$LINENO" 5; }
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28492 $as_echo "${found_usable_guile}" >&6; }
28496 yes)
28497 if test "${pkg_config_prog_path}" = "missing"; then
28498 as_fn_error $? "pkg-config not found" "$LINENO" 5
28501 pkg_config=${pkg_config_prog_path}
28502 guile_version_list=${try_guile_versions}
28503 flag_errors=yes
28505 found_usable_guile=checking
28506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28507 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28508 for guile_version in ${guile_version_list}; do
28509 ${pkg_config} --exists ${guile_version} 2>/dev/null
28510 if test $? != 0; then
28511 continue
28513 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
28514 if test $? != 0; then
28515 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28517 new_LIBS=`${pkg_config} --libs ${guile_version}`
28518 if test $? != 0; then
28519 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28521 found_usable_guile=${guile_version}
28522 break
28523 done
28524 if test "${found_usable_guile}" = "checking"; then
28525 if test "${flag_errors}" = "yes"; then
28526 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28527 else
28528 found_usable_guile=no
28531 if test "${found_usable_guile}" != no; then
28532 save_CPPFLAGS=$CPPFLAGS
28533 save_LIBS=$LIBS
28534 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28535 LIBS="$LIBS $new_LIBS"
28536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28537 /* end confdefs.h. */
28538 #include "libguile.h"
28540 main ()
28542 scm_init_guile ();
28544 return 0;
28546 _ACEOF
28547 if ac_fn_c_try_link "$LINENO"; then :
28548 have_libguile=yes
28549 GUILE_CPPFLAGS=$new_CPPFLAGS
28550 GUILE_LIBS=$new_LIBS
28551 else
28552 found_usable_guile=no
28554 rm -f core conftest.err conftest.$ac_objext \
28555 conftest$ac_exeext conftest.$ac_ext
28556 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28557 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
28559 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28564 CPPFLAGS=$save_CPPFLAGS
28565 LIBS=$save_LIBS
28566 if test "${found_usable_guile}" = no; then
28567 if test "${flag_errors}" = yes; then
28568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28570 as_fn_error $? "linking guile version ${guile_version} test program failed
28571 See \`config.log' for more details" "$LINENO" 5; }
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28576 $as_echo "${found_usable_guile}" >&6; }
28579 [\\/]* | ?:[\\/]*)
28580 if test -x "${with_guile}"; then
28582 pkg_config=${with_guile}
28583 guile_version_list=${try_guile_versions}
28584 flag_errors=yes
28586 found_usable_guile=checking
28587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28588 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28589 for guile_version in ${guile_version_list}; do
28590 ${pkg_config} --exists ${guile_version} 2>/dev/null
28591 if test $? != 0; then
28592 continue
28594 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
28595 if test $? != 0; then
28596 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28598 new_LIBS=`${pkg_config} --libs ${guile_version}`
28599 if test $? != 0; then
28600 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28602 found_usable_guile=${guile_version}
28603 break
28604 done
28605 if test "${found_usable_guile}" = "checking"; then
28606 if test "${flag_errors}" = "yes"; then
28607 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28608 else
28609 found_usable_guile=no
28612 if test "${found_usable_guile}" != no; then
28613 save_CPPFLAGS=$CPPFLAGS
28614 save_LIBS=$LIBS
28615 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28616 LIBS="$LIBS $new_LIBS"
28617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28618 /* end confdefs.h. */
28619 #include "libguile.h"
28621 main ()
28623 scm_init_guile ();
28625 return 0;
28627 _ACEOF
28628 if ac_fn_c_try_link "$LINENO"; then :
28629 have_libguile=yes
28630 GUILE_CPPFLAGS=$new_CPPFLAGS
28631 GUILE_LIBS=$new_LIBS
28632 else
28633 found_usable_guile=no
28635 rm -f core conftest.err conftest.$ac_objext \
28636 conftest$ac_exeext conftest.$ac_ext
28637 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28638 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
28640 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28645 CPPFLAGS=$save_CPPFLAGS
28646 LIBS=$save_LIBS
28647 if test "${found_usable_guile}" = no; then
28648 if test "${flag_errors}" = yes; then
28649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28651 as_fn_error $? "linking guile version ${guile_version} test program failed
28652 See \`config.log' for more details" "$LINENO" 5; }
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28657 $as_echo "${found_usable_guile}" >&6; }
28659 else
28660 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
28663 "" | */*)
28664 # Disallow --with=guile="" and --with-guile=foo/bar.
28665 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
28668 # A space separate list of guile versions to try, in order.
28669 if test "${pkg_config_prog_path}" = "missing"; then
28670 as_fn_error $? "pkg-config not found" "$LINENO" 5
28673 pkg_config=${pkg_config_prog_path}
28674 guile_version_list=${with_guile}
28675 flag_errors=yes
28677 found_usable_guile=checking
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28679 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28680 for guile_version in ${guile_version_list}; do
28681 ${pkg_config} --exists ${guile_version} 2>/dev/null
28682 if test $? != 0; then
28683 continue
28685 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
28686 if test $? != 0; then
28687 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28689 new_LIBS=`${pkg_config} --libs ${guile_version}`
28690 if test $? != 0; then
28691 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28693 found_usable_guile=${guile_version}
28694 break
28695 done
28696 if test "${found_usable_guile}" = "checking"; then
28697 if test "${flag_errors}" = "yes"; then
28698 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28699 else
28700 found_usable_guile=no
28703 if test "${found_usable_guile}" != no; then
28704 save_CPPFLAGS=$CPPFLAGS
28705 save_LIBS=$LIBS
28706 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
28707 LIBS="$LIBS $new_LIBS"
28708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28709 /* end confdefs.h. */
28710 #include "libguile.h"
28712 main ()
28714 scm_init_guile ();
28716 return 0;
28718 _ACEOF
28719 if ac_fn_c_try_link "$LINENO"; then :
28720 have_libguile=yes
28721 GUILE_CPPFLAGS=$new_CPPFLAGS
28722 GUILE_LIBS=$new_LIBS
28723 else
28724 found_usable_guile=no
28726 rm -f core conftest.err conftest.$ac_objext \
28727 conftest$ac_exeext conftest.$ac_ext
28728 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28729 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
28731 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28736 CPPFLAGS=$save_CPPFLAGS
28737 LIBS=$save_LIBS
28738 if test "${found_usable_guile}" = no; then
28739 if test "${flag_errors}" = yes; then
28740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28742 as_fn_error $? "linking guile version ${guile_version} test program failed
28743 See \`config.log' for more details" "$LINENO" 5; }
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28748 $as_echo "${found_usable_guile}" >&6; }
28751 esac
28753 if test "${have_libguile}" != no; then
28754 case "${with_guile}" in
28755 [\\/]* | ?:[\\/]*)
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
28758 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
28759 if ${ac_cv_guild_program_name+:} false; then :
28760 $as_echo_n "(cached) " >&6
28761 else
28762 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
28764 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
28765 # the 'guild' and 'bindir' variables. In that case, try to guess
28766 # what the program name is, at the risk of getting it wrong if
28767 # Guile was configured with '--program-suffix' or similar.
28768 if test "x$ac_cv_guild_program_name" = "x"; then
28769 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
28770 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
28774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
28775 $as_echo "$ac_cv_guild_program_name" >&6; }
28777 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
28778 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
28781 GUILD="$ac_cv_guild_program_name"
28787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
28788 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
28789 if ${ac_cv_guild_program_name+:} false; then :
28790 $as_echo_n "(cached) " >&6
28791 else
28792 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
28794 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
28795 # the 'guild' and 'bindir' variables. In that case, try to guess
28796 # what the program name is, at the risk of getting it wrong if
28797 # Guile was configured with '--program-suffix' or similar.
28798 if test "x$ac_cv_guild_program_name" = "x"; then
28799 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
28800 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
28805 $as_echo "$ac_cv_guild_program_name" >&6; }
28807 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
28808 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
28811 GUILD="$ac_cv_guild_program_name"
28815 esac
28818 if test "$cross_compiling" = no; then
28819 GUILD_TARGET_FLAG=
28820 else
28821 GUILD_TARGET_FLAG="--target=$host"
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
28828 $as_echo_n "checking whether guild supports this host... " >&6; }
28829 if ${ac_cv_guild_ok+:} false; then :
28830 $as_echo_n "(cached) " >&6
28831 else
28832 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
28833 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
28834 ac_cv_guild_ok=yes
28835 else
28836 ac_cv_guild_ok=no
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
28840 $as_echo "$ac_cv_guild_ok" >&6; }
28842 if test "$ac_cv_guild_ok" = no; then
28843 have_libguile=no
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
28845 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
28849 if test "${have_libguile}" != no; then
28851 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
28853 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
28854 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
28855 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
28856 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
28857 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
28859 save_LIBS="$LIBS"
28860 save_CPPFLAGS="$CPPFLAGS"
28861 LIBS="$GUILE_LIBS"
28862 CPPFLAGS="$GUILE_CPPFLAGS"
28863 for ac_func in scm_new_smob
28864 do :
28865 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
28866 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
28867 cat >>confdefs.h <<_ACEOF
28868 #define HAVE_SCM_NEW_SMOB 1
28869 _ACEOF
28872 done
28874 LIBS="$save_LIBS"
28875 CPPFLAGS="$save_CPPFLAGS"
28876 else
28877 # Even if Guile support is not compiled in, we need to have these files
28878 # included.
28879 CONFIG_OBS="$CONFIG_OBS guile/guile.o"
28880 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
28884 if test "${have_libguile}" != no; then
28885 HAVE_GUILE_TRUE=
28886 HAVE_GUILE_FALSE='#'
28887 else
28888 HAVE_GUILE_TRUE='#'
28889 HAVE_GUILE_FALSE=
28893 # ---------------------------- #
28894 # Check for source highlight. #
28895 # ---------------------------- #
28897 SRCHIGH_LIBS=
28898 SRCHIGH_CFLAGS=
28900 # Check whether --enable-source-highlight was given.
28901 if test "${enable_source_highlight+set}" = set; then :
28902 enableval=$enable_source_highlight;
28903 case $enableval in
28904 yes | no | auto)
28907 as_fn_error $? "bad value $enableval for --enable-source-highlight" "$LINENO" 5
28909 esac
28911 else
28912 enable_source_highlight=auto
28916 if test "${enable_source_highlight}" != "no"; then
28917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
28918 $as_echo_n "checking for the source-highlight library... " >&6; }
28919 if test "${pkg_config_prog_path}" = "missing"; then
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
28921 $as_echo "no - pkg-config not found" >&6; }
28922 if test "${enable_source_highlight}" = "yes"; then
28923 as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
28925 else
28926 if ${pkg_config_prog_path} --exists source-highlight; then
28927 case "$LDFLAGS" in
28928 *static-libstdc*)
28929 as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
28931 esac
28933 srchigh_pkg_cflags=`${pkg_config_prog_path} --cflags source-highlight`
28934 srchigh_pkg_libs=`${pkg_config_prog_path} --libs source-highlight`
28936 # Now that we have found a source-highlight library, check if we can use
28937 # it. In particular, we're trying to detect the situation that the
28938 # library is using the new libstdc++ library abi ( see
28939 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
28940 # while the compiler being used to compile gdb is using the old abi.
28941 # Such a situation will result in an undefined reference to
28942 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
28943 # This situation can occur for instance when using a source highlight
28944 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
28945 ac_ext=cpp
28946 ac_cpp='$CXXCPP $CPPFLAGS'
28947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28951 save_CXXFLAGS="$CXXFLAGS"
28952 save_LIBS="$LIBS"
28953 CXXFLAGS="$CXXFLAGS $srchigh_pkg_cflags"
28954 LIBS="$LIBS $srchigh_pkg_libs"
28955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28956 /* end confdefs.h. */
28957 #include <srchilite/sourcehighlight.h>
28959 main ()
28961 std::string outlang = "esc.outlang";
28962 new srchilite::SourceHighlight (outlang);
28965 return 0;
28967 _ACEOF
28968 if ac_fn_cxx_try_link "$LINENO"; then :
28969 have_usable_source_highlight=yes
28970 else
28971 have_usable_source_highlight=no
28974 rm -f core conftest.err conftest.$ac_objext \
28975 conftest$ac_exeext conftest.$ac_ext
28976 CXXFLAGS="$save_CXXFLAGS"
28977 LIBS="$save_LIBS"
28978 ac_ext=c
28979 ac_cpp='$CPP $CPPFLAGS'
28980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28985 if test "${have_usable_source_highlight}" = "yes"; then
28987 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28990 $as_echo "yes" >&6; }
28991 SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
28992 SRCHIGH_LIBS="$srchigh_pkg_libs"
28993 else
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28995 $as_echo "no" >&6; }
28996 if test "${enable_source_highlight}" = "yes"; then
28997 as_fn_error $? "source-highlight in your system could not be used" "$LINENO" 5
29000 else
29001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29002 $as_echo "no" >&6; }
29003 if test "${enable_source_highlight}" = "yes"; then
29004 as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
29012 # ------------------------- #
29013 # Checks for header files. #
29014 # ------------------------- #
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
29017 $as_echo_n "checking for ANSI C header files... " >&6; }
29018 if ${ac_cv_header_stdc+:} false; then :
29019 $as_echo_n "(cached) " >&6
29020 else
29021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29022 /* end confdefs.h. */
29023 #include <stdlib.h>
29024 #include <stdarg.h>
29025 #include <string.h>
29026 #include <float.h>
29029 main ()
29033 return 0;
29035 _ACEOF
29036 if ac_fn_c_try_compile "$LINENO"; then :
29037 ac_cv_header_stdc=yes
29038 else
29039 ac_cv_header_stdc=no
29041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29043 if test $ac_cv_header_stdc = yes; then
29044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29046 /* end confdefs.h. */
29047 #include <string.h>
29049 _ACEOF
29050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29051 $EGREP "memchr" >/dev/null 2>&1; then :
29053 else
29054 ac_cv_header_stdc=no
29056 rm -f conftest*
29060 if test $ac_cv_header_stdc = yes; then
29061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29063 /* end confdefs.h. */
29064 #include <stdlib.h>
29066 _ACEOF
29067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29068 $EGREP "free" >/dev/null 2>&1; then :
29070 else
29071 ac_cv_header_stdc=no
29073 rm -f conftest*
29077 if test $ac_cv_header_stdc = yes; then
29078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29079 if test "$cross_compiling" = yes; then :
29081 else
29082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29083 /* end confdefs.h. */
29084 #include <ctype.h>
29085 #include <stdlib.h>
29086 #if ((' ' & 0x0FF) == 0x020)
29087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29089 #else
29090 # define ISLOWER(c) \
29091 (('a' <= (c) && (c) <= 'i') \
29092 || ('j' <= (c) && (c) <= 'r') \
29093 || ('s' <= (c) && (c) <= 'z'))
29094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29095 #endif
29097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29099 main ()
29101 int i;
29102 for (i = 0; i < 256; i++)
29103 if (XOR (islower (i), ISLOWER (i))
29104 || toupper (i) != TOUPPER (i))
29105 return 2;
29106 return 0;
29108 _ACEOF
29109 if ac_fn_c_try_run "$LINENO"; then :
29111 else
29112 ac_cv_header_stdc=no
29114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29115 conftest.$ac_objext conftest.beam conftest.$ac_ext
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
29121 $as_echo "$ac_cv_header_stdc" >&6; }
29122 if test $ac_cv_header_stdc = yes; then
29124 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
29128 # elf_hp.h is for HP/UX 64-bit shared library support.
29129 for ac_header in nlist.h machine/reg.h \
29130 thread_db.h \
29131 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
29132 sys/procctl.h sys/resource.h sys/ptrace.h ptrace.h \
29133 sys/reg.h sys/debugreg.h \
29134 termios.h elf_hp.h
29135 do :
29136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29137 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29138 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29139 cat >>confdefs.h <<_ACEOF
29140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29141 _ACEOF
29145 done
29147 for ac_header in sys/user.h
29148 do :
29149 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
29150 # include <sys/param.h>
29151 #endif
29154 if test "x$ac_cv_header_sys_user_h" = xyes; then :
29155 cat >>confdefs.h <<_ACEOF
29156 #define HAVE_SYS_USER_H 1
29157 _ACEOF
29161 done
29164 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
29165 do :
29166 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29167 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29168 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29169 cat >>confdefs.h <<_ACEOF
29170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29171 _ACEOF
29175 done
29177 for ac_header in term.h
29178 do :
29179 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
29180 # include <curses.h>
29181 #endif
29184 if test "x$ac_cv_header_term_h" = xyes; then :
29185 cat >>confdefs.h <<_ACEOF
29186 #define HAVE_TERM_H 1
29187 _ACEOF
29191 done
29194 for ac_header in sys/socket.h
29195 do :
29196 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
29197 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
29198 cat >>confdefs.h <<_ACEOF
29199 #define HAVE_SYS_SOCKET_H 1
29200 _ACEOF
29204 done
29206 for ac_header in ws2tcpip.h
29207 do :
29208 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
29209 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
29210 cat >>confdefs.h <<_ACEOF
29211 #define HAVE_WS2TCPIP_H 1
29212 _ACEOF
29216 done
29218 for ac_header in execinfo.h
29219 do :
29220 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
29221 if test "x$ac_cv_header_execinfo_h" = xyes; then :
29222 cat >>confdefs.h <<_ACEOF
29223 #define HAVE_EXECINFO_H 1
29224 _ACEOF
29228 done
29231 # ------------------------- #
29232 # Checks for declarations. #
29233 # ------------------------- #
29236 # Check for presence and size of long long.
29237 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
29238 if test "x$ac_cv_type_long_long" = xyes; then :
29240 cat >>confdefs.h <<_ACEOF
29241 #define HAVE_LONG_LONG 1
29242 _ACEOF
29244 # The cast to long int works around a bug in the HP C Compiler
29245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29247 # This bug is HP SR number 8606223364.
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
29249 $as_echo_n "checking size of long long... " >&6; }
29250 if ${ac_cv_sizeof_long_long+:} false; then :
29251 $as_echo_n "(cached) " >&6
29252 else
29253 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
29255 else
29256 if test "$ac_cv_type_long_long" = yes; then
29257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29259 as_fn_error 77 "cannot compute sizeof (long long)
29260 See \`config.log' for more details" "$LINENO" 5; }
29261 else
29262 ac_cv_sizeof_long_long=0
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
29268 $as_echo "$ac_cv_sizeof_long_long" >&6; }
29272 cat >>confdefs.h <<_ACEOF
29273 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
29274 _ACEOF
29280 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
29281 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
29282 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
29283 ac_have_decl=1
29284 else
29285 ac_have_decl=0
29288 cat >>confdefs.h <<_ACEOF
29289 #define HAVE_DECL_BASENAME $ac_have_decl
29290 _ACEOF
29291 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
29292 if test "x$ac_cv_have_decl_ffs" = xyes; then :
29293 ac_have_decl=1
29294 else
29295 ac_have_decl=0
29298 cat >>confdefs.h <<_ACEOF
29299 #define HAVE_DECL_FFS $ac_have_decl
29300 _ACEOF
29301 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
29302 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
29303 ac_have_decl=1
29304 else
29305 ac_have_decl=0
29308 cat >>confdefs.h <<_ACEOF
29309 #define HAVE_DECL_ASPRINTF $ac_have_decl
29310 _ACEOF
29311 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
29312 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
29313 ac_have_decl=1
29314 else
29315 ac_have_decl=0
29318 cat >>confdefs.h <<_ACEOF
29319 #define HAVE_DECL_VASPRINTF $ac_have_decl
29320 _ACEOF
29321 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29322 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
29323 ac_have_decl=1
29324 else
29325 ac_have_decl=0
29328 cat >>confdefs.h <<_ACEOF
29329 #define HAVE_DECL_SNPRINTF $ac_have_decl
29330 _ACEOF
29331 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
29332 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
29333 ac_have_decl=1
29334 else
29335 ac_have_decl=0
29338 cat >>confdefs.h <<_ACEOF
29339 #define HAVE_DECL_VSNPRINTF $ac_have_decl
29340 _ACEOF
29342 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
29343 if test "x$ac_cv_have_decl_strtol" = xyes; then :
29344 ac_have_decl=1
29345 else
29346 ac_have_decl=0
29349 cat >>confdefs.h <<_ACEOF
29350 #define HAVE_DECL_STRTOL $ac_have_decl
29351 _ACEOF
29352 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
29353 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
29354 ac_have_decl=1
29355 else
29356 ac_have_decl=0
29359 cat >>confdefs.h <<_ACEOF
29360 #define HAVE_DECL_STRTOUL $ac_have_decl
29361 _ACEOF
29362 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
29363 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
29364 ac_have_decl=1
29365 else
29366 ac_have_decl=0
29369 cat >>confdefs.h <<_ACEOF
29370 #define HAVE_DECL_STRTOLL $ac_have_decl
29371 _ACEOF
29372 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
29373 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
29374 ac_have_decl=1
29375 else
29376 ac_have_decl=0
29379 cat >>confdefs.h <<_ACEOF
29380 #define HAVE_DECL_STRTOULL $ac_have_decl
29381 _ACEOF
29383 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
29384 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
29385 ac_have_decl=1
29386 else
29387 ac_have_decl=0
29390 cat >>confdefs.h <<_ACEOF
29391 #define HAVE_DECL_STRVERSCMP $ac_have_decl
29392 _ACEOF
29396 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29397 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
29398 ac_have_decl=1
29399 else
29400 ac_have_decl=0
29403 cat >>confdefs.h <<_ACEOF
29404 #define HAVE_DECL_SNPRINTF $ac_have_decl
29405 _ACEOF
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
29409 $as_echo_n "checking for LC_MESSAGES... " >&6; }
29410 if ${am_cv_val_LC_MESSAGES+:} false; then :
29411 $as_echo_n "(cached) " >&6
29412 else
29413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29414 /* end confdefs.h. */
29415 #include <locale.h>
29417 main ()
29419 return LC_MESSAGES
29421 return 0;
29423 _ACEOF
29424 if ac_fn_c_try_link "$LINENO"; then :
29425 am_cv_val_LC_MESSAGES=yes
29426 else
29427 am_cv_val_LC_MESSAGES=no
29429 rm -f core conftest.err conftest.$ac_objext \
29430 conftest$ac_exeext conftest.$ac_ext
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
29433 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
29434 if test $am_cv_val_LC_MESSAGES = yes; then
29436 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
29441 # ------------------ #
29442 # Checks for types. #
29443 # ------------------ #
29445 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
29446 #if HAVE_SYS_SOCKET_H
29447 # include <sys/socket.h>
29448 #elif HAVE_WS2TCPIP_H
29449 # include <ws2tcpip.h>
29450 #endif
29453 if test "x$ac_cv_type_socklen_t" = xyes; then :
29455 cat >>confdefs.h <<_ACEOF
29456 #define HAVE_SOCKLEN_T 1
29457 _ACEOF
29463 # ------------------------------------- #
29464 # Checks for compiler characteristics. #
29465 # ------------------------------------- #
29467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
29468 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
29469 if ${ac_cv_c_const+:} false; then :
29470 $as_echo_n "(cached) " >&6
29471 else
29472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29473 /* end confdefs.h. */
29476 main ()
29479 #ifndef __cplusplus
29480 /* Ultrix mips cc rejects this sort of thing. */
29481 typedef int charset[2];
29482 const charset cs = { 0, 0 };
29483 /* SunOS 4.1.1 cc rejects this. */
29484 char const *const *pcpcc;
29485 char **ppc;
29486 /* NEC SVR4.0.2 mips cc rejects this. */
29487 struct point {int x, y;};
29488 static struct point const zero = {0,0};
29489 /* AIX XL C 1.02.0.0 rejects this.
29490 It does not let you subtract one const X* pointer from another in
29491 an arm of an if-expression whose if-part is not a constant
29492 expression */
29493 const char *g = "string";
29494 pcpcc = &g + (g ? g-g : 0);
29495 /* HPUX 7.0 cc rejects these. */
29496 ++pcpcc;
29497 ppc = (char**) pcpcc;
29498 pcpcc = (char const *const *) ppc;
29499 { /* SCO 3.2v4 cc rejects this sort of thing. */
29500 char tx;
29501 char *t = &tx;
29502 char const *s = 0 ? (char *) 0 : (char const *) 0;
29504 *t++ = 0;
29505 if (s) return 0;
29507 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
29508 int x[] = {25, 17};
29509 const int *foo = &x[0];
29510 ++foo;
29512 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29513 typedef const int *iptr;
29514 iptr p = 0;
29515 ++p;
29517 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
29518 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29519 struct s { int j; const int *ap[3]; } bx;
29520 struct s *b = &bx; b->j = 5;
29522 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29523 const int foo = 10;
29524 if (!foo) return 0;
29526 return !cs[0] && !zero.x;
29527 #endif
29530 return 0;
29532 _ACEOF
29533 if ac_fn_c_try_compile "$LINENO"; then :
29534 ac_cv_c_const=yes
29535 else
29536 ac_cv_c_const=no
29538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
29541 $as_echo "$ac_cv_c_const" >&6; }
29542 if test $ac_cv_c_const = no; then
29544 $as_echo "#define const /**/" >>confdefs.h
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
29549 $as_echo_n "checking for inline... " >&6; }
29550 if ${ac_cv_c_inline+:} false; then :
29551 $as_echo_n "(cached) " >&6
29552 else
29553 ac_cv_c_inline=no
29554 for ac_kw in inline __inline__ __inline; do
29555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29556 /* end confdefs.h. */
29557 #ifndef __cplusplus
29558 typedef int foo_t;
29559 static $ac_kw foo_t static_foo () {return 0; }
29560 $ac_kw foo_t foo () {return 0; }
29561 #endif
29563 _ACEOF
29564 if ac_fn_c_try_compile "$LINENO"; then :
29565 ac_cv_c_inline=$ac_kw
29567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29568 test "$ac_cv_c_inline" != no && break
29569 done
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
29573 $as_echo "$ac_cv_c_inline" >&6; }
29575 case $ac_cv_c_inline in
29576 inline | yes) ;;
29578 case $ac_cv_c_inline in
29579 no) ac_val=;;
29580 *) ac_val=$ac_cv_c_inline;;
29581 esac
29582 cat >>confdefs.h <<_ACEOF
29583 #ifndef __cplusplus
29584 #define inline $ac_val
29585 #endif
29586 _ACEOF
29588 esac
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
29591 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
29592 if ${ac_cv_c_bigendian+:} false; then :
29593 $as_echo_n "(cached) " >&6
29594 else
29595 ac_cv_c_bigendian=unknown
29596 # See if we're dealing with a universal compiler.
29597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29598 /* end confdefs.h. */
29599 #ifndef __APPLE_CC__
29600 not a universal capable compiler
29601 #endif
29602 typedef int dummy;
29604 _ACEOF
29605 if ac_fn_c_try_compile "$LINENO"; then :
29607 # Check for potential -arch flags. It is not universal unless
29608 # there are at least two -arch flags with different values.
29609 ac_arch=
29610 ac_prev=
29611 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
29612 if test -n "$ac_prev"; then
29613 case $ac_word in
29614 i?86 | x86_64 | ppc | ppc64)
29615 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
29616 ac_arch=$ac_word
29617 else
29618 ac_cv_c_bigendian=universal
29619 break
29622 esac
29623 ac_prev=
29624 elif test "x$ac_word" = "x-arch"; then
29625 ac_prev=arch
29627 done
29629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29630 if test $ac_cv_c_bigendian = unknown; then
29631 # See if sys/param.h defines the BYTE_ORDER macro.
29632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29633 /* end confdefs.h. */
29634 #include <sys/types.h>
29635 #include <sys/param.h>
29638 main ()
29640 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
29641 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
29642 && LITTLE_ENDIAN)
29643 bogus endian macros
29644 #endif
29647 return 0;
29649 _ACEOF
29650 if ac_fn_c_try_compile "$LINENO"; then :
29651 # It does; now see whether it defined to BIG_ENDIAN or not.
29652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29653 /* end confdefs.h. */
29654 #include <sys/types.h>
29655 #include <sys/param.h>
29658 main ()
29660 #if BYTE_ORDER != BIG_ENDIAN
29661 not big endian
29662 #endif
29665 return 0;
29667 _ACEOF
29668 if ac_fn_c_try_compile "$LINENO"; then :
29669 ac_cv_c_bigendian=yes
29670 else
29671 ac_cv_c_bigendian=no
29673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29677 if test $ac_cv_c_bigendian = unknown; then
29678 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
29679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29680 /* end confdefs.h. */
29681 #include <limits.h>
29684 main ()
29686 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
29687 bogus endian macros
29688 #endif
29691 return 0;
29693 _ACEOF
29694 if ac_fn_c_try_compile "$LINENO"; then :
29695 # It does; now see whether it defined to _BIG_ENDIAN or not.
29696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29697 /* end confdefs.h. */
29698 #include <limits.h>
29701 main ()
29703 #ifndef _BIG_ENDIAN
29704 not big endian
29705 #endif
29708 return 0;
29710 _ACEOF
29711 if ac_fn_c_try_compile "$LINENO"; then :
29712 ac_cv_c_bigendian=yes
29713 else
29714 ac_cv_c_bigendian=no
29716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29720 if test $ac_cv_c_bigendian = unknown; then
29721 # Compile a test program.
29722 if test "$cross_compiling" = yes; then :
29723 # Try to guess by grepping values from an object file.
29724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29725 /* end confdefs.h. */
29726 short int ascii_mm[] =
29727 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
29728 short int ascii_ii[] =
29729 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
29730 int use_ascii (int i) {
29731 return ascii_mm[i] + ascii_ii[i];
29733 short int ebcdic_ii[] =
29734 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
29735 short int ebcdic_mm[] =
29736 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
29737 int use_ebcdic (int i) {
29738 return ebcdic_mm[i] + ebcdic_ii[i];
29740 extern int foo;
29743 main ()
29745 return use_ascii (foo) == use_ebcdic (foo);
29747 return 0;
29749 _ACEOF
29750 if ac_fn_c_try_compile "$LINENO"; then :
29751 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
29752 ac_cv_c_bigendian=yes
29754 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
29755 if test "$ac_cv_c_bigendian" = unknown; then
29756 ac_cv_c_bigendian=no
29757 else
29758 # finding both strings is unlikely to happen, but who knows?
29759 ac_cv_c_bigendian=unknown
29763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29764 else
29765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29766 /* end confdefs.h. */
29767 $ac_includes_default
29769 main ()
29772 /* Are we little or big endian? From Harbison&Steele. */
29773 union
29775 long int l;
29776 char c[sizeof (long int)];
29777 } u;
29778 u.l = 1;
29779 return u.c[sizeof (long int) - 1] == 1;
29782 return 0;
29784 _ACEOF
29785 if ac_fn_c_try_run "$LINENO"; then :
29786 ac_cv_c_bigendian=no
29787 else
29788 ac_cv_c_bigendian=yes
29790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29791 conftest.$ac_objext conftest.beam conftest.$ac_ext
29796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
29797 $as_echo "$ac_cv_c_bigendian" >&6; }
29798 case $ac_cv_c_bigendian in #(
29799 yes)
29800 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
29801 ;; #(
29803 ;; #(
29804 universal)
29806 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
29808 ;; #(
29810 as_fn_error $? "unknown endianness
29811 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
29812 esac
29815 # ------------------------------ #
29816 # Checks for library functions. #
29817 # ------------------------------ #
29819 for ac_func in getuid getgid \
29820 pread pread64 pwrite resize_term \
29821 getpgid setsid \
29822 sigsetmask \
29823 ttrace wresize setlocale iconvlist libiconvlist btowc \
29824 setrlimit getrlimit posix_madvise waitpid \
29825 use_default_colors
29826 do :
29827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29830 cat >>confdefs.h <<_ACEOF
29831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29832 _ACEOF
29835 done
29838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
29839 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
29840 if ${am_cv_langinfo_codeset+:} false; then :
29841 $as_echo_n "(cached) " >&6
29842 else
29843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29844 /* end confdefs.h. */
29845 #include <langinfo.h>
29847 main ()
29849 char* cs = nl_langinfo(CODESET);
29851 return 0;
29853 _ACEOF
29854 if ac_fn_c_try_link "$LINENO"; then :
29855 am_cv_langinfo_codeset=yes
29856 else
29857 am_cv_langinfo_codeset=no
29859 rm -f core conftest.err conftest.$ac_objext \
29860 conftest$ac_exeext conftest.$ac_ext
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
29864 $as_echo "$am_cv_langinfo_codeset" >&6; }
29865 if test $am_cv_langinfo_codeset = yes; then
29867 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
29872 # Check the return and argument types of ptrace.
29875 for ac_header in sys/ptrace.h ptrace.h
29876 do :
29877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29878 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29879 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29880 cat >>confdefs.h <<_ACEOF
29881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29882 _ACEOF
29886 done
29889 gdb_ptrace_headers='
29890 #include <sys/types.h>
29891 #if HAVE_SYS_PTRACE_H
29892 # include <sys/ptrace.h>
29893 #endif
29894 #if HAVE_UNISTD_H
29895 # include <unistd.h>
29896 #endif
29899 # Check return type. Varargs (used on GNU/Linux) conflict with the
29900 # empty argument list, so check for that explicitly.
29901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
29902 $as_echo_n "checking return type of ptrace... " >&6; }
29903 if ${gdb_cv_func_ptrace_ret+:} false; then :
29904 $as_echo_n "(cached) " >&6
29905 else
29906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29907 /* end confdefs.h. */
29908  $gdb_ptrace_headers
29910 main ()
29912 extern long ptrace (enum __ptrace_request, ...);
29915 return 0;
29917 _ACEOF
29918 if ac_fn_c_try_compile "$LINENO"; then :
29919 gdb_cv_func_ptrace_ret='long'
29920 else
29921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29922 /* end confdefs.h. */
29923 $gdb_ptrace_headers
29925 main ()
29927 extern int ptrace ();
29930 return 0;
29932 _ACEOF
29933 if ac_fn_c_try_compile "$LINENO"; then :
29934 gdb_cv_func_ptrace_ret='int'
29935 else
29936 gdb_cv_func_ptrace_ret='long'
29939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
29946 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
29949 cat >>confdefs.h <<_ACEOF
29950 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
29951 _ACEOF
29954 # Check argument types.
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
29956 $as_echo_n "checking types of arguments for ptrace... " >&6; }
29957 if ${gdb_cv_func_ptrace_args+:} false; then :
29958 $as_echo_n "(cached) " >&6
29959 else
29960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29961 /* end confdefs.h. */
29962 $gdb_ptrace_headers
29964 main ()
29966 extern long ptrace (enum __ptrace_request, ...);
29969 return 0;
29971 _ACEOF
29972 if ac_fn_c_try_compile "$LINENO"; then :
29973 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
29974 else
29975 for gdb_arg1 in 'int' 'long'; do
29976 for gdb_arg2 in 'pid_t' 'int' 'long'; do
29977 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
29978 for gdb_arg4 in 'int' 'long' 'void *'; do
29979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29980 /* end confdefs.h. */
29981 $gdb_ptrace_headers
29983 main ()
29985 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
29988 return 0;
29990 _ACEOF
29991 if ac_fn_c_try_compile "$LINENO"; then :
29992 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
29993 break 4;
29996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29998 for gdb_arg5 in 'int *' 'int' 'long'; do
29999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30000 /* end confdefs.h. */
30001 $gdb_ptrace_headers
30003 main ()
30005 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
30008 return 0;
30010 _ACEOF
30011 if ac_fn_c_try_compile "$LINENO"; then :
30012 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
30013 break 5;
30016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30017 done
30018 done
30019 done
30020 done
30021 done
30022 # Provide a safe default value.
30023 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
30026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
30030 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
30032 ac_save_IFS=$IFS; IFS=','
30033 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
30034 IFS=$ac_save_IFS
30035 shift
30037 cat >>confdefs.h <<_ACEOF
30038 #define PTRACE_TYPE_ARG1 $1
30039 _ACEOF
30042 cat >>confdefs.h <<_ACEOF
30043 #define PTRACE_TYPE_ARG3 $3
30044 _ACEOF
30047 cat >>confdefs.h <<_ACEOF
30048 #define PTRACE_TYPE_ARG4 $4
30049 _ACEOF
30051 if test -n "$5"; then
30053 cat >>confdefs.h <<_ACEOF
30054 #define PTRACE_TYPE_ARG5 $5
30055 _ACEOF
30060 if test "$cross_compiling" = no; then
30061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
30062 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
30063 if ${ac_cv_func_setpgrp_void+:} false; then :
30064 $as_echo_n "(cached) " >&6
30065 else
30066 if test "$cross_compiling" = yes; then :
30067 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
30068 else
30069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30070 /* end confdefs.h. */
30071 $ac_includes_default
30073 main ()
30075 /* If this system has a BSD-style setpgrp which takes arguments,
30076 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
30077 exit successfully. */
30078 return setpgrp (1,1) != -1;
30080 return 0;
30082 _ACEOF
30083 if ac_fn_c_try_run "$LINENO"; then :
30084 ac_cv_func_setpgrp_void=no
30085 else
30086 ac_cv_func_setpgrp_void=yes
30088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30089 conftest.$ac_objext conftest.beam conftest.$ac_ext
30093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
30094 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
30095 if test $ac_cv_func_setpgrp_void = yes; then
30097 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
30101 else
30102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
30103 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
30104 if ${ac_cv_func_setpgrp_void+:} false; then :
30105 $as_echo_n "(cached) " >&6
30106 else
30107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30108 /* end confdefs.h. */
30109 #include <unistd.h>
30111 main ()
30113 if (setpgrp(1,1) == -1)
30114 exit (0);
30115 else
30116 exit (1);
30119 return 0;
30121 _ACEOF
30122 if ac_fn_c_try_compile "$LINENO"; then :
30123 ac_cv_func_setpgrp_void=no
30124 else
30125 ac_cv_func_setpgrp_void=yes
30128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
30132 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
30133 if test "$ac_cv_func_setpgrp_void" = yes; then
30134 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
30139 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
30140 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
30141 #include <sys/proc.h>
30144 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
30146 cat >>confdefs.h <<_ACEOF
30147 #define HAVE_STRUCT_THREAD_TD_PCB 1
30148 _ACEOF
30154 # See if <sys/lwp.h> defines `struct lwp`.
30155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
30156 $as_echo_n "checking for struct lwp... " >&6; }
30157 if ${gdb_cv_struct_lwp+:} false; then :
30158 $as_echo_n "(cached) " >&6
30159 else
30160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30161 /* end confdefs.h. */
30162 #include <sys/param.h>
30163 #define _KMEMUSER
30164 #include <sys/lwp.h>
30166 main ()
30168 struct lwp l;
30171 return 0;
30173 _ACEOF
30174 if ac_fn_c_try_compile "$LINENO"; then :
30175 gdb_cv_struct_lwp=yes
30176 else
30177 gdb_cv_struct_lwp=no
30180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
30184 $as_echo "$gdb_cv_struct_lwp" >&6; }
30185 if test "$gdb_cv_struct_lwp" = yes; then
30187 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
30191 # See if <machine/reg.h> degines `struct reg'.
30192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
30193 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
30194 if ${gdb_cv_struct_reg+:} false; then :
30195 $as_echo_n "(cached) " >&6
30196 else
30197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30198 /* end confdefs.h. */
30199 #include <sys/types.h>
30200 #include <machine/reg.h>
30202 main ()
30204 struct reg r;
30207 return 0;
30209 _ACEOF
30210 if ac_fn_c_try_compile "$LINENO"; then :
30211 gdb_cv_struct_reg=yes
30212 else
30213 gdb_cv_struct_reg=no
30216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
30220 $as_echo "$gdb_cv_struct_reg" >&6; }
30221 if test "$gdb_cv_struct_reg" = yes; then
30223 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
30227 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
30228 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
30229 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
30230 #include <machine/reg.h>
30232 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
30234 cat >>confdefs.h <<_ACEOF
30235 #define HAVE_STRUCT_REG_R_FS 1
30236 _ACEOF
30240 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
30241 #include <machine/reg.h>
30243 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
30245 cat >>confdefs.h <<_ACEOF
30246 #define HAVE_STRUCT_REG_R_GS 1
30247 _ACEOF
30253 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
30255 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
30256 if ${gdb_cv_have_ptrace_getregs+:} false; then :
30257 $as_echo_n "(cached) " >&6
30258 else
30259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30260 /* end confdefs.h. */
30261 #include <sys/ptrace.h>
30263 main ()
30265 PTRACE_GETREGS;
30267 return 0;
30269 _ACEOF
30270 if ac_fn_c_try_compile "$LINENO"; then :
30271 gdb_cv_have_ptrace_getregs=yes
30272 else
30273 gdb_cv_have_ptrace_getregs=no
30276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
30281 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
30282 if test "$gdb_cv_have_ptrace_getregs" = yes; then
30284 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
30288 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
30290 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
30291 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
30292 $as_echo_n "(cached) " >&6
30293 else
30294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30295 /* end confdefs.h. */
30296 #include <sys/ptrace.h>
30298 main ()
30300 PTRACE_GETFPXREGS;
30302 return 0;
30304 _ACEOF
30305 if ac_fn_c_try_compile "$LINENO"; then :
30306 gdb_cv_have_ptrace_getfpxregs=yes
30307 else
30308 gdb_cv_have_ptrace_getfpxregs=no
30311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
30316 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
30317 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
30319 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
30323 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
30325 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
30326 if ${gdb_cv_have_pt_getdbregs+:} false; then :
30327 $as_echo_n "(cached) " >&6
30328 else
30329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30330 /* end confdefs.h. */
30331 #include <sys/types.h>
30332 #include <sys/ptrace.h>
30334 main ()
30336 PT_GETDBREGS;
30339 return 0;
30341 _ACEOF
30342 if ac_fn_c_try_compile "$LINENO"; then :
30343 gdb_cv_have_pt_getdbregs=yes
30344 else
30345 gdb_cv_have_pt_getdbregs=no
30348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
30353 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
30354 if test "$gdb_cv_have_pt_getdbregs" = yes; then
30356 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
30360 # See if <sys/ptrace.h> supports LWP names on FreeBSD
30361 # Older FreeBSD versions don't have the pl_tdname member of
30362 # `struct ptrace_lwpinfo'.
30363 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
30365 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
30367 cat >>confdefs.h <<_ACEOF
30368 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
30369 _ACEOF
30375 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
30376 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
30377 # FreeBSD 10.3.
30378 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>
30380 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
30382 cat >>confdefs.h <<_ACEOF
30383 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
30384 _ACEOF
30390 # Check if the compiler supports the `long long' type.
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
30393 $as_echo_n "checking for long long support in compiler... " >&6; }
30394 if ${gdb_cv_c_long_long+:} false; then :
30395 $as_echo_n "(cached) " >&6
30396 else
30397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30398 /* end confdefs.h. */
30399 extern long long foo;
30401 main ()
30403 switch (foo & 2) { case 0: return 1; }
30405 return 0;
30407 _ACEOF
30408 if ac_fn_c_try_compile "$LINENO"; then :
30409 gdb_cv_c_long_long=yes
30410 else
30411 gdb_cv_c_long_long=no
30413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
30416 $as_echo "$gdb_cv_c_long_long" >&6; }
30417 if test "$gdb_cv_c_long_long" != yes; then
30418 # libdecnumber requires long long.
30419 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
30422 # Check if the compiler and runtime support printing decfloats.
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
30425 $as_echo_n "checking for decfloat support in printf... " >&6; }
30426 if ${gdb_cv_printf_has_decfloat+:} false; then :
30427 $as_echo_n "(cached) " >&6
30428 else
30429 if test "$cross_compiling" = yes; then :
30430 gdb_cv_printf_has_decfloat=no
30431 else
30432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30433 /* end confdefs.h. */
30434 $ac_includes_default
30436 main ()
30438 char buf[64];
30439 _Decimal32 d32 = 1.2345df;
30440 _Decimal64 d64 = 1.2345dd;
30441 _Decimal128 d128 = 1.2345dl;
30442 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
30443 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
30445 return 0;
30447 _ACEOF
30448 if ac_fn_c_try_run "$LINENO"; then :
30449 gdb_cv_printf_has_decfloat=yes
30450 else
30451 gdb_cv_printf_has_decfloat=no
30453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30454 conftest.$ac_objext conftest.beam conftest.$ac_ext
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
30459 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
30460 if test "$gdb_cv_printf_has_decfloat" = yes; then
30462 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
30466 # Check if the compiler supports the `long double' type. We can't use
30467 # AC_C_LONG_DOUBLE because that one does additional checks on the
30468 # constants defined in <float.h> that fail on some systems,
30469 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
30472 $as_echo_n "checking for long double support in compiler... " >&6; }
30473 if ${gdb_cv_c_long_double+:} false; then :
30474 $as_echo_n "(cached) " >&6
30475 else
30476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30477 /* end confdefs.h. */
30478 long double foo;
30479 _ACEOF
30480 if ac_fn_c_try_compile "$LINENO"; then :
30481 gdb_cv_c_long_double=yes
30482 else
30483 gdb_cv_c_long_double=no
30485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
30488 $as_echo "$gdb_cv_c_long_double" >&6; }
30489 if test "$gdb_cv_c_long_double" = yes; then
30491 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
30495 # Check if the compiler and runtime support printing long doubles.
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
30498 $as_echo_n "checking for long double support in printf... " >&6; }
30499 if ${gdb_cv_printf_has_long_double+:} false; then :
30500 $as_echo_n "(cached) " >&6
30501 else
30502 if test "$cross_compiling" = yes; then :
30503 gdb_cv_printf_has_long_double=no
30504 else
30505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30506 /* end confdefs.h. */
30507 $ac_includes_default
30509 main ()
30511 char buf[16];
30512 long double f = 3.141592653;
30513 sprintf (buf, "%Lg", f);
30514 return (strncmp ("3.14159", buf, 7));
30516 return 0;
30518 _ACEOF
30519 if ac_fn_c_try_run "$LINENO"; then :
30520 gdb_cv_printf_has_long_double=yes
30521 else
30522 gdb_cv_printf_has_long_double=no
30524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30525 conftest.$ac_objext conftest.beam conftest.$ac_ext
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
30530 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
30531 if test "$gdb_cv_printf_has_long_double" = yes; then
30533 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
30537 # Check if the compiler and runtime support scanning long doubles.
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
30540 $as_echo_n "checking for long double support in scanf... " >&6; }
30541 if ${gdb_cv_scanf_has_long_double+:} false; then :
30542 $as_echo_n "(cached) " >&6
30543 else
30544 if test "$cross_compiling" = yes; then :
30545 gdb_cv_scanf_has_long_double=no
30546 else
30547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30548 /* end confdefs.h. */
30549 #include <stdio.h>
30551 main ()
30553 char *buf = "3.141592653";
30554 long double f = 0;
30555 sscanf (buf, "%Lg", &f);
30556 return !(f > 3.14159 && f < 3.14160);
30558 return 0;
30560 _ACEOF
30561 if ac_fn_c_try_run "$LINENO"; then :
30562 gdb_cv_scanf_has_long_double=yes
30563 else
30564 gdb_cv_scanf_has_long_double=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_scanf_has_long_double" >&5
30572 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
30573 if test "$gdb_cv_scanf_has_long_double" = yes; then
30575 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
30579 case ${host_os} in
30580 aix*)
30581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
30582 $as_echo_n "checking for -bbigtoc option... " >&6; }
30583 if ${gdb_cv_bigtoc+:} false; then :
30584 $as_echo_n "(cached) " >&6
30585 else
30586 SAVE_LDFLAGS=$LDFLAGS
30588 case $GCC in
30589 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
30590 *) gdb_cv_bigtoc=-bbigtoc ;;
30591 esac
30593 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
30594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30595 /* end confdefs.h. */
30598 main ()
30600 int i;
30602 return 0;
30604 _ACEOF
30605 if ac_fn_c_try_link "$LINENO"; then :
30607 else
30608 gdb_cv_bigtoc=
30611 rm -f core conftest.err conftest.$ac_objext \
30612 conftest$ac_exeext conftest.$ac_ext
30613 LDFLAGS="${SAVE_LDFLAGS}"
30616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
30617 $as_echo "$gdb_cv_bigtoc" >&6; }
30618 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
30620 esac
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
30623 $as_echo_n "checking for the dynamic export flag... " >&6; }
30624 dynamic_list=false
30625 if test "${gdb_native}" = yes; then
30626 # The dynamically loaded libthread_db needs access to symbols in the gdb
30627 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
30628 # may not be supported there.
30629 old_LDFLAGS="$LDFLAGS"
30630 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
30631 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
30632 LDFLAGS="$LDFLAGS $RDYNAMIC"
30633 if test "${have_libpython}" = no; then
30634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30635 /* end confdefs.h. */
30638 main ()
30642 return 0;
30644 _ACEOF
30645 if ac_fn_c_try_link "$LINENO"; then :
30646 dynamic_list=true
30648 rm -f core conftest.err conftest.$ac_objext \
30649 conftest$ac_exeext conftest.$ac_ext
30650 else
30651 # Workaround http://bugs.python.org/issue4434 where static
30652 # libpythonX.Y.a would get its symbols required for
30653 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
30654 # Problem does not happen for the recommended libpythonX.Y.so linkage.
30656 # Note the workaround for Python
30657 # http://bugs.python.org/issue10112 earlier has removed
30658 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
30659 # here too, as otherwise it'd make this -Wl,--dynamic-list test
30660 # always pass.
30661 old_CFLAGS="$CFLAGS"
30662 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
30663 old_LIBS="$LIBS"
30664 LIBS="$LIBS $PYTHON_LIBS"
30665 old_CPPFLAGS="$CPPFLAGS"
30666 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
30667 if test "$cross_compiling" = yes; then :
30668 true
30669 else
30670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30671 /* end confdefs.h. */
30672 #include "Python.h"
30674 main ()
30676 int err;
30677 Py_Initialize ();
30678 err = PyRun_SimpleString ("import ctypes\n");
30679 Py_Finalize ();
30680 return err == 0 ? 0 : 1;
30682 return 0;
30684 _ACEOF
30685 if ac_fn_c_try_run "$LINENO"; then :
30686 dynamic_list=true
30688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30689 conftest.$ac_objext conftest.beam conftest.$ac_ext
30692 LIBS="$old_LIBS"
30693 CFLAGS="$old_CFLAGS"
30694 CPPFLAGS="$old_CPPFLAGS"
30696 LDFLAGS="$old_LDFLAGS"
30698 if $dynamic_list; then
30699 found="-Wl,--dynamic-list"
30700 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
30701 else
30702 found="-rdynamic"
30703 RDYNAMIC="-rdynamic"
30706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
30707 $as_echo "$found" >&6; }
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
30710 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
30711 if ${gdb_cv_execinfo_backtrace+:} false; then :
30712 $as_echo_n "(cached) " >&6
30713 else
30714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30715 /* end confdefs.h. */
30717 #include <execinfo.h>
30720 main ()
30723 int f;
30724 void *b[2];
30725 f = backtrace (b, 2);
30726 backtrace_symbols_fd (b, f, 2);
30729 return 0;
30731 _ACEOF
30732 if ac_fn_c_try_link "$LINENO"; then :
30733 gdb_cv_execinfo_backtrace=yes
30734 else
30735 gdb_cv_execinfo_backtrace=no
30737 rm -f core conftest.err conftest.$ac_objext \
30738 conftest$ac_exeext conftest.$ac_ext
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
30741 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
30742 if test "$gdb_cv_execinfo_backtrace" = yes; then
30744 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
30749 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
30750 case ${host_os} in
30751 aix*)
30752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
30753 $as_echo_n "checking for AiX thread debugging library... " >&6; }
30754 if ${gdb_cv_have_aix_thread_debug+:} false; then :
30755 $as_echo_n "(cached) " >&6
30756 else
30757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30758 /* end confdefs.h. */
30759 #include <sys/pthdebug.h>
30761 main ()
30763 #ifndef PTHDB_VERSION_3
30764 #error
30765 #endif
30768 return 0;
30770 _ACEOF
30771 if ac_fn_c_try_compile "$LINENO"; then :
30772 gdb_cv_have_aix_thread_debug=yes
30773 else
30774 gdb_cv_have_aix_thread_debug=no
30777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
30782 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
30783 if test "$gdb_cv_have_aix_thread_debug" = yes; then
30784 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
30785 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
30786 LIBS="$LIBS -lpthdebug"
30788 # Older versions of AIX do not provide the declaration for
30789 # the getthrds function (it appears that it was introduced
30790 # with AIX 6.x).
30791 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
30793 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
30794 ac_have_decl=1
30795 else
30796 ac_have_decl=0
30799 cat >>confdefs.h <<_ACEOF
30800 #define HAVE_DECL_GETTHRDS $ac_have_decl
30801 _ACEOF
30805 esac
30809 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
30810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
30811 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
30812 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
30813 $as_echo_n "(cached) " >&6
30814 else
30815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30816 /* end confdefs.h. */
30817 #include <thread_db.h>
30819 main ()
30821 int i = TD_NOTALLOC;
30824 return 0;
30826 _ACEOF
30827 if ac_fn_c_try_compile "$LINENO"; then :
30828 gdb_cv_thread_db_h_has_td_notalloc=yes
30829 else
30830 gdb_cv_thread_db_h_has_td_notalloc=no
30833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
30837 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
30840 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
30841 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
30842 $as_echo_n "(cached) " >&6
30843 else
30844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30845 /* end confdefs.h. */
30846 #include <thread_db.h>
30848 main ()
30850 int i = TD_VERSION;
30853 return 0;
30855 _ACEOF
30856 if ac_fn_c_try_compile "$LINENO"; then :
30857 gdb_cv_thread_db_h_has_td_version=yes
30858 else
30859 gdb_cv_thread_db_h_has_td_version=no
30862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
30866 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
30868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
30869 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
30870 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
30871 $as_echo_n "(cached) " >&6
30872 else
30873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30874 /* end confdefs.h. */
30875 #include <thread_db.h>
30877 main ()
30879 int i = TD_NOTLS;
30882 return 0;
30884 _ACEOF
30885 if ac_fn_c_try_compile "$LINENO"; then :
30886 gdb_cv_thread_db_h_has_td_notls=yes
30887 else
30888 gdb_cv_thread_db_h_has_td_notls=no
30891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
30895 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
30897 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
30899 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
30902 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
30904 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
30907 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
30909 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
30913 case $host_os in
30914 go32* | *djgpp*)
30915 gdbinit=gdb.ini
30918 gdbinit=.gdbinit
30920 esac
30922 cat >>confdefs.h <<_ACEOF
30923 #define GDBINIT "$gdbinit"
30924 _ACEOF
30928 cat >>confdefs.h <<_ACEOF
30929 #define GDBEARLYINIT ".gdbearlyinit"
30930 _ACEOF
30934 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
30935 # except that the argument to --with-sysroot is optional.
30936 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
30937 if test "x$with_sysroot" = xyes; then
30938 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
30941 # Check whether --with-sysroot was given.
30942 if test "${with_sysroot+set}" = set; then :
30943 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
30944 else
30945 TARGET_SYSTEM_ROOT=
30949 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
30950 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30951 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
30952 ac_define_dir=`eval echo $ac_define_dir`
30954 cat >>confdefs.h <<_ACEOF
30955 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
30956 _ACEOF
30961 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
30962 if test "x$prefix" = xNONE; then
30963 test_prefix=/usr/local
30964 else
30965 test_prefix=$prefix
30967 else
30968 test_prefix=$exec_prefix
30970 value=0
30971 case ${ac_define_dir} in
30972 "${test_prefix}"|"${test_prefix}/"*|\
30973 '${exec_prefix}'|'${exec_prefix}/'*)
30974 value=1
30976 esac
30978 cat >>confdefs.h <<_ACEOF
30979 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
30980 _ACEOF
30986 # Check whether --with-system-gdbinit was given.
30987 if test "${with_system_gdbinit+set}" = set; then :
30988 withval=$with_system_gdbinit;
30989 SYSTEM_GDBINIT=$withval
30990 else
30991 SYSTEM_GDBINIT=
30995 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
30996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30997 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
30998 ac_define_dir=`eval echo $ac_define_dir`
31000 cat >>confdefs.h <<_ACEOF
31001 #define SYSTEM_GDBINIT "$ac_define_dir"
31002 _ACEOF
31007 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
31008 if test "x$prefix" = xNONE; then
31009 test_prefix=/usr/local
31010 else
31011 test_prefix=$prefix
31013 else
31014 test_prefix=$exec_prefix
31016 value=0
31017 case ${ac_define_dir} in
31018 "${test_prefix}"|"${test_prefix}/"*|\
31019 '${exec_prefix}'|'${exec_prefix}/'*)
31020 value=1
31022 esac
31024 cat >>confdefs.h <<_ACEOF
31025 #define SYSTEM_GDBINIT_RELOCATABLE $value
31026 _ACEOF
31032 # Check whether --with-system-gdbinit-dir was given.
31033 if test "${with_system_gdbinit_dir+set}" = set; then :
31034 withval=$with_system_gdbinit_dir;
31035 SYSTEM_GDBINIT_DIR=$withval
31036 else
31037 SYSTEM_GDBINIT_DIR=
31041 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
31042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31043 ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR`
31044 ac_define_dir=`eval echo $ac_define_dir`
31046 cat >>confdefs.h <<_ACEOF
31047 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
31048 _ACEOF
31053 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
31054 if test "x$prefix" = xNONE; then
31055 test_prefix=/usr/local
31056 else
31057 test_prefix=$prefix
31059 else
31060 test_prefix=$exec_prefix
31062 value=0
31063 case ${ac_define_dir} in
31064 "${test_prefix}"|"${test_prefix}/"*|\
31065 '${exec_prefix}'|'${exec_prefix}/'*)
31066 value=1
31068 esac
31070 cat >>confdefs.h <<_ACEOF
31071 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
31072 _ACEOF
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
31080 $as_echo_n "checking the compiler type... " >&6; }
31081 if ${gdb_cv_compiler_type+:} false; then :
31082 $as_echo_n "(cached) " >&6
31083 else
31084 gdb_cv_compiler_type=unknown
31085 if test "$gdb_cv_compiler_type" = unknown; then
31086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31087 /* end confdefs.h. */
31090 main ()
31093 #if !defined __GNUC__ || defined __clang__
31094 #error not gcc
31095 #endif
31098 return 0;
31100 _ACEOF
31101 if ac_fn_c_try_compile "$LINENO"; then :
31102 gdb_cv_compiler_type=gcc
31104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31107 if test "$gdb_cv_compiler_type" = unknown; then
31108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31109 /* end confdefs.h. */
31112 main ()
31115 #ifndef __clang__
31116 #error not clang
31117 #endif
31120 return 0;
31122 _ACEOF
31123 if ac_fn_c_try_compile "$LINENO"; then :
31124 gdb_cv_compiler_type=clang
31126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
31131 $as_echo "$gdb_cv_compiler_type" >&6; }
31133 GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
31136 # Check whether --enable-werror was given.
31137 if test "${enable_werror+set}" = set; then :
31138 enableval=$enable_werror; case "${enableval}" in
31139 yes | y) ERROR_ON_WARNING="yes" ;;
31140 no | n) ERROR_ON_WARNING="no" ;;
31141 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
31142 esac
31146 # Enable -Werror by default when using gcc. Turn it off for releases.
31147 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
31148 ERROR_ON_WARNING=yes
31151 WERROR_CFLAGS=""
31152 if test "${ERROR_ON_WARNING}" = yes ; then
31153 WERROR_CFLAGS="-Werror"
31156 # The options we'll try to enable.
31157 build_warnings="-Wall -Wpointer-arith \
31158 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
31159 -Wno-switch -Wno-char-subscripts \
31160 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
31161 -Wno-sign-compare -Wno-error=maybe-uninitialized \
31162 -Wno-mismatched-tags \
31163 -Wno-error=deprecated-register \
31164 -Wsuggest-override \
31165 -Wimplicit-fallthrough=5 \
31166 -Wduplicated-cond \
31167 -Wshadow=local \
31168 -Wdeprecated-copy \
31169 -Wdeprecated-copy-dtor \
31170 -Wredundant-move \
31171 -Wmissing-declarations \
31172 -Wstrict-null-sentinel \
31175 # The -Wmissing-prototypes flag will be accepted by GCC, but results
31176 # in a warning being printed about the flag not being valid for C++,
31177 # this is something to do with using ccache, and argument ordering.
31178 if test "$GDB_COMPILER_TYPE" != gcc; then
31179 build_warnings="$build_warnings -Wmissing-prototypes"
31182 case "${host}" in
31183 *-*-mingw32*)
31184 # Enable -Wno-format by default when using gcc on mingw since many
31185 # GCC versions complain about %I64.
31186 build_warnings="$build_warnings -Wno-format" ;;
31187 *-*-solaris*)
31188 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
31189 # doesn't understand.
31190 build_warnings="$build_warnings -Wno-unknown-pragmas"
31191 # Solaris 11 <unistd.h> marks vfork deprecated.
31192 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
31194 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
31195 # but there's a special case for this below.
31196 build_warnings="$build_warnings -Wformat-nonliteral" ;;
31197 esac
31199 # Check whether --enable-build-warnings was given.
31200 if test "${enable_build_warnings+set}" = set; then :
31201 enableval=$enable_build_warnings; case "${enableval}" in
31202 yes) ;;
31203 no) build_warnings="-w";;
31204 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
31205 build_warnings="${build_warnings} ${t}";;
31206 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
31207 build_warnings="${t} ${build_warnings}";;
31208 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
31209 esac
31210 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
31211 echo "Setting compiler warning flags = $build_warnings" 6>&1
31214 # Check whether --enable-gdb-build-warnings was given.
31215 if test "${enable_gdb_build_warnings+set}" = set; then :
31216 enableval=$enable_gdb_build_warnings; case "${enableval}" in
31217 yes) ;;
31218 no) build_warnings="-w";;
31219 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
31220 build_warnings="${build_warnings} ${t}";;
31221 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
31222 build_warnings="${t} ${build_warnings}";;
31223 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
31224 esac
31225 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
31226 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
31230 # The set of warnings supported by a C++ compiler is not the same as
31231 # of the C compiler.
31232 ac_ext=cpp
31233 ac_cpp='$CXXCPP $CPPFLAGS'
31234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31239 WARN_CFLAGS=""
31240 if test "x${build_warnings}" != x -a "x$GCC" = xyes
31241 then
31242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
31243 $as_echo_n "checking compiler warning flags... " >&6; }
31244 # Separate out the -Werror flag as some files just cannot be
31245 # compiled with it enabled.
31246 for w in ${build_warnings}; do
31247 # GCC does not complain about -Wno-unknown-warning. Invert
31248 # and test -Wunknown-warning instead.
31249 case $w in
31250 -Wno-*)
31251 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
31252 -Wformat-nonliteral)
31253 # gcc requires -Wformat before -Wformat-nonliteral
31254 # will work, so stick them together.
31255 w="-Wformat $w"
31256 wtest="$w"
31259 wtest=$w ;;
31260 esac
31262 case $w in
31263 -Werr*) WERROR_CFLAGS=-Werror ;;
31265 # Check whether GCC accepts it.
31266 saved_CFLAGS="$CFLAGS"
31267 CFLAGS="$CFLAGS -Werror $wtest"
31268 saved_CXXFLAGS="$CXXFLAGS"
31269 CXXFLAGS="$CXXFLAGS -Werror $wtest"
31270 if test "x$w" = "x-Wunused-variable"; then
31271 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
31272 # fixed in GCC 4.9. This test is derived from the gdb
31273 # source code that triggered this bug in GCC.
31274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31275 /* end confdefs.h. */
31276 struct scoped_restore_base {};
31277 struct scoped_restore_tmpl : public scoped_restore_base {
31278 ~scoped_restore_tmpl() {}
31281 main ()
31283 const scoped_restore_base &b = scoped_restore_tmpl();
31286 return 0;
31288 _ACEOF
31289 if ac_fn_cxx_try_compile "$LINENO"; then :
31290 WARN_CFLAGS="${WARN_CFLAGS} $w"
31292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31293 else
31294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31295 /* end confdefs.h. */
31298 main ()
31302 return 0;
31304 _ACEOF
31305 if ac_fn_cxx_try_compile "$LINENO"; then :
31306 WARN_CFLAGS="${WARN_CFLAGS} $w"
31308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31310 CFLAGS="$saved_CFLAGS"
31311 CXXFLAGS="$saved_CXXFLAGS"
31312 esac
31313 done
31314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
31315 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
31320 ac_ext=c
31321 ac_cpp='$CPP $CPPFLAGS'
31322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31328 # Check whether --enable-ubsan was given.
31329 if test "${enable_ubsan+set}" = set; then :
31330 enableval=$enable_ubsan;
31331 else
31332 enable_ubsan=no
31335 if test "x$enable_ubsan" = xauto; then
31336 if $development; then
31337 enable_ubsan=yes
31340 ac_ext=cpp
31341 ac_cpp='$CXXCPP $CPPFLAGS'
31342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31346 if test "x$enable_ubsan" = xyes; then
31347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
31348 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
31349 saved_CXXFLAGS="$CXXFLAGS"
31350 CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
31351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31352 /* end confdefs.h. */
31355 main ()
31359 return 0;
31361 _ACEOF
31362 if ac_fn_cxx_try_link "$LINENO"; then :
31363 enable_ubsan=yes
31364 else
31365 enable_ubsan=no
31368 rm -f core conftest.err conftest.$ac_objext \
31369 conftest$ac_exeext conftest.$ac_ext
31370 CXXFLAGS="$saved_CXXFLAGS"
31371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
31372 $as_echo "$enable_ubsan" >&6; }
31373 if test "x$enable_ubsan" = xyes; then
31374 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
31375 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
31378 ac_ext=c
31379 ac_cpp='$CPP $CPPFLAGS'
31380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31386 # In the Cygwin environment, we need some additional flags.
31387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
31388 $as_echo_n "checking for cygwin... " >&6; }
31389 if ${gdb_cv_os_cygwin+:} false; then :
31390 $as_echo_n "(cached) " >&6
31391 else
31392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31393 /* end confdefs.h. */
31395 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
31396 lose
31397 #endif
31398 _ACEOF
31399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31400 $EGREP "^lose$" >/dev/null 2>&1; then :
31401 gdb_cv_os_cygwin=yes
31402 else
31403 gdb_cv_os_cygwin=no
31405 rm -f conftest*
31408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
31409 $as_echo "$gdb_cv_os_cygwin" >&6; }
31412 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
31413 case ${host} in
31414 *go32* ) SER_HARDWIRE=ser-go32.o ;;
31415 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
31416 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
31417 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
31418 esac
31421 # libreadline needs libuser32.a in a cygwin environment
31422 WIN32LIBS=
31423 if test x"$gdb_cv_os_cygwin" = xyes; then
31424 WIN32LIBS="-luser32"
31425 case "${target}" in
31426 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
31428 esac
31431 # The ser-tcp.c module requires sockets.
31432 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
31433 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
31435 # Add ELF support to GDB, but only if BFD includes ELF support.
31437 OLD_CFLAGS=$CFLAGS
31438 OLD_LDFLAGS=$LDFLAGS
31439 OLD_LIBS=$LIBS
31440 OLD_CC=$CC
31441 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
31442 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
31443 # always want our bfd.
31444 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
31445 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
31446 # LTLIBINTL because we use libtool as CC below.
31447 intl="$(echo "$LTLIBINTL" | sed 's,\$[{(]top_builddir[)}]/,,')"
31448 LIBS="-lbfd -liberty $intl $LIBS"
31449 CC="./libtool --quiet --mode=link $CC"
31450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
31451 $as_echo_n "checking for ELF support in BFD... " >&6; }
31452 if ${gdb_cv_var_elf+:} false; then :
31453 $as_echo_n "(cached) " >&6
31454 else
31455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31456 /* end confdefs.h. */
31457 #include <stdlib.h>
31458 #include <string.h>
31459 #include "bfd.h"
31460 #include "elf-bfd.h"
31462 main ()
31464 return bfd_get_elf_phdr_upper_bound (NULL);
31467 return 0;
31469 _ACEOF
31470 if ac_fn_c_try_link "$LINENO"; then :
31471 gdb_cv_var_elf=yes
31472 else
31473 gdb_cv_var_elf=no
31476 rm -f core conftest.err conftest.$ac_objext \
31477 conftest$ac_exeext conftest.$ac_ext
31480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
31481 $as_echo "$gdb_cv_var_elf" >&6; }
31482 CC=$OLD_CC
31483 CFLAGS=$OLD_CFLAGS
31484 LDFLAGS=$OLD_LDFLAGS
31485 LIBS=$OLD_LIBS
31486 if test "$gdb_cv_var_elf" = yes; then
31487 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
31488 gcore-elf.o elf-none-tdep.o"
31490 $as_echo "#define HAVE_ELF 1" >>confdefs.h
31492 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
31493 if test "$plugins" = "yes"; then
31494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31495 $as_echo_n "checking for library containing dlopen... " >&6; }
31496 if ${ac_cv_search_dlopen+:} false; then :
31497 $as_echo_n "(cached) " >&6
31498 else
31499 ac_func_search_save_LIBS=$LIBS
31500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31501 /* end confdefs.h. */
31503 /* Override any GCC internal prototype to avoid an error.
31504 Use char because int might match the return type of a GCC
31505 builtin and then its argument prototype would still apply. */
31506 #ifdef __cplusplus
31507 extern "C"
31508 #endif
31509 char dlopen ();
31511 main ()
31513 return dlopen ();
31515 return 0;
31517 _ACEOF
31518 for ac_lib in '' dl; do
31519 if test -z "$ac_lib"; then
31520 ac_res="none required"
31521 else
31522 ac_res=-l$ac_lib
31523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31525 if ac_fn_c_try_link "$LINENO"; then :
31526 ac_cv_search_dlopen=$ac_res
31528 rm -f core conftest.err conftest.$ac_objext \
31529 conftest$ac_exeext
31530 if ${ac_cv_search_dlopen+:} false; then :
31531 break
31533 done
31534 if ${ac_cv_search_dlopen+:} false; then :
31536 else
31537 ac_cv_search_dlopen=no
31539 rm conftest.$ac_ext
31540 LIBS=$ac_func_search_save_LIBS
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31543 $as_echo "$ac_cv_search_dlopen" >&6; }
31544 ac_res=$ac_cv_search_dlopen
31545 if test "$ac_res" != no; then :
31546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31553 # Add macho support to GDB, but only if BFD includes it.
31555 OLD_CFLAGS=$CFLAGS
31556 OLD_LDFLAGS=$LDFLAGS
31557 OLD_LIBS=$LIBS
31558 OLD_CC=$CC
31559 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
31560 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
31561 # always want our bfd.
31562 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
31563 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
31564 # LTLIBINTL because we use libtool as CC below.
31565 intl="$(echo "$LTLIBINTL" | sed 's,\$[{(]top_builddir[)}]/,,')"
31566 LIBS="-lbfd -liberty $intl $LIBS"
31567 CC="./libtool --quiet --mode=link $CC"
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
31569 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
31570 if ${gdb_cv_var_macho+:} false; then :
31571 $as_echo_n "(cached) " >&6
31572 else
31573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31574 /* end confdefs.h. */
31575 #include <stdlib.h>
31576 #include <string.h>
31577 #include "bfd.h"
31578 #include "mach-o.h"
31580 main ()
31582 return bfd_mach_o_lookup_command (NULL, 0, NULL);
31585 return 0;
31587 _ACEOF
31588 if ac_fn_c_try_link "$LINENO"; then :
31589 gdb_cv_var_macho=yes
31590 else
31591 gdb_cv_var_macho=no
31594 rm -f core conftest.err conftest.$ac_objext \
31595 conftest$ac_exeext conftest.$ac_ext
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
31599 $as_echo "$gdb_cv_var_macho" >&6; }
31600 CC=$OLD_CC
31601 CFLAGS=$OLD_CFLAGS
31602 LDFLAGS=$OLD_LDFLAGS
31603 LIBS=$OLD_LIBS
31604 if test "$gdb_cv_var_macho" = yes; then
31605 CONFIG_OBS="$CONFIG_OBS machoread.o"
31608 # Add any host-specific objects to GDB.
31609 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
31611 # If building on ELF, look for lzma support for embedded compressed debug info.
31612 if test "$gdb_cv_var_elf" = yes; then
31614 # Check whether --with-lzma was given.
31615 if test "${with_lzma+set}" = set; then :
31616 withval=$with_lzma;
31617 else
31618 with_lzma=auto
31621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
31622 $as_echo_n "checking whether to use lzma... " >&6; }
31623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
31624 $as_echo "$with_lzma" >&6; }
31626 if test "${with_lzma}" != no; then
31635 use_additional=yes
31637 acl_save_prefix="$prefix"
31638 prefix="$acl_final_prefix"
31639 acl_save_exec_prefix="$exec_prefix"
31640 exec_prefix="$acl_final_exec_prefix"
31642 eval additional_includedir=\"$includedir\"
31643 eval additional_libdir=\"$libdir\"
31645 exec_prefix="$acl_save_exec_prefix"
31646 prefix="$acl_save_prefix"
31649 # Check whether --with-liblzma-prefix was given.
31650 if test "${with_liblzma_prefix+set}" = set; then :
31651 withval=$with_liblzma_prefix;
31652 if test "X$withval" = "Xno"; then
31653 use_additional=no
31654 else
31655 if test "X$withval" = "X"; then
31657 acl_save_prefix="$prefix"
31658 prefix="$acl_final_prefix"
31659 acl_save_exec_prefix="$exec_prefix"
31660 exec_prefix="$acl_final_exec_prefix"
31662 eval additional_includedir=\"$includedir\"
31663 eval additional_libdir=\"$libdir\"
31665 exec_prefix="$acl_save_exec_prefix"
31666 prefix="$acl_save_prefix"
31668 else
31669 additional_includedir="$withval/include"
31670 additional_libdir="$withval/lib"
31677 # Check whether --with-liblzma-type was given.
31678 if test "${with_liblzma_type+set}" = set; then :
31679 withval=$with_liblzma_type; with_liblzma_type=$withval
31680 else
31681 with_liblzma_type=auto
31684 lib_type=`eval echo \$with_liblzma_type`
31686 LIBLZMA=
31687 LTLIBLZMA=
31688 INCLZMA=
31689 rpathdirs=
31690 ltrpathdirs=
31691 names_already_handled=
31692 names_next_round='lzma '
31693 while test -n "$names_next_round"; do
31694 names_this_round="$names_next_round"
31695 names_next_round=
31696 for name in $names_this_round; do
31697 already_handled=
31698 for n in $names_already_handled; do
31699 if test "$n" = "$name"; then
31700 already_handled=yes
31701 break
31703 done
31704 if test -z "$already_handled"; then
31705 names_already_handled="$names_already_handled $name"
31706 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
31707 eval value=\"\$HAVE_LIB$uppername\"
31708 if test -n "$value"; then
31709 if test "$value" = yes; then
31710 eval value=\"\$LIB$uppername\"
31711 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
31712 eval value=\"\$LTLIB$uppername\"
31713 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
31714 else
31717 else
31718 found_dir=
31719 found_la=
31720 found_so=
31721 found_a=
31722 if test $use_additional = yes; then
31723 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
31724 found_dir="$additional_libdir"
31725 found_so="$additional_libdir/lib$name.$shlibext"
31726 if test -f "$additional_libdir/lib$name.la"; then
31727 found_la="$additional_libdir/lib$name.la"
31729 elif test x$lib_type != xshared; then
31730 if test -f "$additional_libdir/lib$name.$libext"; then
31731 found_dir="$additional_libdir"
31732 found_a="$additional_libdir/lib$name.$libext"
31733 if test -f "$additional_libdir/lib$name.la"; then
31734 found_la="$additional_libdir/lib$name.la"
31739 if test "X$found_dir" = "X"; then
31740 for x in $LDFLAGS $LTLIBLZMA; do
31742 acl_save_prefix="$prefix"
31743 prefix="$acl_final_prefix"
31744 acl_save_exec_prefix="$exec_prefix"
31745 exec_prefix="$acl_final_exec_prefix"
31746 eval x=\"$x\"
31747 exec_prefix="$acl_save_exec_prefix"
31748 prefix="$acl_save_prefix"
31750 case "$x" in
31751 -L*)
31752 dir=`echo "X$x" | sed -e 's/^X-L//'`
31753 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
31754 found_dir="$dir"
31755 found_so="$dir/lib$name.$shlibext"
31756 if test -f "$dir/lib$name.la"; then
31757 found_la="$dir/lib$name.la"
31759 elif test x$lib_type != xshared; then
31760 if test -f "$dir/lib$name.$libext"; then
31761 found_dir="$dir"
31762 found_a="$dir/lib$name.$libext"
31763 if test -f "$dir/lib$name.la"; then
31764 found_la="$dir/lib$name.la"
31769 esac
31770 if test "X$found_dir" != "X"; then
31771 break
31773 done
31775 if test "X$found_dir" != "X"; then
31776 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
31777 if test "X$found_so" != "X"; then
31778 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
31779 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
31780 else
31781 haveit=
31782 for x in $ltrpathdirs; do
31783 if test "X$x" = "X$found_dir"; then
31784 haveit=yes
31785 break
31787 done
31788 if test -z "$haveit"; then
31789 ltrpathdirs="$ltrpathdirs $found_dir"
31791 if test "$hardcode_direct" = yes; then
31792 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
31793 else
31794 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
31795 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
31796 haveit=
31797 for x in $rpathdirs; do
31798 if test "X$x" = "X$found_dir"; then
31799 haveit=yes
31800 break
31802 done
31803 if test -z "$haveit"; then
31804 rpathdirs="$rpathdirs $found_dir"
31806 else
31807 haveit=
31808 for x in $LDFLAGS $LIBLZMA; do
31810 acl_save_prefix="$prefix"
31811 prefix="$acl_final_prefix"
31812 acl_save_exec_prefix="$exec_prefix"
31813 exec_prefix="$acl_final_exec_prefix"
31814 eval x=\"$x\"
31815 exec_prefix="$acl_save_exec_prefix"
31816 prefix="$acl_save_prefix"
31818 if test "X$x" = "X-L$found_dir"; then
31819 haveit=yes
31820 break
31822 done
31823 if test -z "$haveit"; then
31824 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
31826 if test "$hardcode_minus_L" != no; then
31827 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
31828 else
31829 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
31834 else
31835 if test "X$found_a" != "X"; then
31836 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
31837 else
31838 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
31841 additional_includedir=
31842 case "$found_dir" in
31843 */lib | */lib/)
31844 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
31845 additional_includedir="$basedir/include"
31847 esac
31848 if test "X$additional_includedir" != "X"; then
31849 if test "X$additional_includedir" != "X/usr/include"; then
31850 haveit=
31851 if test "X$additional_includedir" = "X/usr/local/include"; then
31852 if test -n "$GCC"; then
31853 case $host_os in
31854 linux*) haveit=yes;;
31855 esac
31858 if test -z "$haveit"; then
31859 for x in $CPPFLAGS $INCLZMA; do
31861 acl_save_prefix="$prefix"
31862 prefix="$acl_final_prefix"
31863 acl_save_exec_prefix="$exec_prefix"
31864 exec_prefix="$acl_final_exec_prefix"
31865 eval x=\"$x\"
31866 exec_prefix="$acl_save_exec_prefix"
31867 prefix="$acl_save_prefix"
31869 if test "X$x" = "X-I$additional_includedir"; then
31870 haveit=yes
31871 break
31873 done
31874 if test -z "$haveit"; then
31875 if test -d "$additional_includedir"; then
31876 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
31882 if test -n "$found_la"; then
31883 save_libdir="$libdir"
31884 case "$found_la" in
31885 */* | *\\*) . "$found_la" ;;
31886 *) . "./$found_la" ;;
31887 esac
31888 libdir="$save_libdir"
31889 for dep in $dependency_libs; do
31890 case "$dep" in
31891 -L*)
31892 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
31893 if test "X$additional_libdir" != "X/usr/lib"; then
31894 haveit=
31895 if test "X$additional_libdir" = "X/usr/local/lib"; then
31896 if test -n "$GCC"; then
31897 case $host_os in
31898 linux*) haveit=yes;;
31899 esac
31902 if test -z "$haveit"; then
31903 haveit=
31904 for x in $LDFLAGS $LIBLZMA; do
31906 acl_save_prefix="$prefix"
31907 prefix="$acl_final_prefix"
31908 acl_save_exec_prefix="$exec_prefix"
31909 exec_prefix="$acl_final_exec_prefix"
31910 eval x=\"$x\"
31911 exec_prefix="$acl_save_exec_prefix"
31912 prefix="$acl_save_prefix"
31914 if test "X$x" = "X-L$additional_libdir"; then
31915 haveit=yes
31916 break
31918 done
31919 if test -z "$haveit"; then
31920 if test -d "$additional_libdir"; then
31921 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
31924 haveit=
31925 for x in $LDFLAGS $LTLIBLZMA; do
31927 acl_save_prefix="$prefix"
31928 prefix="$acl_final_prefix"
31929 acl_save_exec_prefix="$exec_prefix"
31930 exec_prefix="$acl_final_exec_prefix"
31931 eval x=\"$x\"
31932 exec_prefix="$acl_save_exec_prefix"
31933 prefix="$acl_save_prefix"
31935 if test "X$x" = "X-L$additional_libdir"; then
31936 haveit=yes
31937 break
31939 done
31940 if test -z "$haveit"; then
31941 if test -d "$additional_libdir"; then
31942 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
31948 -R*)
31949 dir=`echo "X$dep" | sed -e 's/^X-R//'`
31950 if test "$enable_rpath" != no; then
31951 haveit=
31952 for x in $rpathdirs; do
31953 if test "X$x" = "X$dir"; then
31954 haveit=yes
31955 break
31957 done
31958 if test -z "$haveit"; then
31959 rpathdirs="$rpathdirs $dir"
31961 haveit=
31962 for x in $ltrpathdirs; do
31963 if test "X$x" = "X$dir"; then
31964 haveit=yes
31965 break
31967 done
31968 if test -z "$haveit"; then
31969 ltrpathdirs="$ltrpathdirs $dir"
31973 -l*)
31974 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
31976 *.la)
31977 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
31980 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
31981 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
31983 esac
31984 done
31986 else
31987 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
31988 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
31989 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
31990 else
31991 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
31992 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
31997 done
31998 done
31999 if test "X$rpathdirs" != "X"; then
32000 if test -n "$hardcode_libdir_separator"; then
32001 alldirs=
32002 for found_dir in $rpathdirs; do
32003 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
32004 done
32005 acl_save_libdir="$libdir"
32006 libdir="$alldirs"
32007 eval flag=\"$hardcode_libdir_flag_spec\"
32008 libdir="$acl_save_libdir"
32009 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
32010 else
32011 for found_dir in $rpathdirs; do
32012 acl_save_libdir="$libdir"
32013 libdir="$found_dir"
32014 eval flag=\"$hardcode_libdir_flag_spec\"
32015 libdir="$acl_save_libdir"
32016 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
32017 done
32020 if test "X$ltrpathdirs" != "X"; then
32021 for found_dir in $ltrpathdirs; do
32022 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
32023 done
32027 ac_save_CPPFLAGS="$CPPFLAGS"
32029 for element in $INCLZMA; do
32030 haveit=
32031 for x in $CPPFLAGS; do
32033 acl_save_prefix="$prefix"
32034 prefix="$acl_final_prefix"
32035 acl_save_exec_prefix="$exec_prefix"
32036 exec_prefix="$acl_final_exec_prefix"
32037 eval x=\"$x\"
32038 exec_prefix="$acl_save_exec_prefix"
32039 prefix="$acl_save_prefix"
32041 if test "X$x" = "X$element"; then
32042 haveit=yes
32043 break
32045 done
32046 if test -z "$haveit"; then
32047 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
32049 done
32052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
32053 $as_echo_n "checking for liblzma... " >&6; }
32054 if ${ac_cv_liblzma+:} false; then :
32055 $as_echo_n "(cached) " >&6
32056 else
32058 ac_save_LIBS="$LIBS"
32059 LIBS="$LIBS $LIBLZMA"
32060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32061 /* end confdefs.h. */
32062 #include "lzma.h"
32064 main ()
32066 lzma_index_iter iter;
32067 lzma_index_iter_init (&iter, 0);
32068 lzma_mf_is_supported (LZMA_MF_HC3);
32070 return 0;
32072 _ACEOF
32073 if ac_fn_c_try_link "$LINENO"; then :
32074 ac_cv_liblzma=yes
32075 else
32076 ac_cv_liblzma=no
32078 rm -f core conftest.err conftest.$ac_objext \
32079 conftest$ac_exeext conftest.$ac_ext
32080 LIBS="$ac_save_LIBS"
32083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
32084 $as_echo "$ac_cv_liblzma" >&6; }
32085 if test "$ac_cv_liblzma" = yes; then
32086 HAVE_LIBLZMA=yes
32088 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
32090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
32091 $as_echo_n "checking how to link with liblzma... " >&6; }
32092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
32093 $as_echo "$LIBLZMA" >&6; }
32094 else
32095 HAVE_LIBLZMA=no
32096 CPPFLAGS="$ac_save_CPPFLAGS"
32097 LIBLZMA=
32098 LTLIBLZMA=
32106 if test "$HAVE_LIBLZMA" != yes; then
32107 if test "$with_lzma" = yes; then
32108 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
32114 LIBGUI="../libgui/src/libgui.a"
32115 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
32119 WIN32LDAPP=
32123 case "${host}" in
32124 *-*-cygwin* | *-*-mingw* )
32125 configdir="win"
32128 configdir="unix"
32130 esac
32132 GDBTKLIBS=
32133 if test "${enable_gdbtk}" = "yes"; then
32135 # Gdbtk must have an absolute path to srcdir in order to run
32136 # properly when not installed.
32137 here=`pwd`
32138 cd ${srcdir}
32139 GDBTK_SRC_DIR=`pwd`
32140 cd $here
32144 # Ok, lets find the tcl configuration
32145 # First, look for one uninstalled.
32146 # the alternative search directory is invoked by --with-tcl
32149 if test x"${no_tcl}" = x ; then
32150 # we reset no_tcl in case something fails here
32151 no_tcl=true
32153 # Check whether --with-tcl was given.
32154 if test "${with_tcl+set}" = set; then :
32155 withval=$with_tcl; with_tclconfig=${withval}
32158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
32159 $as_echo_n "checking for Tcl configuration... " >&6; }
32160 if ${ac_cv_c_tclconfig+:} false; then :
32161 $as_echo_n "(cached) " >&6
32162 else
32165 # First check to see if --with-tcl was specified.
32166 case "${host}" in
32167 *-*-cygwin*) platDir="win" ;;
32168 *) platDir="unix" ;;
32169 esac
32170 if test x"${with_tclconfig}" != x ; then
32171 if test -f "${with_tclconfig}/tclConfig.sh" ; then
32172 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
32173 else
32174 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
32178 # then check for a private Tcl installation
32179 if test x"${ac_cv_c_tclconfig}" = x ; then
32180 for i in \
32181 ../tcl \
32182 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32183 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
32184 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
32185 ../../tcl \
32186 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32187 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
32188 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
32189 ../../../tcl \
32190 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32191 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
32192 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
32193 if test -f "$i/$platDir/tclConfig.sh" ; then
32194 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
32195 break
32197 done
32200 # on Darwin, check in Framework installation locations
32201 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
32202 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
32203 `ls -d /Library/Frameworks 2>/dev/null` \
32204 `ls -d /Network/Library/Frameworks 2>/dev/null` \
32205 `ls -d /System/Library/Frameworks 2>/dev/null` \
32206 ; do
32207 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
32208 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
32209 break
32211 done
32214 # check in a few common install locations
32215 if test x"${ac_cv_c_tclconfig}" = x ; then
32216 for i in `ls -d ${libdir} 2>/dev/null` \
32217 `ls -d ${exec_prefix}/lib 2>/dev/null` \
32218 `ls -d ${prefix}/lib 2>/dev/null` \
32219 `ls -d /usr/local/lib 2>/dev/null` \
32220 `ls -d /usr/contrib/lib 2>/dev/null` \
32221 `ls -d /usr/lib 2>/dev/null` \
32222 ; do
32223 if test -f "$i/tclConfig.sh" ; then
32224 ac_cv_c_tclconfig=`(cd $i; pwd)`
32225 break
32227 done
32230 # check in a few other private locations
32231 if test x"${ac_cv_c_tclconfig}" = x ; then
32232 for i in \
32233 ${srcdir}/../tcl \
32234 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32235 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
32236 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
32237 if test -f "$i/$platDir/tclConfig.sh" ; then
32238 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
32239 break
32241 done
32247 if test x"${ac_cv_c_tclconfig}" = x ; then
32248 TCL_BIN_DIR="# no Tcl configs found"
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
32250 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
32251 else
32252 no_tcl=
32253 TCL_BIN_DIR=${ac_cv_c_tclconfig}
32254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
32255 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
32260 # If $no_tk is nonempty, then we can't do Tk, and there is no
32261 # point to doing Tcl.
32264 # Ok, lets find the tk configuration
32265 # First, look for one uninstalled.
32266 # the alternative search directory is invoked by --with-tk
32269 if test x"${no_tk}" = x ; then
32270 # we reset no_tk in case something fails here
32271 no_tk=true
32273 # Check whether --with-tk was given.
32274 if test "${with_tk+set}" = set; then :
32275 withval=$with_tk; with_tkconfig=${withval}
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
32279 $as_echo_n "checking for Tk configuration... " >&6; }
32280 if ${ac_cv_c_tkconfig+:} false; then :
32281 $as_echo_n "(cached) " >&6
32282 else
32285 # First check to see if --with-tkconfig was specified.
32286 if test x"${with_tkconfig}" != x ; then
32287 if test -f "${with_tkconfig}/tkConfig.sh" ; then
32288 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
32289 else
32290 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
32294 # then check for a private Tk library
32295 case "${host}" in
32296 *-*-cygwin*) platDir="win" ;;
32297 *) platDir="unix" ;;
32298 esac
32299 if test x"${ac_cv_c_tkconfig}" = x ; then
32300 for i in \
32301 ../tk \
32302 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32303 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
32304 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
32305 ../../tk \
32306 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32307 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
32308 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
32309 ../../../tk \
32310 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32311 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
32312 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
32313 if test -f "$i/$platDir/tkConfig.sh" ; then
32314 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
32315 break
32317 done
32320 # on Darwin, check in Framework installation locations
32321 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
32322 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
32323 `ls -d /Library/Frameworks 2>/dev/null` \
32324 `ls -d /Network/Library/Frameworks 2>/dev/null` \
32325 `ls -d /System/Library/Frameworks 2>/dev/null` \
32326 ; do
32327 if test -f "$i/Tk.framework/tkConfig.sh" ; then
32328 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
32329 break
32331 done
32334 # check in a few common install locations
32335 if test x"${ac_cv_c_tkconfig}" = x ; then
32336 for i in `ls -d ${libdir} 2>/dev/null` \
32337 `ls -d ${exec_prefix}/lib 2>/dev/null` \
32338 `ls -d ${prefix}/lib 2>/dev/null` \
32339 `ls -d /usr/local/lib 2>/dev/null` \
32340 `ls -d /usr/contrib/lib 2>/dev/null` \
32341 `ls -d /usr/lib 2>/dev/null` \
32342 ; do
32343 if test -f "$i/tkConfig.sh" ; then
32344 ac_cv_c_tkconfig=`(cd $i; pwd)`
32345 break
32347 done
32349 # check in a few other private locations
32350 if test x"${ac_cv_c_tkconfig}" = x ; then
32351 for i in \
32352 ${srcdir}/../tk \
32353 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32354 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
32355 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
32356 if test -f "$i/$platDir/tkConfig.sh" ; then
32357 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
32358 break
32360 done
32366 if test x"${ac_cv_c_tkconfig}" = x ; then
32367 TK_BIN_DIR="# no Tk configs found"
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
32369 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
32370 else
32371 no_tk=
32372 TK_BIN_DIR=${ac_cv_c_tkconfig}
32373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
32374 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
32379 if test -z "${no_tcl}" -a -z "${no_tk}"; then
32381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
32382 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
32384 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
32385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
32386 $as_echo "loading" >&6; }
32387 . ${TCL_BIN_DIR}/tclConfig.sh
32388 else
32389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
32390 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
32393 # eval is required to do the TCL_DBGX substitution
32394 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
32395 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
32397 # If the TCL_BIN_DIR is the build directory (not the install directory),
32398 # then set the common variable name to the value of the build variables.
32399 # For example, the variable TCL_LIB_SPEC will be set to the value
32400 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
32401 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
32402 # installed and uninstalled version of Tcl.
32403 if test -f "${TCL_BIN_DIR}/Makefile" ; then
32404 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
32405 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
32406 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
32407 elif test "`uname -s`" = "Darwin"; then
32408 # If Tcl was built as a framework, attempt to use the libraries
32409 # from the framework at the given location so that linking works
32410 # against Tcl.framework installed in an arbitrary location.
32411 case ${TCL_DEFS} in
32412 *TCL_FRAMEWORK*)
32413 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
32414 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
32415 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
32416 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
32417 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
32418 break
32420 done
32422 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
32423 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
32424 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
32427 esac
32430 # eval is required to do the TCL_DBGX substitution
32431 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
32432 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
32433 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
32434 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
32450 # Check for in-tree tcl
32451 here=`pwd`
32452 cd ${srcdir}/..
32453 topdir=`pwd`
32454 cd ${here}
32456 intree="no"
32457 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
32458 intree="yes"
32461 # Find Tcl private headers
32462 if test x"${intree}" = xno; then
32464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
32465 $as_echo_n "checking for Tcl private headers... " >&6; }
32466 private_dir=""
32467 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
32468 if test -f ${dir}/tclInt.h ; then
32469 private_dir=${dir}
32472 if test x"${private_dir}" = x; then
32473 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
32474 else
32475 TCL_PRIVATE_INCLUDE="-I${private_dir}"
32476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
32477 $as_echo "${private_dir}" >&6; }
32480 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
32481 TCL_LIBRARY="${TCL_LIB_SPEC}"
32482 TCL_DEPS=""
32483 else
32484 # If building tcl in the same src tree, private headers
32485 # are not needed, but we need to be sure to use the right
32486 # headers library
32487 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
32488 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
32489 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
32496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
32497 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
32499 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
32500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
32501 $as_echo "loading" >&6; }
32502 . ${TK_BIN_DIR}/tkConfig.sh
32503 else
32504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
32505 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
32508 # eval is required to do the TK_DBGX substitution
32509 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
32510 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
32512 # If the TK_BIN_DIR is the build directory (not the install directory),
32513 # then set the common variable name to the value of the build variables.
32514 # For example, the variable TK_LIB_SPEC will be set to the value
32515 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
32516 # instead of TK_BUILD_LIB_SPEC since it will work with both an
32517 # installed and uninstalled version of Tcl.
32518 if test -f "${TK_BIN_DIR}/Makefile" ; then
32519 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
32520 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
32521 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
32522 elif test "`uname -s`" = "Darwin"; then
32523 # If Tk was built as a framework, attempt to use the libraries
32524 # from the framework at the given location so that linking works
32525 # against Tk.framework installed in an arbitrary location.
32526 case ${TK_DEFS} in
32527 *TK_FRAMEWORK*)
32528 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
32529 for i in "`cd ${TK_BIN_DIR}; pwd`" \
32530 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
32531 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
32532 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
32533 break
32535 done
32537 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
32538 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
32539 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
32542 esac
32545 # eval is required to do the TK_DBGX substitution
32546 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
32547 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
32548 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
32549 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
32564 # Check for in-tree Tk
32565 intree="no"
32566 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
32567 intree="yes"
32570 # Find Tk private headers
32571 if test x"${intree}" = xno; then
32573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
32574 $as_echo_n "checking for Tk private headers... " >&6; }
32575 private_dir=""
32576 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
32577 if test -f ${dir}/tkInt.h; then
32578 private_dir=${dir}
32581 if test x"${private_dir}" = x; then
32582 as_fn_error $? "could not find Tk private headers" "$LINENO" 5
32583 else
32584 TK_PRIVATE_INCLUDE="-I${private_dir}"
32585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
32586 $as_echo "${private_dir}" >&6; }
32589 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
32590 TK_LIBRARY=${TK_LIB_SPEC}
32591 TK_DEPS=""
32592 else
32593 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
32594 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
32595 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
32602 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
32604 # Include some libraries that Tcl and Tk want.
32605 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
32606 # Yes, the ordering seems wrong here. But it isn't.
32607 # TK_LIBS is the list of libraries that need to be linked
32608 # after Tcl/Tk. Note that this isn't put into LIBS. If it
32609 # were in LIBS then any link tests after this point would
32610 # try to include things like `$(LIBGUI)', which wouldn't work.
32611 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
32613 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
32614 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
32615 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
32616 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
32617 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
32618 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
32619 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
32621 if test x"$gdb_cv_os_cygwin" = xyes; then
32622 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
32623 WIN32LDAPP="-Wl,--subsystem,console"
32624 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
32627 subdirs="$subdirs gdbtk"
32639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
32640 $as_echo_n "checking for X... " >&6; }
32643 # Check whether --with-x was given.
32644 if test "${with_x+set}" = set; then :
32645 withval=$with_x;
32648 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32649 if test "x$with_x" = xno; then
32650 # The user explicitly disabled X.
32651 have_x=disabled
32652 else
32653 case $x_includes,$x_libraries in #(
32654 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
32655 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
32656 $as_echo_n "(cached) " >&6
32657 else
32658 # One or both of the vars are not set, and there is no cached value.
32659 ac_x_includes=no ac_x_libraries=no
32660 rm -f -r conftest.dir
32661 if mkdir conftest.dir; then
32662 cd conftest.dir
32663 cat >Imakefile <<'_ACEOF'
32664 incroot:
32665 @echo incroot='${INCROOT}'
32666 usrlibdir:
32667 @echo usrlibdir='${USRLIBDIR}'
32668 libdir:
32669 @echo libdir='${LIBDIR}'
32670 _ACEOF
32671 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
32672 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
32673 for ac_var in incroot usrlibdir libdir; do
32674 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32675 done
32676 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32677 for ac_extension in a so sl dylib la dll; do
32678 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32679 test -f "$ac_im_libdir/libX11.$ac_extension"; then
32680 ac_im_usrlibdir=$ac_im_libdir; break
32682 done
32683 # Screen out bogus values from the imake configuration. They are
32684 # bogus both because they are the default anyway, and because
32685 # using them would break gcc on systems where it needs fixed includes.
32686 case $ac_im_incroot in
32687 /usr/include) ac_x_includes= ;;
32688 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32689 esac
32690 case $ac_im_usrlibdir in
32691 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
32692 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32693 esac
32695 cd ..
32696 rm -f -r conftest.dir
32699 # Standard set of common directories for X headers.
32700 # Check X11 before X11Rn because it is often a symlink to the current release.
32701 ac_x_header_dirs='
32702 /usr/X11/include
32703 /usr/X11R7/include
32704 /usr/X11R6/include
32705 /usr/X11R5/include
32706 /usr/X11R4/include
32708 /usr/include/X11
32709 /usr/include/X11R7
32710 /usr/include/X11R6
32711 /usr/include/X11R5
32712 /usr/include/X11R4
32714 /usr/local/X11/include
32715 /usr/local/X11R7/include
32716 /usr/local/X11R6/include
32717 /usr/local/X11R5/include
32718 /usr/local/X11R4/include
32720 /usr/local/include/X11
32721 /usr/local/include/X11R7
32722 /usr/local/include/X11R6
32723 /usr/local/include/X11R5
32724 /usr/local/include/X11R4
32726 /usr/X386/include
32727 /usr/x386/include
32728 /usr/XFree86/include/X11
32730 /usr/include
32731 /usr/local/include
32732 /usr/unsupported/include
32733 /usr/athena/include
32734 /usr/local/x11r5/include
32735 /usr/lpp/Xamples/include
32737 /usr/openwin/include
32738 /usr/openwin/share/include'
32740 if test "$ac_x_includes" = no; then
32741 # Guess where to find include files, by looking for Xlib.h.
32742 # First, try using that file with no special directory specified.
32743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32744 /* end confdefs.h. */
32745 #include <X11/Xlib.h>
32746 _ACEOF
32747 if ac_fn_c_try_cpp "$LINENO"; then :
32748 # We can compile using X headers with no special include directory.
32749 ac_x_includes=
32750 else
32751 for ac_dir in $ac_x_header_dirs; do
32752 if test -r "$ac_dir/X11/Xlib.h"; then
32753 ac_x_includes=$ac_dir
32754 break
32756 done
32758 rm -f conftest.err conftest.i conftest.$ac_ext
32759 fi # $ac_x_includes = no
32761 if test "$ac_x_libraries" = no; then
32762 # Check for the libraries.
32763 # See if we find them without any special options.
32764 # Don't add to $LIBS permanently.
32765 ac_save_LIBS=$LIBS
32766 LIBS="-lX11 $LIBS"
32767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32768 /* end confdefs.h. */
32769 #include <X11/Xlib.h>
32771 main ()
32773 XrmInitialize ()
32775 return 0;
32777 _ACEOF
32778 if ac_fn_c_try_link "$LINENO"; then :
32779 LIBS=$ac_save_LIBS
32780 # We can link X programs with no special library path.
32781 ac_x_libraries=
32782 else
32783 LIBS=$ac_save_LIBS
32784 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32786 # Don't even attempt the hair of trying to link an X program!
32787 for ac_extension in a so sl dylib la dll; do
32788 if test -r "$ac_dir/libX11.$ac_extension"; then
32789 ac_x_libraries=$ac_dir
32790 break 2
32792 done
32793 done
32795 rm -f core conftest.err conftest.$ac_objext \
32796 conftest$ac_exeext conftest.$ac_ext
32797 fi # $ac_x_libraries = no
32799 case $ac_x_includes,$ac_x_libraries in #(
32800 no,* | *,no | *\'*)
32801 # Didn't find X, or a directory has "'" in its name.
32802 ac_cv_have_x="have_x=no";; #(
32804 # Record where we found X for the cache.
32805 ac_cv_have_x="have_x=yes\
32806 ac_x_includes='$ac_x_includes'\
32807 ac_x_libraries='$ac_x_libraries'"
32808 esac
32810 ;; #(
32811 *) have_x=yes;;
32812 esac
32813 eval "$ac_cv_have_x"
32814 fi # $with_x != no
32816 if test "$have_x" != yes; then
32817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
32818 $as_echo "$have_x" >&6; }
32819 no_x=yes
32820 else
32821 # If each of the values was on the command line, it overrides each guess.
32822 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32823 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32824 # Update the cache value to reflect the command line values.
32825 ac_cv_have_x="have_x=yes\
32826 ac_x_includes='$x_includes'\
32827 ac_x_libraries='$x_libraries'"
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
32829 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
32833 # Unlike the sim directory, whether a simulator is linked is controlled by
32834 # presence of a gdb_sim definition in the target configure.tgt entry.
32835 # This code just checks for a few cases where we'd like to ignore those
32836 # definitions, even when they're present in the '.mt' file. These cases
32837 # are when --disable-sim is specified, or if the simulator directory is
32838 # not part of the source tree.
32840 # Check whether --enable-sim was given.
32841 if test "${enable_sim+set}" = set; then :
32842 enableval=$enable_sim; echo "enable_sim = $enable_sim";
32843 echo "enableval = ${enableval}";
32844 case "${enableval}" in
32845 yes) ignore_sim=false ;;
32846 no) ignore_sim=true ;;
32847 *) ignore_sim=false ;;
32848 esac
32849 else
32850 ignore_sim=false
32854 if test ! -d "${srcdir}/../sim"; then
32855 ignore_sim=true
32858 SIM=
32859 SIM_OBS=
32860 if test "${ignore_sim}" = "false"; then
32861 if test x"${gdb_sim}" != x ; then
32862 SIM="${gdb_sim}"
32863 SIM_OBS="remote-sim.o"
32865 # Some tdep code should only be compiled in when the ppc sim is
32866 # built. PR sim/13418.
32867 case $target in
32868 powerpc*-*-*)
32870 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
32873 esac
32890 # List of host floatformats.
32892 cat >>confdefs.h <<_ACEOF
32893 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
32894 _ACEOF
32897 cat >>confdefs.h <<_ACEOF
32898 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
32899 _ACEOF
32902 cat >>confdefs.h <<_ACEOF
32903 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
32904 _ACEOF
32907 # target_subdir is used by the testsuite to find the target libraries.
32908 target_subdir=
32909 if test "${host}" != "${target}"; then
32910 target_subdir="${target_alias}/"
32914 # Import nat definitions.
32915 nat_makefile_frag=/dev/null
32916 if test "${gdb_native}" = "yes"; then
32917 . ${srcdir}/configure.nat
32918 nativefile=$NAT_FILE
32931 if test x"${gdb_osabi}" != x ; then
32933 cat >>confdefs.h <<_ACEOF
32934 #define GDB_OSABI_DEFAULT $gdb_osabi
32935 _ACEOF
32939 # Setup possible use of libbacktrace.
32940 # Check whether --enable-libbacktrace was given.
32941 if test "${enable_libbacktrace+set}" = set; then :
32942 enableval=$enable_libbacktrace;
32943 case $enableval in
32944 yes | no)
32947 as_fn_error $? "bad value $enableval for --enable-libbacktrace" "$LINENO" 5
32949 esac
32951 else
32952 enable_libbacktrace=yes
32956 if test "${enable_libbacktrace}" = "yes"; then
32957 LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
32958 LIBBACKTRACE_LIB=../libbacktrace/libbacktrace.la
32960 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
32962 else
32963 LIBBACKTRACE_INC=
32964 LIBBACKTRACE_LIB=
32970 # Check for babeltrace and babeltrace-ctf
32972 # Check whether --with-babeltrace was given.
32973 if test "${with_babeltrace+set}" = set; then :
32974 withval=$with_babeltrace;
32975 else
32976 with_babeltrace=auto
32979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
32980 $as_echo_n "checking whether to use babeltrace... " >&6; }
32981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
32982 $as_echo "$with_babeltrace" >&6; }
32984 if test "x$with_babeltrace" = "xno"; then
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
32986 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
32987 else
32988 # Append -Werror to CFLAGS so that configure can catch the warning
32989 # "assignment from incompatible pointer type", which is related to
32990 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
32991 # in GDB, while babeltrace 1.0.3 is broken.
32992 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
32993 # safe to save and restore CFLAGS here.
32994 saved_CFLAGS=$CFLAGS
32995 CFLAGS="$CFLAGS -Werror"
33004 use_additional=yes
33006 acl_save_prefix="$prefix"
33007 prefix="$acl_final_prefix"
33008 acl_save_exec_prefix="$exec_prefix"
33009 exec_prefix="$acl_final_exec_prefix"
33011 eval additional_includedir=\"$includedir\"
33012 eval additional_libdir=\"$libdir\"
33014 exec_prefix="$acl_save_exec_prefix"
33015 prefix="$acl_save_prefix"
33018 # Check whether --with-libbabeltrace-prefix was given.
33019 if test "${with_libbabeltrace_prefix+set}" = set; then :
33020 withval=$with_libbabeltrace_prefix;
33021 if test "X$withval" = "Xno"; then
33022 use_additional=no
33023 else
33024 if test "X$withval" = "X"; then
33026 acl_save_prefix="$prefix"
33027 prefix="$acl_final_prefix"
33028 acl_save_exec_prefix="$exec_prefix"
33029 exec_prefix="$acl_final_exec_prefix"
33031 eval additional_includedir=\"$includedir\"
33032 eval additional_libdir=\"$libdir\"
33034 exec_prefix="$acl_save_exec_prefix"
33035 prefix="$acl_save_prefix"
33037 else
33038 additional_includedir="$withval/include"
33039 additional_libdir="$withval/lib"
33046 # Check whether --with-libbabeltrace-type was given.
33047 if test "${with_libbabeltrace_type+set}" = set; then :
33048 withval=$with_libbabeltrace_type; with_libbabeltrace_type=$withval
33049 else
33050 with_libbabeltrace_type=auto
33053 lib_type=`eval echo \$with_libbabeltrace_type`
33055 LIBBABELTRACE=
33056 LTLIBBABELTRACE=
33057 INCBABELTRACE=
33058 rpathdirs=
33059 ltrpathdirs=
33060 names_already_handled=
33061 names_next_round='babeltrace babeltrace-ctf'
33062 while test -n "$names_next_round"; do
33063 names_this_round="$names_next_round"
33064 names_next_round=
33065 for name in $names_this_round; do
33066 already_handled=
33067 for n in $names_already_handled; do
33068 if test "$n" = "$name"; then
33069 already_handled=yes
33070 break
33072 done
33073 if test -z "$already_handled"; then
33074 names_already_handled="$names_already_handled $name"
33075 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
33076 eval value=\"\$HAVE_LIB$uppername\"
33077 if test -n "$value"; then
33078 if test "$value" = yes; then
33079 eval value=\"\$LIB$uppername\"
33080 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
33081 eval value=\"\$LTLIB$uppername\"
33082 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
33083 else
33086 else
33087 found_dir=
33088 found_la=
33089 found_so=
33090 found_a=
33091 if test $use_additional = yes; then
33092 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
33093 found_dir="$additional_libdir"
33094 found_so="$additional_libdir/lib$name.$shlibext"
33095 if test -f "$additional_libdir/lib$name.la"; then
33096 found_la="$additional_libdir/lib$name.la"
33098 elif test x$lib_type != xshared; then
33099 if test -f "$additional_libdir/lib$name.$libext"; then
33100 found_dir="$additional_libdir"
33101 found_a="$additional_libdir/lib$name.$libext"
33102 if test -f "$additional_libdir/lib$name.la"; then
33103 found_la="$additional_libdir/lib$name.la"
33108 if test "X$found_dir" = "X"; then
33109 for x in $LDFLAGS $LTLIBBABELTRACE; do
33111 acl_save_prefix="$prefix"
33112 prefix="$acl_final_prefix"
33113 acl_save_exec_prefix="$exec_prefix"
33114 exec_prefix="$acl_final_exec_prefix"
33115 eval x=\"$x\"
33116 exec_prefix="$acl_save_exec_prefix"
33117 prefix="$acl_save_prefix"
33119 case "$x" in
33120 -L*)
33121 dir=`echo "X$x" | sed -e 's/^X-L//'`
33122 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
33123 found_dir="$dir"
33124 found_so="$dir/lib$name.$shlibext"
33125 if test -f "$dir/lib$name.la"; then
33126 found_la="$dir/lib$name.la"
33128 elif test x$lib_type != xshared; then
33129 if test -f "$dir/lib$name.$libext"; then
33130 found_dir="$dir"
33131 found_a="$dir/lib$name.$libext"
33132 if test -f "$dir/lib$name.la"; then
33133 found_la="$dir/lib$name.la"
33138 esac
33139 if test "X$found_dir" != "X"; then
33140 break
33142 done
33144 if test "X$found_dir" != "X"; then
33145 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
33146 if test "X$found_so" != "X"; then
33147 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
33148 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33149 else
33150 haveit=
33151 for x in $ltrpathdirs; do
33152 if test "X$x" = "X$found_dir"; then
33153 haveit=yes
33154 break
33156 done
33157 if test -z "$haveit"; then
33158 ltrpathdirs="$ltrpathdirs $found_dir"
33160 if test "$hardcode_direct" = yes; then
33161 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33162 else
33163 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
33164 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33165 haveit=
33166 for x in $rpathdirs; do
33167 if test "X$x" = "X$found_dir"; then
33168 haveit=yes
33169 break
33171 done
33172 if test -z "$haveit"; then
33173 rpathdirs="$rpathdirs $found_dir"
33175 else
33176 haveit=
33177 for x in $LDFLAGS $LIBBABELTRACE; do
33179 acl_save_prefix="$prefix"
33180 prefix="$acl_final_prefix"
33181 acl_save_exec_prefix="$exec_prefix"
33182 exec_prefix="$acl_final_exec_prefix"
33183 eval x=\"$x\"
33184 exec_prefix="$acl_save_exec_prefix"
33185 prefix="$acl_save_prefix"
33187 if test "X$x" = "X-L$found_dir"; then
33188 haveit=yes
33189 break
33191 done
33192 if test -z "$haveit"; then
33193 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
33195 if test "$hardcode_minus_L" != no; then
33196 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33197 else
33198 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
33203 else
33204 if test "X$found_a" != "X"; then
33205 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
33206 else
33207 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
33210 additional_includedir=
33211 case "$found_dir" in
33212 */lib | */lib/)
33213 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
33214 additional_includedir="$basedir/include"
33216 esac
33217 if test "X$additional_includedir" != "X"; then
33218 if test "X$additional_includedir" != "X/usr/include"; then
33219 haveit=
33220 if test "X$additional_includedir" = "X/usr/local/include"; then
33221 if test -n "$GCC"; then
33222 case $host_os in
33223 linux*) haveit=yes;;
33224 esac
33227 if test -z "$haveit"; then
33228 for x in $CPPFLAGS $INCBABELTRACE; do
33230 acl_save_prefix="$prefix"
33231 prefix="$acl_final_prefix"
33232 acl_save_exec_prefix="$exec_prefix"
33233 exec_prefix="$acl_final_exec_prefix"
33234 eval x=\"$x\"
33235 exec_prefix="$acl_save_exec_prefix"
33236 prefix="$acl_save_prefix"
33238 if test "X$x" = "X-I$additional_includedir"; then
33239 haveit=yes
33240 break
33242 done
33243 if test -z "$haveit"; then
33244 if test -d "$additional_includedir"; then
33245 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
33251 if test -n "$found_la"; then
33252 save_libdir="$libdir"
33253 case "$found_la" in
33254 */* | *\\*) . "$found_la" ;;
33255 *) . "./$found_la" ;;
33256 esac
33257 libdir="$save_libdir"
33258 for dep in $dependency_libs; do
33259 case "$dep" in
33260 -L*)
33261 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
33262 if test "X$additional_libdir" != "X/usr/lib"; then
33263 haveit=
33264 if test "X$additional_libdir" = "X/usr/local/lib"; then
33265 if test -n "$GCC"; then
33266 case $host_os in
33267 linux*) haveit=yes;;
33268 esac
33271 if test -z "$haveit"; then
33272 haveit=
33273 for x in $LDFLAGS $LIBBABELTRACE; do
33275 acl_save_prefix="$prefix"
33276 prefix="$acl_final_prefix"
33277 acl_save_exec_prefix="$exec_prefix"
33278 exec_prefix="$acl_final_exec_prefix"
33279 eval x=\"$x\"
33280 exec_prefix="$acl_save_exec_prefix"
33281 prefix="$acl_save_prefix"
33283 if test "X$x" = "X-L$additional_libdir"; then
33284 haveit=yes
33285 break
33287 done
33288 if test -z "$haveit"; then
33289 if test -d "$additional_libdir"; then
33290 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
33293 haveit=
33294 for x in $LDFLAGS $LTLIBBABELTRACE; do
33296 acl_save_prefix="$prefix"
33297 prefix="$acl_final_prefix"
33298 acl_save_exec_prefix="$exec_prefix"
33299 exec_prefix="$acl_final_exec_prefix"
33300 eval x=\"$x\"
33301 exec_prefix="$acl_save_exec_prefix"
33302 prefix="$acl_save_prefix"
33304 if test "X$x" = "X-L$additional_libdir"; then
33305 haveit=yes
33306 break
33308 done
33309 if test -z "$haveit"; then
33310 if test -d "$additional_libdir"; then
33311 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
33317 -R*)
33318 dir=`echo "X$dep" | sed -e 's/^X-R//'`
33319 if test "$enable_rpath" != no; then
33320 haveit=
33321 for x in $rpathdirs; do
33322 if test "X$x" = "X$dir"; then
33323 haveit=yes
33324 break
33326 done
33327 if test -z "$haveit"; then
33328 rpathdirs="$rpathdirs $dir"
33330 haveit=
33331 for x in $ltrpathdirs; do
33332 if test "X$x" = "X$dir"; then
33333 haveit=yes
33334 break
33336 done
33337 if test -z "$haveit"; then
33338 ltrpathdirs="$ltrpathdirs $dir"
33342 -l*)
33343 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
33345 *.la)
33346 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
33349 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
33350 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
33352 esac
33353 done
33355 else
33356 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
33357 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
33358 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
33359 else
33360 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
33361 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
33366 done
33367 done
33368 if test "X$rpathdirs" != "X"; then
33369 if test -n "$hardcode_libdir_separator"; then
33370 alldirs=
33371 for found_dir in $rpathdirs; do
33372 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
33373 done
33374 acl_save_libdir="$libdir"
33375 libdir="$alldirs"
33376 eval flag=\"$hardcode_libdir_flag_spec\"
33377 libdir="$acl_save_libdir"
33378 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
33379 else
33380 for found_dir in $rpathdirs; do
33381 acl_save_libdir="$libdir"
33382 libdir="$found_dir"
33383 eval flag=\"$hardcode_libdir_flag_spec\"
33384 libdir="$acl_save_libdir"
33385 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
33386 done
33389 if test "X$ltrpathdirs" != "X"; then
33390 for found_dir in $ltrpathdirs; do
33391 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
33392 done
33396 ac_save_CPPFLAGS="$CPPFLAGS"
33398 for element in $INCBABELTRACE; do
33399 haveit=
33400 for x in $CPPFLAGS; do
33402 acl_save_prefix="$prefix"
33403 prefix="$acl_final_prefix"
33404 acl_save_exec_prefix="$exec_prefix"
33405 exec_prefix="$acl_final_exec_prefix"
33406 eval x=\"$x\"
33407 exec_prefix="$acl_save_exec_prefix"
33408 prefix="$acl_save_prefix"
33410 if test "X$x" = "X$element"; then
33411 haveit=yes
33412 break
33414 done
33415 if test -z "$haveit"; then
33416 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
33418 done
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
33422 $as_echo_n "checking for libbabeltrace... " >&6; }
33423 if ${ac_cv_libbabeltrace+:} false; then :
33424 $as_echo_n "(cached) " >&6
33425 else
33427 ac_save_LIBS="$LIBS"
33428 LIBS="$LIBS $LIBBABELTRACE"
33429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33430 /* end confdefs.h. */
33431 #include <babeltrace/babeltrace.h>
33432 #include <babeltrace/ctf/events.h>
33433 #include <babeltrace/ctf/iterator.h>
33435 main ()
33437 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
33438 struct bt_ctf_event *event = NULL;
33439 const struct bt_definition *scope;
33441 pos->type = BT_SEEK_BEGIN;
33442 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
33443 scope = bt_ctf_get_top_level_scope (event,
33444 BT_STREAM_EVENT_HEADER);
33445 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
33448 return 0;
33450 _ACEOF
33451 if ac_fn_c_try_link "$LINENO"; then :
33452 ac_cv_libbabeltrace=yes
33453 else
33454 ac_cv_libbabeltrace=no
33456 rm -f core conftest.err conftest.$ac_objext \
33457 conftest$ac_exeext conftest.$ac_ext
33458 LIBS="$ac_save_LIBS"
33461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
33462 $as_echo "$ac_cv_libbabeltrace" >&6; }
33463 if test "$ac_cv_libbabeltrace" = yes; then
33464 HAVE_LIBBABELTRACE=yes
33466 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
33468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
33469 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
33470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
33471 $as_echo "$LIBBABELTRACE" >&6; }
33472 else
33473 HAVE_LIBBABELTRACE=no
33474 CPPFLAGS="$ac_save_CPPFLAGS"
33475 LIBBABELTRACE=
33476 LTLIBBABELTRACE=
33484 CFLAGS=$saved_CFLAGS
33486 if test "$HAVE_LIBBABELTRACE" != yes; then
33487 if test "$with_babeltrace" = yes; then
33488 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
33489 else
33490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
33491 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
33496 # Check whether --enable-libctf was given.
33497 if test "${enable_libctf+set}" = set; then :
33498 enableval=$enable_libctf;
33499 case "$enableval" in
33500 yes|no) ;;
33501 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
33502 esac
33504 else
33505 enable_libctf=yes
33509 if test "${enable_libctf}" = yes; then
33511 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
33513 LIBCTF="../libctf/libctf.la"
33514 CTF_DEPS="../libctf/libctf.la"
33515 else
33516 LIBCTF=
33517 CTF_DEPS=
33522 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
33523 # empty version.
33525 NM_H=
33526 rm -f nm.h
33527 if test "${nativefile}" != ""; then
33528 case "${nativefile}" in
33529 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
33530 * ) GDB_NM_FILE="${nativefile}"
33531 esac
33532 ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE"
33535 cat >>confdefs.h <<_ACEOF
33536 #define GDB_NM_FILE "${GDB_NM_FILE}"
33537 _ACEOF
33539 NM_H=nm.h
33544 for ac_prog in xsltproc
33546 # Extract the first word of "$ac_prog", so it can be a program name with args.
33547 set dummy $ac_prog; ac_word=$2
33548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33549 $as_echo_n "checking for $ac_word... " >&6; }
33550 if ${ac_cv_path_XSLTPROC+:} false; then :
33551 $as_echo_n "(cached) " >&6
33552 else
33553 case $XSLTPROC in
33554 [\\/]* | ?:[\\/]*)
33555 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
33558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33559 for as_dir in $PATH
33561 IFS=$as_save_IFS
33562 test -z "$as_dir" && as_dir=.
33563 for ac_exec_ext in '' $ac_executable_extensions; do
33564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33565 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
33566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33567 break 2
33569 done
33570 done
33571 IFS=$as_save_IFS
33574 esac
33576 XSLTPROC=$ac_cv_path_XSLTPROC
33577 if test -n "$XSLTPROC"; then
33578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
33579 $as_echo "$XSLTPROC" >&6; }
33580 else
33581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33582 $as_echo "no" >&6; }
33586 test -n "$XSLTPROC" && break
33587 done
33588 test -n "$XSLTPROC" || XSLTPROC="missing"
33590 if test "x$USE_MAINTAINER_MODE" = xyes; then
33591 if test "${XSLTPROC}" = missing; then
33592 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
33600 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
33604 # Check whether we will enable the inclusion of unit tests when
33605 # compiling GDB.
33607 # The default value of this option changes depending whether we're on
33608 # development mode (in which case it's "true") or not (in which case
33609 # it's "false"). The $development variable is set by the GDB_AC_COMMON
33610 # macro, which must therefore be used before GDB_AC_SELFTEST.
33612 if test "x$development" != xtrue && test "x$development" != xfalse; then :
33613 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
33616 # Check whether --enable-unit-tests was given.
33617 if test "${enable_unit_tests+set}" = set; then :
33618 enableval=$enable_unit_tests; case "${enableval}" in
33619 yes) enable_unittests=true ;;
33620 no) enable_unittests=false ;;
33621 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
33622 esac
33623 else
33624 enable_unittests=$development
33628 if $enable_unittests; then
33630 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
33633 CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
33634 CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
33640 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
33641 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
33642 if test "x$GDB_TRANSFORM_NAME" = x; then
33643 GDB_TRANSFORM_NAME=gdb
33648 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
33649 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
33650 if test "x$GCORE_TRANSFORM_NAME" = x; then
33651 GCORE_TRANSFORM_NAME=gcore
33655 ac_config_files="$ac_config_files gcore"
33657 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
33660 cat >confcache <<\_ACEOF
33661 # This file is a shell script that caches the results of configure
33662 # tests run on this system so they can be shared between configure
33663 # scripts and configure runs, see configure's option --config-cache.
33664 # It is not useful on other systems. If it contains results you don't
33665 # want to keep, you may remove or edit it.
33667 # config.status only pays attention to the cache file if you give it
33668 # the --recheck option to rerun configure.
33670 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33672 # following values.
33674 _ACEOF
33676 # The following way of writing the cache mishandles newlines in values,
33677 # but we know of no workaround that is simple, portable, and efficient.
33678 # So, we kill variables containing newlines.
33679 # Ultrix sh set writes to stderr and can't be redirected directly,
33680 # and sets the high bit in the cache file unless we assign to the vars.
33682 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33683 eval ac_val=\$$ac_var
33684 case $ac_val in #(
33685 *${as_nl}*)
33686 case $ac_var in #(
33687 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33688 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33689 esac
33690 case $ac_var in #(
33691 _ | IFS | as_nl) ;; #(
33692 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33693 *) { eval $ac_var=; unset $ac_var;} ;;
33694 esac ;;
33695 esac
33696 done
33698 (set) 2>&1 |
33699 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33700 *${as_nl}ac_space=\ *)
33701 # `set' does not quote correctly, so add quotes: double-quote
33702 # substitution turns \\\\ into \\, and sed turns \\ into \.
33703 sed -n \
33704 "s/'/'\\\\''/g;
33705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33706 ;; #(
33708 # `set' quotes correctly as required by POSIX, so do not add quotes.
33709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33711 esac |
33712 sort
33714 sed '
33715 /^ac_cv_env_/b end
33716 t clear
33717 :clear
33718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33719 t end
33720 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33721 :end' >>confcache
33722 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33723 if test -w "$cache_file"; then
33724 if test "x$cache_file" != "x/dev/null"; then
33725 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33726 $as_echo "$as_me: updating cache $cache_file" >&6;}
33727 if test ! -f "$cache_file" || test -h "$cache_file"; then
33728 cat confcache >"$cache_file"
33729 else
33730 case $cache_file in #(
33731 */* | ?:*)
33732 mv -f confcache "$cache_file"$$ &&
33733 mv -f "$cache_file"$$ "$cache_file" ;; #(
33735 mv -f confcache "$cache_file" ;;
33736 esac
33739 else
33740 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33741 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33744 rm -f confcache
33746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33747 # Let make expand exec_prefix.
33748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33750 DEFS=-DHAVE_CONFIG_H
33752 ac_libobjs=
33753 ac_ltlibobjs=
33755 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33756 # 1. Remove the extension, and $U if already installed.
33757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33758 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33760 # will be set to the directory where LIBOBJS objects are built.
33761 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33762 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33763 done
33764 LIBOBJS=$ac_libobjs
33766 LTLIBOBJS=$ac_ltlibobjs
33769 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33770 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
33771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33773 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
33774 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
33775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33777 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
33778 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
33779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33781 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
33782 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
33783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33787 : "${CONFIG_STATUS=./config.status}"
33788 ac_write_fail=0
33789 ac_clean_files_save=$ac_clean_files
33790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33792 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33793 as_write_fail=0
33794 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33795 #! $SHELL
33796 # Generated by $as_me.
33797 # Run this file to recreate the current configuration.
33798 # Compiler output produced by configure, useful for debugging
33799 # configure, is in config.log if it exists.
33801 debug=false
33802 ac_cs_recheck=false
33803 ac_cs_silent=false
33805 SHELL=\${CONFIG_SHELL-$SHELL}
33806 export SHELL
33807 _ASEOF
33808 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33809 ## -------------------- ##
33810 ## M4sh Initialization. ##
33811 ## -------------------- ##
33813 # Be more Bourne compatible
33814 DUALCASE=1; export DUALCASE # for MKS sh
33815 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33816 emulate sh
33817 NULLCMD=:
33818 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33819 # is contrary to our usage. Disable this feature.
33820 alias -g '${1+"$@"}'='"$@"'
33821 setopt NO_GLOB_SUBST
33822 else
33823 case `(set -o) 2>/dev/null` in #(
33824 *posix*) :
33825 set -o posix ;; #(
33826 *) :
33828 esac
33832 as_nl='
33834 export as_nl
33835 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33836 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33837 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33839 # Prefer a ksh shell builtin over an external printf program on Solaris,
33840 # but without wasting forks for bash or zsh.
33841 if test -z "$BASH_VERSION$ZSH_VERSION" \
33842 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33843 as_echo='print -r --'
33844 as_echo_n='print -rn --'
33845 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33846 as_echo='printf %s\n'
33847 as_echo_n='printf %s'
33848 else
33849 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33850 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33851 as_echo_n='/usr/ucb/echo -n'
33852 else
33853 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33854 as_echo_n_body='eval
33855 arg=$1;
33856 case $arg in #(
33857 *"$as_nl"*)
33858 expr "X$arg" : "X\\(.*\\)$as_nl";
33859 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33860 esac;
33861 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33863 export as_echo_n_body
33864 as_echo_n='sh -c $as_echo_n_body as_echo'
33866 export as_echo_body
33867 as_echo='sh -c $as_echo_body as_echo'
33870 # The user is always right.
33871 if test "${PATH_SEPARATOR+set}" != set; then
33872 PATH_SEPARATOR=:
33873 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33874 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33875 PATH_SEPARATOR=';'
33880 # IFS
33881 # We need space, tab and new line, in precisely that order. Quoting is
33882 # there to prevent editors from complaining about space-tab.
33883 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33884 # splitting by setting IFS to empty value.)
33885 IFS=" "" $as_nl"
33887 # Find who we are. Look in the path if we contain no directory separator.
33888 as_myself=
33889 case $0 in #((
33890 *[\\/]* ) as_myself=$0 ;;
33891 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33892 for as_dir in $PATH
33894 IFS=$as_save_IFS
33895 test -z "$as_dir" && as_dir=.
33896 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33897 done
33898 IFS=$as_save_IFS
33901 esac
33902 # We did not find ourselves, most probably we were run as `sh COMMAND'
33903 # in which case we are not to be found in the path.
33904 if test "x$as_myself" = x; then
33905 as_myself=$0
33907 if test ! -f "$as_myself"; then
33908 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33909 exit 1
33912 # Unset variables that we do not need and which cause bugs (e.g. in
33913 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33914 # suppresses any "Segmentation fault" message there. '((' could
33915 # trigger a bug in pdksh 5.2.14.
33916 for as_var in BASH_ENV ENV MAIL MAILPATH
33917 do eval test x\${$as_var+set} = xset \
33918 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33919 done
33920 PS1='$ '
33921 PS2='> '
33922 PS4='+ '
33924 # NLS nuisances.
33925 LC_ALL=C
33926 export LC_ALL
33927 LANGUAGE=C
33928 export LANGUAGE
33930 # CDPATH.
33931 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33934 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33935 # ----------------------------------------
33936 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33937 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33938 # script with STATUS, using 1 if that was 0.
33939 as_fn_error ()
33941 as_status=$1; test $as_status -eq 0 && as_status=1
33942 if test "$4"; then
33943 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33944 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33946 $as_echo "$as_me: error: $2" >&2
33947 as_fn_exit $as_status
33948 } # as_fn_error
33951 # as_fn_set_status STATUS
33952 # -----------------------
33953 # Set $? to STATUS, without forking.
33954 as_fn_set_status ()
33956 return $1
33957 } # as_fn_set_status
33959 # as_fn_exit STATUS
33960 # -----------------
33961 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33962 as_fn_exit ()
33964 set +e
33965 as_fn_set_status $1
33966 exit $1
33967 } # as_fn_exit
33969 # as_fn_unset VAR
33970 # ---------------
33971 # Portably unset VAR.
33972 as_fn_unset ()
33974 { eval $1=; unset $1;}
33976 as_unset=as_fn_unset
33977 # as_fn_append VAR VALUE
33978 # ----------------------
33979 # Append the text in VALUE to the end of the definition contained in VAR. Take
33980 # advantage of any shell optimizations that allow amortized linear growth over
33981 # repeated appends, instead of the typical quadratic growth present in naive
33982 # implementations.
33983 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33984 eval 'as_fn_append ()
33986 eval $1+=\$2
33988 else
33989 as_fn_append ()
33991 eval $1=\$$1\$2
33993 fi # as_fn_append
33995 # as_fn_arith ARG...
33996 # ------------------
33997 # Perform arithmetic evaluation on the ARGs, and store the result in the
33998 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33999 # must be portable across $(()) and expr.
34000 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34001 eval 'as_fn_arith ()
34003 as_val=$(( $* ))
34005 else
34006 as_fn_arith ()
34008 as_val=`expr "$@" || test $? -eq 1`
34010 fi # as_fn_arith
34013 if expr a : '\(a\)' >/dev/null 2>&1 &&
34014 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34015 as_expr=expr
34016 else
34017 as_expr=false
34020 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34021 as_basename=basename
34022 else
34023 as_basename=false
34026 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34027 as_dirname=dirname
34028 else
34029 as_dirname=false
34032 as_me=`$as_basename -- "$0" ||
34033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34034 X"$0" : 'X\(//\)$' \| \
34035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34036 $as_echo X/"$0" |
34037 sed '/^.*\/\([^/][^/]*\)\/*$/{
34038 s//\1/
34041 /^X\/\(\/\/\)$/{
34042 s//\1/
34045 /^X\/\(\/\).*/{
34046 s//\1/
34049 s/.*/./; q'`
34051 # Avoid depending upon Character Ranges.
34052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34055 as_cr_digits='0123456789'
34056 as_cr_alnum=$as_cr_Letters$as_cr_digits
34058 ECHO_C= ECHO_N= ECHO_T=
34059 case `echo -n x` in #(((((
34060 -n*)
34061 case `echo 'xy\c'` in
34062 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34063 xy) ECHO_C='\c';;
34064 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34065 ECHO_T=' ';;
34066 esac;;
34068 ECHO_N='-n';;
34069 esac
34071 rm -f conf$$ conf$$.exe conf$$.file
34072 if test -d conf$$.dir; then
34073 rm -f conf$$.dir/conf$$.file
34074 else
34075 rm -f conf$$.dir
34076 mkdir conf$$.dir 2>/dev/null
34078 if (echo >conf$$.file) 2>/dev/null; then
34079 if ln -s conf$$.file conf$$ 2>/dev/null; then
34080 as_ln_s='ln -s'
34081 # ... but there are two gotchas:
34082 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34083 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34084 # In both cases, we have to default to `cp -pR'.
34085 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34086 as_ln_s='cp -pR'
34087 elif ln conf$$.file conf$$ 2>/dev/null; then
34088 as_ln_s=ln
34089 else
34090 as_ln_s='cp -pR'
34092 else
34093 as_ln_s='cp -pR'
34095 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34096 rmdir conf$$.dir 2>/dev/null
34099 # as_fn_mkdir_p
34100 # -------------
34101 # Create "$as_dir" as a directory, including parents if necessary.
34102 as_fn_mkdir_p ()
34105 case $as_dir in #(
34106 -*) as_dir=./$as_dir;;
34107 esac
34108 test -d "$as_dir" || eval $as_mkdir_p || {
34109 as_dirs=
34110 while :; do
34111 case $as_dir in #(
34112 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34113 *) as_qdir=$as_dir;;
34114 esac
34115 as_dirs="'$as_qdir' $as_dirs"
34116 as_dir=`$as_dirname -- "$as_dir" ||
34117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34118 X"$as_dir" : 'X\(//\)[^/]' \| \
34119 X"$as_dir" : 'X\(//\)$' \| \
34120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34121 $as_echo X"$as_dir" |
34122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34123 s//\1/
34126 /^X\(\/\/\)[^/].*/{
34127 s//\1/
34130 /^X\(\/\/\)$/{
34131 s//\1/
34134 /^X\(\/\).*/{
34135 s//\1/
34138 s/.*/./; q'`
34139 test -d "$as_dir" && break
34140 done
34141 test -z "$as_dirs" || eval "mkdir $as_dirs"
34142 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34145 } # as_fn_mkdir_p
34146 if mkdir -p . 2>/dev/null; then
34147 as_mkdir_p='mkdir -p "$as_dir"'
34148 else
34149 test -d ./-p && rmdir ./-p
34150 as_mkdir_p=false
34154 # as_fn_executable_p FILE
34155 # -----------------------
34156 # Test if FILE is an executable regular file.
34157 as_fn_executable_p ()
34159 test -f "$1" && test -x "$1"
34160 } # as_fn_executable_p
34161 as_test_x='test -x'
34162 as_executable_p=as_fn_executable_p
34164 # Sed expression to map a string onto a valid CPP name.
34165 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34167 # Sed expression to map a string onto a valid variable name.
34168 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34171 exec 6>&1
34172 ## ----------------------------------- ##
34173 ## Main body of $CONFIG_STATUS script. ##
34174 ## ----------------------------------- ##
34175 _ASEOF
34176 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34179 # Save the log message, to keep $0 and so on meaningful, and to
34180 # report actual input values of CONFIG_FILES etc. instead of their
34181 # values after options handling.
34182 ac_log="
34183 This file was extended by $as_me, which was
34184 generated by GNU Autoconf 2.69. Invocation command line was
34186 CONFIG_FILES = $CONFIG_FILES
34187 CONFIG_HEADERS = $CONFIG_HEADERS
34188 CONFIG_LINKS = $CONFIG_LINKS
34189 CONFIG_COMMANDS = $CONFIG_COMMANDS
34190 $ $0 $@
34192 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34195 _ACEOF
34197 case $ac_config_files in *"
34198 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34199 esac
34201 case $ac_config_headers in *"
34202 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34203 esac
34206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34207 # Files that config.status was made for.
34208 config_files="$ac_config_files"
34209 config_headers="$ac_config_headers"
34210 config_links="$ac_config_links"
34211 config_commands="$ac_config_commands"
34213 _ACEOF
34215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34216 ac_cs_usage="\
34217 \`$as_me' instantiates files and other configuration actions
34218 from templates according to the current configuration. Unless the files
34219 and actions are specified as TAGs, all are instantiated by default.
34221 Usage: $0 [OPTION]... [TAG]...
34223 -h, --help print this help, then exit
34224 -V, --version print version number and configuration settings, then exit
34225 --config print configuration, then exit
34226 -q, --quiet, --silent
34227 do not print progress messages
34228 -d, --debug don't remove temporary files
34229 --recheck update $as_me by reconfiguring in the same conditions
34230 --file=FILE[:TEMPLATE]
34231 instantiate the configuration file FILE
34232 --header=FILE[:TEMPLATE]
34233 instantiate the configuration header FILE
34235 Configuration files:
34236 $config_files
34238 Configuration headers:
34239 $config_headers
34241 Configuration links:
34242 $config_links
34244 Configuration commands:
34245 $config_commands
34247 Report bugs to the package provider."
34249 _ACEOF
34250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34251 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34252 ac_cs_version="\\
34253 config.status
34254 configured by $0, generated by GNU Autoconf 2.69,
34255 with options \\"\$ac_cs_config\\"
34257 Copyright (C) 2012 Free Software Foundation, Inc.
34258 This config.status script is free software; the Free Software Foundation
34259 gives unlimited permission to copy, distribute and modify it."
34261 ac_pwd='$ac_pwd'
34262 srcdir='$srcdir'
34263 INSTALL='$INSTALL'
34264 AWK='$AWK'
34265 test -n "\$AWK" || AWK=awk
34266 _ACEOF
34268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34269 # The default lists apply if the user does not specify any file.
34270 ac_need_defaults=:
34271 while test $# != 0
34273 case $1 in
34274 --*=?*)
34275 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34276 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34277 ac_shift=:
34279 --*=)
34280 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34281 ac_optarg=
34282 ac_shift=:
34285 ac_option=$1
34286 ac_optarg=$2
34287 ac_shift=shift
34289 esac
34291 case $ac_option in
34292 # Handling of the options.
34293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34294 ac_cs_recheck=: ;;
34295 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34296 $as_echo "$ac_cs_version"; exit ;;
34297 --config | --confi | --conf | --con | --co | --c )
34298 $as_echo "$ac_cs_config"; exit ;;
34299 --debug | --debu | --deb | --de | --d | -d )
34300 debug=: ;;
34301 --file | --fil | --fi | --f )
34302 $ac_shift
34303 case $ac_optarg in
34304 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34305 '') as_fn_error $? "missing file argument" ;;
34306 esac
34307 as_fn_append CONFIG_FILES " '$ac_optarg'"
34308 ac_need_defaults=false;;
34309 --header | --heade | --head | --hea )
34310 $ac_shift
34311 case $ac_optarg in
34312 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34313 esac
34314 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34315 ac_need_defaults=false;;
34316 --he | --h)
34317 # Conflict between --help and --header
34318 as_fn_error $? "ambiguous option: \`$1'
34319 Try \`$0 --help' for more information.";;
34320 --help | --hel | -h )
34321 $as_echo "$ac_cs_usage"; exit ;;
34322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34323 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34324 ac_cs_silent=: ;;
34326 # This is an error.
34327 -*) as_fn_error $? "unrecognized option: \`$1'
34328 Try \`$0 --help' for more information." ;;
34330 *) as_fn_append ac_config_targets " $1"
34331 ac_need_defaults=false ;;
34333 esac
34334 shift
34335 done
34337 ac_configure_extra_args=
34339 if $ac_cs_silent; then
34340 exec 6>/dev/null
34341 ac_configure_extra_args="$ac_configure_extra_args --silent"
34344 _ACEOF
34345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34346 if \$ac_cs_recheck; then
34347 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34348 shift
34349 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34350 CONFIG_SHELL='$SHELL'
34351 export CONFIG_SHELL
34352 exec "\$@"
34355 _ACEOF
34356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34357 exec 5>>config.log
34359 echo
34360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34361 ## Running $as_me. ##
34362 _ASBOX
34363 $as_echo "$ac_log"
34364 } >&5
34366 _ACEOF
34367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34369 # INIT-COMMANDS
34373 # The HP-UX ksh and POSIX shell print the target directory to stdout
34374 # if CDPATH is set.
34375 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34377 sed_quote_subst='$sed_quote_subst'
34378 double_quote_subst='$double_quote_subst'
34379 delay_variable_subst='$delay_variable_subst'
34380 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34381 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34382 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34383 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34384 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34385 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34386 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34387 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34388 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34389 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34390 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34391 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34392 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34393 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34394 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34395 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34396 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34397 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34398 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34399 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34400 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34401 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34402 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34403 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34404 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34405 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34406 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34407 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34408 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34409 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34410 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34411 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34412 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34413 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34414 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34415 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34416 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34417 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34418 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34419 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34420 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34421 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34422 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34423 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34424 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34425 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34426 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34427 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34428 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"`'
34429 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34430 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34431 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34432 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34433 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34434 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34435 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34436 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34437 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34438 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34439 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34440 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34441 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34442 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34443 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34444 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34445 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34446 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34447 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34448 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34449 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34450 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34451 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34452 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34453 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34454 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34455 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34456 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34457 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34458 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34459 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34460 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34461 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34462 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34463 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34464 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34465 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34466 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34467 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34468 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34469 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
34470 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34471 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34472 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34473 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34474 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34475 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34476 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34477 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34478 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34479 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34480 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34481 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34482 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34483 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34484 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34485 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34486 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34487 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34488 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34489 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34490 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34491 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34492 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34493 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34494 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34495 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34496 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34497 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34498 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34499 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34500 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34501 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34502 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34503 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34504 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34505 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34506 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34507 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34508 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34509 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34510 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34511 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34512 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
34513 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
34514 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
34515 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34516 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34517 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34518 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34519 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34520 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34521 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34522 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34523 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34524 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34525 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34526 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34527 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34528 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34529 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34530 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34531 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34532 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34533 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34534 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34535 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34536 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34537 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34538 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34539 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34540 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
34541 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
34542 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34543 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34544 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34545 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34546 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34547 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34548 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34549 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34550 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34551 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34552 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34553 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34554 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
34556 LTCC='$LTCC'
34557 LTCFLAGS='$LTCFLAGS'
34558 compiler='$compiler_DEFAULT'
34560 # A function that is used when there is no print builtin or printf.
34561 func_fallback_echo ()
34563 eval 'cat <<_LTECHO_EOF
34565 _LTECHO_EOF'
34568 # Quote evaled strings.
34569 for var in SHELL \
34570 ECHO \
34571 SED \
34572 GREP \
34573 EGREP \
34574 FGREP \
34575 LD \
34576 NM \
34577 LN_S \
34578 lt_SP2NL \
34579 lt_NL2SP \
34580 reload_flag \
34581 OBJDUMP \
34582 deplibs_check_method \
34583 file_magic_cmd \
34584 AR \
34585 AR_FLAGS \
34586 STRIP \
34587 RANLIB \
34588 CC \
34589 CFLAGS \
34590 compiler \
34591 lt_cv_sys_global_symbol_pipe \
34592 lt_cv_sys_global_symbol_to_cdecl \
34593 lt_cv_sys_global_symbol_to_c_name_address \
34594 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34595 lt_prog_compiler_no_builtin_flag \
34596 lt_prog_compiler_wl \
34597 lt_prog_compiler_pic \
34598 lt_prog_compiler_static \
34599 lt_cv_prog_compiler_c_o \
34600 need_locks \
34601 DSYMUTIL \
34602 NMEDIT \
34603 LIPO \
34604 OTOOL \
34605 OTOOL64 \
34606 shrext_cmds \
34607 export_dynamic_flag_spec \
34608 whole_archive_flag_spec \
34609 compiler_needs_object \
34610 with_gnu_ld \
34611 allow_undefined_flag \
34612 no_undefined_flag \
34613 hardcode_libdir_flag_spec \
34614 hardcode_libdir_flag_spec_ld \
34615 hardcode_libdir_separator \
34616 fix_srcfile_path \
34617 exclude_expsyms \
34618 include_expsyms \
34619 file_list_spec \
34620 variables_saved_for_relink \
34621 libname_spec \
34622 library_names_spec \
34623 soname_spec \
34624 install_override_mode \
34625 finish_eval \
34626 old_striplib \
34627 striplib \
34628 compiler_lib_search_dirs \
34629 predep_objects \
34630 postdep_objects \
34631 predeps \
34632 postdeps \
34633 compiler_lib_search_path \
34634 LD_CXX \
34635 reload_flag_CXX \
34636 compiler_CXX \
34637 lt_prog_compiler_no_builtin_flag_CXX \
34638 lt_prog_compiler_wl_CXX \
34639 lt_prog_compiler_pic_CXX \
34640 lt_prog_compiler_static_CXX \
34641 lt_cv_prog_compiler_c_o_CXX \
34642 export_dynamic_flag_spec_CXX \
34643 whole_archive_flag_spec_CXX \
34644 compiler_needs_object_CXX \
34645 with_gnu_ld_CXX \
34646 allow_undefined_flag_CXX \
34647 no_undefined_flag_CXX \
34648 hardcode_libdir_flag_spec_CXX \
34649 hardcode_libdir_flag_spec_ld_CXX \
34650 hardcode_libdir_separator_CXX \
34651 fix_srcfile_path_CXX \
34652 exclude_expsyms_CXX \
34653 include_expsyms_CXX \
34654 file_list_spec_CXX \
34655 compiler_lib_search_dirs_CXX \
34656 predep_objects_CXX \
34657 postdep_objects_CXX \
34658 predeps_CXX \
34659 postdeps_CXX \
34660 compiler_lib_search_path_CXX; do
34661 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34662 *[\\\\\\\`\\"\\\$]*)
34663 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34666 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34668 esac
34669 done
34671 # Double-quote double-evaled strings.
34672 for var in reload_cmds \
34673 old_postinstall_cmds \
34674 old_postuninstall_cmds \
34675 old_archive_cmds \
34676 extract_expsyms_cmds \
34677 old_archive_from_new_cmds \
34678 old_archive_from_expsyms_cmds \
34679 archive_cmds \
34680 archive_expsym_cmds \
34681 module_cmds \
34682 module_expsym_cmds \
34683 export_symbols_cmds \
34684 prelink_cmds \
34685 postinstall_cmds \
34686 postuninstall_cmds \
34687 finish_cmds \
34688 sys_lib_search_path_spec \
34689 sys_lib_dlsearch_path_spec \
34690 reload_cmds_CXX \
34691 old_archive_cmds_CXX \
34692 old_archive_from_new_cmds_CXX \
34693 old_archive_from_expsyms_cmds_CXX \
34694 archive_cmds_CXX \
34695 archive_expsym_cmds_CXX \
34696 module_cmds_CXX \
34697 module_expsym_cmds_CXX \
34698 export_symbols_cmds_CXX \
34699 prelink_cmds_CXX; do
34700 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34701 *[\\\\\\\`\\"\\\$]*)
34702 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34705 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34707 esac
34708 done
34710 ac_aux_dir='$ac_aux_dir'
34711 xsi_shell='$xsi_shell'
34712 lt_shell_append='$lt_shell_append'
34714 # See if we are running on zsh, and set the options which allow our
34715 # commands through without removal of \ escapes INIT.
34716 if test -n "\${ZSH_VERSION+set}" ; then
34717 setopt NO_GLOB_SUBST
34721 PACKAGE='$PACKAGE'
34722 VERSION='$VERSION'
34723 TIMESTAMP='$TIMESTAMP'
34724 RM='$RM'
34725 ofile='$ofile'
34729 ac_aux_dir='$ac_aux_dir'
34732 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
34733 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34734 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
34735 # from automake.
34736 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34737 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34738 LINGUAS="${LINGUAS-%UNSET%}"
34740 GDB_NM_FILE=$GDB_NM_FILE
34742 _ACEOF
34744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34746 # Handling of arguments.
34747 for ac_config_target in $ac_config_targets
34749 case $ac_config_target in
34750 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
34751 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34752 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
34753 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34754 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
34755 "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
34756 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
34757 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34758 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
34759 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
34760 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34761 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
34763 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34764 esac
34765 done
34768 # If the user did not use the arguments to specify the items to instantiate,
34769 # then the envvar interface is used. Set only those that are not.
34770 # We use the long form for the default assignment because of an extremely
34771 # bizarre bug on SunOS 4.1.3.
34772 if $ac_need_defaults; then
34773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34775 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
34776 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34779 # Have a temporary directory for convenience. Make it in the build tree
34780 # simply because there is no reason against having it here, and in addition,
34781 # creating and moving files from /tmp can sometimes cause problems.
34782 # Hook for its removal unless debugging.
34783 # Note that there is a small window in which the directory will not be cleaned:
34784 # after its creation but before its name has been assigned to `$tmp'.
34785 $debug ||
34787 tmp= ac_tmp=
34788 trap 'exit_status=$?
34789 : "${ac_tmp:=$tmp}"
34790 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34792 trap 'as_fn_exit 1' 1 2 13 15
34794 # Create a (secure) tmp directory for tmp files.
34797 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34798 test -d "$tmp"
34799 } ||
34801 tmp=./conf$$-$RANDOM
34802 (umask 077 && mkdir "$tmp")
34803 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34804 ac_tmp=$tmp
34806 # Set up the scripts for CONFIG_FILES section.
34807 # No need to generate them if there are no CONFIG_FILES.
34808 # This happens for instance with `./config.status config.h'.
34809 if test -n "$CONFIG_FILES"; then
34811 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
34812 ac_cs_awk_getline=:
34813 ac_cs_awk_pipe_init=
34814 ac_cs_awk_read_file='
34815 while ((getline aline < (F[key])) > 0)
34816 print(aline)
34817 close(F[key])'
34818 ac_cs_awk_pipe_fini=
34819 else
34820 ac_cs_awk_getline=false
34821 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
34822 ac_cs_awk_read_file='
34823 print "|#_!!_#|"
34824 print "cat " F[key] " &&"
34825 '$ac_cs_awk_pipe_init
34826 # The final `:' finishes the AND list.
34827 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
34829 ac_cr=`echo X | tr X '\015'`
34830 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34831 # But we know of no other shell where ac_cr would be empty at this
34832 # point, so we can use a bashism as a fallback.
34833 if test "x$ac_cr" = x; then
34834 eval ac_cr=\$\'\\r\'
34836 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34837 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34838 ac_cs_awk_cr='\\r'
34839 else
34840 ac_cs_awk_cr=$ac_cr
34843 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34844 _ACEOF
34846 # Create commands to substitute file output variables.
34848 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
34849 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
34850 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
34851 echo "_ACAWK" &&
34852 echo "_ACEOF"
34853 } >conf$$files.sh &&
34854 . ./conf$$files.sh ||
34855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34856 rm -f conf$$files.sh
34859 echo "cat >conf$$subs.awk <<_ACEOF" &&
34860 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34861 echo "_ACEOF"
34862 } >conf$$subs.sh ||
34863 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34864 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34865 ac_delim='%!_!# '
34866 for ac_last_try in false false false false false :; do
34867 . ./conf$$subs.sh ||
34868 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34870 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34871 if test $ac_delim_n = $ac_delim_num; then
34872 break
34873 elif $ac_last_try; then
34874 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34875 else
34876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34878 done
34879 rm -f conf$$subs.sh
34881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34882 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34883 _ACEOF
34884 sed -n '
34886 s/^/S["/; s/!.*/"]=/
34889 s/^[^!]*!//
34890 :repl
34891 t repl
34892 s/'"$ac_delim"'$//
34893 t delim
34896 s/\(.\{148\}\)..*/\1/
34897 t more1
34898 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34901 b repl
34902 :more1
34903 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34906 s/.\{148\}//
34907 t nl
34908 :delim
34910 s/\(.\{148\}\)..*/\1/
34911 t more2
34912 s/["\\]/\\&/g; s/^/"/; s/$/"/
34915 :more2
34916 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34919 s/.\{148\}//
34920 t delim
34921 ' <conf$$subs.awk | sed '
34922 /^[^""]/{
34924 s/\n//
34926 ' >>$CONFIG_STATUS || ac_write_fail=1
34927 rm -f conf$$subs.awk
34928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34929 _ACAWK
34930 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34931 for (key in S) S_is_set[key] = 1
34932 FS = "\a"
34933 \$ac_cs_awk_pipe_init
34936 line = $ 0
34937 nfields = split(line, field, "@")
34938 substed = 0
34939 len = length(field[1])
34940 for (i = 2; i < nfields; i++) {
34941 key = field[i]
34942 keylen = length(key)
34943 if (S_is_set[key]) {
34944 value = S[key]
34945 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34946 len += length(value) + length(field[++i])
34947 substed = 1
34948 } else
34949 len += 1 + keylen
34951 if (nfields == 3 && !substed) {
34952 key = field[2]
34953 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
34954 \$ac_cs_awk_read_file
34955 next
34958 print line
34960 \$ac_cs_awk_pipe_fini
34961 _ACAWK
34962 _ACEOF
34963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34964 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34965 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34966 else
34968 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34969 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34970 _ACEOF
34972 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34973 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34974 # trailing colons and then remove the whole line if VPATH becomes empty
34975 # (actually we leave an empty line to preserve line numbers).
34976 if test "x$srcdir" = x.; then
34977 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34979 s///
34980 s/^/:/
34981 s/[ ]*$/:/
34982 s/:\$(srcdir):/:/g
34983 s/:\${srcdir}:/:/g
34984 s/:@srcdir@:/:/g
34985 s/^:*//
34986 s/:*$//
34988 s/\(=[ ]*\).*/\1/
34990 s/\n//
34991 s/^[^=]*=[ ]*$//
34995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34996 fi # test -n "$CONFIG_FILES"
34998 # Set up the scripts for CONFIG_HEADERS section.
34999 # No need to generate them if there are no CONFIG_HEADERS.
35000 # This happens for instance with `./config.status Makefile'.
35001 if test -n "$CONFIG_HEADERS"; then
35002 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35003 BEGIN {
35004 _ACEOF
35006 # Transform confdefs.h into an awk script `defines.awk', embedded as
35007 # here-document in config.status, that substitutes the proper values into
35008 # config.h.in to produce config.h.
35010 # Create a delimiter string that does not exist in confdefs.h, to ease
35011 # handling of long lines.
35012 ac_delim='%!_!# '
35013 for ac_last_try in false false :; do
35014 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35015 if test -z "$ac_tt"; then
35016 break
35017 elif $ac_last_try; then
35018 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35019 else
35020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35022 done
35024 # For the awk script, D is an array of macro values keyed by name,
35025 # likewise P contains macro parameters if any. Preserve backslash
35026 # newline sequences.
35028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35029 sed -n '
35030 s/.\{148\}/&'"$ac_delim"'/g
35031 t rset
35032 :rset
35033 s/^[ ]*#[ ]*define[ ][ ]*/ /
35034 t def
35036 :def
35037 s/\\$//
35038 t bsnl
35039 s/["\\]/\\&/g
35040 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35041 D["\1"]=" \3"/p
35042 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35044 :bsnl
35045 s/["\\]/\\&/g
35046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35047 D["\1"]=" \3\\\\\\n"\\/p
35048 t cont
35049 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35050 t cont
35052 :cont
35054 s/.\{148\}/&'"$ac_delim"'/g
35055 t clear
35056 :clear
35057 s/\\$//
35058 t bsnlc
35059 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35061 :bsnlc
35062 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35063 b cont
35064 ' <confdefs.h | sed '
35065 s/'"$ac_delim"'/"\\\
35066 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35069 for (key in D) D_is_set[key] = 1
35070 FS = "\a"
35072 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35073 line = \$ 0
35074 split(line, arg, " ")
35075 if (arg[1] == "#") {
35076 defundef = arg[2]
35077 mac1 = arg[3]
35078 } else {
35079 defundef = substr(arg[1], 2)
35080 mac1 = arg[2]
35082 split(mac1, mac2, "(") #)
35083 macro = mac2[1]
35084 prefix = substr(line, 1, index(line, defundef) - 1)
35085 if (D_is_set[macro]) {
35086 # Preserve the white space surrounding the "#".
35087 print prefix "define", macro P[macro] D[macro]
35088 next
35089 } else {
35090 # Replace #undef with comments. This is necessary, for example,
35091 # in the case of _POSIX_SOURCE, which is predefined and required
35092 # on some systems where configure will not decide to define it.
35093 if (defundef == "undef") {
35094 print "/*", prefix defundef, macro, "*/"
35095 next
35099 { print }
35100 _ACAWK
35101 _ACEOF
35102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35103 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35104 fi # test -n "$CONFIG_HEADERS"
35107 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35108 shift
35109 for ac_tag
35111 case $ac_tag in
35112 :[FHLC]) ac_mode=$ac_tag; continue;;
35113 esac
35114 case $ac_mode$ac_tag in
35115 :[FHL]*:*);;
35116 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35117 :[FH]-) ac_tag=-:-;;
35118 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35119 esac
35120 ac_save_IFS=$IFS
35121 IFS=:
35122 set x $ac_tag
35123 IFS=$ac_save_IFS
35124 shift
35125 ac_file=$1
35126 shift
35128 case $ac_mode in
35129 :L) ac_source=$1;;
35130 :[FH])
35131 ac_file_inputs=
35132 for ac_f
35134 case $ac_f in
35135 -) ac_f="$ac_tmp/stdin";;
35136 *) # Look for the file first in the build tree, then in the source tree
35137 # (if the path is not absolute). The absolute path cannot be DOS-style,
35138 # because $ac_f cannot contain `:'.
35139 test -f "$ac_f" ||
35140 case $ac_f in
35141 [\\/$]*) false;;
35142 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35143 esac ||
35144 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35145 esac
35146 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35147 as_fn_append ac_file_inputs " '$ac_f'"
35148 done
35150 # Let's still pretend it is `configure' which instantiates (i.e., don't
35151 # use $as_me), people would be surprised to read:
35152 # /* config.h. Generated by config.status. */
35153 configure_input='Generated from '`
35154 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35155 `' by configure.'
35156 if test x"$ac_file" != x-; then
35157 configure_input="$ac_file. $configure_input"
35158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35159 $as_echo "$as_me: creating $ac_file" >&6;}
35161 # Neutralize special characters interpreted by sed in replacement strings.
35162 case $configure_input in #(
35163 *\&* | *\|* | *\\* )
35164 ac_sed_conf_input=`$as_echo "$configure_input" |
35165 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35166 *) ac_sed_conf_input=$configure_input;;
35167 esac
35169 case $ac_tag in
35170 *:-:* | *:-) cat >"$ac_tmp/stdin" \
35171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35172 esac
35174 esac
35176 ac_dir=`$as_dirname -- "$ac_file" ||
35177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35178 X"$ac_file" : 'X\(//\)[^/]' \| \
35179 X"$ac_file" : 'X\(//\)$' \| \
35180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35181 $as_echo X"$ac_file" |
35182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35183 s//\1/
35186 /^X\(\/\/\)[^/].*/{
35187 s//\1/
35190 /^X\(\/\/\)$/{
35191 s//\1/
35194 /^X\(\/\).*/{
35195 s//\1/
35198 s/.*/./; q'`
35199 as_dir="$ac_dir"; as_fn_mkdir_p
35200 ac_builddir=.
35202 case "$ac_dir" in
35203 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35205 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35206 # A ".." for each directory in $ac_dir_suffix.
35207 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35208 case $ac_top_builddir_sub in
35209 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35210 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35211 esac ;;
35212 esac
35213 ac_abs_top_builddir=$ac_pwd
35214 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35215 # for backward compatibility:
35216 ac_top_builddir=$ac_top_build_prefix
35218 case $srcdir in
35219 .) # We are building in place.
35220 ac_srcdir=.
35221 ac_top_srcdir=$ac_top_builddir_sub
35222 ac_abs_top_srcdir=$ac_pwd ;;
35223 [\\/]* | ?:[\\/]* ) # Absolute name.
35224 ac_srcdir=$srcdir$ac_dir_suffix;
35225 ac_top_srcdir=$srcdir
35226 ac_abs_top_srcdir=$srcdir ;;
35227 *) # Relative name.
35228 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35229 ac_top_srcdir=$ac_top_build_prefix$srcdir
35230 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35231 esac
35232 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35235 case $ac_mode in
35238 # CONFIG_FILE
35241 case $INSTALL in
35242 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35243 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35244 esac
35245 _ACEOF
35247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35248 # If the template does not know about datarootdir, expand it.
35249 # FIXME: This hack should be removed a few years after 2.60.
35250 ac_datarootdir_hack=; ac_datarootdir_seen=
35251 ac_sed_dataroot='
35252 /datarootdir/ {
35256 /@datadir@/p
35257 /@docdir@/p
35258 /@infodir@/p
35259 /@localedir@/p
35260 /@mandir@/p'
35261 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35262 *datarootdir*) ac_datarootdir_seen=yes;;
35263 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35265 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35266 _ACEOF
35267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35268 ac_datarootdir_hack='
35269 s&@datadir@&$datadir&g
35270 s&@docdir@&$docdir&g
35271 s&@infodir@&$infodir&g
35272 s&@localedir@&$localedir&g
35273 s&@mandir@&$mandir&g
35274 s&\\\${datarootdir}&$datarootdir&g' ;;
35275 esac
35276 _ACEOF
35278 # Neutralize VPATH when `$srcdir' = `.'.
35279 # Shell code in configure.ac might set extrasub.
35280 # FIXME: do we really want to maintain this feature?
35281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35282 ac_sed_extra="$ac_vpsub
35283 $extrasub
35284 _ACEOF
35285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35288 s|@configure_input@|$ac_sed_conf_input|;t t
35289 s&@top_builddir@&$ac_top_builddir_sub&;t t
35290 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35291 s&@srcdir@&$ac_srcdir&;t t
35292 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35293 s&@top_srcdir@&$ac_top_srcdir&;t t
35294 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35295 s&@builddir@&$ac_builddir&;t t
35296 s&@abs_builddir@&$ac_abs_builddir&;t t
35297 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35298 s&@INSTALL@&$ac_INSTALL&;t t
35299 $ac_datarootdir_hack
35301 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
35302 if $ac_cs_awk_getline; then
35303 $AWK -f "$ac_tmp/subs.awk"
35304 else
35305 $AWK -f "$ac_tmp/subs.awk" | $SHELL
35306 fi \
35307 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35309 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35310 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35311 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35312 "$ac_tmp/out"`; test -z "$ac_out"; } &&
35313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35314 which seems to be undefined. Please make sure it is defined" >&5
35315 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35316 which seems to be undefined. Please make sure it is defined" >&2;}
35318 rm -f "$ac_tmp/stdin"
35319 case $ac_file in
35320 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35321 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35322 esac \
35323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35327 # CONFIG_HEADER
35329 if test x"$ac_file" != x-; then
35331 $as_echo "/* $configure_input */" \
35332 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35333 } >"$ac_tmp/config.h" \
35334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35335 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35336 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35337 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35338 else
35339 rm -f "$ac_file"
35340 mv "$ac_tmp/config.h" "$ac_file" \
35341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35343 else
35344 $as_echo "/* $configure_input */" \
35345 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35346 || as_fn_error $? "could not create -" "$LINENO" 5
35351 # CONFIG_LINK
35354 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
35356 else
35357 # Prefer the file from the source tree if names are identical.
35358 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
35359 ac_source=$srcdir/$ac_source
35362 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
35363 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
35365 if test ! -r "$ac_source"; then
35366 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
35368 rm -f "$ac_file"
35370 # Try a relative symlink, then a hard link, then a copy.
35371 case $ac_source in
35372 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
35373 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
35374 esac
35375 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
35376 ln "$ac_source" "$ac_file" 2>/dev/null ||
35377 cp -p "$ac_source" "$ac_file" ||
35378 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
35381 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35382 $as_echo "$as_me: executing $ac_file commands" >&6;}
35384 esac
35387 case $ac_file$ac_mode in
35388 "config.h":H) echo > stamp-h ;;
35389 "libtool":C)
35391 # See if we are running on zsh, and set the options which allow our
35392 # commands through without removal of \ escapes.
35393 if test -n "${ZSH_VERSION+set}" ; then
35394 setopt NO_GLOB_SUBST
35397 cfgfile="${ofile}T"
35398 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35399 $RM "$cfgfile"
35401 cat <<_LT_EOF >> "$cfgfile"
35402 #! $SHELL
35404 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35405 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35407 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35409 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35410 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
35411 # Written by Gordon Matzigkeit, 1996
35413 # This file is part of GNU Libtool.
35415 # GNU Libtool is free software; you can redistribute it and/or
35416 # modify it under the terms of the GNU General Public License as
35417 # published by the Free Software Foundation; either version 2 of
35418 # the License, or (at your option) any later version.
35420 # As a special exception to the GNU General Public License,
35421 # if you distribute this file as part of a program or library that
35422 # is built using GNU Libtool, you may include this file under the
35423 # same distribution terms that you use for the rest of that program.
35425 # GNU Libtool is distributed in the hope that it will be useful,
35426 # but WITHOUT ANY WARRANTY; without even the implied warranty of
35427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35428 # GNU General Public License for more details.
35430 # You should have received a copy of the GNU General Public License
35431 # along with GNU Libtool; see the file COPYING. If not, a copy
35432 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35433 # obtained by writing to the Free Software Foundation, Inc.,
35434 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35437 # The names of the tagged configurations supported by this script.
35438 available_tags="CXX "
35440 # ### BEGIN LIBTOOL CONFIG
35442 # Which release of libtool.m4 was used?
35443 macro_version=$macro_version
35444 macro_revision=$macro_revision
35446 # Whether or not to build shared libraries.
35447 build_libtool_libs=$enable_shared
35449 # Whether or not to build static libraries.
35450 build_old_libs=$enable_static
35452 # What type of objects to build.
35453 pic_mode=$pic_mode
35455 # Whether or not to optimize for fast installation.
35456 fast_install=$enable_fast_install
35458 # Shell to use when invoking shell scripts.
35459 SHELL=$lt_SHELL
35461 # An echo program that protects backslashes.
35462 ECHO=$lt_ECHO
35464 # The host system.
35465 host_alias=$host_alias
35466 host=$host
35467 host_os=$host_os
35469 # The build system.
35470 build_alias=$build_alias
35471 build=$build
35472 build_os=$build_os
35474 # A sed program that does not truncate output.
35475 SED=$lt_SED
35477 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35478 Xsed="\$SED -e 1s/^X//"
35480 # A grep program that handles long lines.
35481 GREP=$lt_GREP
35483 # An ERE matcher.
35484 EGREP=$lt_EGREP
35486 # A literal string matcher.
35487 FGREP=$lt_FGREP
35489 # A BSD- or MS-compatible name lister.
35490 NM=$lt_NM
35492 # Whether we need soft or hard links.
35493 LN_S=$lt_LN_S
35495 # What is the maximum length of a command?
35496 max_cmd_len=$max_cmd_len
35498 # Object file suffix (normally "o").
35499 objext=$ac_objext
35501 # Executable file suffix (normally "").
35502 exeext=$exeext
35504 # whether the shell understands "unset".
35505 lt_unset=$lt_unset
35507 # turn spaces into newlines.
35508 SP2NL=$lt_lt_SP2NL
35510 # turn newlines into spaces.
35511 NL2SP=$lt_lt_NL2SP
35513 # An object symbol dumper.
35514 OBJDUMP=$lt_OBJDUMP
35516 # Method to check whether dependent libraries are shared objects.
35517 deplibs_check_method=$lt_deplibs_check_method
35519 # Command to use when deplibs_check_method == "file_magic".
35520 file_magic_cmd=$lt_file_magic_cmd
35522 # The archiver.
35523 AR=$lt_AR
35524 AR_FLAGS=$lt_AR_FLAGS
35526 # A symbol stripping program.
35527 STRIP=$lt_STRIP
35529 # Commands used to install an old-style archive.
35530 RANLIB=$lt_RANLIB
35531 old_postinstall_cmds=$lt_old_postinstall_cmds
35532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35534 # Whether to use a lock for old archive extraction.
35535 lock_old_archive_extraction=$lock_old_archive_extraction
35537 # A C compiler.
35538 LTCC=$lt_CC
35540 # LTCC compiler flags.
35541 LTCFLAGS=$lt_CFLAGS
35543 # Take the output of nm and produce a listing of raw symbols and C names.
35544 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35546 # Transform the output of nm in a proper C declaration.
35547 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35549 # Transform the output of nm in a C name address pair.
35550 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35552 # Transform the output of nm in a C name address pair when lib prefix is needed.
35553 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35555 # The name of the directory that contains temporary libtool files.
35556 objdir=$objdir
35558 # Used to examine libraries when file_magic_cmd begins with "file".
35559 MAGIC_CMD=$MAGIC_CMD
35561 # Must we lock files when doing compilation?
35562 need_locks=$lt_need_locks
35564 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35565 DSYMUTIL=$lt_DSYMUTIL
35567 # Tool to change global to local symbols on Mac OS X.
35568 NMEDIT=$lt_NMEDIT
35570 # Tool to manipulate fat objects and archives on Mac OS X.
35571 LIPO=$lt_LIPO
35573 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35574 OTOOL=$lt_OTOOL
35576 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35577 OTOOL64=$lt_OTOOL64
35579 # Old archive suffix (normally "a").
35580 libext=$libext
35582 # Shared library suffix (normally ".so").
35583 shrext_cmds=$lt_shrext_cmds
35585 # The commands to extract the exported symbol list from a shared archive.
35586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35588 # Variables whose values should be saved in libtool wrapper scripts and
35589 # restored at link time.
35590 variables_saved_for_relink=$lt_variables_saved_for_relink
35592 # Do we need the "lib" prefix for modules?
35593 need_lib_prefix=$need_lib_prefix
35595 # Do we need a version for libraries?
35596 need_version=$need_version
35598 # Library versioning type.
35599 version_type=$version_type
35601 # Shared library runtime path variable.
35602 runpath_var=$runpath_var
35604 # Shared library path variable.
35605 shlibpath_var=$shlibpath_var
35607 # Is shlibpath searched before the hard-coded library search path?
35608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35610 # Format of library name prefix.
35611 libname_spec=$lt_libname_spec
35613 # List of archive names. First name is the real one, the rest are links.
35614 # The last name is the one that the linker finds with -lNAME
35615 library_names_spec=$lt_library_names_spec
35617 # The coded name of the library, if different from the real name.
35618 soname_spec=$lt_soname_spec
35620 # Permission mode override for installation of shared libraries.
35621 install_override_mode=$lt_install_override_mode
35623 # Command to use after installation of a shared archive.
35624 postinstall_cmds=$lt_postinstall_cmds
35626 # Command to use after uninstallation of a shared archive.
35627 postuninstall_cmds=$lt_postuninstall_cmds
35629 # Commands used to finish a libtool library installation in a directory.
35630 finish_cmds=$lt_finish_cmds
35632 # As "finish_cmds", except a single script fragment to be evaled but
35633 # not shown.
35634 finish_eval=$lt_finish_eval
35636 # Whether we should hardcode library paths into libraries.
35637 hardcode_into_libs=$hardcode_into_libs
35639 # Compile-time system search path for libraries.
35640 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35642 # Run-time system search path for libraries.
35643 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35645 # Whether dlopen is supported.
35646 dlopen_support=$enable_dlopen
35648 # Whether dlopen of programs is supported.
35649 dlopen_self=$enable_dlopen_self
35651 # Whether dlopen of statically linked programs is supported.
35652 dlopen_self_static=$enable_dlopen_self_static
35654 # Commands to strip libraries.
35655 old_striplib=$lt_old_striplib
35656 striplib=$lt_striplib
35659 # The linker used to build libraries.
35660 LD=$lt_LD
35662 # How to create reloadable object files.
35663 reload_flag=$lt_reload_flag
35664 reload_cmds=$lt_reload_cmds
35666 # Commands used to build an old-style archive.
35667 old_archive_cmds=$lt_old_archive_cmds
35669 # A language specific compiler.
35670 CC=$lt_compiler
35672 # Is the compiler the GNU compiler?
35673 with_gcc=$GCC
35675 # Compiler flag to turn off builtin functions.
35676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35678 # How to pass a linker flag through the compiler.
35679 wl=$lt_lt_prog_compiler_wl
35681 # Additional compiler flags for building library objects.
35682 pic_flag=$lt_lt_prog_compiler_pic
35684 # Compiler flag to prevent dynamic linking.
35685 link_static_flag=$lt_lt_prog_compiler_static
35687 # Does compiler simultaneously support -c and -o options?
35688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35690 # Whether or not to add -lc for building shared libraries.
35691 build_libtool_need_lc=$archive_cmds_need_lc
35693 # Whether or not to disallow shared libs when runtime libs are static.
35694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35696 # Compiler flag to allow reflexive dlopens.
35697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35699 # Compiler flag to generate shared objects directly from archives.
35700 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35702 # Whether the compiler copes with passing no objects directly.
35703 compiler_needs_object=$lt_compiler_needs_object
35705 # Create an old-style archive from a shared archive.
35706 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35708 # Create a temporary old-style archive to link instead of a shared archive.
35709 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35711 # Commands used to build a shared archive.
35712 archive_cmds=$lt_archive_cmds
35713 archive_expsym_cmds=$lt_archive_expsym_cmds
35715 # Commands used to build a loadable module if different from building
35716 # a shared archive.
35717 module_cmds=$lt_module_cmds
35718 module_expsym_cmds=$lt_module_expsym_cmds
35720 # Whether we are building with GNU ld or not.
35721 with_gnu_ld=$lt_with_gnu_ld
35723 # Flag that allows shared libraries with undefined symbols to be built.
35724 allow_undefined_flag=$lt_allow_undefined_flag
35726 # Flag that enforces no undefined symbols.
35727 no_undefined_flag=$lt_no_undefined_flag
35729 # Flag to hardcode \$libdir into a binary during linking.
35730 # This must work even if \$libdir does not exist
35731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35733 # If ld is used when linking, flag to hardcode \$libdir into a binary
35734 # during linking. This must work even if \$libdir does not exist.
35735 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35737 # Whether we need a single "-rpath" flag with a separated argument.
35738 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35741 # DIR into the resulting binary.
35742 hardcode_direct=$hardcode_direct
35744 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35745 # DIR into the resulting binary and the resulting library dependency is
35746 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35747 # library is relocated.
35748 hardcode_direct_absolute=$hardcode_direct_absolute
35750 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35751 # into the resulting binary.
35752 hardcode_minus_L=$hardcode_minus_L
35754 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35755 # into the resulting binary.
35756 hardcode_shlibpath_var=$hardcode_shlibpath_var
35758 # Set to "yes" if building a shared library automatically hardcodes DIR
35759 # into the library and all subsequent libraries and executables linked
35760 # against it.
35761 hardcode_automatic=$hardcode_automatic
35763 # Set to yes if linker adds runtime paths of dependent libraries
35764 # to runtime path list.
35765 inherit_rpath=$inherit_rpath
35767 # Whether libtool must link a program against all its dependency libraries.
35768 link_all_deplibs=$link_all_deplibs
35770 # Fix the shell variable \$srcfile for the compiler.
35771 fix_srcfile_path=$lt_fix_srcfile_path
35773 # Set to "yes" if exported symbols are required.
35774 always_export_symbols=$always_export_symbols
35776 # The commands to list exported symbols.
35777 export_symbols_cmds=$lt_export_symbols_cmds
35779 # Symbols that should not be listed in the preloaded symbols.
35780 exclude_expsyms=$lt_exclude_expsyms
35782 # Symbols that must always be exported.
35783 include_expsyms=$lt_include_expsyms
35785 # Commands necessary for linking programs (against libraries) with templates.
35786 prelink_cmds=$lt_prelink_cmds
35788 # Specify filename containing input files.
35789 file_list_spec=$lt_file_list_spec
35791 # How to hardcode a shared library path into an executable.
35792 hardcode_action=$hardcode_action
35794 # The directories searched by this compiler when creating a shared library.
35795 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35797 # Dependencies to place before and after the objects being linked to
35798 # create a shared library.
35799 predep_objects=$lt_predep_objects
35800 postdep_objects=$lt_postdep_objects
35801 predeps=$lt_predeps
35802 postdeps=$lt_postdeps
35804 # The library search path used internally by the compiler when linking
35805 # a shared library.
35806 compiler_lib_search_path=$lt_compiler_lib_search_path
35808 # ### END LIBTOOL CONFIG
35810 _LT_EOF
35812 case $host_os in
35813 aix3*)
35814 cat <<\_LT_EOF >> "$cfgfile"
35815 # AIX sometimes has problems with the GCC collect2 program. For some
35816 # reason, if we set the COLLECT_NAMES environment variable, the problems
35817 # vanish in a puff of smoke.
35818 if test "X${COLLECT_NAMES+set}" != Xset; then
35819 COLLECT_NAMES=
35820 export COLLECT_NAMES
35822 _LT_EOF
35824 esac
35827 ltmain="$ac_aux_dir/ltmain.sh"
35830 # We use sed instead of cat because bash on DJGPP gets confused if
35831 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35832 # text mode, it properly converts lines to CR/LF. This bash problem
35833 # is reportedly fixed, but why not run on old versions too?
35834 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35835 || (rm -f "$cfgfile"; exit 1)
35837 case $xsi_shell in
35838 yes)
35839 cat << \_LT_EOF >> "$cfgfile"
35841 # func_dirname file append nondir_replacement
35842 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35843 # otherwise set result to NONDIR_REPLACEMENT.
35844 func_dirname ()
35846 case ${1} in
35847 */*) func_dirname_result="${1%/*}${2}" ;;
35848 * ) func_dirname_result="${3}" ;;
35849 esac
35852 # func_basename file
35853 func_basename ()
35855 func_basename_result="${1##*/}"
35858 # func_dirname_and_basename file append nondir_replacement
35859 # perform func_basename and func_dirname in a single function
35860 # call:
35861 # dirname: Compute the dirname of FILE. If nonempty,
35862 # add APPEND to the result, otherwise set result
35863 # to NONDIR_REPLACEMENT.
35864 # value returned in "$func_dirname_result"
35865 # basename: Compute filename of FILE.
35866 # value retuned in "$func_basename_result"
35867 # Implementation must be kept synchronized with func_dirname
35868 # and func_basename. For efficiency, we do not delegate to
35869 # those functions but instead duplicate the functionality here.
35870 func_dirname_and_basename ()
35872 case ${1} in
35873 */*) func_dirname_result="${1%/*}${2}" ;;
35874 * ) func_dirname_result="${3}" ;;
35875 esac
35876 func_basename_result="${1##*/}"
35879 # func_stripname prefix suffix name
35880 # strip PREFIX and SUFFIX off of NAME.
35881 # PREFIX and SUFFIX must not contain globbing or regex special
35882 # characters, hashes, percent signs, but SUFFIX may contain a leading
35883 # dot (in which case that matches only a dot).
35884 func_stripname ()
35886 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35887 # positional parameters, so assign one to ordinary parameter first.
35888 func_stripname_result=${3}
35889 func_stripname_result=${func_stripname_result#"${1}"}
35890 func_stripname_result=${func_stripname_result%"${2}"}
35893 # func_opt_split
35894 func_opt_split ()
35896 func_opt_split_opt=${1%%=*}
35897 func_opt_split_arg=${1#*=}
35900 # func_lo2o object
35901 func_lo2o ()
35903 case ${1} in
35904 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35905 *) func_lo2o_result=${1} ;;
35906 esac
35909 # func_xform libobj-or-source
35910 func_xform ()
35912 func_xform_result=${1%.*}.lo
35915 # func_arith arithmetic-term...
35916 func_arith ()
35918 func_arith_result=$(( $* ))
35921 # func_len string
35922 # STRING may not start with a hyphen.
35923 func_len ()
35925 func_len_result=${#1}
35928 _LT_EOF
35930 *) # Bourne compatible functions.
35931 cat << \_LT_EOF >> "$cfgfile"
35933 # func_dirname file append nondir_replacement
35934 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35935 # otherwise set result to NONDIR_REPLACEMENT.
35936 func_dirname ()
35938 # Extract subdirectory from the argument.
35939 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
35940 if test "X$func_dirname_result" = "X${1}"; then
35941 func_dirname_result="${3}"
35942 else
35943 func_dirname_result="$func_dirname_result${2}"
35947 # func_basename file
35948 func_basename ()
35950 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
35954 # func_stripname prefix suffix name
35955 # strip PREFIX and SUFFIX off of NAME.
35956 # PREFIX and SUFFIX must not contain globbing or regex special
35957 # characters, hashes, percent signs, but SUFFIX may contain a leading
35958 # dot (in which case that matches only a dot).
35959 # func_strip_suffix prefix name
35960 func_stripname ()
35962 case ${2} in
35963 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35964 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
35965 esac
35968 # sed scripts:
35969 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35970 my_sed_long_arg='1s/^-[^=]*=//'
35972 # func_opt_split
35973 func_opt_split ()
35975 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35976 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
35979 # func_lo2o object
35980 func_lo2o ()
35982 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
35985 # func_xform libobj-or-source
35986 func_xform ()
35988 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
35991 # func_arith arithmetic-term...
35992 func_arith ()
35994 func_arith_result=`expr "$@"`
35997 # func_len string
35998 # STRING may not start with a hyphen.
35999 func_len ()
36001 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
36004 _LT_EOF
36005 esac
36007 case $lt_shell_append in
36008 yes)
36009 cat << \_LT_EOF >> "$cfgfile"
36011 # func_append var value
36012 # Append VALUE to the end of shell variable VAR.
36013 func_append ()
36015 eval "$1+=\$2"
36017 _LT_EOF
36020 cat << \_LT_EOF >> "$cfgfile"
36022 # func_append var value
36023 # Append VALUE to the end of shell variable VAR.
36024 func_append ()
36026 eval "$1=\$$1\$2"
36029 _LT_EOF
36031 esac
36034 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
36035 || (rm -f "$cfgfile"; exit 1)
36037 mv -f "$cfgfile" "$ofile" ||
36038 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36039 chmod +x "$ofile"
36042 cat <<_LT_EOF >> "$ofile"
36044 # ### BEGIN LIBTOOL TAG CONFIG: CXX
36046 # The linker used to build libraries.
36047 LD=$lt_LD_CXX
36049 # How to create reloadable object files.
36050 reload_flag=$lt_reload_flag_CXX
36051 reload_cmds=$lt_reload_cmds_CXX
36053 # Commands used to build an old-style archive.
36054 old_archive_cmds=$lt_old_archive_cmds_CXX
36056 # A language specific compiler.
36057 CC=$lt_compiler_CXX
36059 # Is the compiler the GNU compiler?
36060 with_gcc=$GCC_CXX
36062 # Compiler flag to turn off builtin functions.
36063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36065 # How to pass a linker flag through the compiler.
36066 wl=$lt_lt_prog_compiler_wl_CXX
36068 # Additional compiler flags for building library objects.
36069 pic_flag=$lt_lt_prog_compiler_pic_CXX
36071 # Compiler flag to prevent dynamic linking.
36072 link_static_flag=$lt_lt_prog_compiler_static_CXX
36074 # Does compiler simultaneously support -c and -o options?
36075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36077 # Whether or not to add -lc for building shared libraries.
36078 build_libtool_need_lc=$archive_cmds_need_lc_CXX
36080 # Whether or not to disallow shared libs when runtime libs are static.
36081 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36083 # Compiler flag to allow reflexive dlopens.
36084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36086 # Compiler flag to generate shared objects directly from archives.
36087 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36089 # Whether the compiler copes with passing no objects directly.
36090 compiler_needs_object=$lt_compiler_needs_object_CXX
36092 # Create an old-style archive from a shared archive.
36093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36095 # Create a temporary old-style archive to link instead of a shared archive.
36096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36098 # Commands used to build a shared archive.
36099 archive_cmds=$lt_archive_cmds_CXX
36100 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36102 # Commands used to build a loadable module if different from building
36103 # a shared archive.
36104 module_cmds=$lt_module_cmds_CXX
36105 module_expsym_cmds=$lt_module_expsym_cmds_CXX
36107 # Whether we are building with GNU ld or not.
36108 with_gnu_ld=$lt_with_gnu_ld_CXX
36110 # Flag that allows shared libraries with undefined symbols to be built.
36111 allow_undefined_flag=$lt_allow_undefined_flag_CXX
36113 # Flag that enforces no undefined symbols.
36114 no_undefined_flag=$lt_no_undefined_flag_CXX
36116 # Flag to hardcode \$libdir into a binary during linking.
36117 # This must work even if \$libdir does not exist
36118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36120 # If ld is used when linking, flag to hardcode \$libdir into a binary
36121 # during linking. This must work even if \$libdir does not exist.
36122 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36124 # Whether we need a single "-rpath" flag with a separated argument.
36125 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36127 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36128 # DIR into the resulting binary.
36129 hardcode_direct=$hardcode_direct_CXX
36131 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36132 # DIR into the resulting binary and the resulting library dependency is
36133 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36134 # library is relocated.
36135 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36137 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36138 # into the resulting binary.
36139 hardcode_minus_L=$hardcode_minus_L_CXX
36141 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36142 # into the resulting binary.
36143 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36145 # Set to "yes" if building a shared library automatically hardcodes DIR
36146 # into the library and all subsequent libraries and executables linked
36147 # against it.
36148 hardcode_automatic=$hardcode_automatic_CXX
36150 # Set to yes if linker adds runtime paths of dependent libraries
36151 # to runtime path list.
36152 inherit_rpath=$inherit_rpath_CXX
36154 # Whether libtool must link a program against all its dependency libraries.
36155 link_all_deplibs=$link_all_deplibs_CXX
36157 # Fix the shell variable \$srcfile for the compiler.
36158 fix_srcfile_path=$lt_fix_srcfile_path_CXX
36160 # Set to "yes" if exported symbols are required.
36161 always_export_symbols=$always_export_symbols_CXX
36163 # The commands to list exported symbols.
36164 export_symbols_cmds=$lt_export_symbols_cmds_CXX
36166 # Symbols that should not be listed in the preloaded symbols.
36167 exclude_expsyms=$lt_exclude_expsyms_CXX
36169 # Symbols that must always be exported.
36170 include_expsyms=$lt_include_expsyms_CXX
36172 # Commands necessary for linking programs (against libraries) with templates.
36173 prelink_cmds=$lt_prelink_cmds_CXX
36175 # Specify filename containing input files.
36176 file_list_spec=$lt_file_list_spec_CXX
36178 # How to hardcode a shared library path into an executable.
36179 hardcode_action=$hardcode_action_CXX
36181 # The directories searched by this compiler when creating a shared library.
36182 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36184 # Dependencies to place before and after the objects being linked to
36185 # create a shared library.
36186 predep_objects=$lt_predep_objects_CXX
36187 postdep_objects=$lt_postdep_objects_CXX
36188 predeps=$lt_predeps_CXX
36189 postdeps=$lt_postdeps_CXX
36191 # The library search path used internally by the compiler when linking
36192 # a shared library.
36193 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36195 # ### END LIBTOOL TAG CONFIG: CXX
36196 _LT_EOF
36199 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36200 "default-1":C)
36201 for ac_file in $CONFIG_FILES; do
36202 # Support "outfile[:infile[:infile...]]"
36203 case "$ac_file" in
36204 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36205 esac
36206 # PO directories have a Makefile.in generated from Makefile.in.in.
36207 case "$ac_file" in */Makefile.in)
36208 # Adjust a relative srcdir.
36209 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36210 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
36211 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36212 # In autoconf-2.13 it is called $ac_given_srcdir.
36213 # In autoconf-2.50 it is called $srcdir.
36214 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36215 case "$ac_given_srcdir" in
36216 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36217 /*) top_srcdir="$ac_given_srcdir" ;;
36218 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36219 esac
36220 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36221 rm -f "$ac_dir/POTFILES"
36222 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36223 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36224 POMAKEFILEDEPS="POTFILES.in"
36225 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36226 # on $ac_dir but don't depend on user-specified configuration
36227 # parameters.
36228 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36229 # The LINGUAS file contains the set of available languages.
36230 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36231 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
36233 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36234 # Hide the ALL_LINGUAS assigment from automake.
36235 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36236 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36237 else
36238 # The set of available languages was given in configure.ac.
36239 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36241 case "$ac_given_srcdir" in
36242 .) srcdirpre= ;;
36243 *) srcdirpre='$(srcdir)/' ;;
36244 esac
36245 POFILES=
36246 GMOFILES=
36247 UPDATEPOFILES=
36248 DUMMYPOFILES=
36249 for lang in $ALL_LINGUAS; do
36250 POFILES="$POFILES $srcdirpre$lang.po"
36251 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36252 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36253 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36254 done
36255 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36256 # environment variable.
36257 INST_LINGUAS=
36258 if test -n "$ALL_LINGUAS"; then
36259 for presentlang in $ALL_LINGUAS; do
36260 useit=no
36261 if test "%UNSET%" != "$LINGUAS"; then
36262 desiredlanguages="$LINGUAS"
36263 else
36264 desiredlanguages="$ALL_LINGUAS"
36266 for desiredlang in $desiredlanguages; do
36267 # Use the presentlang catalog if desiredlang is
36268 # a. equal to presentlang, or
36269 # b. a variant of presentlang (because in this case,
36270 # presentlang can be used as a fallback for messages
36271 # which are not translated in the desiredlang catalog).
36272 case "$desiredlang" in
36273 "$presentlang"*) useit=yes;;
36274 esac
36275 done
36276 if test $useit = yes; then
36277 INST_LINGUAS="$INST_LINGUAS $presentlang"
36279 done
36281 CATALOGS=
36282 if test -n "$INST_LINGUAS"; then
36283 for lang in $INST_LINGUAS; do
36284 CATALOGS="$CATALOGS $lang.gmo"
36285 done
36287 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36288 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"
36289 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36290 if test -f "$f"; then
36291 case "$f" in
36292 *.orig | *.bak | *~) ;;
36293 *) cat "$f" >> "$ac_dir/Makefile" ;;
36294 esac
36296 done
36299 esac
36300 done ;;
36301 "nm.h":L) echo > stamp-nmh ;;
36302 "gcore":F) chmod +x gcore ;;
36304 esac
36305 done # for ac_tag
36308 as_fn_exit 0
36309 _ACEOF
36310 ac_clean_files=$ac_clean_files_save
36312 test $ac_write_fail = 0 ||
36313 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36316 # configure is writing to config.log, and then calls config.status.
36317 # config.status does its own redirection, appending to config.log.
36318 # Unfortunately, on DOS this fails, as config.log is still kept open
36319 # by configure, so config.status won't be able to write to it; its
36320 # output is simply discarded. So we exec the FD to /dev/null,
36321 # effectively closing config.log, so it can be properly (re)opened and
36322 # appended to by config.status. When coming back to configure, we
36323 # need to make the FD available again.
36324 if test "$no_create" != yes; then
36325 ac_cs_success=:
36326 ac_config_status_args=
36327 test "$silent" = yes &&
36328 ac_config_status_args="$ac_config_status_args --quiet"
36329 exec 5>/dev/null
36330 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36331 exec 5>>config.log
36332 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36333 # would make configure fail if this is the last instruction.
36334 $ac_cs_success || as_fn_exit 1
36338 # CONFIG_SUBDIRS section.
36340 if test "$no_recursion" != yes; then
36342 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
36343 # so they do not pile up.
36344 ac_sub_configure_args=
36345 ac_prev=
36346 eval "set x $ac_configure_args"
36347 shift
36348 for ac_arg
36350 if test -n "$ac_prev"; then
36351 ac_prev=
36352 continue
36354 case $ac_arg in
36355 -cache-file | --cache-file | --cache-fil | --cache-fi \
36356 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36357 ac_prev=cache_file ;;
36358 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36359 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36360 | --c=*)
36362 --config-cache | -C)
36364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36365 ac_prev=srcdir ;;
36366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36368 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36369 ac_prev=prefix ;;
36370 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36372 --disable-option-checking)
36375 case $ac_arg in
36376 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36377 esac
36378 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
36379 esac
36380 done
36382 # Always prepend --prefix to ensure using the same prefix
36383 # in subdir configurations.
36384 ac_arg="--prefix=$prefix"
36385 case $ac_arg in
36386 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36387 esac
36388 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
36390 # Pass --silent
36391 if test "$silent" = yes; then
36392 ac_sub_configure_args="--silent $ac_sub_configure_args"
36395 # Always prepend --disable-option-checking to silence warnings, since
36396 # different subdirs can have different --enable and --with options.
36397 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
36399 ac_popdir=`pwd`
36400 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36402 # Do not complain, so a configure script can configure whichever
36403 # parts of a large source tree are present.
36404 test -d "$srcdir/$ac_dir" || continue
36406 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36407 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
36408 $as_echo "$ac_msg" >&6
36409 as_dir="$ac_dir"; as_fn_mkdir_p
36410 ac_builddir=.
36412 case "$ac_dir" in
36413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36415 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36416 # A ".." for each directory in $ac_dir_suffix.
36417 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36418 case $ac_top_builddir_sub in
36419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36421 esac ;;
36422 esac
36423 ac_abs_top_builddir=$ac_pwd
36424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36425 # for backward compatibility:
36426 ac_top_builddir=$ac_top_build_prefix
36428 case $srcdir in
36429 .) # We are building in place.
36430 ac_srcdir=.
36431 ac_top_srcdir=$ac_top_builddir_sub
36432 ac_abs_top_srcdir=$ac_pwd ;;
36433 [\\/]* | ?:[\\/]* ) # Absolute name.
36434 ac_srcdir=$srcdir$ac_dir_suffix;
36435 ac_top_srcdir=$srcdir
36436 ac_abs_top_srcdir=$srcdir ;;
36437 *) # Relative name.
36438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36439 ac_top_srcdir=$ac_top_build_prefix$srcdir
36440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36441 esac
36442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36445 cd "$ac_dir"
36447 # Check for guested configure; otherwise get Cygnus style configure.
36448 if test -f "$ac_srcdir/configure.gnu"; then
36449 ac_sub_configure=$ac_srcdir/configure.gnu
36450 elif test -f "$ac_srcdir/configure"; then
36451 ac_sub_configure=$ac_srcdir/configure
36452 elif test -f "$ac_srcdir/configure.in"; then
36453 # This should be Cygnus configure.
36454 ac_sub_configure=$ac_aux_dir/configure
36455 else
36456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
36457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36458 ac_sub_configure=
36461 # The recursion is here.
36462 if test -n "$ac_sub_configure"; then
36463 # Make the cache file name correct relative to the subdirectory.
36464 case $cache_file in
36465 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36466 *) # Relative name.
36467 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36468 esac
36470 { $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
36471 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36472 # The eval makes quoting arguments work.
36473 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36474 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36475 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
36478 cd "$ac_popdir"
36479 done
36481 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36483 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}