[PR target/115123] Fix testsuite fallout from sinking heuristic change
[official-gcc.git] / gcc / configure
blobe36d1d91612a3317f7361432807189621ad2a8ac
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="tree.cc"
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 gt_needs=
633 ac_subst_vars='LTLIBOBJS
634 LIBOBJS
635 CET_HOST_FLAGS
636 LD_PICFLAG
637 PICFLAG
638 enable_default_pie
639 enable_host_bind_now
640 LIBGDIAGNOSTICS
641 enable_libgdiagnostics
642 enable_host_pie
643 enable_host_shared
644 enable_plugin
645 pluginlibs
646 ISLINC
647 ISLLIBS
648 GMPINC
649 GMPLIBS
650 target_cpu_default
651 rust_target_objs
652 d_target_objs
653 fortran_target_objs
654 cxx_target_objs
655 c_target_objs
656 use_gcc_stdint
657 xm_defines
658 xm_include_list
659 xm_file_list
660 tm_rust_include_list
661 tm_rust_file_list
662 tm_d_include_list
663 tm_d_file_list
664 tm_p_include_list
665 tm_p_file_list
666 tm_defines
667 tm_include_list
668 tm_file_list
669 common_out_object_file
670 common_out_file
671 out_object_file
672 out_file
673 objc_boehm_gc
674 md_file
675 local_prefix
676 lang_tree_files
677 lang_specs_files
678 lang_opt_files
679 install
680 out_host_hook_obj
681 host_xm_defines
682 host_xm_include_list
683 host_xm_file_list
684 host_exeext
685 gcc_gxx_libcxx_include_dir_add_sysroot
686 gcc_gxx_libcxx_include_dir
687 gcc_gxx_include_dir_add_sysroot
688 gcc_gxx_include_dir
689 gcc_config_arguments
690 float_h_file
691 extra_programs
692 extra_objs
693 extra_headers_list
694 user_headers_inc_next_post
695 user_headers_inc_next_pre
696 extra_gcc_objs
697 TM_MULTILIB_EXCEPTIONS_CONFIG
698 TM_MULTILIB_CONFIG
699 TM_ENDIAN_CONFIG
700 tmake_file
701 xmake_file
702 cpp_install_dir
703 selftest_languages
704 check_languages
705 build_file_translate
706 build_xm_defines
707 build_xm_include_list
708 build_xm_file_list
709 build_install_headers_dir
710 build_exeext
711 all_selected_languages
712 all_languages
713 all_lang_makefrags
714 all_lang_configurefrags
715 all_gtfiles
716 all_compilers
717 srcdir
718 subdirs
719 dollar
720 gcc_tooldir
721 enable_lto
722 DO_LINK_SERIALIZATION
723 DO_LINK_MUTEX
724 CSCOPE
725 ETAGS
726 CTAGS
727 MAINT
728 zlibinc
729 zlibdir
730 HOST_LIBS
731 enable_default_ssp
732 thin_archive_support
733 ld_soname_option
734 ld_version_script_option
735 libgcc_visibility
736 ORIGINAL_DSYMUTIL_FOR_TARGET
737 gcc_cv_dsymutil
738 gcc_cv_otool
739 gcc_cv_readelf
740 gcc_cv_objdump
741 ORIGINAL_NM_FOR_TARGET
742 gcc_cv_nm
743 ORIGINAL_LD_GOLD_FOR_TARGET
744 ORIGINAL_LD_BFD_FOR_TARGET
745 ORIGINAL_LD_FOR_TARGET
746 ORIGINAL_PLUGIN_LD_FOR_TARGET
747 gcc_cv_ld
748 ORIGINAL_AS_FOR_TARGET
749 gcc_cv_as
750 ENABLE_DARWIN_AT_RPATH_FALSE
751 ENABLE_DARWIN_AT_RPATH_TRUE
752 enable_fast_install
753 objdir
754 OTOOL64
755 OTOOL
756 LIPO
757 NMEDIT
758 DSYMUTIL
759 STRIP
760 OBJDUMP
761 ac_ct_DUMPBIN
762 DUMPBIN
764 FGREP
766 LIBTOOL
767 collect2
768 STMP_FIXINC
769 BUILD_LDFLAGS
770 BUILD_CXXFLAGS
771 BUILD_CFLAGS
772 CXX_FOR_BUILD
773 CC_FOR_BUILD
774 inhibit_libc
775 BUILD_SYSTEM_HEADER_DIR
776 SYSTEM_HEADER_DIR
778 CROSS
779 CATOBJEXT
780 GENCAT
781 INSTOBJEXT
782 DATADIRNAME
783 CATALOGS
784 INCINTL
785 LIBINTL_DEP
786 POSUB
787 LTLIBINTL
788 LIBINTL
789 INTLLIBS
790 INTL_MACOSX_LIBS
791 MSGMERGE
792 XGETTEXT
793 GMSGFMT
794 MSGFMT
795 USE_NLS
796 MKINSTALLDIRS
797 INSTALL_SCRIPT
798 get_gcc_base_ver
799 HAVE_AUTO_BUILD
800 extra_opt_files
801 extra_modes_file
802 NATIVE_SYSTEM_HEADER_DIR
803 objext
804 manext
805 LIBICONV_DEP
806 LTLIBICONV
807 LIBICONV
808 ZSTD_LDFLAGS
809 ZSTD_CPPFLAGS
810 ZSTD_LIB
811 ZSTD_INCLUDE
812 DL_LIB
813 LDEXP_LIB
814 EXTRA_GCC_LIBS
815 GNAT_LIBEXC
816 COLLECT2_LIBS
817 CXXDEPMODE
818 DEPDIR
819 am__leading_dot
820 doc_build_sys
823 HAVE_PYTHON
824 PYTHON
825 BISON
826 FLEX
827 GENERATED_MANPAGES
828 MAKEINFO_TOC_INLINE_FLAG
829 BUILD_INFO
830 MAKEINFO
831 have_mktemp_command
832 make_compare_target
833 INSTALL_DATA
834 INSTALL_PROGRAM
835 INSTALL
836 ranlib_flags
837 RANLIB
839 LN_S
841 SET_MAKE
842 omp_device_property_deps
843 omp_device_properties
844 accel_dir_suffix
845 real_target_noncanonical
846 enable_as_accelerator
847 gnat_install_lib
848 REPORT_BUGS_TEXI
849 REPORT_BUGS_TO
850 PKGVERSION
851 CONFIGURE_SPECS
852 enable_gcov
853 enable_shared
854 enable_fixed_point
855 enable_decimal_float
856 DEFAULT_INSNEMIT_PARTITIONS
857 DEFAULT_MATCHPD_PARTITIONS
858 with_float
859 with_cpu
860 enable_multiarch
861 enable_multilib
862 coverage_flags
863 valgrind_command
864 valgrind_path_defines
865 valgrind_path
866 TREECHECKING
867 noexception_flags
868 warn_cxxflags
869 warn_cflags
870 c_strict_warn
871 strict_warn
872 c_loose_warn
873 loose_warn
874 aliasing_flags
876 EGREP
877 GREP
878 CXXCPP
879 PICFLAG_FOR_TARGET
880 GDCFLAGS
882 GNATMAKE
883 GNATBIND
884 ac_ct_CXX
885 CXXFLAGS
887 OBJEXT
888 EXEEXT
889 ac_ct_CC
890 CPPFLAGS
891 LDFLAGS
892 CFLAGS
894 GENINSRC
895 CROSS_SYSTEM_HEADER_DIR
896 TARGET_SYSTEM_ROOT_DEFINE
897 TARGET_SYSTEM_ROOT
898 SYSROOT_CFLAGS_FOR_TARGET
899 target_subdir
900 host_subdir
901 build_subdir
902 build_libsubdir
903 target_noncanonical
904 host_noncanonical
905 target_os
906 target_vendor
907 target_cpu
908 target
909 host_os
910 host_vendor
911 host_cpu
912 host
913 build_os
914 build_vendor
915 build_cpu
916 build
917 target_alias
918 host_alias
919 build_alias
920 LIBS
921 ECHO_T
922 ECHO_N
923 ECHO_C
924 DEFS
925 mandir
926 localedir
927 libdir
928 psdir
929 pdfdir
930 dvidir
931 htmldir
932 infodir
933 docdir
934 oldincludedir
935 includedir
936 localstatedir
937 sharedstatedir
938 sysconfdir
939 datadir
940 datarootdir
941 libexecdir
942 sbindir
943 bindir
944 program_transform_name
945 prefix
946 exec_prefix
947 PACKAGE_URL
948 PACKAGE_BUGREPORT
949 PACKAGE_STRING
950 PACKAGE_VERSION
951 PACKAGE_TARNAME
952 PACKAGE_NAME
953 PATH_SEPARATOR
954 SHELL'
955 ac_subst_files='option_includes
956 language_hooks'
957 ac_user_opts='
958 enable_option_checking
959 with_build_libsubdir
960 with_local_prefix
961 with_native_system_header_dir
962 with_build_sysroot
963 with_sysroot
964 with_gxx_include_dir
965 with_gxx_libcxx_include_dir
966 with_cpp_install_dir
967 enable_generated_files_in_srcdir
968 with_gnu_ld
969 with_ld
970 with_demangler_in_ld
971 with_dsymutil
972 with_gnu_as
973 with_as
974 enable_largefile
975 enable_build_format_warnings
976 enable_werror_always
977 enable_checking
978 enable_coverage
979 enable_gather_detailed_mem_stats
980 enable_valgrind_annotations
981 enable_multilib
982 enable_multiarch
983 with_stack_clash_protection_guard_size
984 with_matchpd_partitions
985 with_insnemit_partitions
986 enable___cxa_atexit
987 enable_decimal_float
988 enable_fixed_point
989 enable_threads
990 enable_tls
991 enable_vtable_verify
992 enable_analyzer
993 enable_objc_gc
994 with_dwarf2
995 enable_shared
996 enable_gcov
997 with_specs
998 with_pkgversion
999 with_bugurl
1000 with_documentation_root_url
1001 with_changes_root_url
1002 enable_languages
1003 with_multilib_list
1004 with_multilib_generator
1005 with_zstd
1006 with_zstd_include
1007 with_zstd_lib
1008 enable_rpath
1009 with_libiconv_prefix
1010 with_libiconv_type
1011 enable_sjlj_exceptions
1012 enable_win32_utf8_manifest
1013 with_gcc_major_version_only
1014 enable_nls
1015 with_libintl_prefix
1016 with_libintl_type
1017 enable_secureplt
1018 enable_mingw_wildcard
1019 enable_large_address_aware
1020 enable_leading_mingw64_underscores
1021 enable_cld
1022 enable_frame_pointer
1023 enable_win32_registry
1024 enable_static
1025 with_pic
1026 enable_fast_install
1027 enable_libtool_lock
1028 enable_darwin_at_rpath
1029 with_darwin_extra_rpath
1030 enable_ld
1031 enable_gold
1032 with_plugin_ld
1033 enable_gnu_indirect_function
1034 enable_initfini_array
1035 enable_comdat
1036 enable_newlib_nano_formatted_io
1037 enable_standard_branch_protection
1038 enable_fix_cortex_a53_835769
1039 enable_fix_cortex_a53_843419
1040 with_glibc_version
1041 enable_gnu_unique_object
1042 enable_linker_build_id
1043 enable_libssp
1044 enable_default_ssp
1045 with_long_double_128
1046 with_long_double_format
1047 with_gc
1048 with_system_zlib
1049 enable_maintainer_mode
1050 enable_link_mutex
1051 enable_link_serialization
1052 enable_version_specific_runtime_libs
1053 enable_plugin
1054 enable_host_shared
1055 enable_host_pie
1056 enable_libgdiagnostics
1057 enable_host_bind_now
1058 enable_libquadmath_support
1059 with_linker_hash_style
1060 with_diagnostics_color
1061 with_diagnostics_urls
1062 enable_default_pie
1063 enable_cet
1064 enable_s390_excess_float_precision
1066 ac_precious_vars='build_alias
1067 host_alias
1068 target_alias
1070 CFLAGS
1071 LDFLAGS
1072 LIBS
1073 CPPFLAGS
1075 CXXFLAGS
1077 CXXCPP
1079 GMPLIBS
1080 GMPINC
1081 ISLLIBS
1082 ISLINC'
1085 # Initialize some variables set by options.
1086 ac_init_help=
1087 ac_init_version=false
1088 ac_unrecognized_opts=
1089 ac_unrecognized_sep=
1090 # The variables have the same names as the options, with
1091 # dashes changed to underlines.
1092 cache_file=/dev/null
1093 exec_prefix=NONE
1094 no_create=
1095 no_recursion=
1096 prefix=NONE
1097 program_prefix=NONE
1098 program_suffix=NONE
1099 program_transform_name=s,x,x,
1100 silent=
1101 site=
1102 srcdir=
1103 verbose=
1104 x_includes=NONE
1105 x_libraries=NONE
1107 # Installation directory options.
1108 # These are left unexpanded so users can "make install exec_prefix=/foo"
1109 # and all the variables that are supposed to be based on exec_prefix
1110 # by default will actually change.
1111 # Use braces instead of parens because sh, perl, etc. also accept them.
1112 # (The list follows the same order as the GNU Coding Standards.)
1113 bindir='${exec_prefix}/bin'
1114 sbindir='${exec_prefix}/sbin'
1115 libexecdir='${exec_prefix}/libexec'
1116 datarootdir='${prefix}/share'
1117 datadir='${datarootdir}'
1118 sysconfdir='${prefix}/etc'
1119 sharedstatedir='${prefix}/com'
1120 localstatedir='${prefix}/var'
1121 includedir='${prefix}/include'
1122 oldincludedir='/usr/include'
1123 docdir='${datarootdir}/doc/${PACKAGE}'
1124 infodir='${datarootdir}/info'
1125 htmldir='${docdir}'
1126 dvidir='${docdir}'
1127 pdfdir='${docdir}'
1128 psdir='${docdir}'
1129 libdir='${exec_prefix}/lib'
1130 localedir='${datarootdir}/locale'
1131 mandir='${datarootdir}/man'
1133 ac_prev=
1134 ac_dashdash=
1135 for ac_option
1137 # If the previous option needs an argument, assign it.
1138 if test -n "$ac_prev"; then
1139 eval $ac_prev=\$ac_option
1140 ac_prev=
1141 continue
1144 case $ac_option in
1145 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1146 *=) ac_optarg= ;;
1147 *) ac_optarg=yes ;;
1148 esac
1150 # Accept the important Cygnus configure options, so we can diagnose typos.
1152 case $ac_dashdash$ac_option in
1154 ac_dashdash=yes ;;
1156 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1157 ac_prev=bindir ;;
1158 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1159 bindir=$ac_optarg ;;
1161 -build | --build | --buil | --bui | --bu)
1162 ac_prev=build_alias ;;
1163 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1164 build_alias=$ac_optarg ;;
1166 -cache-file | --cache-file | --cache-fil | --cache-fi \
1167 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1168 ac_prev=cache_file ;;
1169 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1170 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1171 cache_file=$ac_optarg ;;
1173 --config-cache | -C)
1174 cache_file=config.cache ;;
1176 -datadir | --datadir | --datadi | --datad)
1177 ac_prev=datadir ;;
1178 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1179 datadir=$ac_optarg ;;
1181 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1182 | --dataroo | --dataro | --datar)
1183 ac_prev=datarootdir ;;
1184 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1185 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1186 datarootdir=$ac_optarg ;;
1188 -disable-* | --disable-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid feature name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "enable_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval enable_$ac_useropt=no ;;
1204 -docdir | --docdir | --docdi | --doc | --do)
1205 ac_prev=docdir ;;
1206 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1207 docdir=$ac_optarg ;;
1209 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1210 ac_prev=dvidir ;;
1211 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1212 dvidir=$ac_optarg ;;
1214 -enable-* | --enable-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid feature name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1223 "enable_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval enable_$ac_useropt=\$ac_optarg ;;
1230 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1231 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1232 | --exec | --exe | --ex)
1233 ac_prev=exec_prefix ;;
1234 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1235 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1236 | --exec=* | --exe=* | --ex=*)
1237 exec_prefix=$ac_optarg ;;
1239 -gas | --gas | --ga | --g)
1240 # Obsolete; use --with-gas.
1241 with_gas=yes ;;
1243 -help | --help | --hel | --he | -h)
1244 ac_init_help=long ;;
1245 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1246 ac_init_help=recursive ;;
1247 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1248 ac_init_help=short ;;
1250 -host | --host | --hos | --ho)
1251 ac_prev=host_alias ;;
1252 -host=* | --host=* | --hos=* | --ho=*)
1253 host_alias=$ac_optarg ;;
1255 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1256 ac_prev=htmldir ;;
1257 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1258 | --ht=*)
1259 htmldir=$ac_optarg ;;
1261 -includedir | --includedir | --includedi | --included | --include \
1262 | --includ | --inclu | --incl | --inc)
1263 ac_prev=includedir ;;
1264 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1265 | --includ=* | --inclu=* | --incl=* | --inc=*)
1266 includedir=$ac_optarg ;;
1268 -infodir | --infodir | --infodi | --infod | --info | --inf)
1269 ac_prev=infodir ;;
1270 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1271 infodir=$ac_optarg ;;
1273 -libdir | --libdir | --libdi | --libd)
1274 ac_prev=libdir ;;
1275 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1276 libdir=$ac_optarg ;;
1278 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1279 | --libexe | --libex | --libe)
1280 ac_prev=libexecdir ;;
1281 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1282 | --libexe=* | --libex=* | --libe=*)
1283 libexecdir=$ac_optarg ;;
1285 -localedir | --localedir | --localedi | --localed | --locale)
1286 ac_prev=localedir ;;
1287 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1288 localedir=$ac_optarg ;;
1290 -localstatedir | --localstatedir | --localstatedi | --localstated \
1291 | --localstate | --localstat | --localsta | --localst | --locals)
1292 ac_prev=localstatedir ;;
1293 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1294 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1295 localstatedir=$ac_optarg ;;
1297 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1298 ac_prev=mandir ;;
1299 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1300 mandir=$ac_optarg ;;
1302 -nfp | --nfp | --nf)
1303 # Obsolete; use --without-fp.
1304 with_fp=no ;;
1306 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1307 | --no-cr | --no-c | -n)
1308 no_create=yes ;;
1310 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1311 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1312 no_recursion=yes ;;
1314 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1315 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1316 | --oldin | --oldi | --old | --ol | --o)
1317 ac_prev=oldincludedir ;;
1318 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1319 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1320 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1321 oldincludedir=$ac_optarg ;;
1323 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1324 ac_prev=prefix ;;
1325 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1326 prefix=$ac_optarg ;;
1328 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1329 | --program-pre | --program-pr | --program-p)
1330 ac_prev=program_prefix ;;
1331 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1332 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1333 program_prefix=$ac_optarg ;;
1335 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1336 | --program-suf | --program-su | --program-s)
1337 ac_prev=program_suffix ;;
1338 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1339 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1340 program_suffix=$ac_optarg ;;
1342 -program-transform-name | --program-transform-name \
1343 | --program-transform-nam | --program-transform-na \
1344 | --program-transform-n | --program-transform- \
1345 | --program-transform | --program-transfor \
1346 | --program-transfo | --program-transf \
1347 | --program-trans | --program-tran \
1348 | --progr-tra | --program-tr | --program-t)
1349 ac_prev=program_transform_name ;;
1350 -program-transform-name=* | --program-transform-name=* \
1351 | --program-transform-nam=* | --program-transform-na=* \
1352 | --program-transform-n=* | --program-transform-=* \
1353 | --program-transform=* | --program-transfor=* \
1354 | --program-transfo=* | --program-transf=* \
1355 | --program-trans=* | --program-tran=* \
1356 | --progr-tra=* | --program-tr=* | --program-t=*)
1357 program_transform_name=$ac_optarg ;;
1359 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1360 ac_prev=pdfdir ;;
1361 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1362 pdfdir=$ac_optarg ;;
1364 -psdir | --psdir | --psdi | --psd | --ps)
1365 ac_prev=psdir ;;
1366 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1367 psdir=$ac_optarg ;;
1369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1370 | -silent | --silent | --silen | --sile | --sil)
1371 silent=yes ;;
1373 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1374 ac_prev=sbindir ;;
1375 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1376 | --sbi=* | --sb=*)
1377 sbindir=$ac_optarg ;;
1379 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1380 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1381 | --sharedst | --shareds | --shared | --share | --shar \
1382 | --sha | --sh)
1383 ac_prev=sharedstatedir ;;
1384 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1385 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1386 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1387 | --sha=* | --sh=*)
1388 sharedstatedir=$ac_optarg ;;
1390 -site | --site | --sit)
1391 ac_prev=site ;;
1392 -site=* | --site=* | --sit=*)
1393 site=$ac_optarg ;;
1395 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1396 ac_prev=srcdir ;;
1397 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1398 srcdir=$ac_optarg ;;
1400 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1401 | --syscon | --sysco | --sysc | --sys | --sy)
1402 ac_prev=sysconfdir ;;
1403 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1404 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1405 sysconfdir=$ac_optarg ;;
1407 -target | --target | --targe | --targ | --tar | --ta | --t)
1408 ac_prev=target_alias ;;
1409 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1410 target_alias=$ac_optarg ;;
1412 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1413 verbose=yes ;;
1415 -version | --version | --versio | --versi | --vers | -V)
1416 ac_init_version=: ;;
1418 -with-* | --with-*)
1419 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1422 as_fn_error $? "invalid package name: $ac_useropt"
1423 ac_useropt_orig=$ac_useropt
1424 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1425 case $ac_user_opts in
1427 "with_$ac_useropt"
1428 "*) ;;
1429 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1430 ac_unrecognized_sep=', ';;
1431 esac
1432 eval with_$ac_useropt=\$ac_optarg ;;
1434 -without-* | --without-*)
1435 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1436 # Reject names that are not valid shell variable names.
1437 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1438 as_fn_error $? "invalid package name: $ac_useropt"
1439 ac_useropt_orig=$ac_useropt
1440 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1441 case $ac_user_opts in
1443 "with_$ac_useropt"
1444 "*) ;;
1445 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1446 ac_unrecognized_sep=', ';;
1447 esac
1448 eval with_$ac_useropt=no ;;
1450 --x)
1451 # Obsolete; use --with-x.
1452 with_x=yes ;;
1454 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1455 | --x-incl | --x-inc | --x-in | --x-i)
1456 ac_prev=x_includes ;;
1457 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1458 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1459 x_includes=$ac_optarg ;;
1461 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1462 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1463 ac_prev=x_libraries ;;
1464 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1465 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1466 x_libraries=$ac_optarg ;;
1468 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1469 Try \`$0 --help' for more information"
1472 *=*)
1473 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1474 # Reject names that are not valid shell variable names.
1475 case $ac_envvar in #(
1476 '' | [0-9]* | *[!_$as_cr_alnum]* )
1477 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1478 esac
1479 eval $ac_envvar=\$ac_optarg
1480 export $ac_envvar ;;
1483 # FIXME: should be removed in autoconf 3.0.
1484 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1485 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1486 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1487 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1490 esac
1491 done
1493 if test -n "$ac_prev"; then
1494 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1495 as_fn_error $? "missing argument to $ac_option"
1498 if test -n "$ac_unrecognized_opts"; then
1499 case $enable_option_checking in
1500 no) ;;
1501 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1502 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1503 esac
1506 # Check all directory arguments for consistency.
1507 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1508 datadir sysconfdir sharedstatedir localstatedir includedir \
1509 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1510 libdir localedir mandir
1512 eval ac_val=\$$ac_var
1513 # Remove trailing slashes.
1514 case $ac_val in
1515 */ )
1516 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1517 eval $ac_var=\$ac_val;;
1518 esac
1519 # Be sure to have absolute directory names.
1520 case $ac_val in
1521 [\\/$]* | ?:[\\/]* ) continue;;
1522 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1523 esac
1524 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1525 done
1527 # There might be people who depend on the old broken behavior: `$host'
1528 # used to hold the argument of --host etc.
1529 # FIXME: To remove some day.
1530 build=$build_alias
1531 host=$host_alias
1532 target=$target_alias
1534 # FIXME: To remove some day.
1535 if test "x$host_alias" != x; then
1536 if test "x$build_alias" = x; then
1537 cross_compiling=maybe
1538 elif test "x$build_alias" != "x$host_alias"; then
1539 cross_compiling=yes
1543 ac_tool_prefix=
1544 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1546 test "$silent" = yes && exec 6>/dev/null
1549 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1550 ac_ls_di=`ls -di .` &&
1551 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1552 as_fn_error $? "working directory cannot be determined"
1553 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1554 as_fn_error $? "pwd does not report name of working directory"
1557 # Find the source files, if location was not specified.
1558 if test -z "$srcdir"; then
1559 ac_srcdir_defaulted=yes
1560 # Try the directory containing this script, then the parent directory.
1561 ac_confdir=`$as_dirname -- "$as_myself" ||
1562 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1563 X"$as_myself" : 'X\(//\)[^/]' \| \
1564 X"$as_myself" : 'X\(//\)$' \| \
1565 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1566 $as_echo X"$as_myself" |
1567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1568 s//\1/
1571 /^X\(\/\/\)[^/].*/{
1572 s//\1/
1575 /^X\(\/\/\)$/{
1576 s//\1/
1579 /^X\(\/\).*/{
1580 s//\1/
1583 s/.*/./; q'`
1584 srcdir=$ac_confdir
1585 if test ! -r "$srcdir/$ac_unique_file"; then
1586 srcdir=..
1588 else
1589 ac_srcdir_defaulted=no
1591 if test ! -r "$srcdir/$ac_unique_file"; then
1592 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1593 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1595 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1596 ac_abs_confdir=`(
1597 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1598 pwd)`
1599 # When building in place, set srcdir=.
1600 if test "$ac_abs_confdir" = "$ac_pwd"; then
1601 srcdir=.
1603 # Remove unnecessary trailing slashes from srcdir.
1604 # Double slashes in file names in object file debugging info
1605 # mess up M-x gdb in Emacs.
1606 case $srcdir in
1607 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1608 esac
1609 for ac_var in $ac_precious_vars; do
1610 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1611 eval ac_env_${ac_var}_value=\$${ac_var}
1612 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1613 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1614 done
1617 # Report the --help message.
1619 if test "$ac_init_help" = "long"; then
1620 # Omit some internal or obsolete options to make the list less imposing.
1621 # This message is too long to be a string in the A/UX 3.1 sh.
1622 cat <<_ACEOF
1623 \`configure' configures this package to adapt to many kinds of systems.
1625 Usage: $0 [OPTION]... [VAR=VALUE]...
1627 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1628 VAR=VALUE. See below for descriptions of some of the useful variables.
1630 Defaults for the options are specified in brackets.
1632 Configuration:
1633 -h, --help display this help and exit
1634 --help=short display options specific to this package
1635 --help=recursive display the short help of all the included packages
1636 -V, --version display version information and exit
1637 -q, --quiet, --silent do not print \`checking ...' messages
1638 --cache-file=FILE cache test results in FILE [disabled]
1639 -C, --config-cache alias for \`--cache-file=config.cache'
1640 -n, --no-create do not create output files
1641 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1643 Installation directories:
1644 --prefix=PREFIX install architecture-independent files in PREFIX
1645 [$ac_default_prefix]
1646 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1647 [PREFIX]
1649 By default, \`make install' will install all the files in
1650 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1651 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1652 for instance \`--prefix=\$HOME'.
1654 For better control, use the options below.
1656 Fine tuning of the installation directories:
1657 --bindir=DIR user executables [EPREFIX/bin]
1658 --sbindir=DIR system admin executables [EPREFIX/sbin]
1659 --libexecdir=DIR program executables [EPREFIX/libexec]
1660 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1661 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1662 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1663 --libdir=DIR object code libraries [EPREFIX/lib]
1664 --includedir=DIR C header files [PREFIX/include]
1665 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1666 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1667 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1668 --infodir=DIR info documentation [DATAROOTDIR/info]
1669 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1670 --mandir=DIR man documentation [DATAROOTDIR/man]
1671 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1672 --htmldir=DIR html documentation [DOCDIR]
1673 --dvidir=DIR dvi documentation [DOCDIR]
1674 --pdfdir=DIR pdf documentation [DOCDIR]
1675 --psdir=DIR ps documentation [DOCDIR]
1676 _ACEOF
1678 cat <<\_ACEOF
1680 Program names:
1681 --program-prefix=PREFIX prepend PREFIX to installed program names
1682 --program-suffix=SUFFIX append SUFFIX to installed program names
1683 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1685 System types:
1686 --build=BUILD configure for building on BUILD [guessed]
1687 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1688 --target=TARGET configure for building compilers for TARGET [HOST]
1689 _ACEOF
1692 if test -n "$ac_init_help"; then
1694 cat <<\_ACEOF
1696 Optional Features:
1697 --disable-option-checking ignore unrecognized --enable/--with options
1698 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1699 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1700 --enable-generated-files-in-srcdir
1701 put copies of generated files in source dir intended
1702 for creating source tarballs for users without
1703 texinfo bison or flex
1704 --disable-largefile omit support for large files
1705 --disable-build-format-warnings
1706 don't use -Wformat while building GCC
1707 --enable-werror-always enable -Werror despite compiler version
1708 --enable-checking[=LIST]
1709 enable expensive run-time checks. With LIST, enable
1710 only specific categories of checks. Categories are:
1711 yes,no,all,none,release. Flags are:
1712 assert,df,extra,fold,gc,gcac,gimple,misc,
1713 rtlflag,rtl,runtime,tree,valgrind,types
1714 --enable-coverage[=LEVEL]
1715 enable compiler's code coverage collection. Use to
1716 measure compiler performance and locate unused parts
1717 of the compiler. With LEVEL, specify optimization.
1718 Values are opt, noopt, default is noopt
1719 --enable-gather-detailed-mem-stats
1720 enable detailed memory allocation stats gathering
1721 --enable-valgrind-annotations
1722 enable valgrind runtime interaction
1723 --enable-multilib enable library support for multiple ABIs
1724 --enable-multiarch enable support for multiarch paths
1725 --enable-__cxa_atexit enable __cxa_atexit for C++
1726 --enable-decimal-float={no,yes,bid,dpd}
1727 enable decimal float extension to C. Selecting 'bid'
1728 or 'dpd' choses which decimal floating point format
1729 to use
1730 --enable-fixed-point enable fixed-point arithmetic extension to C
1731 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1732 package
1733 --enable-tls enable or disable generation of tls code overriding
1734 the assembler check for tls support
1735 --enable-vtable-verify enable vtable verification feature
1736 --disable-analyzer disable -fanalyzer static analyzer
1737 --enable-objc-gc enable the use of Boehm's garbage collector with the
1738 GNU Objective-C runtime
1739 --disable-shared don't provide a shared libgcc
1740 --disable-gcov don't provide libgcov and related host tools
1741 --enable-languages=LIST specify which front-ends to build
1742 --disable-rpath do not hardcode runtime library paths
1743 --enable-sjlj-exceptions
1744 arrange to use setjmp/longjmp exception handling
1745 --disable-win32-utf8-manifest
1746 disable embedding a utf8 manifest on mingw hosts
1747 --enable-win32-utf8-manifest
1748 enable embedding a utf8 manifest on mingw hosts
1749 (default)
1750 --disable-nls do not use Native Language Support
1751 --enable-secureplt enable -msecure-plt by default for PowerPC
1752 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1753 Default to platform configuration
1754 --enable-large-address-aware
1755 Link mingw executables with --large-address-aware
1756 --enable-leading-mingw64-underscores
1757 enable leading underscores on 64 bit mingw targets
1758 --enable-cld enable -mcld by default for 32bit x86
1759 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1760 --disable-win32-registry
1761 disable lookup of installation paths in the Registry
1762 on Windows hosts
1763 --enable-win32-registry enable registry lookup (default)
1764 --enable-win32-registry=KEY
1765 use KEY instead of GCC version as the last portion
1766 of the registry key
1767 --enable-shared[=PKGS] build shared libraries [default=yes]
1768 --enable-static[=PKGS] build static libraries [default=yes]
1769 --enable-fast-install[=PKGS]
1770 optimize for fast installation [default=yes]
1771 --disable-libtool-lock avoid locking (might break parallel builds)
1772 --enable-darwin-at-rpath
1773 install libraries with @rpath/library-name, requires
1774 rpaths to be added to executables
1775 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1776 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1777 --enable-gnu-indirect-function
1778 enable the use of the @gnu_indirect_function to
1779 glibc systems
1780 --enable-initfini-array use .init_array/.fini_array sections
1781 --enable-comdat enable COMDAT group support
1782 --enable-newlib-nano-formatted-io
1783 Use nano version formatted IO
1785 --enable-standard-branch-protection
1786 enable Branch Target Identification Mechanism,
1787 Return Address Signing, and Guarded Control Stack by
1788 default for AArch64
1789 --disable-standard-branch-protection
1790 disable Branch Target Identification Mechanism,
1791 Return Address Signing, and Guarded Control Stack by
1792 default for AArch64
1795 --enable-fix-cortex-a53-835769
1796 enable workaround for AArch64 Cortex-A53 erratum
1797 835769 by default
1798 --disable-fix-cortex-a53-835769
1799 disable workaround for AArch64 Cortex-A53 erratum
1800 835769 by default
1803 --enable-fix-cortex-a53-843419
1804 enable workaround for AArch64 Cortex-A53 erratum
1805 843419 by default
1806 --disable-fix-cortex-a53-843419
1807 disable workaround for AArch64 Cortex-A53 erratum
1808 843419 by default
1810 --enable-gnu-unique-object
1811 enable the use of the @gnu_unique_object ELF
1812 extension on glibc systems
1813 --enable-linker-build-id
1814 compiler will always pass --build-id to linker
1815 --enable-libssp enable linking against libssp
1816 --enable-default-ssp enable Stack Smashing Protection as default
1817 --enable-maintainer-mode
1818 enable make rules and dependencies not useful (and
1819 sometimes confusing) to the casual installer
1820 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1821 thrashing on the build machine
1822 --enable-link-serialization
1823 avoid linking multiple GCC front-ends at once using
1824 make dependencies to avoid thrashing on the build
1825 machine
1826 --enable-version-specific-runtime-libs
1827 specify that runtime libraries should be installed
1828 in a compiler-specific directory
1829 --enable-plugin enable plugin support
1830 --enable-host-shared build host code as shared libraries
1831 --enable-host-pie build host code as PIE
1832 --enable-libgdiagnostics
1833 build libgdiagnostics shared library
1834 --enable-host-bind-now link host code as BIND_NOW
1835 --disable-libquadmath-support
1836 disable libquadmath support for Fortran
1837 --enable-default-pie enable Position Independent Executable as default
1838 --enable-cet enable Intel CET in host libraries [default=auto]
1839 --enable-s390-excess-float-precision
1840 on s390 targets, evaluate float with double
1841 precision when in standards-conforming mode
1843 Optional Packages:
1844 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1845 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1846 --with-build-libsubdir=DIR Directory where to find libraries for build system
1847 --with-local-prefix=DIR specifies directory to put local include
1848 --with-native-system-header-dir=dir
1849 use dir as the directory to look for standard
1850 system header files in. Defaults to /usr/include.
1851 --with-build-sysroot=sysroot
1852 use sysroot as the system root during the build
1853 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1854 --with-gxx-include-dir=DIR
1855 specifies directory to put g++ header files
1856 --with-gxx-libcxx-include-dir=DIR
1857 specifies directory to find libc++ header files
1858 --with-cpp-install-dir=DIR
1859 install the user visible C preprocessor in DIR
1860 (relative to PREFIX) as well as PREFIX/bin
1861 --with-gnu-ld arrange to work with GNU ld
1862 --with-ld arrange to use the specified ld (full pathname)
1863 --with-demangler-in-ld try to use demangler in GNU ld
1864 --with-dsymutil arrange to use the specified dsymutil (full
1865 pathname)
1866 --with-gnu-as arrange to work with GNU as
1867 --with-as arrange to use the specified as (full pathname)
1868 --with-stack-clash-protection-guard-size=size
1869 Set the default stack clash protection guard size
1870 for specific targets as a power of two in bytes.
1871 --with-matchpd-partitions=num
1872 Set the number of partitions to make for gimple and
1873 generic when splitting match.pd. [default=10]
1874 --with-insnemit-partitions=num
1875 Set the number of partitions of insn-emit.cc for
1876 genemit and genrecog to create. [default=10]
1877 --with-dwarf2 force the default debug format to be DWARF 2 (or
1878 later)
1879 --with-specs=SPECS add SPECS to driver command-line processing
1880 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1881 --with-bugurl=URL Direct users to URL to report a bug
1882 --with-documentation-root-url=URL
1883 Root for documentation URLs
1884 --with-changes-root-url=URL
1885 Root for GCC changes URLs
1886 --with-multilib-list select multilibs (AArch64, ARM, AVR, nvptx, OR1K,
1887 RISC-V, SH and x86-64 only)
1888 --with-multilib-generator
1889 Multi-libs configuration string (RISC-V only)
1890 --with-zstd=PATH specify prefix directory for installed zstd library.
1891 Equivalent to --with-zstd-include=PATH/include plus
1892 --with-zstd-lib=PATH/lib
1893 --with-zstd-include=PATH
1894 specify directory for installed zstd include files
1895 --with-zstd-lib=PATH specify directory for the installed zstd library
1896 --with-gnu-ld assume the C compiler uses GNU ld default=no
1897 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1898 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1899 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1900 --with-gcc-major-version-only
1901 use only GCC major number in filesystem paths
1902 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1903 --without-libintl-prefix don't search for libintl in includedir and libdir
1904 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1905 --with-pic try to use only PIC/non-PIC objects [default=use
1906 both]
1907 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1908 --with-darwin-extra-rpath=[ARG]
1909 Specify a runpath directory, additional to those
1910 provided by the compiler
1911 --with-plugin-ld=[ARG] specify the plugin linker
1912 --with-glibc-version=M.N
1913 assume GCC used with glibc version M.N or later
1914 --with-long-double-128 use 128-bit long double by default
1915 --with-long-double-format={ieee,ibm}
1916 Specify whether PowerPC long double uses IEEE or IBM format
1918 --with-gc={page,zone} this option is not supported anymore. It used to
1919 choose the garbage collection mechanism to use with
1920 the compiler
1921 --with-system-zlib use installed libz
1922 --with-linker-hash-style={sysv,gnu,both}
1923 specify the linker hash style
1924 --with-diagnostics-color={never,auto,auto-if-env,always}
1925 specify the default of -fdiagnostics-color option
1926 auto-if-env stands for -fdiagnostics-color=auto if
1927 GCC_COLOR environment variable is present and
1928 -fdiagnostics-color=never otherwise
1929 --with-diagnostics-urls={never,auto,auto-if-env,always}
1930 specify the default of -fdiagnostics-urls option
1931 auto-if-env stands for -fdiagnostics-urls=auto if
1932 GCC_URLS or TERM_URLS environment variable is
1933 present and -fdiagnostics-urls=never otherwise
1935 Some influential environment variables:
1936 CC C compiler command
1937 CFLAGS C compiler flags
1938 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1939 nonstandard directory <lib dir>
1940 LIBS libraries to pass to the linker, e.g. -l<library>
1941 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1942 you have headers in a nonstandard directory <include dir>
1943 CXX C++ compiler command
1944 CXXFLAGS C++ compiler flags
1945 CXXCPP C++ preprocessor
1946 CPP C preprocessor
1947 GMPLIBS How to link GMP
1948 GMPINC How to find GMP include files
1949 ISLLIBS How to link isl
1950 ISLINC How to find isl include files
1952 Use these variables to override the choices made by `configure' or to help
1953 it to find libraries and programs with nonstandard names/locations.
1955 Report bugs to the package provider.
1956 _ACEOF
1957 ac_status=$?
1960 if test "$ac_init_help" = "recursive"; then
1961 # If there are subdirs, report their specific --help.
1962 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1963 test -d "$ac_dir" ||
1964 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1965 continue
1966 ac_builddir=.
1968 case "$ac_dir" in
1969 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1972 # A ".." for each directory in $ac_dir_suffix.
1973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1974 case $ac_top_builddir_sub in
1975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1977 esac ;;
1978 esac
1979 ac_abs_top_builddir=$ac_pwd
1980 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1981 # for backward compatibility:
1982 ac_top_builddir=$ac_top_build_prefix
1984 case $srcdir in
1985 .) # We are building in place.
1986 ac_srcdir=.
1987 ac_top_srcdir=$ac_top_builddir_sub
1988 ac_abs_top_srcdir=$ac_pwd ;;
1989 [\\/]* | ?:[\\/]* ) # Absolute name.
1990 ac_srcdir=$srcdir$ac_dir_suffix;
1991 ac_top_srcdir=$srcdir
1992 ac_abs_top_srcdir=$srcdir ;;
1993 *) # Relative name.
1994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1995 ac_top_srcdir=$ac_top_build_prefix$srcdir
1996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1997 esac
1998 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2000 cd "$ac_dir" || { ac_status=$?; continue; }
2001 # Check for guested configure.
2002 if test -f "$ac_srcdir/configure.gnu"; then
2003 echo &&
2004 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2005 elif test -f "$ac_srcdir/configure"; then
2006 echo &&
2007 $SHELL "$ac_srcdir/configure" --help=recursive
2008 else
2009 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2010 fi || ac_status=$?
2011 cd "$ac_pwd" || { ac_status=$?; break; }
2012 done
2015 test -n "$ac_init_help" && exit $ac_status
2016 if $ac_init_version; then
2017 cat <<\_ACEOF
2018 configure
2019 generated by GNU Autoconf 2.69
2021 Copyright (C) 2012 Free Software Foundation, Inc.
2022 This configure script is free software; the Free Software Foundation
2023 gives unlimited permission to copy, distribute and modify it.
2024 _ACEOF
2025 exit
2028 ## ------------------------ ##
2029 ## Autoconf initialization. ##
2030 ## ------------------------ ##
2032 # ac_fn_c_try_compile LINENO
2033 # --------------------------
2034 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2035 ac_fn_c_try_compile ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 rm -f conftest.$ac_objext
2039 if { { ac_try="$ac_compile"
2040 case "(($ac_try" in
2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2043 esac
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_compile") 2>conftest.err
2047 ac_status=$?
2048 if test -s conftest.err; then
2049 grep -v '^ *+' conftest.err >conftest.er1
2050 cat conftest.er1 >&5
2051 mv -f conftest.er1 conftest.err
2053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054 test $ac_status = 0; } && {
2055 test -z "$ac_c_werror_flag" ||
2056 test ! -s conftest.err
2057 } && test -s conftest.$ac_objext; then :
2058 ac_retval=0
2059 else
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2063 ac_retval=1
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 as_fn_set_status $ac_retval
2068 } # ac_fn_c_try_compile
2070 # ac_fn_cxx_try_compile LINENO
2071 # ----------------------------
2072 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2073 ac_fn_cxx_try_compile ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 rm -f conftest.$ac_objext
2077 if { { ac_try="$ac_compile"
2078 case "(($ac_try" in
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2081 esac
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_compile") 2>conftest.err
2085 ac_status=$?
2086 if test -s conftest.err; then
2087 grep -v '^ *+' conftest.err >conftest.er1
2088 cat conftest.er1 >&5
2089 mv -f conftest.er1 conftest.err
2091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092 test $ac_status = 0; } && {
2093 test -z "$ac_cxx_werror_flag" ||
2094 test ! -s conftest.err
2095 } && test -s conftest.$ac_objext; then :
2096 ac_retval=0
2097 else
2098 $as_echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2101 ac_retval=1
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 as_fn_set_status $ac_retval
2106 } # ac_fn_cxx_try_compile
2108 # ac_fn_cxx_try_cpp LINENO
2109 # ------------------------
2110 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2111 ac_fn_cxx_try_cpp ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if { { ac_try="$ac_cpp conftest.$ac_ext"
2115 case "(($ac_try" in
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2118 esac
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2122 ac_status=$?
2123 if test -s conftest.err; then
2124 grep -v '^ *+' conftest.err >conftest.er1
2125 cat conftest.er1 >&5
2126 mv -f conftest.er1 conftest.err
2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129 test $ac_status = 0; } > conftest.i && {
2130 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2131 test ! -s conftest.err
2132 }; then :
2133 ac_retval=0
2134 else
2135 $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2138 ac_retval=1
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 as_fn_set_status $ac_retval
2143 } # ac_fn_cxx_try_cpp
2145 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2146 # ---------------------------------------------------------
2147 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2148 # the include files in INCLUDES and setting the cache variable VAR
2149 # accordingly.
2150 ac_fn_cxx_check_header_mongrel ()
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 if eval \${$3+:} false; then :
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155 $as_echo_n "checking for $2... " >&6; }
2156 if eval \${$3+:} false; then :
2157 $as_echo_n "(cached) " >&6
2159 eval ac_res=\$$3
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2162 else
2163 # Is the header compilable?
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2165 $as_echo_n "checking $2 usability... " >&6; }
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2169 #include <$2>
2170 _ACEOF
2171 if ac_fn_cxx_try_compile "$LINENO"; then :
2172 ac_header_compiler=yes
2173 else
2174 ac_header_compiler=no
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2178 $as_echo "$ac_header_compiler" >&6; }
2180 # Is the header present?
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2182 $as_echo_n "checking $2 presence... " >&6; }
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2185 #include <$2>
2186 _ACEOF
2187 if ac_fn_cxx_try_cpp "$LINENO"; then :
2188 ac_header_preproc=yes
2189 else
2190 ac_header_preproc=no
2192 rm -f conftest.err conftest.i conftest.$ac_ext
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2194 $as_echo "$ac_header_preproc" >&6; }
2196 # So? What about this header?
2197 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2198 yes:no: )
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2200 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2202 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2204 no:yes:* )
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2206 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2208 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2210 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2212 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2214 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 esac
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 eval "$3=\$ac_header_compiler"
2224 eval ac_res=\$$3
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230 } # ac_fn_cxx_check_header_mongrel
2232 # ac_fn_cxx_try_run LINENO
2233 # ------------------------
2234 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2235 # that executables *can* be run.
2236 ac_fn_cxx_try_run ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 if { { ac_try="$ac_link"
2240 case "(($ac_try" in
2241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2243 esac
2244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2245 $as_echo "$ac_try_echo"; } >&5
2246 (eval "$ac_link") 2>&5
2247 ac_status=$?
2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2250 { { case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2253 esac
2254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2255 $as_echo "$ac_try_echo"; } >&5
2256 (eval "$ac_try") 2>&5
2257 ac_status=$?
2258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259 test $ac_status = 0; }; }; then :
2260 ac_retval=0
2261 else
2262 $as_echo "$as_me: program exited with status $ac_status" >&5
2263 $as_echo "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2266 ac_retval=$ac_status
2268 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 as_fn_set_status $ac_retval
2272 } # ac_fn_cxx_try_run
2274 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2275 # ---------------------------------------------------------
2276 # Tests whether HEADER exists and can be compiled using the include files in
2277 # INCLUDES, setting the cache variable VAR accordingly.
2278 ac_fn_cxx_check_header_compile ()
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if eval \${$3+:} false; then :
2284 $as_echo_n "(cached) " >&6
2285 else
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2289 #include <$2>
2290 _ACEOF
2291 if ac_fn_cxx_try_compile "$LINENO"; then :
2292 eval "$3=yes"
2293 else
2294 eval "$3=no"
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 eval ac_res=\$$3
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300 $as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303 } # ac_fn_cxx_check_header_compile
2305 # ac_fn_c_try_cpp LINENO
2306 # ----------------------
2307 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2308 ac_fn_c_try_cpp ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 if { { ac_try="$ac_cpp conftest.$ac_ext"
2312 case "(($ac_try" in
2313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2314 *) ac_try_echo=$ac_try;;
2315 esac
2316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2317 $as_echo "$ac_try_echo"; } >&5
2318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2319 ac_status=$?
2320 if test -s conftest.err; then
2321 grep -v '^ *+' conftest.err >conftest.er1
2322 cat conftest.er1 >&5
2323 mv -f conftest.er1 conftest.err
2325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2326 test $ac_status = 0; } > conftest.i && {
2327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2328 test ! -s conftest.err
2329 }; then :
2330 ac_retval=0
2331 else
2332 $as_echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 ac_retval=1
2337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338 as_fn_set_status $ac_retval
2340 } # ac_fn_c_try_cpp
2342 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2343 # ----------------------------------------------
2344 # Tries to find the compile-time value of EXPR in a program that includes
2345 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2346 # computed
2347 ac_fn_cxx_compute_int ()
2349 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350 if test "$cross_compiling" = yes; then
2351 # Depending upon the size, compute the lo and hi bounds.
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2356 main ()
2358 static int test_array [1 - 2 * !(($2) >= 0)];
2359 test_array [0] = 0;
2360 return test_array [0];
2363 return 0;
2365 _ACEOF
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2367 ac_lo=0 ac_mid=0
2368 while :; do
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2373 main ()
2375 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2376 test_array [0] = 0;
2377 return test_array [0];
2380 return 0;
2382 _ACEOF
2383 if ac_fn_cxx_try_compile "$LINENO"; then :
2384 ac_hi=$ac_mid; break
2385 else
2386 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2387 if test $ac_lo -le $ac_mid; then
2388 ac_lo= ac_hi=
2389 break
2391 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 done
2395 else
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2400 main ()
2402 static int test_array [1 - 2 * !(($2) < 0)];
2403 test_array [0] = 0;
2404 return test_array [0];
2407 return 0;
2409 _ACEOF
2410 if ac_fn_cxx_try_compile "$LINENO"; then :
2411 ac_hi=-1 ac_mid=-1
2412 while :; do
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2417 main ()
2419 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2420 test_array [0] = 0;
2421 return test_array [0];
2424 return 0;
2426 _ACEOF
2427 if ac_fn_cxx_try_compile "$LINENO"; then :
2428 ac_lo=$ac_mid; break
2429 else
2430 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2431 if test $ac_mid -le $ac_hi; then
2432 ac_lo= ac_hi=
2433 break
2435 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 done
2439 else
2440 ac_lo= ac_hi=
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 # Binary search between lo and hi bounds.
2446 while test "x$ac_lo" != "x$ac_hi"; do
2447 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2452 main ()
2454 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2455 test_array [0] = 0;
2456 return test_array [0];
2459 return 0;
2461 _ACEOF
2462 if ac_fn_cxx_try_compile "$LINENO"; then :
2463 ac_hi=$ac_mid
2464 else
2465 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 done
2469 case $ac_lo in #((
2470 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2471 '') ac_retval=1 ;;
2472 esac
2473 else
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2477 static long int longval () { return $2; }
2478 static unsigned long int ulongval () { return $2; }
2479 #include <stdio.h>
2480 #include <stdlib.h>
2482 main ()
2485 FILE *f = fopen ("conftest.val", "w");
2486 if (! f)
2487 return 1;
2488 if (($2) < 0)
2490 long int i = longval ();
2491 if (i != ($2))
2492 return 1;
2493 fprintf (f, "%ld", i);
2495 else
2497 unsigned long int i = ulongval ();
2498 if (i != ($2))
2499 return 1;
2500 fprintf (f, "%lu", i);
2502 /* Do not output a trailing newline, as this causes \r\n confusion
2503 on some platforms. */
2504 return ferror (f) || fclose (f) != 0;
2507 return 0;
2509 _ACEOF
2510 if ac_fn_cxx_try_run "$LINENO"; then :
2511 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2512 else
2513 ac_retval=1
2515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2516 conftest.$ac_objext conftest.beam conftest.$ac_ext
2517 rm -f conftest.val
2520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2521 as_fn_set_status $ac_retval
2523 } # ac_fn_cxx_compute_int
2525 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2526 # ---------------------------------------------
2527 # Tests whether TYPE exists after having included INCLUDES, setting cache
2528 # variable VAR accordingly.
2529 ac_fn_cxx_check_type ()
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2533 $as_echo_n "checking for $2... " >&6; }
2534 if eval \${$3+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 eval "$3=no"
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2542 main ()
2544 if (sizeof ($2))
2545 return 0;
2547 return 0;
2549 _ACEOF
2550 if ac_fn_cxx_try_compile "$LINENO"; then :
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2555 main ()
2557 if (sizeof (($2)))
2558 return 0;
2560 return 0;
2562 _ACEOF
2563 if ac_fn_cxx_try_compile "$LINENO"; then :
2565 else
2566 eval "$3=yes"
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 eval ac_res=\$$3
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574 $as_echo "$ac_res" >&6; }
2575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2577 } # ac_fn_cxx_check_type
2579 # ac_fn_c_find_intX_t LINENO BITS VAR
2580 # -----------------------------------
2581 # Finds a signed integer type with width BITS, setting cache variable VAR
2582 # accordingly.
2583 ac_fn_c_find_intX_t ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2587 $as_echo_n "checking for int$2_t... " >&6; }
2588 if eval \${$3+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 eval "$3=no"
2592 # Order is important - never check a type that is potentially smaller
2593 # than half of the expected target width.
2594 for ac_type in int$2_t 'int' 'long int' \
2595 'long long int' 'short int' 'signed char'; do
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2598 $ac_includes_default
2599 enum { N = $2 / 2 - 1 };
2601 main ()
2603 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2604 test_array [0] = 0;
2605 return test_array [0];
2608 return 0;
2610 _ACEOF
2611 if ac_fn_cxx_try_compile "$LINENO"; then :
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2614 $ac_includes_default
2615 enum { N = $2 / 2 - 1 };
2617 main ()
2619 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2620 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2621 test_array [0] = 0;
2622 return test_array [0];
2625 return 0;
2627 _ACEOF
2628 if ac_fn_cxx_try_compile "$LINENO"; then :
2630 else
2631 case $ac_type in #(
2632 int$2_t) :
2633 eval "$3=yes" ;; #(
2634 *) :
2635 eval "$3=\$ac_type" ;;
2636 esac
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 if eval test \"x\$"$3"\" = x"no"; then :
2643 else
2644 break
2646 done
2648 eval ac_res=\$$3
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2653 } # ac_fn_c_find_intX_t
2655 # ac_fn_cxx_try_link LINENO
2656 # -------------------------
2657 # Try to link conftest.$ac_ext, and return whether this succeeded.
2658 ac_fn_cxx_try_link ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 rm -f conftest.$ac_objext conftest$ac_exeext
2662 if { { ac_try="$ac_link"
2663 case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666 esac
2667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2668 $as_echo "$ac_try_echo"; } >&5
2669 (eval "$ac_link") 2>conftest.err
2670 ac_status=$?
2671 if test -s conftest.err; then
2672 grep -v '^ *+' conftest.err >conftest.er1
2673 cat conftest.er1 >&5
2674 mv -f conftest.er1 conftest.err
2676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2677 test $ac_status = 0; } && {
2678 test -z "$ac_cxx_werror_flag" ||
2679 test ! -s conftest.err
2680 } && test -s conftest$ac_exeext && {
2681 test "$cross_compiling" = yes ||
2682 test -x conftest$ac_exeext
2683 }; then :
2684 ac_retval=0
2685 else
2686 $as_echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2689 ac_retval=1
2691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2693 # interfere with the next link command; also delete a directory that is
2694 # left behind by Apple's compiler. We do this before executing the actions.
2695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697 as_fn_set_status $ac_retval
2699 } # ac_fn_cxx_try_link
2701 # ac_fn_c_find_uintX_t LINENO BITS VAR
2702 # ------------------------------------
2703 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2704 # accordingly.
2705 ac_fn_c_find_uintX_t ()
2707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2709 $as_echo_n "checking for uint$2_t... " >&6; }
2710 if eval \${$3+:} false; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 eval "$3=no"
2714 # Order is important - never check a type that is potentially smaller
2715 # than half of the expected target width.
2716 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2717 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2720 $ac_includes_default
2722 main ()
2724 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2725 test_array [0] = 0;
2726 return test_array [0];
2729 return 0;
2731 _ACEOF
2732 if ac_fn_cxx_try_compile "$LINENO"; then :
2733 case $ac_type in #(
2734 uint$2_t) :
2735 eval "$3=yes" ;; #(
2736 *) :
2737 eval "$3=\$ac_type" ;;
2738 esac
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 if eval test \"x\$"$3"\" = x"no"; then :
2743 else
2744 break
2746 done
2748 eval ac_res=\$$3
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2750 $as_echo "$ac_res" >&6; }
2751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2753 } # ac_fn_c_find_uintX_t
2755 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2756 # ------------------------------------------------
2757 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2758 ac_fn_cxx_check_header_preproc ()
2760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2762 $as_echo_n "checking for $2... " >&6; }
2763 if eval \${$3+:} false; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2768 #include <$2>
2769 _ACEOF
2770 if ac_fn_cxx_try_cpp "$LINENO"; then :
2771 eval "$3=yes"
2772 else
2773 eval "$3=no"
2775 rm -f conftest.err conftest.i conftest.$ac_ext
2777 eval ac_res=\$$3
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2779 $as_echo "$ac_res" >&6; }
2780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2782 } # ac_fn_cxx_check_header_preproc
2784 # ac_fn_cxx_check_func LINENO FUNC VAR
2785 # ------------------------------------
2786 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2787 ac_fn_cxx_check_func ()
2789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2791 $as_echo_n "checking for $2... " >&6; }
2792 if eval \${$3+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h. */
2797 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2799 #define $2 innocuous_$2
2801 /* System header to define __stub macros and hopefully few prototypes,
2802 which can conflict with char $2 (); below.
2803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2804 <limits.h> exists even on freestanding compilers. */
2806 #ifdef __STDC__
2807 # include <limits.h>
2808 #else
2809 # include <assert.h>
2810 #endif
2812 #undef $2
2814 /* Override any GCC internal prototype to avoid an error.
2815 Use char because int might match the return type of a GCC
2816 builtin and then its argument prototype would still apply. */
2817 #ifdef __cplusplus
2818 extern "C"
2819 #endif
2820 char $2 ();
2821 /* The GNU C library defines this for functions which it implements
2822 to always fail with ENOSYS. Some functions are actually named
2823 something starting with __ and the normal name is an alias. */
2824 #if defined __stub_$2 || defined __stub___$2
2825 choke me
2826 #endif
2829 main ()
2831 return $2 ();
2833 return 0;
2835 _ACEOF
2836 if ac_fn_cxx_try_link "$LINENO"; then :
2837 eval "$3=yes"
2838 else
2839 eval "$3=no"
2841 rm -f core conftest.err conftest.$ac_objext \
2842 conftest$ac_exeext conftest.$ac_ext
2844 eval ac_res=\$$3
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2846 $as_echo "$ac_res" >&6; }
2847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2849 } # ac_fn_cxx_check_func
2851 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2852 # -----------------------------------------------
2853 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2854 # accordingly.
2855 ac_fn_cxx_check_decl ()
2857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2858 as_decl_name=`echo $2|sed 's/ *(.*//'`
2859 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2861 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2862 if eval \${$3+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2869 main ()
2871 #ifndef $as_decl_name
2872 #ifdef __cplusplus
2873 (void) $as_decl_use;
2874 #else
2875 (void) $as_decl_name;
2876 #endif
2877 #endif
2880 return 0;
2882 _ACEOF
2883 if ac_fn_cxx_try_compile "$LINENO"; then :
2884 eval "$3=yes"
2885 else
2886 eval "$3=no"
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890 eval ac_res=\$$3
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2892 $as_echo "$ac_res" >&6; }
2893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2895 } # ac_fn_cxx_check_decl
2897 # ac_fn_c_try_link LINENO
2898 # -----------------------
2899 # Try to link conftest.$ac_ext, and return whether this succeeded.
2900 ac_fn_c_try_link ()
2902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2903 rm -f conftest.$ac_objext conftest$ac_exeext
2904 if { { ac_try="$ac_link"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_link") 2>conftest.err
2912 ac_status=$?
2913 if test -s conftest.err; then
2914 grep -v '^ *+' conftest.err >conftest.er1
2915 cat conftest.er1 >&5
2916 mv -f conftest.er1 conftest.err
2918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2919 test $ac_status = 0; } && {
2920 test -z "$ac_c_werror_flag" ||
2921 test ! -s conftest.err
2922 } && test -s conftest$ac_exeext && {
2923 test "$cross_compiling" = yes ||
2924 test -x conftest$ac_exeext
2925 }; then :
2926 ac_retval=0
2927 else
2928 $as_echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 ac_retval=1
2933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2935 # interfere with the next link command; also delete a directory that is
2936 # left behind by Apple's compiler. We do this before executing the actions.
2937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2939 as_fn_set_status $ac_retval
2941 } # ac_fn_c_try_link
2943 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2944 # ----------------------------------------------
2945 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2946 ac_fn_c_check_header_preproc ()
2948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2950 $as_echo_n "checking for $2... " >&6; }
2951 if eval \${$3+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h. */
2956 #include <$2>
2957 _ACEOF
2958 if ac_fn_c_try_cpp "$LINENO"; then :
2959 eval "$3=yes"
2960 else
2961 eval "$3=no"
2963 rm -f conftest.err conftest.i conftest.$ac_ext
2965 eval ac_res=\$$3
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2967 $as_echo "$ac_res" >&6; }
2968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2970 } # ac_fn_c_check_header_preproc
2972 # ac_fn_c_check_func LINENO FUNC VAR
2973 # ----------------------------------
2974 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2975 ac_fn_c_check_func ()
2977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2979 $as_echo_n "checking for $2... " >&6; }
2980 if eval \${$3+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2984 /* end confdefs.h. */
2985 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2987 #define $2 innocuous_$2
2989 /* System header to define __stub macros and hopefully few prototypes,
2990 which can conflict with char $2 (); below.
2991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2992 <limits.h> exists even on freestanding compilers. */
2994 #ifdef __STDC__
2995 # include <limits.h>
2996 #else
2997 # include <assert.h>
2998 #endif
3000 #undef $2
3002 /* Override any GCC internal prototype to avoid an error.
3003 Use char because int might match the return type of a GCC
3004 builtin and then its argument prototype would still apply. */
3005 #ifdef __cplusplus
3006 extern "C"
3007 #endif
3008 char $2 ();
3009 /* The GNU C library defines this for functions which it implements
3010 to always fail with ENOSYS. Some functions are actually named
3011 something starting with __ and the normal name is an alias. */
3012 #if defined __stub_$2 || defined __stub___$2
3013 choke me
3014 #endif
3017 main ()
3019 return $2 ();
3021 return 0;
3023 _ACEOF
3024 if ac_fn_c_try_link "$LINENO"; then :
3025 eval "$3=yes"
3026 else
3027 eval "$3=no"
3029 rm -f core conftest.err conftest.$ac_objext \
3030 conftest$ac_exeext conftest.$ac_ext
3032 eval ac_res=\$$3
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3034 $as_echo "$ac_res" >&6; }
3035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3037 } # ac_fn_c_check_func
3038 cat >config.log <<_ACEOF
3039 This file contains any messages produced by compilers while
3040 running configure, to aid debugging if configure makes a mistake.
3042 It was created by $as_me, which was
3043 generated by GNU Autoconf 2.69. Invocation command line was
3045 $ $0 $@
3047 _ACEOF
3048 exec 5>>config.log
3050 cat <<_ASUNAME
3051 ## --------- ##
3052 ## Platform. ##
3053 ## --------- ##
3055 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3056 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3057 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3058 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3059 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3061 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3062 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3064 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3065 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3066 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3067 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3068 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3069 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3070 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3072 _ASUNAME
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 $as_echo "PATH: $as_dir"
3080 done
3081 IFS=$as_save_IFS
3083 } >&5
3085 cat >&5 <<_ACEOF
3088 ## ----------- ##
3089 ## Core tests. ##
3090 ## ----------- ##
3092 _ACEOF
3095 # Keep a trace of the command line.
3096 # Strip out --no-create and --no-recursion so they do not pile up.
3097 # Strip out --silent because we don't want to record it for future runs.
3098 # Also quote any args containing shell meta-characters.
3099 # Make two passes to allow for proper duplicate-argument suppression.
3100 ac_configure_args=
3101 ac_configure_args0=
3102 ac_configure_args1=
3103 ac_must_keep_next=false
3104 for ac_pass in 1 2
3106 for ac_arg
3108 case $ac_arg in
3109 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3111 | -silent | --silent | --silen | --sile | --sil)
3112 continue ;;
3113 *\'*)
3114 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3115 esac
3116 case $ac_pass in
3117 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3119 as_fn_append ac_configure_args1 " '$ac_arg'"
3120 if test $ac_must_keep_next = true; then
3121 ac_must_keep_next=false # Got value, back to normal.
3122 else
3123 case $ac_arg in
3124 *=* | --config-cache | -C | -disable-* | --disable-* \
3125 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3126 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3127 | -with-* | --with-* | -without-* | --without-* | --x)
3128 case "$ac_configure_args0 " in
3129 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3130 esac
3132 -* ) ac_must_keep_next=true ;;
3133 esac
3135 as_fn_append ac_configure_args " '$ac_arg'"
3137 esac
3138 done
3139 done
3140 { ac_configure_args0=; unset ac_configure_args0;}
3141 { ac_configure_args1=; unset ac_configure_args1;}
3143 # When interrupted or exit'd, cleanup temporary files, and complete
3144 # config.log. We remove comments because anyway the quotes in there
3145 # would cause problems or look ugly.
3146 # WARNING: Use '\'' to represent an apostrophe within the trap.
3147 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3148 trap 'exit_status=$?
3149 # Save into config.log some information that might help in debugging.
3151 echo
3153 $as_echo "## ---------------- ##
3154 ## Cache variables. ##
3155 ## ---------------- ##"
3156 echo
3157 # The following way of writing the cache mishandles newlines in values,
3159 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3160 eval ac_val=\$$ac_var
3161 case $ac_val in #(
3162 *${as_nl}*)
3163 case $ac_var in #(
3164 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3165 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3166 esac
3167 case $ac_var in #(
3168 _ | IFS | as_nl) ;; #(
3169 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3170 *) { eval $ac_var=; unset $ac_var;} ;;
3171 esac ;;
3172 esac
3173 done
3174 (set) 2>&1 |
3175 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3176 *${as_nl}ac_space=\ *)
3177 sed -n \
3178 "s/'\''/'\''\\\\'\'''\''/g;
3179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3180 ;; #(
3182 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3184 esac |
3185 sort
3187 echo
3189 $as_echo "## ----------------- ##
3190 ## Output variables. ##
3191 ## ----------------- ##"
3192 echo
3193 for ac_var in $ac_subst_vars
3195 eval ac_val=\$$ac_var
3196 case $ac_val in
3197 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3198 esac
3199 $as_echo "$ac_var='\''$ac_val'\''"
3200 done | sort
3201 echo
3203 if test -n "$ac_subst_files"; then
3204 $as_echo "## ------------------- ##
3205 ## File substitutions. ##
3206 ## ------------------- ##"
3207 echo
3208 for ac_var in $ac_subst_files
3210 eval ac_val=\$$ac_var
3211 case $ac_val in
3212 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3213 esac
3214 $as_echo "$ac_var='\''$ac_val'\''"
3215 done | sort
3216 echo
3219 if test -s confdefs.h; then
3220 $as_echo "## ----------- ##
3221 ## confdefs.h. ##
3222 ## ----------- ##"
3223 echo
3224 cat confdefs.h
3225 echo
3227 test "$ac_signal" != 0 &&
3228 $as_echo "$as_me: caught signal $ac_signal"
3229 $as_echo "$as_me: exit $exit_status"
3230 } >&5
3231 rm -f core *.core core.conftest.* &&
3232 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3233 exit $exit_status
3235 for ac_signal in 1 2 13 15; do
3236 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3237 done
3238 ac_signal=0
3240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3241 rm -f -r conftest* confdefs.h
3243 $as_echo "/* confdefs.h */" > confdefs.h
3245 # Predefined preprocessor variables.
3247 cat >>confdefs.h <<_ACEOF
3248 #define PACKAGE_NAME "$PACKAGE_NAME"
3249 _ACEOF
3251 cat >>confdefs.h <<_ACEOF
3252 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3253 _ACEOF
3255 cat >>confdefs.h <<_ACEOF
3256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3257 _ACEOF
3259 cat >>confdefs.h <<_ACEOF
3260 #define PACKAGE_STRING "$PACKAGE_STRING"
3261 _ACEOF
3263 cat >>confdefs.h <<_ACEOF
3264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3265 _ACEOF
3267 cat >>confdefs.h <<_ACEOF
3268 #define PACKAGE_URL "$PACKAGE_URL"
3269 _ACEOF
3272 # Let the site file select an alternate cache file if it wants to.
3273 # Prefer an explicitly selected file to automatically selected ones.
3274 ac_site_file1=NONE
3275 ac_site_file2=NONE
3276 if test -n "$CONFIG_SITE"; then
3277 # We do not want a PATH search for config.site.
3278 case $CONFIG_SITE in #((
3279 -*) ac_site_file1=./$CONFIG_SITE;;
3280 */*) ac_site_file1=$CONFIG_SITE;;
3281 *) ac_site_file1=./$CONFIG_SITE;;
3282 esac
3283 elif test "x$prefix" != xNONE; then
3284 ac_site_file1=$prefix/share/config.site
3285 ac_site_file2=$prefix/etc/config.site
3286 else
3287 ac_site_file1=$ac_default_prefix/share/config.site
3288 ac_site_file2=$ac_default_prefix/etc/config.site
3290 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3292 test "x$ac_site_file" = xNONE && continue
3293 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3295 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3296 sed 's/^/| /' "$ac_site_file" >&5
3297 . "$ac_site_file" \
3298 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $? "failed to load site script $ac_site_file
3301 See \`config.log' for more details" "$LINENO" 5; }
3303 done
3305 if test -r "$cache_file"; then
3306 # Some versions of bash will fail to source /dev/null (special files
3307 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3308 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3310 $as_echo "$as_me: loading cache $cache_file" >&6;}
3311 case $cache_file in
3312 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3313 *) . "./$cache_file";;
3314 esac
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3318 $as_echo "$as_me: creating cache $cache_file" >&6;}
3319 >$cache_file
3322 gt_needs="$gt_needs "
3323 # Check that the precious variables saved in the cache have kept the same
3324 # value.
3325 ac_cache_corrupted=false
3326 for ac_var in $ac_precious_vars; do
3327 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3328 eval ac_new_set=\$ac_env_${ac_var}_set
3329 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3330 eval ac_new_val=\$ac_env_${ac_var}_value
3331 case $ac_old_set,$ac_new_set in
3332 set,)
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3334 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3335 ac_cache_corrupted=: ;;
3336 ,set)
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3338 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3339 ac_cache_corrupted=: ;;
3340 ,);;
3342 if test "x$ac_old_val" != "x$ac_new_val"; then
3343 # differences in whitespace do not lead to failure.
3344 ac_old_val_w=`echo x $ac_old_val`
3345 ac_new_val_w=`echo x $ac_new_val`
3346 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3348 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3349 ac_cache_corrupted=:
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3352 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3353 eval $ac_var=\$ac_old_val
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3356 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3358 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3359 fi;;
3360 esac
3361 # Pass precious variables to config.status.
3362 if test "$ac_new_set" = set; then
3363 case $ac_new_val in
3364 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3365 *) ac_arg=$ac_var=$ac_new_val ;;
3366 esac
3367 case " $ac_configure_args " in
3368 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3369 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3370 esac
3372 done
3373 if $ac_cache_corrupted; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3377 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3378 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3380 ## -------------------- ##
3381 ## Main body of script. ##
3382 ## -------------------- ##
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3399 gcc_version=`cat $srcdir/BASE-VER`
3401 # Determine the host, build, and target systems
3402 ac_aux_dir=
3403 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3404 if test -f "$ac_dir/install-sh"; then
3405 ac_aux_dir=$ac_dir
3406 ac_install_sh="$ac_aux_dir/install-sh -c"
3407 break
3408 elif test -f "$ac_dir/install.sh"; then
3409 ac_aux_dir=$ac_dir
3410 ac_install_sh="$ac_aux_dir/install.sh -c"
3411 break
3412 elif test -f "$ac_dir/shtool"; then
3413 ac_aux_dir=$ac_dir
3414 ac_install_sh="$ac_aux_dir/shtool install -c"
3415 break
3417 done
3418 if test -z "$ac_aux_dir"; then
3419 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3422 # These three variables are undocumented and unsupported,
3423 # and are intended to be withdrawn in a future Autoconf release.
3424 # They can cause serious problems if a builder's source tree is in a directory
3425 # whose full name contains unusual characters.
3426 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3427 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3428 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3431 # Make sure we can run config.sub.
3432 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3433 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3436 $as_echo_n "checking build system type... " >&6; }
3437 if ${ac_cv_build+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 ac_build_alias=$build_alias
3441 test "x$ac_build_alias" = x &&
3442 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3443 test "x$ac_build_alias" = x &&
3444 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3445 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3450 $as_echo "$ac_cv_build" >&6; }
3451 case $ac_cv_build in
3452 *-*-*) ;;
3453 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3454 esac
3455 build=$ac_cv_build
3456 ac_save_IFS=$IFS; IFS='-'
3457 set x $ac_cv_build
3458 shift
3459 build_cpu=$1
3460 build_vendor=$2
3461 shift; shift
3462 # Remember, the first character of IFS is used to create $*,
3463 # except with old shells:
3464 build_os=$*
3465 IFS=$ac_save_IFS
3466 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3470 $as_echo_n "checking host system type... " >&6; }
3471 if ${ac_cv_host+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 if test "x$host_alias" = x; then
3475 ac_cv_host=$ac_cv_build
3476 else
3477 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3478 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3483 $as_echo "$ac_cv_host" >&6; }
3484 case $ac_cv_host in
3485 *-*-*) ;;
3486 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3487 esac
3488 host=$ac_cv_host
3489 ac_save_IFS=$IFS; IFS='-'
3490 set x $ac_cv_host
3491 shift
3492 host_cpu=$1
3493 host_vendor=$2
3494 shift; shift
3495 # Remember, the first character of IFS is used to create $*,
3496 # except with old shells:
3497 host_os=$*
3498 IFS=$ac_save_IFS
3499 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3503 $as_echo_n "checking target system type... " >&6; }
3504 if ${ac_cv_target+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test "x$target_alias" = x; then
3508 ac_cv_target=$ac_cv_host
3509 else
3510 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3516 $as_echo "$ac_cv_target" >&6; }
3517 case $ac_cv_target in
3518 *-*-*) ;;
3519 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3520 esac
3521 target=$ac_cv_target
3522 ac_save_IFS=$IFS; IFS='-'
3523 set x $ac_cv_target
3524 shift
3525 target_cpu=$1
3526 target_vendor=$2
3527 shift; shift
3528 # Remember, the first character of IFS is used to create $*,
3529 # except with old shells:
3530 target_os=$*
3531 IFS=$ac_save_IFS
3532 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3535 # The aliases save the names the user supplied, while $host etc.
3536 # will get canonicalized.
3537 test -n "$target_alias" &&
3538 test "$program_prefix$program_suffix$program_transform_name" = \
3539 NONENONEs,x,x, &&
3540 program_prefix=${target_alias}-
3542 # Determine the noncanonical host name, for Ada.
3543 case ${build_alias} in
3544 "") build_noncanonical=${build} ;;
3545 *) build_noncanonical=${build_alias} ;;
3546 esac
3548 case ${host_alias} in
3549 "") host_noncanonical=${build_noncanonical} ;;
3550 *) host_noncanonical=${host_alias} ;;
3551 esac
3556 # Determine the noncanonical target name, for directory use.
3557 case ${target_alias} in
3558 "") target_noncanonical=${host_noncanonical} ;;
3559 *) target_noncanonical=${target_alias} ;;
3560 esac
3565 # Used for constructing correct paths for offload compilers.
3566 real_target_noncanonical=${target_noncanonical}
3567 accel_dir_suffix=
3569 # Determine the target- and build-specific subdirectories
3571 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3572 # have matching libraries, they should use host libraries: Makefile.tpl
3573 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3574 # However, they still use the build modules, because the corresponding
3575 # host modules (e.g. bison) are only built for the host when bootstrap
3576 # finishes. So:
3577 # - build_subdir is where we find build modules, and never changes.
3578 # - build_libsubdir is where we find build libraries, and can be overridden.
3580 # Prefix 'build-' so this never conflicts with target_subdir.
3581 build_subdir="build-${build_noncanonical}"
3583 # Check whether --with-build-libsubdir was given.
3584 if test "${with_build_libsubdir+set}" = set; then :
3585 withval=$with_build_libsubdir; build_libsubdir="$withval"
3586 else
3587 build_libsubdir="$build_subdir"
3590 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3591 if ( test $srcdir = . && test -d gcc ) \
3592 || test -d $srcdir/../host-${host_noncanonical}; then
3593 host_subdir="host-${host_noncanonical}"
3594 else
3595 host_subdir=.
3597 # No prefix.
3598 target_subdir=${target_noncanonical}
3601 # Set program_transform_name
3602 test "$program_prefix" != NONE &&
3603 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3604 # Use a double $ so make ignores it.
3605 test "$program_suffix" != NONE &&
3606 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3607 # Double any \ or $.
3608 # By default was `s,x,x', remove it if useless.
3609 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3610 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3613 # Check for bogus environment variables.
3614 # Test if LIBRARY_PATH contains the notation for the current directory
3615 # since this would lead to problems installing/building glibc.
3616 # LIBRARY_PATH contains the current directory if one of the following
3617 # is true:
3618 # - one of the terminals (":" and ";") is the first or last sign
3619 # - two terminals occur directly after each other
3620 # - the path contains an element with a dot in it
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3622 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3623 case ${LIBRARY_PATH} in
3624 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3625 library_path_setting="contains current directory"
3628 library_path_setting="ok"
3630 esac
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3632 $as_echo "$library_path_setting" >&6; }
3633 if test "$library_path_setting" != "ok"; then
3634 as_fn_error $? "
3635 *** LIBRARY_PATH shouldn't contain the current directory when
3636 *** building gcc. Please change the environment variable
3637 *** and run configure again." "$LINENO" 5
3640 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3641 # since this would lead to problems installing/building glibc.
3642 # GCC_EXEC_PREFIX contains the current directory if one of the following
3643 # is true:
3644 # - one of the terminals (":" and ";") is the first or last sign
3645 # - two terminals occur directly after each other
3646 # - the path contains an element with a dot in it
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3648 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3649 case ${GCC_EXEC_PREFIX} in
3650 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3651 gcc_exec_prefix_setting="contains current directory"
3654 gcc_exec_prefix_setting="ok"
3656 esac
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3658 $as_echo "$gcc_exec_prefix_setting" >&6; }
3659 if test "$gcc_exec_prefix_setting" != "ok"; then
3660 as_fn_error $? "
3661 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3662 *** building gcc. Please change the environment variable
3663 *** and run configure again." "$LINENO" 5
3666 # -----------
3667 # Directories
3668 # -----------
3670 # Specify the local prefix
3671 local_prefix=
3673 # Check whether --with-local-prefix was given.
3674 if test "${with_local_prefix+set}" = set; then :
3675 withval=$with_local_prefix; case "${withval}" in
3676 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3677 no) ;;
3678 *) local_prefix=$with_local_prefix ;;
3679 esac
3683 # Default local prefix if it is empty
3684 if test x$local_prefix = x; then
3685 local_prefix=/usr/local
3689 # Check whether --with-native-system-header-dir was given.
3690 if test "${with_native_system_header_dir+set}" = set; then :
3691 withval=$with_native_system_header_dir;
3692 case ${with_native_system_header_dir} in
3693 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3694 /* | [A-Za-z]:[\\/]*) ;;
3695 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3696 esac
3697 configured_native_system_header_dir="${withval}"
3699 else
3700 configured_native_system_header_dir=
3705 # Check whether --with-build-sysroot was given.
3706 if test "${with_build_sysroot+set}" = set; then :
3707 withval=$with_build_sysroot; if test x"$withval" != x ; then
3708 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3710 else
3711 SYSROOT_CFLAGS_FOR_TARGET=
3716 if test "x$prefix" = xNONE; then
3717 test_prefix=/usr/local
3718 else
3719 test_prefix=$prefix
3721 if test "x$exec_prefix" = xNONE; then
3722 test_exec_prefix=$test_prefix
3723 else
3724 test_exec_prefix=$exec_prefix
3728 # Check whether --with-sysroot was given.
3729 if test "${with_sysroot+set}" = set; then :
3730 withval=$with_sysroot;
3731 case ${with_sysroot} in
3732 /) ;;
3733 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3734 esac
3735 case ${with_sysroot} in
3736 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3737 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3738 esac
3740 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3741 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3743 case ${TARGET_SYSTEM_ROOT} in
3744 "${test_prefix}"|"${test_prefix}/"*|\
3745 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3746 '${prefix}'|'${prefix}/'*|\
3747 '${exec_prefix}'|'${exec_prefix}/'*)
3748 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3749 TARGET_SYSTEM_ROOT_DEFINE="$t"
3751 esac
3753 else
3755 TARGET_SYSTEM_ROOT=
3756 TARGET_SYSTEM_ROOT_DEFINE=
3757 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3765 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3766 # passed in by the toplevel make and thus we'd get different behavior
3767 # depending on where we built the sources.
3768 gcc_gxx_include_dir=
3769 # Specify the g++ header file directory
3771 # Check whether --with-gxx-include-dir was given.
3772 if test "${with_gxx_include_dir+set}" = set; then :
3773 withval=$with_gxx_include_dir; case "${withval}" in
3774 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3775 no) ;;
3776 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3777 esac
3781 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3782 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3783 # relative to the sysroot.
3784 gcc_gxx_include_dir_add_sysroot=0
3786 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3787 if test x${gcc_gxx_include_dir} = x; then
3788 if test x${enable_version_specific_runtime_libs} = xyes; then
3789 gcc_gxx_include_dir='${libsubdir}/include/c++'
3790 else
3791 libstdcxx_incdir='include/c++/$(version)'
3792 if test x$host != x$target; then
3793 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3795 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3797 elif test "${with_sysroot+set}" = set; then
3798 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3799 if test "${gcc_gxx_without_sysroot}"; then
3800 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3801 gcc_gxx_include_dir_add_sysroot=1
3805 # Configuration for an alternate set of C++ headers.
3806 gcc_gxx_libcxx_include_dir=
3807 # Specify the alternate g++ header file directory
3809 # Check whether --with-gxx-libcxx-include-dir was given.
3810 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3811 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3812 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3813 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3814 esac
3818 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3819 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3820 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3821 # based on the platform (to be available on platform versions where it is the
3822 # default for the system tools). We also use a default path within the compiler
3823 # install tree.
3824 # Otherwise, we use the path provided and enable the stdlib option.
3825 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3826 # check to see if the latter starts with the former and, upon success, compute
3827 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3828 gcc_gxx_libcxx_include_dir_add_sysroot=0
3829 gcc_enable_stdlib_opt=0
3830 if test x${gcc_gxx_libcxx_include_dir} != x; then
3831 if test x${gcc_gxx_libcxx_include_dir} = xno; then
3832 # set defaults for the dir, but the option is disabled anyway.
3833 gcc_gxx_libcxx_include_dir=
3834 else
3835 gcc_enable_stdlib_opt=1
3837 else
3838 case $target in
3839 *-darwin1[1-9]* | *-darwin2*)
3840 # Default this on for Darwin versions which default to libcxx,
3841 # and embed the path in the compiler install so that we get a
3842 # self-contained toolchain.
3843 gcc_enable_stdlib_opt=1
3845 *) ;;
3846 esac
3849 cat >>confdefs.h <<_ACEOF
3850 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3851 _ACEOF
3854 # Sysroot behaviour as for gxx-include-dir
3855 if test x${gcc_gxx_libcxx_include_dir} = x; then
3856 # default path,embedded in the compiler tree.
3857 libcxx_incdir='include/c++/v1'
3858 if test x${enable_version_specific_runtime_libs} = xyes; then
3859 gcc_gxx_libcxx_include_dir='${libsubdir}/$libcxx_incdir'
3860 else
3861 if test x$host != x$target; then
3862 libcxx_incdir="$target_alias/$libcxx_incdir"
3864 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3866 elif test "${with_sysroot+set}" = set; then
3867 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3868 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3869 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3870 gcc_gxx_libcxx_include_dir_add_sysroot=1
3875 # Check whether --with-cpp_install_dir was given.
3876 if test "${with_cpp_install_dir+set}" = set; then :
3877 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3878 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3879 elif test x$withval != xno; then
3880 cpp_install_dir=$withval
3885 # We would like to our source tree to be readonly. However when releases or
3886 # pre-releases are generated, the flex/bison generated files as well as the
3887 # various formats of manuals need to be included along with the rest of the
3888 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3889 # just that.
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3892 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3893 # Check whether --enable-generated-files-in-srcdir was given.
3894 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3895 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3896 else
3897 generated_files_in_srcdir=no
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3902 $as_echo "$generated_files_in_srcdir" >&6; }
3904 if test "$generated_files_in_srcdir" = "yes"; then
3905 GENINSRC=''
3906 else
3907 GENINSRC='#'
3911 # -------------------
3912 # Find default linker
3913 # -------------------
3915 # With GNU ld
3917 # Check whether --with-gnu-ld was given.
3918 if test "${with_gnu_ld+set}" = set; then :
3919 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3920 else
3921 gnu_ld_flag=no
3925 case $target in
3926 *darwin*)
3927 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3928 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3931 ld64_flag=no
3932 dsymutil_flag=no
3934 esac
3936 # With pre-defined ld
3938 # Check whether --with-ld was given.
3939 if test "${with_ld+set}" = set; then :
3940 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3943 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3944 if test ! -x "$DEFAULT_LINKER"; then
3945 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3946 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3947 gnu_ld_flag=yes
3948 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3949 ld64_flag=yes
3952 cat >>confdefs.h <<_ACEOF
3953 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3954 _ACEOF
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3959 $as_echo_n "checking whether a default linker was specified... " >&6; }
3960 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3961 if test x"$gnu_ld_flag" = x"no"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3963 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3964 else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3966 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3968 else
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3973 # With demangler in GNU ld
3975 # Check whether --with-demangler-in-ld was given.
3976 if test "${with_demangler_in_ld+set}" = set; then :
3977 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3978 else
3979 demangler_in_ld=yes
3983 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3985 # Check whether --with-dsymutil was given.
3986 if test "${with_dsymutil+set}" = set; then :
3987 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3991 dsymutil_vers=
3992 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3993 if test ! -x "$DEFAULT_DSYMUTIL"; then
3994 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3995 else
3996 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3997 dsymutil_flag=yes
4001 cat >>confdefs.h <<_ACEOF
4002 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
4003 _ACEOF
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
4008 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
4009 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
4011 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4017 # ----------------------
4018 # Find default assembler
4019 # ----------------------
4021 # With GNU as
4023 # Check whether --with-gnu-as was given.
4024 if test "${with_gnu_as+set}" = set; then :
4025 withval=$with_gnu_as; gas_flag="$with_gnu_as"
4026 else
4027 gas_flag=no
4032 # Check whether --with-as was given.
4033 if test "${with_as+set}" = set; then :
4034 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
4037 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4038 if test ! -x "$DEFAULT_ASSEMBLER"; then
4039 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4040 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
4041 gas_flag=yes
4044 cat >>confdefs.h <<_ACEOF
4045 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4046 _ACEOF
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4051 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4052 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4053 if test x"$gas_flag" = x"no"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4055 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4056 else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4058 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4065 # ---------------
4066 # Find C compiler
4067 # ---------------
4069 # If a non-executable a.out is present (e.g. created by GNU as above even if
4070 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4071 # file, even when creating an executable, so an execution test fails.
4072 # Remove possible default executable files to avoid this.
4074 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4075 # Autoconf includes it.
4076 rm -f a.out a.exe b.out
4078 # Find the native compiler
4079 ac_ext=c
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084 if test -n "$ac_tool_prefix"; then
4085 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4086 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if ${ac_cv_prog_CC+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if test -n "$CC"; then
4093 ac_cv_prog_CC="$CC" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 break 2
4106 done
4107 done
4108 IFS=$as_save_IFS
4112 CC=$ac_cv_prog_CC
4113 if test -n "$CC"; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4115 $as_echo "$CC" >&6; }
4116 else
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4123 if test -z "$ac_cv_prog_CC"; then
4124 ac_ct_CC=$CC
4125 # Extract the first word of "gcc", so it can be a program name with args.
4126 set dummy gcc; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if test -n "$ac_ct_CC"; then
4133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_ac_ct_CC="gcc"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4146 done
4147 done
4148 IFS=$as_save_IFS
4152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4153 if test -n "$ac_ct_CC"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4155 $as_echo "$ac_ct_CC" >&6; }
4156 else
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4161 if test "x$ac_ct_CC" = x; then
4162 CC=""
4163 else
4164 case $cross_compiling:$ac_tool_warned in
4165 yes:)
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168 ac_tool_warned=yes ;;
4169 esac
4170 CC=$ac_ct_CC
4172 else
4173 CC="$ac_cv_prog_CC"
4176 if test -z "$CC"; then
4177 if test -n "$ac_tool_prefix"; then
4178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4179 set dummy ${ac_tool_prefix}cc; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_CC+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 if test -n "$CC"; then
4186 ac_cv_prog_CC="$CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_CC="${ac_tool_prefix}cc"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4199 done
4200 done
4201 IFS=$as_save_IFS
4205 CC=$ac_cv_prog_CC
4206 if test -n "$CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208 $as_echo "$CC" >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4217 if test -z "$CC"; then
4218 # Extract the first word of "cc", so it can be a program name with args.
4219 set dummy cc; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_CC+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -n "$CC"; then
4226 ac_cv_prog_CC="$CC" # Let the user override the test.
4227 else
4228 ac_prog_rejected=no
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4237 ac_prog_rejected=yes
4238 continue
4240 ac_cv_prog_CC="cc"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4244 done
4245 done
4246 IFS=$as_save_IFS
4248 if test $ac_prog_rejected = yes; then
4249 # We found a bogon in the path, so make sure we never use it.
4250 set dummy $ac_cv_prog_CC
4251 shift
4252 if test $# != 0; then
4253 # We chose a different compiler from the bogus one.
4254 # However, it has the same basename, so the bogon will be chosen
4255 # first if we set CC to just the basename; use the full file name.
4256 shift
4257 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4262 CC=$ac_cv_prog_CC
4263 if test -n "$CC"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4265 $as_echo "$CC" >&6; }
4266 else
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4273 if test -z "$CC"; then
4274 if test -n "$ac_tool_prefix"; then
4275 for ac_prog in cl.exe
4277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_CC+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 if test -n "$CC"; then
4285 ac_cv_prog_CC="$CC" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4298 done
4299 done
4300 IFS=$as_save_IFS
4304 CC=$ac_cv_prog_CC
4305 if test -n "$CC"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307 $as_echo "$CC" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4314 test -n "$CC" && break
4315 done
4317 if test -z "$CC"; then
4318 ac_ct_CC=$CC
4319 for ac_prog in cl.exe
4321 # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy $ac_prog; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -n "$ac_ct_CC"; then
4329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_CC="$ac_prog"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4342 done
4343 done
4344 IFS=$as_save_IFS
4348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4349 if test -n "$ac_ct_CC"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4351 $as_echo "$ac_ct_CC" >&6; }
4352 else
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4358 test -n "$ac_ct_CC" && break
4359 done
4361 if test "x$ac_ct_CC" = x; then
4362 CC=""
4363 else
4364 case $cross_compiling:$ac_tool_warned in
4365 yes:)
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4368 ac_tool_warned=yes ;;
4369 esac
4370 CC=$ac_ct_CC
4377 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4379 as_fn_error $? "no acceptable C compiler found in \$PATH
4380 See \`config.log' for more details" "$LINENO" 5; }
4382 # Provide some information about the compiler.
4383 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4384 set X $ac_compile
4385 ac_compiler=$2
4386 for ac_option in --version -v -V -qversion; do
4387 { { ac_try="$ac_compiler $ac_option >&5"
4388 case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 $as_echo "$ac_try_echo"; } >&5
4394 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4395 ac_status=$?
4396 if test -s conftest.err; then
4397 sed '10a\
4398 ... rest of stderr output deleted ...
4399 10q' conftest.err >conftest.er1
4400 cat conftest.er1 >&5
4402 rm -f conftest.er1 conftest.err
4403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404 test $ac_status = 0; }
4405 done
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4411 main ()
4415 return 0;
4417 _ACEOF
4418 ac_clean_files_save=$ac_clean_files
4419 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4420 # Try to create an executable without -o first, disregard a.out.
4421 # It will help us diagnose broken compilers, and finding out an intuition
4422 # of exeext.
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4424 $as_echo_n "checking whether the C compiler works... " >&6; }
4425 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4427 # The possible output files:
4428 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4430 ac_rmfiles=
4431 for ac_file in $ac_files
4433 case $ac_file in
4434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4435 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4436 esac
4437 done
4438 rm -f $ac_rmfiles
4440 if { { ac_try="$ac_link_default"
4441 case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444 esac
4445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 $as_echo "$ac_try_echo"; } >&5
4447 (eval "$ac_link_default") 2>&5
4448 ac_status=$?
4449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450 test $ac_status = 0; }; then :
4451 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4452 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4453 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4454 # so that the user can short-circuit this test for compilers unknown to
4455 # Autoconf.
4456 for ac_file in $ac_files ''
4458 test -f "$ac_file" || continue
4459 case $ac_file in
4460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4462 [ab].out )
4463 # We found the default executable, but exeext='' is most
4464 # certainly right.
4465 break;;
4466 *.* )
4467 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4468 then :; else
4469 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4471 # We set ac_cv_exeext here because the later test for it is not
4472 # safe: cross compilers may not add the suffix if given an `-o'
4473 # argument, so we may need to know it at that point already.
4474 # Even if this section looks crufty: it has the advantage of
4475 # actually working.
4476 break;;
4478 break;;
4479 esac
4480 done
4481 test "$ac_cv_exeext" = no && ac_cv_exeext=
4483 else
4484 ac_file=''
4486 if test -z "$ac_file"; then :
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 $as_echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4494 as_fn_error 77 "C compiler cannot create executables
4495 See \`config.log' for more details" "$LINENO" 5; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4498 $as_echo "yes" >&6; }
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4501 $as_echo_n "checking for C compiler default output file name... " >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4503 $as_echo "$ac_file" >&6; }
4504 ac_exeext=$ac_cv_exeext
4506 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4507 ac_clean_files=$ac_clean_files_save
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4509 $as_echo_n "checking for suffix of executables... " >&6; }
4510 if { { ac_try="$ac_link"
4511 case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514 esac
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_link") 2>&5
4518 ac_status=$?
4519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }; then :
4521 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4522 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4523 # work properly (i.e., refer to `conftest.exe'), while it won't with
4524 # `rm'.
4525 for ac_file in conftest.exe conftest conftest.*; do
4526 test -f "$ac_file" || continue
4527 case $ac_file in
4528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4529 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4530 break;;
4531 * ) break;;
4532 esac
4533 done
4534 else
4535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4537 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4538 See \`config.log' for more details" "$LINENO" 5; }
4540 rm -f conftest conftest$ac_cv_exeext
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4542 $as_echo "$ac_cv_exeext" >&6; }
4544 rm -f conftest.$ac_ext
4545 EXEEXT=$ac_cv_exeext
4546 ac_exeext=$EXEEXT
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4549 #include <stdio.h>
4551 main ()
4553 FILE *f = fopen ("conftest.out", "w");
4554 return ferror (f) || fclose (f) != 0;
4557 return 0;
4559 _ACEOF
4560 ac_clean_files="$ac_clean_files conftest.out"
4561 # Check that the compiler produces executables we can run. If not, either
4562 # the compiler is broken, or we cross compile.
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4564 $as_echo_n "checking whether we are cross compiling... " >&6; }
4565 if test "$cross_compiling" != yes; then
4566 { { ac_try="$ac_link"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_link") 2>&5
4574 ac_status=$?
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }
4577 if { ac_try='./conftest$ac_cv_exeext'
4578 { { case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581 esac
4582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583 $as_echo "$ac_try_echo"; } >&5
4584 (eval "$ac_try") 2>&5
4585 ac_status=$?
4586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }; }; then
4588 cross_compiling=no
4589 else
4590 if test "$cross_compiling" = maybe; then
4591 cross_compiling=yes
4592 else
4593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4595 as_fn_error $? "cannot run C compiled programs.
4596 If you meant to cross compile, use \`--host'.
4597 See \`config.log' for more details" "$LINENO" 5; }
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4602 $as_echo "$cross_compiling" >&6; }
4604 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4605 ac_clean_files=$ac_clean_files_save
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4607 $as_echo_n "checking for suffix of object files... " >&6; }
4608 if ${ac_cv_objext+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4615 main ()
4619 return 0;
4621 _ACEOF
4622 rm -f conftest.o conftest.obj
4623 if { { ac_try="$ac_compile"
4624 case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4627 esac
4628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4629 $as_echo "$ac_try_echo"; } >&5
4630 (eval "$ac_compile") 2>&5
4631 ac_status=$?
4632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4633 test $ac_status = 0; }; then :
4634 for ac_file in conftest.o conftest.obj conftest.*; do
4635 test -f "$ac_file" || continue;
4636 case $ac_file in
4637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4638 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4639 break;;
4640 esac
4641 done
4642 else
4643 $as_echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648 as_fn_error $? "cannot compute suffix of object files: cannot compile
4649 See \`config.log' for more details" "$LINENO" 5; }
4651 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4654 $as_echo "$ac_cv_objext" >&6; }
4655 OBJEXT=$ac_cv_objext
4656 ac_objext=$OBJEXT
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4658 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4659 if ${ac_cv_c_compiler_gnu+:} false; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4666 main ()
4668 #ifndef __GNUC__
4669 choke me
4670 #endif
4673 return 0;
4675 _ACEOF
4676 if ac_fn_c_try_compile "$LINENO"; then :
4677 ac_compiler_gnu=yes
4678 else
4679 ac_compiler_gnu=no
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4686 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4687 if test $ac_compiler_gnu = yes; then
4688 GCC=yes
4689 else
4690 GCC=
4692 ac_test_CFLAGS=${CFLAGS+set}
4693 ac_save_CFLAGS=$CFLAGS
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4695 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4696 if ${ac_cv_prog_cc_g+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 ac_save_c_werror_flag=$ac_c_werror_flag
4700 ac_c_werror_flag=yes
4701 ac_cv_prog_cc_g=no
4702 CFLAGS="-g"
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4707 main ()
4711 return 0;
4713 _ACEOF
4714 if ac_fn_c_try_compile "$LINENO"; then :
4715 ac_cv_prog_cc_g=yes
4716 else
4717 CFLAGS=""
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4722 main ()
4726 return 0;
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4731 else
4732 ac_c_werror_flag=$ac_save_c_werror_flag
4733 CFLAGS="-g"
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4738 main ()
4742 return 0;
4744 _ACEOF
4745 if ac_fn_c_try_compile "$LINENO"; then :
4746 ac_cv_prog_cc_g=yes
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 ac_c_werror_flag=$ac_save_c_werror_flag
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4756 $as_echo "$ac_cv_prog_cc_g" >&6; }
4757 if test "$ac_test_CFLAGS" = set; then
4758 CFLAGS=$ac_save_CFLAGS
4759 elif test $ac_cv_prog_cc_g = yes; then
4760 if test "$GCC" = yes; then
4761 CFLAGS="-g -O2"
4762 else
4763 CFLAGS="-g"
4765 else
4766 if test "$GCC" = yes; then
4767 CFLAGS="-O2"
4768 else
4769 CFLAGS=
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4773 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4774 if ${ac_cv_prog_cc_c89+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 ac_cv_prog_cc_c89=no
4778 ac_save_CC=$CC
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781 #include <stdarg.h>
4782 #include <stdio.h>
4783 struct stat;
4784 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4785 struct buf { int x; };
4786 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4787 static char *e (p, i)
4788 char **p;
4789 int i;
4791 return p[i];
4793 static char *f (char * (*g) (char **, int), char **p, ...)
4795 char *s;
4796 va_list v;
4797 va_start (v,p);
4798 s = g (p, va_arg (v,int));
4799 va_end (v);
4800 return s;
4803 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4804 function prototypes and stuff, but not '\xHH' hex character constants.
4805 These don't provoke an error unfortunately, instead are silently treated
4806 as 'x'. The following induces an error, until -std is added to get
4807 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4808 array size at least. It's necessary to write '\x00'==0 to get something
4809 that's true only with -std. */
4810 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4812 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4813 inside strings and character constants. */
4814 #define FOO(x) 'x'
4815 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4817 int test (int i, double x);
4818 struct s1 {int (*f) (int a);};
4819 struct s2 {int (*f) (double a);};
4820 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4821 int argc;
4822 char **argv;
4824 main ()
4826 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4828 return 0;
4830 _ACEOF
4831 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4832 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4834 CC="$ac_save_CC $ac_arg"
4835 if ac_fn_c_try_compile "$LINENO"; then :
4836 ac_cv_prog_cc_c89=$ac_arg
4838 rm -f core conftest.err conftest.$ac_objext
4839 test "x$ac_cv_prog_cc_c89" != "xno" && break
4840 done
4841 rm -f conftest.$ac_ext
4842 CC=$ac_save_CC
4845 # AC_CACHE_VAL
4846 case "x$ac_cv_prog_cc_c89" in
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4849 $as_echo "none needed" >&6; } ;;
4850 xno)
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4852 $as_echo "unsupported" >&6; } ;;
4854 CC="$CC $ac_cv_prog_cc_c89"
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4857 esac
4858 if test "x$ac_cv_prog_cc_c89" != xno; then :
4862 ac_ext=c
4863 ac_cpp='$CPP $CPPFLAGS'
4864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4868 ac_ext=cpp
4869 ac_cpp='$CXXCPP $CPPFLAGS'
4870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4873 if test -z "$CXX"; then
4874 if test -n "$CCC"; then
4875 CXX=$CCC
4876 else
4877 if test -n "$ac_tool_prefix"; then
4878 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_prog_CXX+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 if test -n "$CXX"; then
4888 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4889 else
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4897 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 break 2
4901 done
4902 done
4903 IFS=$as_save_IFS
4907 CXX=$ac_cv_prog_CXX
4908 if test -n "$CXX"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4910 $as_echo "$CXX" >&6; }
4911 else
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4917 test -n "$CXX" && break
4918 done
4920 if test -z "$CXX"; then
4921 ac_ct_CXX=$CXX
4922 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$ac_ct_CXX"; then
4932 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_ac_ct_CXX="$ac_prog"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4952 if test -n "$ac_ct_CXX"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4954 $as_echo "$ac_ct_CXX" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 test -n "$ac_ct_CXX" && break
4962 done
4964 if test "x$ac_ct_CXX" = x; then
4965 CXX="g++"
4966 else
4967 case $cross_compiling:$ac_tool_warned in
4968 yes:)
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned=yes ;;
4972 esac
4973 CXX=$ac_ct_CXX
4979 # Provide some information about the compiler.
4980 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4981 set X $ac_compile
4982 ac_compiler=$2
4983 for ac_option in --version -v -V -qversion; do
4984 { { ac_try="$ac_compiler $ac_option >&5"
4985 case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988 esac
4989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4990 $as_echo "$ac_try_echo"; } >&5
4991 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4992 ac_status=$?
4993 if test -s conftest.err; then
4994 sed '10a\
4995 ... rest of stderr output deleted ...
4996 10q' conftest.err >conftest.er1
4997 cat conftest.er1 >&5
4999 rm -f conftest.er1 conftest.err
5000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001 test $ac_status = 0; }
5002 done
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5005 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5006 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5013 main ()
5015 #ifndef __GNUC__
5016 choke me
5017 #endif
5020 return 0;
5022 _ACEOF
5023 if ac_fn_cxx_try_compile "$LINENO"; then :
5024 ac_compiler_gnu=yes
5025 else
5026 ac_compiler_gnu=no
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5033 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5034 if test $ac_compiler_gnu = yes; then
5035 GXX=yes
5036 else
5037 GXX=
5039 ac_test_CXXFLAGS=${CXXFLAGS+set}
5040 ac_save_CXXFLAGS=$CXXFLAGS
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5042 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5043 if ${ac_cv_prog_cxx_g+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5047 ac_cxx_werror_flag=yes
5048 ac_cv_prog_cxx_g=no
5049 CXXFLAGS="-g"
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5054 main ()
5058 return 0;
5060 _ACEOF
5061 if ac_fn_cxx_try_compile "$LINENO"; then :
5062 ac_cv_prog_cxx_g=yes
5063 else
5064 CXXFLAGS=""
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5069 main ()
5073 return 0;
5075 _ACEOF
5076 if ac_fn_cxx_try_compile "$LINENO"; then :
5078 else
5079 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5080 CXXFLAGS="-g"
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5085 main ()
5089 return 0;
5091 _ACEOF
5092 if ac_fn_cxx_try_compile "$LINENO"; then :
5093 ac_cv_prog_cxx_g=yes
5095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5103 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5104 if test "$ac_test_CXXFLAGS" = set; then
5105 CXXFLAGS=$ac_save_CXXFLAGS
5106 elif test $ac_cv_prog_cxx_g = yes; then
5107 if test "$GXX" = yes; then
5108 CXXFLAGS="-g -O2"
5109 else
5110 CXXFLAGS="-g"
5112 else
5113 if test "$GXX" = yes; then
5114 CXXFLAGS="-O2"
5115 else
5116 CXXFLAGS=
5119 ac_ext=c
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128 if test -n "$ac_tool_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5130 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_GNATBIND+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -n "$GNATBIND"; then
5137 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5150 done
5151 done
5152 IFS=$as_save_IFS
5156 GNATBIND=$ac_cv_prog_GNATBIND
5157 if test -n "$GNATBIND"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5159 $as_echo "$GNATBIND" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5167 if test -z "$ac_cv_prog_GNATBIND"; then
5168 ac_ct_GNATBIND=$GNATBIND
5169 # Extract the first word of "gnatbind", so it can be a program name with args.
5170 set dummy gnatbind; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 if test -n "$ac_ct_GNATBIND"; then
5177 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5190 done
5191 done
5192 IFS=$as_save_IFS
5196 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5197 if test -n "$ac_ct_GNATBIND"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5199 $as_echo "$ac_ct_GNATBIND" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5205 if test "x$ac_ct_GNATBIND" = x; then
5206 GNATBIND="no"
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209 yes:)
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5213 esac
5214 GNATBIND=$ac_ct_GNATBIND
5216 else
5217 GNATBIND="$ac_cv_prog_GNATBIND"
5220 if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_GNATMAKE+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 if test -n "$GNATMAKE"; then
5229 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5242 done
5243 done
5244 IFS=$as_save_IFS
5248 GNATMAKE=$ac_cv_prog_GNATMAKE
5249 if test -n "$GNATMAKE"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5251 $as_echo "$GNATMAKE" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5259 if test -z "$ac_cv_prog_GNATMAKE"; then
5260 ac_ct_GNATMAKE=$GNATMAKE
5261 # Extract the first word of "gnatmake", so it can be a program name with args.
5262 set dummy gnatmake; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 if test -n "$ac_ct_GNATMAKE"; then
5269 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5282 done
5283 done
5284 IFS=$as_save_IFS
5288 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5289 if test -n "$ac_ct_GNATMAKE"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5291 $as_echo "$ac_ct_GNATMAKE" >&6; }
5292 else
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5297 if test "x$ac_ct_GNATMAKE" = x; then
5298 GNATMAKE="no"
5299 else
5300 case $cross_compiling:$ac_tool_warned in
5301 yes:)
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304 ac_tool_warned=yes ;;
5305 esac
5306 GNATMAKE=$ac_ct_GNATMAKE
5308 else
5309 GNATMAKE="$ac_cv_prog_GNATMAKE"
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5313 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5314 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 cat >conftest.adb <<EOF
5318 pragma Warnings (Off);
5319 with System.CRTL;
5320 pragma Warnings (On);
5321 use type System.CRTL.int64;
5322 procedure conftest is begin null; end conftest;
5324 acx_cv_cc_gcc_supports_ada=no
5325 # There is a bug in old released versions of GCC which causes the
5326 # driver to exit successfully when the appropriate language module
5327 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5328 # Therefore we must check for the error message as well as an
5329 # unsuccessful exit.
5330 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5331 # given a .adb file, but produce no object file. So we must check
5332 # if an object file was really produced to guard against this.
5333 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5334 if test x"$errors" = x && test -f conftest.$ac_objext; then
5335 acx_cv_cc_gcc_supports_ada=yes
5337 rm -f conftest.*
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5340 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5342 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5343 have_gnat=yes
5344 else
5345 have_gnat=no
5350 if test -n "$ac_tool_prefix"; then
5351 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5352 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_prog_GDC+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 if test -n "$GDC"; then
5359 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5372 done
5373 done
5374 IFS=$as_save_IFS
5378 GDC=$ac_cv_prog_GDC
5379 if test -n "$GDC"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5381 $as_echo "$GDC" >&6; }
5382 else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5389 if test -z "$ac_cv_prog_GDC"; then
5390 ac_ct_GDC=$GDC
5391 # Extract the first word of "gdc", so it can be a program name with args.
5392 set dummy gdc; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 if test -n "$ac_ct_GDC"; then
5399 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5400 else
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5408 ac_cv_prog_ac_ct_GDC="gdc"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 break 2
5412 done
5413 done
5414 IFS=$as_save_IFS
5418 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5419 if test -n "$ac_ct_GDC"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5421 $as_echo "$ac_ct_GDC" >&6; }
5422 else
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5427 if test "x$ac_ct_GDC" = x; then
5428 GDC="no"
5429 else
5430 case $cross_compiling:$ac_tool_warned in
5431 yes:)
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5434 ac_tool_warned=yes ;;
5435 esac
5436 GDC=$ac_ct_GDC
5438 else
5439 GDC="$ac_cv_prog_GDC"
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5443 $as_echo_n "checking whether the D compiler works... " >&6; }
5444 if ${acx_cv_d_compiler_works+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 cat >conftest.d <<EOF
5448 module conftest; int main() { return 0; }
5450 acx_cv_d_compiler_works=no
5451 if test "x$GDC" != xno; then
5452 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5453 if test x"$errors" = x && test -f conftest.$ac_objext; then
5454 acx_cv_d_compiler_works=yes
5456 rm -f conftest.*
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5460 $as_echo "$acx_cv_d_compiler_works" >&6; }
5461 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5462 have_gdc=yes
5463 else
5464 have_gdc=no
5468 # Do configure tests with the C++ compiler, since that's what we build with.
5469 ac_ext=cpp
5470 ac_cpp='$CXXCPP $CPPFLAGS'
5471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5476 # Remove all -O flags: for historical reasons, unless bootstrapping we prefer
5477 # optimizations to be activated explicitly by the toplevel.
5478 case "$CC" in
5479 */prev-gcc/xgcc*) ;;
5481 new_CFLAGS=
5482 for flag in $CFLAGS; do
5483 case $flag in
5484 -O*) ;;
5485 *) new_CFLAGS="$new_CFLAGS $flag" ;;
5486 esac
5487 done
5488 CFLAGS=$new_CFLAGS
5489 new_CXXFLAGS=
5490 for flag in $CXXFLAGS; do
5491 case $flag in
5492 -O*) ;;
5493 *) new_CXXFLAGS="$new_CXXFLAGS $flag" ;;
5494 esac
5495 done
5496 CXXFLAGS=$new_CXXFLAGS
5498 esac
5503 # Determine PICFLAG for target gnatlib.
5508 case "${target}" in
5509 # PIC is the default on some targets or must not be used.
5510 *-*-darwin*)
5511 # For darwin, common symbols are not allowed in MH_DYLIB files
5512 case "${CFLAGS}" in
5513 # If we are using a compiler supporting mdynamic-no-pic
5514 # and the option has been tested as safe to add, then cancel
5515 # it here, since the code generated is incompatible with shared
5516 # libs.
5517 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5518 *) PICFLAG_FOR_TARGET=-fno-common ;;
5519 esac
5521 alpha*-dec-osf5*)
5522 # PIC is the default.
5524 hppa*64*-*-hpux*)
5525 # PIC is the default for 64-bit PA HP-UX.
5527 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5529 i[34567]86-*-mingw* | x86_64-*-mingw*)
5531 i[34567]86-*-interix[3-9]*)
5532 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5533 # Instead, we relocate shared libraries at runtime.
5535 i[34567]86-*-nto-qnx*)
5536 # QNX uses GNU C++, but need to define -shared option too, otherwise
5537 # it will coredump.
5538 PICFLAG_FOR_TARGET='-fPIC -shared'
5540 i[34567]86-pc-msdosdjgpp*)
5541 # DJGPP does not support shared libraries at all.
5543 ia64*-*-hpux*)
5544 # On IA64 HP-UX, PIC is the default but the pic flag
5545 # sets the default TLS model and affects inlining.
5546 PICFLAG_FOR_TARGET=-fPIC
5548 loongarch*-*-*)
5549 PICFLAG_FOR_TARGET=-fpic
5551 mips-sgi-irix6*)
5552 # PIC is the default.
5554 rs6000-ibm-aix* | powerpc-ibm-aix*)
5555 # All AIX code is PIC.
5558 # Some targets support both -fPIC and -fpic, but prefer the latter.
5559 # FIXME: Why?
5560 i[34567]86-*-* | x86_64-*-*)
5561 PICFLAG_FOR_TARGET=-fpic
5563 # FIXME: Override -fPIC default in libgcc only?
5564 sh-*-linux* | sh[2346lbe]*-*-linux*)
5565 PICFLAG_FOR_TARGET=-fpic
5567 sh*-*-netbsd*)
5568 PICFLAG_FOR_TARGET=-fpic
5570 # Default to -fPIC unless specified otherwise.
5572 PICFLAG_FOR_TARGET=-fPIC
5574 esac
5576 # If the user explicitly uses -fpic/-fPIC, keep that.
5577 case "${CFLAGS_FOR_TARGET}" in
5578 *-fpic*)
5579 PICFLAG_FOR_TARGET=-fpic
5581 *-fPIC*)
5582 PICFLAG_FOR_TARGET=-fPIC
5584 esac
5588 # -------------------------
5589 # Check C compiler features
5590 # -------------------------
5593 ac_ext=cpp
5594 ac_cpp='$CXXCPP $CPPFLAGS'
5595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5599 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5600 if test -z "$CXXCPP"; then
5601 if ${ac_cv_prog_CXXCPP+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 # Double quotes because CXXCPP needs to be expanded
5605 for CXXCPP in "$CXX -E" "/lib/cpp"
5607 ac_preproc_ok=false
5608 for ac_cxx_preproc_warn_flag in '' yes
5610 # Use a header file that comes with gcc, so configuring glibc
5611 # with a fresh cross-compiler works.
5612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5613 # <limits.h> exists even on freestanding compilers.
5614 # On the NeXT, cc -E runs the code through the compiler's parser,
5615 # not just through cpp. "Syntax error" is here to catch this case.
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #ifdef __STDC__
5619 # include <limits.h>
5620 #else
5621 # include <assert.h>
5622 #endif
5623 Syntax error
5624 _ACEOF
5625 if ac_fn_cxx_try_cpp "$LINENO"; then :
5627 else
5628 # Broken: fails on valid input.
5629 continue
5631 rm -f conftest.err conftest.i conftest.$ac_ext
5633 # OK, works on sane cases. Now check whether nonexistent headers
5634 # can be detected and how.
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #include <ac_nonexistent.h>
5638 _ACEOF
5639 if ac_fn_cxx_try_cpp "$LINENO"; then :
5640 # Broken: success on invalid input.
5641 continue
5642 else
5643 # Passes both tests.
5644 ac_preproc_ok=:
5645 break
5647 rm -f conftest.err conftest.i conftest.$ac_ext
5649 done
5650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5651 rm -f conftest.i conftest.err conftest.$ac_ext
5652 if $ac_preproc_ok; then :
5653 break
5656 done
5657 ac_cv_prog_CXXCPP=$CXXCPP
5660 CXXCPP=$ac_cv_prog_CXXCPP
5661 else
5662 ac_cv_prog_CXXCPP=$CXXCPP
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5665 $as_echo "$CXXCPP" >&6; }
5666 ac_preproc_ok=false
5667 for ac_cxx_preproc_warn_flag in '' yes
5669 # Use a header file that comes with gcc, so configuring glibc
5670 # with a fresh cross-compiler works.
5671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5672 # <limits.h> exists even on freestanding compilers.
5673 # On the NeXT, cc -E runs the code through the compiler's parser,
5674 # not just through cpp. "Syntax error" is here to catch this case.
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 #ifdef __STDC__
5678 # include <limits.h>
5679 #else
5680 # include <assert.h>
5681 #endif
5682 Syntax error
5683 _ACEOF
5684 if ac_fn_cxx_try_cpp "$LINENO"; then :
5686 else
5687 # Broken: fails on valid input.
5688 continue
5690 rm -f conftest.err conftest.i conftest.$ac_ext
5692 # OK, works on sane cases. Now check whether nonexistent headers
5693 # can be detected and how.
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #include <ac_nonexistent.h>
5697 _ACEOF
5698 if ac_fn_cxx_try_cpp "$LINENO"; then :
5699 # Broken: success on invalid input.
5700 continue
5701 else
5702 # Passes both tests.
5703 ac_preproc_ok=:
5704 break
5706 rm -f conftest.err conftest.i conftest.$ac_ext
5708 done
5709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5710 rm -f conftest.i conftest.err conftest.$ac_ext
5711 if $ac_preproc_ok; then :
5713 else
5714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5716 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5717 See \`config.log' for more details" "$LINENO" 5; }
5720 ac_ext=cpp
5721 ac_cpp='$CXXCPP $CPPFLAGS'
5722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5728 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5729 if ${ac_cv_path_GREP+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 if test -z "$GREP"; then
5733 ac_path_GREP_found=false
5734 # Loop through the user's path and test for each of PROGNAME-LIST
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_prog in grep ggrep; do
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5743 as_fn_executable_p "$ac_path_GREP" || continue
5744 # Check for GNU ac_path_GREP and select it if it is found.
5745 # Check for GNU $ac_path_GREP
5746 case `"$ac_path_GREP" --version 2>&1` in
5747 *GNU*)
5748 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5750 ac_count=0
5751 $as_echo_n 0123456789 >"conftest.in"
5752 while :
5754 cat "conftest.in" "conftest.in" >"conftest.tmp"
5755 mv "conftest.tmp" "conftest.in"
5756 cp "conftest.in" "conftest.nl"
5757 $as_echo 'GREP' >> "conftest.nl"
5758 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5760 as_fn_arith $ac_count + 1 && ac_count=$as_val
5761 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5762 # Best one so far, save it but keep looking for a better one
5763 ac_cv_path_GREP="$ac_path_GREP"
5764 ac_path_GREP_max=$ac_count
5766 # 10*(2^10) chars as input seems more than enough
5767 test $ac_count -gt 10 && break
5768 done
5769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5770 esac
5772 $ac_path_GREP_found && break 3
5773 done
5774 done
5775 done
5776 IFS=$as_save_IFS
5777 if test -z "$ac_cv_path_GREP"; then
5778 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5780 else
5781 ac_cv_path_GREP=$GREP
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5786 $as_echo "$ac_cv_path_GREP" >&6; }
5787 GREP="$ac_cv_path_GREP"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5791 $as_echo_n "checking for egrep... " >&6; }
5792 if ${ac_cv_path_EGREP+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5796 then ac_cv_path_EGREP="$GREP -E"
5797 else
5798 if test -z "$EGREP"; then
5799 ac_path_EGREP_found=false
5800 # Loop through the user's path and test for each of PROGNAME-LIST
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_prog in egrep; do
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5809 as_fn_executable_p "$ac_path_EGREP" || continue
5810 # Check for GNU ac_path_EGREP and select it if it is found.
5811 # Check for GNU $ac_path_EGREP
5812 case `"$ac_path_EGREP" --version 2>&1` in
5813 *GNU*)
5814 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5816 ac_count=0
5817 $as_echo_n 0123456789 >"conftest.in"
5818 while :
5820 cat "conftest.in" "conftest.in" >"conftest.tmp"
5821 mv "conftest.tmp" "conftest.in"
5822 cp "conftest.in" "conftest.nl"
5823 $as_echo 'EGREP' >> "conftest.nl"
5824 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5826 as_fn_arith $ac_count + 1 && ac_count=$as_val
5827 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5828 # Best one so far, save it but keep looking for a better one
5829 ac_cv_path_EGREP="$ac_path_EGREP"
5830 ac_path_EGREP_max=$ac_count
5832 # 10*(2^10) chars as input seems more than enough
5833 test $ac_count -gt 10 && break
5834 done
5835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5836 esac
5838 $ac_path_EGREP_found && break 3
5839 done
5840 done
5841 done
5842 IFS=$as_save_IFS
5843 if test -z "$ac_cv_path_EGREP"; then
5844 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5846 else
5847 ac_cv_path_EGREP=$EGREP
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5853 $as_echo "$ac_cv_path_EGREP" >&6; }
5854 EGREP="$ac_cv_path_EGREP"
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5858 $as_echo_n "checking for ANSI C header files... " >&6; }
5859 if ${ac_cv_header_stdc+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864 #include <stdlib.h>
5865 #include <stdarg.h>
5866 #include <string.h>
5867 #include <float.h>
5870 main ()
5874 return 0;
5876 _ACEOF
5877 if ac_fn_cxx_try_compile "$LINENO"; then :
5878 ac_cv_header_stdc=yes
5879 else
5880 ac_cv_header_stdc=no
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 if test $ac_cv_header_stdc = yes; then
5885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5888 #include <string.h>
5890 _ACEOF
5891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5892 $EGREP "memchr" >/dev/null 2>&1; then :
5894 else
5895 ac_cv_header_stdc=no
5897 rm -f conftest*
5901 if test $ac_cv_header_stdc = yes; then
5902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 #include <stdlib.h>
5907 _ACEOF
5908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5909 $EGREP "free" >/dev/null 2>&1; then :
5911 else
5912 ac_cv_header_stdc=no
5914 rm -f conftest*
5918 if test $ac_cv_header_stdc = yes; then
5919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5920 if test "$cross_compiling" = yes; then :
5922 else
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 #include <ctype.h>
5926 #include <stdlib.h>
5927 #if ((' ' & 0x0FF) == 0x020)
5928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5930 #else
5931 # define ISLOWER(c) \
5932 (('a' <= (c) && (c) <= 'i') \
5933 || ('j' <= (c) && (c) <= 'r') \
5934 || ('s' <= (c) && (c) <= 'z'))
5935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5936 #endif
5938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5940 main ()
5942 int i;
5943 for (i = 0; i < 256; i++)
5944 if (XOR (islower (i), ISLOWER (i))
5945 || toupper (i) != TOUPPER (i))
5946 return 2;
5947 return 0;
5949 _ACEOF
5950 if ac_fn_cxx_try_run "$LINENO"; then :
5952 else
5953 ac_cv_header_stdc=no
5955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5956 conftest.$ac_objext conftest.beam conftest.$ac_ext
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5962 $as_echo "$ac_cv_header_stdc" >&6; }
5963 if test $ac_cv_header_stdc = yes; then
5965 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5970 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5971 inttypes.h stdint.h unistd.h
5972 do :
5973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5974 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5977 cat >>confdefs.h <<_ACEOF
5978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5979 _ACEOF
5983 done
5987 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5988 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5989 MINIX=yes
5990 else
5991 MINIX=
5995 if test "$MINIX" = yes; then
5997 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6000 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6003 $as_echo "#define _MINIX 1" >>confdefs.h
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6009 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6010 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6016 # define __EXTENSIONS__ 1
6017 $ac_includes_default
6019 main ()
6023 return 0;
6025 _ACEOF
6026 if ac_fn_cxx_try_compile "$LINENO"; then :
6027 ac_cv_safe_to_define___extensions__=yes
6028 else
6029 ac_cv_safe_to_define___extensions__=no
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6034 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6035 test $ac_cv_safe_to_define___extensions__ = yes &&
6036 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6038 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6040 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6042 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6044 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6048 ac_ext=c
6049 ac_cpp='$CPP $CPPFLAGS'
6050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6054 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6055 # On Suns, sometimes $CPP names a directory.
6056 if test -n "$CPP" && test -d "$CPP"; then
6057 CPP=
6059 if test -z "$CPP"; then
6060 if ${ac_cv_prog_CPP+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 # Double quotes because CPP needs to be expanded
6064 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6066 ac_preproc_ok=false
6067 for ac_c_preproc_warn_flag in '' yes
6069 # Use a header file that comes with gcc, so configuring glibc
6070 # with a fresh cross-compiler works.
6071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6072 # <limits.h> exists even on freestanding compilers.
6073 # On the NeXT, cc -E runs the code through the compiler's parser,
6074 # not just through cpp. "Syntax error" is here to catch this case.
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077 #ifdef __STDC__
6078 # include <limits.h>
6079 #else
6080 # include <assert.h>
6081 #endif
6082 Syntax error
6083 _ACEOF
6084 if ac_fn_c_try_cpp "$LINENO"; then :
6086 else
6087 # Broken: fails on valid input.
6088 continue
6090 rm -f conftest.err conftest.i conftest.$ac_ext
6092 # OK, works on sane cases. Now check whether nonexistent headers
6093 # can be detected and how.
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 #include <ac_nonexistent.h>
6097 _ACEOF
6098 if ac_fn_c_try_cpp "$LINENO"; then :
6099 # Broken: success on invalid input.
6100 continue
6101 else
6102 # Passes both tests.
6103 ac_preproc_ok=:
6104 break
6106 rm -f conftest.err conftest.i conftest.$ac_ext
6108 done
6109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6110 rm -f conftest.i conftest.err conftest.$ac_ext
6111 if $ac_preproc_ok; then :
6112 break
6115 done
6116 ac_cv_prog_CPP=$CPP
6119 CPP=$ac_cv_prog_CPP
6120 else
6121 ac_cv_prog_CPP=$CPP
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6124 $as_echo "$CPP" >&6; }
6125 ac_preproc_ok=false
6126 for ac_c_preproc_warn_flag in '' yes
6128 # Use a header file that comes with gcc, so configuring glibc
6129 # with a fresh cross-compiler works.
6130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6131 # <limits.h> exists even on freestanding compilers.
6132 # On the NeXT, cc -E runs the code through the compiler's parser,
6133 # not just through cpp. "Syntax error" is here to catch this case.
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 #ifdef __STDC__
6137 # include <limits.h>
6138 #else
6139 # include <assert.h>
6140 #endif
6141 Syntax error
6142 _ACEOF
6143 if ac_fn_c_try_cpp "$LINENO"; then :
6145 else
6146 # Broken: fails on valid input.
6147 continue
6149 rm -f conftest.err conftest.i conftest.$ac_ext
6151 # OK, works on sane cases. Now check whether nonexistent headers
6152 # can be detected and how.
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6155 #include <ac_nonexistent.h>
6156 _ACEOF
6157 if ac_fn_c_try_cpp "$LINENO"; then :
6158 # Broken: success on invalid input.
6159 continue
6160 else
6161 # Passes both tests.
6162 ac_preproc_ok=:
6163 break
6165 rm -f conftest.err conftest.i conftest.$ac_ext
6167 done
6168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6169 rm -f conftest.i conftest.err conftest.$ac_ext
6170 if $ac_preproc_ok; then :
6172 else
6173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6175 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6176 See \`config.log' for more details" "$LINENO" 5; }
6179 ac_ext=cpp
6180 ac_cpp='$CXXCPP $CPPFLAGS'
6181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6186 $as_echo_n "checking for inline... " >&6; }
6187 if ${ac_cv_c_inline+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 ac_cv_c_inline=no
6191 for ac_kw in inline __inline__ __inline; do
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 #ifndef __cplusplus
6195 typedef int foo_t;
6196 static $ac_kw foo_t static_foo () {return 0; }
6197 $ac_kw foo_t foo () {return 0; }
6198 #endif
6200 _ACEOF
6201 if ac_fn_cxx_try_compile "$LINENO"; then :
6202 ac_cv_c_inline=$ac_kw
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 test "$ac_cv_c_inline" != no && break
6206 done
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6210 $as_echo "$ac_cv_c_inline" >&6; }
6212 case $ac_cv_c_inline in
6213 inline | yes) ;;
6215 case $ac_cv_c_inline in
6216 no) ac_val=;;
6217 *) ac_val=$ac_cv_c_inline;;
6218 esac
6219 cat >>confdefs.h <<_ACEOF
6220 #ifndef __cplusplus
6221 #define inline $ac_val
6222 #endif
6223 _ACEOF
6225 esac
6228 # Check whether --enable-largefile was given.
6229 if test "${enable_largefile+set}" = set; then :
6230 enableval=$enable_largefile;
6233 if test "$enable_largefile" != no; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6236 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6237 if ${ac_cv_sys_largefile_CC+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 ac_cv_sys_largefile_CC=no
6241 if test "$GCC" != yes; then
6242 ac_save_CC=$CC
6243 while :; do
6244 # IRIX 6.2 and later do not support large files by default,
6245 # so use the C compiler's -n32 option if that helps.
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6248 #include <sys/types.h>
6249 /* Check that off_t can represent 2**63 - 1 correctly.
6250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6251 since some C++ compilers masquerading as C compilers
6252 incorrectly reject 9223372036854775807. */
6253 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6255 && LARGE_OFF_T % 2147483647 == 1)
6256 ? 1 : -1];
6258 main ()
6262 return 0;
6264 _ACEOF
6265 if ac_fn_cxx_try_compile "$LINENO"; then :
6266 break
6268 rm -f core conftest.err conftest.$ac_objext
6269 CC="$CC -n32"
6270 if ac_fn_cxx_try_compile "$LINENO"; then :
6271 ac_cv_sys_largefile_CC=' -n32'; break
6273 rm -f core conftest.err conftest.$ac_objext
6274 break
6275 done
6276 CC=$ac_save_CC
6277 rm -f conftest.$ac_ext
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6281 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6282 if test "$ac_cv_sys_largefile_CC" != no; then
6283 CC=$CC$ac_cv_sys_largefile_CC
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6287 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6288 if ${ac_cv_sys_file_offset_bits+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 while :; do
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294 #include <sys/types.h>
6295 /* Check that off_t can represent 2**63 - 1 correctly.
6296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6297 since some C++ compilers masquerading as C compilers
6298 incorrectly reject 9223372036854775807. */
6299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6301 && LARGE_OFF_T % 2147483647 == 1)
6302 ? 1 : -1];
6304 main ()
6308 return 0;
6310 _ACEOF
6311 if ac_fn_cxx_try_compile "$LINENO"; then :
6312 ac_cv_sys_file_offset_bits=no; break
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317 #define _FILE_OFFSET_BITS 64
6318 #include <sys/types.h>
6319 /* Check that off_t can represent 2**63 - 1 correctly.
6320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6321 since some C++ compilers masquerading as C compilers
6322 incorrectly reject 9223372036854775807. */
6323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6325 && LARGE_OFF_T % 2147483647 == 1)
6326 ? 1 : -1];
6328 main ()
6332 return 0;
6334 _ACEOF
6335 if ac_fn_cxx_try_compile "$LINENO"; then :
6336 ac_cv_sys_file_offset_bits=64; break
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 ac_cv_sys_file_offset_bits=unknown
6340 break
6341 done
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6344 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6345 case $ac_cv_sys_file_offset_bits in #(
6346 no | unknown) ;;
6348 cat >>confdefs.h <<_ACEOF
6349 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6350 _ACEOF
6352 esac
6353 rm -rf conftest*
6354 if test $ac_cv_sys_file_offset_bits = unknown; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6356 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6357 if ${ac_cv_sys_large_files+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 while :; do
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 #include <sys/types.h>
6364 /* Check that off_t can represent 2**63 - 1 correctly.
6365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6366 since some C++ compilers masquerading as C compilers
6367 incorrectly reject 9223372036854775807. */
6368 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6370 && LARGE_OFF_T % 2147483647 == 1)
6371 ? 1 : -1];
6373 main ()
6377 return 0;
6379 _ACEOF
6380 if ac_fn_cxx_try_compile "$LINENO"; then :
6381 ac_cv_sys_large_files=no; break
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 #define _LARGE_FILES 1
6387 #include <sys/types.h>
6388 /* Check that off_t can represent 2**63 - 1 correctly.
6389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6390 since some C++ compilers masquerading as C compilers
6391 incorrectly reject 9223372036854775807. */
6392 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6394 && LARGE_OFF_T % 2147483647 == 1)
6395 ? 1 : -1];
6397 main ()
6401 return 0;
6403 _ACEOF
6404 if ac_fn_cxx_try_compile "$LINENO"; then :
6405 ac_cv_sys_large_files=1; break
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 ac_cv_sys_large_files=unknown
6409 break
6410 done
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6413 $as_echo "$ac_cv_sys_large_files" >&6; }
6414 case $ac_cv_sys_large_files in #(
6415 no | unknown) ;;
6417 cat >>confdefs.h <<_ACEOF
6418 #define _LARGE_FILES $ac_cv_sys_large_files
6419 _ACEOF
6421 esac
6422 rm -rf conftest*
6428 # The cast to long int works around a bug in the HP C Compiler
6429 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6430 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6431 # This bug is HP SR number 8606223364.
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6433 $as_echo_n "checking size of ino_t... " >&6; }
6434 if ${ac_cv_sizeof_ino_t+:} false; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6439 else
6440 if test "$ac_cv_type_ino_t" = yes; then
6441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6443 as_fn_error 77 "cannot compute sizeof (ino_t)
6444 See \`config.log' for more details" "$LINENO" 5; }
6445 else
6446 ac_cv_sizeof_ino_t=0
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6452 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6456 cat >>confdefs.h <<_ACEOF
6457 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6458 _ACEOF
6461 # The cast to long int works around a bug in the HP C Compiler
6462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6464 # This bug is HP SR number 8606223364.
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6466 $as_echo_n "checking size of dev_t... " >&6; }
6467 if ${ac_cv_sizeof_dev_t+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6472 else
6473 if test "$ac_cv_type_dev_t" = yes; then
6474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6476 as_fn_error 77 "cannot compute sizeof (dev_t)
6477 See \`config.log' for more details" "$LINENO" 5; }
6478 else
6479 ac_cv_sizeof_dev_t=0
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6485 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6489 cat >>confdefs.h <<_ACEOF
6490 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6491 _ACEOF
6495 # Select the right stat being able to handle 64bit inodes, if needed.
6496 if test "$enable_largefile" != no; then
6497 case "$host, $build" in
6498 *-*-aix*,*|*,*-*-aix*)
6499 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6501 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6503 fi;;
6504 esac
6508 # sizeof(char) is 1 by definition.
6509 # The cast to long int works around a bug in the HP C Compiler
6510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6512 # This bug is HP SR number 8606223364.
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6514 $as_echo_n "checking size of void *... " >&6; }
6515 if ${ac_cv_sizeof_void_p+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6520 else
6521 if test "$ac_cv_type_void_p" = yes; then
6522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6524 as_fn_error 77 "cannot compute sizeof (void *)
6525 See \`config.log' for more details" "$LINENO" 5; }
6526 else
6527 ac_cv_sizeof_void_p=0
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6533 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6537 cat >>confdefs.h <<_ACEOF
6538 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6539 _ACEOF
6542 # The cast to long int works around a bug in the HP C Compiler
6543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6545 # This bug is HP SR number 8606223364.
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6547 $as_echo_n "checking size of short... " >&6; }
6548 if ${ac_cv_sizeof_short+:} false; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6553 else
6554 if test "$ac_cv_type_short" = yes; then
6555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6557 as_fn_error 77 "cannot compute sizeof (short)
6558 See \`config.log' for more details" "$LINENO" 5; }
6559 else
6560 ac_cv_sizeof_short=0
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6566 $as_echo "$ac_cv_sizeof_short" >&6; }
6570 cat >>confdefs.h <<_ACEOF
6571 #define SIZEOF_SHORT $ac_cv_sizeof_short
6572 _ACEOF
6575 # The cast to long int works around a bug in the HP C Compiler
6576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6578 # This bug is HP SR number 8606223364.
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6580 $as_echo_n "checking size of int... " >&6; }
6581 if ${ac_cv_sizeof_int+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6586 else
6587 if test "$ac_cv_type_int" = yes; then
6588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6590 as_fn_error 77 "cannot compute sizeof (int)
6591 See \`config.log' for more details" "$LINENO" 5; }
6592 else
6593 ac_cv_sizeof_int=0
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6599 $as_echo "$ac_cv_sizeof_int" >&6; }
6603 cat >>confdefs.h <<_ACEOF
6604 #define SIZEOF_INT $ac_cv_sizeof_int
6605 _ACEOF
6608 # The cast to long int works around a bug in the HP C Compiler
6609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6611 # This bug is HP SR number 8606223364.
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6613 $as_echo_n "checking size of long... " >&6; }
6614 if ${ac_cv_sizeof_long+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6619 else
6620 if test "$ac_cv_type_long" = yes; then
6621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6623 as_fn_error 77 "cannot compute sizeof (long)
6624 See \`config.log' for more details" "$LINENO" 5; }
6625 else
6626 ac_cv_sizeof_long=0
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6632 $as_echo "$ac_cv_sizeof_long" >&6; }
6636 cat >>confdefs.h <<_ACEOF
6637 #define SIZEOF_LONG $ac_cv_sizeof_long
6638 _ACEOF
6641 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6642 if test "x$ac_cv_type_long_long" = xyes; then :
6644 cat >>confdefs.h <<_ACEOF
6645 #define HAVE_LONG_LONG 1
6646 _ACEOF
6648 # The cast to long int works around a bug in the HP C Compiler
6649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6651 # This bug is HP SR number 8606223364.
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6653 $as_echo_n "checking size of long long... " >&6; }
6654 if ${ac_cv_sizeof_long_long+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6659 else
6660 if test "$ac_cv_type_long_long" = yes; then
6661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6663 as_fn_error 77 "cannot compute sizeof (long long)
6664 See \`config.log' for more details" "$LINENO" 5; }
6665 else
6666 ac_cv_sizeof_long_long=0
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6672 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6676 cat >>confdefs.h <<_ACEOF
6677 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6678 _ACEOF
6683 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6684 case $ac_cv_c_int8_t in #(
6685 no|yes) ;; #(
6688 cat >>confdefs.h <<_ACEOF
6689 #define int8_t $ac_cv_c_int8_t
6690 _ACEOF
6692 esac
6694 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6695 case $ac_cv_c_int16_t in #(
6696 no|yes) ;; #(
6699 cat >>confdefs.h <<_ACEOF
6700 #define int16_t $ac_cv_c_int16_t
6701 _ACEOF
6703 esac
6705 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6706 case $ac_cv_c_int32_t in #(
6707 no|yes) ;; #(
6710 cat >>confdefs.h <<_ACEOF
6711 #define int32_t $ac_cv_c_int32_t
6712 _ACEOF
6714 esac
6716 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6717 case $ac_cv_c_int64_t in #(
6718 no|yes) ;; #(
6721 cat >>confdefs.h <<_ACEOF
6722 #define int64_t $ac_cv_c_int64_t
6723 _ACEOF
6725 esac
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6729 $as_echo_n "checking for unsigned long long int... " >&6; }
6730 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 ac_cv_type_unsigned_long_long_int=yes
6734 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6738 /* For now, do not test the preprocessor; as of 2007 there are too many
6739 implementations with broken preprocessors. Perhaps this can
6740 be revisited in 2012. In the meantime, code should not expect
6741 #if to work with literals wider than 32 bits. */
6742 /* Test literals. */
6743 long long int ll = 9223372036854775807ll;
6744 long long int nll = -9223372036854775807LL;
6745 unsigned long long int ull = 18446744073709551615ULL;
6746 /* Test constant expressions. */
6747 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6748 ? 1 : -1)];
6749 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6750 ? 1 : -1)];
6751 int i = 63;
6753 main ()
6755 /* Test availability of runtime routines for shift and division. */
6756 long long int llmax = 9223372036854775807ll;
6757 unsigned long long int ullmax = 18446744073709551615ull;
6758 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6759 | (llmax / ll) | (llmax % ll)
6760 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6761 | (ullmax / ull) | (ullmax % ull));
6763 return 0;
6766 _ACEOF
6767 if ac_fn_cxx_try_link "$LINENO"; then :
6769 else
6770 ac_cv_type_unsigned_long_long_int=no
6772 rm -f core conftest.err conftest.$ac_objext \
6773 conftest$ac_exeext conftest.$ac_ext
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6777 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6778 if test $ac_cv_type_unsigned_long_long_int = yes; then
6780 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6787 $as_echo_n "checking for long long int... " >&6; }
6788 if ${ac_cv_type_long_long_int+:} false; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 ac_cv_type_long_long_int=yes
6792 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6793 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6794 if test $ac_cv_type_long_long_int = yes; then
6795 if test "$cross_compiling" = yes; then :
6797 else
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800 #include <limits.h>
6801 #ifndef LLONG_MAX
6802 # define HALF \
6803 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6804 # define LLONG_MAX (HALF - 1 + HALF)
6805 #endif
6807 main ()
6809 long long int n = 1;
6810 int i;
6811 for (i = 0; ; i++)
6813 long long int m = n << i;
6814 if (m >> i != n)
6815 return 1;
6816 if (LLONG_MAX / 2 < m)
6817 break;
6819 return 0;
6821 return 0;
6823 _ACEOF
6824 if ac_fn_cxx_try_run "$LINENO"; then :
6826 else
6827 ac_cv_type_long_long_int=no
6829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6830 conftest.$ac_objext conftest.beam conftest.$ac_ext
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6837 $as_echo "$ac_cv_type_long_long_int" >&6; }
6838 if test $ac_cv_type_long_long_int = yes; then
6840 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6846 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6847 if test "x$ac_cv_type_intmax_t" = xyes; then :
6849 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6851 else
6852 test $ac_cv_type_long_long_int = yes \
6853 && ac_type='long long int' \
6854 || ac_type='long int'
6856 cat >>confdefs.h <<_ACEOF
6857 #define intmax_t $ac_type
6858 _ACEOF
6864 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6865 if test "x$ac_cv_type_intptr_t" = xyes; then :
6867 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6869 else
6870 for ac_type in 'int' 'long int' 'long long int'; do
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 $ac_includes_default
6875 main ()
6877 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6878 test_array [0] = 0;
6879 return test_array [0];
6882 return 0;
6884 _ACEOF
6885 if ac_fn_cxx_try_compile "$LINENO"; then :
6887 cat >>confdefs.h <<_ACEOF
6888 #define intptr_t $ac_type
6889 _ACEOF
6891 ac_type=
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 test -z "$ac_type" && break
6895 done
6899 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6900 case $ac_cv_c_uint8_t in #(
6901 no|yes) ;; #(
6904 $as_echo "#define _UINT8_T 1" >>confdefs.h
6907 cat >>confdefs.h <<_ACEOF
6908 #define uint8_t $ac_cv_c_uint8_t
6909 _ACEOF
6911 esac
6913 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6914 case $ac_cv_c_uint16_t in #(
6915 no|yes) ;; #(
6919 cat >>confdefs.h <<_ACEOF
6920 #define uint16_t $ac_cv_c_uint16_t
6921 _ACEOF
6923 esac
6925 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6926 case $ac_cv_c_uint32_t in #(
6927 no|yes) ;; #(
6930 $as_echo "#define _UINT32_T 1" >>confdefs.h
6933 cat >>confdefs.h <<_ACEOF
6934 #define uint32_t $ac_cv_c_uint32_t
6935 _ACEOF
6937 esac
6939 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6940 case $ac_cv_c_uint64_t in #(
6941 no|yes) ;; #(
6944 $as_echo "#define _UINT64_T 1" >>confdefs.h
6947 cat >>confdefs.h <<_ACEOF
6948 #define uint64_t $ac_cv_c_uint64_t
6949 _ACEOF
6951 esac
6955 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6956 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6958 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6960 else
6961 test $ac_cv_type_unsigned_long_long_int = yes \
6962 && ac_type='unsigned long long int' \
6963 || ac_type='unsigned long int'
6965 cat >>confdefs.h <<_ACEOF
6966 #define uintmax_t $ac_type
6967 _ACEOF
6973 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6974 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6976 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6978 else
6979 for ac_type in 'unsigned int' 'unsigned long int' \
6980 'unsigned long long int'; do
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983 $ac_includes_default
6985 main ()
6987 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6988 test_array [0] = 0;
6989 return test_array [0];
6992 return 0;
6994 _ACEOF
6995 if ac_fn_cxx_try_compile "$LINENO"; then :
6997 cat >>confdefs.h <<_ACEOF
6998 #define uintptr_t $ac_type
6999 _ACEOF
7001 ac_type=
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 test -z "$ac_type" && break
7005 done
7021 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
7022 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
7025 # check what underlying integer type int64_t uses
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7027 $as_echo_n "checking for int64_t underlying type... " >&6; }
7028 if ${ac_cv_int64_t_type+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7035 #ifdef HAVE_STDINT_H
7036 #include <stdint.h>
7037 #endif
7038 template <typename T> struct X { };
7039 template <>
7040 struct X<long> { typedef long t; };
7043 main ()
7045 X<int64_t>::t x;
7047 return 0;
7049 _ACEOF
7050 if ac_fn_cxx_try_compile "$LINENO"; then :
7051 ac_cv_int64_t_type=long
7052 else
7053 ac_cv_int64_t_type="long long"
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7058 $as_echo "$ac_cv_int64_t_type" >&6; }
7059 if test "$ac_cv_int64_t_type" = "long"; then
7061 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7063 else
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7067 #ifdef HAVE_STDINT_H
7068 #include <stdint.h>
7069 #endif
7070 template <typename T> struct X { };
7071 template <>
7072 struct X<long long> { typedef long long t; };
7075 main ()
7077 X<int64_t>::t x;
7079 return 0;
7081 _ACEOF
7082 if ac_fn_cxx_try_compile "$LINENO"; then :
7084 else
7085 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7091 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7092 if ${ac_cv_std_swap_in_utility+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7099 #include <utility>
7102 main ()
7104 int a, b; std::swap(a,b);
7106 return 0;
7108 _ACEOF
7109 if ac_fn_cxx_try_compile "$LINENO"; then :
7110 ac_cv_std_swap_in_utility=yes
7111 else
7112 ac_cv_std_swap_in_utility=no
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7117 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7118 if test $ac_cv_std_swap_in_utility = yes; then
7120 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7124 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7125 # If the host compiler is affected by the bug, and we build with optimization
7126 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7127 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7128 # Since there is no reliable feature check for the presence of this bug,
7129 # we simply use a GCC version number check. (This should never trigger for
7130 # stages 2 or 3 of a native bootstrap.)
7131 aliasing_flags=
7132 if test "$GCC" = yes; then
7133 saved_CXXFLAGS="$CXXFLAGS"
7135 # The following test compilation will succeed if and only if $CXX accepts
7136 # -fno-strict-aliasing *and* is older than GCC 4.3.
7137 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7139 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7143 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7144 #error compiler not affected by placement new aliasing bug
7145 #endif
7147 _ACEOF
7148 if ac_fn_cxx_try_compile "$LINENO"; then :
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7150 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7151 else
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 CXXFLAGS="$saved_CXXFLAGS"
7163 # ---------------------
7164 # Warnings and checking
7165 # ---------------------
7167 # Check $CC warning features (if it's GCC).
7168 # We want to use -pedantic, but we don't want warnings about
7169 # * 'long long'
7170 # * variadic macros
7171 # * overlong strings
7172 # So, we only use -pedantic if we can disable those warnings.
7174 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7175 # Check whether --enable-build-format-warnings was given.
7176 if test "${enable_build_format_warnings+set}" = set; then :
7177 enableval=$enable_build_format_warnings;
7178 else
7179 enable_build_format_warnings=yes
7182 if test $enable_build_format_warnings = no; then :
7183 wf_opt=-Wno-format
7184 else
7185 wf_opt=
7187 ac_ext=cpp
7188 ac_cpp='$CXXCPP $CPPFLAGS'
7189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7193 loose_warn=
7194 save_CXXFLAGS="$CXXFLAGS"
7195 for real_option in -W -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7196 # Do the check with the no- prefix removed since gcc silently
7197 # accepts any -Wno-* option on purpose
7198 case $real_option in
7199 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7200 *) option=$real_option ;;
7201 esac
7202 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7205 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7206 if eval \${$as_acx_Woption+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 CXXFLAGS="$option"
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7214 main ()
7218 return 0;
7220 _ACEOF
7221 if ac_fn_cxx_try_compile "$LINENO"; then :
7222 eval "$as_acx_Woption=yes"
7223 else
7224 eval "$as_acx_Woption=no"
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 eval ac_res=\$$as_acx_Woption
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7231 $as_echo "$ac_res" >&6; }
7232 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7233 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7235 done
7236 CXXFLAGS="$save_CXXFLAGS"
7237 ac_ext=cpp
7238 ac_cpp='$CXXCPP $CPPFLAGS'
7239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7245 ac_ext=c
7246 ac_cpp='$CPP $CPPFLAGS'
7247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7251 c_loose_warn=
7252 save_CFLAGS="$CFLAGS"
7253 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7254 # Do the check with the no- prefix removed since gcc silently
7255 # accepts any -Wno-* option on purpose
7256 case $real_option in
7257 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7258 *) option=$real_option ;;
7259 esac
7260 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7263 $as_echo_n "checking whether $CC supports $option... " >&6; }
7264 if eval \${$as_acx_Woption+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 CFLAGS="$option"
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7272 main ()
7276 return 0;
7278 _ACEOF
7279 if ac_fn_c_try_compile "$LINENO"; then :
7280 eval "$as_acx_Woption=yes"
7281 else
7282 eval "$as_acx_Woption=no"
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 eval ac_res=\$$as_acx_Woption
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7289 $as_echo "$ac_res" >&6; }
7290 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7291 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7293 done
7294 CFLAGS="$save_CFLAGS"
7295 ac_ext=cpp
7296 ac_cpp='$CXXCPP $CPPFLAGS'
7297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7302 ac_ext=cpp
7303 ac_cpp='$CXXCPP $CPPFLAGS'
7304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7308 strict_warn=
7309 save_CXXFLAGS="$CXXFLAGS"
7310 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7311 # Do the check with the no- prefix removed since gcc silently
7312 # accepts any -Wno-* option on purpose
7313 case $real_option in
7314 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7315 *) option=$real_option ;;
7316 esac
7317 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7320 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7321 if eval \${$as_acx_Woption+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 CXXFLAGS="$option"
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7329 main ()
7333 return 0;
7335 _ACEOF
7336 if ac_fn_cxx_try_compile "$LINENO"; then :
7337 eval "$as_acx_Woption=yes"
7338 else
7339 eval "$as_acx_Woption=no"
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 eval ac_res=\$$as_acx_Woption
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7346 $as_echo "$ac_res" >&6; }
7347 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7348 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7350 done
7351 CXXFLAGS="$save_CXXFLAGS"
7352 ac_ext=cpp
7353 ac_cpp='$CXXCPP $CPPFLAGS'
7354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7359 ac_ext=c
7360 ac_cpp='$CPP $CPPFLAGS'
7361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7365 c_strict_warn=
7366 save_CFLAGS="$CFLAGS"
7367 for real_option in -Wold-style-definition -Wc++-compat; do
7368 # Do the check with the no- prefix removed since gcc silently
7369 # accepts any -Wno-* option on purpose
7370 case $real_option in
7371 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7372 *) option=$real_option ;;
7373 esac
7374 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7377 $as_echo_n "checking whether $CC supports $option... " >&6; }
7378 if eval \${$as_acx_Woption+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 CFLAGS="$option"
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7386 main ()
7390 return 0;
7392 _ACEOF
7393 if ac_fn_c_try_compile "$LINENO"; then :
7394 eval "$as_acx_Woption=yes"
7395 else
7396 eval "$as_acx_Woption=no"
7398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401 eval ac_res=\$$as_acx_Woption
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7403 $as_echo "$ac_res" >&6; }
7404 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7405 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7407 done
7408 CFLAGS="$save_CFLAGS"
7409 ac_ext=cpp
7410 ac_cpp='$CXXCPP $CPPFLAGS'
7411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7416 ac_ext=cpp
7417 ac_cpp='$CXXCPP $CPPFLAGS'
7418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7422 # Do the check with the no- prefix removed from the warning options
7423 # since gcc silently accepts any -Wno-* option on purpose
7424 if test "$GXX" = yes; then :
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7426 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7427 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 save_CXXFLAGS="$CXXFLAGS"
7431 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7436 main ()
7440 return 0;
7442 _ACEOF
7443 if ac_fn_cxx_try_compile "$LINENO"; then :
7444 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7445 else
7446 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 CXXFLAGS="$save_CXXFLAGS"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7452 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7453 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7454 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7458 ac_ext=cpp
7459 ac_cpp='$CXXCPP $CPPFLAGS'
7460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7465 ac_ext=cpp
7466 ac_cpp='$CXXCPP $CPPFLAGS'
7467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7471 # Check whether --enable-werror-always was given.
7472 if test "${enable_werror_always+set}" = set; then :
7473 enableval=$enable_werror_always;
7474 else
7475 enable_werror_always=no
7478 if test $enable_werror_always = yes; then :
7479 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7482 ac_ext=cpp
7483 ac_cpp='$CXXCPP $CPPFLAGS'
7484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7490 # The above macros do nothing if the compiler is not GCC. However, the
7491 # Makefile has more goo to add other flags, so these variables are used
7492 # to enable warnings only for GCC.
7493 warn_cflags=
7494 warn_cxxflags=
7495 if test "x$GCC" = "xyes"; then
7496 warn_cflags='$(GCC_WARN_CFLAGS)'
7497 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7502 # Disable exceptions and RTTI if building with g++
7503 ac_ext=c
7504 ac_cpp='$CPP $CPPFLAGS'
7505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7509 noexception_flags=
7510 save_CFLAGS="$CFLAGS"
7511 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7512 # Do the check with the no- prefix removed since gcc silently
7513 # accepts any -Wno-* option on purpose
7514 case $real_option in
7515 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7516 *) option=$real_option ;;
7517 esac
7518 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7521 $as_echo_n "checking whether $CC supports $option... " >&6; }
7522 if eval \${$as_acx_Woption+:} false; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 CFLAGS="$option"
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7530 main ()
7534 return 0;
7536 _ACEOF
7537 if ac_fn_c_try_compile "$LINENO"; then :
7538 eval "$as_acx_Woption=yes"
7539 else
7540 eval "$as_acx_Woption=no"
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 eval ac_res=\$$as_acx_Woption
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7547 $as_echo "$ac_res" >&6; }
7548 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7549 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7551 done
7552 CFLAGS="$save_CFLAGS"
7553 ac_ext=cpp
7554 ac_cpp='$CXXCPP $CPPFLAGS'
7555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7561 # Enable expensive internal checks
7562 is_release=
7563 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7564 is_release=yes
7567 # Check whether --enable-checking was given.
7568 if test "${enable_checking+set}" = set; then :
7569 enableval=$enable_checking; ac_checking_flags="${enableval}"
7570 else
7572 # Determine the default checks.
7573 if test x$is_release = x ; then
7574 ac_checking_flags=yes,extra
7575 else
7576 ac_checking_flags=release
7580 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7581 for check in release $ac_checking_flags
7583 case $check in
7584 # these set all the flags to specific states
7585 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7586 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7587 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7588 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7589 ac_tree_checking=1 ; ac_valgrind_checking= ;
7590 ac_types_checking=1 ;;
7591 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7592 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7593 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7594 ac_rtlflag_checking= ; ac_runtime_checking= ;
7595 ac_tree_checking= ; ac_valgrind_checking= ;
7596 ac_types_checking= ;;
7597 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7598 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7599 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7600 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7601 ac_tree_checking=1 ; ac_valgrind_checking= ;
7602 ac_types_checking=1 ;;
7603 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7604 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7605 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7606 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7607 ac_tree_checking= ; ac_valgrind_checking= ;
7608 ac_types_checking= ;;
7609 # these enable particular checks
7610 assert) ac_assert_checking=1 ;;
7611 df) ac_df_checking=1 ;;
7612 extra) ac_extra_checking=1 ;;
7613 fold) ac_fold_checking=1 ;;
7614 gc) ac_gc_checking=1 ;;
7615 gcac) ac_gc_always_collect=1 ;;
7616 gimple) ac_gimple_checking=1 ;;
7617 misc) ac_checking=1 ;;
7618 rtl) ac_rtl_checking=1 ;;
7619 rtlflag) ac_rtlflag_checking=1 ;;
7620 runtime) ac_runtime_checking=1 ;;
7621 tree) ac_tree_checking=1 ;;
7622 types) ac_types_checking=1 ;;
7623 valgrind) ac_valgrind_checking=1 ;;
7624 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7625 esac
7626 done
7627 IFS="$ac_save_IFS"
7629 if test x$ac_checking != x ; then
7631 $as_echo "#define CHECKING_P 1" >>confdefs.h
7633 else
7634 $as_echo "#define CHECKING_P 0" >>confdefs.h
7637 if test x$ac_extra_checking != x ; then
7639 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7641 else
7642 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7645 if test x$ac_df_checking != x ; then
7647 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7650 if test x$ac_assert_checking != x ; then
7652 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7655 if test x$ac_gimple_checking != x ; then
7657 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7661 if test x$ac_runtime_checking != x ; then
7663 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7666 if test x$ac_tree_checking != x ; then
7668 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7670 TREECHECKING=yes
7672 if test x$ac_types_checking != x ; then
7674 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7678 if test x$ac_rtl_checking != x ; then
7680 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7683 if test x$ac_rtlflag_checking != x ; then
7685 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7688 if test x$ac_gc_checking != x ; then
7690 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7693 if test x$ac_gc_always_collect != x ; then
7695 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7698 if test x$ac_fold_checking != x ; then
7700 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7703 valgrind_path_defines=
7704 valgrind_command=
7705 if test x$ac_valgrind_checking != x ; then
7707 # Prepare PATH_SEPARATOR.
7708 # The user is always right.
7709 if test "${PATH_SEPARATOR+set}" != set; then
7710 echo "#! /bin/sh" >conf$$.sh
7711 echo "exit 0" >>conf$$.sh
7712 chmod +x conf$$.sh
7713 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7714 PATH_SEPARATOR=';'
7715 else
7716 PATH_SEPARATOR=:
7718 rm -f conf$$.sh
7721 # Find out how to test for executable files. Don't use a zero-byte file,
7722 # as systems may use methods other than mode bits to determine executability.
7723 cat >conf$$.file <<_ASEOF
7724 #! /bin/sh
7725 exit 0
7726 _ASEOF
7727 chmod +x conf$$.file
7728 if test -x conf$$.file >/dev/null 2>&1; then
7729 ac_executable_p="test -x"
7730 else
7731 ac_executable_p="test -f"
7733 rm -f conf$$.file
7735 # Extract the first word of "valgrind", so it can be a program name with args.
7736 set dummy valgrind; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_path_valgrind_path+:} false; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 case "$valgrind_path" in
7743 [\\/]* | ?:[\\/]*)
7744 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7747 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7748 for ac_dir in $PATH; do
7749 IFS="$ac_save_IFS"
7750 test -z "$ac_dir" && ac_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7753 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7754 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7755 break 2
7758 done
7759 done
7760 IFS="$ac_save_IFS"
7762 esac
7764 valgrind_path="$ac_cv_path_valgrind_path"
7765 if test -n "$valgrind_path"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7767 $as_echo "$valgrind_path" >&6; }
7768 else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7773 if test "x$valgrind_path" = "x"; then
7774 as_fn_error $? "*** Cannot find valgrind" "$LINENO" 5
7776 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7777 valgrind_command="$valgrind_path -q"
7779 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7785 # Enable code coverage collection
7786 # Check whether --enable-coverage was given.
7787 if test "${enable_coverage+set}" = set; then :
7788 enableval=$enable_coverage; case "${enableval}" in
7789 yes|noopt)
7790 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7792 opt)
7793 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7796 # a.k.a. --disable-coverage
7797 coverage_flags=""
7800 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7802 esac
7803 else
7804 coverage_flags=""
7809 # Check whether --enable-gather-detailed-mem-stats was given.
7810 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7811 enableval=$enable_gather_detailed_mem_stats;
7812 else
7813 enable_gather_detailed_mem_stats=no
7816 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7818 cat >>confdefs.h <<_ACEOF
7819 #define GATHER_STATISTICS $gather_stats
7820 _ACEOF
7823 # Check whether --enable-valgrind-annotations was given.
7824 if test "${enable_valgrind_annotations+set}" = set; then :
7825 enableval=$enable_valgrind_annotations;
7826 else
7827 enable_valgrind_annotations=no
7830 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
7831 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
7836 if test x$enable_valgrind_annotations != xno \
7837 || test x$ac_valgrind_checking != x; then
7838 if test $ac_cv_header_valgrind_memcheck_h = no; then
7839 as_fn_error $? "*** Cannot find valgrind/memcheck.h" "$LINENO" 5
7842 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7846 # -------------------------------
7847 # Miscenalleous configure options
7848 # -------------------------------
7850 # Determine whether or not multilibs are enabled.
7851 # Check whether --enable-multilib was given.
7852 if test "${enable_multilib+set}" = set; then :
7853 enableval=$enable_multilib;
7854 else
7855 enable_multilib=yes
7860 # Determine whether or not multiarch is enabled.
7861 # Check whether --enable-multiarch was given.
7862 if test "${enable_multiarch+set}" = set; then :
7863 enableval=$enable_multiarch; case "${enableval}" in
7864 yes|no|auto) enable_multiarch=$enableval;;
7865 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7866 esac
7867 else
7868 enable_multiarch=auto
7871 if test x${enable_multiarch} = xauto; then
7872 if test x${with_native_system_header_dir} != x; then
7873 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7874 enable_multiarch=no
7876 if test x$host != x$target && test "x$with_sysroot" = x; then
7877 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7878 enable_multiarch=no
7881 if test x${enable_multiarch} = xyes; then
7883 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7887 $as_echo_n "checking for multiarch configuration... " >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7890 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7892 # needed for setting the multiarch name for soft-float/hard-float ABIs
7896 # default stack clash protection guard size as power of twos in bytes.
7897 # Please keep these in sync with params.def.
7898 stk_clash_min=12
7899 stk_clash_max=30
7901 # Keep the default value when the option is not used to 0, this allows us to
7902 # distinguish between the cases where the user specifially set a value via
7903 # configure and when the normal default value is used.
7905 # Check whether --with-stack-clash-protection-guard-size was given.
7906 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7907 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7908 else
7909 DEFAULT_STK_CLASH_GUARD_SIZE=0
7912 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7913 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7914 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7915 as_fn_error $? "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7919 cat >>confdefs.h <<_ACEOF
7920 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7921 _ACEOF
7924 # Specify the number of splits of match.pd to generate.
7926 # Check whether --with-matchpd-partitions was given.
7927 if test "${with_matchpd_partitions+set}" = set; then :
7928 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7929 else
7930 DEFAULT_MATCHPD_PARTITIONS=10
7933 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7934 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7939 # Specify the number of splits of insn-emit.cc and insn-recog.cc to generate.
7941 # Check whether --with-insnemit-partitions was given.
7942 if test "${with_insnemit_partitions+set}" = set; then :
7943 withval=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS="$with_insnemit_partitions"
7944 else
7945 DEFAULT_INSNEMIT_PARTITIONS=10
7948 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7949 as_fn_error $? "Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7954 # Enable __cxa_atexit for C++.
7955 # Check whether --enable-__cxa_atexit was given.
7956 if test "${enable___cxa_atexit+set}" = set; then :
7957 enableval=$enable___cxa_atexit;
7961 # Enable C extension for decimal float if target supports it.
7963 # Check whether --enable-decimal-float was given.
7964 if test "${enable_decimal_float+set}" = set; then :
7965 enableval=$enable_decimal_float;
7966 case $enable_decimal_float in
7967 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7968 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7969 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7970 esac
7972 else
7974 case $target in
7975 aarch64* | \
7976 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7977 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7978 i?86*-*-mingw* | x86_64*-*-mingw* | \
7979 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7980 enable_decimal_float=yes
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7984 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7985 enable_decimal_float=no
7987 esac
7992 # x86's use BID format instead of DPD
7993 case x$enable_decimal_float in
7994 xyes)
7995 case $target in
7996 aarch64* | i?86*-*-* | x86_64*-*-*)
7997 enable_decimal_float=bid
8000 enable_decimal_float=dpd
8002 esac
8003 default_decimal_float=$enable_decimal_float
8005 xno)
8006 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8007 # dependency on libdecnumber.
8008 default_decimal_float=dpd
8010 esac
8015 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8017 cat >>confdefs.h <<_ACEOF
8018 #define ENABLE_DECIMAL_FLOAT $dfp
8019 _ACEOF
8022 # Use default_decimal_float for dependency.
8023 enable_decimal_float=$default_decimal_float
8025 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8027 cat >>confdefs.h <<_ACEOF
8028 #define ENABLE_DECIMAL_BID_FORMAT $bid
8029 _ACEOF
8032 # Enable C extension for fixed-point arithmetic.
8033 # Check whether --enable-fixed-point was given.
8034 if test "${enable_fixed_point+set}" = set; then :
8035 enableval=$enable_fixed_point;
8036 else
8038 case $target in
8039 arm*)
8040 enable_fixed_point=yes
8043 mips*-*-*)
8044 enable_fixed_point=yes
8046 loongarch*-*-*)
8047 enable_fixed_point=yes
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8051 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8052 enable_fixed_point=no
8054 esac
8060 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8062 cat >>confdefs.h <<_ACEOF
8063 #define ENABLE_FIXED_POINT $fixedpoint
8064 _ACEOF
8067 # Enable threads
8068 # Pass with no value to take the default
8069 # Pass with a value to specify a thread package
8070 # Check whether --enable-threads was given.
8071 if test "${enable_threads+set}" = set; then :
8072 enableval=$enable_threads;
8073 else
8074 enable_threads=''
8078 # Check whether --enable-tls was given.
8079 if test "${enable_tls+set}" = set; then :
8080 enableval=$enable_tls;
8081 case $enable_tls in
8082 yes | no) ;;
8083 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8084 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8085 esac
8087 else
8088 enable_tls=''
8092 # Check whether --enable-vtable-verify was given.
8093 if test "${enable_vtable_verify+set}" = set; then :
8094 enableval=$enable_vtable_verify;
8095 else
8096 enable_vtable_verify=no
8099 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8101 cat >>confdefs.h <<_ACEOF
8102 #define ENABLE_VTABLE_VERIFY $vtable_verify
8103 _ACEOF
8106 # Check whether --enable-analyzer was given.
8107 if test "${enable_analyzer+set}" = set; then :
8108 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8109 analyzer=0
8110 else
8111 analyzer=1
8113 else
8114 analyzer=1
8118 cat >>confdefs.h <<_ACEOF
8119 #define ENABLE_ANALYZER $analyzer
8120 _ACEOF
8123 # Check whether --enable-objc-gc was given.
8124 if test "${enable_objc_gc+set}" = set; then :
8125 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8126 objc_boehm_gc=''
8127 else
8128 objc_boehm_gc=1
8130 else
8131 objc_boehm_gc=''
8136 # Check whether --with-dwarf2 was given.
8137 if test "${with_dwarf2+set}" = set; then :
8138 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8139 else
8140 dwarf2=no
8144 # Check whether --enable-shared was given.
8145 if test "${enable_shared+set}" = set; then :
8146 enableval=$enable_shared;
8147 case $enable_shared in
8148 yes | no) ;;
8150 enable_shared=no
8151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8152 for pkg in $enableval; do
8153 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8154 enable_shared=yes
8156 done
8157 IFS="$ac_save_ifs"
8159 esac
8161 else
8162 enable_shared=yes
8167 # Check whether --enable-gcov was given.
8168 if test "${enable_gcov+set}" = set; then :
8169 enableval=$enable_gcov;
8170 else
8171 case $target in
8172 bpf-*-*)
8173 enable_gcov=no
8176 enable_gcov=yes
8178 esac
8185 # Check whether --with-specs was given.
8186 if test "${with_specs+set}" = set; then :
8187 withval=$with_specs; CONFIGURE_SPECS=$withval
8188 else
8189 CONFIGURE_SPECS=
8197 # Check whether --with-pkgversion was given.
8198 if test "${with_pkgversion+set}" = set; then :
8199 withval=$with_pkgversion; case "$withval" in
8200 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8201 no) PKGVERSION= ;;
8202 *) PKGVERSION="($withval) " ;;
8203 esac
8204 else
8205 PKGVERSION="(GCC) "
8213 # Check whether --with-bugurl was given.
8214 if test "${with_bugurl+set}" = set; then :
8215 withval=$with_bugurl; case "$withval" in
8216 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8217 no) BUGURL=
8219 *) BUGURL="$withval"
8221 esac
8222 else
8223 BUGURL="https://gcc.gnu.org/bugs/"
8227 case ${BUGURL} in
8229 REPORT_BUGS_TO=
8230 REPORT_BUGS_TEXI=
8233 REPORT_BUGS_TO="<$BUGURL>"
8234 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8236 esac;
8241 # Allow overriding the default URL for documentation
8243 # Check whether --with-documentation-root-url was given.
8244 if test "${with_documentation_root_url+set}" = set; then :
8245 withval=$with_documentation_root_url; case "$withval" in
8246 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8247 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8248 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8249 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8250 esac
8251 else
8253 docroot_url_suffix=
8254 case "$gcc_version" in
8255 *.[123456].0) docroot_url_suffix="gcc-$gcc_version/";;
8256 *.[123456].1) docroot_url_suffix="gcc-`echo $gcc_version | sed 's/1$/0/'`/";;
8257 esac
8258 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/$docroot_url_suffix"
8263 cat >>confdefs.h <<_ACEOF
8264 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8265 _ACEOF
8268 # Allow overriding the default URL for GCC changes
8270 # Check whether --with-changes-root-url was given.
8271 if test "${with_changes_root_url+set}" = set; then :
8272 withval=$with_changes_root_url; case "$withval" in
8273 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8274 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8275 */) CHANGES_ROOT_URL="$withval" ;;
8276 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8277 esac
8278 else
8279 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8284 cat >>confdefs.h <<_ACEOF
8285 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8286 _ACEOF
8289 # Sanity check enable_languages in case someone does not run the toplevel
8290 # configure # script.
8291 # Check whether --enable-languages was given.
8292 if test "${enable_languages+set}" = set; then :
8293 enableval=$enable_languages; case ,${enable_languages}, in
8294 ,,|,yes,)
8295 # go safe -- we cannot be much sure without the toplevel
8296 # configure's
8297 # analysis of which target libs are present and usable
8298 enable_languages=c
8300 *,all,*)
8301 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8303 *,c,*)
8306 enable_languages=c,${enable_languages}
8308 esac
8309 else
8310 enable_languages=c
8314 # If top-level libada has been disabled, then wire in install-gnatlib
8315 # invocation with `make install', so that one can build and install
8316 # the library manually with `make -C gcc all gnatlib gnattools install'.
8317 if test x"$enable_libada" = xno; then
8318 gnat_install_lib=gnat-install-lib
8319 else
8320 gnat_install_lib=
8324 if test x"$enable_as_accelerator_for" != x; then
8326 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8328 enable_as_accelerator=yes
8329 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8330 program_transform_name=`echo $program_transform_name | sed $sedscript`
8331 accel_dir_suffix=/accel/${target_noncanonical}
8332 real_target_noncanonical=${enable_as_accelerator_for}
8338 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8339 tgt=`echo $tgt | sed 's/=.*//'`
8341 enable_offloading=1
8342 case "$tgt" in
8343 amdgcn*)
8344 omp_device_property=omp-device-properties-gcn
8345 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8347 nvptx*)
8348 omp_device_property=omp-device-properties-nvptx
8349 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8352 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8354 esac
8355 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8356 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8358 if test x"$offload_targets" = x; then
8359 offload_targets=$tgt
8360 else
8361 offload_targets="$offload_targets,$tgt"
8363 done
8368 cat >>confdefs.h <<_ACEOF
8369 #define OFFLOAD_TARGETS "$offload_targets"
8370 _ACEOF
8372 if test x"$enable_offloading" != x; then
8374 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8376 else
8378 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8382 if test "x$enable_offload_defaulted" = xyes; then
8384 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8389 # Check whether --with-multilib-list was given.
8390 if test "${with_multilib_list+set}" = set; then :
8391 withval=$with_multilib_list; :
8392 else
8393 with_multilib_list=default
8398 # Check whether --with-multilib-generator was given.
8399 if test "${with_multilib_generator+set}" = set; then :
8400 withval=$with_multilib_generator; :
8401 else
8402 with_multilib_generator=default
8406 # -------------------------
8407 # Checks for other programs
8408 # -------------------------
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8411 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8412 set x ${MAKE-make}
8413 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8414 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 cat >conftest.make <<\_ACEOF
8418 SHELL = /bin/sh
8419 all:
8420 @echo '@@@%%%=$(MAKE)=@@@%%%'
8421 _ACEOF
8422 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8423 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8424 *@@@%%%=?*=@@@%%%*)
8425 eval ac_cv_prog_make_${ac_make}_set=yes;;
8427 eval ac_cv_prog_make_${ac_make}_set=no;;
8428 esac
8429 rm -f conftest.make
8431 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8433 $as_echo "yes" >&6; }
8434 SET_MAKE=
8435 else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8438 SET_MAKE="MAKE=${MAKE-make}"
8442 # Find some useful tools
8443 for ac_prog in gawk mawk nawk awk
8445 # Extract the first word of "$ac_prog", so it can be a program name with args.
8446 set dummy $ac_prog; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_prog_AWK+:} false; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 if test -n "$AWK"; then
8453 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8454 else
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8462 ac_cv_prog_AWK="$ac_prog"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8466 done
8467 done
8468 IFS=$as_save_IFS
8472 AWK=$ac_cv_prog_AWK
8473 if test -n "$AWK"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8475 $as_echo "$AWK" >&6; }
8476 else
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8482 test -n "$AWK" && break
8483 done
8485 # We need awk to create options.cc and options.h.
8486 # Bail out if it's missing.
8487 case ${AWK} in
8488 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8489 esac
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8492 $as_echo_n "checking whether ln -s works... " >&6; }
8493 if ${gcc_cv_prog_LN_S+:} false; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 rm -f conftestdata_t
8497 echo >conftestdata_f
8498 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8499 then
8500 gcc_cv_prog_LN_S="ln -s"
8501 else
8502 if ln conftestdata_f conftestdata_t 2>/dev/null
8503 then
8504 gcc_cv_prog_LN_S=ln
8505 else
8506 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8507 then
8508 gcc_cv_prog_LN_S="cp -p"
8509 else
8510 gcc_cv_prog_LN_S=cp
8514 rm -f conftestdata_f conftestdata_t
8517 LN_S="$gcc_cv_prog_LN_S"
8518 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8520 $as_echo "yes" >&6; }
8521 else
8522 if test "$gcc_cv_prog_LN_S" = "ln"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8524 $as_echo "no, using ln" >&6; }
8525 else
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8527 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8532 $as_echo_n "checking whether ln works... " >&6; }
8533 if ${acx_cv_prog_LN+:} false; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 rm -f conftestdata_t
8537 echo >conftestdata_f
8538 if ln conftestdata_f conftestdata_t 2>/dev/null
8539 then
8540 acx_cv_prog_LN=ln
8541 else
8542 acx_cv_prog_LN=no
8544 rm -f conftestdata_f conftestdata_t
8547 if test $acx_cv_prog_LN = no; then
8548 LN="$LN_S"
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8550 $as_echo "no, using $LN" >&6; }
8551 else
8552 LN="$acx_cv_prog_LN"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8554 $as_echo "yes" >&6; }
8557 if test -n "$ac_tool_prefix"; then
8558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561 $as_echo_n "checking for $ac_word... " >&6; }
8562 if ${ac_cv_prog_RANLIB+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 if test -n "$RANLIB"; then
8566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8567 else
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $PATH
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8579 done
8580 done
8581 IFS=$as_save_IFS
8585 RANLIB=$ac_cv_prog_RANLIB
8586 if test -n "$RANLIB"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8588 $as_echo "$RANLIB" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8596 if test -z "$ac_cv_prog_RANLIB"; then
8597 ac_ct_RANLIB=$RANLIB
8598 # Extract the first word of "ranlib", so it can be a program name with args.
8599 set dummy ranlib; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 if test -n "$ac_ct_RANLIB"; then
8606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8607 else
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in $PATH
8611 IFS=$as_save_IFS
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615 ac_cv_prog_ac_ct_RANLIB="ranlib"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 break 2
8619 done
8620 done
8621 IFS=$as_save_IFS
8625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8626 if test -n "$ac_ct_RANLIB"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8628 $as_echo "$ac_ct_RANLIB" >&6; }
8629 else
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8634 if test "x$ac_ct_RANLIB" = x; then
8635 RANLIB=":"
8636 else
8637 case $cross_compiling:$ac_tool_warned in
8638 yes:)
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8641 ac_tool_warned=yes ;;
8642 esac
8643 RANLIB=$ac_ct_RANLIB
8645 else
8646 RANLIB="$ac_cv_prog_RANLIB"
8649 ranlib_flags=""
8652 # Find a good install program. We prefer a C program (faster),
8653 # so one script is as good as another. But avoid the broken or
8654 # incompatible versions:
8655 # SysV /etc/install, /usr/sbin/install
8656 # SunOS /usr/etc/install
8657 # IRIX /sbin/install
8658 # AIX /bin/install
8659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8661 # ./install, which can be erroneously created by make from ./install.sh.
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8663 $as_echo_n "checking for a BSD compatible install... " >&6; }
8664 if test -z "$INSTALL"; then
8665 if ${ac_cv_path_install+:} false; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8669 for ac_dir in $PATH; do
8670 # Account for people who put trailing slashes in PATH elements.
8671 case "$ac_dir/" in
8672 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8674 # OSF1 and SCO ODT 3.0 have their own names for install.
8675 for ac_prog in ginstall scoinst install; do
8676 if test -f $ac_dir/$ac_prog; then
8677 if test $ac_prog = install &&
8678 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8679 # AIX install. It has an incompatible calling convention.
8680 # OSF/1 installbsd also uses dspmsg, but is usable.
8682 else
8683 ac_cv_path_install="$ac_dir/$ac_prog -c"
8684 break 2
8687 done
8689 esac
8690 done
8691 IFS="$ac_save_IFS"
8694 if test "${ac_cv_path_install+set}" = set; then
8695 INSTALL="$ac_cv_path_install"
8696 else
8697 # As a last resort, use the slow shell script. We don't cache a
8698 # path for INSTALL within a source directory, because that will
8699 # break other packages using the cache if that directory is
8700 # removed, or if the path is relative.
8701 INSTALL="$ac_install_sh"
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8705 $as_echo "$INSTALL" >&6; }
8707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8708 # It thinks the first close brace ends the variable substitution.
8709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8714 # See if cmp has --ignore-initial.
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8716 $as_echo_n "checking for cmp's capabilities... " >&6; }
8717 if ${gcc_cv_prog_cmp_skip+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 echo abfoo >t1
8721 echo cdfoo >t2
8722 gcc_cv_prog_cmp_skip=slowcompare
8723 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8724 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8726 else
8727 gcc_cv_prog_cmp_skip=gnucompare
8730 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8731 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8732 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8734 else
8735 gcc_cv_prog_cmp_skip=fastcompare
8739 rm t1 t2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8743 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8744 make_compare_target=$gcc_cv_prog_cmp_skip
8748 # See if we have the mktemp command.
8749 # Extract the first word of "mktemp", so it can be a program name with args.
8750 set dummy mktemp; ac_word=$2
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752 $as_echo_n "checking for $ac_word... " >&6; }
8753 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 if test -n "$have_mktemp_command"; then
8757 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8758 else
8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760 for as_dir in $PATH
8762 IFS=$as_save_IFS
8763 test -z "$as_dir" && as_dir=.
8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8766 ac_cv_prog_have_mktemp_command="yes"
8767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 break 2
8770 done
8771 done
8772 IFS=$as_save_IFS
8774 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8777 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8778 if test -n "$have_mktemp_command"; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8780 $as_echo "$have_mktemp_command" >&6; }
8781 else
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8788 # See if makeinfo has been installed and is modern enough
8789 # that we can use it.
8791 # Extract the first word of "makeinfo", so it can be a program name with args.
8792 set dummy makeinfo; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_MAKEINFO+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 if test -n "$MAKEINFO"; then
8799 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8800 else
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8804 IFS=$as_save_IFS
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808 ac_cv_prog_MAKEINFO="makeinfo"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 break 2
8812 done
8813 done
8814 IFS=$as_save_IFS
8818 MAKEINFO=$ac_cv_prog_MAKEINFO
8819 if test -n "$MAKEINFO"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8821 $as_echo "$MAKEINFO" >&6; }
8822 else
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8828 if test -n "$MAKEINFO"; then
8829 # Found it, now check the version.
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8831 $as_echo_n "checking for modern makeinfo... " >&6; }
8832 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8836 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8838 case $ac_prog_version in
8839 '') gcc_cv_prog_makeinfo_modern=no;;
8840 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8841 *) gcc_cv_prog_makeinfo_modern=no;;
8842 esac
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8846 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8847 else
8848 gcc_cv_prog_makeinfo_modern=no
8850 if test $gcc_cv_prog_makeinfo_modern = no; then
8851 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8854 if test $gcc_cv_prog_makeinfo_modern = no; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8856 *** Makeinfo is missing or too old.
8857 *** Info documentation will not be built." >&5
8858 $as_echo "$as_me: WARNING:
8859 *** Makeinfo is missing or too old.
8860 *** Info documentation will not be built." >&2;}
8861 BUILD_INFO=no-info
8862 else
8863 BUILD_INFO=info
8867 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8868 # If it does, we want to pass it to makeinfo in order to restore the old
8869 # behavior of @{summary,}contents placement.
8870 MAKEINFO_TOC_INLINE_FLAG=
8871 if test x"$MAKEINFO" != x; then :
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8874 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8875 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8879 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8880 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8881 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8882 gcc_cv_texi_add_toc_inline_flags=no
8883 else
8884 gcc_cv_texi_add_toc_inline_flags=yes
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8889 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8890 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8891 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8897 # Is pod2man recent enough to regenerate manpages?
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8899 $as_echo_n "checking for recent Pod::Man... " >&6; }
8900 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8902 $as_echo "yes" >&6; }
8903 GENERATED_MANPAGES=generated-manpages
8904 else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8907 GENERATED_MANPAGES=
8911 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8913 # How about lex?
8914 for ac_prog in flex
8916 # Extract the first word of "$ac_prog", so it can be a program name with args.
8917 set dummy $ac_prog; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if ${ac_cv_prog_FLEX+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 if test -n "$FLEX"; then
8924 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_FLEX="$ac_prog"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8937 done
8938 done
8939 IFS=$as_save_IFS
8943 FLEX=$ac_cv_prog_FLEX
8944 if test -n "$FLEX"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8946 $as_echo "$FLEX" >&6; }
8947 else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8953 test -n "$FLEX" && break
8954 done
8955 test -n "$FLEX" || FLEX="$MISSING flex"
8958 # Bison?
8959 for ac_prog in bison
8961 # Extract the first word of "$ac_prog", so it can be a program name with args.
8962 set dummy $ac_prog; ac_word=$2
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964 $as_echo_n "checking for $ac_word... " >&6; }
8965 if ${ac_cv_prog_BISON+:} false; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 if test -n "$BISON"; then
8969 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8970 else
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8978 ac_cv_prog_BISON="$ac_prog"
8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8982 done
8983 done
8984 IFS=$as_save_IFS
8988 BISON=$ac_cv_prog_BISON
8989 if test -n "$BISON"; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8991 $as_echo "$BISON" >&6; }
8992 else
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8998 test -n "$BISON" && break
8999 done
9000 test -n "$BISON" || BISON="$MISSING bison"
9003 # Python3?
9005 # Extract the first word of "python3", so it can be a program name with args.
9006 set dummy python3; ac_word=$2
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9008 $as_echo_n "checking for $ac_word... " >&6; }
9009 if ${ac_cv_prog_PYTHON+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 if test -n "$PYTHON"; then
9013 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
9014 else
9015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016 for as_dir in $PATH
9018 IFS=$as_save_IFS
9019 test -z "$as_dir" && as_dir=.
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9022 ac_cv_prog_PYTHON="python3"
9023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9024 break 2
9026 done
9027 done
9028 IFS=$as_save_IFS
9032 PYTHON=$ac_cv_prog_PYTHON
9033 if test -n "$PYTHON"; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9035 $as_echo "$PYTHON" >&6; }
9036 else
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9038 $as_echo "no" >&6; }
9042 if test -n "$PYTHON"; then
9043 # Found it, now check the version.
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9045 $as_echo_n "checking for modern python3... " >&6; }
9046 if ${gcc_cv_prog_python3_modern+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 ac_prog_version=`eval $PYTHON --version 2>&1 |
9050 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9052 case $ac_prog_version in
9053 '') gcc_cv_prog_python3_modern=no;;
9054 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9055 *) gcc_cv_prog_python3_modern=no;;
9056 esac
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9060 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9061 else
9062 gcc_cv_prog_python3_modern=no
9064 if test $gcc_cv_prog_python3_modern = no; then
9065 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9068 if test $gcc_cv_prog_python3_modern = no; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9070 *** Python3 is missing.
9071 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9072 $as_echo "$as_me: WARNING:
9073 *** Python3 is missing.
9074 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9075 HAVE_PYTHON=no
9076 else
9077 HAVE_PYTHON=yes
9081 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9082 # check for build == host before using them.
9084 # NM
9085 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9086 && test -d ../binutils ; then
9087 NM='../binutils/nm-new'
9088 else
9089 # Extract the first word of "nm", so it can be a program name with args.
9090 set dummy nm; ac_word=$2
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092 $as_echo_n "checking for $ac_word... " >&6; }
9093 if ${ac_cv_prog_NM+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 if test -n "$NM"; then
9097 ac_cv_prog_NM="$NM" # Let the user override the test.
9098 else
9099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 for as_dir in $PATH
9102 IFS=$as_save_IFS
9103 test -z "$as_dir" && as_dir=.
9104 for ac_exec_ext in '' $ac_executable_extensions; do
9105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9106 ac_cv_prog_NM="nm"
9107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9108 break 2
9110 done
9111 done
9112 IFS=$as_save_IFS
9114 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9117 NM=$ac_cv_prog_NM
9118 if test -n "$NM"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9120 $as_echo "$NM" >&6; }
9121 else
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9129 # AR
9130 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9131 && test -d ../binutils ; then
9132 AR='../binutils/ar'
9133 else
9134 # Extract the first word of "ar", so it can be a program name with args.
9135 set dummy ar; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_prog_AR+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 if test -n "$AR"; then
9142 ac_cv_prog_AR="$AR" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151 ac_cv_prog_AR="ar"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 break 2
9155 done
9156 done
9157 IFS=$as_save_IFS
9159 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9162 AR=$ac_cv_prog_AR
9163 if test -n "$AR"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9165 $as_echo "$AR" >&6; }
9166 else
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9174 # The jit documentation looks better if built with sphinx, but can be
9175 # built with texinfo if sphinx is not available.
9176 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9177 # Extract the first word of "sphinx-build", so it can be a program name with args.
9178 set dummy sphinx-build; ac_word=$2
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 $as_echo_n "checking for $ac_word... " >&6; }
9181 if ${ac_cv_prog_doc_build_sys+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 if test -n "$doc_build_sys"; then
9185 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9186 else
9187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 for as_dir in $PATH
9190 IFS=$as_save_IFS
9191 test -z "$as_dir" && as_dir=.
9192 for ac_exec_ext in '' $ac_executable_extensions; do
9193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9194 ac_cv_prog_doc_build_sys="sphinx"
9195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9196 break 2
9198 done
9199 done
9200 IFS=$as_save_IFS
9202 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9205 doc_build_sys=$ac_cv_prog_doc_build_sys
9206 if test -n "$doc_build_sys"; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9208 $as_echo "$doc_build_sys" >&6; }
9209 else
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9216 # --------------------
9217 # Checks for C headers
9218 # --------------------
9220 # Need to reject headers which give warnings, so that the -Werror bootstrap
9221 # works later. *sigh* This needs to come before all header checks.
9223 ac_c_preproc_warn_flag=yes
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9226 $as_echo_n "checking for ANSI C header files... " >&6; }
9227 if ${ac_cv_header_stdc+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 #include <stdlib.h>
9233 #include <stdarg.h>
9234 #include <string.h>
9235 #include <float.h>
9238 main ()
9242 return 0;
9244 _ACEOF
9245 if ac_fn_cxx_try_compile "$LINENO"; then :
9246 ac_cv_header_stdc=yes
9247 else
9248 ac_cv_header_stdc=no
9250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252 if test $ac_cv_header_stdc = yes; then
9253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 #include <string.h>
9258 _ACEOF
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 $EGREP "memchr" >/dev/null 2>&1; then :
9262 else
9263 ac_cv_header_stdc=no
9265 rm -f conftest*
9269 if test $ac_cv_header_stdc = yes; then
9270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 #include <stdlib.h>
9275 _ACEOF
9276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9277 $EGREP "free" >/dev/null 2>&1; then :
9279 else
9280 ac_cv_header_stdc=no
9282 rm -f conftest*
9286 if test $ac_cv_header_stdc = yes; then
9287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9288 if test "$cross_compiling" = yes; then :
9290 else
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9293 #include <ctype.h>
9294 #include <stdlib.h>
9295 #if ((' ' & 0x0FF) == 0x020)
9296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9298 #else
9299 # define ISLOWER(c) \
9300 (('a' <= (c) && (c) <= 'i') \
9301 || ('j' <= (c) && (c) <= 'r') \
9302 || ('s' <= (c) && (c) <= 'z'))
9303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9304 #endif
9306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9308 main ()
9310 int i;
9311 for (i = 0; i < 256; i++)
9312 if (XOR (islower (i), ISLOWER (i))
9313 || toupper (i) != TOUPPER (i))
9314 return 2;
9315 return 0;
9317 _ACEOF
9318 if ac_fn_cxx_try_run "$LINENO"; then :
9320 else
9321 ac_cv_header_stdc=no
9323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9324 conftest.$ac_objext conftest.beam conftest.$ac_ext
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9330 $as_echo "$ac_cv_header_stdc" >&6; }
9331 if test $ac_cv_header_stdc = yes; then
9333 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9338 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9339 if ${ac_cv_header_time+:} false; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 #include <sys/types.h>
9345 #include <sys/time.h>
9346 #include <time.h>
9349 main ()
9351 if ((struct tm *) 0)
9352 return 0;
9354 return 0;
9356 _ACEOF
9357 if ac_fn_cxx_try_compile "$LINENO"; then :
9358 ac_cv_header_time=yes
9359 else
9360 ac_cv_header_time=no
9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9365 $as_echo "$ac_cv_header_time" >&6; }
9366 if test $ac_cv_header_time = yes; then
9368 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9373 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9374 if ${gcc_cv_header_string+:} false; then :
9375 $as_echo_n "(cached) " >&6
9376 else
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379 #include <string.h>
9380 #include <strings.h>
9382 main ()
9386 return 0;
9388 _ACEOF
9389 if ac_fn_cxx_try_compile "$LINENO"; then :
9390 gcc_cv_header_string=yes
9391 else
9392 gcc_cv_header_string=no
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9397 $as_echo "$gcc_cv_header_string" >&6; }
9398 if test $gcc_cv_header_string = yes; then
9400 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9405 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9406 if ${ac_cv_header_sys_wait_h+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411 #include <sys/types.h>
9412 #include <sys/wait.h>
9413 #ifndef WEXITSTATUS
9414 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9415 #endif
9416 #ifndef WIFEXITED
9417 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9418 #endif
9421 main ()
9423 int s;
9424 wait (&s);
9425 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9427 return 0;
9429 _ACEOF
9430 if ac_fn_cxx_try_compile "$LINENO"; then :
9431 ac_cv_header_sys_wait_h=yes
9432 else
9433 ac_cv_header_sys_wait_h=no
9435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9438 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9439 if test $ac_cv_header_sys_wait_h = yes; then
9441 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9446 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9447 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 #include <sys/types.h>
9453 #include <termios.h>
9454 #ifdef TIOCGWINSZ
9456 #endif
9458 _ACEOF
9459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9460 $EGREP "yes" >/dev/null 2>&1; then :
9461 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9462 else
9463 ac_cv_sys_tiocgwinsz_in_termios_h=no
9465 rm -f conftest*
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9469 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9471 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9473 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9474 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 #include <sys/types.h>
9480 #include <sys/ioctl.h>
9481 #ifdef TIOCGWINSZ
9483 #endif
9485 _ACEOF
9486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9487 $EGREP "yes" >/dev/null 2>&1; then :
9488 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9489 else
9490 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9492 rm -f conftest*
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9496 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9498 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9500 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9505 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9506 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9507 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9508 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9509 do :
9510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9511 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9512 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9513 cat >>confdefs.h <<_ACEOF
9514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9515 _ACEOF
9518 done
9521 # Check for thread headers.
9522 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9523 if test "x$ac_cv_header_thread_h" = xyes; then :
9524 have_thread_h=yes
9525 else
9526 have_thread_h=
9529 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9530 if test "x$ac_cv_header_pthread_h" = xyes; then :
9531 have_pthread_h=yes
9532 else
9533 have_pthread_h=
9537 # These tests can't be done till we know if we have limits.h.
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9539 $as_echo_n "checking for CHAR_BIT... " >&6; }
9540 if ${gcc_cv_decl_char_bit+:} false; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545 #ifdef HAVE_LIMITS_H
9546 #include <limits.h>
9547 #endif
9548 #ifdef CHAR_BIT
9549 found
9550 #endif
9551 _ACEOF
9552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9553 $EGREP "found" >/dev/null 2>&1; then :
9554 gcc_cv_decl_char_bit=yes
9555 else
9556 gcc_cv_decl_char_bit=no
9558 rm -f conftest*
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9563 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9564 if test $gcc_cv_decl_char_bit = no; then
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9566 $as_echo_n "checking number of bits in a byte... " >&6; }
9567 if ${gcc_cv_c_nbby+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9571 gcc_cv_c_nbby=
9572 while test $i -lt 65; do
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9577 main ()
9579 switch(0) {
9580 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9581 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9584 return 0;
9586 _ACEOF
9587 if ac_fn_cxx_try_compile "$LINENO"; then :
9588 gcc_cv_c_nbby=$i; break
9590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591 i=`expr $i + 1`
9592 done
9593 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9597 $as_echo "$gcc_cv_c_nbby" >&6; }
9598 if test $gcc_cv_c_nbby = failed; then
9599 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9600 else
9602 cat >>confdefs.h <<_ACEOF
9603 #define CHAR_BIT $gcc_cv_c_nbby
9604 _ACEOF
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9609 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9610 if ${ac_cv_c_bigendian+:} false; then :
9611 $as_echo_n "(cached) " >&6
9612 else
9613 ac_cv_c_bigendian=unknown
9614 # See if we're dealing with a universal compiler.
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 #ifndef __APPLE_CC__
9618 not a universal capable compiler
9619 #endif
9620 typedef int dummy;
9622 _ACEOF
9623 if ac_fn_cxx_try_compile "$LINENO"; then :
9625 # Check for potential -arch flags. It is not universal unless
9626 # there are at least two -arch flags with different values.
9627 ac_arch=
9628 ac_prev=
9629 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9630 if test -n "$ac_prev"; then
9631 case $ac_word in
9632 i?86 | x86_64 | ppc | ppc64)
9633 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9634 ac_arch=$ac_word
9635 else
9636 ac_cv_c_bigendian=universal
9637 break
9640 esac
9641 ac_prev=
9642 elif test "x$ac_word" = "x-arch"; then
9643 ac_prev=arch
9645 done
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 if test $ac_cv_c_bigendian = unknown; then
9649 # See if sys/param.h defines the BYTE_ORDER macro.
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9652 #include <sys/types.h>
9653 #include <sys/param.h>
9656 main ()
9658 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9659 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9660 && LITTLE_ENDIAN)
9661 bogus endian macros
9662 #endif
9665 return 0;
9667 _ACEOF
9668 if ac_fn_cxx_try_compile "$LINENO"; then :
9669 # It does; now see whether it defined to BIG_ENDIAN or not.
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 #include <sys/types.h>
9673 #include <sys/param.h>
9676 main ()
9678 #if BYTE_ORDER != BIG_ENDIAN
9679 not big endian
9680 #endif
9683 return 0;
9685 _ACEOF
9686 if ac_fn_cxx_try_compile "$LINENO"; then :
9687 ac_cv_c_bigendian=yes
9688 else
9689 ac_cv_c_bigendian=no
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9695 if test $ac_cv_c_bigendian = unknown; then
9696 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 #include <limits.h>
9702 main ()
9704 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9705 bogus endian macros
9706 #endif
9709 return 0;
9711 _ACEOF
9712 if ac_fn_cxx_try_compile "$LINENO"; then :
9713 # It does; now see whether it defined to _BIG_ENDIAN or not.
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716 #include <limits.h>
9719 main ()
9721 #ifndef _BIG_ENDIAN
9722 not big endian
9723 #endif
9726 return 0;
9728 _ACEOF
9729 if ac_fn_cxx_try_compile "$LINENO"; then :
9730 ac_cv_c_bigendian=yes
9731 else
9732 ac_cv_c_bigendian=no
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9738 if test $ac_cv_c_bigendian = unknown; then
9739 # Compile a test program.
9740 if test "$cross_compiling" = yes; then :
9741 # Try to guess by grepping values from an object file.
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744 short int ascii_mm[] =
9745 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9746 short int ascii_ii[] =
9747 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9748 int use_ascii (int i) {
9749 return ascii_mm[i] + ascii_ii[i];
9751 short int ebcdic_ii[] =
9752 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9753 short int ebcdic_mm[] =
9754 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9755 int use_ebcdic (int i) {
9756 return ebcdic_mm[i] + ebcdic_ii[i];
9758 extern int foo;
9761 main ()
9763 return use_ascii (foo) == use_ebcdic (foo);
9765 return 0;
9767 _ACEOF
9768 if ac_fn_cxx_try_compile "$LINENO"; then :
9769 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9770 ac_cv_c_bigendian=yes
9772 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9773 if test "$ac_cv_c_bigendian" = unknown; then
9774 ac_cv_c_bigendian=no
9775 else
9776 # finding both strings is unlikely to happen, but who knows?
9777 ac_cv_c_bigendian=unknown
9781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9782 else
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785 $ac_includes_default
9787 main ()
9790 /* Are we little or big endian? From Harbison&Steele. */
9791 union
9793 long int l;
9794 char c[sizeof (long int)];
9795 } u;
9796 u.l = 1;
9797 return u.c[sizeof (long int) - 1] == 1;
9800 return 0;
9802 _ACEOF
9803 if ac_fn_cxx_try_run "$LINENO"; then :
9804 ac_cv_c_bigendian=no
9805 else
9806 ac_cv_c_bigendian=yes
9808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9809 conftest.$ac_objext conftest.beam conftest.$ac_ext
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9815 $as_echo "$ac_cv_c_bigendian" >&6; }
9816 case $ac_cv_c_bigendian in #(
9817 yes)
9818 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9819 ;; #(
9821 ;; #(
9822 universal)
9824 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9826 ;; #(
9828 as_fn_error $? "unknown endianness
9829 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9830 esac
9833 # ----------------------
9834 # Checks for C++ headers
9835 # ----------------------
9837 ac_ext=cpp
9838 ac_cpp='$CXXCPP $CPPFLAGS'
9839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9843 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9844 if test -z "$CXXCPP"; then
9845 if ${ac_cv_prog_CXXCPP+:} false; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 # Double quotes because CXXCPP needs to be expanded
9849 for CXXCPP in "$CXX -E" "/lib/cpp"
9851 ac_preproc_ok=false
9852 for ac_cxx_preproc_warn_flag in '' yes
9854 # Use a header file that comes with gcc, so configuring glibc
9855 # with a fresh cross-compiler works.
9856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857 # <limits.h> exists even on freestanding compilers.
9858 # On the NeXT, cc -E runs the code through the compiler's parser,
9859 # not just through cpp. "Syntax error" is here to catch this case.
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9862 #ifdef __STDC__
9863 # include <limits.h>
9864 #else
9865 # include <assert.h>
9866 #endif
9867 Syntax error
9868 _ACEOF
9869 if ac_fn_cxx_try_cpp "$LINENO"; then :
9871 else
9872 # Broken: fails on valid input.
9873 continue
9875 rm -f conftest.err conftest.i conftest.$ac_ext
9877 # OK, works on sane cases. Now check whether nonexistent headers
9878 # can be detected and how.
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9881 #include <ac_nonexistent.h>
9882 _ACEOF
9883 if ac_fn_cxx_try_cpp "$LINENO"; then :
9884 # Broken: success on invalid input.
9885 continue
9886 else
9887 # Passes both tests.
9888 ac_preproc_ok=:
9889 break
9891 rm -f conftest.err conftest.i conftest.$ac_ext
9893 done
9894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9895 rm -f conftest.i conftest.err conftest.$ac_ext
9896 if $ac_preproc_ok; then :
9897 break
9900 done
9901 ac_cv_prog_CXXCPP=$CXXCPP
9904 CXXCPP=$ac_cv_prog_CXXCPP
9905 else
9906 ac_cv_prog_CXXCPP=$CXXCPP
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9909 $as_echo "$CXXCPP" >&6; }
9910 ac_preproc_ok=false
9911 for ac_cxx_preproc_warn_flag in '' yes
9913 # Use a header file that comes with gcc, so configuring glibc
9914 # with a fresh cross-compiler works.
9915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916 # <limits.h> exists even on freestanding compilers.
9917 # On the NeXT, cc -E runs the code through the compiler's parser,
9918 # not just through cpp. "Syntax error" is here to catch this case.
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9921 #ifdef __STDC__
9922 # include <limits.h>
9923 #else
9924 # include <assert.h>
9925 #endif
9926 Syntax error
9927 _ACEOF
9928 if ac_fn_cxx_try_cpp "$LINENO"; then :
9930 else
9931 # Broken: fails on valid input.
9932 continue
9934 rm -f conftest.err conftest.i conftest.$ac_ext
9936 # OK, works on sane cases. Now check whether nonexistent headers
9937 # can be detected and how.
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 #include <ac_nonexistent.h>
9941 _ACEOF
9942 if ac_fn_cxx_try_cpp "$LINENO"; then :
9943 # Broken: success on invalid input.
9944 continue
9945 else
9946 # Passes both tests.
9947 ac_preproc_ok=:
9948 break
9950 rm -f conftest.err conftest.i conftest.$ac_ext
9952 done
9953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9954 rm -f conftest.i conftest.err conftest.$ac_ext
9955 if $ac_preproc_ok; then :
9957 else
9958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9961 See \`config.log' for more details" >&5
9962 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9963 See \`config.log' for more details" >&2;}; }
9966 ac_ext=cpp
9967 ac_cpp='$CXXCPP $CPPFLAGS'
9968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9973 for ac_header in unordered_map
9974 do :
9975 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9976 if test "x$ac_cv_header_unordered_map" = xyes; then :
9977 cat >>confdefs.h <<_ACEOF
9978 #define HAVE_UNORDERED_MAP 1
9979 _ACEOF
9982 done
9984 for ac_header in tr1/unordered_map
9985 do :
9986 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9987 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9988 cat >>confdefs.h <<_ACEOF
9989 #define HAVE_TR1_UNORDERED_MAP 1
9990 _ACEOF
9993 done
9995 for ac_header in ext/hash_map
9996 do :
9997 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9998 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9999 cat >>confdefs.h <<_ACEOF
10000 #define HAVE_EXT_HASH_MAP 1
10001 _ACEOF
10004 done
10007 # --------
10008 # Dependency checking.
10009 # --------
10011 rm -rf .tst 2>/dev/null
10012 mkdir .tst 2>/dev/null
10013 if test -d .tst; then
10014 am__leading_dot=.
10015 else
10016 am__leading_dot=_
10018 rmdir .tst 2>/dev/null
10020 DEPDIR="${am__leading_dot}deps"
10022 ac_config_commands="$ac_config_commands depdir"
10025 ac_config_commands="$ac_config_commands gccdepdir"
10028 depcc="$CXX" am_compiler_list=
10030 am_depcomp=$ac_aux_dir/depcomp
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10032 $as_echo_n "checking dependency style of $depcc... " >&6; }
10033 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
10034 $as_echo_n "(cached) " >&6
10035 else
10036 if test -f "$am_depcomp"; then
10037 # We make a subdir and do the tests there. Otherwise we can end up
10038 # making bogus files that we don't know about and never remove. For
10039 # instance it was reported that on HP-UX the gcc test will end up
10040 # making a dummy file named `D' -- because `-MD' means `put the output
10041 # in D'.
10042 mkdir conftest.dir
10043 # Copy depcomp to subdir because otherwise we won't find it if we're
10044 # using a relative directory.
10045 cp "$am_depcomp" conftest.dir
10046 cd conftest.dir
10047 # We will build objects and dependencies in a subdirectory because
10048 # it helps to detect inapplicable dependency modes. For instance
10049 # both Tru64's cc and ICC support -MD to output dependencies as a
10050 # side effect of compilation, but ICC will put the dependencies in
10051 # the current directory while Tru64 will put them in the object
10052 # directory.
10053 mkdir sub
10055 am_cv_CXX_dependencies_compiler_type=none
10056 if test "$am_compiler_list" = ""; then
10057 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10059 for depmode in $am_compiler_list; do
10060 if test $depmode = none; then break; fi
10062 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10063 # Setup a source with many dependencies, because some compilers
10064 # like to wrap large dependency lists on column 80 (with \), and
10065 # we should not choose a depcomp mode which is confused by this.
10067 # We need to recreate these files for each test, as the compiler may
10068 # overwrite some of them when testing with obscure command lines.
10069 # This happens at least with the AIX C compiler.
10070 : > sub/conftest.c
10071 for i in 1 2 3 4 5 6; do
10072 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10073 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10074 # Solaris 8's {/usr,}/bin/sh.
10075 touch sub/conftst$i.h
10076 done
10077 echo "include sub/conftest.Po" > confmf
10079 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10080 # mode. It turns out that the SunPro C++ compiler does not properly
10081 # handle `-M -o', and we need to detect this.
10082 depcmd="depmode=$depmode \
10083 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10085 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10086 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10087 if env $depcmd > conftest.err 2>&1 &&
10088 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10089 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10090 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10091 # icc doesn't choke on unknown options, it will just issue warnings
10092 # or remarks (even with -Werror). So we grep stderr for any message
10093 # that says an option was ignored or not supported.
10094 # When given -MP, icc 7.0 and 7.1 complain thusly:
10095 # icc: Command line warning: ignoring option '-M'; no argument required
10096 # The diagnosis changed in icc 8.0:
10097 # icc: Command line remark: option '-MP' not supported
10098 if (grep 'ignoring option' conftest.err ||
10099 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10100 am_cv_CXX_dependencies_compiler_type=$depmode
10101 $as_echo "$as_me:$LINENO: success" >&5
10102 break
10105 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10106 sed -e 's/^/| /' < conftest.err >&5
10107 done
10109 cd ..
10110 rm -rf conftest.dir
10111 else
10112 am_cv_CXX_dependencies_compiler_type=none
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10117 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10118 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10119 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10120 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10125 # --------
10126 # UNSORTED
10127 # --------
10130 # These libraries may be used by collect2.
10131 # We may need a special search path to get them linked.
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10133 $as_echo_n "checking for collect2 libraries... " >&6; }
10134 if ${gcc_cv_collect2_libs+:} false; then :
10135 $as_echo_n "(cached) " >&6
10136 else
10137 save_LIBS="$LIBS"
10138 for libs in '' -lld -lmld \
10139 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10140 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10142 LIBS="$libs"
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10146 /* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10149 #ifdef __cplusplus
10150 extern "C"
10151 #endif
10152 char ldopen ();
10154 main ()
10156 return ldopen ();
10158 return 0;
10160 _ACEOF
10161 if ac_fn_cxx_try_link "$LINENO"; then :
10162 gcc_cv_collect2_libs="$libs"; break
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 done
10167 LIBS="$save_LIBS"
10168 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10171 $as_echo "$gcc_cv_collect2_libs" >&6; }
10172 case $gcc_cv_collect2_libs in
10173 "none required") ;;
10174 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10175 esac
10178 # When building Ada code on Alpha, we need exc_resume which is usually in
10179 # -lexc. So test for it.
10180 save_LIBS="$LIBS"
10181 LIBS=
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10183 $as_echo_n "checking for library containing exc_resume... " >&6; }
10184 if ${ac_cv_search_exc_resume+:} false; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 ac_func_search_save_LIBS=$LIBS
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10191 /* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
10194 #ifdef __cplusplus
10195 extern "C"
10196 #endif
10197 char exc_resume ();
10199 main ()
10201 return exc_resume ();
10203 return 0;
10205 _ACEOF
10206 for ac_lib in '' exc; do
10207 if test -z "$ac_lib"; then
10208 ac_res="none required"
10209 else
10210 ac_res=-l$ac_lib
10211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10213 if ac_fn_cxx_try_link "$LINENO"; then :
10214 ac_cv_search_exc_resume=$ac_res
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext
10218 if ${ac_cv_search_exc_resume+:} false; then :
10219 break
10221 done
10222 if ${ac_cv_search_exc_resume+:} false; then :
10224 else
10225 ac_cv_search_exc_resume=no
10227 rm conftest.$ac_ext
10228 LIBS=$ac_func_search_save_LIBS
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10231 $as_echo "$ac_cv_search_exc_resume" >&6; }
10232 ac_res=$ac_cv_search_exc_resume
10233 if test "$ac_res" != no; then :
10234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10238 GNAT_LIBEXC="$LIBS"
10239 LIBS="$save_LIBS"
10242 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10243 save_LIBS="$LIBS"
10244 LIBS=
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10246 $as_echo_n "checking for library containing kstat_open... " >&6; }
10247 if ${ac_cv_search_kstat_open+:} false; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 ac_func_search_save_LIBS=$LIBS
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10257 #ifdef __cplusplus
10258 extern "C"
10259 #endif
10260 char kstat_open ();
10262 main ()
10264 return kstat_open ();
10266 return 0;
10268 _ACEOF
10269 for ac_lib in '' kstat; do
10270 if test -z "$ac_lib"; then
10271 ac_res="none required"
10272 else
10273 ac_res=-l$ac_lib
10274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10276 if ac_fn_cxx_try_link "$LINENO"; then :
10277 ac_cv_search_kstat_open=$ac_res
10279 rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext
10281 if ${ac_cv_search_kstat_open+:} false; then :
10282 break
10284 done
10285 if ${ac_cv_search_kstat_open+:} false; then :
10287 else
10288 ac_cv_search_kstat_open=no
10290 rm conftest.$ac_ext
10291 LIBS=$ac_func_search_save_LIBS
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10294 $as_echo "$ac_cv_search_kstat_open" >&6; }
10295 ac_res=$ac_cv_search_kstat_open
10296 if test "$ac_res" != no; then :
10297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10301 EXTRA_GCC_LIBS="$LIBS"
10302 LIBS="$save_LIBS"
10305 # Some systems put ldexp and frexp in libm instead of libc; assume
10306 # they're both in the same place. jcf-dump needs them.
10307 save_LIBS="$LIBS"
10308 LIBS=
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10310 $as_echo_n "checking for library containing ldexp... " >&6; }
10311 if ${ac_cv_search_ldexp+:} false; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 ac_func_search_save_LIBS=$LIBS
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10321 #ifdef __cplusplus
10322 extern "C"
10323 #endif
10324 char ldexp ();
10326 main ()
10328 return ldexp ();
10330 return 0;
10332 _ACEOF
10333 for ac_lib in '' m; do
10334 if test -z "$ac_lib"; then
10335 ac_res="none required"
10336 else
10337 ac_res=-l$ac_lib
10338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10340 if ac_fn_cxx_try_link "$LINENO"; then :
10341 ac_cv_search_ldexp=$ac_res
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext
10345 if ${ac_cv_search_ldexp+:} false; then :
10346 break
10348 done
10349 if ${ac_cv_search_ldexp+:} false; then :
10351 else
10352 ac_cv_search_ldexp=no
10354 rm conftest.$ac_ext
10355 LIBS=$ac_func_search_save_LIBS
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10358 $as_echo "$ac_cv_search_ldexp" >&6; }
10359 ac_res=$ac_cv_search_ldexp
10360 if test "$ac_res" != no; then :
10361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10365 LDEXP_LIB="$LIBS"
10366 LIBS="$save_LIBS"
10369 # Some systems need dlopen
10370 save_LIBS="$LIBS"
10371 LIBS=
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10373 $as_echo_n "checking for library containing dlopen... " >&6; }
10374 if ${ac_cv_search_dlopen+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 ac_func_search_save_LIBS=$LIBS
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10381 /* Override any GCC internal prototype to avoid an error.
10382 Use char because int might match the return type of a GCC
10383 builtin and then its argument prototype would still apply. */
10384 #ifdef __cplusplus
10385 extern "C"
10386 #endif
10387 char dlopen ();
10389 main ()
10391 return dlopen ();
10393 return 0;
10395 _ACEOF
10396 for ac_lib in '' dl; do
10397 if test -z "$ac_lib"; then
10398 ac_res="none required"
10399 else
10400 ac_res=-l$ac_lib
10401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10403 if ac_fn_cxx_try_link "$LINENO"; then :
10404 ac_cv_search_dlopen=$ac_res
10406 rm -f core conftest.err conftest.$ac_objext \
10407 conftest$ac_exeext
10408 if ${ac_cv_search_dlopen+:} false; then :
10409 break
10411 done
10412 if ${ac_cv_search_dlopen+:} false; then :
10414 else
10415 ac_cv_search_dlopen=no
10417 rm conftest.$ac_ext
10418 LIBS=$ac_func_search_save_LIBS
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10421 $as_echo "$ac_cv_search_dlopen" >&6; }
10422 ac_res=$ac_cv_search_dlopen
10423 if test "$ac_res" != no; then :
10424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10428 DL_LIB="$LIBS"
10429 LIBS="$save_LIBS"
10432 # Use <inttypes.h> only if it exists,
10433 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10434 # PRId64
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10436 $as_echo_n "checking for inttypes.h... " >&6; }
10437 if ${gcc_cv_header_inttypes_h+:} false; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10442 #define __STDC_FORMAT_MACROS
10443 #include <sys/types.h>
10444 #include <inttypes.h>
10446 main ()
10448 intmax_t i = -1;
10449 #ifndef PRId64
10450 choke me
10451 #endif
10453 return 0;
10455 _ACEOF
10456 if ac_fn_cxx_try_compile "$LINENO"; then :
10457 gcc_cv_header_inttypes_h=yes
10458 else
10459 gcc_cv_header_inttypes_h=no
10461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10465 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10466 if test $gcc_cv_header_inttypes_h = yes; then
10468 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10472 # Look for the ZSTD package.
10473 ZSTD_INCLUDE=
10474 ZSTD_LIB=
10477 ZSTD_CPPFLAGS=
10478 ZSTD_LDFLAGS=
10482 # Check whether --with-zstd was given.
10483 if test "${with_zstd+set}" = set; then :
10484 withval=$with_zstd;
10488 # Check whether --with-zstd-include was given.
10489 if test "${with_zstd_include+set}" = set; then :
10490 withval=$with_zstd_include;
10494 # Check whether --with-zstd-lib was given.
10495 if test "${with_zstd_lib+set}" = set; then :
10496 withval=$with_zstd_lib;
10499 case "x$with_zstd" in
10500 x) ;;
10501 xno)
10502 ZSTD_INCLUDE=
10503 ZSTD_LIB=
10505 *) ZSTD_INCLUDE=$with_zstd/include
10506 ZSTD_LIB=$with_zstd/lib
10508 esac
10510 if test "x$with_zstd" != xno; then
10511 if test "x$with_zstd_include" != x; then
10512 ZSTD_INCLUDE=$with_zstd_include
10514 if test "x$with_zstd_lib" != x; then
10515 ZSTD_LIB=$with_zstd_lib
10517 if test "x$ZSTD_INCLUDE" != x \
10518 && test "x$ZSTD_INCLUDE" != xno; then
10519 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10521 if test "x$ZSTD_LIB" != x \
10522 && test "x$ZSTD_LIB" != xno; then
10523 ZSTD_LDFLAGS=-L$ZSTD_LIB
10526 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10527 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10529 # LTO can use zstd compression algorithm
10530 save_LIBS="$LIBS"
10531 LIBS=
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10533 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10534 if ${ac_cv_search_ZSTD_compress+:} false; then :
10535 $as_echo_n "(cached) " >&6
10536 else
10537 ac_func_search_save_LIBS=$LIBS
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char ZSTD_compress ();
10549 main ()
10551 return ZSTD_compress ();
10553 return 0;
10555 _ACEOF
10556 for ac_lib in '' zstd; do
10557 if test -z "$ac_lib"; then
10558 ac_res="none required"
10559 else
10560 ac_res=-l$ac_lib
10561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10563 if ac_fn_cxx_try_link "$LINENO"; then :
10564 ac_cv_search_ZSTD_compress=$ac_res
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext
10568 if ${ac_cv_search_ZSTD_compress+:} false; then :
10569 break
10571 done
10572 if ${ac_cv_search_ZSTD_compress+:} false; then :
10574 else
10575 ac_cv_search_ZSTD_compress=no
10577 rm conftest.$ac_ext
10578 LIBS=$ac_func_search_save_LIBS
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10581 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10582 ac_res=$ac_cv_search_ZSTD_compress
10583 if test "$ac_res" != no; then :
10584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10586 else
10587 gcc_cv_header_zstd_h=no
10590 ZSTD_LIB="$LIBS"
10591 LIBS="$save_LIBS"
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10595 $as_echo_n "checking for zstd.h... " >&6; }
10596 if ${gcc_cv_header_zstd_h+:} false; then :
10597 $as_echo_n "(cached) " >&6
10598 else
10599 # We require version 1.3.0 or later. This is the first version that has
10600 # ZSTD_getFrameContentSize.
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10603 #include <zstd.h>
10604 #if ZSTD_VERSION_NUMBER < 10300
10605 #error "need zstd 1.3.0 or better"
10606 #endif
10608 main ()
10612 return 0;
10614 _ACEOF
10615 if ac_fn_cxx_try_compile "$LINENO"; then :
10616 gcc_cv_header_zstd_h=yes
10617 else
10618 gcc_cv_header_zstd_h=no
10620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10624 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10625 if test $gcc_cv_header_zstd_h = yes; then
10627 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10629 elif test "x$with_zstd" != x; then
10630 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10636 for ac_func in times clock kill getrlimit setrlimit atoq \
10637 popen sysconf strsignal getrusage nl_langinfo \
10638 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10639 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise mallinfo mallinfo2 fstatat getauxval \
10640 clock_gettime munmap msync
10641 do :
10642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10643 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10644 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10645 cat >>confdefs.h <<_ACEOF
10646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10647 _ACEOF
10650 done
10653 # At least for glibc, clock_gettime is in librt. But don't pull that
10654 # in if it still doesn't give us the function we want.
10655 if test $ac_cv_func_clock_gettime = no; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
10657 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
10658 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
10659 $as_echo_n "(cached) " >&6
10660 else
10661 ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-lrt $LIBS"
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10669 #ifdef __cplusplus
10670 extern "C"
10671 #endif
10672 char clock_gettime ();
10674 main ()
10676 return clock_gettime ();
10678 return 0;
10680 _ACEOF
10681 if ac_fn_cxx_try_link "$LINENO"; then :
10682 ac_cv_lib_rt_clock_gettime=yes
10683 else
10684 ac_cv_lib_rt_clock_gettime=no
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10688 LIBS=$ac_check_lib_save_LIBS
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
10691 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10692 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
10693 LIBS="-lrt $LIBS"
10695 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
10701 if test x$ac_cv_func_mbstowcs = xyes; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10703 $as_echo_n "checking whether mbstowcs works... " >&6; }
10704 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 if test "$cross_compiling" = yes; then :
10708 gcc_cv_func_mbstowcs_works=yes
10709 else
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712 #include <stdlib.h>
10713 int main()
10715 mbstowcs(0, "", 0);
10716 return 0;
10718 _ACEOF
10719 if ac_fn_cxx_try_run "$LINENO"; then :
10720 gcc_cv_func_mbstowcs_works=yes
10721 else
10722 gcc_cv_func_mbstowcs_works=no
10724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10725 conftest.$ac_objext conftest.beam conftest.$ac_ext
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10730 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10731 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10733 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10738 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10739 if test "x$ac_cv_type_ssize_t" = xyes; then :
10741 else
10743 cat >>confdefs.h <<_ACEOF
10744 #define ssize_t int
10745 _ACEOF
10749 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10750 if test "x$ac_cv_type_caddr_t" = xyes; then :
10752 else
10754 cat >>confdefs.h <<_ACEOF
10755 #define caddr_t char *
10756 _ACEOF
10760 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10762 if test "x$ac_cv_type_sighander_t" = xyes; then :
10764 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10770 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10771 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10772 gcc_header_sys_mman_h=yes
10773 else
10774 gcc_header_sys_mman_h=no
10777 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10778 if test "x$ac_cv_func_mmap" = xyes; then :
10779 gcc_func_mmap=yes
10780 else
10781 gcc_func_mmap=no
10784 if test "$gcc_header_sys_mman_h" != yes \
10785 || test "$gcc_func_mmap" != yes; then
10786 gcc_cv_func_mmap_file=no
10787 gcc_cv_func_mmap_dev_zero=no
10788 gcc_cv_func_mmap_anon=no
10789 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10791 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10792 if ${gcc_cv_func_mmap_file+:} false; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 # Add a system to this blacklist if
10796 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10797 # memory area containing the same data that you'd get if you applied
10798 # read() to the same fd. The only system known to have a problem here
10799 # is VMS, where text files have record structure.
10800 case "$host_os" in
10801 *vms* | ultrix*)
10802 gcc_cv_func_mmap_file=no ;;
10804 gcc_cv_func_mmap_file=yes;;
10805 esac
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10808 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10810 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10811 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 # Add a system to this blacklist if it has mmap() but /dev/zero
10815 # does not exist, or if mmapping /dev/zero does not give anonymous
10816 # zeroed pages with both the following properties:
10817 # 1. If you map N consecutive pages in with one call, and then
10818 # unmap any subset of those pages, the pages that were not
10819 # explicitly unmapped remain accessible.
10820 # 2. If you map two adjacent blocks of memory and then unmap them
10821 # both at once, they must both go away.
10822 # Systems known to be in this category are Windows (all variants),
10823 # VMS, and Darwin.
10824 case "$host_os" in
10825 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10826 gcc_cv_func_mmap_dev_zero=no ;;
10828 gcc_cv_func_mmap_dev_zero=yes;;
10829 esac
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10832 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10834 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10836 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10837 if ${gcc_cv_decl_map_anon+:} false; then :
10838 $as_echo_n "(cached) " >&6
10839 else
10840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h. */
10842 #include <sys/types.h>
10843 #include <sys/mman.h>
10844 #include <unistd.h>
10846 #ifndef MAP_ANONYMOUS
10847 #define MAP_ANONYMOUS MAP_ANON
10848 #endif
10851 main ()
10853 int n = MAP_ANONYMOUS;
10855 return 0;
10857 _ACEOF
10858 if ac_fn_cxx_try_compile "$LINENO"; then :
10859 gcc_cv_decl_map_anon=yes
10860 else
10861 gcc_cv_decl_map_anon=no
10863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10866 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10868 if test $gcc_cv_decl_map_anon = no; then
10869 gcc_cv_func_mmap_anon=no
10870 else
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10872 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10873 if ${gcc_cv_func_mmap_anon+:} false; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10877 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10878 # doesn't give anonymous zeroed pages with the same properties listed
10879 # above for use of /dev/zero.
10880 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10881 case "$host_os" in
10882 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10883 gcc_cv_func_mmap_anon=no ;;
10885 gcc_cv_func_mmap_anon=yes;;
10886 esac
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10889 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10893 if test $gcc_cv_func_mmap_file = yes; then
10895 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10898 if test $gcc_cv_func_mmap_dev_zero = yes; then
10900 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10903 if test $gcc_cv_func_mmap_anon = yes; then
10905 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10910 case "${host}" in
10911 *-*-*vms*)
10912 # Under VMS, vfork works very differently than on Unix. The standard test
10913 # won't work, and it isn't easily adaptable. It makes more sense to
10914 # just force it.
10915 ac_cv_func_vfork_works=yes
10917 esac
10918 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10919 if test "x$ac_cv_type_pid_t" = xyes; then :
10921 else
10923 cat >>confdefs.h <<_ACEOF
10924 #define pid_t int
10925 _ACEOF
10929 for ac_header in vfork.h
10930 do :
10931 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10932 if test "x$ac_cv_header_vfork_h" = xyes; then :
10933 cat >>confdefs.h <<_ACEOF
10934 #define HAVE_VFORK_H 1
10935 _ACEOF
10938 done
10940 for ac_func in fork vfork
10941 do :
10942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10943 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10944 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10945 cat >>confdefs.h <<_ACEOF
10946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10947 _ACEOF
10950 done
10952 if test "x$ac_cv_func_fork" = xyes; then
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10954 $as_echo_n "checking for working fork... " >&6; }
10955 if ${ac_cv_func_fork_works+:} false; then :
10956 $as_echo_n "(cached) " >&6
10957 else
10958 if test "$cross_compiling" = yes; then :
10959 ac_cv_func_fork_works=cross
10960 else
10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10963 $ac_includes_default
10965 main ()
10968 /* By Ruediger Kuhlmann. */
10969 return fork () < 0;
10972 return 0;
10974 _ACEOF
10975 if ac_fn_cxx_try_run "$LINENO"; then :
10976 ac_cv_func_fork_works=yes
10977 else
10978 ac_cv_func_fork_works=no
10980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10981 conftest.$ac_objext conftest.beam conftest.$ac_ext
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10986 $as_echo "$ac_cv_func_fork_works" >&6; }
10988 else
10989 ac_cv_func_fork_works=$ac_cv_func_fork
10991 if test "x$ac_cv_func_fork_works" = xcross; then
10992 case $host in
10993 *-*-amigaos* | *-*-msdosdjgpp*)
10994 # Override, as these systems have only a dummy fork() stub
10995 ac_cv_func_fork_works=no
10998 ac_cv_func_fork_works=yes
11000 esac
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11002 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11004 ac_cv_func_vfork_works=$ac_cv_func_vfork
11005 if test "x$ac_cv_func_vfork" = xyes; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11007 $as_echo_n "checking for working vfork... " >&6; }
11008 if ${ac_cv_func_vfork_works+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 if test "$cross_compiling" = yes; then :
11012 ac_cv_func_vfork_works=cross
11013 else
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11016 /* Thanks to Paul Eggert for this test. */
11017 $ac_includes_default
11018 #include <sys/wait.h>
11019 #ifdef HAVE_VFORK_H
11020 # include <vfork.h>
11021 #endif
11022 /* On some sparc systems, changes by the child to local and incoming
11023 argument registers are propagated back to the parent. The compiler
11024 is told about this with #include <vfork.h>, but some compilers
11025 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11026 static variable whose address is put into a register that is
11027 clobbered by the vfork. */
11028 static void
11029 #ifdef __cplusplus
11030 sparc_address_test (int arg)
11031 # else
11032 sparc_address_test (arg) int arg;
11033 #endif
11035 static pid_t child;
11036 if (!child) {
11037 child = vfork ();
11038 if (child < 0) {
11039 perror ("vfork");
11040 _exit(2);
11042 if (!child) {
11043 arg = getpid();
11044 write(-1, "", 0);
11045 _exit (arg);
11051 main ()
11053 pid_t parent = getpid ();
11054 pid_t child;
11056 sparc_address_test (0);
11058 child = vfork ();
11060 if (child == 0) {
11061 /* Here is another test for sparc vfork register problems. This
11062 test uses lots of local variables, at least as many local
11063 variables as main has allocated so far including compiler
11064 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11065 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11066 reuse the register of parent for one of the local variables,
11067 since it will think that parent can't possibly be used any more
11068 in this routine. Assigning to the local variable will thus
11069 munge parent in the parent process. */
11070 pid_t
11071 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11072 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11073 /* Convince the compiler that p..p7 are live; otherwise, it might
11074 use the same hardware register for all 8 local variables. */
11075 if (p != p1 || p != p2 || p != p3 || p != p4
11076 || p != p5 || p != p6 || p != p7)
11077 _exit(1);
11079 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11080 from child file descriptors. If the child closes a descriptor
11081 before it execs or exits, this munges the parent's descriptor
11082 as well. Test for this by closing stdout in the child. */
11083 _exit(close(fileno(stdout)) != 0);
11084 } else {
11085 int status;
11086 struct stat st;
11088 while (wait(&status) != child)
11090 return (
11091 /* Was there some problem with vforking? */
11092 child < 0
11094 /* Did the child fail? (This shouldn't happen.) */
11095 || status
11097 /* Did the vfork/compiler bug occur? */
11098 || parent != getpid()
11100 /* Did the file descriptor bug occur? */
11101 || fstat(fileno(stdout), &st) != 0
11105 _ACEOF
11106 if ac_fn_cxx_try_run "$LINENO"; then :
11107 ac_cv_func_vfork_works=yes
11108 else
11109 ac_cv_func_vfork_works=no
11111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11112 conftest.$ac_objext conftest.beam conftest.$ac_ext
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11117 $as_echo "$ac_cv_func_vfork_works" >&6; }
11120 if test "x$ac_cv_func_fork_works" = xcross; then
11121 ac_cv_func_vfork_works=$ac_cv_func_vfork
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11123 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11126 if test "x$ac_cv_func_vfork_works" = xyes; then
11128 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11130 else
11132 $as_echo "#define vfork fork" >>confdefs.h
11135 if test "x$ac_cv_func_fork_works" = xyes; then
11137 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11143 if test "X$prefix" = "XNONE"; then
11144 acl_final_prefix="$ac_default_prefix"
11145 else
11146 acl_final_prefix="$prefix"
11148 if test "X$exec_prefix" = "XNONE"; then
11149 acl_final_exec_prefix='${prefix}'
11150 else
11151 acl_final_exec_prefix="$exec_prefix"
11153 acl_save_prefix="$prefix"
11154 prefix="$acl_final_prefix"
11155 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11156 prefix="$acl_save_prefix"
11159 # Check whether --with-gnu-ld was given.
11160 if test "${with_gnu_ld+set}" = set; then :
11161 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11162 else
11163 with_gnu_ld=no
11166 # Prepare PATH_SEPARATOR.
11167 # The user is always right.
11168 if test "${PATH_SEPARATOR+set}" != set; then
11169 echo "#! /bin/sh" >conf$$.sh
11170 echo "exit 0" >>conf$$.sh
11171 chmod +x conf$$.sh
11172 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11173 PATH_SEPARATOR=';'
11174 else
11175 PATH_SEPARATOR=:
11177 rm -f conf$$.sh
11179 ac_prog=ld
11180 if test "$GCC" = yes; then
11181 # Check if gcc -print-prog-name=ld gives a path.
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11183 $as_echo_n "checking for ld used by GCC... " >&6; }
11184 case $host in
11185 *-*-mingw*)
11186 # gcc leaves a trailing carriage return which upsets mingw
11187 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11189 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11190 esac
11191 case $ac_prog in
11192 # Accept absolute paths.
11193 [\\/]* | [A-Za-z]:[\\/]*)
11194 re_direlt='/[^/][^/]*/\.\./'
11195 # Canonicalize the path of ld
11196 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11197 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11198 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11199 done
11200 test -z "$LD" && LD="$ac_prog"
11203 # If it fails, then pretend we aren't using GCC.
11204 ac_prog=ld
11207 # If it is relative, then search for the first ld in PATH.
11208 with_gnu_ld=unknown
11210 esac
11211 elif test "$with_gnu_ld" = yes; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11213 $as_echo_n "checking for GNU ld... " >&6; }
11214 else
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11216 $as_echo_n "checking for non-GNU ld... " >&6; }
11218 if ${acl_cv_path_LD+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test -z "$LD"; then
11222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11223 for ac_dir in $PATH; do
11224 test -z "$ac_dir" && ac_dir=.
11225 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11226 acl_cv_path_LD="$ac_dir/$ac_prog"
11227 # Check to see if the program is GNU ld. I'd rather use --version,
11228 # but apparently some GNU ld's only accept -v.
11229 # Break only if it was the GNU/non-GNU ld that we prefer.
11230 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11231 test "$with_gnu_ld" != no && break
11232 else
11233 test "$with_gnu_ld" != yes && break
11236 done
11237 IFS="$ac_save_ifs"
11238 else
11239 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11243 LD="$acl_cv_path_LD"
11244 if test -n "$LD"; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11246 $as_echo "$LD" >&6; }
11247 else
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249 $as_echo "no" >&6; }
11251 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11253 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11254 if ${acl_cv_prog_gnu_ld+:} false; then :
11255 $as_echo_n "(cached) " >&6
11256 else
11257 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11258 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11259 acl_cv_prog_gnu_ld=yes
11260 else
11261 acl_cv_prog_gnu_ld=no
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11265 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11266 with_gnu_ld=$acl_cv_prog_gnu_ld
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11271 $as_echo_n "checking for shared library run path origin... " >&6; }
11272 if ${acl_cv_rpath+:} false; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11276 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11277 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11278 . ./conftest.sh
11279 rm -f ./conftest.sh
11280 acl_cv_rpath=done
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11284 $as_echo "$acl_cv_rpath" >&6; }
11285 wl="$acl_cv_wl"
11286 libext="$acl_cv_libext"
11287 shlibext="$acl_cv_shlibext"
11288 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11289 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11290 hardcode_direct="$acl_cv_hardcode_direct"
11291 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11292 # Check whether --enable-rpath was given.
11293 if test "${enable_rpath+set}" = set; then :
11294 enableval=$enable_rpath; :
11295 else
11296 enable_rpath=yes
11306 use_additional=yes
11308 acl_save_prefix="$prefix"
11309 prefix="$acl_final_prefix"
11310 acl_save_exec_prefix="$exec_prefix"
11311 exec_prefix="$acl_final_exec_prefix"
11313 eval additional_includedir=\"$includedir\"
11314 eval additional_libdir=\"$libdir\"
11316 exec_prefix="$acl_save_exec_prefix"
11317 prefix="$acl_save_prefix"
11320 # Check whether --with-libiconv-prefix was given.
11321 if test "${with_libiconv_prefix+set}" = set; then :
11322 withval=$with_libiconv_prefix;
11323 if test "X$withval" = "Xno"; then
11324 use_additional=no
11325 else
11326 if test "X$withval" = "X"; then
11328 acl_save_prefix="$prefix"
11329 prefix="$acl_final_prefix"
11330 acl_save_exec_prefix="$exec_prefix"
11331 exec_prefix="$acl_final_exec_prefix"
11333 eval additional_includedir=\"$includedir\"
11334 eval additional_libdir=\"$libdir\"
11336 exec_prefix="$acl_save_exec_prefix"
11337 prefix="$acl_save_prefix"
11339 else
11340 additional_includedir="$withval/include"
11341 additional_libdir="$withval/lib"
11348 # Check whether --with-libiconv-type was given.
11349 if test "${with_libiconv_type+set}" = set; then :
11350 withval=$with_libiconv_type; with_libiconv_type=$withval
11351 else
11352 with_libiconv_type=auto
11355 lib_type=`eval echo \$with_libiconv_type`
11357 LIBICONV=
11358 LTLIBICONV=
11359 INCICONV=
11360 rpathdirs=
11361 ltrpathdirs=
11362 names_already_handled=
11363 names_next_round='iconv '
11364 while test -n "$names_next_round"; do
11365 names_this_round="$names_next_round"
11366 names_next_round=
11367 for name in $names_this_round; do
11368 already_handled=
11369 for n in $names_already_handled; do
11370 if test "$n" = "$name"; then
11371 already_handled=yes
11372 break
11374 done
11375 if test -z "$already_handled"; then
11376 names_already_handled="$names_already_handled $name"
11377 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11378 eval value=\"\$HAVE_LIB$uppername\"
11379 if test -n "$value"; then
11380 if test "$value" = yes; then
11381 eval value=\"\$LIB$uppername\"
11382 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11383 eval value=\"\$LTLIB$uppername\"
11384 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11385 else
11388 else
11389 found_dir=
11390 found_la=
11391 found_so=
11392 found_a=
11393 if test $use_additional = yes; then
11394 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11395 found_dir="$additional_libdir"
11396 found_so="$additional_libdir/lib$name.$shlibext"
11397 if test -f "$additional_libdir/lib$name.la"; then
11398 found_la="$additional_libdir/lib$name.la"
11400 elif test x$lib_type != xshared; then
11401 if test -f "$additional_libdir/lib$name.$libext"; then
11402 found_dir="$additional_libdir"
11403 found_a="$additional_libdir/lib$name.$libext"
11404 if test -f "$additional_libdir/lib$name.la"; then
11405 found_la="$additional_libdir/lib$name.la"
11410 if test "X$found_dir" = "X"; then
11411 for x in $LDFLAGS $LTLIBICONV; do
11413 acl_save_prefix="$prefix"
11414 prefix="$acl_final_prefix"
11415 acl_save_exec_prefix="$exec_prefix"
11416 exec_prefix="$acl_final_exec_prefix"
11417 eval x=\"$x\"
11418 exec_prefix="$acl_save_exec_prefix"
11419 prefix="$acl_save_prefix"
11421 case "$x" in
11422 -L*)
11423 dir=`echo "X$x" | sed -e 's/^X-L//'`
11424 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11425 found_dir="$dir"
11426 found_so="$dir/lib$name.$shlibext"
11427 if test -f "$dir/lib$name.la"; then
11428 found_la="$dir/lib$name.la"
11430 elif test x$lib_type != xshared; then
11431 if test -f "$dir/lib$name.$libext"; then
11432 found_dir="$dir"
11433 found_a="$dir/lib$name.$libext"
11434 if test -f "$dir/lib$name.la"; then
11435 found_la="$dir/lib$name.la"
11440 esac
11441 if test "X$found_dir" != "X"; then
11442 break
11444 done
11446 if test "X$found_dir" != "X"; then
11447 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11448 if test "X$found_so" != "X"; then
11449 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11450 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11451 else
11452 haveit=
11453 for x in $ltrpathdirs; do
11454 if test "X$x" = "X$found_dir"; then
11455 haveit=yes
11456 break
11458 done
11459 if test -z "$haveit"; then
11460 ltrpathdirs="$ltrpathdirs $found_dir"
11462 if test "$hardcode_direct" = yes; then
11463 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11464 else
11465 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11466 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11467 haveit=
11468 for x in $rpathdirs; do
11469 if test "X$x" = "X$found_dir"; then
11470 haveit=yes
11471 break
11473 done
11474 if test -z "$haveit"; then
11475 rpathdirs="$rpathdirs $found_dir"
11477 else
11478 haveit=
11479 for x in $LDFLAGS $LIBICONV; do
11481 acl_save_prefix="$prefix"
11482 prefix="$acl_final_prefix"
11483 acl_save_exec_prefix="$exec_prefix"
11484 exec_prefix="$acl_final_exec_prefix"
11485 eval x=\"$x\"
11486 exec_prefix="$acl_save_exec_prefix"
11487 prefix="$acl_save_prefix"
11489 if test "X$x" = "X-L$found_dir"; then
11490 haveit=yes
11491 break
11493 done
11494 if test -z "$haveit"; then
11495 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11497 if test "$hardcode_minus_L" != no; then
11498 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11499 else
11500 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11505 else
11506 if test "X$found_a" != "X"; then
11507 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11508 else
11509 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11512 additional_includedir=
11513 case "$found_dir" in
11514 */lib | */lib/)
11515 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11516 additional_includedir="$basedir/include"
11518 esac
11519 if test "X$additional_includedir" != "X"; then
11520 if test "X$additional_includedir" != "X/usr/include"; then
11521 haveit=
11522 if test "X$additional_includedir" = "X/usr/local/include"; then
11523 if test -n "$GCC"; then
11524 case $host_os in
11525 linux*) haveit=yes;;
11526 esac
11529 if test -z "$haveit"; then
11530 for x in $CPPFLAGS $INCICONV; do
11532 acl_save_prefix="$prefix"
11533 prefix="$acl_final_prefix"
11534 acl_save_exec_prefix="$exec_prefix"
11535 exec_prefix="$acl_final_exec_prefix"
11536 eval x=\"$x\"
11537 exec_prefix="$acl_save_exec_prefix"
11538 prefix="$acl_save_prefix"
11540 if test "X$x" = "X-I$additional_includedir"; then
11541 haveit=yes
11542 break
11544 done
11545 if test -z "$haveit"; then
11546 if test -d "$additional_includedir"; then
11547 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11553 if test -n "$found_la"; then
11554 save_libdir="$libdir"
11555 case "$found_la" in
11556 */* | *\\*) . "$found_la" ;;
11557 *) . "./$found_la" ;;
11558 esac
11559 libdir="$save_libdir"
11560 for dep in $dependency_libs; do
11561 case "$dep" in
11562 -L*)
11563 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11564 if test "X$additional_libdir" != "X/usr/lib"; then
11565 haveit=
11566 if test "X$additional_libdir" = "X/usr/local/lib"; then
11567 if test -n "$GCC"; then
11568 case $host_os in
11569 linux*) haveit=yes;;
11570 esac
11573 if test -z "$haveit"; then
11574 haveit=
11575 for x in $LDFLAGS $LIBICONV; do
11577 acl_save_prefix="$prefix"
11578 prefix="$acl_final_prefix"
11579 acl_save_exec_prefix="$exec_prefix"
11580 exec_prefix="$acl_final_exec_prefix"
11581 eval x=\"$x\"
11582 exec_prefix="$acl_save_exec_prefix"
11583 prefix="$acl_save_prefix"
11585 if test "X$x" = "X-L$additional_libdir"; then
11586 haveit=yes
11587 break
11589 done
11590 if test -z "$haveit"; then
11591 if test -d "$additional_libdir"; then
11592 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11595 haveit=
11596 for x in $LDFLAGS $LTLIBICONV; do
11598 acl_save_prefix="$prefix"
11599 prefix="$acl_final_prefix"
11600 acl_save_exec_prefix="$exec_prefix"
11601 exec_prefix="$acl_final_exec_prefix"
11602 eval x=\"$x\"
11603 exec_prefix="$acl_save_exec_prefix"
11604 prefix="$acl_save_prefix"
11606 if test "X$x" = "X-L$additional_libdir"; then
11607 haveit=yes
11608 break
11610 done
11611 if test -z "$haveit"; then
11612 if test -d "$additional_libdir"; then
11613 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11619 -R*)
11620 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11621 if test "$enable_rpath" != no; then
11622 haveit=
11623 for x in $rpathdirs; do
11624 if test "X$x" = "X$dir"; then
11625 haveit=yes
11626 break
11628 done
11629 if test -z "$haveit"; then
11630 rpathdirs="$rpathdirs $dir"
11632 haveit=
11633 for x in $ltrpathdirs; do
11634 if test "X$x" = "X$dir"; then
11635 haveit=yes
11636 break
11638 done
11639 if test -z "$haveit"; then
11640 ltrpathdirs="$ltrpathdirs $dir"
11644 -l*)
11645 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11647 *.la)
11648 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11651 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11652 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11654 esac
11655 done
11657 else
11658 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11659 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11660 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11661 else
11662 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11663 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11668 done
11669 done
11670 if test "X$rpathdirs" != "X"; then
11671 if test -n "$hardcode_libdir_separator"; then
11672 alldirs=
11673 for found_dir in $rpathdirs; do
11674 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11675 done
11676 acl_save_libdir="$libdir"
11677 libdir="$alldirs"
11678 eval flag=\"$hardcode_libdir_flag_spec\"
11679 libdir="$acl_save_libdir"
11680 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11681 else
11682 for found_dir in $rpathdirs; do
11683 acl_save_libdir="$libdir"
11684 libdir="$found_dir"
11685 eval flag=\"$hardcode_libdir_flag_spec\"
11686 libdir="$acl_save_libdir"
11687 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11688 done
11691 if test "X$ltrpathdirs" != "X"; then
11692 for found_dir in $ltrpathdirs; do
11693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11694 done
11703 am_save_CPPFLAGS="$CPPFLAGS"
11705 for element in $INCICONV; do
11706 haveit=
11707 for x in $CPPFLAGS; do
11709 acl_save_prefix="$prefix"
11710 prefix="$acl_final_prefix"
11711 acl_save_exec_prefix="$exec_prefix"
11712 exec_prefix="$acl_final_exec_prefix"
11713 eval x=\"$x\"
11714 exec_prefix="$acl_save_exec_prefix"
11715 prefix="$acl_save_prefix"
11717 if test "X$x" = "X$element"; then
11718 haveit=yes
11719 break
11721 done
11722 if test -z "$haveit"; then
11723 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11725 done
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11729 $as_echo_n "checking for iconv... " >&6; }
11730 if ${am_cv_func_iconv+:} false; then :
11731 $as_echo_n "(cached) " >&6
11732 else
11734 am_cv_func_iconv="no, consider installing GNU libiconv"
11735 am_cv_lib_iconv=no
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11739 #include <stdlib.h>
11740 #include <iconv.h>
11743 main ()
11745 iconv_t cd = iconv_open("","");
11746 iconv(cd,NULL,NULL,NULL,NULL);
11747 iconv_close(cd);
11749 return 0;
11751 _ACEOF
11752 if ac_fn_cxx_try_link "$LINENO"; then :
11753 am_cv_func_iconv=yes
11755 rm -f core conftest.err conftest.$ac_objext \
11756 conftest$ac_exeext conftest.$ac_ext
11757 if test "$am_cv_func_iconv" != yes; then
11758 am_save_LIBS="$LIBS"
11759 LIBS="$LIBS $LIBICONV"
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11763 #include <stdlib.h>
11764 #include <iconv.h>
11767 main ()
11769 iconv_t cd = iconv_open("","");
11770 iconv(cd,NULL,NULL,NULL,NULL);
11771 iconv_close(cd);
11773 return 0;
11775 _ACEOF
11776 if ac_fn_cxx_try_link "$LINENO"; then :
11777 am_cv_lib_iconv=yes
11778 am_cv_func_iconv=yes
11780 rm -f core conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
11782 LIBS="$am_save_LIBS"
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11787 $as_echo "$am_cv_func_iconv" >&6; }
11788 if test "$am_cv_func_iconv" = yes; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11790 $as_echo_n "checking for working iconv... " >&6; }
11791 if ${am_cv_func_iconv_works+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11795 am_save_LIBS="$LIBS"
11796 if test $am_cv_lib_iconv = yes; then
11797 LIBS="$LIBS $LIBICONV"
11799 am_cv_func_iconv_works=no
11800 for ac_iconv_const in '' 'const'; do
11801 if test "$cross_compiling" = yes; then :
11802 case "$host_os" in
11803 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11804 *) am_cv_func_iconv_works="guessing yes" ;;
11805 esac
11806 else
11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11810 #include <iconv.h>
11811 #include <string.h>
11813 #ifndef ICONV_CONST
11814 # define ICONV_CONST $ac_iconv_const
11815 #endif
11818 main ()
11820 int result = 0;
11821 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11822 successful returns. This is even documented in
11823 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11825 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11826 if (cd_utf8_to_88591 != (iconv_t)(-1))
11828 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11829 char buf[10];
11830 ICONV_CONST char *inptr = input;
11831 size_t inbytesleft = strlen (input);
11832 char *outptr = buf;
11833 size_t outbytesleft = sizeof (buf);
11834 size_t res = iconv (cd_utf8_to_88591,
11835 &inptr, &inbytesleft,
11836 &outptr, &outbytesleft);
11837 if (res == 0)
11838 result |= 1;
11839 iconv_close (cd_utf8_to_88591);
11842 /* Test against Solaris 10 bug: Failures are not distinguishable from
11843 successful returns. */
11845 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11846 if (cd_ascii_to_88591 != (iconv_t)(-1))
11848 static ICONV_CONST char input[] = "\263";
11849 char buf[10];
11850 ICONV_CONST char *inptr = input;
11851 size_t inbytesleft = strlen (input);
11852 char *outptr = buf;
11853 size_t outbytesleft = sizeof (buf);
11854 size_t res = iconv (cd_ascii_to_88591,
11855 &inptr, &inbytesleft,
11856 &outptr, &outbytesleft);
11857 if (res == 0)
11858 result |= 2;
11859 iconv_close (cd_ascii_to_88591);
11862 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11864 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11865 if (cd_88591_to_utf8 != (iconv_t)(-1))
11867 static ICONV_CONST char input[] = "\304";
11868 static char buf[2] = { (char)0xDE, (char)0xAD };
11869 ICONV_CONST char *inptr = input;
11870 size_t inbytesleft = 1;
11871 char *outptr = buf;
11872 size_t outbytesleft = 1;
11873 size_t res = iconv (cd_88591_to_utf8,
11874 &inptr, &inbytesleft,
11875 &outptr, &outbytesleft);
11876 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11877 result |= 4;
11878 iconv_close (cd_88591_to_utf8);
11881 #if 0 /* This bug could be worked around by the caller. */
11882 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11884 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11885 if (cd_88591_to_utf8 != (iconv_t)(-1))
11887 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11888 char buf[50];
11889 ICONV_CONST char *inptr = input;
11890 size_t inbytesleft = strlen (input);
11891 char *outptr = buf;
11892 size_t outbytesleft = sizeof (buf);
11893 size_t res = iconv (cd_88591_to_utf8,
11894 &inptr, &inbytesleft,
11895 &outptr, &outbytesleft);
11896 if ((int)res > 0)
11897 result |= 8;
11898 iconv_close (cd_88591_to_utf8);
11901 #endif
11902 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11903 provided. */
11905 /* Try standardized names. */
11906 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11907 /* Try IRIX, OSF/1 names. */
11908 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11909 /* Try AIX names. */
11910 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11911 /* Try HP-UX names. */
11912 iconv_t cd4 = iconv_open ("utf8", "eucJP");
11913 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11914 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11915 result |= 16;
11916 if (cd1 != (iconv_t)(-1))
11917 iconv_close (cd1);
11918 if (cd2 != (iconv_t)(-1))
11919 iconv_close (cd2);
11920 if (cd3 != (iconv_t)(-1))
11921 iconv_close (cd3);
11922 if (cd4 != (iconv_t)(-1))
11923 iconv_close (cd4);
11925 return result;
11928 return 0;
11930 _ACEOF
11931 if ac_fn_cxx_try_run "$LINENO"; then :
11932 am_cv_func_iconv_works=yes
11934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11935 conftest.$ac_objext conftest.beam conftest.$ac_ext
11938 test "$am_cv_func_iconv_works" = no || break
11939 done
11940 LIBS="$am_save_LIBS"
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11944 $as_echo "$am_cv_func_iconv_works" >&6; }
11945 case "$am_cv_func_iconv_works" in
11946 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11947 *) am_func_iconv=yes ;;
11948 esac
11949 else
11950 am_func_iconv=no am_cv_lib_iconv=no
11952 if test "$am_func_iconv" = yes; then
11954 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11957 if test "$am_cv_lib_iconv" = yes; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11959 $as_echo_n "checking how to link with libiconv... " >&6; }
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11961 $as_echo "$LIBICONV" >&6; }
11962 else
11963 CPPFLAGS="$am_save_CPPFLAGS"
11964 LIBICONV=
11965 LTLIBICONV=
11970 if test "$am_cv_func_iconv" = yes; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
11972 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
11973 if ${gl_cv_iconv_nonconst+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11979 #include <stdlib.h>
11980 #include <iconv.h>
11981 extern
11982 #ifdef __cplusplus
11984 #endif
11985 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11988 main ()
11992 return 0;
11994 _ACEOF
11995 if ac_fn_cxx_try_compile "$LINENO"; then :
11996 gl_cv_iconv_nonconst=yes
11997 else
11998 gl_cv_iconv_nonconst=no
12000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
12004 $as_echo "$gl_cv_iconv_nonconst" >&6; }
12005 else
12006 gl_cv_iconv_nonconst=yes
12008 if test $gl_cv_iconv_nonconst = yes; then
12009 iconv_arg1=""
12010 else
12011 iconv_arg1="const"
12014 cat >>confdefs.h <<_ACEOF
12015 #define ICONV_CONST $iconv_arg1
12016 _ACEOF
12020 if test "$am_func_iconv" = yes; then
12021 if test -n "$LIBICONV"; then
12022 am_cv_func_iconv_summary='yes, in libiconv'
12023 else
12024 am_cv_func_iconv_summary='yes, in libc'
12026 else
12027 if test "$am_cv_func_iconv" = yes; then
12028 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
12029 else
12030 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
12035 # Until we have in-tree GNU iconv:
12036 LIBICONV_DEP=
12037 if test -f "$LTLIBICONV"; then
12038 LIBICONV_DEP=$LTLIBICONV
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12044 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12045 if ${am_cv_val_LC_MESSAGES+:} false; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 #include <locale.h>
12052 main ()
12054 return LC_MESSAGES
12056 return 0;
12058 _ACEOF
12059 if ac_fn_cxx_try_link "$LINENO"; then :
12060 am_cv_val_LC_MESSAGES=yes
12061 else
12062 am_cv_val_LC_MESSAGES=no
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12068 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12069 if test $am_cv_val_LC_MESSAGES = yes; then
12071 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12078 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12079 if ${am_cv_langinfo_codeset+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081 else
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084 #include <langinfo.h>
12086 main ()
12088 char* cs = nl_langinfo(CODESET);
12090 return 0;
12092 _ACEOF
12093 if ac_fn_cxx_try_link "$LINENO"; then :
12094 am_cv_langinfo_codeset=yes
12095 else
12096 am_cv_langinfo_codeset=no
12098 rm -f core conftest.err conftest.$ac_objext \
12099 conftest$ac_exeext conftest.$ac_ext
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12103 $as_echo "$am_cv_langinfo_codeset" >&6; }
12104 if test $am_cv_langinfo_codeset = yes; then
12106 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12111 # We will need to find libiberty.h and ansidecl.h
12112 saved_CFLAGS="$CFLAGS"
12113 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12114 saved_CXXFLAGS="$CXXFLAGS"
12115 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12117 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12118 # normal autoconf function for these. But force definition of
12119 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12120 # basename handling in libiberty.h.
12121 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12122 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12123 #undef HAVE_DECL_BASENAME
12124 #define HAVE_DECL_BASENAME 1
12125 #include \"ansidecl.h\"
12126 #include \"system.h\"
12128 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12129 ac_have_decl=1
12130 else
12131 ac_have_decl=0
12134 cat >>confdefs.h <<_ACEOF
12135 #define HAVE_DECL_BASENAME $ac_have_decl
12136 _ACEOF
12137 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12138 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12139 #undef HAVE_DECL_BASENAME
12140 #define HAVE_DECL_BASENAME 1
12141 #include \"ansidecl.h\"
12142 #include \"system.h\"
12144 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12145 ac_have_decl=1
12146 else
12147 ac_have_decl=0
12150 cat >>confdefs.h <<_ACEOF
12151 #define HAVE_DECL_STRSTR $ac_have_decl
12152 _ACEOF
12155 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12156 madvise mkstemps stpcpy strnlen strsignal strverscmp \
12157 strtol strtoul strtoll strtoull setenv unsetenv \
12158 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12159 free getopt clock getpagesize ffs fmemopen clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
12161 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12163 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12164 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169 #undef $ac_tr_decl
12170 #define $ac_tr_decl 1
12172 #include "ansidecl.h"
12173 #include "system.h"
12176 main ()
12178 #ifndef $ac_func
12179 char *(*pfn) = (char *(*)) $ac_func ;
12180 #endif
12182 return 0;
12184 _ACEOF
12185 if ac_fn_cxx_try_compile "$LINENO"; then :
12186 eval "gcc_cv_have_decl_$ac_func=yes"
12187 else
12188 eval "gcc_cv_have_decl_$ac_func=no"
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12195 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12196 #define $ac_tr_decl 1
12197 _ACEOF
12199 else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12202 #define $ac_tr_decl 0
12203 _ACEOF
12207 done
12210 for ac_func in getrlimit setrlimit getrusage
12212 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12214 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12215 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12220 #undef $ac_tr_decl
12221 #define $ac_tr_decl 1
12223 #include "ansidecl.h"
12224 #include "system.h"
12225 #ifdef HAVE_SYS_RESOURCE_H
12226 #include <sys/resource.h>
12227 #endif
12231 main ()
12233 #ifndef $ac_func
12234 char *(*pfn) = (char *(*)) $ac_func ;
12235 #endif
12237 return 0;
12239 _ACEOF
12240 if ac_fn_cxx_try_compile "$LINENO"; then :
12241 eval "gcc_cv_have_decl_$ac_func=yes"
12242 else
12243 eval "gcc_cv_have_decl_$ac_func=no"
12245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12248 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12250 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12251 #define $ac_tr_decl 1
12252 _ACEOF
12254 else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12257 #define $ac_tr_decl 0
12258 _ACEOF
12262 done
12265 for ac_func in mallinfo mallinfo2
12267 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12269 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12270 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12275 #undef $ac_tr_decl
12276 #define $ac_tr_decl 1
12278 #include "ansidecl.h"
12279 #include "system.h"
12280 #ifdef HAVE_MALLOC_H
12281 #include <malloc.h>
12282 #endif
12286 main ()
12288 #ifndef $ac_func
12289 char *(*pfn) = (char *(*)) $ac_func ;
12290 #endif
12292 return 0;
12294 _ACEOF
12295 if ac_fn_cxx_try_compile "$LINENO"; then :
12296 eval "gcc_cv_have_decl_$ac_func=yes"
12297 else
12298 eval "gcc_cv_have_decl_$ac_func=no"
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12305 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12306 #define $ac_tr_decl 1
12307 _ACEOF
12309 else
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12312 #define $ac_tr_decl 0
12313 _ACEOF
12317 done
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12323 #include "ansidecl.h"
12324 #include "system.h"
12325 #ifdef HAVE_SYS_RESOURCE_H
12326 #include <sys/resource.h>
12327 #endif
12330 main ()
12332 rlim_t l = 0;
12334 return 0;
12336 _ACEOF
12337 if ac_fn_cxx_try_compile "$LINENO"; then :
12339 else
12341 $as_echo "#define rlim_t long" >>confdefs.h
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12347 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12348 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12349 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12350 for ac_func in ldgetname
12352 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12354 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12355 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12360 #undef $ac_tr_decl
12361 #define $ac_tr_decl 1
12363 #include "ansidecl.h"
12364 #include "system.h"
12365 #ifdef HAVE_LDFCN_H
12366 #undef FREAD
12367 #undef FWRITE
12368 #include <ldfcn.h>
12369 #endif
12373 main ()
12375 #ifndef $ac_func
12376 char *(*pfn) = (char *(*)) $ac_func ;
12377 #endif
12379 return 0;
12381 _ACEOF
12382 if ac_fn_cxx_try_compile "$LINENO"; then :
12383 eval "gcc_cv_have_decl_$ac_func=yes"
12384 else
12385 eval "gcc_cv_have_decl_$ac_func=no"
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12392 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12393 #define $ac_tr_decl 1
12394 _ACEOF
12396 else
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12399 #define $ac_tr_decl 0
12400 _ACEOF
12404 done
12407 for ac_func in times
12409 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12411 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12412 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12413 $as_echo_n "(cached) " >&6
12414 else
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417 #undef $ac_tr_decl
12418 #define $ac_tr_decl 1
12420 #include "ansidecl.h"
12421 #include "system.h"
12422 #ifdef HAVE_SYS_TIMES_H
12423 #include <sys/times.h>
12424 #endif
12428 main ()
12430 #ifndef $ac_func
12431 char *(*pfn) = (char *(*)) $ac_func ;
12432 #endif
12434 return 0;
12436 _ACEOF
12437 if ac_fn_cxx_try_compile "$LINENO"; then :
12438 eval "gcc_cv_have_decl_$ac_func=yes"
12439 else
12440 eval "gcc_cv_have_decl_$ac_func=no"
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12448 #define $ac_tr_decl 1
12449 _ACEOF
12451 else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12454 #define $ac_tr_decl 0
12455 _ACEOF
12459 done
12462 for ac_func in sigaltstack
12464 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12466 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12467 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12472 #undef $ac_tr_decl
12473 #define $ac_tr_decl 1
12475 #include "ansidecl.h"
12476 #include "system.h"
12477 #include <signal.h>
12481 main ()
12483 #ifndef $ac_func
12484 char *(*pfn) = (char *(*)) $ac_func ;
12485 #endif
12487 return 0;
12489 _ACEOF
12490 if ac_fn_cxx_try_compile "$LINENO"; then :
12491 eval "gcc_cv_have_decl_$ac_func=yes"
12492 else
12493 eval "gcc_cv_have_decl_$ac_func=no"
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12500 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12501 #define $ac_tr_decl 1
12502 _ACEOF
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12507 #define $ac_tr_decl 0
12508 _ACEOF
12512 done
12515 # More time-related stuff.
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12517 $as_echo_n "checking for struct tms... " >&6; }
12518 if ${ac_cv_struct_tms+:} false; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h. */
12525 #include "ansidecl.h"
12526 #include "system.h"
12527 #ifdef HAVE_SYS_TIMES_H
12528 #include <sys/times.h>
12529 #endif
12532 main ()
12534 struct tms tms;
12536 return 0;
12538 _ACEOF
12539 if ac_fn_cxx_try_compile "$LINENO"; then :
12540 ac_cv_struct_tms=yes
12541 else
12542 ac_cv_struct_tms=no
12544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12547 $as_echo "$ac_cv_struct_tms" >&6; }
12548 if test $ac_cv_struct_tms = yes; then
12550 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12554 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12555 # revisit after autoconf 2.50.
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12557 $as_echo_n "checking for clock_t... " >&6; }
12558 if ${gcc_cv_type_clock_t+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12565 #include "ansidecl.h"
12566 #include "system.h"
12569 main ()
12571 clock_t x;
12573 return 0;
12575 _ACEOF
12576 if ac_fn_cxx_try_compile "$LINENO"; then :
12577 gcc_cv_type_clock_t=yes
12578 else
12579 gcc_cv_type_clock_t=no
12581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12584 $as_echo "$gcc_cv_type_clock_t" >&6; }
12585 if test $gcc_cv_type_clock_t = yes; then
12587 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12591 # Check if F_SETLKW is supported by fcntl.
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12593 $as_echo_n "checking for F_SETLKW... " >&6; }
12594 if ${ac_cv_f_setlkw+:} false; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12601 #include <fcntl.h>
12603 main ()
12606 struct flock fl;
12607 fl.l_whence = 0;
12608 fl.l_start = 0;
12609 fl.l_len = 0;
12610 fl.l_pid = 0;
12611 return fcntl (1, F_SETLKW, &fl);
12613 return 0;
12615 _ACEOF
12616 if ac_fn_cxx_try_compile "$LINENO"; then :
12617 ac_cv_f_setlkw=yes
12618 else
12619 ac_cv_f_setlkw=no
12621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12624 $as_echo "$ac_cv_f_setlkw" >&6; }
12625 if test $ac_cv_f_setlkw = yes; then
12627 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12631 # Check if O_CLOEXEC is defined by fcntl
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12633 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12634 if ${ac_cv_o_cloexec+:} false; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12641 #include <fcntl.h>
12643 main ()
12646 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12648 return 0;
12650 _ACEOF
12651 if ac_fn_cxx_try_compile "$LINENO"; then :
12652 ac_cv_o_cloexec=yes
12653 else
12654 ac_cv_o_cloexec=no
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12659 $as_echo "$ac_cv_o_cloexec" >&6; }
12660 if test $ac_cv_o_cloexec = yes; then
12662 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12666 # Check if O_NONBLOCK is defined by fcntl
12667 for ac_header in fcntl.h
12668 do :
12669 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12670 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12671 cat >>confdefs.h <<_ACEOF
12672 #define HAVE_FCNTL_H 1
12673 _ACEOF
12676 done
12678 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12680 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12684 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12686 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12691 # C++ Modules would like some networking features to provide the mapping
12692 # server. You can still use modules without them though.
12693 # The following network-related checks could probably do with some
12694 # Windows and other non-linux defenses and checking.
12696 # Local socket connectivity wants AF_UNIX networking
12697 # Check for AF_UNIX networking
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12699 $as_echo_n "checking for AF_UNIX... " >&6; }
12700 if ${ac_cv_af_unix+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12707 #include <sys/types.h>
12708 #include <sys/socket.h>
12709 #include <sys/un.h>
12710 #include <netinet/in.h>
12712 main ()
12715 sockaddr_un un;
12716 un.sun_family = AF_UNSPEC;
12717 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12718 connect (fd, (sockaddr *)&un, sizeof (un));
12720 return 0;
12722 _ACEOF
12723 if ac_fn_cxx_try_compile "$LINENO"; then :
12724 ac_cv_af_unix=yes
12725 else
12726 ac_cv_af_unix=no
12728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12731 $as_echo "$ac_cv_af_unix" >&6; }
12732 if test $ac_cv_af_unix = yes; then
12734 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12738 # Remote socket connectivity wants AF_INET6 networking
12739 # Check for AF_INET6 networking
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12741 $as_echo_n "checking for AF_INET6... " >&6; }
12742 if ${ac_cv_af_inet6+:} false; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12749 #include <sys/types.h>
12750 #include <sys/socket.h>
12751 #include <netinet/in.h>
12752 #include <netdb.h>
12754 main ()
12757 sockaddr_in6 in6;
12758 in6.sin6_family = AF_UNSPEC;
12759 struct addrinfo *addrs = 0;
12760 struct addrinfo hints;
12761 hints.ai_flags = 0;
12762 hints.ai_family = AF_INET6;
12763 hints.ai_socktype = SOCK_STREAM;
12764 hints.ai_protocol = 0;
12765 hints.ai_canonname = 0;
12766 hints.ai_addr = 0;
12767 hints.ai_next = 0;
12768 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12769 const char *str = gai_strerror (e);
12770 freeaddrinfo (addrs);
12771 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12772 connect (fd, (sockaddr *)&in6, sizeof (in6));
12774 return 0;
12776 _ACEOF
12777 if ac_fn_cxx_try_compile "$LINENO"; then :
12778 ac_cv_af_inet6=yes
12779 else
12780 ac_cv_af_inet6=no
12782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12785 $as_echo "$ac_cv_af_inet6" >&6; }
12786 if test $ac_cv_af_inet6 = yes; then
12788 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12792 # Check if _LK_LOCK is supported by _locking
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12794 $as_echo_n "checking for _LK_LOCK... " >&6; }
12795 if ${ac_cv_lk_lock+:} false; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12802 #include <io.h>
12803 #include <sys/locking.h>
12805 main ()
12808 int fd;
12809 return _locking (fd, _LK_LOCK, 0);
12811 return 0;
12813 _ACEOF
12814 if ac_fn_cxx_try_compile "$LINENO"; then :
12815 ac_cv_lk_lock=yes
12816 else
12817 ac_cv_lk_lock=no
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12822 $as_echo "$ac_cv_lk_lock" >&6; }
12823 if test $ac_cv_lk_lock = yes; then
12825 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12829 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12830 CFLAGS="$saved_CFLAGS"
12831 CXXFLAGS="$saved_CXXFLAGS"
12833 # mkdir takes a single argument on some systems.
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12835 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12836 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12842 #include <sys/types.h>
12843 #ifdef HAVE_SYS_STAT_H
12844 # include <sys/stat.h>
12845 #endif
12846 #ifdef HAVE_UNISTD_H
12847 # include <unistd.h>
12848 #endif
12849 #ifdef HAVE_DIRECT_H
12850 # include <direct.h>
12851 #endif
12853 main ()
12855 mkdir ("foo", 0);
12857 return 0;
12859 _ACEOF
12860 if ac_fn_cxx_try_compile "$LINENO"; then :
12861 gcc_cv_mkdir_takes_one_arg=no
12862 else
12863 gcc_cv_mkdir_takes_one_arg=yes
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12868 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12869 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12871 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12876 # File extensions
12877 manext='.1'
12878 objext='.o'
12882 # With Setjmp/Longjmp based exception handling.
12883 # Check whether --enable-sjlj-exceptions was given.
12884 if test "${enable_sjlj_exceptions+set}" = set; then :
12885 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12886 else
12887 case $target in
12888 lm32*-*-*)
12889 force_sjlj_exceptions=yes
12890 enableval=yes
12893 force_sjlj_exceptions=no
12895 esac
12898 if test $force_sjlj_exceptions = yes; then
12899 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12901 cat >>confdefs.h <<_ACEOF
12902 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12903 _ACEOF
12907 # Windows32 UTF-8 manifest support for running the driver and compiler
12908 # executables with the UTF-8 active code page on mingw hosts.
12909 # Non-mingw hosts ignore this option.
12910 # The shell variables this sets are picked up from the mingw branches
12911 # of config.host so they have to be set before it gets sourced.
12912 # Check whether --enable-win32-utf8-manifest was given.
12913 if test "${enable_win32_utf8_manifest+set}" = set; then :
12914 enableval=$enable_win32_utf8_manifest;
12918 if test "x$enable_win32_utf8_manifest" != xno; then
12919 host_xmake_mingw=i386/x-mingw32-utf8
12920 host_extra_gcc_objs_mingw=utf8rc-mingw32.o
12921 host_extra_objs_mingw=utf8-mingw32.o
12924 # --------------------------------------------------------
12925 # Build, host, and target specific configuration fragments
12926 # --------------------------------------------------------
12928 # Collect build-machine-specific information.
12929 . ${srcdir}/config.build || exit 1
12931 # Collect host-machine-specific information.
12932 . ${srcdir}/config.host || exit 1
12934 target_gtfiles=
12936 # Collect target-machine-specific information.
12937 . ${srcdir}/config.gcc || exit 1
12939 extra_objs="${host_extra_objs} ${extra_objs}"
12940 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12942 # Default the target-machine variables that were not explicitly set.
12943 if test x"$tm_file" = x
12944 then tm_file=$cpu_type/$cpu_type.h; fi
12946 if test x"$extra_headers" = x
12947 then extra_headers=; fi
12949 if test x$md_file = x
12950 then md_file=$cpu_type/$cpu_type.md; fi
12952 if test x$out_file = x
12953 then out_file=$cpu_type/$cpu_type.cc; fi
12955 if test x"$tmake_file" = x
12956 then tmake_file=$cpu_type/t-$cpu_type
12959 # Support --enable-initfini-array.
12960 if test x$enable_initfini_array != xno; then
12961 tm_file="${tm_file} initfini-array.h"
12964 if test x"$dwarf2" = xyes
12965 then tm_file="$tm_file tm-dwarf2.h"
12968 # Say what files are being used for the output code and MD file.
12969 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12970 echo "Using \`$srcdir/config/$md_file' as machine description file."
12972 # If any of the xm_file variables contain nonexistent files, warn
12973 # about them and drop them.
12976 for x in $build_xm_file; do
12977 if test -f $srcdir/config/$x
12978 then bx="$bx $x"
12979 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12980 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12982 done
12983 build_xm_file="$bx"
12986 for x in $host_xm_file; do
12987 if test -f $srcdir/config/$x
12988 then hx="$hx $x"
12989 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12990 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12992 done
12993 host_xm_file="$hx"
12996 for x in $xm_file; do
12997 if test -f $srcdir/config/$x
12998 then tx="$tx $x"
12999 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13000 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13002 done
13003 xm_file="$tx"
13005 count=a
13006 for f in $tm_file; do
13007 count=${count}x
13008 done
13009 if test $count = ax; then
13010 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13011 else
13012 echo "Using the following target machine macro files:"
13013 for f in $tm_file; do
13014 echo " $srcdir/config/$f"
13015 done
13018 if test x$use_long_long_for_widest_fast_int = xyes; then
13020 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
13024 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
13026 cat >>confdefs.h <<_ACEOF
13027 #define HAVE_GNU_LD $gnu_ld_bool
13028 _ACEOF
13031 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
13033 cat >>confdefs.h <<_ACEOF
13034 #define HAVE_GNU_AS $gnu_as_bool
13035 _ACEOF
13038 count=a
13039 for f in $host_xm_file; do
13040 count=${count}x
13041 done
13042 if test $count = a; then
13044 elif test $count = ax; then
13045 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13046 else
13047 echo "Using the following host machine macro files:"
13048 for f in $host_xm_file; do
13049 echo " $srcdir/config/$f"
13050 done
13052 echo "Using ${out_host_hook_obj} for host machine hooks."
13054 if test "$host_xm_file" != "$build_xm_file"; then
13055 count=a
13056 for f in $build_xm_file; do
13057 count=${count}x
13058 done
13059 if test $count = a; then
13061 elif test $count = ax; then
13062 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13063 else
13064 echo "Using the following build machine macro files:"
13065 for f in $build_xm_file; do
13066 echo " $srcdir/config/$f"
13067 done
13071 if test -n "$configured_native_system_header_dir"; then
13072 native_system_header_dir=$configured_native_system_header_dir
13074 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
13077 case ${host} in
13078 powerpc*-*-darwin*)
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13080 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13081 if ${gcc_cv_mcontext_underscores+:} false; then :
13082 $as_echo_n "(cached) " >&6
13083 else
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13087 #include <sys/cdefs.h>
13088 #include <sys/signal.h>
13089 #include <ucontext.h>
13090 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13092 _ACEOF
13093 if ac_fn_cxx_try_compile "$LINENO"; then :
13094 gcc_cv_mcontext_underscores=no
13095 else
13096 gcc_cv_mcontext_underscores=yes
13098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13101 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13102 if test $gcc_cv_mcontext_underscores = yes; then
13104 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13108 esac
13110 # ---------
13111 # Threading
13112 # ---------
13114 # Check if a valid thread package
13115 case ${enable_threads} in
13116 "" | no)
13117 # No threads
13118 target_thread_file='single'
13120 yes)
13121 # default
13122 target_thread_file='single'
13124 aix | dce | lynx | mipssde | posix | rtems | \
13125 single | tpf | vxworks | win32 | mcf)
13126 target_thread_file=${enable_threads}
13129 echo "${enable_threads} is an unknown thread package" 1>&2
13130 exit 1
13132 esac
13134 if test x${thread_file} = x; then
13135 # No thread file set by target-specific clauses in config.gcc,
13136 # so use file chosen by default logic above
13137 thread_file=${target_thread_file}
13140 # --------
13141 # UNSORTED
13142 # --------
13144 use_cxa_atexit=no
13145 if test x$enable___cxa_atexit = xyes || \
13146 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13147 if test x$host = x$target; then
13148 case $host in
13149 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13150 # keyed to flag_use_cxa_atexit
13151 *-*-mingw32*)
13152 use_cxa_atexit=yes
13154 powerpc-ibm-aix*)
13155 use_cxa_atexit=yes
13158 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13159 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13160 use_cxa_atexit=yes
13161 else
13162 echo "__cxa_atexit can't be enabled on this target"
13166 esac
13167 else
13168 # We can't check for __cxa_atexit when building a cross, so assume
13169 # it is available
13170 use_cxa_atexit=yes
13172 if test x$use_cxa_atexit = xyes; then
13174 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13179 # Look for a file containing extra machine modes.
13180 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13181 extra_modes_file='$(srcdir)'/config/${extra_modes}
13184 cat >>confdefs.h <<_ACEOF
13185 #define EXTRA_MODES_FILE "config/$extra_modes"
13186 _ACEOF
13190 # Convert extra_options into a form suitable for Makefile use.
13191 extra_opt_files=
13192 all_opt_files=
13193 for f in $extra_options; do
13194 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13195 all_opt_files="$all_opt_files $srcdir/config/$f"
13196 done
13199 # auto-host.h is the file containing items generated by autoconf and is
13200 # the first file included by config.h.
13201 # If host=build, it is correct to have bconfig include auto-host.h
13202 # as well. If host!=build, we are in error and need to do more
13203 # work to find out the build config parameters.
13204 if test x$host = x$build
13205 then
13206 build_auto=auto-host.h
13207 HAVE_AUTO_BUILD='# '
13208 else
13209 # We create a subdir, then run autoconf in the subdir.
13210 # To prevent recursion we set host and build for the new
13211 # invocation of configure to the build for this invocation
13212 # of configure.
13213 tempdir=build.$$
13214 rm -rf $tempdir
13215 mkdir $tempdir
13216 cd $tempdir
13217 case ${srcdir} in
13218 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13219 *) realsrcdir=../${srcdir};;
13220 esac
13221 # Clearing GMPINC is necessary to prevent host headers being
13222 # used by the build compiler. Defining GENERATOR_FILE stops
13223 # system.h from including gmp.h.
13224 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13225 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13226 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13227 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13228 ${realsrcdir}/configure \
13229 --enable-languages=${enable_languages-all} \
13230 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13231 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13232 --target=$target_alias --host=$build_alias \
13233 --build=$build_alias || exit # retaining $tempdir
13235 # We just finished tests for the build machine, so rename
13236 # the file auto-build.h in the gcc directory.
13237 mv auto-host.h ../auto-build.h
13238 cd ..
13239 rm -rf $tempdir
13240 build_auto=auto-build.h
13241 HAVE_AUTO_BUILD=
13246 tm_file="${tm_file} defaults.h"
13247 tm_p_file="${tm_p_file} tm-preds.h"
13248 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13249 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13250 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13251 # put this back in temporarily.
13252 xm_file="auto-host.h ansidecl.h ${xm_file}"
13254 # --------
13255 # UNSORTED
13256 # --------
13258 # Compile in configure arguments.
13259 if test -f configargs.h ; then
13260 # Being re-configured.
13261 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13262 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13263 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13264 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13266 else
13267 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13270 # Double all backslashes and backslash all quotes to turn
13271 # gcc_config_arguments into a C string.
13272 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13273 $gcc_config_arguments
13275 gcc_config_arguments_str=`cat conftest.out`
13276 rm -f conftest.out
13278 cat > configargs.h <<EOF
13279 /* Generated automatically. */
13280 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13281 static const char thread_model[] = "$thread_file";
13283 static const struct {
13284 const char *name, *value;
13285 } configure_default_options[] = $configure_default_options;
13288 gcc_BASEVER=`cat $srcdir/BASE-VER`
13289 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13290 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13291 if test -f $srcdir/REVISION ; then
13292 gcc_REVISION=`cat $srcdir/REVISION`
13293 else
13294 gcc_REVISION=""
13296 cat > plugin-version.h <<EOF
13297 #include "configargs.h"
13299 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13300 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13301 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13302 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13304 static char basever[] = "$gcc_BASEVER";
13305 static char datestamp[] = "$gcc_DATESTAMP";
13306 static char devphase[] = "$gcc_DEVPHASE";
13307 static char revision[] = "$gcc_REVISION";
13309 /* FIXME plugins: We should make the version information more precise.
13310 One way to do is to add a checksum. */
13312 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13313 devphase, revision,
13314 configuration_arguments};
13317 # Determine what GCC version number to use in filesystem paths.
13319 get_gcc_base_ver="cat"
13321 # Check whether --with-gcc-major-version-only was given.
13322 if test "${with_gcc_major_version_only+set}" = set; then :
13323 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13324 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13332 # Internationalization
13333 # Find a good install program. We prefer a C program (faster),
13334 # so one script is as good as another. But avoid the broken or
13335 # incompatible versions:
13336 # SysV /etc/install, /usr/sbin/install
13337 # SunOS /usr/etc/install
13338 # IRIX /sbin/install
13339 # AIX /bin/install
13340 # AmigaOS /C/install, which installs bootblocks on floppy discs
13341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13344 # OS/2's system install, which has a completely different semantic
13345 # ./install, which can be erroneously created by make from ./install.sh.
13346 # Reject install programs that cannot install multiple files.
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13348 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13349 if test -z "$INSTALL"; then
13350 if ${ac_cv_path_install+:} false; then :
13351 $as_echo_n "(cached) " >&6
13352 else
13353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13354 for as_dir in $PATH
13356 IFS=$as_save_IFS
13357 test -z "$as_dir" && as_dir=.
13358 # Account for people who put trailing slashes in PATH elements.
13359 case $as_dir/ in #((
13360 ./ | .// | /[cC]/* | \
13361 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13362 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13363 /usr/ucb/* ) ;;
13365 # OSF1 and SCO ODT 3.0 have their own names for install.
13366 # Don't use installbsd from OSF since it installs stuff as root
13367 # by default.
13368 for ac_prog in ginstall scoinst install; do
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13371 if test $ac_prog = install &&
13372 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13373 # AIX install. It has an incompatible calling convention.
13375 elif test $ac_prog = install &&
13376 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13377 # program-specific install script used by HP pwplus--don't use.
13379 else
13380 rm -rf conftest.one conftest.two conftest.dir
13381 echo one > conftest.one
13382 echo two > conftest.two
13383 mkdir conftest.dir
13384 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13385 test -s conftest.one && test -s conftest.two &&
13386 test -s conftest.dir/conftest.one &&
13387 test -s conftest.dir/conftest.two
13388 then
13389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13390 break 3
13394 done
13395 done
13397 esac
13399 done
13400 IFS=$as_save_IFS
13402 rm -rf conftest.one conftest.two conftest.dir
13405 if test "${ac_cv_path_install+set}" = set; then
13406 INSTALL=$ac_cv_path_install
13407 else
13408 # As a last resort, use the slow shell script. Don't cache a
13409 # value for INSTALL within a source directory, because that will
13410 # break other packages using the cache if that directory is
13411 # removed, or if the value is a relative name.
13412 INSTALL=$ac_install_sh
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13416 $as_echo "$INSTALL" >&6; }
13418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13419 # It thinks the first close brace ends the variable substitution.
13420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13427 MKINSTALLDIRS=
13428 if test -n "$ac_aux_dir"; then
13429 case "$ac_aux_dir" in
13430 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13431 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13432 esac
13434 if test -z "$MKINSTALLDIRS"; then
13435 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13441 $as_echo_n "checking whether NLS is requested... " >&6; }
13442 # Check whether --enable-nls was given.
13443 if test "${enable_nls+set}" = set; then :
13444 enableval=$enable_nls; USE_NLS=$enableval
13445 else
13446 USE_NLS=yes
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13450 $as_echo "$USE_NLS" >&6; }
13457 # Prepare PATH_SEPARATOR.
13458 # The user is always right.
13459 if test "${PATH_SEPARATOR+set}" != set; then
13460 echo "#! /bin/sh" >conf$$.sh
13461 echo "exit 0" >>conf$$.sh
13462 chmod +x conf$$.sh
13463 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13464 PATH_SEPARATOR=';'
13465 else
13466 PATH_SEPARATOR=:
13468 rm -f conf$$.sh
13471 # Find out how to test for executable files. Don't use a zero-byte file,
13472 # as systems may use methods other than mode bits to determine executability.
13473 cat >conf$$.file <<_ASEOF
13474 #! /bin/sh
13475 exit 0
13476 _ASEOF
13477 chmod +x conf$$.file
13478 if test -x conf$$.file >/dev/null 2>&1; then
13479 ac_executable_p="test -x"
13480 else
13481 ac_executable_p="test -f"
13483 rm -f conf$$.file
13485 # Extract the first word of "msgfmt", so it can be a program name with args.
13486 set dummy msgfmt; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_path_MSGFMT+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 case "$MSGFMT" in
13493 [\\/]* | ?:[\\/]*)
13494 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13497 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13498 for ac_dir in $PATH; do
13499 IFS="$ac_save_IFS"
13500 test -z "$ac_dir" && ac_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
13502 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13503 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13504 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13505 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13506 break 2
13509 done
13510 done
13511 IFS="$ac_save_IFS"
13512 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13514 esac
13516 MSGFMT="$ac_cv_path_MSGFMT"
13517 if test "$MSGFMT" != ":"; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13519 $as_echo "$MSGFMT" >&6; }
13520 else
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522 $as_echo "no" >&6; }
13525 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13526 set dummy gmsgfmt; ac_word=$2
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528 $as_echo_n "checking for $ac_word... " >&6; }
13529 if ${ac_cv_path_GMSGFMT+:} false; then :
13530 $as_echo_n "(cached) " >&6
13531 else
13532 case $GMSGFMT in
13533 [\\/]* | ?:[\\/]*)
13534 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13538 for as_dir in $PATH
13540 IFS=$as_save_IFS
13541 test -z "$as_dir" && as_dir=.
13542 for ac_exec_ext in '' $ac_executable_extensions; do
13543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13544 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13546 break 2
13548 done
13549 done
13550 IFS=$as_save_IFS
13552 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13554 esac
13556 GMSGFMT=$ac_cv_path_GMSGFMT
13557 if test -n "$GMSGFMT"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13559 $as_echo "$GMSGFMT" >&6; }
13560 else
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562 $as_echo "no" >&6; }
13568 # Prepare PATH_SEPARATOR.
13569 # The user is always right.
13570 if test "${PATH_SEPARATOR+set}" != set; then
13571 echo "#! /bin/sh" >conf$$.sh
13572 echo "exit 0" >>conf$$.sh
13573 chmod +x conf$$.sh
13574 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13575 PATH_SEPARATOR=';'
13576 else
13577 PATH_SEPARATOR=:
13579 rm -f conf$$.sh
13582 # Find out how to test for executable files. Don't use a zero-byte file,
13583 # as systems may use methods other than mode bits to determine executability.
13584 cat >conf$$.file <<_ASEOF
13585 #! /bin/sh
13586 exit 0
13587 _ASEOF
13588 chmod +x conf$$.file
13589 if test -x conf$$.file >/dev/null 2>&1; then
13590 ac_executable_p="test -x"
13591 else
13592 ac_executable_p="test -f"
13594 rm -f conf$$.file
13596 # Extract the first word of "xgettext", so it can be a program name with args.
13597 set dummy xgettext; ac_word=$2
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13599 $as_echo_n "checking for $ac_word... " >&6; }
13600 if ${ac_cv_path_XGETTEXT+:} false; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603 case "$XGETTEXT" in
13604 [\\/]* | ?:[\\/]*)
13605 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13608 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13609 for ac_dir in $PATH; do
13610 IFS="$ac_save_IFS"
13611 test -z "$ac_dir" && ac_dir=.
13612 for ac_exec_ext in '' $ac_executable_extensions; do
13613 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13614 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13615 (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
13616 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13617 break 2
13620 done
13621 done
13622 IFS="$ac_save_IFS"
13623 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13625 esac
13627 XGETTEXT="$ac_cv_path_XGETTEXT"
13628 if test "$XGETTEXT" != ":"; then
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13630 $as_echo "$XGETTEXT" >&6; }
13631 else
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633 $as_echo "no" >&6; }
13636 rm -f messages.po
13639 # Prepare PATH_SEPARATOR.
13640 # The user is always right.
13641 if test "${PATH_SEPARATOR+set}" != set; then
13642 echo "#! /bin/sh" >conf$$.sh
13643 echo "exit 0" >>conf$$.sh
13644 chmod +x conf$$.sh
13645 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13646 PATH_SEPARATOR=';'
13647 else
13648 PATH_SEPARATOR=:
13650 rm -f conf$$.sh
13653 # Find out how to test for executable files. Don't use a zero-byte file,
13654 # as systems may use methods other than mode bits to determine executability.
13655 cat >conf$$.file <<_ASEOF
13656 #! /bin/sh
13657 exit 0
13658 _ASEOF
13659 chmod +x conf$$.file
13660 if test -x conf$$.file >/dev/null 2>&1; then
13661 ac_executable_p="test -x"
13662 else
13663 ac_executable_p="test -f"
13665 rm -f conf$$.file
13667 # Extract the first word of "msgmerge", so it can be a program name with args.
13668 set dummy msgmerge; ac_word=$2
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13670 $as_echo_n "checking for $ac_word... " >&6; }
13671 if ${ac_cv_path_MSGMERGE+:} false; then :
13672 $as_echo_n "(cached) " >&6
13673 else
13674 case "$MSGMERGE" in
13675 [\\/]* | ?:[\\/]*)
13676 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13679 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13680 for ac_dir in $PATH; do
13681 IFS="$ac_save_IFS"
13682 test -z "$ac_dir" && ac_dir=.
13683 for ac_exec_ext in '' $ac_executable_extensions; do
13684 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13685 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13686 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13687 break 2
13690 done
13691 done
13692 IFS="$ac_save_IFS"
13693 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13695 esac
13697 MSGMERGE="$ac_cv_path_MSGMERGE"
13698 if test "$MSGMERGE" != ":"; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13700 $as_echo "$MSGMERGE" >&6; }
13701 else
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 $as_echo "no" >&6; }
13707 if test "$GMSGFMT" != ":"; then
13708 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13709 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13711 else
13712 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13714 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13715 GMSGFMT=":"
13719 if test "$XGETTEXT" != ":"; then
13720 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13721 (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
13723 else
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13725 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13726 XGETTEXT=":"
13728 rm -f messages.po
13731 ac_config_commands="$ac_config_commands default-1"
13737 if test -f ../gettext/uninstalled-config.sh; then
13738 relative_builddir='$(top_builddir)/../gettext'
13739 . ../gettext/uninstalled-config.sh
13740 else
13741 # The sister gettext directory doesn't exist and won't collect information on
13742 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13767 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13768 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 gt_save_LIBS="$LIBS"
13772 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13775 #include <CoreFoundation/CFPreferences.h>
13777 main ()
13779 CFPreferencesCopyAppValue(NULL, NULL)
13781 return 0;
13783 _ACEOF
13784 if ac_fn_cxx_try_link "$LINENO"; then :
13785 gt_cv_func_CFPreferencesCopyAppValue=yes
13786 else
13787 gt_cv_func_CFPreferencesCopyAppValue=no
13789 rm -f core conftest.err conftest.$ac_objext \
13790 conftest$ac_exeext conftest.$ac_ext
13791 LIBS="$gt_save_LIBS"
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13794 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13795 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13797 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13801 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13802 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 gt_save_LIBS="$LIBS"
13806 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 #include <CoreFoundation/CFLocale.h>
13811 main ()
13813 CFLocaleCopyPreferredLanguages();
13815 return 0;
13817 _ACEOF
13818 if ac_fn_cxx_try_link "$LINENO"; then :
13819 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13820 else
13821 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13823 rm -f core conftest.err conftest.$ac_objext \
13824 conftest$ac_exeext conftest.$ac_ext
13825 LIBS="$gt_save_LIBS"
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13828 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13829 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13831 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13834 INTL_MACOSX_LIBS=
13835 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13836 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13837 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13845 LIBINTL=
13846 LTLIBINTL=
13847 POSUB=
13849 case " $gt_needs " in
13850 *" need-formatstring-macros "*) gt_api_version=3 ;;
13851 *" need-ngettext "*) gt_api_version=2 ;;
13852 *) gt_api_version=1 ;;
13853 esac
13854 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13855 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13857 if test "$USE_NLS" = "yes"; then
13858 gt_use_preinstalled_gnugettext=no
13861 if test $gt_api_version -ge 3; then
13862 gt_revision_test_code='
13863 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13864 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13865 #endif
13866 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13868 else
13869 gt_revision_test_code=
13871 if test $gt_api_version -ge 2; then
13872 gt_expression_test_code=' + * ngettext ("", "", 0)'
13873 else
13874 gt_expression_test_code=
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13878 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13879 if eval \${$gt_func_gnugettext_libc+:} false; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13885 #include <libintl.h>
13886 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13887 extern int _nl_msg_cat_cntr;
13888 extern int *_nl_domain_bindings;
13889 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13890 #else
13891 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13892 #endif
13893 $gt_revision_test_code
13896 main ()
13899 bindtextdomain ("", "");
13900 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13903 return 0;
13905 _ACEOF
13906 if ac_fn_cxx_try_link "$LINENO"; then :
13907 eval "$gt_func_gnugettext_libc=yes"
13908 else
13909 eval "$gt_func_gnugettext_libc=no"
13911 rm -f core conftest.err conftest.$ac_objext \
13912 conftest$ac_exeext conftest.$ac_ext
13914 eval ac_res=\$$gt_func_gnugettext_libc
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13916 $as_echo "$ac_res" >&6; }
13918 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13924 am_save_CPPFLAGS="$CPPFLAGS"
13926 for element in $INCICONV; do
13927 haveit=
13928 for x in $CPPFLAGS; do
13930 acl_save_prefix="$prefix"
13931 prefix="$acl_final_prefix"
13932 acl_save_exec_prefix="$exec_prefix"
13933 exec_prefix="$acl_final_exec_prefix"
13934 eval x=\"$x\"
13935 exec_prefix="$acl_save_exec_prefix"
13936 prefix="$acl_save_prefix"
13938 if test "X$x" = "X$element"; then
13939 haveit=yes
13940 break
13942 done
13943 if test -z "$haveit"; then
13944 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13946 done
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13950 $as_echo_n "checking for iconv... " >&6; }
13951 if ${am_cv_func_iconv+:} false; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13955 am_cv_func_iconv="no, consider installing GNU libiconv"
13956 am_cv_lib_iconv=no
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13960 #include <stdlib.h>
13961 #include <iconv.h>
13964 main ()
13966 iconv_t cd = iconv_open("","");
13967 iconv(cd,NULL,NULL,NULL,NULL);
13968 iconv_close(cd);
13970 return 0;
13972 _ACEOF
13973 if ac_fn_cxx_try_link "$LINENO"; then :
13974 am_cv_func_iconv=yes
13976 rm -f core conftest.err conftest.$ac_objext \
13977 conftest$ac_exeext conftest.$ac_ext
13978 if test "$am_cv_func_iconv" != yes; then
13979 am_save_LIBS="$LIBS"
13980 LIBS="$LIBS $LIBICONV"
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13984 #include <stdlib.h>
13985 #include <iconv.h>
13988 main ()
13990 iconv_t cd = iconv_open("","");
13991 iconv(cd,NULL,NULL,NULL,NULL);
13992 iconv_close(cd);
13994 return 0;
13996 _ACEOF
13997 if ac_fn_cxx_try_link "$LINENO"; then :
13998 am_cv_lib_iconv=yes
13999 am_cv_func_iconv=yes
14001 rm -f core conftest.err conftest.$ac_objext \
14002 conftest$ac_exeext conftest.$ac_ext
14003 LIBS="$am_save_LIBS"
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14008 $as_echo "$am_cv_func_iconv" >&6; }
14009 if test "$am_cv_func_iconv" = yes; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14011 $as_echo_n "checking for working iconv... " >&6; }
14012 if ${am_cv_func_iconv_works+:} false; then :
14013 $as_echo_n "(cached) " >&6
14014 else
14016 am_save_LIBS="$LIBS"
14017 if test $am_cv_lib_iconv = yes; then
14018 LIBS="$LIBS $LIBICONV"
14020 am_cv_func_iconv_works=no
14021 for ac_iconv_const in '' 'const'; do
14022 if test "$cross_compiling" = yes; then :
14023 case "$host_os" in
14024 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14025 *) am_cv_func_iconv_works="guessing yes" ;;
14026 esac
14027 else
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14031 #include <iconv.h>
14032 #include <string.h>
14034 #ifndef ICONV_CONST
14035 # define ICONV_CONST $ac_iconv_const
14036 #endif
14039 main ()
14041 int result = 0;
14042 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
14043 successful returns. This is even documented in
14044 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
14046 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14047 if (cd_utf8_to_88591 != (iconv_t)(-1))
14049 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14050 char buf[10];
14051 ICONV_CONST char *inptr = input;
14052 size_t inbytesleft = strlen (input);
14053 char *outptr = buf;
14054 size_t outbytesleft = sizeof (buf);
14055 size_t res = iconv (cd_utf8_to_88591,
14056 &inptr, &inbytesleft,
14057 &outptr, &outbytesleft);
14058 if (res == 0)
14059 result |= 1;
14060 iconv_close (cd_utf8_to_88591);
14063 /* Test against Solaris 10 bug: Failures are not distinguishable from
14064 successful returns. */
14066 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14067 if (cd_ascii_to_88591 != (iconv_t)(-1))
14069 static ICONV_CONST char input[] = "\263";
14070 char buf[10];
14071 ICONV_CONST char *inptr = input;
14072 size_t inbytesleft = strlen (input);
14073 char *outptr = buf;
14074 size_t outbytesleft = sizeof (buf);
14075 size_t res = iconv (cd_ascii_to_88591,
14076 &inptr, &inbytesleft,
14077 &outptr, &outbytesleft);
14078 if (res == 0)
14079 result |= 2;
14080 iconv_close (cd_ascii_to_88591);
14083 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14085 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14086 if (cd_88591_to_utf8 != (iconv_t)(-1))
14088 static ICONV_CONST char input[] = "\304";
14089 static char buf[2] = { (char)0xDE, (char)0xAD };
14090 ICONV_CONST char *inptr = input;
14091 size_t inbytesleft = 1;
14092 char *outptr = buf;
14093 size_t outbytesleft = 1;
14094 size_t res = iconv (cd_88591_to_utf8,
14095 &inptr, &inbytesleft,
14096 &outptr, &outbytesleft);
14097 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14098 result |= 4;
14099 iconv_close (cd_88591_to_utf8);
14102 #if 0 /* This bug could be worked around by the caller. */
14103 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14105 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14106 if (cd_88591_to_utf8 != (iconv_t)(-1))
14108 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14109 char buf[50];
14110 ICONV_CONST char *inptr = input;
14111 size_t inbytesleft = strlen (input);
14112 char *outptr = buf;
14113 size_t outbytesleft = sizeof (buf);
14114 size_t res = iconv (cd_88591_to_utf8,
14115 &inptr, &inbytesleft,
14116 &outptr, &outbytesleft);
14117 if ((int)res > 0)
14118 result |= 8;
14119 iconv_close (cd_88591_to_utf8);
14122 #endif
14123 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14124 provided. */
14126 /* Try standardized names. */
14127 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14128 /* Try IRIX, OSF/1 names. */
14129 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14130 /* Try AIX names. */
14131 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14132 /* Try HP-UX names. */
14133 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14134 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14135 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14136 result |= 16;
14137 if (cd1 != (iconv_t)(-1))
14138 iconv_close (cd1);
14139 if (cd2 != (iconv_t)(-1))
14140 iconv_close (cd2);
14141 if (cd3 != (iconv_t)(-1))
14142 iconv_close (cd3);
14143 if (cd4 != (iconv_t)(-1))
14144 iconv_close (cd4);
14146 return result;
14149 return 0;
14151 _ACEOF
14152 if ac_fn_cxx_try_run "$LINENO"; then :
14153 am_cv_func_iconv_works=yes
14155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14156 conftest.$ac_objext conftest.beam conftest.$ac_ext
14159 test "$am_cv_func_iconv_works" = no || break
14160 done
14161 LIBS="$am_save_LIBS"
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14165 $as_echo "$am_cv_func_iconv_works" >&6; }
14166 case "$am_cv_func_iconv_works" in
14167 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14168 *) am_func_iconv=yes ;;
14169 esac
14170 else
14171 am_func_iconv=no am_cv_lib_iconv=no
14173 if test "$am_func_iconv" = yes; then
14175 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14178 if test "$am_cv_lib_iconv" = yes; then
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14180 $as_echo_n "checking how to link with libiconv... " >&6; }
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14182 $as_echo "$LIBICONV" >&6; }
14183 else
14184 CPPFLAGS="$am_save_CPPFLAGS"
14185 LIBICONV=
14186 LTLIBICONV=
14194 use_additional=yes
14196 acl_save_prefix="$prefix"
14197 prefix="$acl_final_prefix"
14198 acl_save_exec_prefix="$exec_prefix"
14199 exec_prefix="$acl_final_exec_prefix"
14201 eval additional_includedir=\"$includedir\"
14202 eval additional_libdir=\"$libdir\"
14204 exec_prefix="$acl_save_exec_prefix"
14205 prefix="$acl_save_prefix"
14208 # Check whether --with-libintl-prefix was given.
14209 if test "${with_libintl_prefix+set}" = set; then :
14210 withval=$with_libintl_prefix;
14211 if test "X$withval" = "Xno"; then
14212 use_additional=no
14213 else
14214 if test "X$withval" = "X"; then
14216 acl_save_prefix="$prefix"
14217 prefix="$acl_final_prefix"
14218 acl_save_exec_prefix="$exec_prefix"
14219 exec_prefix="$acl_final_exec_prefix"
14221 eval additional_includedir=\"$includedir\"
14222 eval additional_libdir=\"$libdir\"
14224 exec_prefix="$acl_save_exec_prefix"
14225 prefix="$acl_save_prefix"
14227 else
14228 additional_includedir="$withval/include"
14229 additional_libdir="$withval/lib"
14236 # Check whether --with-libintl-type was given.
14237 if test "${with_libintl_type+set}" = set; then :
14238 withval=$with_libintl_type; with_libintl_type=$withval
14239 else
14240 with_libintl_type=auto
14243 lib_type=`eval echo \$with_libintl_type`
14245 LIBINTL=
14246 LTLIBINTL=
14247 INCINTL=
14248 rpathdirs=
14249 ltrpathdirs=
14250 names_already_handled=
14251 names_next_round='intl '
14252 while test -n "$names_next_round"; do
14253 names_this_round="$names_next_round"
14254 names_next_round=
14255 for name in $names_this_round; do
14256 already_handled=
14257 for n in $names_already_handled; do
14258 if test "$n" = "$name"; then
14259 already_handled=yes
14260 break
14262 done
14263 if test -z "$already_handled"; then
14264 names_already_handled="$names_already_handled $name"
14265 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14266 eval value=\"\$HAVE_LIB$uppername\"
14267 if test -n "$value"; then
14268 if test "$value" = yes; then
14269 eval value=\"\$LIB$uppername\"
14270 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14271 eval value=\"\$LTLIB$uppername\"
14272 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14273 else
14276 else
14277 found_dir=
14278 found_la=
14279 found_so=
14280 found_a=
14281 if test $use_additional = yes; then
14282 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14283 found_dir="$additional_libdir"
14284 found_so="$additional_libdir/lib$name.$shlibext"
14285 if test -f "$additional_libdir/lib$name.la"; then
14286 found_la="$additional_libdir/lib$name.la"
14288 elif test x$lib_type != xshared; then
14289 if test -f "$additional_libdir/lib$name.$libext"; then
14290 found_dir="$additional_libdir"
14291 found_a="$additional_libdir/lib$name.$libext"
14292 if test -f "$additional_libdir/lib$name.la"; then
14293 found_la="$additional_libdir/lib$name.la"
14298 if test "X$found_dir" = "X"; then
14299 for x in $LDFLAGS $LTLIBINTL; do
14301 acl_save_prefix="$prefix"
14302 prefix="$acl_final_prefix"
14303 acl_save_exec_prefix="$exec_prefix"
14304 exec_prefix="$acl_final_exec_prefix"
14305 eval x=\"$x\"
14306 exec_prefix="$acl_save_exec_prefix"
14307 prefix="$acl_save_prefix"
14309 case "$x" in
14310 -L*)
14311 dir=`echo "X$x" | sed -e 's/^X-L//'`
14312 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14313 found_dir="$dir"
14314 found_so="$dir/lib$name.$shlibext"
14315 if test -f "$dir/lib$name.la"; then
14316 found_la="$dir/lib$name.la"
14318 elif test x$lib_type != xshared; then
14319 if test -f "$dir/lib$name.$libext"; then
14320 found_dir="$dir"
14321 found_a="$dir/lib$name.$libext"
14322 if test -f "$dir/lib$name.la"; then
14323 found_la="$dir/lib$name.la"
14328 esac
14329 if test "X$found_dir" != "X"; then
14330 break
14332 done
14334 if test "X$found_dir" != "X"; then
14335 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14336 if test "X$found_so" != "X"; then
14337 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14338 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14339 else
14340 haveit=
14341 for x in $ltrpathdirs; do
14342 if test "X$x" = "X$found_dir"; then
14343 haveit=yes
14344 break
14346 done
14347 if test -z "$haveit"; then
14348 ltrpathdirs="$ltrpathdirs $found_dir"
14350 if test "$hardcode_direct" = yes; then
14351 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14352 else
14353 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14354 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14355 haveit=
14356 for x in $rpathdirs; do
14357 if test "X$x" = "X$found_dir"; then
14358 haveit=yes
14359 break
14361 done
14362 if test -z "$haveit"; then
14363 rpathdirs="$rpathdirs $found_dir"
14365 else
14366 haveit=
14367 for x in $LDFLAGS $LIBINTL; do
14369 acl_save_prefix="$prefix"
14370 prefix="$acl_final_prefix"
14371 acl_save_exec_prefix="$exec_prefix"
14372 exec_prefix="$acl_final_exec_prefix"
14373 eval x=\"$x\"
14374 exec_prefix="$acl_save_exec_prefix"
14375 prefix="$acl_save_prefix"
14377 if test "X$x" = "X-L$found_dir"; then
14378 haveit=yes
14379 break
14381 done
14382 if test -z "$haveit"; then
14383 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14385 if test "$hardcode_minus_L" != no; then
14386 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14387 else
14388 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14393 else
14394 if test "X$found_a" != "X"; then
14395 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14396 else
14397 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14400 additional_includedir=
14401 case "$found_dir" in
14402 */lib | */lib/)
14403 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14404 additional_includedir="$basedir/include"
14406 esac
14407 if test "X$additional_includedir" != "X"; then
14408 if test "X$additional_includedir" != "X/usr/include"; then
14409 haveit=
14410 if test "X$additional_includedir" = "X/usr/local/include"; then
14411 if test -n "$GCC"; then
14412 case $host_os in
14413 linux*) haveit=yes;;
14414 esac
14417 if test -z "$haveit"; then
14418 for x in $CPPFLAGS $INCINTL; do
14420 acl_save_prefix="$prefix"
14421 prefix="$acl_final_prefix"
14422 acl_save_exec_prefix="$exec_prefix"
14423 exec_prefix="$acl_final_exec_prefix"
14424 eval x=\"$x\"
14425 exec_prefix="$acl_save_exec_prefix"
14426 prefix="$acl_save_prefix"
14428 if test "X$x" = "X-I$additional_includedir"; then
14429 haveit=yes
14430 break
14432 done
14433 if test -z "$haveit"; then
14434 if test -d "$additional_includedir"; then
14435 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14441 if test -n "$found_la"; then
14442 save_libdir="$libdir"
14443 case "$found_la" in
14444 */* | *\\*) . "$found_la" ;;
14445 *) . "./$found_la" ;;
14446 esac
14447 libdir="$save_libdir"
14448 for dep in $dependency_libs; do
14449 case "$dep" in
14450 -L*)
14451 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14452 if test "X$additional_libdir" != "X/usr/lib"; then
14453 haveit=
14454 if test "X$additional_libdir" = "X/usr/local/lib"; then
14455 if test -n "$GCC"; then
14456 case $host_os in
14457 linux*) haveit=yes;;
14458 esac
14461 if test -z "$haveit"; then
14462 haveit=
14463 for x in $LDFLAGS $LIBINTL; do
14465 acl_save_prefix="$prefix"
14466 prefix="$acl_final_prefix"
14467 acl_save_exec_prefix="$exec_prefix"
14468 exec_prefix="$acl_final_exec_prefix"
14469 eval x=\"$x\"
14470 exec_prefix="$acl_save_exec_prefix"
14471 prefix="$acl_save_prefix"
14473 if test "X$x" = "X-L$additional_libdir"; then
14474 haveit=yes
14475 break
14477 done
14478 if test -z "$haveit"; then
14479 if test -d "$additional_libdir"; then
14480 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14483 haveit=
14484 for x in $LDFLAGS $LTLIBINTL; do
14486 acl_save_prefix="$prefix"
14487 prefix="$acl_final_prefix"
14488 acl_save_exec_prefix="$exec_prefix"
14489 exec_prefix="$acl_final_exec_prefix"
14490 eval x=\"$x\"
14491 exec_prefix="$acl_save_exec_prefix"
14492 prefix="$acl_save_prefix"
14494 if test "X$x" = "X-L$additional_libdir"; then
14495 haveit=yes
14496 break
14498 done
14499 if test -z "$haveit"; then
14500 if test -d "$additional_libdir"; then
14501 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14507 -R*)
14508 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14509 if test "$enable_rpath" != no; then
14510 haveit=
14511 for x in $rpathdirs; do
14512 if test "X$x" = "X$dir"; then
14513 haveit=yes
14514 break
14516 done
14517 if test -z "$haveit"; then
14518 rpathdirs="$rpathdirs $dir"
14520 haveit=
14521 for x in $ltrpathdirs; do
14522 if test "X$x" = "X$dir"; then
14523 haveit=yes
14524 break
14526 done
14527 if test -z "$haveit"; then
14528 ltrpathdirs="$ltrpathdirs $dir"
14532 -l*)
14533 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14535 *.la)
14536 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14539 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14540 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14542 esac
14543 done
14545 else
14546 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14547 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14548 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14549 else
14550 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14551 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14556 done
14557 done
14558 if test "X$rpathdirs" != "X"; then
14559 if test -n "$hardcode_libdir_separator"; then
14560 alldirs=
14561 for found_dir in $rpathdirs; do
14562 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14563 done
14564 acl_save_libdir="$libdir"
14565 libdir="$alldirs"
14566 eval flag=\"$hardcode_libdir_flag_spec\"
14567 libdir="$acl_save_libdir"
14568 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14569 else
14570 for found_dir in $rpathdirs; do
14571 acl_save_libdir="$libdir"
14572 libdir="$found_dir"
14573 eval flag=\"$hardcode_libdir_flag_spec\"
14574 libdir="$acl_save_libdir"
14575 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14576 done
14579 if test "X$ltrpathdirs" != "X"; then
14580 for found_dir in $ltrpathdirs; do
14581 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14582 done
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14586 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14587 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14588 $as_echo_n "(cached) " >&6
14589 else
14590 gt_save_CPPFLAGS="$CPPFLAGS"
14591 CPPFLAGS="$CPPFLAGS $INCINTL"
14592 gt_save_LIBS="$LIBS"
14593 LIBS="$LIBS $LIBINTL"
14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595 /* end confdefs.h. */
14597 #include <libintl.h>
14598 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14599 extern int _nl_msg_cat_cntr;
14600 extern
14601 #ifdef __cplusplus
14603 #endif
14604 const char *_nl_expand_alias (const char *);
14605 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14606 #else
14607 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14608 #endif
14609 $gt_revision_test_code
14612 main ()
14615 bindtextdomain ("", "");
14616 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14619 return 0;
14621 _ACEOF
14622 if ac_fn_cxx_try_link "$LINENO"; then :
14623 eval "$gt_func_gnugettext_libintl=yes"
14624 else
14625 eval "$gt_func_gnugettext_libintl=no"
14627 rm -f core conftest.err conftest.$ac_objext \
14628 conftest$ac_exeext conftest.$ac_ext
14629 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14630 LIBS="$LIBS $LIBICONV"
14631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632 /* end confdefs.h. */
14634 #include <libintl.h>
14635 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14636 extern int _nl_msg_cat_cntr;
14637 extern
14638 #ifdef __cplusplus
14640 #endif
14641 const char *_nl_expand_alias (const char *);
14642 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14643 #else
14644 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14645 #endif
14646 $gt_revision_test_code
14649 main ()
14652 bindtextdomain ("", "");
14653 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14656 return 0;
14658 _ACEOF
14659 if ac_fn_cxx_try_link "$LINENO"; then :
14660 LIBINTL="$LIBINTL $LIBICONV"
14661 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14662 eval "$gt_func_gnugettext_libintl=yes"
14665 rm -f core conftest.err conftest.$ac_objext \
14666 conftest$ac_exeext conftest.$ac_ext
14668 CPPFLAGS="$gt_save_CPPFLAGS"
14669 LIBS="$gt_save_LIBS"
14671 eval ac_res=\$$gt_func_gnugettext_libintl
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14673 $as_echo "$ac_res" >&6; }
14676 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14677 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14678 && test "$PACKAGE" != gettext-runtime \
14679 && test "$PACKAGE" != gettext-tools; }; then
14680 gt_use_preinstalled_gnugettext=yes
14681 else
14682 LIBINTL=
14683 LTLIBINTL=
14684 INCINTL=
14689 if test -n "$INTL_MACOSX_LIBS"; then
14690 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14691 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14692 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14693 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14697 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14698 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14700 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14702 else
14703 USE_NLS=no
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14708 $as_echo_n "checking whether to use NLS... " >&6; }
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14710 $as_echo "$USE_NLS" >&6; }
14711 if test "$USE_NLS" = "yes"; then
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14713 $as_echo_n "checking where the gettext function comes from... " >&6; }
14714 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14715 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14716 gt_source="external libintl"
14717 else
14718 gt_source="libc"
14720 else
14721 gt_source="included intl directory"
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14724 $as_echo "$gt_source" >&6; }
14727 if test "$USE_NLS" = "yes"; then
14729 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14730 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14732 $as_echo_n "checking how to link with libintl... " >&6; }
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14734 $as_echo "$LIBINTL" >&6; }
14736 for element in $INCINTL; do
14737 haveit=
14738 for x in $CPPFLAGS; do
14740 acl_save_prefix="$prefix"
14741 prefix="$acl_final_prefix"
14742 acl_save_exec_prefix="$exec_prefix"
14743 exec_prefix="$acl_final_exec_prefix"
14744 eval x=\"$x\"
14745 exec_prefix="$acl_save_exec_prefix"
14746 prefix="$acl_save_prefix"
14748 if test "X$x" = "X$element"; then
14749 haveit=yes
14750 break
14752 done
14753 if test -z "$haveit"; then
14754 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14756 done
14761 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14764 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14768 POSUB=po
14773 INTLLIBS="$LIBINTL"
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14793 $as_echo_n "checking whether NLS is requested... " >&6; }
14794 if test x"$USE_NLS" != xyes; then
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14796 $as_echo "no" >&6; }
14797 else
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14799 $as_echo "yes" >&6; }
14801 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14805 $as_echo_n "checking for catalogs to be installed... " >&6; }
14806 # Look for .po and .gmo files in the source directory.
14807 CATALOGS=
14808 XLINGUAS=
14809 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14810 # If there aren't any .gmo files the shell will give us the
14811 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14812 # weeded out.
14813 case "$cat" in *\**)
14814 continue;;
14815 esac
14816 # The quadruple backslash is collapsed to a double backslash
14817 # by the backticks, then collapsed again by the double quotes,
14818 # leaving us with one backslash in the sed expression (right
14819 # before the dot that mustn't act as a wildcard).
14820 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14821 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14822 # The user is allowed to set LINGUAS to a list of languages to
14823 # install catalogs for. If it's empty that means "all of them."
14824 if test "x$LINGUAS" = x; then
14825 CATALOGS="$CATALOGS $cat"
14826 XLINGUAS="$XLINGUAS $lang"
14827 else
14828 case "$LINGUAS" in *$lang*)
14829 CATALOGS="$CATALOGS $cat"
14830 XLINGUAS="$XLINGUAS $lang"
14832 esac
14834 done
14835 LINGUAS="$XLINGUAS"
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14837 $as_echo "$LINGUAS" >&6; }
14840 DATADIRNAME=share
14842 INSTOBJEXT=.mo
14844 GENCAT=gencat
14846 CATOBJEXT=.gmo
14850 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14851 # -liconv on the link line twice.
14852 case "$LIBINTL" in *$LIBICONV*)
14853 LIBICONV= ;;
14854 esac
14856 # Check whether --enable-secureplt was given.
14857 if test "${enable_secureplt+set}" = set; then :
14858 enableval=$enable_secureplt;
14862 # Check whether --enable-mingw-wildcard was given.
14863 if test "${enable_mingw_wildcard+set}" = set; then :
14864 enableval=$enable_mingw_wildcard;
14865 else
14866 enable_mingw_wildcard=platform
14869 if test x"$enable_mingw_wildcard" != xplatform ; then :
14871 cat >>confdefs.h <<_ACEOF
14872 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
14873 _ACEOF
14877 # Check whether --enable-large-address-aware was given.
14878 if test "${enable_large_address_aware+set}" = set; then :
14879 enableval=$enable_large_address_aware;
14882 if test x"$enable_large_address_aware" = xyes; then :
14884 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
14888 # Check whether --enable-leading-mingw64-underscores was given.
14889 if test "${enable_leading_mingw64_underscores+set}" = set; then :
14890 enableval=$enable_leading_mingw64_underscores;
14893 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
14895 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
14899 # Check whether --enable-cld was given.
14900 if test "${enable_cld+set}" = set; then :
14901 enableval=$enable_cld;
14902 else
14903 enable_cld=no
14907 # Check whether --enable-frame-pointer was given.
14908 if test "${enable_frame_pointer+set}" = set; then :
14909 enableval=$enable_frame_pointer;
14910 else
14912 case $target_os in
14913 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
14914 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
14915 enable_frame_pointer=no
14918 enable_frame_pointer=yes
14920 esac
14925 case $target in
14926 i[34567]86-*-* | x86_64-*-*)
14927 if test "x$enable_cld" = xyes; then
14928 tm_defines="${tm_defines} USE_IX86_CLD=1"
14930 if test "x$enable_frame_pointer" = xyes; then
14931 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
14934 esac
14936 # Windows32 Registry support for specifying GCC installation paths.
14937 # Check whether --enable-win32-registry was given.
14938 if test "${enable_win32_registry+set}" = set; then :
14939 enableval=$enable_win32_registry;
14943 case $host_os in
14944 win32 | pe | cygwin* | mingw32*)
14945 if test "x$enable_win32_registry" != xno; then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
14947 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
14948 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
14949 $as_echo_n "(cached) " >&6
14950 else
14951 ac_func_search_save_LIBS=$LIBS
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14955 /* Override any GCC internal prototype to avoid an error.
14956 Use char because int might match the return type of a GCC
14957 builtin and then its argument prototype would still apply. */
14958 #ifdef __cplusplus
14959 extern "C"
14960 #endif
14961 char RegOpenKeyExA ();
14963 main ()
14965 return RegOpenKeyExA ();
14967 return 0;
14969 _ACEOF
14970 for ac_lib in '' advapi32; do
14971 if test -z "$ac_lib"; then
14972 ac_res="none required"
14973 else
14974 ac_res=-l$ac_lib
14975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14977 if ac_fn_cxx_try_link "$LINENO"; then :
14978 ac_cv_search_RegOpenKeyExA=$ac_res
14980 rm -f core conftest.err conftest.$ac_objext \
14981 conftest$ac_exeext
14982 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
14983 break
14985 done
14986 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
14988 else
14989 ac_cv_search_RegOpenKeyExA=no
14991 rm conftest.$ac_ext
14992 LIBS=$ac_func_search_save_LIBS
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
14995 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
14996 ac_res=$ac_cv_search_RegOpenKeyExA
14997 if test "$ac_res" != no; then :
14998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15000 else
15001 enable_win32_registry=no
15006 if test "x$enable_win32_registry" != xno; then
15008 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
15011 if test "x$enable_win32_registry" != xyes \
15012 && test "x$enable_win32_registry" != x; then
15014 cat >>confdefs.h <<_ACEOF
15015 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
15016 _ACEOF
15021 esac
15023 # Get an absolute path to the GCC top-level source directory
15024 holddir=`${PWDCMD-pwd}`
15025 cd $srcdir
15026 topdir=`${PWDCMD-pwd}`
15027 cd $holddir
15029 # Conditionalize the makefile for this host machine.
15030 xmake_file=
15031 for f in ${host_xmake_file}
15033 if test -f ${srcdir}/config/$f
15034 then
15035 xmake_file="${xmake_file} \$(srcdir)/config/$f"
15037 done
15039 # Conditionalize the makefile for this target machine.
15040 tmake_file_=
15041 for f in ${tmake_file}
15043 if test -f ${srcdir}/config/$f
15044 then
15045 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
15047 done
15048 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
15050 out_object_file=`basename $out_file .cc`.o
15051 common_out_object_file=`basename $common_out_file .cc`.o
15053 tm_file_list="options.h"
15054 tm_include_list="options.h insn-constants.h"
15055 for f in $tm_file; do
15056 case $f in
15057 ./* )
15058 f=`echo $f | sed 's/^..//'`
15059 tm_file_list="${tm_file_list} $f"
15060 tm_include_list="${tm_include_list} $f"
15062 defaults.h )
15063 tm_file_list="${tm_file_list} \$(srcdir)/$f"
15064 tm_include_list="${tm_include_list} $f"
15067 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
15068 tm_include_list="${tm_include_list} config/$f"
15070 esac
15071 done
15073 tm_p_file_list=
15074 tm_p_include_list=
15075 for f in $tm_p_file; do
15076 case $f in
15077 tm-preds.h )
15078 tm_p_file_list="${tm_p_file_list} $f"
15079 tm_p_include_list="${tm_p_include_list} $f"
15082 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
15083 tm_p_include_list="${tm_p_include_list} config/$f"
15084 esac
15085 done
15087 tm_d_file_list=
15088 tm_d_include_list=
15089 for f in $tm_d_file; do
15090 case $f in
15092 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
15093 tm_d_include_list="${tm_d_include_list} config/$f"
15095 esac
15096 done
15098 tm_rust_file_list=
15099 tm_rust_include_list=
15100 for f in $tm_rust_file; do
15101 case $f in
15103 tm_rust_file_list="${tm_rust_file_list} \$(srcdir)/config/$f"
15104 tm_rust_include_list="${tm_rust_include_list} config/$f"
15106 esac
15107 done
15109 xm_file_list=
15110 xm_include_list=
15111 for f in $xm_file; do
15112 case $f in
15113 ansidecl.h )
15114 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
15115 xm_include_list="${xm_include_list} $f"
15117 auto-host.h )
15118 xm_file_list="${xm_file_list} $f"
15119 xm_include_list="${xm_include_list} $f"
15122 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
15123 xm_include_list="${xm_include_list} config/$f"
15125 esac
15126 done
15128 host_xm_file_list=
15129 host_xm_include_list=
15130 for f in $host_xm_file; do
15131 case $f in
15132 ansidecl.h )
15133 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
15134 host_xm_include_list="${host_xm_include_list} $f"
15136 auto-host.h )
15137 host_xm_file_list="${host_xm_file_list} $f"
15138 host_xm_include_list="${host_xm_include_list} $f"
15141 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
15142 host_xm_include_list="${host_xm_include_list} config/$f"
15144 esac
15145 done
15147 build_xm_file_list=
15148 for f in $build_xm_file; do
15149 case $f in
15150 ansidecl.h )
15151 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
15152 build_xm_include_list="${build_xm_include_list} $f"
15154 auto-build.h | auto-host.h )
15155 build_xm_file_list="${build_xm_file_list} $f"
15156 build_xm_include_list="${build_xm_include_list} $f"
15159 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
15160 build_xm_include_list="${build_xm_include_list} config/$f"
15162 esac
15163 done
15165 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15166 # cross-compiler which does not use the native headers and libraries.
15167 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15168 CROSS=
15169 ALL=all.internal
15170 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
15171 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
15173 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
15174 test x$build != x$host || test "x$with_build_sysroot" != x; then
15175 if test "x$with_build_sysroot" != x; then
15176 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15177 else
15178 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15181 if test x$host != x$target
15182 then
15183 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
15184 ALL=all.cross
15185 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
15186 elif test "x$TARGET_SYSTEM_ROOT" != x; then
15187 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15190 if test "x$with_build_sysroot" != "x"; then
15191 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
15192 elif test "x$with_sysroot" = x; then
15193 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
15194 elif test "x$with_sysroot" = xyes; then
15195 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15196 else
15197 target_header_dir="${with_sysroot}${native_system_header_dir}"
15199 else
15200 target_header_dir=${native_system_header_dir}
15203 # If this is a cross-compiler that does not
15204 # have its own set of headers then define
15205 # inhibit_libc
15207 # If this is using newlib, without having the headers available now,
15208 # then define inhibit_libc in LIBGCC2_CFLAGS.
15209 # This prevents libgcc2 from containing any code which requires libc
15210 # support.
15211 : ${inhibit_libc=false}
15212 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
15213 test x$with_newlib = xyes ; } &&
15214 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
15215 inhibit_libc=true
15219 # When building gcc with a cross-compiler, we need to adjust things so
15220 # that the generator programs are still built with the native compiler.
15221 # Also, we cannot run fixincludes.
15223 # These are the normal (build=host) settings:
15224 CC_FOR_BUILD='$(CC)'
15225 CXX_FOR_BUILD='$(CXX)'
15226 BUILD_CFLAGS='$(ALL_CFLAGS)'
15227 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
15228 BUILD_LDFLAGS='$(LDFLAGS)'
15229 STMP_FIXINC=stmp-fixinc
15231 # And these apply if build != host, or we are generating coverage data
15232 if test x$build != x$host || test "x$coverage_flags" != x
15233 then
15234 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15235 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15236 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
15240 if test x$enable_fixincludes = xno;
15241 then
15242 STMP_FIXINC=''
15245 # Expand extra_headers to include complete path.
15246 # This substitutes for lots of t-* files.
15247 extra_headers_list=
15248 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15249 for file in ${extra_headers} ; do
15250 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15251 done
15253 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15254 if test x"$use_gcc_tgmath" = xyes
15255 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15258 # Define collect2 in Makefile.
15259 case $host_can_use_collect2 in
15260 no) collect2= ;;
15261 *) collect2='collect2$(exeext)' ;;
15262 esac
15265 # Add a definition of USE_COLLECT2 if system wants one.
15266 case $use_collect2 in
15267 no) use_collect2= ;;
15268 "") ;;
15270 host_xm_defines="${host_xm_defines} USE_COLLECT2"
15271 xm_defines="${xm_defines} USE_COLLECT2"
15272 case $host_can_use_collect2 in
15274 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
15276 esac
15278 esac
15281 cat >>confdefs.h <<_ACEOF
15282 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15283 _ACEOF
15286 # ---------------------------
15287 # Assembler & linker features
15288 # ---------------------------
15290 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15291 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15292 # However when ld-new is first executed from the build tree, libtool will
15293 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15294 # to the build tree. While doing this we need to use the previous-stage
15295 # linker, or we have an infinite loop. The presence of a shell script as
15296 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15297 # the gcc/collect-ld script. So we need to know how libtool works, or
15298 # exec-tool will fail.
15301 case `pwd` in
15302 *\ * | *\ *)
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15304 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15305 esac
15309 macro_version='2.2.7a'
15310 macro_revision='1.3134'
15324 ltmain="$ac_aux_dir/ltmain.sh"
15326 # Backslashify metacharacters that are still active within
15327 # double-quoted strings.
15328 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15330 # Same as above, but do not quote variable references.
15331 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15333 # Sed substitution to delay expansion of an escaped shell variable in a
15334 # double_quote_subst'ed string.
15335 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15337 # Sed substitution to delay expansion of an escaped single quote.
15338 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15340 # Sed substitution to avoid accidental globbing in evaled expressions
15341 no_glob_subst='s/\*/\\\*/g'
15343 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15344 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15345 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15348 $as_echo_n "checking how to print strings... " >&6; }
15349 # Test print first, because it will be a builtin if present.
15350 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15351 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15352 ECHO='print -r --'
15353 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15354 ECHO='printf %s\n'
15355 else
15356 # Use this function as a fallback that always works.
15357 func_fallback_echo ()
15359 eval 'cat <<_LTECHO_EOF
15361 _LTECHO_EOF'
15363 ECHO='func_fallback_echo'
15366 # func_echo_all arg...
15367 # Invoke $ECHO with all args, space-separated.
15368 func_echo_all ()
15370 $ECHO ""
15373 case "$ECHO" in
15374 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15375 $as_echo "printf" >&6; } ;;
15376 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15377 $as_echo "print -r" >&6; } ;;
15378 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15379 $as_echo "cat" >&6; } ;;
15380 esac
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15396 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15397 if ${ac_cv_path_SED+:} false; then :
15398 $as_echo_n "(cached) " >&6
15399 else
15400 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15401 for ac_i in 1 2 3 4 5 6 7; do
15402 ac_script="$ac_script$as_nl$ac_script"
15403 done
15404 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15405 { ac_script=; unset ac_script;}
15406 if test -z "$SED"; then
15407 ac_path_SED_found=false
15408 # Loop through the user's path and test for each of PROGNAME-LIST
15409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15410 for as_dir in $PATH
15412 IFS=$as_save_IFS
15413 test -z "$as_dir" && as_dir=.
15414 for ac_prog in sed gsed; do
15415 for ac_exec_ext in '' $ac_executable_extensions; do
15416 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15417 as_fn_executable_p "$ac_path_SED" || continue
15418 # Check for GNU ac_path_SED and select it if it is found.
15419 # Check for GNU $ac_path_SED
15420 case `"$ac_path_SED" --version 2>&1` in
15421 *GNU*)
15422 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15424 ac_count=0
15425 $as_echo_n 0123456789 >"conftest.in"
15426 while :
15428 cat "conftest.in" "conftest.in" >"conftest.tmp"
15429 mv "conftest.tmp" "conftest.in"
15430 cp "conftest.in" "conftest.nl"
15431 $as_echo '' >> "conftest.nl"
15432 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15433 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15434 as_fn_arith $ac_count + 1 && ac_count=$as_val
15435 if test $ac_count -gt ${ac_path_SED_max-0}; then
15436 # Best one so far, save it but keep looking for a better one
15437 ac_cv_path_SED="$ac_path_SED"
15438 ac_path_SED_max=$ac_count
15440 # 10*(2^10) chars as input seems more than enough
15441 test $ac_count -gt 10 && break
15442 done
15443 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15444 esac
15446 $ac_path_SED_found && break 3
15447 done
15448 done
15449 done
15450 IFS=$as_save_IFS
15451 if test -z "$ac_cv_path_SED"; then
15452 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15454 else
15455 ac_cv_path_SED=$SED
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15460 $as_echo "$ac_cv_path_SED" >&6; }
15461 SED="$ac_cv_path_SED"
15462 rm -f conftest.sed
15464 test -z "$SED" && SED=sed
15465 Xsed="$SED -e 1s/^X//"
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15478 $as_echo_n "checking for fgrep... " >&6; }
15479 if ${ac_cv_path_FGREP+:} false; then :
15480 $as_echo_n "(cached) " >&6
15481 else
15482 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
15483 then ac_cv_path_FGREP="$GREP -F"
15484 else
15485 if test -z "$FGREP"; then
15486 ac_path_FGREP_found=false
15487 # Loop through the user's path and test for each of PROGNAME-LIST
15488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15489 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15491 IFS=$as_save_IFS
15492 test -z "$as_dir" && as_dir=.
15493 for ac_prog in fgrep; do
15494 for ac_exec_ext in '' $ac_executable_extensions; do
15495 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
15496 as_fn_executable_p "$ac_path_FGREP" || continue
15497 # Check for GNU ac_path_FGREP and select it if it is found.
15498 # Check for GNU $ac_path_FGREP
15499 case `"$ac_path_FGREP" --version 2>&1` in
15500 *GNU*)
15501 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
15503 ac_count=0
15504 $as_echo_n 0123456789 >"conftest.in"
15505 while :
15507 cat "conftest.in" "conftest.in" >"conftest.tmp"
15508 mv "conftest.tmp" "conftest.in"
15509 cp "conftest.in" "conftest.nl"
15510 $as_echo 'FGREP' >> "conftest.nl"
15511 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
15512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15513 as_fn_arith $ac_count + 1 && ac_count=$as_val
15514 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15515 # Best one so far, save it but keep looking for a better one
15516 ac_cv_path_FGREP="$ac_path_FGREP"
15517 ac_path_FGREP_max=$ac_count
15519 # 10*(2^10) chars as input seems more than enough
15520 test $ac_count -gt 10 && break
15521 done
15522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15523 esac
15525 $ac_path_FGREP_found && break 3
15526 done
15527 done
15528 done
15529 IFS=$as_save_IFS
15530 if test -z "$ac_cv_path_FGREP"; then
15531 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15533 else
15534 ac_cv_path_FGREP=$FGREP
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15540 $as_echo "$ac_cv_path_FGREP" >&6; }
15541 FGREP="$ac_cv_path_FGREP"
15544 test -z "$GREP" && GREP=grep
15564 # Check whether --with-gnu-ld was given.
15565 if test "${with_gnu_ld+set}" = set; then :
15566 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15567 else
15568 with_gnu_ld=no
15571 ac_prog=ld
15572 if test "$GCC" = yes; then
15573 # Check if gcc -print-prog-name=ld gives a path.
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15575 $as_echo_n "checking for ld used by $CC... " >&6; }
15576 case $host in
15577 *-*-mingw*)
15578 # gcc leaves a trailing carriage return which upsets mingw
15579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15582 esac
15583 case $ac_prog in
15584 # Accept absolute paths.
15585 [\\/]* | ?:[\\/]*)
15586 re_direlt='/[^/][^/]*/\.\./'
15587 # Canonicalize the pathname of ld
15588 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15589 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15590 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15591 done
15592 test -z "$LD" && LD="$ac_prog"
15595 # If it fails, then pretend we aren't using GCC.
15596 ac_prog=ld
15599 # If it is relative, then search for the first ld in PATH.
15600 with_gnu_ld=unknown
15602 esac
15603 elif test "$with_gnu_ld" = yes; then
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15605 $as_echo_n "checking for GNU ld... " >&6; }
15606 else
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15608 $as_echo_n "checking for non-GNU ld... " >&6; }
15610 if ${lt_cv_path_LD+:} false; then :
15611 $as_echo_n "(cached) " >&6
15612 else
15613 if test -z "$LD"; then
15614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15615 for ac_dir in $PATH; do
15616 IFS="$lt_save_ifs"
15617 test -z "$ac_dir" && ac_dir=.
15618 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15619 lt_cv_path_LD="$ac_dir/$ac_prog"
15620 # Check to see if the program is GNU ld. I'd rather use --version,
15621 # but apparently some variants of GNU ld only accept -v.
15622 # Break only if it was the GNU/non-GNU ld that we prefer.
15623 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15624 *GNU* | *'with BFD'*)
15625 test "$with_gnu_ld" != no && break
15628 test "$with_gnu_ld" != yes && break
15630 esac
15632 done
15633 IFS="$lt_save_ifs"
15634 else
15635 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15639 LD="$lt_cv_path_LD"
15640 if test -n "$LD"; then
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15642 $as_echo "$LD" >&6; }
15643 else
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15645 $as_echo "no" >&6; }
15647 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15649 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15650 if ${lt_cv_prog_gnu_ld+:} false; then :
15651 $as_echo_n "(cached) " >&6
15652 else
15653 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15654 case `$LD -v 2>&1 </dev/null` in
15655 *GNU* | *'with BFD'*)
15656 lt_cv_prog_gnu_ld=yes
15659 lt_cv_prog_gnu_ld=no
15661 esac
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15664 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15665 with_gnu_ld=$lt_cv_prog_gnu_ld
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15676 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15677 if ${lt_cv_path_NM+:} false; then :
15678 $as_echo_n "(cached) " >&6
15679 else
15680 if test -n "$NM"; then
15681 # Let the user override the nm to test.
15682 lt_nm_to_check="$NM"
15683 else
15684 lt_nm_to_check="${ac_tool_prefix}nm"
15685 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15686 lt_nm_to_check="$lt_nm_to_check nm"
15689 for lt_tmp_nm in "$lt_nm_to_check"; do
15690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15691 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15692 IFS="$lt_save_ifs"
15693 test -z "$ac_dir" && ac_dir=.
15694 # Strip out any user-provided options from the nm to test twice,
15695 # the first time to test to see if nm (rather than its options) has
15696 # an explicit path, the second time to yield a file which can be
15697 # nm'ed itself.
15698 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15699 case "$tmp_nm_path" in
15700 */*|*\\*) tmp_nm="$lt_tmp_nm";;
15701 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
15702 esac
15703 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15704 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
15705 # Check to see if the nm accepts a BSD-compat flag.
15706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15707 # nm: unknown option "B" ignored
15708 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15709 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
15710 break
15713 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15714 *$tmp_nm*)
15715 lt_cv_path_NM="$tmp_nm -p"
15716 break
15719 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15720 continue # so that we can try to find one that supports BSD flags
15722 esac
15724 esac
15726 done
15727 IFS="$lt_save_ifs"
15728 done
15729 : ${lt_cv_path_NM=no}
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15732 $as_echo "$lt_cv_path_NM" >&6; }
15733 if test "$lt_cv_path_NM" != "no"; then
15734 NM="$lt_cv_path_NM"
15735 else
15736 # Didn't find any BSD compatible name lister, look for dumpbin.
15737 if test -n "$DUMPBIN"; then :
15738 # Let the user override the test.
15739 else
15740 if test -n "$ac_tool_prefix"; then
15741 for ac_prog in dumpbin "link -dump"
15743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15746 $as_echo_n "checking for $ac_word... " >&6; }
15747 if ${ac_cv_prog_DUMPBIN+:} false; then :
15748 $as_echo_n "(cached) " >&6
15749 else
15750 if test -n "$DUMPBIN"; then
15751 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15752 else
15753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15754 for as_dir in $PATH
15756 IFS=$as_save_IFS
15757 test -z "$as_dir" && as_dir=.
15758 for ac_exec_ext in '' $ac_executable_extensions; do
15759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15760 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15762 break 2
15764 done
15765 done
15766 IFS=$as_save_IFS
15770 DUMPBIN=$ac_cv_prog_DUMPBIN
15771 if test -n "$DUMPBIN"; then
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15773 $as_echo "$DUMPBIN" >&6; }
15774 else
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15776 $as_echo "no" >&6; }
15780 test -n "$DUMPBIN" && break
15781 done
15783 if test -z "$DUMPBIN"; then
15784 ac_ct_DUMPBIN=$DUMPBIN
15785 for ac_prog in dumpbin "link -dump"
15787 # Extract the first word of "$ac_prog", so it can be a program name with args.
15788 set dummy $ac_prog; ac_word=$2
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15790 $as_echo_n "checking for $ac_word... " >&6; }
15791 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15794 if test -n "$ac_ct_DUMPBIN"; then
15795 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15796 else
15797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15798 for as_dir in $PATH
15800 IFS=$as_save_IFS
15801 test -z "$as_dir" && as_dir=.
15802 for ac_exec_ext in '' $ac_executable_extensions; do
15803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15804 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15806 break 2
15808 done
15809 done
15810 IFS=$as_save_IFS
15814 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15815 if test -n "$ac_ct_DUMPBIN"; then
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15817 $as_echo "$ac_ct_DUMPBIN" >&6; }
15818 else
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15820 $as_echo "no" >&6; }
15824 test -n "$ac_ct_DUMPBIN" && break
15825 done
15827 if test "x$ac_ct_DUMPBIN" = x; then
15828 DUMPBIN=":"
15829 else
15830 case $cross_compiling:$ac_tool_warned in
15831 yes:)
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15834 ac_tool_warned=yes ;;
15835 esac
15836 DUMPBIN=$ac_ct_DUMPBIN
15840 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15841 *COFF*)
15842 DUMPBIN="$DUMPBIN -symbols"
15845 DUMPBIN=:
15847 esac
15850 if test "$DUMPBIN" != ":"; then
15851 NM="$DUMPBIN"
15854 test -z "$NM" && NM=nm
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15862 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15863 if ${lt_cv_nm_interface+:} false; then :
15864 $as_echo_n "(cached) " >&6
15865 else
15866 lt_cv_nm_interface="BSD nm"
15867 echo "int some_variable = 0;" > conftest.$ac_ext
15868 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15869 (eval "$ac_compile" 2>conftest.err)
15870 cat conftest.err >&5
15871 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15872 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15873 cat conftest.err >&5
15874 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15875 cat conftest.out >&5
15876 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15877 lt_cv_nm_interface="MS dumpbin"
15879 rm -f conftest*
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15882 $as_echo "$lt_cv_nm_interface" >&6; }
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15885 $as_echo_n "checking whether ln -s works... " >&6; }
15886 LN_S=$as_ln_s
15887 if test "$LN_S" = "ln -s"; then
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15889 $as_echo "yes" >&6; }
15890 else
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15892 $as_echo "no, using $LN_S" >&6; }
15895 # find the maximum length of command line arguments
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15897 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15898 if ${lt_cv_sys_max_cmd_len+:} false; then :
15899 $as_echo_n "(cached) " >&6
15900 else
15902 teststring="ABCD"
15904 case $build_os in
15905 msdosdjgpp*)
15906 # On DJGPP, this test can blow up pretty badly due to problems in libc
15907 # (any single argument exceeding 2000 bytes causes a buffer overrun
15908 # during glob expansion). Even if it were fixed, the result of this
15909 # check would be larger than it should be.
15910 lt_cv_sys_max_cmd_len=12288; # 12K is about right
15913 gnu*)
15914 # Under GNU Hurd, this test is not required because there is
15915 # no limit to the length of command line arguments.
15916 # Libtool will interpret -1 as no limit whatsoever
15917 lt_cv_sys_max_cmd_len=-1;
15920 cygwin* | mingw* | cegcc*)
15921 # On Win9x/ME, this test blows up -- it succeeds, but takes
15922 # about 5 minutes as the teststring grows exponentially.
15923 # Worse, since 9x/ME are not pre-emptively multitasking,
15924 # you end up with a "frozen" computer, even though with patience
15925 # the test eventually succeeds (with a max line length of 256k).
15926 # Instead, let's just punt: use the minimum linelength reported by
15927 # all of the supported platforms: 8192 (on NT/2K/XP).
15928 lt_cv_sys_max_cmd_len=8192;
15931 mint*)
15932 # On MiNT this can take a long time and run out of memory.
15933 lt_cv_sys_max_cmd_len=8192;
15936 amigaos*)
15937 # On AmigaOS with pdksh, this test takes hours, literally.
15938 # So we just punt and use a minimum line length of 8192.
15939 lt_cv_sys_max_cmd_len=8192;
15942 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15943 # This has been around since 386BSD, at least. Likely further.
15944 if test -x /sbin/sysctl; then
15945 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15946 elif test -x /usr/sbin/sysctl; then
15947 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15948 else
15949 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15951 # And add a safety zone
15952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15956 interix*)
15957 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15958 lt_cv_sys_max_cmd_len=196608
15961 osf*)
15962 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15963 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15964 # nice to cause kernel panics so lets avoid the loop below.
15965 # First set a reasonable default.
15966 lt_cv_sys_max_cmd_len=16384
15968 if test -x /sbin/sysconfig; then
15969 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15970 *1*) lt_cv_sys_max_cmd_len=-1 ;;
15971 esac
15974 sco3.2v5*)
15975 lt_cv_sys_max_cmd_len=102400
15977 sysv5* | sco5v6* | sysv4.2uw2*)
15978 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15979 if test -n "$kargmax"; then
15980 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
15981 else
15982 lt_cv_sys_max_cmd_len=32768
15986 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15987 if test -n "$lt_cv_sys_max_cmd_len"; then
15988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15989 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15990 else
15991 # Make teststring a little bigger before we do anything with it.
15992 # a 1K string should be a reasonable start.
15993 for i in 1 2 3 4 5 6 7 8 ; do
15994 teststring=$teststring$teststring
15995 done
15996 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15997 # If test is not a shell built-in, we'll probably end up computing a
15998 # maximum length that is only half of the actual maximum length, but
15999 # we can't tell.
16000 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16001 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16002 test $i != 17 # 1/2 MB should be enough
16004 i=`expr $i + 1`
16005 teststring=$teststring$teststring
16006 done
16007 # Only check the string length outside the loop.
16008 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16009 teststring=
16010 # Add a significant safety factor because C++ compilers can tack on
16011 # massive amounts of additional arguments before passing them to the
16012 # linker. It appears as though 1/2 is a usable value.
16013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16016 esac
16020 if test -n $lt_cv_sys_max_cmd_len ; then
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16022 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16023 else
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16025 $as_echo "none" >&6; }
16027 max_cmd_len=$lt_cv_sys_max_cmd_len
16034 : ${CP="cp -f"}
16035 : ${MV="mv -f"}
16036 : ${RM="rm -f"}
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16039 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16040 # Try some XSI features
16041 xsi_shell=no
16042 ( _lt_dummy="a/b/c"
16043 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
16044 = c,a/b,, \
16045 && eval 'test $(( 1 + 1 )) -eq 2 \
16046 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16047 && xsi_shell=yes
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
16049 $as_echo "$xsi_shell" >&6; }
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
16053 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
16054 lt_shell_append=no
16055 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
16056 >/dev/null 2>&1 \
16057 && lt_shell_append=yes
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
16059 $as_echo "$lt_shell_append" >&6; }
16062 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16063 lt_unset=unset
16064 else
16065 lt_unset=false
16072 # test EBCDIC or ASCII
16073 case `echo X|tr X '\101'` in
16074 A) # ASCII based system
16075 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16076 lt_SP2NL='tr \040 \012'
16077 lt_NL2SP='tr \015\012 \040\040'
16079 *) # EBCDIC based system
16080 lt_SP2NL='tr \100 \n'
16081 lt_NL2SP='tr \r\n \100\100'
16083 esac
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16094 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16095 if ${lt_cv_ld_reload_flag+:} false; then :
16096 $as_echo_n "(cached) " >&6
16097 else
16098 lt_cv_ld_reload_flag='-r'
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16101 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16102 reload_flag=$lt_cv_ld_reload_flag
16103 case $reload_flag in
16104 "" | " "*) ;;
16105 *) reload_flag=" $reload_flag" ;;
16106 esac
16107 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16108 case $host_os in
16109 darwin*)
16110 if test "$GCC" = yes; then
16111 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16112 else
16113 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16116 esac
16126 if test -n "$ac_tool_prefix"; then
16127 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16128 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16130 $as_echo_n "checking for $ac_word... " >&6; }
16131 if ${ac_cv_prog_OBJDUMP+:} false; then :
16132 $as_echo_n "(cached) " >&6
16133 else
16134 if test -n "$OBJDUMP"; then
16135 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16136 else
16137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16138 for as_dir in $PATH
16140 IFS=$as_save_IFS
16141 test -z "$as_dir" && as_dir=.
16142 for ac_exec_ext in '' $ac_executable_extensions; do
16143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16144 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16146 break 2
16148 done
16149 done
16150 IFS=$as_save_IFS
16154 OBJDUMP=$ac_cv_prog_OBJDUMP
16155 if test -n "$OBJDUMP"; then
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16157 $as_echo "$OBJDUMP" >&6; }
16158 else
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160 $as_echo "no" >&6; }
16165 if test -z "$ac_cv_prog_OBJDUMP"; then
16166 ac_ct_OBJDUMP=$OBJDUMP
16167 # Extract the first word of "objdump", so it can be a program name with args.
16168 set dummy objdump; ac_word=$2
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16170 $as_echo_n "checking for $ac_word... " >&6; }
16171 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16172 $as_echo_n "(cached) " >&6
16173 else
16174 if test -n "$ac_ct_OBJDUMP"; then
16175 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16176 else
16177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16178 for as_dir in $PATH
16180 IFS=$as_save_IFS
16181 test -z "$as_dir" && as_dir=.
16182 for ac_exec_ext in '' $ac_executable_extensions; do
16183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16184 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16186 break 2
16188 done
16189 done
16190 IFS=$as_save_IFS
16194 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16195 if test -n "$ac_ct_OBJDUMP"; then
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16197 $as_echo "$ac_ct_OBJDUMP" >&6; }
16198 else
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16200 $as_echo "no" >&6; }
16203 if test "x$ac_ct_OBJDUMP" = x; then
16204 OBJDUMP="false"
16205 else
16206 case $cross_compiling:$ac_tool_warned in
16207 yes:)
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16210 ac_tool_warned=yes ;;
16211 esac
16212 OBJDUMP=$ac_ct_OBJDUMP
16214 else
16215 OBJDUMP="$ac_cv_prog_OBJDUMP"
16218 test -z "$OBJDUMP" && OBJDUMP=objdump
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16229 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16230 if ${lt_cv_deplibs_check_method+:} false; then :
16231 $as_echo_n "(cached) " >&6
16232 else
16233 lt_cv_file_magic_cmd='$MAGIC_CMD'
16234 lt_cv_file_magic_test_file=
16235 lt_cv_deplibs_check_method='unknown'
16236 # Need to set the preceding variable on all platforms that support
16237 # interlibrary dependencies.
16238 # 'none' -- dependencies not supported.
16239 # `unknown' -- same as none, but documents that we really don't know.
16240 # 'pass_all' -- all dependencies passed with no checks.
16241 # 'test_compile' -- check by making test program.
16242 # 'file_magic [[regex]]' -- check by looking for files in library path
16243 # which responds to the $file_magic_cmd with a given extended regex.
16244 # If you have `file' or equivalent on your system and you're not sure
16245 # whether `pass_all' will *always* work, you probably want this one.
16247 case $host_os in
16248 aix[4-9]*)
16249 lt_cv_deplibs_check_method=pass_all
16252 beos*)
16253 lt_cv_deplibs_check_method=pass_all
16256 bsdi[45]*)
16257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16258 lt_cv_file_magic_cmd='/usr/bin/file -L'
16259 lt_cv_file_magic_test_file=/shlib/libc.so
16262 cygwin*)
16263 # func_win32_libid is a shell function defined in ltmain.sh
16264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16265 lt_cv_file_magic_cmd='func_win32_libid'
16268 mingw* | pw32*)
16269 # Base MSYS/MinGW do not provide the 'file' command needed by
16270 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16271 # unless we find 'file', for example because we are cross-compiling.
16272 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16273 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
16274 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16275 lt_cv_file_magic_cmd='func_win32_libid'
16276 else
16277 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16278 lt_cv_file_magic_cmd='$OBJDUMP -f'
16282 cegcc*)
16283 # use the weaker test based on 'objdump'. See mingw*.
16284 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16285 lt_cv_file_magic_cmd='$OBJDUMP -f'
16288 darwin* | rhapsody*)
16289 lt_cv_deplibs_check_method=pass_all
16292 freebsd* | dragonfly*)
16293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16294 case $host_cpu in
16295 i*86 )
16296 # Not sure whether the presence of OpenBSD here was a mistake.
16297 # Let's accept both of them until this is cleared up.
16298 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16299 lt_cv_file_magic_cmd=/usr/bin/file
16300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16302 esac
16303 else
16304 lt_cv_deplibs_check_method=pass_all
16308 gnu*)
16309 lt_cv_deplibs_check_method=pass_all
16312 haiku*)
16313 lt_cv_deplibs_check_method=pass_all
16316 hpux10.20* | hpux11*)
16317 lt_cv_file_magic_cmd=/usr/bin/file
16318 case $host_cpu in
16319 ia64*)
16320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16321 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16323 hppa*64*)
16324 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]'
16325 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16329 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16331 esac
16334 interix[3-9]*)
16335 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16339 irix5* | irix6* | nonstopux*)
16340 case $LD in
16341 *-32|*"-32 ") libmagic=32-bit;;
16342 *-n32|*"-n32 ") libmagic=N32;;
16343 *-64|*"-64 ") libmagic=64-bit;;
16344 *) libmagic=never-match;;
16345 esac
16346 lt_cv_deplibs_check_method=pass_all
16349 # This must be Linux ELF.
16350 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16351 lt_cv_deplibs_check_method=pass_all
16354 netbsd*)
16355 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16357 else
16358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16362 newos6*)
16363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16364 lt_cv_file_magic_cmd=/usr/bin/file
16365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16368 *nto* | *qnx*)
16369 lt_cv_deplibs_check_method=pass_all
16372 openbsd*)
16373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16375 else
16376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16380 osf3* | osf4* | osf5*)
16381 lt_cv_deplibs_check_method=pass_all
16384 rdos*)
16385 lt_cv_deplibs_check_method=pass_all
16388 solaris*)
16389 lt_cv_deplibs_check_method=pass_all
16392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16393 lt_cv_deplibs_check_method=pass_all
16396 sysv4 | sysv4.3*)
16397 case $host_vendor in
16398 motorola)
16399 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]'
16400 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16402 ncr)
16403 lt_cv_deplibs_check_method=pass_all
16405 sequent)
16406 lt_cv_file_magic_cmd='/bin/file'
16407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16409 sni)
16410 lt_cv_file_magic_cmd='/bin/file'
16411 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16412 lt_cv_file_magic_test_file=/lib/libc.so
16414 siemens)
16415 lt_cv_deplibs_check_method=pass_all
16418 lt_cv_deplibs_check_method=pass_all
16420 esac
16423 tpf*)
16424 lt_cv_deplibs_check_method=pass_all
16426 vxworks*)
16427 # Assume VxWorks cross toolchains are built on Linux, possibly
16428 # as canadian for Windows hosts.
16429 lt_cv_deplibs_check_method=pass_all
16431 esac
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16435 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16436 file_magic_cmd=$lt_cv_file_magic_cmd
16437 deplibs_check_method=$lt_cv_deplibs_check_method
16438 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16451 plugin_option=
16452 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
16453 for plugin in $plugin_names; do
16454 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16455 if test x$plugin_so = x$plugin; then
16456 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16458 if test x$plugin_so != x$plugin; then
16459 plugin_option="--plugin $plugin_so"
16460 break
16462 done
16464 if test -n "$ac_tool_prefix"; then
16465 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16466 set dummy ${ac_tool_prefix}ar; ac_word=$2
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16468 $as_echo_n "checking for $ac_word... " >&6; }
16469 if ${ac_cv_prog_AR+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 if test -n "$AR"; then
16473 ac_cv_prog_AR="$AR" # Let the user override the test.
16474 else
16475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16476 for as_dir in $PATH
16478 IFS=$as_save_IFS
16479 test -z "$as_dir" && as_dir=.
16480 for ac_exec_ext in '' $ac_executable_extensions; do
16481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16482 ac_cv_prog_AR="${ac_tool_prefix}ar"
16483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16484 break 2
16486 done
16487 done
16488 IFS=$as_save_IFS
16492 AR=$ac_cv_prog_AR
16493 if test -n "$AR"; then
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16495 $as_echo "$AR" >&6; }
16496 else
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16498 $as_echo "no" >&6; }
16503 if test -z "$ac_cv_prog_AR"; then
16504 ac_ct_AR=$AR
16505 # Extract the first word of "ar", so it can be a program name with args.
16506 set dummy ar; ac_word=$2
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16508 $as_echo_n "checking for $ac_word... " >&6; }
16509 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16510 $as_echo_n "(cached) " >&6
16511 else
16512 if test -n "$ac_ct_AR"; then
16513 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16514 else
16515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16516 for as_dir in $PATH
16518 IFS=$as_save_IFS
16519 test -z "$as_dir" && as_dir=.
16520 for ac_exec_ext in '' $ac_executable_extensions; do
16521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16522 ac_cv_prog_ac_ct_AR="ar"
16523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16524 break 2
16526 done
16527 done
16528 IFS=$as_save_IFS
16532 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16533 if test -n "$ac_ct_AR"; then
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16535 $as_echo "$ac_ct_AR" >&6; }
16536 else
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16538 $as_echo "no" >&6; }
16541 if test "x$ac_ct_AR" = x; then
16542 AR="false"
16543 else
16544 case $cross_compiling:$ac_tool_warned in
16545 yes:)
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16548 ac_tool_warned=yes ;;
16549 esac
16550 AR=$ac_ct_AR
16552 else
16553 AR="$ac_cv_prog_AR"
16556 test -z "$AR" && AR=ar
16557 if test -n "$plugin_option"; then
16558 if $AR --help 2>&1 | grep -q "\--plugin"; then
16559 touch conftest.c
16560 $AR $plugin_option rc conftest.a conftest.c
16561 if test "$?" != 0; then
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
16563 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
16564 else
16565 AR="$AR $plugin_option"
16567 rm -f conftest.*
16570 test -z "$AR_FLAGS" && AR_FLAGS=cru
16582 if test -n "$ac_tool_prefix"; then
16583 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16584 set dummy ${ac_tool_prefix}strip; ac_word=$2
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16586 $as_echo_n "checking for $ac_word... " >&6; }
16587 if ${ac_cv_prog_STRIP+:} false; then :
16588 $as_echo_n "(cached) " >&6
16589 else
16590 if test -n "$STRIP"; then
16591 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16592 else
16593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16594 for as_dir in $PATH
16596 IFS=$as_save_IFS
16597 test -z "$as_dir" && as_dir=.
16598 for ac_exec_ext in '' $ac_executable_extensions; do
16599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16600 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16602 break 2
16604 done
16605 done
16606 IFS=$as_save_IFS
16610 STRIP=$ac_cv_prog_STRIP
16611 if test -n "$STRIP"; then
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16613 $as_echo "$STRIP" >&6; }
16614 else
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16616 $as_echo "no" >&6; }
16621 if test -z "$ac_cv_prog_STRIP"; then
16622 ac_ct_STRIP=$STRIP
16623 # Extract the first word of "strip", so it can be a program name with args.
16624 set dummy strip; ac_word=$2
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16626 $as_echo_n "checking for $ac_word... " >&6; }
16627 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16628 $as_echo_n "(cached) " >&6
16629 else
16630 if test -n "$ac_ct_STRIP"; then
16631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16632 else
16633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634 for as_dir in $PATH
16636 IFS=$as_save_IFS
16637 test -z "$as_dir" && as_dir=.
16638 for ac_exec_ext in '' $ac_executable_extensions; do
16639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16640 ac_cv_prog_ac_ct_STRIP="strip"
16641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16642 break 2
16644 done
16645 done
16646 IFS=$as_save_IFS
16650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16651 if test -n "$ac_ct_STRIP"; then
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16653 $as_echo "$ac_ct_STRIP" >&6; }
16654 else
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16656 $as_echo "no" >&6; }
16659 if test "x$ac_ct_STRIP" = x; then
16660 STRIP=":"
16661 else
16662 case $cross_compiling:$ac_tool_warned in
16663 yes:)
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16666 ac_tool_warned=yes ;;
16667 esac
16668 STRIP=$ac_ct_STRIP
16670 else
16671 STRIP="$ac_cv_prog_STRIP"
16674 test -z "$STRIP" && STRIP=:
16681 if test -n "$ac_tool_prefix"; then
16682 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16683 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16685 $as_echo_n "checking for $ac_word... " >&6; }
16686 if ${ac_cv_prog_RANLIB+:} false; then :
16687 $as_echo_n "(cached) " >&6
16688 else
16689 if test -n "$RANLIB"; then
16690 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16691 else
16692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16693 for as_dir in $PATH
16695 IFS=$as_save_IFS
16696 test -z "$as_dir" && as_dir=.
16697 for ac_exec_ext in '' $ac_executable_extensions; do
16698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16699 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16701 break 2
16703 done
16704 done
16705 IFS=$as_save_IFS
16709 RANLIB=$ac_cv_prog_RANLIB
16710 if test -n "$RANLIB"; then
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16712 $as_echo "$RANLIB" >&6; }
16713 else
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16715 $as_echo "no" >&6; }
16720 if test -z "$ac_cv_prog_RANLIB"; then
16721 ac_ct_RANLIB=$RANLIB
16722 # Extract the first word of "ranlib", so it can be a program name with args.
16723 set dummy ranlib; ac_word=$2
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16725 $as_echo_n "checking for $ac_word... " >&6; }
16726 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16727 $as_echo_n "(cached) " >&6
16728 else
16729 if test -n "$ac_ct_RANLIB"; then
16730 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16731 else
16732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16733 for as_dir in $PATH
16735 IFS=$as_save_IFS
16736 test -z "$as_dir" && as_dir=.
16737 for ac_exec_ext in '' $ac_executable_extensions; do
16738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16739 ac_cv_prog_ac_ct_RANLIB="ranlib"
16740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16741 break 2
16743 done
16744 done
16745 IFS=$as_save_IFS
16749 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16750 if test -n "$ac_ct_RANLIB"; then
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16752 $as_echo "$ac_ct_RANLIB" >&6; }
16753 else
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16755 $as_echo "no" >&6; }
16758 if test "x$ac_ct_RANLIB" = x; then
16759 RANLIB=":"
16760 else
16761 case $cross_compiling:$ac_tool_warned in
16762 yes:)
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16765 ac_tool_warned=yes ;;
16766 esac
16767 RANLIB=$ac_ct_RANLIB
16769 else
16770 RANLIB="$ac_cv_prog_RANLIB"
16773 test -z "$RANLIB" && RANLIB=:
16774 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16775 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
16776 RANLIB="$RANLIB $plugin_option"
16785 # Determine commands to create old-style static archives.
16786 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16787 old_postinstall_cmds='chmod 644 $oldlib'
16788 old_postuninstall_cmds=
16790 if test -n "$RANLIB"; then
16791 case $host_os in
16792 openbsd*)
16793 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16796 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16798 esac
16799 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16802 case $host_os in
16803 darwin*)
16804 lock_old_archive_extraction=yes ;;
16806 lock_old_archive_extraction=no ;;
16807 esac
16847 # If no C compiler was specified, use CC.
16848 LTCC=${LTCC-"$CC"}
16850 # If no C compiler flags were specified, use CFLAGS.
16851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16853 # Allow CC to be a program name with arguments.
16854 compiler=$CC
16857 # Check for command to grab the raw symbol name followed by C symbol from nm.
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
16859 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16860 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16861 $as_echo_n "(cached) " >&6
16862 else
16864 # These are sane defaults that work on at least a few old systems.
16865 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16867 # Character class describing NM global symbol codes.
16868 symcode='[BCDEGRST]'
16870 # Regexp to match symbols that can be accessed directly from C.
16871 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16873 # Define system-specific variables.
16874 case $host_os in
16875 aix*)
16876 symcode='[BCDT]'
16878 cygwin* | mingw* | pw32* | cegcc*)
16879 symcode='[ABCDGISTW]'
16881 hpux*)
16882 if test "$host_cpu" = ia64; then
16883 symcode='[ABCDEGRST]'
16886 irix* | nonstopux*)
16887 symcode='[BCDEGRST]'
16889 osf*)
16890 symcode='[BCDEGQRST]'
16892 solaris*)
16893 symcode='[BCDRT]'
16895 sco3.2v5*)
16896 symcode='[DT]'
16898 sysv4.2uw2*)
16899 symcode='[DT]'
16901 sysv5* | sco5v6* | unixware* | OpenUNIX*)
16902 symcode='[ABDT]'
16904 sysv4)
16905 symcode='[DFNSTU]'
16907 esac
16909 # If we're using GNU nm, then use its standard symbol codes.
16910 case `$NM -V 2>&1` in
16911 *GNU* | *'with BFD'*)
16912 symcode='[ABCDGIRSTW]' ;;
16913 esac
16915 # Transform an extracted symbol line into a proper C declaration.
16916 # Some systems (esp. on ia64) link data and code symbols differently,
16917 # so use this general approach.
16918 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16920 # Transform an extracted symbol line into symbol name and symbol address
16921 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
16922 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'"
16924 # Handle CRLF in mingw tool chain
16925 opt_cr=
16926 case $build_os in
16927 mingw*)
16928 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16930 esac
16932 # Try without a prefix underscore, then with it.
16933 for ac_symprfx in "" "_"; do
16935 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16936 symxfrm="\\1 $ac_symprfx\\2 \\2"
16938 # Write the raw and C identifiers.
16939 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16940 # Fake it for dumpbin and say T for any non-static function
16941 # and D for any global variable.
16942 # Also find C++ and __fastcall symbols from MSVC++,
16943 # which start with @ or ?.
16944 lt_cv_sys_global_symbol_pipe="$AWK '"\
16945 " {last_section=section; section=\$ 3};"\
16946 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16947 " \$ 0!~/External *\|/{next};"\
16948 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16949 " {if(hide[section]) next};"\
16950 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
16951 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
16952 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
16953 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
16954 " ' prfx=^$ac_symprfx"
16955 else
16956 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16959 # Check to see that the pipe works correctly.
16960 pipe_works=no
16962 rm -f conftest*
16963 cat > conftest.$ac_ext <<_LT_EOF
16964 #ifdef __cplusplus
16965 extern "C" {
16966 #endif
16967 char nm_test_var;
16968 void nm_test_func(void);
16969 void nm_test_func(void){}
16970 #ifdef __cplusplus
16972 #endif
16973 int main(){nm_test_var='a';nm_test_func();return(0);}
16974 _LT_EOF
16976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16977 (eval $ac_compile) 2>&5
16978 ac_status=$?
16979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16980 test $ac_status = 0; }; then
16981 # Now try to grab the symbols.
16982 nlist=conftest.nm
16983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
16984 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
16985 ac_status=$?
16986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16987 test $ac_status = 0; } && test -s "$nlist"; then
16988 # Try sorting and uniquifying the output.
16989 if sort "$nlist" | uniq > "$nlist"T; then
16990 mv -f "$nlist"T "$nlist"
16991 else
16992 rm -f "$nlist"T
16995 # Make sure that we snagged all the symbols we need.
16996 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16997 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16998 cat <<_LT_EOF > conftest.$ac_ext
16999 #ifdef __cplusplus
17000 extern "C" {
17001 #endif
17003 _LT_EOF
17004 # Now generate the symbol file.
17005 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17007 cat <<_LT_EOF >> conftest.$ac_ext
17009 /* The mapping between symbol names and symbols. */
17010 const struct {
17011 const char *name;
17012 void *address;
17014 lt__PROGRAM__LTX_preloaded_symbols[] =
17016 { "@PROGRAM@", (void *) 0 },
17017 _LT_EOF
17018 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17019 cat <<\_LT_EOF >> conftest.$ac_ext
17020 {0, (void *) 0}
17023 /* This works around a problem in FreeBSD linker */
17024 #ifdef FREEBSD_WORKAROUND
17025 static const void *lt_preloaded_setup() {
17026 return lt__PROGRAM__LTX_preloaded_symbols;
17028 #endif
17030 #ifdef __cplusplus
17032 #endif
17033 _LT_EOF
17034 # Now try linking the two files.
17035 mv conftest.$ac_objext conftstm.$ac_objext
17036 lt_save_LIBS="$LIBS"
17037 lt_save_CFLAGS="$CFLAGS"
17038 LIBS="conftstm.$ac_objext"
17039 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17041 (eval $ac_link) 2>&5
17042 ac_status=$?
17043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17044 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
17045 pipe_works=yes
17047 LIBS="$lt_save_LIBS"
17048 CFLAGS="$lt_save_CFLAGS"
17049 else
17050 echo "cannot find nm_test_func in $nlist" >&5
17052 else
17053 echo "cannot find nm_test_var in $nlist" >&5
17055 else
17056 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
17058 else
17059 echo "$progname: failed program was:" >&5
17060 cat conftest.$ac_ext >&5
17062 rm -rf conftest* conftst*
17064 # Do not use the global_symbol_pipe unless it works.
17065 if test "$pipe_works" = yes; then
17066 break
17067 else
17068 lt_cv_sys_global_symbol_pipe=
17070 done
17074 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17075 lt_cv_sys_global_symbol_to_cdecl=
17077 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17079 $as_echo "failed" >&6; }
17080 else
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17082 $as_echo "ok" >&6; }
17106 # Check whether --enable-libtool-lock was given.
17107 if test "${enable_libtool_lock+set}" = set; then :
17108 enableval=$enable_libtool_lock;
17111 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17113 # Some flags need to be propagated to the compiler or linker for good
17114 # libtool support.
17115 case $host in
17116 ia64-*-hpux*)
17117 # Find out which ABI we are using.
17118 echo 'int i;' > conftest.$ac_ext
17119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17120 (eval $ac_compile) 2>&5
17121 ac_status=$?
17122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17123 test $ac_status = 0; }; then
17124 case `/usr/bin/file conftest.$ac_objext` in
17125 *ELF-32*)
17126 HPUX_IA64_MODE="32"
17128 *ELF-64*)
17129 HPUX_IA64_MODE="64"
17131 esac
17133 rm -rf conftest*
17135 *-*-irix6*)
17136 # Find out which ABI we are using.
17137 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17139 (eval $ac_compile) 2>&5
17140 ac_status=$?
17141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17142 test $ac_status = 0; }; then
17143 if test "$lt_cv_prog_gnu_ld" = yes; then
17144 case `/usr/bin/file conftest.$ac_objext` in
17145 *32-bit*)
17146 LD="${LD-ld} -melf32bsmip"
17148 *N32*)
17149 LD="${LD-ld} -melf32bmipn32"
17151 *64-bit*)
17152 LD="${LD-ld} -melf64bmip"
17154 esac
17155 else
17156 case `/usr/bin/file conftest.$ac_objext` in
17157 *32-bit*)
17158 LD="${LD-ld} -32"
17160 *N32*)
17161 LD="${LD-ld} -n32"
17163 *64-bit*)
17164 LD="${LD-ld} -64"
17166 esac
17169 rm -rf conftest*
17172 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17173 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17174 # Find out which ABI we are using.
17175 echo 'int i;' > conftest.$ac_ext
17176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17177 (eval $ac_compile) 2>&5
17178 ac_status=$?
17179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17180 test $ac_status = 0; }; then
17181 case `/usr/bin/file conftest.o` in
17182 *32-bit*)
17183 case $host in
17184 x86_64-*kfreebsd*-gnu)
17185 LD="${LD-ld} -m elf_i386_fbsd"
17187 x86_64-*linux*)
17188 case `/usr/bin/file conftest.o` in
17189 *x86-64*)
17190 LD="${LD-ld} -m elf32_x86_64"
17193 LD="${LD-ld} -m elf_i386"
17195 esac
17197 powerpc64le-*linux*)
17198 LD="${LD-ld} -m elf32lppclinux"
17200 powerpc64-*linux*)
17201 LD="${LD-ld} -m elf32ppclinux"
17203 s390x-*linux*)
17204 LD="${LD-ld} -m elf_s390"
17206 sparc64-*linux*)
17207 LD="${LD-ld} -m elf32_sparc"
17209 esac
17211 *64-bit*)
17212 case $host in
17213 x86_64-*kfreebsd*-gnu)
17214 LD="${LD-ld} -m elf_x86_64_fbsd"
17216 x86_64-*linux*)
17217 LD="${LD-ld} -m elf_x86_64"
17219 powerpcle-*linux*)
17220 LD="${LD-ld} -m elf64lppc"
17222 powerpc-*linux*)
17223 LD="${LD-ld} -m elf64ppc"
17225 s390*-*linux*|s390*-*tpf*)
17226 LD="${LD-ld} -m elf64_s390"
17228 sparc*-*linux*)
17229 LD="${LD-ld} -m elf64_sparc"
17231 esac
17233 esac
17235 rm -rf conftest*
17238 *-*-sco3.2v5*)
17239 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17240 SAVE_CFLAGS="$CFLAGS"
17241 CFLAGS="$CFLAGS -belf"
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17243 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17244 if ${lt_cv_cc_needs_belf+:} false; then :
17245 $as_echo_n "(cached) " >&6
17246 else
17247 ac_ext=c
17248 ac_cpp='$CPP $CPPFLAGS'
17249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h. */
17257 main ()
17261 return 0;
17263 _ACEOF
17264 if ac_fn_c_try_link "$LINENO"; then :
17265 lt_cv_cc_needs_belf=yes
17266 else
17267 lt_cv_cc_needs_belf=no
17269 rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271 ac_ext=c
17272 ac_cpp='$CPP $CPPFLAGS'
17273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17279 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17280 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17281 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17282 CFLAGS="$SAVE_CFLAGS"
17285 sparc*-*solaris*)
17286 # Find out which ABI we are using.
17287 echo 'int i;' > conftest.$ac_ext
17288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17289 (eval $ac_compile) 2>&5
17290 ac_status=$?
17291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17292 test $ac_status = 0; }; then
17293 case `/usr/bin/file conftest.o` in
17294 *64-bit*)
17295 case $lt_cv_prog_gnu_ld in
17296 yes*) LD="${LD-ld} -m elf64_sparc" ;;
17298 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17299 LD="${LD-ld} -64"
17302 esac
17304 esac
17306 rm -rf conftest*
17308 esac
17310 need_locks="$enable_libtool_lock"
17313 case $host_os in
17314 rhapsody* | darwin*)
17315 if test -n "$ac_tool_prefix"; then
17316 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17317 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17319 $as_echo_n "checking for $ac_word... " >&6; }
17320 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17321 $as_echo_n "(cached) " >&6
17322 else
17323 if test -n "$DSYMUTIL"; then
17324 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17325 else
17326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17327 for as_dir in $PATH
17329 IFS=$as_save_IFS
17330 test -z "$as_dir" && as_dir=.
17331 for ac_exec_ext in '' $ac_executable_extensions; do
17332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17333 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17335 break 2
17337 done
17338 done
17339 IFS=$as_save_IFS
17343 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17344 if test -n "$DSYMUTIL"; then
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17346 $as_echo "$DSYMUTIL" >&6; }
17347 else
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349 $as_echo "no" >&6; }
17354 if test -z "$ac_cv_prog_DSYMUTIL"; then
17355 ac_ct_DSYMUTIL=$DSYMUTIL
17356 # Extract the first word of "dsymutil", so it can be a program name with args.
17357 set dummy dsymutil; ac_word=$2
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17359 $as_echo_n "checking for $ac_word... " >&6; }
17360 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17361 $as_echo_n "(cached) " >&6
17362 else
17363 if test -n "$ac_ct_DSYMUTIL"; then
17364 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17365 else
17366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17367 for as_dir in $PATH
17369 IFS=$as_save_IFS
17370 test -z "$as_dir" && as_dir=.
17371 for ac_exec_ext in '' $ac_executable_extensions; do
17372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17373 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17375 break 2
17377 done
17378 done
17379 IFS=$as_save_IFS
17383 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17384 if test -n "$ac_ct_DSYMUTIL"; then
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17386 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17387 else
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17389 $as_echo "no" >&6; }
17392 if test "x$ac_ct_DSYMUTIL" = x; then
17393 DSYMUTIL=":"
17394 else
17395 case $cross_compiling:$ac_tool_warned in
17396 yes:)
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17399 ac_tool_warned=yes ;;
17400 esac
17401 DSYMUTIL=$ac_ct_DSYMUTIL
17403 else
17404 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17407 if test -n "$ac_tool_prefix"; then
17408 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17409 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17411 $as_echo_n "checking for $ac_word... " >&6; }
17412 if ${ac_cv_prog_NMEDIT+:} false; then :
17413 $as_echo_n "(cached) " >&6
17414 else
17415 if test -n "$NMEDIT"; then
17416 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17417 else
17418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17419 for as_dir in $PATH
17421 IFS=$as_save_IFS
17422 test -z "$as_dir" && as_dir=.
17423 for ac_exec_ext in '' $ac_executable_extensions; do
17424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17425 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17427 break 2
17429 done
17430 done
17431 IFS=$as_save_IFS
17435 NMEDIT=$ac_cv_prog_NMEDIT
17436 if test -n "$NMEDIT"; then
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
17438 $as_echo "$NMEDIT" >&6; }
17439 else
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17441 $as_echo "no" >&6; }
17446 if test -z "$ac_cv_prog_NMEDIT"; then
17447 ac_ct_NMEDIT=$NMEDIT
17448 # Extract the first word of "nmedit", so it can be a program name with args.
17449 set dummy nmedit; ac_word=$2
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17451 $as_echo_n "checking for $ac_word... " >&6; }
17452 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17453 $as_echo_n "(cached) " >&6
17454 else
17455 if test -n "$ac_ct_NMEDIT"; then
17456 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17457 else
17458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17459 for as_dir in $PATH
17461 IFS=$as_save_IFS
17462 test -z "$as_dir" && as_dir=.
17463 for ac_exec_ext in '' $ac_executable_extensions; do
17464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17465 ac_cv_prog_ac_ct_NMEDIT="nmedit"
17466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17467 break 2
17469 done
17470 done
17471 IFS=$as_save_IFS
17475 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17476 if test -n "$ac_ct_NMEDIT"; then
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
17478 $as_echo "$ac_ct_NMEDIT" >&6; }
17479 else
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17481 $as_echo "no" >&6; }
17484 if test "x$ac_ct_NMEDIT" = x; then
17485 NMEDIT=":"
17486 else
17487 case $cross_compiling:$ac_tool_warned in
17488 yes:)
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17491 ac_tool_warned=yes ;;
17492 esac
17493 NMEDIT=$ac_ct_NMEDIT
17495 else
17496 NMEDIT="$ac_cv_prog_NMEDIT"
17499 if test -n "$ac_tool_prefix"; then
17500 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17501 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17503 $as_echo_n "checking for $ac_word... " >&6; }
17504 if ${ac_cv_prog_LIPO+:} false; then :
17505 $as_echo_n "(cached) " >&6
17506 else
17507 if test -n "$LIPO"; then
17508 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17509 else
17510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17511 for as_dir in $PATH
17513 IFS=$as_save_IFS
17514 test -z "$as_dir" && as_dir=.
17515 for ac_exec_ext in '' $ac_executable_extensions; do
17516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17517 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17519 break 2
17521 done
17522 done
17523 IFS=$as_save_IFS
17527 LIPO=$ac_cv_prog_LIPO
17528 if test -n "$LIPO"; then
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
17530 $as_echo "$LIPO" >&6; }
17531 else
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17533 $as_echo "no" >&6; }
17538 if test -z "$ac_cv_prog_LIPO"; then
17539 ac_ct_LIPO=$LIPO
17540 # Extract the first word of "lipo", so it can be a program name with args.
17541 set dummy lipo; ac_word=$2
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17543 $as_echo_n "checking for $ac_word... " >&6; }
17544 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17545 $as_echo_n "(cached) " >&6
17546 else
17547 if test -n "$ac_ct_LIPO"; then
17548 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17549 else
17550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17551 for as_dir in $PATH
17553 IFS=$as_save_IFS
17554 test -z "$as_dir" && as_dir=.
17555 for ac_exec_ext in '' $ac_executable_extensions; do
17556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17557 ac_cv_prog_ac_ct_LIPO="lipo"
17558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17559 break 2
17561 done
17562 done
17563 IFS=$as_save_IFS
17567 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17568 if test -n "$ac_ct_LIPO"; then
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17570 $as_echo "$ac_ct_LIPO" >&6; }
17571 else
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17573 $as_echo "no" >&6; }
17576 if test "x$ac_ct_LIPO" = x; then
17577 LIPO=":"
17578 else
17579 case $cross_compiling:$ac_tool_warned in
17580 yes:)
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17583 ac_tool_warned=yes ;;
17584 esac
17585 LIPO=$ac_ct_LIPO
17587 else
17588 LIPO="$ac_cv_prog_LIPO"
17591 if test -n "$ac_tool_prefix"; then
17592 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17593 set dummy ${ac_tool_prefix}otool; ac_word=$2
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17595 $as_echo_n "checking for $ac_word... " >&6; }
17596 if ${ac_cv_prog_OTOOL+:} false; then :
17597 $as_echo_n "(cached) " >&6
17598 else
17599 if test -n "$OTOOL"; then
17600 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17601 else
17602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17603 for as_dir in $PATH
17605 IFS=$as_save_IFS
17606 test -z "$as_dir" && as_dir=.
17607 for ac_exec_ext in '' $ac_executable_extensions; do
17608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17609 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17611 break 2
17613 done
17614 done
17615 IFS=$as_save_IFS
17619 OTOOL=$ac_cv_prog_OTOOL
17620 if test -n "$OTOOL"; then
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17622 $as_echo "$OTOOL" >&6; }
17623 else
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17625 $as_echo "no" >&6; }
17630 if test -z "$ac_cv_prog_OTOOL"; then
17631 ac_ct_OTOOL=$OTOOL
17632 # Extract the first word of "otool", so it can be a program name with args.
17633 set dummy otool; ac_word=$2
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17635 $as_echo_n "checking for $ac_word... " >&6; }
17636 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17637 $as_echo_n "(cached) " >&6
17638 else
17639 if test -n "$ac_ct_OTOOL"; then
17640 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17641 else
17642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17643 for as_dir in $PATH
17645 IFS=$as_save_IFS
17646 test -z "$as_dir" && as_dir=.
17647 for ac_exec_ext in '' $ac_executable_extensions; do
17648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17649 ac_cv_prog_ac_ct_OTOOL="otool"
17650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17651 break 2
17653 done
17654 done
17655 IFS=$as_save_IFS
17659 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17660 if test -n "$ac_ct_OTOOL"; then
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17662 $as_echo "$ac_ct_OTOOL" >&6; }
17663 else
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17665 $as_echo "no" >&6; }
17668 if test "x$ac_ct_OTOOL" = x; then
17669 OTOOL=":"
17670 else
17671 case $cross_compiling:$ac_tool_warned in
17672 yes:)
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17675 ac_tool_warned=yes ;;
17676 esac
17677 OTOOL=$ac_ct_OTOOL
17679 else
17680 OTOOL="$ac_cv_prog_OTOOL"
17683 if test -n "$ac_tool_prefix"; then
17684 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17685 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17687 $as_echo_n "checking for $ac_word... " >&6; }
17688 if ${ac_cv_prog_OTOOL64+:} false; then :
17689 $as_echo_n "(cached) " >&6
17690 else
17691 if test -n "$OTOOL64"; then
17692 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17693 else
17694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17695 for as_dir in $PATH
17697 IFS=$as_save_IFS
17698 test -z "$as_dir" && as_dir=.
17699 for ac_exec_ext in '' $ac_executable_extensions; do
17700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17701 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17703 break 2
17705 done
17706 done
17707 IFS=$as_save_IFS
17711 OTOOL64=$ac_cv_prog_OTOOL64
17712 if test -n "$OTOOL64"; then
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17714 $as_echo "$OTOOL64" >&6; }
17715 else
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17717 $as_echo "no" >&6; }
17722 if test -z "$ac_cv_prog_OTOOL64"; then
17723 ac_ct_OTOOL64=$OTOOL64
17724 # Extract the first word of "otool64", so it can be a program name with args.
17725 set dummy otool64; ac_word=$2
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17727 $as_echo_n "checking for $ac_word... " >&6; }
17728 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17729 $as_echo_n "(cached) " >&6
17730 else
17731 if test -n "$ac_ct_OTOOL64"; then
17732 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17733 else
17734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17735 for as_dir in $PATH
17737 IFS=$as_save_IFS
17738 test -z "$as_dir" && as_dir=.
17739 for ac_exec_ext in '' $ac_executable_extensions; do
17740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17741 ac_cv_prog_ac_ct_OTOOL64="otool64"
17742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17743 break 2
17745 done
17746 done
17747 IFS=$as_save_IFS
17751 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17752 if test -n "$ac_ct_OTOOL64"; then
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17754 $as_echo "$ac_ct_OTOOL64" >&6; }
17755 else
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17757 $as_echo "no" >&6; }
17760 if test "x$ac_ct_OTOOL64" = x; then
17761 OTOOL64=":"
17762 else
17763 case $cross_compiling:$ac_tool_warned in
17764 yes:)
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17767 ac_tool_warned=yes ;;
17768 esac
17769 OTOOL64=$ac_ct_OTOOL64
17771 else
17772 OTOOL64="$ac_cv_prog_OTOOL64"
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17802 $as_echo_n "checking for -single_module linker flag... " >&6; }
17803 if ${lt_cv_apple_cc_single_mod+:} false; then :
17804 $as_echo_n "(cached) " >&6
17805 else
17806 lt_cv_apple_cc_single_mod=no
17807 if test -z "${LT_MULTI_MODULE}"; then
17808 # By default we will add the -single_module flag. You can override
17809 # by either setting the environment variable LT_MULTI_MODULE
17810 # non-empty at configure time, or by adding -multi_module to the
17811 # link flags.
17812 rm -rf libconftest.dylib*
17813 echo "int foo(void){return 1;}" > conftest.c
17814 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17815 -dynamiclib -Wl,-single_module conftest.c" >&5
17816 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17817 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17818 _lt_result=$?
17819 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17820 lt_cv_apple_cc_single_mod=yes
17821 else
17822 cat conftest.err >&5
17824 rm -rf libconftest.dylib*
17825 rm -f conftest.*
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17829 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17831 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
17832 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17833 $as_echo_n "(cached) " >&6
17834 else
17835 lt_cv_ld_exported_symbols_list=no
17836 save_LDFLAGS=$LDFLAGS
17837 echo "_main" > conftest.sym
17838 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17843 main ()
17847 return 0;
17849 _ACEOF
17850 if ac_fn_c_try_link "$LINENO"; then :
17851 lt_cv_ld_exported_symbols_list=yes
17852 else
17853 lt_cv_ld_exported_symbols_list=no
17855 rm -f core conftest.err conftest.$ac_objext \
17856 conftest$ac_exeext conftest.$ac_ext
17857 LDFLAGS="$save_LDFLAGS"
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17861 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17863 $as_echo_n "checking for -force_load linker flag... " >&6; }
17864 if ${lt_cv_ld_force_load+:} false; then :
17865 $as_echo_n "(cached) " >&6
17866 else
17867 lt_cv_ld_force_load=no
17868 cat > conftest.c << _LT_EOF
17869 int forced_loaded() { return 2;}
17870 _LT_EOF
17871 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17872 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17873 echo "$AR cru libconftest.a conftest.o" >&5
17874 $AR cru libconftest.a conftest.o 2>&5
17875 cat > conftest.c << _LT_EOF
17876 int main() { return 0;}
17877 _LT_EOF
17878 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17879 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17880 _lt_result=$?
17881 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
17882 lt_cv_ld_force_load=yes
17883 else
17884 cat conftest.err >&5
17886 rm -f conftest.err libconftest.a conftest conftest.c
17887 rm -rf conftest.dSYM
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
17891 $as_echo "$lt_cv_ld_force_load" >&6; }
17892 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
17893 # build without first building modern cctools / linker.
17894 case $host_cpu-$host_os in
17895 *-rhapsody* | *-darwin1.[012])
17896 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17897 *-darwin1.*)
17898 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17899 *-darwin*)
17900 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
17901 # deployment target is forced to an earlier version.
17902 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
17903 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
17905 10.[012][,.]*)
17906 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17910 esac
17912 esac
17913 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17914 _lt_dar_single_mod='$single_module'
17916 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17917 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17918 else
17919 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
17921 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
17922 _lt_dsymutil='~$DSYMUTIL $lib || :'
17923 else
17924 _lt_dsymutil=
17927 esac
17930 for ac_header in dlfcn.h
17931 do :
17932 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
17933 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
17934 cat >>confdefs.h <<_ACEOF
17935 #define HAVE_DLFCN_H 1
17936 _ACEOF
17939 done
17945 # Set options
17949 enable_dlopen=no
17952 enable_win32_dll=no
17955 # Check whether --enable-shared was given.
17956 if test "${enable_shared+set}" = set; then :
17957 enableval=$enable_shared; p=${PACKAGE-default}
17958 case $enableval in
17959 yes) enable_shared=yes ;;
17960 no) enable_shared=no ;;
17962 enable_shared=no
17963 # Look at the argument we got. We use all the common list separators.
17964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17965 for pkg in $enableval; do
17966 IFS="$lt_save_ifs"
17967 if test "X$pkg" = "X$p"; then
17968 enable_shared=yes
17970 done
17971 IFS="$lt_save_ifs"
17973 esac
17974 else
17975 enable_shared=yes
17986 # Check whether --enable-static was given.
17987 if test "${enable_static+set}" = set; then :
17988 enableval=$enable_static; p=${PACKAGE-default}
17989 case $enableval in
17990 yes) enable_static=yes ;;
17991 no) enable_static=no ;;
17993 enable_static=no
17994 # Look at the argument we got. We use all the common list separators.
17995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17996 for pkg in $enableval; do
17997 IFS="$lt_save_ifs"
17998 if test "X$pkg" = "X$p"; then
17999 enable_static=yes
18001 done
18002 IFS="$lt_save_ifs"
18004 esac
18005 else
18006 enable_static=yes
18018 # Check whether --with-pic was given.
18019 if test "${with_pic+set}" = set; then :
18020 withval=$with_pic; pic_mode="$withval"
18021 else
18022 pic_mode=default
18026 test -z "$pic_mode" && pic_mode=default
18034 # Check whether --enable-fast-install was given.
18035 if test "${enable_fast_install+set}" = set; then :
18036 enableval=$enable_fast_install; p=${PACKAGE-default}
18037 case $enableval in
18038 yes) enable_fast_install=yes ;;
18039 no) enable_fast_install=no ;;
18041 enable_fast_install=no
18042 # Look at the argument we got. We use all the common list separators.
18043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18044 for pkg in $enableval; do
18045 IFS="$lt_save_ifs"
18046 if test "X$pkg" = "X$p"; then
18047 enable_fast_install=yes
18049 done
18050 IFS="$lt_save_ifs"
18052 esac
18053 else
18054 enable_fast_install=yes
18067 # This can be used to rebuild libtool when needed
18068 LIBTOOL_DEPS="$ltmain"
18070 # Always use our own libtool.
18071 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18098 test -z "$LN_S" && LN_S="ln -s"
18113 if test -n "${ZSH_VERSION+set}" ; then
18114 setopt NO_GLOB_SUBST
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18118 $as_echo_n "checking for objdir... " >&6; }
18119 if ${lt_cv_objdir+:} false; then :
18120 $as_echo_n "(cached) " >&6
18121 else
18122 rm -f .libs 2>/dev/null
18123 mkdir .libs 2>/dev/null
18124 if test -d .libs; then
18125 lt_cv_objdir=.libs
18126 else
18127 # MS-DOS does not allow filenames that begin with a dot.
18128 lt_cv_objdir=_libs
18130 rmdir .libs 2>/dev/null
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18133 $as_echo "$lt_cv_objdir" >&6; }
18134 objdir=$lt_cv_objdir
18140 cat >>confdefs.h <<_ACEOF
18141 #define LT_OBJDIR "$lt_cv_objdir/"
18142 _ACEOF
18147 case $host_os in
18148 aix3*)
18149 # AIX sometimes has problems with the GCC collect2 program. For some
18150 # reason, if we set the COLLECT_NAMES environment variable, the problems
18151 # vanish in a puff of smoke.
18152 if test "X${COLLECT_NAMES+set}" != Xset; then
18153 COLLECT_NAMES=
18154 export COLLECT_NAMES
18157 esac
18159 # Global variables:
18160 ofile=libtool
18161 can_build_shared=yes
18163 # All known linkers require a `.a' archive for static linking (except MSVC,
18164 # which needs '.lib').
18165 libext=a
18167 with_gnu_ld="$lt_cv_prog_gnu_ld"
18169 old_CC="$CC"
18170 old_CFLAGS="$CFLAGS"
18172 # Set sane defaults for various variables
18173 test -z "$CC" && CC=cc
18174 test -z "$LTCC" && LTCC=$CC
18175 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18176 test -z "$LD" && LD=ld
18177 test -z "$ac_objext" && ac_objext=o
18179 for cc_temp in $compiler""; do
18180 case $cc_temp in
18181 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18182 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18183 \-*) ;;
18184 *) break;;
18185 esac
18186 done
18187 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18190 # Only perform the check for file, if the check method requires it
18191 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18192 case $deplibs_check_method in
18193 file_magic*)
18194 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18196 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18197 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18198 $as_echo_n "(cached) " >&6
18199 else
18200 case $MAGIC_CMD in
18201 [\\/*] | ?:[\\/]*)
18202 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18205 lt_save_MAGIC_CMD="$MAGIC_CMD"
18206 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18207 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18208 for ac_dir in $ac_dummy; do
18209 IFS="$lt_save_ifs"
18210 test -z "$ac_dir" && ac_dir=.
18211 if test -f $ac_dir/${ac_tool_prefix}file; then
18212 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18213 if test -n "$file_magic_test_file"; then
18214 case $deplibs_check_method in
18215 "file_magic "*)
18216 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18218 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18219 $EGREP "$file_magic_regex" > /dev/null; then
18221 else
18222 cat <<_LT_EOF 1>&2
18224 *** Warning: the command libtool uses to detect shared libraries,
18225 *** $file_magic_cmd, produces output that libtool cannot recognize.
18226 *** The result is that libtool may fail to recognize shared libraries
18227 *** as such. This will affect the creation of libtool libraries that
18228 *** depend on shared libraries, but programs linked with such libtool
18229 *** libraries will work regardless of this problem. Nevertheless, you
18230 *** may want to report the problem to your system manager and/or to
18231 *** bug-libtool@gnu.org
18233 _LT_EOF
18234 fi ;;
18235 esac
18237 break
18239 done
18240 IFS="$lt_save_ifs"
18241 MAGIC_CMD="$lt_save_MAGIC_CMD"
18243 esac
18246 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18247 if test -n "$MAGIC_CMD"; then
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18249 $as_echo "$MAGIC_CMD" >&6; }
18250 else
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18252 $as_echo "no" >&6; }
18259 if test -z "$lt_cv_path_MAGIC_CMD"; then
18260 if test -n "$ac_tool_prefix"; then
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18262 $as_echo_n "checking for file... " >&6; }
18263 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18264 $as_echo_n "(cached) " >&6
18265 else
18266 case $MAGIC_CMD in
18267 [\\/*] | ?:[\\/]*)
18268 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18271 lt_save_MAGIC_CMD="$MAGIC_CMD"
18272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18273 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18274 for ac_dir in $ac_dummy; do
18275 IFS="$lt_save_ifs"
18276 test -z "$ac_dir" && ac_dir=.
18277 if test -f $ac_dir/file; then
18278 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18279 if test -n "$file_magic_test_file"; then
18280 case $deplibs_check_method in
18281 "file_magic "*)
18282 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18284 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18285 $EGREP "$file_magic_regex" > /dev/null; then
18287 else
18288 cat <<_LT_EOF 1>&2
18290 *** Warning: the command libtool uses to detect shared libraries,
18291 *** $file_magic_cmd, produces output that libtool cannot recognize.
18292 *** The result is that libtool may fail to recognize shared libraries
18293 *** as such. This will affect the creation of libtool libraries that
18294 *** depend on shared libraries, but programs linked with such libtool
18295 *** libraries will work regardless of this problem. Nevertheless, you
18296 *** may want to report the problem to your system manager and/or to
18297 *** bug-libtool@gnu.org
18299 _LT_EOF
18300 fi ;;
18301 esac
18303 break
18305 done
18306 IFS="$lt_save_ifs"
18307 MAGIC_CMD="$lt_save_MAGIC_CMD"
18309 esac
18312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18313 if test -n "$MAGIC_CMD"; then
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18315 $as_echo "$MAGIC_CMD" >&6; }
18316 else
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18318 $as_echo "no" >&6; }
18322 else
18323 MAGIC_CMD=:
18329 esac
18331 # Use C for the default configuration in the libtool script
18333 lt_save_CC="$CC"
18334 ac_ext=c
18335 ac_cpp='$CPP $CPPFLAGS'
18336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18341 # Source file extension for C test sources.
18342 ac_ext=c
18344 # Object file extension for compiled C test sources.
18345 objext=o
18346 objext=$objext
18348 # Code to be used in simple compile tests
18349 lt_simple_compile_test_code="int some_variable = 0;"
18351 # Code to be used in simple link tests
18352 lt_simple_link_test_code='int main(){return(0);}'
18360 # If no C compiler was specified, use CC.
18361 LTCC=${LTCC-"$CC"}
18363 # If no C compiler flags were specified, use CFLAGS.
18364 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18366 # Allow CC to be a program name with arguments.
18367 compiler=$CC
18369 # Save the default compiler, since it gets overwritten when the other
18370 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18371 compiler_DEFAULT=$CC
18373 # save warnings/boilerplate of simple test code
18374 ac_outfile=conftest.$ac_objext
18375 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18376 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18377 _lt_compiler_boilerplate=`cat conftest.err`
18378 $RM conftest*
18380 ac_outfile=conftest.$ac_objext
18381 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18382 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18383 _lt_linker_boilerplate=`cat conftest.err`
18384 $RM -r conftest*
18387 ## CAVEAT EMPTOR:
18388 ## There is no encapsulation within the following macros, do not change
18389 ## the running order or otherwise move them around unless you know exactly
18390 ## what you are doing...
18391 if test -n "$compiler"; then
18393 lt_prog_compiler_no_builtin_flag=
18395 if test "$GCC" = yes; then
18396 case $cc_basename in
18397 nvcc*)
18398 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18400 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18401 esac
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18404 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18405 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18406 $as_echo_n "(cached) " >&6
18407 else
18408 lt_cv_prog_compiler_rtti_exceptions=no
18409 ac_outfile=conftest.$ac_objext
18410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18411 lt_compiler_flag="-fno-rtti -fno-exceptions"
18412 # Insert the option either (1) after the last *FLAGS variable, or
18413 # (2) before a word containing "conftest.", or (3) at the end.
18414 # Note that $ac_compile itself does not contain backslashes and begins
18415 # with a dollar sign (not a hyphen), so the echo should work correctly.
18416 # The option is referenced via a variable to avoid confusing sed.
18417 lt_compile=`echo "$ac_compile" | $SED \
18418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18420 -e 's:$: $lt_compiler_flag:'`
18421 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18422 (eval "$lt_compile" 2>conftest.err)
18423 ac_status=$?
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 if (exit $ac_status) && test -s "$ac_outfile"; then
18427 # The compiler can only warn and ignore the option if not recognized
18428 # So say no if there are warnings other than the usual output.
18429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18431 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18432 lt_cv_prog_compiler_rtti_exceptions=yes
18435 $RM conftest*
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18439 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18441 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18442 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18443 else
18454 lt_prog_compiler_wl=
18455 lt_prog_compiler_pic=
18456 lt_prog_compiler_static=
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18459 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18461 if test "$GCC" = yes; then
18462 lt_prog_compiler_wl='-Wl,'
18463 lt_prog_compiler_static='-static'
18465 case $host_os in
18466 aix*)
18467 # All AIX code is PIC.
18468 if test "$host_cpu" = ia64; then
18469 # AIX 5 now supports IA64 processor
18470 lt_prog_compiler_static='-Bstatic'
18472 lt_prog_compiler_pic='-fPIC'
18475 amigaos*)
18476 case $host_cpu in
18477 powerpc)
18478 # see comment about AmigaOS4 .so support
18479 lt_prog_compiler_pic='-fPIC'
18481 m68k)
18482 # FIXME: we need at least 68020 code to build shared libraries, but
18483 # adding the `-m68020' flag to GCC prevents building anything better,
18484 # like `-m68040'.
18485 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18487 esac
18490 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18491 # PIC is the default for these OSes.
18494 mingw* | cygwin* | pw32* | os2* | cegcc*)
18495 # This hack is so that the source file can tell whether it is being
18496 # built for inclusion in a dll (and should export symbols for example).
18497 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18498 # (--disable-auto-import) libraries
18499 lt_prog_compiler_pic='-DDLL_EXPORT'
18502 darwin* | rhapsody*)
18503 # PIC is the default on this platform
18504 # Common symbols not allowed in MH_DYLIB files
18505 lt_prog_compiler_pic='-fno-common'
18508 haiku*)
18509 # PIC is the default for Haiku.
18510 # The "-static" flag exists, but is broken.
18511 lt_prog_compiler_static=
18514 hpux*)
18515 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18516 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18517 # sets the default TLS model and affects inlining.
18518 case $host_cpu in
18519 hppa*64*)
18520 # +Z the default
18523 lt_prog_compiler_pic='-fPIC'
18525 esac
18528 interix[3-9]*)
18529 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18530 # Instead, we relocate shared libraries at runtime.
18533 msdosdjgpp*)
18534 # Just because we use GCC doesn't mean we suddenly get shared libraries
18535 # on systems that don't support them.
18536 lt_prog_compiler_can_build_shared=no
18537 enable_shared=no
18540 *nto* | *qnx*)
18541 # QNX uses GNU C++, but need to define -shared option too, otherwise
18542 # it will coredump.
18543 lt_prog_compiler_pic='-fPIC -shared'
18546 sysv4*MP*)
18547 if test -d /usr/nec; then
18548 lt_prog_compiler_pic=-Kconform_pic
18553 lt_prog_compiler_pic='-fPIC'
18555 esac
18557 case $cc_basename in
18558 nvcc*) # Cuda Compiler Driver 2.2
18559 lt_prog_compiler_wl='-Xlinker '
18560 lt_prog_compiler_pic='-Xcompiler -fPIC'
18562 esac
18563 else
18564 # PORTME Check for flag to pass linker flags through the system compiler.
18565 case $host_os in
18566 aix*)
18567 lt_prog_compiler_wl='-Wl,'
18568 if test "$host_cpu" = ia64; then
18569 # AIX 5 now supports IA64 processor
18570 lt_prog_compiler_static='-Bstatic'
18571 else
18572 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18576 mingw* | cygwin* | pw32* | os2* | cegcc*)
18577 # This hack is so that the source file can tell whether it is being
18578 # built for inclusion in a dll (and should export symbols for example).
18579 lt_prog_compiler_pic='-DDLL_EXPORT'
18582 hpux9* | hpux10* | hpux11*)
18583 lt_prog_compiler_wl='-Wl,'
18584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18585 # not for PA HP-UX.
18586 case $host_cpu in
18587 hppa*64*|ia64*)
18588 # +Z the default
18591 lt_prog_compiler_pic='+Z'
18593 esac
18594 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18595 lt_prog_compiler_static='${wl}-a ${wl}archive'
18598 irix5* | irix6* | nonstopux*)
18599 lt_prog_compiler_wl='-Wl,'
18600 # PIC (with -KPIC) is the default.
18601 lt_prog_compiler_static='-non_shared'
18604 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18605 case $cc_basename in
18606 # old Intel for x86_64 which still supported -KPIC.
18607 ecc*)
18608 lt_prog_compiler_wl='-Wl,'
18609 lt_prog_compiler_pic='-KPIC'
18610 lt_prog_compiler_static='-static'
18612 # icc used to be incompatible with GCC.
18613 # ICC 10 doesn't accept -KPIC any more.
18614 icc* | ifort*)
18615 lt_prog_compiler_wl='-Wl,'
18616 lt_prog_compiler_pic='-fPIC'
18617 lt_prog_compiler_static='-static'
18619 # Lahey Fortran 8.1.
18620 lf95*)
18621 lt_prog_compiler_wl='-Wl,'
18622 lt_prog_compiler_pic='--shared'
18623 lt_prog_compiler_static='--static'
18625 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18626 # Portland Group compilers (*not* the Pentium gcc compiler,
18627 # which looks to be a dead project)
18628 lt_prog_compiler_wl='-Wl,'
18629 lt_prog_compiler_pic='-fpic'
18630 lt_prog_compiler_static='-Bstatic'
18632 ccc*)
18633 lt_prog_compiler_wl='-Wl,'
18634 # All Alpha code is PIC.
18635 lt_prog_compiler_static='-non_shared'
18637 xl* | bgxl* | bgf* | mpixl*)
18638 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18639 lt_prog_compiler_wl='-Wl,'
18640 lt_prog_compiler_pic='-qpic'
18641 lt_prog_compiler_static='-qstaticlink'
18644 case `$CC -V 2>&1 | sed 5q` in
18645 *Sun\ F* | *Sun*Fortran*)
18646 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18647 lt_prog_compiler_pic='-KPIC'
18648 lt_prog_compiler_static='-Bstatic'
18649 lt_prog_compiler_wl=''
18651 *Sun\ C*)
18652 # Sun C 5.9
18653 lt_prog_compiler_pic='-KPIC'
18654 lt_prog_compiler_static='-Bstatic'
18655 lt_prog_compiler_wl='-Wl,'
18657 esac
18659 esac
18662 newsos6)
18663 lt_prog_compiler_pic='-KPIC'
18664 lt_prog_compiler_static='-Bstatic'
18667 *nto* | *qnx*)
18668 # QNX uses GNU C++, but need to define -shared option too, otherwise
18669 # it will coredump.
18670 lt_prog_compiler_pic='-fPIC -shared'
18673 osf3* | osf4* | osf5*)
18674 lt_prog_compiler_wl='-Wl,'
18675 # All OSF/1 code is PIC.
18676 lt_prog_compiler_static='-non_shared'
18679 rdos*)
18680 lt_prog_compiler_static='-non_shared'
18683 solaris*)
18684 lt_prog_compiler_pic='-KPIC'
18685 lt_prog_compiler_static='-Bstatic'
18686 case $cc_basename in
18687 f77* | f90* | f95*)
18688 lt_prog_compiler_wl='-Qoption ld ';;
18690 lt_prog_compiler_wl='-Wl,';;
18691 esac
18694 sunos4*)
18695 lt_prog_compiler_wl='-Qoption ld '
18696 lt_prog_compiler_pic='-PIC'
18697 lt_prog_compiler_static='-Bstatic'
18700 sysv4 | sysv4.2uw2* | sysv4.3*)
18701 lt_prog_compiler_wl='-Wl,'
18702 lt_prog_compiler_pic='-KPIC'
18703 lt_prog_compiler_static='-Bstatic'
18706 sysv4*MP*)
18707 if test -d /usr/nec ;then
18708 lt_prog_compiler_pic='-Kconform_pic'
18709 lt_prog_compiler_static='-Bstatic'
18713 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18714 lt_prog_compiler_wl='-Wl,'
18715 lt_prog_compiler_pic='-KPIC'
18716 lt_prog_compiler_static='-Bstatic'
18719 unicos*)
18720 lt_prog_compiler_wl='-Wl,'
18721 lt_prog_compiler_can_build_shared=no
18724 uts4*)
18725 lt_prog_compiler_pic='-pic'
18726 lt_prog_compiler_static='-Bstatic'
18730 lt_prog_compiler_can_build_shared=no
18732 esac
18735 case $host_os in
18736 # For platforms which do not support PIC, -DPIC is meaningless:
18737 *djgpp*)
18738 lt_prog_compiler_pic=
18741 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18743 esac
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
18745 $as_echo "$lt_prog_compiler_pic" >&6; }
18753 # Check to make sure the PIC flag actually works.
18755 if test -n "$lt_prog_compiler_pic"; then
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18757 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18758 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18759 $as_echo_n "(cached) " >&6
18760 else
18761 lt_cv_prog_compiler_pic_works=no
18762 ac_outfile=conftest.$ac_objext
18763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18764 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18765 # Insert the option either (1) after the last *FLAGS variable, or
18766 # (2) before a word containing "conftest.", or (3) at the end.
18767 # Note that $ac_compile itself does not contain backslashes and begins
18768 # with a dollar sign (not a hyphen), so the echo should work correctly.
18769 # The option is referenced via a variable to avoid confusing sed.
18770 lt_compile=`echo "$ac_compile" | $SED \
18771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18773 -e 's:$: $lt_compiler_flag:'`
18774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18775 (eval "$lt_compile" 2>conftest.err)
18776 ac_status=$?
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 if (exit $ac_status) && test -s "$ac_outfile"; then
18780 # The compiler can only warn and ignore the option if not recognized
18781 # So say no if there are warnings other than the usual output.
18782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18785 lt_cv_prog_compiler_pic_works=yes
18788 $RM conftest*
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18792 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18794 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18795 case $lt_prog_compiler_pic in
18796 "" | " "*) ;;
18797 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18798 esac
18799 else
18800 lt_prog_compiler_pic=
18801 lt_prog_compiler_can_build_shared=no
18812 # Check to make sure the static flag actually works.
18814 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18816 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18817 if ${lt_cv_prog_compiler_static_works+:} false; then :
18818 $as_echo_n "(cached) " >&6
18819 else
18820 lt_cv_prog_compiler_static_works=no
18821 save_LDFLAGS="$LDFLAGS"
18822 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18823 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18824 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18825 # The linker can only warn and ignore the option if not recognized
18826 # So say no if there are warnings
18827 if test -s conftest.err; then
18828 # Append any errors to the config.log.
18829 cat conftest.err 1>&5
18830 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18832 if diff conftest.exp conftest.er2 >/dev/null; then
18833 lt_cv_prog_compiler_static_works=yes
18835 else
18836 lt_cv_prog_compiler_static_works=yes
18839 $RM -r conftest*
18840 LDFLAGS="$save_LDFLAGS"
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18844 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18846 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18848 else
18849 lt_prog_compiler_static=
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18859 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18860 if ${lt_cv_prog_compiler_c_o+:} false; then :
18861 $as_echo_n "(cached) " >&6
18862 else
18863 lt_cv_prog_compiler_c_o=no
18864 $RM -r conftest 2>/dev/null
18865 mkdir conftest
18866 cd conftest
18867 mkdir out
18868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18870 lt_compiler_flag="-o out/conftest2.$ac_objext"
18871 # Insert the option either (1) after the last *FLAGS variable, or
18872 # (2) before a word containing "conftest.", or (3) at the end.
18873 # Note that $ac_compile itself does not contain backslashes and begins
18874 # with a dollar sign (not a hyphen), so the echo should work correctly.
18875 lt_compile=`echo "$ac_compile" | $SED \
18876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18878 -e 's:$: $lt_compiler_flag:'`
18879 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18880 (eval "$lt_compile" 2>out/conftest.err)
18881 ac_status=$?
18882 cat out/conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18885 then
18886 # The compiler can only warn and ignore the option if not recognized
18887 # So say no if there are warnings
18888 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18891 lt_cv_prog_compiler_c_o=yes
18894 chmod u+w . 2>&5
18895 $RM conftest*
18896 # SGI C++ compiler will create directory out/ii_files/ for
18897 # template instantiation
18898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18899 $RM out/* && rmdir out
18900 cd ..
18901 $RM -r conftest
18902 $RM conftest*
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18906 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18914 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18915 if ${lt_cv_prog_compiler_c_o+:} false; then :
18916 $as_echo_n "(cached) " >&6
18917 else
18918 lt_cv_prog_compiler_c_o=no
18919 $RM -r conftest 2>/dev/null
18920 mkdir conftest
18921 cd conftest
18922 mkdir out
18923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18925 lt_compiler_flag="-o out/conftest2.$ac_objext"
18926 # Insert the option either (1) after the last *FLAGS variable, or
18927 # (2) before a word containing "conftest.", or (3) at the end.
18928 # Note that $ac_compile itself does not contain backslashes and begins
18929 # with a dollar sign (not a hyphen), so the echo should work correctly.
18930 lt_compile=`echo "$ac_compile" | $SED \
18931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18933 -e 's:$: $lt_compiler_flag:'`
18934 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18935 (eval "$lt_compile" 2>out/conftest.err)
18936 ac_status=$?
18937 cat out/conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18940 then
18941 # The compiler can only warn and ignore the option if not recognized
18942 # So say no if there are warnings
18943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18944 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18945 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18946 lt_cv_prog_compiler_c_o=yes
18949 chmod u+w . 2>&5
18950 $RM conftest*
18951 # SGI C++ compiler will create directory out/ii_files/ for
18952 # template instantiation
18953 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18954 $RM out/* && rmdir out
18955 cd ..
18956 $RM -r conftest
18957 $RM conftest*
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18961 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18966 hard_links="nottested"
18967 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
18968 # do not overwrite the value of need_locks provided by the user
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18970 $as_echo_n "checking if we can lock with hard links... " >&6; }
18971 hard_links=yes
18972 $RM conftest*
18973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18974 touch conftest.a
18975 ln conftest.a conftest.b 2>&5 || hard_links=no
18976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18978 $as_echo "$hard_links" >&6; }
18979 if test "$hard_links" = no; then
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18981 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18982 need_locks=warn
18984 else
18985 need_locks=no
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18994 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18996 runpath_var=
18997 allow_undefined_flag=
18998 always_export_symbols=no
18999 archive_cmds=
19000 archive_expsym_cmds=
19001 compiler_needs_object=no
19002 enable_shared_with_static_runtimes=no
19003 export_dynamic_flag_spec=
19004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19005 hardcode_automatic=no
19006 hardcode_direct=no
19007 hardcode_direct_absolute=no
19008 hardcode_libdir_flag_spec=
19009 hardcode_libdir_flag_spec_ld=
19010 hardcode_libdir_separator=
19011 hardcode_minus_L=no
19012 hardcode_shlibpath_var=unsupported
19013 inherit_rpath=no
19014 link_all_deplibs=unknown
19015 module_cmds=
19016 module_expsym_cmds=
19017 old_archive_from_new_cmds=
19018 old_archive_from_expsyms_cmds=
19019 thread_safe_flag_spec=
19020 whole_archive_flag_spec=
19021 # include_expsyms should be a list of space-separated symbols to be *always*
19022 # included in the symbol list
19023 include_expsyms=
19024 # exclude_expsyms can be an extended regexp of symbols to exclude
19025 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19026 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19027 # as well as any symbol that contains `d'.
19028 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19029 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19030 # platforms (ab)use it in PIC code, but their linkers get confused if
19031 # the symbol is explicitly referenced. Since portable code cannot
19032 # rely on this symbol name, it's probably fine to never include it in
19033 # preloaded symbol tables.
19034 # Exclude shared library initialization/finalization symbols.
19035 extract_expsyms_cmds=
19037 case $host_os in
19038 cygwin* | mingw* | pw32* | cegcc*)
19039 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19040 # When not using gcc, we currently assume that we are using
19041 # Microsoft Visual C++.
19042 if test "$GCC" != yes; then
19043 with_gnu_ld=no
19046 interix*)
19047 # we just hope/assume this is gcc and not c89 (= MSVC++)
19048 with_gnu_ld=yes
19050 openbsd*)
19051 with_gnu_ld=no
19053 esac
19055 ld_shlibs=yes
19057 # On some targets, GNU ld is compatible enough with the native linker
19058 # that we're better off using the native interface for both.
19059 lt_use_gnu_ld_interface=no
19060 if test "$with_gnu_ld" = yes; then
19061 case $host_os in
19062 aix*)
19063 # The AIX port of GNU ld has always aspired to compatibility
19064 # with the native linker. However, as the warning in the GNU ld
19065 # block says, versions before 2.19.5* couldn't really create working
19066 # shared libraries, regardless of the interface used.
19067 case `$LD -v 2>&1` in
19068 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19069 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19070 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19072 lt_use_gnu_ld_interface=yes
19074 esac
19077 lt_use_gnu_ld_interface=yes
19079 esac
19082 if test "$lt_use_gnu_ld_interface" = yes; then
19083 # If archive_cmds runs LD, not CC, wlarc should be empty
19084 wlarc='${wl}'
19086 # Set some defaults for GNU ld with shared library support. These
19087 # are reset later if shared libraries are not supported. Putting them
19088 # here allows them to be overridden if necessary.
19089 runpath_var=LD_RUN_PATH
19090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19091 export_dynamic_flag_spec='${wl}--export-dynamic'
19092 # ancient GNU ld didn't support --whole-archive et. al.
19093 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19094 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19095 else
19096 whole_archive_flag_spec=
19098 supports_anon_versioning=no
19099 case `$LD -v 2>&1` in
19100 *GNU\ gold*) supports_anon_versioning=yes ;;
19101 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19102 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19103 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19104 *\ 2.11.*) ;; # other 2.11 versions
19105 *) supports_anon_versioning=yes ;;
19106 esac
19108 # See if GNU ld supports shared libraries.
19109 case $host_os in
19110 aix[3-9]*)
19111 # On AIX/PPC, the GNU linker is very broken
19112 if test "$host_cpu" != ia64; then
19113 ld_shlibs=no
19114 cat <<_LT_EOF 1>&2
19116 *** Warning: the GNU linker, at least up to release 2.19, is reported
19117 *** to be unable to reliably create shared libraries on AIX.
19118 *** Therefore, libtool is disabling shared libraries support. If you
19119 *** really care for shared libraries, you may want to install binutils
19120 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19121 *** You will then need to restart the configuration process.
19123 _LT_EOF
19127 amigaos*)
19128 case $host_cpu in
19129 powerpc)
19130 # see comment about AmigaOS4 .so support
19131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19132 archive_expsym_cmds=''
19134 m68k)
19135 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)'
19136 hardcode_libdir_flag_spec='-L$libdir'
19137 hardcode_minus_L=yes
19139 esac
19142 beos*)
19143 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19144 allow_undefined_flag=unsupported
19145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19146 # support --undefined. This deserves some investigation. FIXME
19147 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19148 else
19149 ld_shlibs=no
19153 cygwin* | mingw* | pw32* | cegcc*)
19154 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19155 # as there is no search path for DLLs.
19156 hardcode_libdir_flag_spec='-L$libdir'
19157 export_dynamic_flag_spec='${wl}--export-all-symbols'
19158 allow_undefined_flag=unsupported
19159 always_export_symbols=no
19160 enable_shared_with_static_runtimes=yes
19161 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19163 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19165 # If the export-symbols file already is a .def file (1st line
19166 # is EXPORTS), use it as is; otherwise, prepend...
19167 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19168 cp $export_symbols $output_objdir/$soname.def;
19169 else
19170 echo EXPORTS > $output_objdir/$soname.def;
19171 cat $export_symbols >> $output_objdir/$soname.def;
19173 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19174 else
19175 ld_shlibs=no
19179 haiku*)
19180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19181 link_all_deplibs=yes
19184 interix[3-9]*)
19185 hardcode_direct=no
19186 hardcode_shlibpath_var=no
19187 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19188 export_dynamic_flag_spec='${wl}-E'
19189 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19190 # Instead, shared libraries are loaded at an image base (0x10000000 by
19191 # default) and relocated if they conflict, which is a slow very memory
19192 # consuming and fragmenting process. To avoid this, we pick a random,
19193 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19194 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19195 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19196 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'
19199 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
19200 tmp_diet=no
19201 if test "$host_os" = linux-dietlibc; then
19202 case $cc_basename in
19203 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19204 esac
19206 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19207 && test "$tmp_diet" = no
19208 then
19209 tmp_addflag=' $pic_flag'
19210 tmp_sharedflag='-shared'
19211 case $cc_basename,$host_cpu in
19212 pgcc*) # Portland Group C compiler
19213 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'
19214 tmp_addflag=' $pic_flag'
19216 pgf77* | pgf90* | pgf95* | pgfortran*)
19217 # Portland Group f77 and f90 compilers
19218 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'
19219 tmp_addflag=' $pic_flag -Mnomain' ;;
19220 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19221 tmp_addflag=' -i_dynamic' ;;
19222 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19223 tmp_addflag=' -i_dynamic -nofor_main' ;;
19224 ifc* | ifort*) # Intel Fortran compiler
19225 tmp_addflag=' -nofor_main' ;;
19226 lf95*) # Lahey Fortran 8.1
19227 whole_archive_flag_spec=
19228 tmp_sharedflag='--shared' ;;
19229 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19230 tmp_sharedflag='-qmkshrobj'
19231 tmp_addflag= ;;
19232 nvcc*) # Cuda Compiler Driver 2.2
19233 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'
19234 compiler_needs_object=yes
19236 esac
19237 case `$CC -V 2>&1 | sed 5q` in
19238 *Sun\ C*) # Sun C 5.9
19239 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'
19240 compiler_needs_object=yes
19241 tmp_sharedflag='-G' ;;
19242 *Sun\ F*) # Sun Fortran 8.3
19243 tmp_sharedflag='-G' ;;
19244 esac
19245 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19247 if test "x$supports_anon_versioning" = xyes; then
19248 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19250 echo "local: *; };" >> $output_objdir/$libname.ver~
19251 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19254 case $cc_basename in
19255 xlf* | bgf* | bgxlf* | mpixlf*)
19256 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19257 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19258 hardcode_libdir_flag_spec=
19259 hardcode_libdir_flag_spec_ld='-rpath $libdir'
19260 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19261 if test "x$supports_anon_versioning" = xyes; then
19262 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19264 echo "local: *; };" >> $output_objdir/$libname.ver~
19265 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19268 esac
19269 else
19270 ld_shlibs=no
19274 netbsd*)
19275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19276 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19277 wlarc=
19278 else
19279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19284 solaris*)
19285 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19286 ld_shlibs=no
19287 cat <<_LT_EOF 1>&2
19289 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19290 *** create shared libraries on Solaris systems. Therefore, libtool
19291 *** is disabling shared libraries support. We urge you to upgrade GNU
19292 *** binutils to release 2.9.1 or newer. Another option is to modify
19293 *** your PATH or compiler configuration so that the native linker is
19294 *** used, and then restart.
19296 _LT_EOF
19297 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19300 else
19301 ld_shlibs=no
19305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19306 case `$LD -v 2>&1` in
19307 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19308 ld_shlibs=no
19309 cat <<_LT_EOF 1>&2
19311 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19312 *** reliably create shared libraries on SCO systems. Therefore, libtool
19313 *** is disabling shared libraries support. We urge you to upgrade GNU
19314 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19315 *** your PATH or compiler configuration so that the native linker is
19316 *** used, and then restart.
19318 _LT_EOF
19321 # For security reasons, it is highly recommended that you always
19322 # use absolute paths for naming shared libraries, and exclude the
19323 # DT_RUNPATH tag from executables and libraries. But doing so
19324 # requires that you compile everything twice, which is a pain.
19325 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19329 else
19330 ld_shlibs=no
19333 esac
19336 sunos4*)
19337 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19338 wlarc=
19339 hardcode_direct=yes
19340 hardcode_shlibpath_var=no
19344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19347 else
19348 ld_shlibs=no
19351 esac
19353 if test "$ld_shlibs" = no; then
19354 runpath_var=
19355 hardcode_libdir_flag_spec=
19356 export_dynamic_flag_spec=
19357 whole_archive_flag_spec=
19359 else
19360 # PORTME fill in a description of your system's linker (not GNU ld)
19361 case $host_os in
19362 aix3*)
19363 allow_undefined_flag=unsupported
19364 always_export_symbols=yes
19365 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'
19366 # Note: this linker hardcodes the directories in LIBPATH if there
19367 # are no directories specified by -L.
19368 hardcode_minus_L=yes
19369 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19370 # Neither direct hardcoding nor static linking is supported with a
19371 # broken collect2.
19372 hardcode_direct=unsupported
19376 aix[4-9]*)
19377 if test "$host_cpu" = ia64; then
19378 # On IA64, the linker does run time linking by default, so we don't
19379 # have to do anything special.
19380 aix_use_runtimelinking=no
19381 exp_sym_flag='-Bexport'
19382 no_entry_flag=""
19383 else
19384 # If we're using GNU nm, then we don't want the "-C" option.
19385 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19386 # Also, AIX nm treats weak defined symbols like other global
19387 # defined symbols, whereas GNU nm marks them as "W".
19388 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19389 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'
19390 else
19391 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'
19393 aix_use_runtimelinking=no
19395 # Test if we are trying to use run time linking or normal
19396 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19397 # need to do runtime linking.
19398 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19399 for ld_flag in $LDFLAGS; do
19400 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19401 aix_use_runtimelinking=yes
19402 break
19404 done
19406 esac
19408 exp_sym_flag='-bexport'
19409 no_entry_flag='-bnoentry'
19412 # When large executables or shared objects are built, AIX ld can
19413 # have problems creating the table of contents. If linking a library
19414 # or program results in "error TOC overflow" add -mminimal-toc to
19415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19418 archive_cmds=''
19419 hardcode_direct=yes
19420 hardcode_direct_absolute=yes
19421 hardcode_libdir_separator=':'
19422 link_all_deplibs=yes
19423 file_list_spec='${wl}-f,'
19425 if test "$GCC" = yes; then
19426 case $host_os in aix4.[012]|aix4.[012].*)
19427 # We only want to do this on AIX 4.2 and lower, the check
19428 # below for broken collect2 doesn't work under 4.3+
19429 collect2name=`${CC} -print-prog-name=collect2`
19430 if test -f "$collect2name" &&
19431 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19432 then
19433 # We have reworked collect2
19435 else
19436 # We have old collect2
19437 hardcode_direct=unsupported
19438 # It fails to find uninstalled libraries when the uninstalled
19439 # path is not listed in the libpath. Setting hardcode_minus_L
19440 # to unsupported forces relinking
19441 hardcode_minus_L=yes
19442 hardcode_libdir_flag_spec='-L$libdir'
19443 hardcode_libdir_separator=
19446 esac
19447 shared_flag='-shared'
19448 if test "$aix_use_runtimelinking" = yes; then
19449 shared_flag="$shared_flag "'${wl}-G'
19451 else
19452 # not using gcc
19453 if test "$host_cpu" = ia64; then
19454 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19455 # chokes on -Wl,-G. The following line is correct:
19456 shared_flag='-G'
19457 else
19458 if test "$aix_use_runtimelinking" = yes; then
19459 shared_flag='${wl}-G'
19460 else
19461 shared_flag='${wl}-bM:SRE'
19466 export_dynamic_flag_spec='${wl}-bexpall'
19467 # It seems that -bexpall does not export symbols beginning with
19468 # underscore (_), so it is better to generate a list of symbols to export.
19469 always_export_symbols=yes
19470 if test "$aix_use_runtimelinking" = yes; then
19471 # Warning - without using the other runtime loading flags (-brtl),
19472 # -berok will link without error, but may produce a broken library.
19473 allow_undefined_flag='-berok'
19474 # Determine the default libpath from the value encoded in an
19475 # empty executable.
19476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19477 /* end confdefs.h. */
19480 main ()
19484 return 0;
19486 _ACEOF
19487 if ac_fn_c_try_link "$LINENO"; then :
19489 lt_aix_libpath_sed='
19490 /Import File Strings/,/^$/ {
19491 /^0/ {
19492 s/^0 *\(.*\)$/\1/
19496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19497 # Check for a 64-bit object if we didn't find anything.
19498 if test -z "$aix_libpath"; then
19499 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19502 rm -f core conftest.err conftest.$ac_objext \
19503 conftest$ac_exeext conftest.$ac_ext
19504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19507 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"
19508 else
19509 if test "$host_cpu" = ia64; then
19510 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19511 allow_undefined_flag="-z nodefs"
19512 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"
19513 else
19514 # Determine the default libpath from the value encoded in an
19515 # empty executable.
19516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h. */
19520 main ()
19524 return 0;
19526 _ACEOF
19527 if ac_fn_c_try_link "$LINENO"; then :
19529 lt_aix_libpath_sed='
19530 /Import File Strings/,/^$/ {
19531 /^0/ {
19532 s/^0 *\(.*\)$/\1/
19536 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19537 # Check for a 64-bit object if we didn't find anything.
19538 if test -z "$aix_libpath"; then
19539 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19542 rm -f core conftest.err conftest.$ac_objext \
19543 conftest$ac_exeext conftest.$ac_ext
19544 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19546 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19547 # Warning - without using the other run time loading flags,
19548 # -berok will link without error, but may produce a broken library.
19549 no_undefined_flag=' ${wl}-bernotok'
19550 allow_undefined_flag=' ${wl}-berok'
19551 if test "$with_gnu_ld" = yes; then
19552 # We only use this code for GNU lds that support --whole-archive.
19553 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19554 else
19555 # Exported symbols can be pulled into shared objects from archives
19556 whole_archive_flag_spec='$convenience'
19558 archive_cmds_need_lc=yes
19559 # This is similar to how AIX traditionally builds its shared libraries.
19560 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'
19565 amigaos*)
19566 case $host_cpu in
19567 powerpc)
19568 # see comment about AmigaOS4 .so support
19569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19570 archive_expsym_cmds=''
19572 m68k)
19573 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)'
19574 hardcode_libdir_flag_spec='-L$libdir'
19575 hardcode_minus_L=yes
19577 esac
19580 bsdi[45]*)
19581 export_dynamic_flag_spec=-rdynamic
19584 cygwin* | mingw* | pw32* | cegcc*)
19585 # When not using gcc, we currently assume that we are using
19586 # Microsoft Visual C++.
19587 # hardcode_libdir_flag_spec is actually meaningless, as there is
19588 # no search path for DLLs.
19589 hardcode_libdir_flag_spec=' '
19590 allow_undefined_flag=unsupported
19591 # Tell ltmain to make .lib files, not .a files.
19592 libext=lib
19593 # Tell ltmain to make .dll files, not .so files.
19594 shrext_cmds=".dll"
19595 # FIXME: Setting linknames here is a bad hack.
19596 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19597 # The linker will automatically build a .lib file if we build a DLL.
19598 old_archive_from_new_cmds='true'
19599 # FIXME: Should let the user specify the lib program.
19600 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19601 fix_srcfile_path='`cygpath -w "$srcfile"`'
19602 enable_shared_with_static_runtimes=yes
19605 darwin* | rhapsody*)
19609 # Publish an arg to allow the user to select that Darwin host (and target)
19610 # libraries should be given install-names like @rpath/libfoo.dylib. This
19611 # requires that the user of the library then adds an 'rpath' to the DSO that
19612 # needs access.
19613 # NOTE: there are defaults below, for systems that support rpaths. The person
19614 # configuring can override the defaults for any system version that supports
19615 # them - they are, however, forced off for system versions without support.
19616 # Check whether --enable-darwin-at-rpath was given.
19617 if test "${enable_darwin_at_rpath+set}" = set; then :
19618 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19619 # This is not supported before macOS 10.5 / Darwin9.
19620 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19621 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19623 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19624 enable_darwin_at_rpath=no
19626 esac
19628 else
19629 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19630 # As above, before 10.5 / Darwin9 this does not work.
19631 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19632 enable_darwin_at_rpath=no
19635 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19636 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19637 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19638 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19640 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19641 enable_darwin_at_rpath=yes
19643 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19644 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19646 esac
19651 archive_cmds_need_lc=no
19652 hardcode_direct=no
19653 hardcode_automatic=yes
19654 hardcode_shlibpath_var=unsupported
19655 if test "$lt_cv_ld_force_load" = "yes"; then
19656 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\"`'
19657 else
19658 whole_archive_flag_spec=''
19660 link_all_deplibs=yes
19661 allow_undefined_flag="$_lt_dar_allow_undefined"
19662 case $cc_basename in
19663 ifort*) _lt_dar_can_shared=yes ;;
19664 *) _lt_dar_can_shared=$GCC ;;
19665 esac
19666 if test "$_lt_dar_can_shared" = "yes"; then
19667 output_verbose_link_cmd=func_echo_all
19668 _lt_install_name='\$rpath/\$soname'
19669 if test "x$enable_darwin_at_rpath" = "xyes"; then
19670 _lt_install_name='@rpath/\$soname'
19672 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19673 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19674 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
19675 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}"
19677 else
19678 ld_shlibs=no
19683 dgux*)
19684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19685 hardcode_libdir_flag_spec='-L$libdir'
19686 hardcode_shlibpath_var=no
19689 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19690 # support. Future versions do this automatically, but an explicit c++rt0.o
19691 # does not break anything, and helps significantly (at the cost of a little
19692 # extra space).
19693 freebsd2.2*)
19694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19695 hardcode_libdir_flag_spec='-R$libdir'
19696 hardcode_direct=yes
19697 hardcode_shlibpath_var=no
19700 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19701 freebsd2.*)
19702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19703 hardcode_direct=yes
19704 hardcode_minus_L=yes
19705 hardcode_shlibpath_var=no
19708 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19709 freebsd* | dragonfly*)
19710 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19711 hardcode_libdir_flag_spec='-R$libdir'
19712 hardcode_direct=yes
19713 hardcode_shlibpath_var=no
19716 hpux9*)
19717 if test "$GCC" = yes; then
19718 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'
19719 else
19720 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'
19722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19723 hardcode_libdir_separator=:
19724 hardcode_direct=yes
19726 # hardcode_minus_L: Not really in the search PATH,
19727 # but as the default location of the library.
19728 hardcode_minus_L=yes
19729 export_dynamic_flag_spec='${wl}-E'
19732 hpux10*)
19733 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19735 else
19736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19738 if test "$with_gnu_ld" = no; then
19739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19740 hardcode_libdir_flag_spec_ld='+b $libdir'
19741 hardcode_libdir_separator=:
19742 hardcode_direct=yes
19743 hardcode_direct_absolute=yes
19744 export_dynamic_flag_spec='${wl}-E'
19745 # hardcode_minus_L: Not really in the search PATH,
19746 # but as the default location of the library.
19747 hardcode_minus_L=yes
19751 hpux11*)
19752 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19753 case $host_cpu in
19754 hppa*64*)
19755 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19757 ia64*)
19758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19763 esac
19764 else
19765 case $host_cpu in
19766 hppa*64*)
19767 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19769 ia64*)
19770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19774 # Older versions of the 11.00 compiler do not understand -b yet
19775 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19777 $as_echo_n "checking if $CC understands -b... " >&6; }
19778 if ${lt_cv_prog_compiler__b+:} false; then :
19779 $as_echo_n "(cached) " >&6
19780 else
19781 lt_cv_prog_compiler__b=no
19782 save_LDFLAGS="$LDFLAGS"
19783 LDFLAGS="$LDFLAGS -b"
19784 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19786 # The linker can only warn and ignore the option if not recognized
19787 # So say no if there are warnings
19788 if test -s conftest.err; then
19789 # Append any errors to the config.log.
19790 cat conftest.err 1>&5
19791 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19793 if diff conftest.exp conftest.er2 >/dev/null; then
19794 lt_cv_prog_compiler__b=yes
19796 else
19797 lt_cv_prog_compiler__b=yes
19800 $RM -r conftest*
19801 LDFLAGS="$save_LDFLAGS"
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19805 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19807 if test x"$lt_cv_prog_compiler__b" = xyes; then
19808 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19809 else
19810 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19814 esac
19816 if test "$with_gnu_ld" = no; then
19817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19818 hardcode_libdir_separator=:
19820 case $host_cpu in
19821 hppa*64*|ia64*)
19822 hardcode_direct=no
19823 hardcode_shlibpath_var=no
19826 hardcode_direct=yes
19827 hardcode_direct_absolute=yes
19828 export_dynamic_flag_spec='${wl}-E'
19830 # hardcode_minus_L: Not really in the search PATH,
19831 # but as the default location of the library.
19832 hardcode_minus_L=yes
19834 esac
19838 irix5* | irix6* | nonstopux*)
19839 if test "$GCC" = yes; then
19840 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'
19841 # Try to use the -exported_symbol ld option, if it does not
19842 # work, assume that -exports_file does not work either and
19843 # implicitly export all symbols.
19844 save_LDFLAGS="$LDFLAGS"
19845 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847 /* end confdefs.h. */
19848 int foo(void) {}
19849 _ACEOF
19850 if ac_fn_c_try_link "$LINENO"; then :
19851 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'
19854 rm -f core conftest.err conftest.$ac_objext \
19855 conftest$ac_exeext conftest.$ac_ext
19856 LDFLAGS="$save_LDFLAGS"
19857 else
19858 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'
19859 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'
19861 archive_cmds_need_lc='no'
19862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19863 hardcode_libdir_separator=:
19864 inherit_rpath=yes
19865 link_all_deplibs=yes
19868 netbsd*)
19869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19871 else
19872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19874 hardcode_libdir_flag_spec='-R$libdir'
19875 hardcode_direct=yes
19876 hardcode_shlibpath_var=no
19879 newsos6)
19880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19881 hardcode_direct=yes
19882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19883 hardcode_libdir_separator=:
19884 hardcode_shlibpath_var=no
19887 *nto* | *qnx*)
19890 openbsd*)
19891 if test -f /usr/libexec/ld.so; then
19892 hardcode_direct=yes
19893 hardcode_shlibpath_var=no
19894 hardcode_direct_absolute=yes
19895 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19896 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19897 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19899 export_dynamic_flag_spec='${wl}-E'
19900 else
19901 case $host_os in
19902 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19904 hardcode_libdir_flag_spec='-R$libdir'
19907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19908 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19910 esac
19912 else
19913 ld_shlibs=no
19917 os2*)
19918 hardcode_libdir_flag_spec='-L$libdir'
19919 hardcode_minus_L=yes
19920 allow_undefined_flag=unsupported
19921 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'
19922 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19925 osf3*)
19926 if test "$GCC" = yes; then
19927 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19928 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'
19929 else
19930 allow_undefined_flag=' -expect_unresolved \*'
19931 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'
19933 archive_cmds_need_lc='no'
19934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19935 hardcode_libdir_separator=:
19938 osf4* | osf5*) # as osf3* with the addition of -msym flag
19939 if test "$GCC" = yes; then
19940 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19941 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'
19942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19943 else
19944 allow_undefined_flag=' -expect_unresolved \*'
19945 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'
19946 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~
19947 $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'
19949 # Both c and cxx compiler support -rpath directly
19950 hardcode_libdir_flag_spec='-rpath $libdir'
19952 archive_cmds_need_lc='no'
19953 hardcode_libdir_separator=:
19956 solaris*)
19957 no_undefined_flag=' -z defs'
19958 if test "$GCC" = yes; then
19959 wlarc='${wl}'
19960 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19961 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19962 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19963 else
19964 case `$CC -V 2>&1` in
19965 *"Compilers 5.0"*)
19966 wlarc=''
19967 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19968 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19969 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19972 wlarc='${wl}'
19973 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19974 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19975 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19977 esac
19979 hardcode_libdir_flag_spec='-R$libdir'
19980 hardcode_shlibpath_var=no
19981 case $host_os in
19982 solaris2.[0-5] | solaris2.[0-5].*) ;;
19984 # The compiler driver will combine and reorder linker options,
19985 # but understands `-z linker_flag'. GCC discards it without `$wl',
19986 # but is careful enough not to reorder.
19987 # Supported since Solaris 2.6 (maybe 2.5.1?)
19988 if test "$GCC" = yes; then
19989 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19990 else
19991 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19994 esac
19995 link_all_deplibs=yes
19998 sunos4*)
19999 if test "x$host_vendor" = xsequent; then
20000 # Use $CC to link under sequent, because it throws in some extra .o
20001 # files that make .init and .fini sections work.
20002 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20003 else
20004 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20006 hardcode_libdir_flag_spec='-L$libdir'
20007 hardcode_direct=yes
20008 hardcode_minus_L=yes
20009 hardcode_shlibpath_var=no
20012 sysv4)
20013 case $host_vendor in
20014 sni)
20015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20016 hardcode_direct=yes # is this really true???
20018 siemens)
20019 ## LD is ld it makes a PLAMLIB
20020 ## CC just makes a GrossModule.
20021 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20022 reload_cmds='$CC -r -o $output$reload_objs'
20023 hardcode_direct=no
20025 motorola)
20026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20027 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20029 esac
20030 runpath_var='LD_RUN_PATH'
20031 hardcode_shlibpath_var=no
20034 sysv4.3*)
20035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20036 hardcode_shlibpath_var=no
20037 export_dynamic_flag_spec='-Bexport'
20040 sysv4*MP*)
20041 if test -d /usr/nec; then
20042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20043 hardcode_shlibpath_var=no
20044 runpath_var=LD_RUN_PATH
20045 hardcode_runpath_var=yes
20046 ld_shlibs=yes
20050 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20051 no_undefined_flag='${wl}-z,text'
20052 archive_cmds_need_lc=no
20053 hardcode_shlibpath_var=no
20054 runpath_var='LD_RUN_PATH'
20056 if test "$GCC" = yes; then
20057 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20058 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20059 else
20060 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20061 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20065 sysv5* | sco3.2v5* | sco5v6*)
20066 # Note: We can NOT use -z defs as we might desire, because we do not
20067 # link with -lc, and that would cause any symbols used from libc to
20068 # always be unresolved, which means just about no library would
20069 # ever link correctly. If we're not using GNU ld we use -z text
20070 # though, which does catch some bad symbols but isn't as heavy-handed
20071 # as -z defs.
20072 no_undefined_flag='${wl}-z,text'
20073 allow_undefined_flag='${wl}-z,nodefs'
20074 archive_cmds_need_lc=no
20075 hardcode_shlibpath_var=no
20076 hardcode_libdir_flag_spec='${wl}-R,$libdir'
20077 hardcode_libdir_separator=':'
20078 link_all_deplibs=yes
20079 export_dynamic_flag_spec='${wl}-Bexport'
20080 runpath_var='LD_RUN_PATH'
20082 if test "$GCC" = yes; then
20083 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20084 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20085 else
20086 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20087 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20091 uts4*)
20092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20093 hardcode_libdir_flag_spec='-L$libdir'
20094 hardcode_shlibpath_var=no
20098 ld_shlibs=no
20100 esac
20102 if test x$host_vendor = xsni; then
20103 case $host in
20104 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20105 export_dynamic_flag_spec='${wl}-Blargedynsym'
20107 esac
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20112 $as_echo "$ld_shlibs" >&6; }
20113 test "$ld_shlibs" = no && can_build_shared=no
20115 with_gnu_ld=$with_gnu_ld
20132 # Do we need to explicitly link libc?
20134 case "x$archive_cmds_need_lc" in
20135 x|xyes)
20136 # Assume -lc should be added
20137 archive_cmds_need_lc=yes
20139 if test "$enable_shared" = yes && test "$GCC" = yes; then
20140 case $archive_cmds in
20141 *'~'*)
20142 # FIXME: we may have to deal with multi-command sequences.
20144 '$CC '*)
20145 # Test whether the compiler implicitly links with -lc since on some
20146 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20147 # to ld, don't add -lc before -lgcc.
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20149 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20150 if ${lt_cv_archive_cmds_need_lc+:} false; then :
20151 $as_echo_n "(cached) " >&6
20152 else
20153 $RM conftest*
20154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20157 (eval $ac_compile) 2>&5
20158 ac_status=$?
20159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20160 test $ac_status = 0; } 2>conftest.err; then
20161 soname=conftest
20162 lib=conftest
20163 libobjs=conftest.$ac_objext
20164 deplibs=
20165 wl=$lt_prog_compiler_wl
20166 pic_flag=$lt_prog_compiler_pic
20167 compiler_flags=-v
20168 linker_flags=-v
20169 verstring=
20170 output_objdir=.
20171 libname=conftest
20172 lt_save_allow_undefined_flag=$allow_undefined_flag
20173 allow_undefined_flag=
20174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20175 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20176 ac_status=$?
20177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20178 test $ac_status = 0; }
20179 then
20180 lt_cv_archive_cmds_need_lc=no
20181 else
20182 lt_cv_archive_cmds_need_lc=yes
20184 allow_undefined_flag=$lt_save_allow_undefined_flag
20185 else
20186 cat conftest.err 1>&5
20188 $RM conftest*
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20192 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20193 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20195 esac
20198 esac
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20357 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20359 if test "$GCC" = yes; then
20360 case $host_os in
20361 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20362 *) lt_awk_arg="/^libraries:/" ;;
20363 esac
20364 case $host_os in
20365 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
20366 *) lt_sed_strip_eq="s,=/,/,g" ;;
20367 esac
20368 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20369 case $lt_search_path_spec in
20370 *\;*)
20371 # if the path contains ";" then we assume it to be the separator
20372 # otherwise default to the standard path separator (i.e. ":") - it is
20373 # assumed that no part of a normal pathname contains ";" but that should
20374 # okay in the real world where ";" in dirpaths is itself problematic.
20375 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20378 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20380 esac
20381 # Ok, now we have the path, separated by spaces, we can step through it
20382 # and add multilib dir if necessary.
20383 lt_tmp_lt_search_path_spec=
20384 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20385 for lt_sys_path in $lt_search_path_spec; do
20386 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20387 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20388 else
20389 test -d "$lt_sys_path" && \
20390 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20392 done
20393 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20394 BEGIN {RS=" "; FS="/|\n";} {
20395 lt_foo="";
20396 lt_count=0;
20397 for (lt_i = NF; lt_i > 0; lt_i--) {
20398 if ($lt_i != "" && $lt_i != ".") {
20399 if ($lt_i == "..") {
20400 lt_count++;
20401 } else {
20402 if (lt_count == 0) {
20403 lt_foo="/" $lt_i lt_foo;
20404 } else {
20405 lt_count--;
20410 if (lt_foo != "") { lt_freq[lt_foo]++; }
20411 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20413 # AWK program above erroneously prepends '/' to C:/dos/paths
20414 # for these hosts.
20415 case $host_os in
20416 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20417 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20418 esac
20419 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20420 else
20421 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20423 library_names_spec=
20424 libname_spec='lib$name'
20425 soname_spec=
20426 shrext_cmds=".so"
20427 postinstall_cmds=
20428 postuninstall_cmds=
20429 finish_cmds=
20430 finish_eval=
20431 shlibpath_var=
20432 shlibpath_overrides_runpath=unknown
20433 version_type=none
20434 dynamic_linker="$host_os ld.so"
20435 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20436 need_lib_prefix=unknown
20437 hardcode_into_libs=no
20439 # when you set need_version to no, make sure it does not cause -set_version
20440 # flags to be left without arguments
20441 need_version=unknown
20443 case $host_os in
20444 aix3*)
20445 version_type=linux
20446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20447 shlibpath_var=LIBPATH
20449 # AIX 3 has no versioning support, so we append a major version to the name.
20450 soname_spec='${libname}${release}${shared_ext}$major'
20453 aix[4-9]*)
20454 version_type=linux
20455 need_lib_prefix=no
20456 need_version=no
20457 hardcode_into_libs=yes
20458 if test "$host_cpu" = ia64; then
20459 # AIX 5 supports IA64
20460 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20461 shlibpath_var=LD_LIBRARY_PATH
20462 else
20463 # With GCC up to 2.95.x, collect2 would create an import file
20464 # for dependence libraries. The import file would start with
20465 # the line `#! .'. This would cause the generated library to
20466 # depend on `.', always an invalid library. This was fixed in
20467 # development snapshots of GCC prior to 3.0.
20468 case $host_os in
20469 aix4 | aix4.[01] | aix4.[01].*)
20470 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20471 echo ' yes '
20472 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20474 else
20475 can_build_shared=no
20478 esac
20479 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20480 # soname into executable. Probably we can add versioning support to
20481 # collect2, so additional links can be useful in future.
20482 if test "$aix_use_runtimelinking" = yes; then
20483 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20484 # instead of lib<name>.a to let people know that these are not
20485 # typical AIX shared libraries.
20486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487 else
20488 # We preserve .a as extension for shared libraries through AIX4.2
20489 # and later when we are not doing run time linking.
20490 library_names_spec='${libname}${release}.a $libname.a'
20491 soname_spec='${libname}${release}${shared_ext}$major'
20493 shlibpath_var=LIBPATH
20497 amigaos*)
20498 case $host_cpu in
20499 powerpc)
20500 # Since July 2007 AmigaOS4 officially supports .so libraries.
20501 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20504 m68k)
20505 library_names_spec='$libname.ixlibrary $libname.a'
20506 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20507 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'
20509 esac
20512 beos*)
20513 library_names_spec='${libname}${shared_ext}'
20514 dynamic_linker="$host_os ld.so"
20515 shlibpath_var=LIBRARY_PATH
20518 bsdi[45]*)
20519 version_type=linux
20520 need_version=no
20521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20522 soname_spec='${libname}${release}${shared_ext}$major'
20523 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20524 shlibpath_var=LD_LIBRARY_PATH
20525 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20526 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20527 # the default ld.so.conf also contains /usr/contrib/lib and
20528 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20529 # libtool to hard-code these into programs
20532 cygwin* | mingw* | pw32* | cegcc*)
20533 version_type=windows
20534 shrext_cmds=".dll"
20535 need_version=no
20536 need_lib_prefix=no
20538 case $GCC,$host_os in
20539 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20540 library_names_spec='$libname.dll.a'
20541 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20542 postinstall_cmds='base_file=`basename \${file}`~
20543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20544 dldir=$destdir/`dirname \$dlpath`~
20545 test -d \$dldir || mkdir -p \$dldir~
20546 $install_prog $dir/$dlname \$dldir/$dlname~
20547 chmod a+x \$dldir/$dlname~
20548 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20549 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20551 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20552 dlpath=$dir/\$dldll~
20553 $RM \$dlpath'
20554 shlibpath_overrides_runpath=yes
20556 case $host_os in
20557 cygwin*)
20558 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20559 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20563 mingw* | cegcc*)
20564 # MinGW DLLs use traditional 'lib' prefix
20565 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20567 pw32*)
20568 # pw32 DLLs use 'pw' prefix rather than 'lib'
20569 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20571 esac
20575 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20577 esac
20578 dynamic_linker='Win32 ld.exe'
20579 # FIXME: first we should search . and the directory the executable is in
20580 shlibpath_var=PATH
20583 darwin* | rhapsody*)
20584 dynamic_linker="$host_os dyld"
20585 version_type=darwin
20586 need_lib_prefix=no
20587 need_version=no
20588 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20589 soname_spec='${libname}${release}${major}$shared_ext'
20590 shlibpath_overrides_runpath=yes
20591 shlibpath_var=DYLD_LIBRARY_PATH
20592 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20594 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20595 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20598 dgux*)
20599 version_type=linux
20600 need_lib_prefix=no
20601 need_version=no
20602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20603 soname_spec='${libname}${release}${shared_ext}$major'
20604 shlibpath_var=LD_LIBRARY_PATH
20607 freebsd* | dragonfly*)
20608 # DragonFly does not have aout. When/if they implement a new
20609 # versioning mechanism, adjust this.
20610 if test -x /usr/bin/objformat; then
20611 objformat=`/usr/bin/objformat`
20612 else
20613 case $host_os in
20614 freebsd[23].*) objformat=aout ;;
20615 *) objformat=elf ;;
20616 esac
20618 version_type=freebsd-$objformat
20619 case $version_type in
20620 freebsd-elf*)
20621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20622 need_version=no
20623 need_lib_prefix=no
20625 freebsd-*)
20626 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20627 need_version=yes
20629 esac
20630 shlibpath_var=LD_LIBRARY_PATH
20631 case $host_os in
20632 freebsd2.*)
20633 shlibpath_overrides_runpath=yes
20635 freebsd3.[01]* | freebsdelf3.[01]*)
20636 shlibpath_overrides_runpath=yes
20637 hardcode_into_libs=yes
20639 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20640 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20641 shlibpath_overrides_runpath=no
20642 hardcode_into_libs=yes
20644 *) # from 4.6 on, and DragonFly
20645 shlibpath_overrides_runpath=yes
20646 hardcode_into_libs=yes
20648 esac
20651 haiku*)
20652 version_type=linux
20653 need_lib_prefix=no
20654 need_version=no
20655 dynamic_linker="$host_os runtime_loader"
20656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20657 soname_spec='${libname}${release}${shared_ext}$major'
20658 shlibpath_var=LIBRARY_PATH
20659 shlibpath_overrides_runpath=yes
20660 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20661 hardcode_into_libs=yes
20664 hpux9* | hpux10* | hpux11*)
20665 # Give a soname corresponding to the major version so that dld.sl refuses to
20666 # link against other versions.
20667 version_type=sunos
20668 need_lib_prefix=no
20669 need_version=no
20670 case $host_cpu in
20671 ia64*)
20672 shrext_cmds='.so'
20673 hardcode_into_libs=yes
20674 dynamic_linker="$host_os dld.so"
20675 shlibpath_var=LD_LIBRARY_PATH
20676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20678 soname_spec='${libname}${release}${shared_ext}$major'
20679 if test "X$HPUX_IA64_MODE" = X32; then
20680 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20681 else
20682 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20686 hppa*64*)
20687 shrext_cmds='.sl'
20688 hardcode_into_libs=yes
20689 dynamic_linker="$host_os dld.sl"
20690 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693 soname_spec='${libname}${release}${shared_ext}$major'
20694 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20698 shrext_cmds='.sl'
20699 dynamic_linker="$host_os dld.sl"
20700 shlibpath_var=SHLIB_PATH
20701 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20703 soname_spec='${libname}${release}${shared_ext}$major'
20705 esac
20706 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20707 postinstall_cmds='chmod 555 $lib'
20708 # or fails outright, so override atomically:
20709 install_override_mode=555
20712 interix[3-9]*)
20713 version_type=linux
20714 need_lib_prefix=no
20715 need_version=no
20716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20717 soname_spec='${libname}${release}${shared_ext}$major'
20718 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20719 shlibpath_var=LD_LIBRARY_PATH
20720 shlibpath_overrides_runpath=no
20721 hardcode_into_libs=yes
20724 irix5* | irix6* | nonstopux*)
20725 case $host_os in
20726 nonstopux*) version_type=nonstopux ;;
20728 if test "$lt_cv_prog_gnu_ld" = yes; then
20729 version_type=linux
20730 else
20731 version_type=irix
20732 fi ;;
20733 esac
20734 need_lib_prefix=no
20735 need_version=no
20736 soname_spec='${libname}${release}${shared_ext}$major'
20737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20738 case $host_os in
20739 irix5* | nonstopux*)
20740 libsuff= shlibsuff=
20743 case $LD in # libtool.m4 will add one of these switches to LD
20744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20745 libsuff= shlibsuff= libmagic=32-bit;;
20746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20747 libsuff=32 shlibsuff=N32 libmagic=N32;;
20748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20749 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20750 *) libsuff= shlibsuff= libmagic=never-match;;
20751 esac
20753 esac
20754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20755 shlibpath_overrides_runpath=no
20756 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20757 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20758 hardcode_into_libs=yes
20761 # No shared lib support for Linux oldld, aout, or coff.
20762 linux*oldld* | linux*aout* | linux*coff*)
20763 dynamic_linker=no
20766 # This must be Linux ELF.
20768 # uclinux* changes (here and below) have been submitted to the libtool
20769 # project, but have not yet been accepted: they are GCC-local changes
20770 # for the time being. (See
20771 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20772 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
20773 version_type=linux
20774 need_lib_prefix=no
20775 need_version=no
20776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20777 soname_spec='${libname}${release}${shared_ext}$major'
20778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20779 shlibpath_var=LD_LIBRARY_PATH
20780 shlibpath_overrides_runpath=no
20782 # Some binutils ld are patched to set DT_RUNPATH
20783 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20784 $as_echo_n "(cached) " >&6
20785 else
20786 lt_cv_shlibpath_overrides_runpath=no
20787 save_LDFLAGS=$LDFLAGS
20788 save_libdir=$libdir
20789 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20790 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h. */
20795 main ()
20799 return 0;
20801 _ACEOF
20802 if ac_fn_c_try_link "$LINENO"; then :
20803 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20804 lt_cv_shlibpath_overrides_runpath=yes
20807 rm -f core conftest.err conftest.$ac_objext \
20808 conftest$ac_exeext conftest.$ac_ext
20809 LDFLAGS=$save_LDFLAGS
20810 libdir=$save_libdir
20814 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20816 # This implies no fast_install, which is unacceptable.
20817 # Some rework will be needed to allow for fast_install
20818 # before this can be enabled.
20819 hardcode_into_libs=yes
20821 # Append ld.so.conf contents to the search path
20822 if test -f /etc/ld.so.conf; then
20823 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' ' '`
20824 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20827 # We used to test for /lib/ld.so.1 and disable shared libraries on
20828 # powerpc, because MkLinux only supported shared libraries with the
20829 # GNU dynamic linker. Since this was broken with cross compilers,
20830 # most powerpc-linux boxes support dynamic linking these days and
20831 # people can always --disable-shared, the test was removed, and we
20832 # assume the GNU/Linux dynamic linker is in use.
20833 dynamic_linker='GNU/Linux ld.so'
20836 netbsd*)
20837 version_type=sunos
20838 need_lib_prefix=no
20839 need_version=no
20840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20843 dynamic_linker='NetBSD (a.out) ld.so'
20844 else
20845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20846 soname_spec='${libname}${release}${shared_ext}$major'
20847 dynamic_linker='NetBSD ld.elf_so'
20849 shlibpath_var=LD_LIBRARY_PATH
20850 shlibpath_overrides_runpath=yes
20851 hardcode_into_libs=yes
20854 newsos6)
20855 version_type=linux
20856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20857 shlibpath_var=LD_LIBRARY_PATH
20858 shlibpath_overrides_runpath=yes
20861 *nto* | *qnx*)
20862 version_type=qnx
20863 need_lib_prefix=no
20864 need_version=no
20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20866 soname_spec='${libname}${release}${shared_ext}$major'
20867 shlibpath_var=LD_LIBRARY_PATH
20868 shlibpath_overrides_runpath=no
20869 hardcode_into_libs=yes
20870 dynamic_linker='ldqnx.so'
20873 openbsd*)
20874 version_type=sunos
20875 sys_lib_dlsearch_path_spec="/usr/lib"
20876 need_lib_prefix=no
20877 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20878 case $host_os in
20879 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20880 *) need_version=no ;;
20881 esac
20882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20884 shlibpath_var=LD_LIBRARY_PATH
20885 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20886 case $host_os in
20887 openbsd2.[89] | openbsd2.[89].*)
20888 shlibpath_overrides_runpath=no
20891 shlibpath_overrides_runpath=yes
20893 esac
20894 else
20895 shlibpath_overrides_runpath=yes
20899 os2*)
20900 libname_spec='$name'
20901 shrext_cmds=".dll"
20902 need_lib_prefix=no
20903 library_names_spec='$libname${shared_ext} $libname.a'
20904 dynamic_linker='OS/2 ld.exe'
20905 shlibpath_var=LIBPATH
20908 osf3* | osf4* | osf5*)
20909 version_type=osf
20910 need_lib_prefix=no
20911 need_version=no
20912 soname_spec='${libname}${release}${shared_ext}$major'
20913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20914 shlibpath_var=LD_LIBRARY_PATH
20915 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20916 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20919 rdos*)
20920 dynamic_linker=no
20923 solaris*)
20924 version_type=linux
20925 need_lib_prefix=no
20926 need_version=no
20927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20928 soname_spec='${libname}${release}${shared_ext}$major'
20929 shlibpath_var=LD_LIBRARY_PATH
20930 shlibpath_overrides_runpath=yes
20931 hardcode_into_libs=yes
20932 # ldd complains unless libraries are executable
20933 postinstall_cmds='chmod +x $lib'
20936 sunos4*)
20937 version_type=sunos
20938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20939 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20940 shlibpath_var=LD_LIBRARY_PATH
20941 shlibpath_overrides_runpath=yes
20942 if test "$with_gnu_ld" = yes; then
20943 need_lib_prefix=no
20945 need_version=yes
20948 sysv4 | sysv4.3*)
20949 version_type=linux
20950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20951 soname_spec='${libname}${release}${shared_ext}$major'
20952 shlibpath_var=LD_LIBRARY_PATH
20953 case $host_vendor in
20954 sni)
20955 shlibpath_overrides_runpath=no
20956 need_lib_prefix=no
20957 runpath_var=LD_RUN_PATH
20959 siemens)
20960 need_lib_prefix=no
20962 motorola)
20963 need_lib_prefix=no
20964 need_version=no
20965 shlibpath_overrides_runpath=no
20966 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20968 esac
20971 sysv4*MP*)
20972 if test -d /usr/nec ;then
20973 version_type=linux
20974 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20975 soname_spec='$libname${shared_ext}.$major'
20976 shlibpath_var=LD_LIBRARY_PATH
20980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20981 version_type=freebsd-elf
20982 need_lib_prefix=no
20983 need_version=no
20984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20985 soname_spec='${libname}${release}${shared_ext}$major'
20986 shlibpath_var=LD_LIBRARY_PATH
20987 shlibpath_overrides_runpath=yes
20988 hardcode_into_libs=yes
20989 if test "$with_gnu_ld" = yes; then
20990 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20991 else
20992 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20993 case $host_os in
20994 sco3.2v5*)
20995 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20997 esac
20999 sys_lib_dlsearch_path_spec='/usr/lib'
21002 tpf*)
21003 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21004 version_type=linux
21005 need_lib_prefix=no
21006 need_version=no
21007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21008 shlibpath_var=LD_LIBRARY_PATH
21009 shlibpath_overrides_runpath=no
21010 hardcode_into_libs=yes
21013 uts4*)
21014 version_type=linux
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21016 soname_spec='${libname}${release}${shared_ext}$major'
21017 shlibpath_var=LD_LIBRARY_PATH
21020 # Shared libraries for VwWorks, >= 7 only at this stage
21021 # and (fpic) still incompatible with "large" code models
21022 # in a few configurations. Only for RTP mode in any case,
21023 # and upon explicit request at configure time.
21024 vxworks7*)
21025 dynamic_linker=no
21026 case ${with_multisubdir}-${enable_shared} in
21027 *large*)
21029 *mrtp*-yes)
21030 version_type=linux
21031 need_lib_prefix=no
21032 need_version=no
21033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21034 soname_spec='${libname}${release}${shared_ext}$major'
21035 dynamic_linker="$host_os module_loader"
21037 esac
21040 dynamic_linker=no
21042 esac
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21044 $as_echo "$dynamic_linker" >&6; }
21045 test "$dynamic_linker" = no && can_build_shared=no
21047 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21048 if test "$GCC" = yes; then
21049 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21052 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21053 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21055 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21056 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21151 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21152 hardcode_action=
21153 if test -n "$hardcode_libdir_flag_spec" ||
21154 test -n "$runpath_var" ||
21155 test "X$hardcode_automatic" = "Xyes" ; then
21157 # We can hardcode non-existent directories.
21158 if test "$hardcode_direct" != no &&
21159 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21160 # have to relink, otherwise we might link with an installed library
21161 # when we should be linking with a yet-to-be-installed one
21162 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21163 test "$hardcode_minus_L" != no; then
21164 # Linking always hardcodes the temporary library directory.
21165 hardcode_action=relink
21166 else
21167 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21168 hardcode_action=immediate
21170 else
21171 # We cannot hardcode anything, or else we can only hardcode existing
21172 # directories.
21173 hardcode_action=unsupported
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21176 $as_echo "$hardcode_action" >&6; }
21178 if test "$hardcode_action" = relink ||
21179 test "$inherit_rpath" = yes; then
21180 # Fast installation is not supported
21181 enable_fast_install=no
21182 elif test "$shlibpath_overrides_runpath" = yes ||
21183 test "$enable_shared" = no; then
21184 # Fast installation is not necessary
21185 enable_fast_install=needless
21193 if test "x$enable_dlopen" != xyes; then
21194 enable_dlopen=unknown
21195 enable_dlopen_self=unknown
21196 enable_dlopen_self_static=unknown
21197 else
21198 lt_cv_dlopen=no
21199 lt_cv_dlopen_libs=
21201 case $host_os in
21202 beos*)
21203 lt_cv_dlopen="load_add_on"
21204 lt_cv_dlopen_libs=
21205 lt_cv_dlopen_self=yes
21208 mingw* | pw32* | cegcc*)
21209 lt_cv_dlopen="LoadLibrary"
21210 lt_cv_dlopen_libs=
21213 cygwin*)
21214 lt_cv_dlopen="dlopen"
21215 lt_cv_dlopen_libs=
21218 darwin*)
21219 # if libdl is installed we need to link against it
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21221 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21222 if ${ac_cv_lib_dl_dlopen+:} false; then :
21223 $as_echo_n "(cached) " >&6
21224 else
21225 ac_check_lib_save_LIBS=$LIBS
21226 LIBS="-ldl $LIBS"
21227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21228 /* end confdefs.h. */
21230 /* Override any GCC internal prototype to avoid an error.
21231 Use char because int might match the return type of a GCC
21232 builtin and then its argument prototype would still apply. */
21233 #ifdef __cplusplus
21234 extern "C"
21235 #endif
21236 char dlopen ();
21238 main ()
21240 return dlopen ();
21242 return 0;
21244 _ACEOF
21245 if ac_fn_c_try_link "$LINENO"; then :
21246 ac_cv_lib_dl_dlopen=yes
21247 else
21248 ac_cv_lib_dl_dlopen=no
21250 rm -f core conftest.err conftest.$ac_objext \
21251 conftest$ac_exeext conftest.$ac_ext
21252 LIBS=$ac_check_lib_save_LIBS
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21255 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21256 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21258 else
21260 lt_cv_dlopen="dyld"
21261 lt_cv_dlopen_libs=
21262 lt_cv_dlopen_self=yes
21269 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21270 if test "x$ac_cv_func_shl_load" = xyes; then :
21271 lt_cv_dlopen="shl_load"
21272 else
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21274 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21275 if ${ac_cv_lib_dld_shl_load+:} false; then :
21276 $as_echo_n "(cached) " >&6
21277 else
21278 ac_check_lib_save_LIBS=$LIBS
21279 LIBS="-ldld $LIBS"
21280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21281 /* end confdefs.h. */
21283 /* Override any GCC internal prototype to avoid an error.
21284 Use char because int might match the return type of a GCC
21285 builtin and then its argument prototype would still apply. */
21286 #ifdef __cplusplus
21287 extern "C"
21288 #endif
21289 char shl_load ();
21291 main ()
21293 return shl_load ();
21295 return 0;
21297 _ACEOF
21298 if ac_fn_c_try_link "$LINENO"; then :
21299 ac_cv_lib_dld_shl_load=yes
21300 else
21301 ac_cv_lib_dld_shl_load=no
21303 rm -f core conftest.err conftest.$ac_objext \
21304 conftest$ac_exeext conftest.$ac_ext
21305 LIBS=$ac_check_lib_save_LIBS
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21308 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21309 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
21310 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
21311 else
21312 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21313 if test "x$ac_cv_func_dlopen" = xyes; then :
21314 lt_cv_dlopen="dlopen"
21315 else
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21317 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21318 if ${ac_cv_lib_dl_dlopen+:} false; then :
21319 $as_echo_n "(cached) " >&6
21320 else
21321 ac_check_lib_save_LIBS=$LIBS
21322 LIBS="-ldl $LIBS"
21323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h. */
21326 /* Override any GCC internal prototype to avoid an error.
21327 Use char because int might match the return type of a GCC
21328 builtin and then its argument prototype would still apply. */
21329 #ifdef __cplusplus
21330 extern "C"
21331 #endif
21332 char dlopen ();
21334 main ()
21336 return dlopen ();
21338 return 0;
21340 _ACEOF
21341 if ac_fn_c_try_link "$LINENO"; then :
21342 ac_cv_lib_dl_dlopen=yes
21343 else
21344 ac_cv_lib_dl_dlopen=no
21346 rm -f core conftest.err conftest.$ac_objext \
21347 conftest$ac_exeext conftest.$ac_ext
21348 LIBS=$ac_check_lib_save_LIBS
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21351 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21352 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21354 else
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21356 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21357 if ${ac_cv_lib_svld_dlopen+:} false; then :
21358 $as_echo_n "(cached) " >&6
21359 else
21360 ac_check_lib_save_LIBS=$LIBS
21361 LIBS="-lsvld $LIBS"
21362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21363 /* end confdefs.h. */
21365 /* Override any GCC internal prototype to avoid an error.
21366 Use char because int might match the return type of a GCC
21367 builtin and then its argument prototype would still apply. */
21368 #ifdef __cplusplus
21369 extern "C"
21370 #endif
21371 char dlopen ();
21373 main ()
21375 return dlopen ();
21377 return 0;
21379 _ACEOF
21380 if ac_fn_c_try_link "$LINENO"; then :
21381 ac_cv_lib_svld_dlopen=yes
21382 else
21383 ac_cv_lib_svld_dlopen=no
21385 rm -f core conftest.err conftest.$ac_objext \
21386 conftest$ac_exeext conftest.$ac_ext
21387 LIBS=$ac_check_lib_save_LIBS
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21390 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21391 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
21392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21393 else
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21395 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21396 if ${ac_cv_lib_dld_dld_link+:} false; then :
21397 $as_echo_n "(cached) " >&6
21398 else
21399 ac_check_lib_save_LIBS=$LIBS
21400 LIBS="-ldld $LIBS"
21401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21402 /* end confdefs.h. */
21404 /* Override any GCC internal prototype to avoid an error.
21405 Use char because int might match the return type of a GCC
21406 builtin and then its argument prototype would still apply. */
21407 #ifdef __cplusplus
21408 extern "C"
21409 #endif
21410 char dld_link ();
21412 main ()
21414 return dld_link ();
21416 return 0;
21418 _ACEOF
21419 if ac_fn_c_try_link "$LINENO"; then :
21420 ac_cv_lib_dld_dld_link=yes
21421 else
21422 ac_cv_lib_dld_dld_link=no
21424 rm -f core conftest.err conftest.$ac_objext \
21425 conftest$ac_exeext conftest.$ac_ext
21426 LIBS=$ac_check_lib_save_LIBS
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21429 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21430 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
21431 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21450 esac
21452 if test "x$lt_cv_dlopen" != xno; then
21453 enable_dlopen=yes
21454 else
21455 enable_dlopen=no
21458 case $lt_cv_dlopen in
21459 dlopen)
21460 save_CPPFLAGS="$CPPFLAGS"
21461 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21463 save_LDFLAGS="$LDFLAGS"
21464 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21466 save_LIBS="$LIBS"
21467 LIBS="$lt_cv_dlopen_libs $LIBS"
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21470 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21471 if ${lt_cv_dlopen_self+:} false; then :
21472 $as_echo_n "(cached) " >&6
21473 else
21474 if test "$cross_compiling" = yes; then :
21475 lt_cv_dlopen_self=cross
21476 else
21477 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21478 lt_status=$lt_dlunknown
21479 cat > conftest.$ac_ext <<_LT_EOF
21480 #line 21480 "configure"
21481 #include "confdefs.h"
21483 #if HAVE_DLFCN_H
21484 #include <dlfcn.h>
21485 #endif
21487 #include <stdio.h>
21489 #ifdef RTLD_GLOBAL
21490 # define LT_DLGLOBAL RTLD_GLOBAL
21491 #else
21492 # ifdef DL_GLOBAL
21493 # define LT_DLGLOBAL DL_GLOBAL
21494 # else
21495 # define LT_DLGLOBAL 0
21496 # endif
21497 #endif
21499 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21500 find out it does not work in some platform. */
21501 #ifndef LT_DLLAZY_OR_NOW
21502 # ifdef RTLD_LAZY
21503 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21504 # else
21505 # ifdef DL_LAZY
21506 # define LT_DLLAZY_OR_NOW DL_LAZY
21507 # else
21508 # ifdef RTLD_NOW
21509 # define LT_DLLAZY_OR_NOW RTLD_NOW
21510 # else
21511 # ifdef DL_NOW
21512 # define LT_DLLAZY_OR_NOW DL_NOW
21513 # else
21514 # define LT_DLLAZY_OR_NOW 0
21515 # endif
21516 # endif
21517 # endif
21518 # endif
21519 #endif
21521 /* When -fvisbility=hidden is used, assume the code has been annotated
21522 correspondingly for the symbols needed. */
21523 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21524 void fnord () __attribute__((visibility("default")));
21525 #endif
21527 void fnord () { int i=42; }
21528 int main ()
21530 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21531 int status = $lt_dlunknown;
21533 if (self)
21535 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21536 else
21538 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21539 else puts (dlerror ());
21541 /* dlclose (self); */
21543 else
21544 puts (dlerror ());
21546 return status;
21548 _LT_EOF
21549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21550 (eval $ac_link) 2>&5
21551 ac_status=$?
21552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21553 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21554 (./conftest; exit; ) >&5 2>/dev/null
21555 lt_status=$?
21556 case x$lt_status in
21557 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21558 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21559 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21560 esac
21561 else :
21562 # compilation failed
21563 lt_cv_dlopen_self=no
21566 rm -fr conftest*
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21571 $as_echo "$lt_cv_dlopen_self" >&6; }
21573 if test "x$lt_cv_dlopen_self" = xyes; then
21574 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21576 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21577 if ${lt_cv_dlopen_self_static+:} false; then :
21578 $as_echo_n "(cached) " >&6
21579 else
21580 if test "$cross_compiling" = yes; then :
21581 lt_cv_dlopen_self_static=cross
21582 else
21583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21584 lt_status=$lt_dlunknown
21585 cat > conftest.$ac_ext <<_LT_EOF
21586 #line 21586 "configure"
21587 #include "confdefs.h"
21589 #if HAVE_DLFCN_H
21590 #include <dlfcn.h>
21591 #endif
21593 #include <stdio.h>
21595 #ifdef RTLD_GLOBAL
21596 # define LT_DLGLOBAL RTLD_GLOBAL
21597 #else
21598 # ifdef DL_GLOBAL
21599 # define LT_DLGLOBAL DL_GLOBAL
21600 # else
21601 # define LT_DLGLOBAL 0
21602 # endif
21603 #endif
21605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21606 find out it does not work in some platform. */
21607 #ifndef LT_DLLAZY_OR_NOW
21608 # ifdef RTLD_LAZY
21609 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21610 # else
21611 # ifdef DL_LAZY
21612 # define LT_DLLAZY_OR_NOW DL_LAZY
21613 # else
21614 # ifdef RTLD_NOW
21615 # define LT_DLLAZY_OR_NOW RTLD_NOW
21616 # else
21617 # ifdef DL_NOW
21618 # define LT_DLLAZY_OR_NOW DL_NOW
21619 # else
21620 # define LT_DLLAZY_OR_NOW 0
21621 # endif
21622 # endif
21623 # endif
21624 # endif
21625 #endif
21627 /* When -fvisbility=hidden is used, assume the code has been annotated
21628 correspondingly for the symbols needed. */
21629 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21630 void fnord () __attribute__((visibility("default")));
21631 #endif
21633 void fnord () { int i=42; }
21634 int main ()
21636 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21637 int status = $lt_dlunknown;
21639 if (self)
21641 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21642 else
21644 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21645 else puts (dlerror ());
21647 /* dlclose (self); */
21649 else
21650 puts (dlerror ());
21652 return status;
21654 _LT_EOF
21655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21656 (eval $ac_link) 2>&5
21657 ac_status=$?
21658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21659 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21660 (./conftest; exit; ) >&5 2>/dev/null
21661 lt_status=$?
21662 case x$lt_status in
21663 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21664 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21665 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21666 esac
21667 else :
21668 # compilation failed
21669 lt_cv_dlopen_self_static=no
21672 rm -fr conftest*
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21677 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21680 CPPFLAGS="$save_CPPFLAGS"
21681 LDFLAGS="$save_LDFLAGS"
21682 LIBS="$save_LIBS"
21684 esac
21686 case $lt_cv_dlopen_self in
21687 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21688 *) enable_dlopen_self=unknown ;;
21689 esac
21691 case $lt_cv_dlopen_self_static in
21692 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21693 *) enable_dlopen_self_static=unknown ;;
21694 esac
21713 striplib=
21714 old_striplib=
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21716 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21717 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21718 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21719 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21721 $as_echo "yes" >&6; }
21722 else
21723 # FIXME - insert some real tests, host_os isn't really good enough
21724 case $host_os in
21725 darwin*)
21726 if test -n "$STRIP" ; then
21727 striplib="$STRIP -x"
21728 old_striplib="$STRIP -S"
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21730 $as_echo "yes" >&6; }
21731 else
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21733 $as_echo "no" >&6; }
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21738 $as_echo "no" >&6; }
21740 esac
21754 # Report which library types will actually be built
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21756 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21758 $as_echo "$can_build_shared" >&6; }
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21761 $as_echo_n "checking whether to build shared libraries... " >&6; }
21762 test "$can_build_shared" = "no" && enable_shared=no
21764 # On AIX, shared libraries and static libraries use the same namespace, and
21765 # are all built from PIC.
21766 case $host_os in
21767 aix3*)
21768 test "$enable_shared" = yes && enable_static=no
21769 if test -n "$RANLIB"; then
21770 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21771 postinstall_cmds='$RANLIB $lib'
21775 aix[4-9]*)
21776 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21777 test "$enable_shared" = yes && enable_static=no
21780 esac
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21782 $as_echo "$enable_shared" >&6; }
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21785 $as_echo_n "checking whether to build static libraries... " >&6; }
21786 # Make sure either enable_shared or enable_static is yes.
21787 test "$enable_shared" = yes || enable_static=yes
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21789 $as_echo "$enable_static" >&6; }
21795 ac_ext=cpp
21796 ac_cpp='$CXXCPP $CPPFLAGS'
21797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21801 CC="$lt_save_CC"
21803 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21804 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21805 (test "X$CXX" != "Xg++"))) ; then
21806 ac_ext=cpp
21807 ac_cpp='$CXXCPP $CPPFLAGS'
21808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21812 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21813 if test -z "$CXXCPP"; then
21814 if ${ac_cv_prog_CXXCPP+:} false; then :
21815 $as_echo_n "(cached) " >&6
21816 else
21817 # Double quotes because CXXCPP needs to be expanded
21818 for CXXCPP in "$CXX -E" "/lib/cpp"
21820 ac_preproc_ok=false
21821 for ac_cxx_preproc_warn_flag in '' yes
21823 # Use a header file that comes with gcc, so configuring glibc
21824 # with a fresh cross-compiler works.
21825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21826 # <limits.h> exists even on freestanding compilers.
21827 # On the NeXT, cc -E runs the code through the compiler's parser,
21828 # not just through cpp. "Syntax error" is here to catch this case.
21829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h. */
21831 #ifdef __STDC__
21832 # include <limits.h>
21833 #else
21834 # include <assert.h>
21835 #endif
21836 Syntax error
21837 _ACEOF
21838 if ac_fn_cxx_try_cpp "$LINENO"; then :
21840 else
21841 # Broken: fails on valid input.
21842 continue
21844 rm -f conftest.err conftest.i conftest.$ac_ext
21846 # OK, works on sane cases. Now check whether nonexistent headers
21847 # can be detected and how.
21848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21849 /* end confdefs.h. */
21850 #include <ac_nonexistent.h>
21851 _ACEOF
21852 if ac_fn_cxx_try_cpp "$LINENO"; then :
21853 # Broken: success on invalid input.
21854 continue
21855 else
21856 # Passes both tests.
21857 ac_preproc_ok=:
21858 break
21860 rm -f conftest.err conftest.i conftest.$ac_ext
21862 done
21863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21864 rm -f conftest.i conftest.err conftest.$ac_ext
21865 if $ac_preproc_ok; then :
21866 break
21869 done
21870 ac_cv_prog_CXXCPP=$CXXCPP
21873 CXXCPP=$ac_cv_prog_CXXCPP
21874 else
21875 ac_cv_prog_CXXCPP=$CXXCPP
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21878 $as_echo "$CXXCPP" >&6; }
21879 ac_preproc_ok=false
21880 for ac_cxx_preproc_warn_flag in '' yes
21882 # Use a header file that comes with gcc, so configuring glibc
21883 # with a fresh cross-compiler works.
21884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21885 # <limits.h> exists even on freestanding compilers.
21886 # On the NeXT, cc -E runs the code through the compiler's parser,
21887 # not just through cpp. "Syntax error" is here to catch this case.
21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h. */
21890 #ifdef __STDC__
21891 # include <limits.h>
21892 #else
21893 # include <assert.h>
21894 #endif
21895 Syntax error
21896 _ACEOF
21897 if ac_fn_cxx_try_cpp "$LINENO"; then :
21899 else
21900 # Broken: fails on valid input.
21901 continue
21903 rm -f conftest.err conftest.i conftest.$ac_ext
21905 # OK, works on sane cases. Now check whether nonexistent headers
21906 # can be detected and how.
21907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21909 #include <ac_nonexistent.h>
21910 _ACEOF
21911 if ac_fn_cxx_try_cpp "$LINENO"; then :
21912 # Broken: success on invalid input.
21913 continue
21914 else
21915 # Passes both tests.
21916 ac_preproc_ok=:
21917 break
21919 rm -f conftest.err conftest.i conftest.$ac_ext
21921 done
21922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21923 rm -f conftest.i conftest.err conftest.$ac_ext
21924 if $ac_preproc_ok; then :
21926 else
21927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21929 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
21930 See \`config.log' for more details" "$LINENO" 5; }
21933 ac_ext=cpp
21934 ac_cpp='$CXXCPP $CPPFLAGS'
21935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21939 else
21940 _lt_caught_CXX_error=yes
21943 ac_ext=cpp
21944 ac_cpp='$CXXCPP $CPPFLAGS'
21945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21949 archive_cmds_need_lc_CXX=no
21950 allow_undefined_flag_CXX=
21951 always_export_symbols_CXX=no
21952 archive_expsym_cmds_CXX=
21953 compiler_needs_object_CXX=no
21954 export_dynamic_flag_spec_CXX=
21955 hardcode_direct_CXX=no
21956 hardcode_direct_absolute_CXX=no
21957 hardcode_libdir_flag_spec_CXX=
21958 hardcode_libdir_flag_spec_ld_CXX=
21959 hardcode_libdir_separator_CXX=
21960 hardcode_minus_L_CXX=no
21961 hardcode_shlibpath_var_CXX=unsupported
21962 hardcode_automatic_CXX=no
21963 inherit_rpath_CXX=no
21964 module_cmds_CXX=
21965 module_expsym_cmds_CXX=
21966 link_all_deplibs_CXX=unknown
21967 old_archive_cmds_CXX=$old_archive_cmds
21968 reload_flag_CXX=$reload_flag
21969 reload_cmds_CXX=$reload_cmds
21970 no_undefined_flag_CXX=
21971 whole_archive_flag_spec_CXX=
21972 enable_shared_with_static_runtimes_CXX=no
21974 # Source file extension for C++ test sources.
21975 ac_ext=cpp
21977 # Object file extension for compiled C++ test sources.
21978 objext=o
21979 objext_CXX=$objext
21981 # No sense in running all these tests if we already determined that
21982 # the CXX compiler isn't working. Some variables (like enable_shared)
21983 # are currently assumed to apply to all compilers on this platform,
21984 # and will be corrupted by setting them based on a non-working compiler.
21985 if test "$_lt_caught_CXX_error" != yes; then
21986 # Code to be used in simple compile tests
21987 lt_simple_compile_test_code="int some_variable = 0;"
21989 # Code to be used in simple link tests
21990 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
21992 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21999 # If no C compiler was specified, use CC.
22000 LTCC=${LTCC-"$CC"}
22002 # If no C compiler flags were specified, use CFLAGS.
22003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22005 # Allow CC to be a program name with arguments.
22006 compiler=$CC
22009 # save warnings/boilerplate of simple test code
22010 ac_outfile=conftest.$ac_objext
22011 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22013 _lt_compiler_boilerplate=`cat conftest.err`
22014 $RM conftest*
22016 ac_outfile=conftest.$ac_objext
22017 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22019 _lt_linker_boilerplate=`cat conftest.err`
22020 $RM -r conftest*
22023 # Allow CC to be a program name with arguments.
22024 lt_save_CC=$CC
22025 lt_save_LD=$LD
22026 lt_save_GCC=$GCC
22027 GCC=$GXX
22028 lt_save_with_gnu_ld=$with_gnu_ld
22029 lt_save_path_LD=$lt_cv_path_LD
22030 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22031 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
22032 else
22033 $as_unset lt_cv_prog_gnu_ld
22035 if test -n "${lt_cv_path_LDCXX+set}"; then
22036 lt_cv_path_LD=$lt_cv_path_LDCXX
22037 else
22038 $as_unset lt_cv_path_LD
22040 test -z "${LDCXX+set}" || LD=$LDCXX
22041 CC=${CXX-"c++"}
22042 compiler=$CC
22043 compiler_CXX=$CC
22044 for cc_temp in $compiler""; do
22045 case $cc_temp in
22046 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22047 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22048 \-*) ;;
22049 *) break;;
22050 esac
22051 done
22052 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22055 if test -n "$compiler"; then
22056 # We don't want -fno-exception when compiling C++ code, so set the
22057 # no_builtin_flag separately
22058 if test "$GXX" = yes; then
22059 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
22060 else
22061 lt_prog_compiler_no_builtin_flag_CXX=
22064 if test "$GXX" = yes; then
22065 # Set up default GNU C++ configuration
22069 # Check whether --with-gnu-ld was given.
22070 if test "${with_gnu_ld+set}" = set; then :
22071 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22072 else
22073 with_gnu_ld=no
22076 ac_prog=ld
22077 if test "$GCC" = yes; then
22078 # Check if gcc -print-prog-name=ld gives a path.
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22080 $as_echo_n "checking for ld used by $CC... " >&6; }
22081 case $host in
22082 *-*-mingw*)
22083 # gcc leaves a trailing carriage return which upsets mingw
22084 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22086 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22087 esac
22088 case $ac_prog in
22089 # Accept absolute paths.
22090 [\\/]* | ?:[\\/]*)
22091 re_direlt='/[^/][^/]*/\.\./'
22092 # Canonicalize the pathname of ld
22093 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22094 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22095 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22096 done
22097 test -z "$LD" && LD="$ac_prog"
22100 # If it fails, then pretend we aren't using GCC.
22101 ac_prog=ld
22104 # If it is relative, then search for the first ld in PATH.
22105 with_gnu_ld=unknown
22107 esac
22108 elif test "$with_gnu_ld" = yes; then
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22110 $as_echo_n "checking for GNU ld... " >&6; }
22111 else
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22113 $as_echo_n "checking for non-GNU ld... " >&6; }
22115 if ${lt_cv_path_LD+:} false; then :
22116 $as_echo_n "(cached) " >&6
22117 else
22118 if test -z "$LD"; then
22119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22120 for ac_dir in $PATH; do
22121 IFS="$lt_save_ifs"
22122 test -z "$ac_dir" && ac_dir=.
22123 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22124 lt_cv_path_LD="$ac_dir/$ac_prog"
22125 # Check to see if the program is GNU ld. I'd rather use --version,
22126 # but apparently some variants of GNU ld only accept -v.
22127 # Break only if it was the GNU/non-GNU ld that we prefer.
22128 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22129 *GNU* | *'with BFD'*)
22130 test "$with_gnu_ld" != no && break
22133 test "$with_gnu_ld" != yes && break
22135 esac
22137 done
22138 IFS="$lt_save_ifs"
22139 else
22140 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22144 LD="$lt_cv_path_LD"
22145 if test -n "$LD"; then
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22147 $as_echo "$LD" >&6; }
22148 else
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22150 $as_echo "no" >&6; }
22152 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22154 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22155 if ${lt_cv_prog_gnu_ld+:} false; then :
22156 $as_echo_n "(cached) " >&6
22157 else
22158 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22159 case `$LD -v 2>&1 </dev/null` in
22160 *GNU* | *'with BFD'*)
22161 lt_cv_prog_gnu_ld=yes
22164 lt_cv_prog_gnu_ld=no
22166 esac
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22169 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22170 with_gnu_ld=$lt_cv_prog_gnu_ld
22178 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22179 # archiving commands below assume that GNU ld is being used.
22180 if test "$with_gnu_ld" = yes; then
22181 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22182 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'
22184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22185 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22187 # If archive_cmds runs LD, not CC, wlarc should be empty
22188 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22189 # investigate it a little bit more. (MM)
22190 wlarc='${wl}'
22192 # ancient GNU ld didn't support --whole-archive et. al.
22193 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22194 $GREP 'no-whole-archive' > /dev/null; then
22195 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22196 else
22197 whole_archive_flag_spec_CXX=
22199 else
22200 with_gnu_ld=no
22201 wlarc=
22203 # A generic and very simple default shared library creation
22204 # command for GNU C++ for the case where it uses the native
22205 # linker, instead of GNU ld. If possible, this setting should
22206 # overridden to take advantage of the native linker features on
22207 # the platform it is being used on.
22208 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22211 # Commands to make compiler produce verbose output that lists
22212 # what "hidden" libraries, object files and flags are used when
22213 # linking a shared library.
22214 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22216 else
22217 GXX=no
22218 with_gnu_ld=no
22219 wlarc=
22222 # PORTME: fill in a description of your system's C++ link characteristics
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22224 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22225 ld_shlibs_CXX=yes
22226 case $host_os in
22227 aix3*)
22228 # FIXME: insert proper C++ library support
22229 ld_shlibs_CXX=no
22231 aix[4-9]*)
22232 if test "$host_cpu" = ia64; then
22233 # On IA64, the linker does run time linking by default, so we don't
22234 # have to do anything special.
22235 aix_use_runtimelinking=no
22236 exp_sym_flag='-Bexport'
22237 no_entry_flag=""
22238 else
22239 aix_use_runtimelinking=no
22241 # Test if we are trying to use run time linking or normal
22242 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22243 # need to do runtime linking.
22244 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22245 for ld_flag in $LDFLAGS; do
22246 case $ld_flag in
22247 *-brtl*)
22248 aix_use_runtimelinking=yes
22249 break
22251 esac
22252 done
22254 esac
22256 exp_sym_flag='-bexport'
22257 no_entry_flag='-bnoentry'
22260 # When large executables or shared objects are built, AIX ld can
22261 # have problems creating the table of contents. If linking a library
22262 # or program results in "error TOC overflow" add -mminimal-toc to
22263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22266 archive_cmds_CXX=''
22267 hardcode_direct_CXX=yes
22268 hardcode_direct_absolute_CXX=yes
22269 hardcode_libdir_separator_CXX=':'
22270 link_all_deplibs_CXX=yes
22271 file_list_spec_CXX='${wl}-f,'
22273 if test "$GXX" = yes; then
22274 case $host_os in aix4.[012]|aix4.[012].*)
22275 # We only want to do this on AIX 4.2 and lower, the check
22276 # below for broken collect2 doesn't work under 4.3+
22277 collect2name=`${CC} -print-prog-name=collect2`
22278 if test -f "$collect2name" &&
22279 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22280 then
22281 # We have reworked collect2
22283 else
22284 # We have old collect2
22285 hardcode_direct_CXX=unsupported
22286 # It fails to find uninstalled libraries when the uninstalled
22287 # path is not listed in the libpath. Setting hardcode_minus_L
22288 # to unsupported forces relinking
22289 hardcode_minus_L_CXX=yes
22290 hardcode_libdir_flag_spec_CXX='-L$libdir'
22291 hardcode_libdir_separator_CXX=
22293 esac
22294 shared_flag='-shared'
22295 if test "$aix_use_runtimelinking" = yes; then
22296 shared_flag="$shared_flag "'${wl}-G'
22298 else
22299 # not using gcc
22300 if test "$host_cpu" = ia64; then
22301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22302 # chokes on -Wl,-G. The following line is correct:
22303 shared_flag='-G'
22304 else
22305 if test "$aix_use_runtimelinking" = yes; then
22306 shared_flag='${wl}-G'
22307 else
22308 shared_flag='${wl}-bM:SRE'
22313 export_dynamic_flag_spec_CXX='${wl}-bexpall'
22314 # It seems that -bexpall does not export symbols beginning with
22315 # underscore (_), so it is better to generate a list of symbols to
22316 # export.
22317 always_export_symbols_CXX=yes
22318 if test "$aix_use_runtimelinking" = yes; then
22319 # Warning - without using the other runtime loading flags (-brtl),
22320 # -berok will link without error, but may produce a broken library.
22321 allow_undefined_flag_CXX='-berok'
22322 # Determine the default libpath from the value encoded in an empty
22323 # executable.
22324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h. */
22328 main ()
22332 return 0;
22334 _ACEOF
22335 if ac_fn_cxx_try_link "$LINENO"; then :
22337 lt_aix_libpath_sed='
22338 /Import File Strings/,/^$/ {
22339 /^0/ {
22340 s/^0 *\(.*\)$/\1/
22344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22345 # Check for a 64-bit object if we didn't find anything.
22346 if test -z "$aix_libpath"; then
22347 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22350 rm -f core conftest.err conftest.$ac_objext \
22351 conftest$ac_exeext conftest.$ac_ext
22352 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22354 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22356 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"
22357 else
22358 if test "$host_cpu" = ia64; then
22359 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22360 allow_undefined_flag_CXX="-z nodefs"
22361 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"
22362 else
22363 # Determine the default libpath from the value encoded in an
22364 # empty executable.
22365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22366 /* end confdefs.h. */
22369 main ()
22373 return 0;
22375 _ACEOF
22376 if ac_fn_cxx_try_link "$LINENO"; then :
22378 lt_aix_libpath_sed='
22379 /Import File Strings/,/^$/ {
22380 /^0/ {
22381 s/^0 *\(.*\)$/\1/
22385 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22386 # Check for a 64-bit object if we didn't find anything.
22387 if test -z "$aix_libpath"; then
22388 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22391 rm -f core conftest.err conftest.$ac_objext \
22392 conftest$ac_exeext conftest.$ac_ext
22393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22395 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22396 # Warning - without using the other run time loading flags,
22397 # -berok will link without error, but may produce a broken library.
22398 no_undefined_flag_CXX=' ${wl}-bernotok'
22399 allow_undefined_flag_CXX=' ${wl}-berok'
22400 if test "$with_gnu_ld" = yes; then
22401 # We only use this code for GNU lds that support --whole-archive.
22402 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22403 else
22404 # Exported symbols can be pulled into shared objects from archives
22405 whole_archive_flag_spec_CXX='$convenience'
22407 archive_cmds_need_lc_CXX=yes
22408 # This is similar to how AIX traditionally builds its shared
22409 # libraries.
22410 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'
22415 beos*)
22416 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22417 allow_undefined_flag_CXX=unsupported
22418 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22419 # support --undefined. This deserves some investigation. FIXME
22420 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22421 else
22422 ld_shlibs_CXX=no
22426 chorus*)
22427 case $cc_basename in
22429 # FIXME: insert proper C++ library support
22430 ld_shlibs_CXX=no
22432 esac
22435 cygwin* | mingw* | pw32* | cegcc*)
22436 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22437 # as there is no search path for DLLs.
22438 hardcode_libdir_flag_spec_CXX='-L$libdir'
22439 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
22440 allow_undefined_flag_CXX=unsupported
22441 always_export_symbols_CXX=no
22442 enable_shared_with_static_runtimes_CXX=yes
22444 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22445 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'
22446 # If the export-symbols file already is a .def file (1st line
22447 # is EXPORTS), use it as is; otherwise, prepend...
22448 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22449 cp $export_symbols $output_objdir/$soname.def;
22450 else
22451 echo EXPORTS > $output_objdir/$soname.def;
22452 cat $export_symbols >> $output_objdir/$soname.def;
22454 $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'
22455 else
22456 ld_shlibs_CXX=no
22459 darwin* | rhapsody*)
22463 # Publish an arg to allow the user to select that Darwin host (and target)
22464 # libraries should be given install-names like @rpath/libfoo.dylib. This
22465 # requires that the user of the library then adds an 'rpath' to the DSO that
22466 # needs access.
22467 # NOTE: there are defaults below, for systems that support rpaths. The person
22468 # configuring can override the defaults for any system version that supports
22469 # them - they are, however, forced off for system versions without support.
22470 # Check whether --enable-darwin-at-rpath was given.
22471 if test "${enable_darwin_at_rpath+set}" = set; then :
22472 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22473 # This is not supported before macOS 10.5 / Darwin9.
22474 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22475 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22477 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22478 enable_darwin_at_rpath=no
22480 esac
22482 else
22483 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22484 # As above, before 10.5 / Darwin9 this does not work.
22485 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22486 enable_darwin_at_rpath=no
22489 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22490 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22491 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22492 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22494 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22495 enable_darwin_at_rpath=yes
22497 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22498 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22500 esac
22505 archive_cmds_need_lc_CXX=no
22506 hardcode_direct_CXX=no
22507 hardcode_automatic_CXX=yes
22508 hardcode_shlibpath_var_CXX=unsupported
22509 if test "$lt_cv_ld_force_load" = "yes"; then
22510 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\"`'
22511 else
22512 whole_archive_flag_spec_CXX=''
22514 link_all_deplibs_CXX=yes
22515 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
22516 case $cc_basename in
22517 ifort*) _lt_dar_can_shared=yes ;;
22518 *) _lt_dar_can_shared=$GCC ;;
22519 esac
22520 if test "$_lt_dar_can_shared" = "yes"; then
22521 output_verbose_link_cmd=func_echo_all
22522 _lt_install_name='\$rpath/\$soname'
22523 if test "x$enable_darwin_at_rpath" = "xyes"; then
22524 _lt_install_name='@rpath/\$soname'
22526 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22527 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22528 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
22529 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}"
22530 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22531 _lt_install_name='\$rpath/\$soname'
22532 if test "x$enable_darwin_at_rpath" = "xyes"; then
22533 _lt_install_name='@rpath/\$soname'
22535 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 ${_lt_install_name} \$verstring${_lt_dsymutil}"
22536 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}"
22539 else
22540 ld_shlibs_CXX=no
22545 dgux*)
22546 case $cc_basename in
22547 ec++*)
22548 # FIXME: insert proper C++ library support
22549 ld_shlibs_CXX=no
22551 ghcx*)
22552 # Green Hills C++ Compiler
22553 # FIXME: insert proper C++ library support
22554 ld_shlibs_CXX=no
22557 # FIXME: insert proper C++ library support
22558 ld_shlibs_CXX=no
22560 esac
22563 freebsd2.*)
22564 # C++ shared libraries reported to be fairly broken before
22565 # switch to ELF
22566 ld_shlibs_CXX=no
22569 freebsd-elf*)
22570 archive_cmds_need_lc_CXX=no
22573 freebsd* | dragonfly*)
22574 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22575 # conventions
22576 ld_shlibs_CXX=yes
22579 gnu*)
22582 haiku*)
22583 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22584 link_all_deplibs_CXX=yes
22587 hpux9*)
22588 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22589 hardcode_libdir_separator_CXX=:
22590 export_dynamic_flag_spec_CXX='${wl}-E'
22591 hardcode_direct_CXX=yes
22592 hardcode_minus_L_CXX=yes # Not in the search PATH,
22593 # but as the default
22594 # location of the library.
22596 case $cc_basename in
22597 CC*)
22598 # FIXME: insert proper C++ library support
22599 ld_shlibs_CXX=no
22601 aCC*)
22602 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'
22603 # Commands to make compiler produce verbose output that lists
22604 # what "hidden" libraries, object files and flags are used when
22605 # linking a shared library.
22607 # There doesn't appear to be a way to prevent this compiler from
22608 # explicitly linking system object files so we need to strip them
22609 # from the output so that they don't get included in the library
22610 # dependencies.
22611 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"'
22614 if test "$GXX" = yes; then
22615 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'
22616 else
22617 # FIXME: insert proper C++ library support
22618 ld_shlibs_CXX=no
22621 esac
22624 hpux10*|hpux11*)
22625 if test $with_gnu_ld = no; then
22626 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22627 hardcode_libdir_separator_CXX=:
22629 case $host_cpu in
22630 hppa*64*|ia64*)
22633 export_dynamic_flag_spec_CXX='${wl}-E'
22635 esac
22637 case $host_cpu in
22638 hppa*64*|ia64*)
22639 hardcode_direct_CXX=no
22640 hardcode_shlibpath_var_CXX=no
22643 hardcode_direct_CXX=yes
22644 hardcode_direct_absolute_CXX=yes
22645 hardcode_minus_L_CXX=yes # Not in the search PATH,
22646 # but as the default
22647 # location of the library.
22649 esac
22651 case $cc_basename in
22652 CC*)
22653 # FIXME: insert proper C++ library support
22654 ld_shlibs_CXX=no
22656 aCC*)
22657 case $host_cpu in
22658 hppa*64*)
22659 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22661 ia64*)
22662 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22665 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22667 esac
22668 # Commands to make compiler produce verbose output that lists
22669 # what "hidden" libraries, object files and flags are used when
22670 # linking a shared library.
22672 # There doesn't appear to be a way to prevent this compiler from
22673 # explicitly linking system object files so we need to strip them
22674 # from the output so that they don't get included in the library
22675 # dependencies.
22676 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"'
22679 if test "$GXX" = yes; then
22680 if test $with_gnu_ld = no; then
22681 case $host_cpu in
22682 hppa*64*)
22683 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22685 ia64*)
22686 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22689 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'
22691 esac
22693 else
22694 # FIXME: insert proper C++ library support
22695 ld_shlibs_CXX=no
22698 esac
22701 interix[3-9]*)
22702 hardcode_direct_CXX=no
22703 hardcode_shlibpath_var_CXX=no
22704 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22705 export_dynamic_flag_spec_CXX='${wl}-E'
22706 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22707 # Instead, shared libraries are loaded at an image base (0x10000000 by
22708 # default) and relocated if they conflict, which is a slow very memory
22709 # consuming and fragmenting process. To avoid this, we pick a random,
22710 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22711 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22712 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'
22713 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'
22715 irix5* | irix6*)
22716 case $cc_basename in
22717 CC*)
22718 # SGI C++
22719 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'
22721 # Archives containing C++ object files must be created using
22722 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22723 # necessary to make sure instantiated templates are included
22724 # in the archive.
22725 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22728 if test "$GXX" = yes; then
22729 if test "$with_gnu_ld" = no; then
22730 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'
22731 else
22732 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'
22735 link_all_deplibs_CXX=yes
22737 esac
22738 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22739 hardcode_libdir_separator_CXX=:
22740 inherit_rpath_CXX=yes
22743 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22744 case $cc_basename in
22745 KCC*)
22746 # Kuck and Associates, Inc. (KAI) C++ Compiler
22748 # KCC will only create a shared library if the output file
22749 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22750 # to its proper name (with version) after linking.
22751 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'
22752 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'
22753 # Commands to make compiler produce verbose output that lists
22754 # what "hidden" libraries, object files and flags are used when
22755 # linking a shared library.
22757 # There doesn't appear to be a way to prevent this compiler from
22758 # explicitly linking system object files so we need to strip them
22759 # from the output so that they don't get included in the library
22760 # dependencies.
22761 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"'
22763 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22764 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22766 # Archives containing C++ object files must be created using
22767 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22768 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22770 icpc* | ecpc* )
22771 # Intel C++
22772 with_gnu_ld=yes
22773 # version 8.0 and above of icpc choke on multiply defined symbols
22774 # if we add $predep_objects and $postdep_objects, however 7.1 and
22775 # earlier do not add the objects themselves.
22776 case `$CC -V 2>&1` in
22777 *"Version 7."*)
22778 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22779 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'
22781 *) # Version 8.0 or newer
22782 tmp_idyn=
22783 case $host_cpu in
22784 ia64*) tmp_idyn=' -i_dynamic';;
22785 esac
22786 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22787 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'
22789 esac
22790 archive_cmds_need_lc_CXX=no
22791 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22792 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22793 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22795 pgCC* | pgcpp*)
22796 # Portland Group C++ compiler
22797 case `$CC -V` in
22798 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22799 prelink_cmds_CXX='tpldir=Template.dir~
22800 rm -rf $tpldir~
22801 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22802 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22803 old_archive_cmds_CXX='tpldir=Template.dir~
22804 rm -rf $tpldir~
22805 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22806 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22807 $RANLIB $oldlib'
22808 archive_cmds_CXX='tpldir=Template.dir~
22809 rm -rf $tpldir~
22810 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22811 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22812 archive_expsym_cmds_CXX='tpldir=Template.dir~
22813 rm -rf $tpldir~
22814 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22815 $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'
22817 *) # Version 6 and above use weak symbols
22818 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22819 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'
22821 esac
22823 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22824 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22825 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'
22827 cxx*)
22828 # Compaq C++
22829 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22830 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'
22832 runpath_var=LD_RUN_PATH
22833 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22834 hardcode_libdir_separator_CXX=:
22836 # Commands to make compiler produce verbose output that lists
22837 # what "hidden" libraries, object files and flags are used when
22838 # linking a shared library.
22840 # There doesn't appear to be a way to prevent this compiler from
22841 # explicitly linking system object files so we need to strip them
22842 # from the output so that they don't get included in the library
22843 # dependencies.
22844 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'
22846 xl* | mpixl* | bgxl*)
22847 # IBM XL 8.0 on PPC, with GNU ld
22848 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22849 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22850 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22851 if test "x$supports_anon_versioning" = xyes; then
22852 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22854 echo "local: *; };" >> $output_objdir/$libname.ver~
22855 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22859 case `$CC -V 2>&1 | sed 5q` in
22860 *Sun\ C*)
22861 # Sun C++ 5.9
22862 no_undefined_flag_CXX=' -zdefs'
22863 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22864 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'
22865 hardcode_libdir_flag_spec_CXX='-R$libdir'
22866 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'
22867 compiler_needs_object_CXX=yes
22869 # Not sure whether something based on
22870 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22871 # would be better.
22872 output_verbose_link_cmd='func_echo_all'
22874 # Archives containing C++ object files must be created using
22875 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22876 # necessary to make sure instantiated templates are included
22877 # in the archive.
22878 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22880 esac
22882 esac
22885 lynxos*)
22886 # FIXME: insert proper C++ library support
22887 ld_shlibs_CXX=no
22890 m88k*)
22891 # FIXME: insert proper C++ library support
22892 ld_shlibs_CXX=no
22895 mvs*)
22896 case $cc_basename in
22897 cxx*)
22898 # FIXME: insert proper C++ library support
22899 ld_shlibs_CXX=no
22902 # FIXME: insert proper C++ library support
22903 ld_shlibs_CXX=no
22905 esac
22908 netbsd*)
22909 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22910 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22911 wlarc=
22912 hardcode_libdir_flag_spec_CXX='-R$libdir'
22913 hardcode_direct_CXX=yes
22914 hardcode_shlibpath_var_CXX=no
22916 # Workaround some broken pre-1.5 toolchains
22917 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22920 *nto* | *qnx*)
22921 ld_shlibs_CXX=yes
22924 openbsd2*)
22925 # C++ shared libraries are fairly broken
22926 ld_shlibs_CXX=no
22929 openbsd*)
22930 if test -f /usr/libexec/ld.so; then
22931 hardcode_direct_CXX=yes
22932 hardcode_shlibpath_var_CXX=no
22933 hardcode_direct_absolute_CXX=yes
22934 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22935 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22937 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
22938 export_dynamic_flag_spec_CXX='${wl}-E'
22939 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22941 output_verbose_link_cmd=func_echo_all
22942 else
22943 ld_shlibs_CXX=no
22947 osf3* | osf4* | osf5*)
22948 case $cc_basename in
22949 KCC*)
22950 # Kuck and Associates, Inc. (KAI) C++ Compiler
22952 # KCC will only create a shared library if the output file
22953 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22954 # to its proper name (with version) after linking.
22955 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'
22957 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22958 hardcode_libdir_separator_CXX=:
22960 # Archives containing C++ object files must be created using
22961 # the KAI C++ compiler.
22962 case $host in
22963 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
22964 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
22965 esac
22967 RCC*)
22968 # Rational C++ 2.4.1
22969 # FIXME: insert proper C++ library support
22970 ld_shlibs_CXX=no
22972 cxx*)
22973 case $host in
22974 osf3*)
22975 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
22976 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'
22977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22980 allow_undefined_flag_CXX=' -expect_unresolved \*'
22981 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'
22982 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22983 echo "-hidden">> $lib.exp~
22984 $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~
22985 $RM $lib.exp'
22986 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22988 esac
22990 hardcode_libdir_separator_CXX=:
22992 # Commands to make compiler produce verbose output that lists
22993 # what "hidden" libraries, object files and flags are used when
22994 # linking a shared library.
22996 # There doesn't appear to be a way to prevent this compiler from
22997 # explicitly linking system object files so we need to strip them
22998 # from the output so that they don't get included in the library
22999 # dependencies.
23000 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"'
23003 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23004 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23005 case $host in
23006 osf3*)
23007 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'
23010 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'
23012 esac
23014 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23015 hardcode_libdir_separator_CXX=:
23017 # Commands to make compiler produce verbose output that lists
23018 # what "hidden" libraries, object files and flags are used when
23019 # linking a shared library.
23020 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23022 else
23023 # FIXME: insert proper C++ library support
23024 ld_shlibs_CXX=no
23027 esac
23030 psos*)
23031 # FIXME: insert proper C++ library support
23032 ld_shlibs_CXX=no
23035 sunos4*)
23036 case $cc_basename in
23037 CC*)
23038 # Sun C++ 4.x
23039 # FIXME: insert proper C++ library support
23040 ld_shlibs_CXX=no
23042 lcc*)
23043 # Lucid
23044 # FIXME: insert proper C++ library support
23045 ld_shlibs_CXX=no
23048 # FIXME: insert proper C++ library support
23049 ld_shlibs_CXX=no
23051 esac
23054 solaris*)
23055 case $cc_basename in
23056 CC*)
23057 # Sun C++ 4.2, 5.x and Centerline C++
23058 archive_cmds_need_lc_CXX=yes
23059 no_undefined_flag_CXX=' -zdefs'
23060 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23061 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23062 $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'
23064 hardcode_libdir_flag_spec_CXX='-R$libdir'
23065 hardcode_shlibpath_var_CXX=no
23066 case $host_os in
23067 solaris2.[0-5] | solaris2.[0-5].*) ;;
23069 # The compiler driver will combine and reorder linker options,
23070 # but understands `-z linker_flag'.
23071 # Supported since Solaris 2.6 (maybe 2.5.1?)
23072 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
23074 esac
23075 link_all_deplibs_CXX=yes
23077 output_verbose_link_cmd='func_echo_all'
23079 # Archives containing C++ object files must be created using
23080 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23081 # necessary to make sure instantiated templates are included
23082 # in the archive.
23083 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23085 gcx*)
23086 # Green Hills C++ Compiler
23087 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23089 # The C++ compiler must be used to create the archive.
23090 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23093 # GNU C++ compiler with Solaris linker
23094 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23095 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
23096 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23097 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23098 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23099 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23101 # Commands to make compiler produce verbose output that lists
23102 # what "hidden" libraries, object files and flags are used when
23103 # linking a shared library.
23104 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23105 else
23106 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23107 # platform.
23108 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23109 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23110 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23112 # Commands to make compiler produce verbose output that lists
23113 # what "hidden" libraries, object files and flags are used when
23114 # linking a shared library.
23115 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23118 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
23119 case $host_os in
23120 solaris2.[0-5] | solaris2.[0-5].*) ;;
23122 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23124 esac
23127 esac
23130 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23131 no_undefined_flag_CXX='${wl}-z,text'
23132 archive_cmds_need_lc_CXX=no
23133 hardcode_shlibpath_var_CXX=no
23134 runpath_var='LD_RUN_PATH'
23136 case $cc_basename in
23137 CC*)
23138 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23139 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23142 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23143 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23145 esac
23148 sysv5* | sco3.2v5* | sco5v6*)
23149 # Note: We can NOT use -z defs as we might desire, because we do not
23150 # link with -lc, and that would cause any symbols used from libc to
23151 # always be unresolved, which means just about no library would
23152 # ever link correctly. If we're not using GNU ld we use -z text
23153 # though, which does catch some bad symbols but isn't as heavy-handed
23154 # as -z defs.
23155 no_undefined_flag_CXX='${wl}-z,text'
23156 allow_undefined_flag_CXX='${wl}-z,nodefs'
23157 archive_cmds_need_lc_CXX=no
23158 hardcode_shlibpath_var_CXX=no
23159 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
23160 hardcode_libdir_separator_CXX=':'
23161 link_all_deplibs_CXX=yes
23162 export_dynamic_flag_spec_CXX='${wl}-Bexport'
23163 runpath_var='LD_RUN_PATH'
23165 case $cc_basename in
23166 CC*)
23167 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23168 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23169 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
23170 '"$old_archive_cmds_CXX"
23171 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
23172 '"$reload_cmds_CXX"
23175 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23176 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23178 esac
23181 tandem*)
23182 case $cc_basename in
23183 NCC*)
23184 # NonStop-UX NCC 3.20
23185 # FIXME: insert proper C++ library support
23186 ld_shlibs_CXX=no
23189 # FIXME: insert proper C++ library support
23190 ld_shlibs_CXX=no
23192 esac
23195 vxworks*)
23196 # For VxWorks ports, we assume the use of a GNU linker with
23197 # standard elf conventions.
23198 ld_shlibs_CXX=yes
23202 # FIXME: insert proper C++ library support
23203 ld_shlibs_CXX=no
23205 esac
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23208 $as_echo "$ld_shlibs_CXX" >&6; }
23209 test "$ld_shlibs_CXX" = no && can_build_shared=no
23211 GCC_CXX="$GXX"
23212 LD_CXX="$LD"
23214 ## CAVEAT EMPTOR:
23215 ## There is no encapsulation within the following macros, do not change
23216 ## the running order or otherwise move them around unless you know exactly
23217 ## what you are doing...
23218 # Dependencies to place before and after the object being linked:
23219 predep_objects_CXX=
23220 postdep_objects_CXX=
23221 predeps_CXX=
23222 postdeps_CXX=
23223 compiler_lib_search_path_CXX=
23225 cat > conftest.$ac_ext <<_LT_EOF
23226 class Foo
23228 public:
23229 Foo (void) { a = 0; }
23230 private:
23231 int a;
23233 _LT_EOF
23235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23236 (eval $ac_compile) 2>&5
23237 ac_status=$?
23238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23239 test $ac_status = 0; }; then
23240 # Parse the compiler output and extract the necessary
23241 # objects, libraries and library flags.
23243 # Sentinel used to keep track of whether or not we are before
23244 # the conftest object file.
23245 pre_test_object_deps_done=no
23247 for p in `eval "$output_verbose_link_cmd"`; do
23248 case $p in
23250 -L* | -R* | -l*)
23251 # Some compilers place space between "-{L,R}" and the path.
23252 # Remove the space.
23253 if test $p = "-L" ||
23254 test $p = "-R"; then
23255 prev=$p
23256 continue
23257 else
23258 prev=
23261 if test "$pre_test_object_deps_done" = no; then
23262 case $p in
23263 -L* | -R*)
23264 # Internal compiler library paths should come after those
23265 # provided the user. The postdeps already come after the
23266 # user supplied libs so there is no need to process them.
23267 if test -z "$compiler_lib_search_path_CXX"; then
23268 compiler_lib_search_path_CXX="${prev}${p}"
23269 else
23270 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
23273 # The "-l" case would never come before the object being
23274 # linked, so don't bother handling this case.
23275 esac
23276 else
23277 if test -z "$postdeps_CXX"; then
23278 postdeps_CXX="${prev}${p}"
23279 else
23280 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
23285 *.$objext)
23286 # This assumes that the test object file only shows up
23287 # once in the compiler output.
23288 if test "$p" = "conftest.$objext"; then
23289 pre_test_object_deps_done=yes
23290 continue
23293 if test "$pre_test_object_deps_done" = no; then
23294 if test -z "$predep_objects_CXX"; then
23295 predep_objects_CXX="$p"
23296 else
23297 predep_objects_CXX="$predep_objects_CXX $p"
23299 else
23300 if test -z "$postdep_objects_CXX"; then
23301 postdep_objects_CXX="$p"
23302 else
23303 postdep_objects_CXX="$postdep_objects_CXX $p"
23308 *) ;; # Ignore the rest.
23310 esac
23311 done
23313 # Clean up.
23314 rm -f a.out a.exe
23315 else
23316 echo "libtool.m4: error: problem compiling CXX test program"
23319 $RM -f confest.$objext
23321 # PORTME: override above test on systems where it is broken
23322 case $host_os in
23323 interix[3-9]*)
23324 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23325 # hack all around it, let's just trust "g++" to DTRT.
23326 predep_objects_CXX=
23327 postdep_objects_CXX=
23328 postdeps_CXX=
23331 linux*)
23332 case `$CC -V 2>&1 | sed 5q` in
23333 *Sun\ C*)
23334 # Sun C++ 5.9
23336 # The more standards-conforming stlport4 library is
23337 # incompatible with the Cstd library. Avoid specifying
23338 # it if it's in CXXFLAGS. Ignore libCrun as
23339 # -library=stlport4 depends on it.
23340 case " $CXX $CXXFLAGS " in
23341 *" -library=stlport4 "*)
23342 solaris_use_stlport4=yes
23344 esac
23346 if test "$solaris_use_stlport4" != yes; then
23347 postdeps_CXX='-library=Cstd -library=Crun'
23350 esac
23353 solaris*)
23354 case $cc_basename in
23355 CC*)
23356 # The more standards-conforming stlport4 library is
23357 # incompatible with the Cstd library. Avoid specifying
23358 # it if it's in CXXFLAGS. Ignore libCrun as
23359 # -library=stlport4 depends on it.
23360 case " $CXX $CXXFLAGS " in
23361 *" -library=stlport4 "*)
23362 solaris_use_stlport4=yes
23364 esac
23366 # Adding this requires a known-good setup of shared libraries for
23367 # Sun compiler versions before 5.6, else PIC objects from an old
23368 # archive will be linked into the output, leading to subtle bugs.
23369 if test "$solaris_use_stlport4" != yes; then
23370 postdeps_CXX='-library=Cstd -library=Crun'
23373 esac
23375 esac
23378 case " $postdeps_CXX " in
23379 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
23380 esac
23381 compiler_lib_search_dirs_CXX=
23382 if test -n "${compiler_lib_search_path_CXX}"; then
23383 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23416 lt_prog_compiler_wl_CXX=
23417 lt_prog_compiler_pic_CXX=
23418 lt_prog_compiler_static_CXX=
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23421 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23423 # C++ specific cases for pic, static, wl, etc.
23424 if test "$GXX" = yes; then
23425 lt_prog_compiler_wl_CXX='-Wl,'
23426 lt_prog_compiler_static_CXX='-static'
23428 case $host_os in
23429 aix*)
23430 # All AIX code is PIC.
23431 if test "$host_cpu" = ia64; then
23432 # AIX 5 now supports IA64 processor
23433 lt_prog_compiler_static_CXX='-Bstatic'
23435 lt_prog_compiler_pic_CXX='-fPIC'
23438 amigaos*)
23439 case $host_cpu in
23440 powerpc)
23441 # see comment about AmigaOS4 .so support
23442 lt_prog_compiler_pic_CXX='-fPIC'
23444 m68k)
23445 # FIXME: we need at least 68020 code to build shared libraries, but
23446 # adding the `-m68020' flag to GCC prevents building anything better,
23447 # like `-m68040'.
23448 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23450 esac
23453 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23454 # PIC is the default for these OSes.
23456 mingw* | cygwin* | os2* | pw32* | cegcc*)
23457 # This hack is so that the source file can tell whether it is being
23458 # built for inclusion in a dll (and should export symbols for example).
23459 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23460 # (--disable-auto-import) libraries
23461 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23463 darwin* | rhapsody*)
23464 # PIC is the default on this platform
23465 # Common symbols not allowed in MH_DYLIB files
23466 lt_prog_compiler_pic_CXX='-fno-common'
23468 *djgpp*)
23469 # DJGPP does not support shared libraries at all
23470 lt_prog_compiler_pic_CXX=
23472 haiku*)
23473 # PIC is the default for Haiku.
23474 # The "-static" flag exists, but is broken.
23475 lt_prog_compiler_static_CXX=
23477 interix[3-9]*)
23478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23479 # Instead, we relocate shared libraries at runtime.
23481 sysv4*MP*)
23482 if test -d /usr/nec; then
23483 lt_prog_compiler_pic_CXX=-Kconform_pic
23486 hpux*)
23487 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23488 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23489 # sets the default TLS model and affects inlining.
23490 case $host_cpu in
23491 hppa*64*)
23494 lt_prog_compiler_pic_CXX='-fPIC'
23496 esac
23498 *qnx* | *nto*)
23499 # QNX uses GNU C++, but need to define -shared option too, otherwise
23500 # it will coredump.
23501 lt_prog_compiler_pic_CXX='-fPIC -shared'
23504 lt_prog_compiler_pic_CXX='-fPIC'
23506 esac
23507 else
23508 case $host_os in
23509 aix[4-9]*)
23510 # All AIX code is PIC.
23511 if test "$host_cpu" = ia64; then
23512 # AIX 5 now supports IA64 processor
23513 lt_prog_compiler_static_CXX='-Bstatic'
23514 else
23515 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23518 chorus*)
23519 case $cc_basename in
23520 cxch68*)
23521 # Green Hills C++ Compiler
23522 # _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"
23524 esac
23526 dgux*)
23527 case $cc_basename in
23528 ec++*)
23529 lt_prog_compiler_pic_CXX='-KPIC'
23531 ghcx*)
23532 # Green Hills C++ Compiler
23533 lt_prog_compiler_pic_CXX='-pic'
23537 esac
23539 freebsd* | dragonfly*)
23540 # FreeBSD uses GNU C++
23542 hpux9* | hpux10* | hpux11*)
23543 case $cc_basename in
23544 CC*)
23545 lt_prog_compiler_wl_CXX='-Wl,'
23546 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23547 if test "$host_cpu" != ia64; then
23548 lt_prog_compiler_pic_CXX='+Z'
23551 aCC*)
23552 lt_prog_compiler_wl_CXX='-Wl,'
23553 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23554 case $host_cpu in
23555 hppa*64*|ia64*)
23556 # +Z the default
23559 lt_prog_compiler_pic_CXX='+Z'
23561 esac
23565 esac
23567 interix*)
23568 # This is c89, which is MS Visual C++ (no shared libs)
23569 # Anyone wants to do a port?
23571 irix5* | irix6* | nonstopux*)
23572 case $cc_basename in
23573 CC*)
23574 lt_prog_compiler_wl_CXX='-Wl,'
23575 lt_prog_compiler_static_CXX='-non_shared'
23576 # CC pic flag -KPIC is the default.
23580 esac
23582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
23583 case $cc_basename in
23584 KCC*)
23585 # KAI C++ Compiler
23586 lt_prog_compiler_wl_CXX='--backend -Wl,'
23587 lt_prog_compiler_pic_CXX='-fPIC'
23589 ecpc* )
23590 # old Intel C++ for x86_64 which still supported -KPIC.
23591 lt_prog_compiler_wl_CXX='-Wl,'
23592 lt_prog_compiler_pic_CXX='-KPIC'
23593 lt_prog_compiler_static_CXX='-static'
23595 icpc* )
23596 # Intel C++, used to be incompatible with GCC.
23597 # ICC 10 doesn't accept -KPIC any more.
23598 lt_prog_compiler_wl_CXX='-Wl,'
23599 lt_prog_compiler_pic_CXX='-fPIC'
23600 lt_prog_compiler_static_CXX='-static'
23602 pgCC* | pgcpp*)
23603 # Portland Group C++ compiler
23604 lt_prog_compiler_wl_CXX='-Wl,'
23605 lt_prog_compiler_pic_CXX='-fpic'
23606 lt_prog_compiler_static_CXX='-Bstatic'
23608 cxx*)
23609 # Compaq C++
23610 # Make sure the PIC flag is empty. It appears that all Alpha
23611 # Linux and Compaq Tru64 Unix objects are PIC.
23612 lt_prog_compiler_pic_CXX=
23613 lt_prog_compiler_static_CXX='-non_shared'
23615 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23616 # IBM XL 8.0, 9.0 on PPC and BlueGene
23617 lt_prog_compiler_wl_CXX='-Wl,'
23618 lt_prog_compiler_pic_CXX='-qpic'
23619 lt_prog_compiler_static_CXX='-qstaticlink'
23622 case `$CC -V 2>&1 | sed 5q` in
23623 *Sun\ C*)
23624 # Sun C++ 5.9
23625 lt_prog_compiler_pic_CXX='-KPIC'
23626 lt_prog_compiler_static_CXX='-Bstatic'
23627 lt_prog_compiler_wl_CXX='-Qoption ld '
23629 esac
23631 esac
23633 lynxos*)
23635 m88k*)
23637 mvs*)
23638 case $cc_basename in
23639 cxx*)
23640 lt_prog_compiler_pic_CXX='-W c,exportall'
23644 esac
23646 netbsd*)
23648 *qnx* | *nto*)
23649 # QNX uses GNU C++, but need to define -shared option too, otherwise
23650 # it will coredump.
23651 lt_prog_compiler_pic_CXX='-fPIC -shared'
23653 osf3* | osf4* | osf5*)
23654 case $cc_basename in
23655 KCC*)
23656 lt_prog_compiler_wl_CXX='--backend -Wl,'
23658 RCC*)
23659 # Rational C++ 2.4.1
23660 lt_prog_compiler_pic_CXX='-pic'
23662 cxx*)
23663 # Digital/Compaq C++
23664 lt_prog_compiler_wl_CXX='-Wl,'
23665 # Make sure the PIC flag is empty. It appears that all Alpha
23666 # Linux and Compaq Tru64 Unix objects are PIC.
23667 lt_prog_compiler_pic_CXX=
23668 lt_prog_compiler_static_CXX='-non_shared'
23672 esac
23674 psos*)
23676 solaris*)
23677 case $cc_basename in
23678 CC*)
23679 # Sun C++ 4.2, 5.x and Centerline C++
23680 lt_prog_compiler_pic_CXX='-KPIC'
23681 lt_prog_compiler_static_CXX='-Bstatic'
23682 lt_prog_compiler_wl_CXX='-Qoption ld '
23684 gcx*)
23685 # Green Hills C++ Compiler
23686 lt_prog_compiler_pic_CXX='-PIC'
23690 esac
23692 sunos4*)
23693 case $cc_basename in
23694 CC*)
23695 # Sun C++ 4.x
23696 lt_prog_compiler_pic_CXX='-pic'
23697 lt_prog_compiler_static_CXX='-Bstatic'
23699 lcc*)
23700 # Lucid
23701 lt_prog_compiler_pic_CXX='-pic'
23705 esac
23707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23708 case $cc_basename in
23709 CC*)
23710 lt_prog_compiler_wl_CXX='-Wl,'
23711 lt_prog_compiler_pic_CXX='-KPIC'
23712 lt_prog_compiler_static_CXX='-Bstatic'
23714 esac
23716 tandem*)
23717 case $cc_basename in
23718 NCC*)
23719 # NonStop-UX NCC 3.20
23720 lt_prog_compiler_pic_CXX='-KPIC'
23724 esac
23726 vxworks*)
23729 lt_prog_compiler_can_build_shared_CXX=no
23731 esac
23734 case $host_os in
23735 # For platforms which do not support PIC, -DPIC is meaningless:
23736 *djgpp*)
23737 lt_prog_compiler_pic_CXX=
23740 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23742 esac
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23744 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23749 # Check to make sure the PIC flag actually works.
23751 if test -n "$lt_prog_compiler_pic_CXX"; then
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23753 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23754 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
23755 $as_echo_n "(cached) " >&6
23756 else
23757 lt_cv_prog_compiler_pic_works_CXX=no
23758 ac_outfile=conftest.$ac_objext
23759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23760 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23761 # Insert the option either (1) after the last *FLAGS variable, or
23762 # (2) before a word containing "conftest.", or (3) at the end.
23763 # Note that $ac_compile itself does not contain backslashes and begins
23764 # with a dollar sign (not a hyphen), so the echo should work correctly.
23765 # The option is referenced via a variable to avoid confusing sed.
23766 lt_compile=`echo "$ac_compile" | $SED \
23767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23769 -e 's:$: $lt_compiler_flag:'`
23770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23771 (eval "$lt_compile" 2>conftest.err)
23772 ac_status=$?
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 if (exit $ac_status) && test -s "$ac_outfile"; then
23776 # The compiler can only warn and ignore the option if not recognized
23777 # So say no if there are warnings other than the usual output.
23778 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23780 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23781 lt_cv_prog_compiler_pic_works_CXX=yes
23784 $RM conftest*
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23788 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23790 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
23791 case $lt_prog_compiler_pic_CXX in
23792 "" | " "*) ;;
23793 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23794 esac
23795 else
23796 lt_prog_compiler_pic_CXX=
23797 lt_prog_compiler_can_build_shared_CXX=no
23805 # Check to make sure the static flag actually works.
23807 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23809 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23810 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
23811 $as_echo_n "(cached) " >&6
23812 else
23813 lt_cv_prog_compiler_static_works_CXX=no
23814 save_LDFLAGS="$LDFLAGS"
23815 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23816 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23818 # The linker can only warn and ignore the option if not recognized
23819 # So say no if there are warnings
23820 if test -s conftest.err; then
23821 # Append any errors to the config.log.
23822 cat conftest.err 1>&5
23823 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23825 if diff conftest.exp conftest.er2 >/dev/null; then
23826 lt_cv_prog_compiler_static_works_CXX=yes
23828 else
23829 lt_cv_prog_compiler_static_works_CXX=yes
23832 $RM -r conftest*
23833 LDFLAGS="$save_LDFLAGS"
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23837 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23839 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
23841 else
23842 lt_prog_compiler_static_CXX=
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23849 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23850 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23851 $as_echo_n "(cached) " >&6
23852 else
23853 lt_cv_prog_compiler_c_o_CXX=no
23854 $RM -r conftest 2>/dev/null
23855 mkdir conftest
23856 cd conftest
23857 mkdir out
23858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23860 lt_compiler_flag="-o out/conftest2.$ac_objext"
23861 # Insert the option either (1) after the last *FLAGS variable, or
23862 # (2) before a word containing "conftest.", or (3) at the end.
23863 # Note that $ac_compile itself does not contain backslashes and begins
23864 # with a dollar sign (not a hyphen), so the echo should work correctly.
23865 lt_compile=`echo "$ac_compile" | $SED \
23866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23868 -e 's:$: $lt_compiler_flag:'`
23869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23870 (eval "$lt_compile" 2>out/conftest.err)
23871 ac_status=$?
23872 cat out/conftest.err >&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23875 then
23876 # The compiler can only warn and ignore the option if not recognized
23877 # So say no if there are warnings
23878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23881 lt_cv_prog_compiler_c_o_CXX=yes
23884 chmod u+w . 2>&5
23885 $RM conftest*
23886 # SGI C++ compiler will create directory out/ii_files/ for
23887 # template instantiation
23888 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23889 $RM out/* && rmdir out
23890 cd ..
23891 $RM -r conftest
23892 $RM conftest*
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23896 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23901 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23902 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23903 $as_echo_n "(cached) " >&6
23904 else
23905 lt_cv_prog_compiler_c_o_CXX=no
23906 $RM -r conftest 2>/dev/null
23907 mkdir conftest
23908 cd conftest
23909 mkdir out
23910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23912 lt_compiler_flag="-o out/conftest2.$ac_objext"
23913 # Insert the option either (1) after the last *FLAGS variable, or
23914 # (2) before a word containing "conftest.", or (3) at the end.
23915 # Note that $ac_compile itself does not contain backslashes and begins
23916 # with a dollar sign (not a hyphen), so the echo should work correctly.
23917 lt_compile=`echo "$ac_compile" | $SED \
23918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23920 -e 's:$: $lt_compiler_flag:'`
23921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23922 (eval "$lt_compile" 2>out/conftest.err)
23923 ac_status=$?
23924 cat out/conftest.err >&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23927 then
23928 # The compiler can only warn and ignore the option if not recognized
23929 # So say no if there are warnings
23930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23933 lt_cv_prog_compiler_c_o_CXX=yes
23936 chmod u+w . 2>&5
23937 $RM conftest*
23938 # SGI C++ compiler will create directory out/ii_files/ for
23939 # template instantiation
23940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23941 $RM out/* && rmdir out
23942 cd ..
23943 $RM -r conftest
23944 $RM conftest*
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23948 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23953 hard_links="nottested"
23954 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
23955 # do not overwrite the value of need_locks provided by the user
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
23957 $as_echo_n "checking if we can lock with hard links... " >&6; }
23958 hard_links=yes
23959 $RM conftest*
23960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23961 touch conftest.a
23962 ln conftest.a conftest.b 2>&5 || hard_links=no
23963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
23965 $as_echo "$hard_links" >&6; }
23966 if test "$hard_links" = no; then
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23968 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23969 need_locks=warn
23971 else
23972 need_locks=no
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23978 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23980 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23981 case $host_os in
23982 aix[4-9]*)
23983 # If we're using GNU nm, then we don't want the "-C" option.
23984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23985 # Also, AIX nm treats weak defined symbols like other global defined
23986 # symbols, whereas GNU nm marks them as "W".
23987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23988 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'
23989 else
23990 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'
23993 pw32*)
23994 export_symbols_cmds_CXX="$ltdll_cmds"
23996 cygwin* | mingw* | cegcc*)
23997 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'
24000 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24002 esac
24003 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
24006 $as_echo "$ld_shlibs_CXX" >&6; }
24007 test "$ld_shlibs_CXX" = no && can_build_shared=no
24009 with_gnu_ld_CXX=$with_gnu_ld
24017 # Do we need to explicitly link libc?
24019 case "x$archive_cmds_need_lc_CXX" in
24020 x|xyes)
24021 # Assume -lc should be added
24022 archive_cmds_need_lc_CXX=yes
24024 if test "$enable_shared" = yes && test "$GCC" = yes; then
24025 case $archive_cmds_CXX in
24026 *'~'*)
24027 # FIXME: we may have to deal with multi-command sequences.
24029 '$CC '*)
24030 # Test whether the compiler implicitly links with -lc since on some
24031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24032 # to ld, don't add -lc before -lgcc.
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
24034 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24035 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
24036 $as_echo_n "(cached) " >&6
24037 else
24038 $RM conftest*
24039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24042 (eval $ac_compile) 2>&5
24043 ac_status=$?
24044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24045 test $ac_status = 0; } 2>conftest.err; then
24046 soname=conftest
24047 lib=conftest
24048 libobjs=conftest.$ac_objext
24049 deplibs=
24050 wl=$lt_prog_compiler_wl_CXX
24051 pic_flag=$lt_prog_compiler_pic_CXX
24052 compiler_flags=-v
24053 linker_flags=-v
24054 verstring=
24055 output_objdir=.
24056 libname=conftest
24057 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
24058 allow_undefined_flag_CXX=
24059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
24060 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
24061 ac_status=$?
24062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24063 test $ac_status = 0; }
24064 then
24065 lt_cv_archive_cmds_need_lc_CXX=no
24066 else
24067 lt_cv_archive_cmds_need_lc_CXX=yes
24069 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
24070 else
24071 cat conftest.err 1>&5
24073 $RM conftest*
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24077 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24078 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
24080 esac
24083 esac
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24149 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24151 library_names_spec=
24152 libname_spec='lib$name'
24153 soname_spec=
24154 shrext_cmds=".so"
24155 postinstall_cmds=
24156 postuninstall_cmds=
24157 finish_cmds=
24158 finish_eval=
24159 shlibpath_var=
24160 shlibpath_overrides_runpath=unknown
24161 version_type=none
24162 dynamic_linker="$host_os ld.so"
24163 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24164 need_lib_prefix=unknown
24165 hardcode_into_libs=no
24167 # when you set need_version to no, make sure it does not cause -set_version
24168 # flags to be left without arguments
24169 need_version=unknown
24171 case $host_os in
24172 aix3*)
24173 version_type=linux
24174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24175 shlibpath_var=LIBPATH
24177 # AIX 3 has no versioning support, so we append a major version to the name.
24178 soname_spec='${libname}${release}${shared_ext}$major'
24181 aix[4-9]*)
24182 version_type=linux
24183 need_lib_prefix=no
24184 need_version=no
24185 hardcode_into_libs=yes
24186 if test "$host_cpu" = ia64; then
24187 # AIX 5 supports IA64
24188 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24189 shlibpath_var=LD_LIBRARY_PATH
24190 else
24191 # With GCC up to 2.95.x, collect2 would create an import file
24192 # for dependence libraries. The import file would start with
24193 # the line `#! .'. This would cause the generated library to
24194 # depend on `.', always an invalid library. This was fixed in
24195 # development snapshots of GCC prior to 3.0.
24196 case $host_os in
24197 aix4 | aix4.[01] | aix4.[01].*)
24198 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24199 echo ' yes '
24200 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
24202 else
24203 can_build_shared=no
24206 esac
24207 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24208 # soname into executable. Probably we can add versioning support to
24209 # collect2, so additional links can be useful in future.
24210 if test "$aix_use_runtimelinking" = yes; then
24211 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24212 # instead of lib<name>.a to let people know that these are not
24213 # typical AIX shared libraries.
24214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24215 else
24216 # We preserve .a as extension for shared libraries through AIX4.2
24217 # and later when we are not doing run time linking.
24218 library_names_spec='${libname}${release}.a $libname.a'
24219 soname_spec='${libname}${release}${shared_ext}$major'
24221 shlibpath_var=LIBPATH
24225 amigaos*)
24226 case $host_cpu in
24227 powerpc)
24228 # Since July 2007 AmigaOS4 officially supports .so libraries.
24229 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24232 m68k)
24233 library_names_spec='$libname.ixlibrary $libname.a'
24234 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24235 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'
24237 esac
24240 beos*)
24241 library_names_spec='${libname}${shared_ext}'
24242 dynamic_linker="$host_os ld.so"
24243 shlibpath_var=LIBRARY_PATH
24246 bsdi[45]*)
24247 version_type=linux
24248 need_version=no
24249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24250 soname_spec='${libname}${release}${shared_ext}$major'
24251 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24252 shlibpath_var=LD_LIBRARY_PATH
24253 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24254 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24255 # the default ld.so.conf also contains /usr/contrib/lib and
24256 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24257 # libtool to hard-code these into programs
24260 cygwin* | mingw* | pw32* | cegcc*)
24261 version_type=windows
24262 shrext_cmds=".dll"
24263 need_version=no
24264 need_lib_prefix=no
24266 case $GCC,$host_os in
24267 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
24268 library_names_spec='$libname.dll.a'
24269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24270 postinstall_cmds='base_file=`basename \${file}`~
24271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24272 dldir=$destdir/`dirname \$dlpath`~
24273 test -d \$dldir || mkdir -p \$dldir~
24274 $install_prog $dir/$dlname \$dldir/$dlname~
24275 chmod a+x \$dldir/$dlname~
24276 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24277 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24280 dlpath=$dir/\$dldll~
24281 $RM \$dlpath'
24282 shlibpath_overrides_runpath=yes
24284 case $host_os in
24285 cygwin*)
24286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24290 mingw* | cegcc*)
24291 # MinGW DLLs use traditional 'lib' prefix
24292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24294 pw32*)
24295 # pw32 DLLs use 'pw' prefix rather than 'lib'
24296 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24298 esac
24302 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24304 esac
24305 dynamic_linker='Win32 ld.exe'
24306 # FIXME: first we should search . and the directory the executable is in
24307 shlibpath_var=PATH
24310 darwin* | rhapsody*)
24311 dynamic_linker="$host_os dyld"
24312 version_type=darwin
24313 need_lib_prefix=no
24314 need_version=no
24315 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24316 soname_spec='${libname}${release}${major}$shared_ext'
24317 shlibpath_overrides_runpath=yes
24318 shlibpath_var=DYLD_LIBRARY_PATH
24319 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24321 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24324 dgux*)
24325 version_type=linux
24326 need_lib_prefix=no
24327 need_version=no
24328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24329 soname_spec='${libname}${release}${shared_ext}$major'
24330 shlibpath_var=LD_LIBRARY_PATH
24333 freebsd* | dragonfly*)
24334 # DragonFly does not have aout. When/if they implement a new
24335 # versioning mechanism, adjust this.
24336 if test -x /usr/bin/objformat; then
24337 objformat=`/usr/bin/objformat`
24338 else
24339 case $host_os in
24340 freebsd[23].*) objformat=aout ;;
24341 *) objformat=elf ;;
24342 esac
24344 version_type=freebsd-$objformat
24345 case $version_type in
24346 freebsd-elf*)
24347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24348 need_version=no
24349 need_lib_prefix=no
24351 freebsd-*)
24352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24353 need_version=yes
24355 esac
24356 shlibpath_var=LD_LIBRARY_PATH
24357 case $host_os in
24358 freebsd2.*)
24359 shlibpath_overrides_runpath=yes
24361 freebsd3.[01]* | freebsdelf3.[01]*)
24362 shlibpath_overrides_runpath=yes
24363 hardcode_into_libs=yes
24365 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24366 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24367 shlibpath_overrides_runpath=no
24368 hardcode_into_libs=yes
24370 *) # from 4.6 on, and DragonFly
24371 shlibpath_overrides_runpath=yes
24372 hardcode_into_libs=yes
24374 esac
24377 haiku*)
24378 version_type=linux
24379 need_lib_prefix=no
24380 need_version=no
24381 dynamic_linker="$host_os runtime_loader"
24382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24383 soname_spec='${libname}${release}${shared_ext}$major'
24384 shlibpath_var=LIBRARY_PATH
24385 shlibpath_overrides_runpath=yes
24386 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24387 hardcode_into_libs=yes
24390 hpux9* | hpux10* | hpux11*)
24391 # Give a soname corresponding to the major version so that dld.sl refuses to
24392 # link against other versions.
24393 version_type=sunos
24394 need_lib_prefix=no
24395 need_version=no
24396 case $host_cpu in
24397 ia64*)
24398 shrext_cmds='.so'
24399 hardcode_into_libs=yes
24400 dynamic_linker="$host_os dld.so"
24401 shlibpath_var=LD_LIBRARY_PATH
24402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24404 soname_spec='${libname}${release}${shared_ext}$major'
24405 if test "X$HPUX_IA64_MODE" = X32; then
24406 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24407 else
24408 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24412 hppa*64*)
24413 shrext_cmds='.sl'
24414 hardcode_into_libs=yes
24415 dynamic_linker="$host_os dld.sl"
24416 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24419 soname_spec='${libname}${release}${shared_ext}$major'
24420 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24424 shrext_cmds='.sl'
24425 dynamic_linker="$host_os dld.sl"
24426 shlibpath_var=SHLIB_PATH
24427 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24429 soname_spec='${libname}${release}${shared_ext}$major'
24431 esac
24432 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24433 postinstall_cmds='chmod 555 $lib'
24434 # or fails outright, so override atomically:
24435 install_override_mode=555
24438 interix[3-9]*)
24439 version_type=linux
24440 need_lib_prefix=no
24441 need_version=no
24442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24443 soname_spec='${libname}${release}${shared_ext}$major'
24444 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24445 shlibpath_var=LD_LIBRARY_PATH
24446 shlibpath_overrides_runpath=no
24447 hardcode_into_libs=yes
24450 irix5* | irix6* | nonstopux*)
24451 case $host_os in
24452 nonstopux*) version_type=nonstopux ;;
24454 if test "$lt_cv_prog_gnu_ld" = yes; then
24455 version_type=linux
24456 else
24457 version_type=irix
24458 fi ;;
24459 esac
24460 need_lib_prefix=no
24461 need_version=no
24462 soname_spec='${libname}${release}${shared_ext}$major'
24463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24464 case $host_os in
24465 irix5* | nonstopux*)
24466 libsuff= shlibsuff=
24469 case $LD in # libtool.m4 will add one of these switches to LD
24470 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24471 libsuff= shlibsuff= libmagic=32-bit;;
24472 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24473 libsuff=32 shlibsuff=N32 libmagic=N32;;
24474 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24475 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24476 *) libsuff= shlibsuff= libmagic=never-match;;
24477 esac
24479 esac
24480 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24481 shlibpath_overrides_runpath=no
24482 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24483 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24484 hardcode_into_libs=yes
24487 # No shared lib support for Linux oldld, aout, or coff.
24488 linux*oldld* | linux*aout* | linux*coff*)
24489 dynamic_linker=no
24492 # This must be Linux ELF.
24494 # uclinux* changes (here and below) have been submitted to the libtool
24495 # project, but have not yet been accepted: they are GCC-local changes
24496 # for the time being. (See
24497 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24498 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
24499 version_type=linux
24500 need_lib_prefix=no
24501 need_version=no
24502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24503 soname_spec='${libname}${release}${shared_ext}$major'
24504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24505 shlibpath_var=LD_LIBRARY_PATH
24506 shlibpath_overrides_runpath=no
24508 # Some binutils ld are patched to set DT_RUNPATH
24509 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24510 $as_echo_n "(cached) " >&6
24511 else
24512 lt_cv_shlibpath_overrides_runpath=no
24513 save_LDFLAGS=$LDFLAGS
24514 save_libdir=$libdir
24515 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24516 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24518 /* end confdefs.h. */
24521 main ()
24525 return 0;
24527 _ACEOF
24528 if ac_fn_cxx_try_link "$LINENO"; then :
24529 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24530 lt_cv_shlibpath_overrides_runpath=yes
24533 rm -f core conftest.err conftest.$ac_objext \
24534 conftest$ac_exeext conftest.$ac_ext
24535 LDFLAGS=$save_LDFLAGS
24536 libdir=$save_libdir
24540 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24542 # This implies no fast_install, which is unacceptable.
24543 # Some rework will be needed to allow for fast_install
24544 # before this can be enabled.
24545 hardcode_into_libs=yes
24547 # Append ld.so.conf contents to the search path
24548 if test -f /etc/ld.so.conf; then
24549 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' ' '`
24550 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24553 # We used to test for /lib/ld.so.1 and disable shared libraries on
24554 # powerpc, because MkLinux only supported shared libraries with the
24555 # GNU dynamic linker. Since this was broken with cross compilers,
24556 # most powerpc-linux boxes support dynamic linking these days and
24557 # people can always --disable-shared, the test was removed, and we
24558 # assume the GNU/Linux dynamic linker is in use.
24559 dynamic_linker='GNU/Linux ld.so'
24562 netbsd*)
24563 version_type=sunos
24564 need_lib_prefix=no
24565 need_version=no
24566 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24569 dynamic_linker='NetBSD (a.out) ld.so'
24570 else
24571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24572 soname_spec='${libname}${release}${shared_ext}$major'
24573 dynamic_linker='NetBSD ld.elf_so'
24575 shlibpath_var=LD_LIBRARY_PATH
24576 shlibpath_overrides_runpath=yes
24577 hardcode_into_libs=yes
24580 newsos6)
24581 version_type=linux
24582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24583 shlibpath_var=LD_LIBRARY_PATH
24584 shlibpath_overrides_runpath=yes
24587 *nto* | *qnx*)
24588 version_type=qnx
24589 need_lib_prefix=no
24590 need_version=no
24591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24592 soname_spec='${libname}${release}${shared_ext}$major'
24593 shlibpath_var=LD_LIBRARY_PATH
24594 shlibpath_overrides_runpath=no
24595 hardcode_into_libs=yes
24596 dynamic_linker='ldqnx.so'
24599 openbsd*)
24600 version_type=sunos
24601 sys_lib_dlsearch_path_spec="/usr/lib"
24602 need_lib_prefix=no
24603 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24604 case $host_os in
24605 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24606 *) need_version=no ;;
24607 esac
24608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24610 shlibpath_var=LD_LIBRARY_PATH
24611 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24612 case $host_os in
24613 openbsd2.[89] | openbsd2.[89].*)
24614 shlibpath_overrides_runpath=no
24617 shlibpath_overrides_runpath=yes
24619 esac
24620 else
24621 shlibpath_overrides_runpath=yes
24625 os2*)
24626 libname_spec='$name'
24627 shrext_cmds=".dll"
24628 need_lib_prefix=no
24629 library_names_spec='$libname${shared_ext} $libname.a'
24630 dynamic_linker='OS/2 ld.exe'
24631 shlibpath_var=LIBPATH
24634 osf3* | osf4* | osf5*)
24635 version_type=osf
24636 need_lib_prefix=no
24637 need_version=no
24638 soname_spec='${libname}${release}${shared_ext}$major'
24639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24640 shlibpath_var=LD_LIBRARY_PATH
24641 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24642 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24645 rdos*)
24646 dynamic_linker=no
24649 solaris*)
24650 version_type=linux
24651 need_lib_prefix=no
24652 need_version=no
24653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24654 soname_spec='${libname}${release}${shared_ext}$major'
24655 shlibpath_var=LD_LIBRARY_PATH
24656 shlibpath_overrides_runpath=yes
24657 hardcode_into_libs=yes
24658 # ldd complains unless libraries are executable
24659 postinstall_cmds='chmod +x $lib'
24662 sunos4*)
24663 version_type=sunos
24664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24665 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24666 shlibpath_var=LD_LIBRARY_PATH
24667 shlibpath_overrides_runpath=yes
24668 if test "$with_gnu_ld" = yes; then
24669 need_lib_prefix=no
24671 need_version=yes
24674 sysv4 | sysv4.3*)
24675 version_type=linux
24676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24677 soname_spec='${libname}${release}${shared_ext}$major'
24678 shlibpath_var=LD_LIBRARY_PATH
24679 case $host_vendor in
24680 sni)
24681 shlibpath_overrides_runpath=no
24682 need_lib_prefix=no
24683 runpath_var=LD_RUN_PATH
24685 siemens)
24686 need_lib_prefix=no
24688 motorola)
24689 need_lib_prefix=no
24690 need_version=no
24691 shlibpath_overrides_runpath=no
24692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24694 esac
24697 sysv4*MP*)
24698 if test -d /usr/nec ;then
24699 version_type=linux
24700 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24701 soname_spec='$libname${shared_ext}.$major'
24702 shlibpath_var=LD_LIBRARY_PATH
24706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24707 version_type=freebsd-elf
24708 need_lib_prefix=no
24709 need_version=no
24710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24711 soname_spec='${libname}${release}${shared_ext}$major'
24712 shlibpath_var=LD_LIBRARY_PATH
24713 shlibpath_overrides_runpath=yes
24714 hardcode_into_libs=yes
24715 if test "$with_gnu_ld" = yes; then
24716 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24717 else
24718 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24719 case $host_os in
24720 sco3.2v5*)
24721 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24723 esac
24725 sys_lib_dlsearch_path_spec='/usr/lib'
24728 tpf*)
24729 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24730 version_type=linux
24731 need_lib_prefix=no
24732 need_version=no
24733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24734 shlibpath_var=LD_LIBRARY_PATH
24735 shlibpath_overrides_runpath=no
24736 hardcode_into_libs=yes
24739 uts4*)
24740 version_type=linux
24741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24742 soname_spec='${libname}${release}${shared_ext}$major'
24743 shlibpath_var=LD_LIBRARY_PATH
24746 # Shared libraries for VwWorks, >= 7 only at this stage
24747 # and (fpic) still incompatible with "large" code models
24748 # in a few configurations. Only for RTP mode in any case,
24749 # and upon explicit request at configure time.
24750 vxworks7*)
24751 dynamic_linker=no
24752 case ${with_multisubdir}-${enable_shared} in
24753 *large*)
24755 *mrtp*-yes)
24756 version_type=linux
24757 need_lib_prefix=no
24758 need_version=no
24759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24760 soname_spec='${libname}${release}${shared_ext}$major'
24761 dynamic_linker="$host_os module_loader"
24763 esac
24766 dynamic_linker=no
24768 esac
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24770 $as_echo "$dynamic_linker" >&6; }
24771 test "$dynamic_linker" = no && can_build_shared=no
24773 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24774 if test "$GCC" = yes; then
24775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24778 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24779 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24781 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24782 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24823 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24824 hardcode_action_CXX=
24825 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24826 test -n "$runpath_var_CXX" ||
24827 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24829 # We can hardcode non-existent directories.
24830 if test "$hardcode_direct_CXX" != no &&
24831 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24832 # have to relink, otherwise we might link with an installed library
24833 # when we should be linking with a yet-to-be-installed one
24834 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24835 test "$hardcode_minus_L_CXX" != no; then
24836 # Linking always hardcodes the temporary library directory.
24837 hardcode_action_CXX=relink
24838 else
24839 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24840 hardcode_action_CXX=immediate
24842 else
24843 # We cannot hardcode anything, or else we can only hardcode existing
24844 # directories.
24845 hardcode_action_CXX=unsupported
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24848 $as_echo "$hardcode_action_CXX" >&6; }
24850 if test "$hardcode_action_CXX" = relink ||
24851 test "$inherit_rpath_CXX" = yes; then
24852 # Fast installation is not supported
24853 enable_fast_install=no
24854 elif test "$shlibpath_overrides_runpath" = yes ||
24855 test "$enable_shared" = no; then
24856 # Fast installation is not necessary
24857 enable_fast_install=needless
24866 fi # test -n "$compiler"
24868 CC=$lt_save_CC
24869 LDCXX=$LD
24870 LD=$lt_save_LD
24871 GCC=$lt_save_GCC
24872 with_gnu_ld=$lt_save_with_gnu_ld
24873 lt_cv_path_LDCXX=$lt_cv_path_LD
24874 lt_cv_path_LD=$lt_save_path_LD
24875 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24876 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24877 fi # test "$_lt_caught_CXX_error" != yes
24879 ac_ext=cpp
24880 ac_cpp='$CXXCPP $CPPFLAGS'
24881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24900 # Only expand once:
24906 if test x$enable_darwin_at_rpath = xyes; then
24907 ENABLE_DARWIN_AT_RPATH_TRUE=
24908 ENABLE_DARWIN_AT_RPATH_FALSE='#'
24909 else
24910 ENABLE_DARWIN_AT_RPATH_TRUE='#'
24911 ENABLE_DARWIN_AT_RPATH_FALSE=
24914 DARWIN_DO_EXTRA_RPATH=0
24916 # Check whether --with-darwin-extra-rpath was given.
24917 if test "${with_darwin_extra_rpath+set}" = set; then :
24918 withval=$with_darwin_extra_rpath; if test x"$withval" != x; then
24919 DARWIN_ADD_RPATH="$withval"
24920 DARWIN_DO_EXTRA_RPATH=1
24925 cat >>confdefs.h <<_ACEOF
24926 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
24927 _ACEOF
24930 cat >>confdefs.h <<_ACEOF
24931 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
24932 _ACEOF
24935 # Identify the assembler which will work hand-in-glove with the newly
24936 # built GCC, so that we can examine its features. This is the assembler
24937 # which will be driven by the driver program.
24939 # If build != host, and we aren't building gas in-tree, we identify a
24940 # build->target assembler and hope that it will have the same features
24941 # as the host->target assembler we'll be using.
24942 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
24944 if ${gcc_cv_as+:} false; then :
24946 else
24948 if test -x "$DEFAULT_ASSEMBLER"; then
24949 gcc_cv_as="$DEFAULT_ASSEMBLER"
24950 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
24951 && test -f ../gas/Makefile \
24952 && test x$build = x$host; then
24953 gcc_cv_as=../gas/as-new$build_exeext
24954 elif test -x as$build_exeext; then
24955 # Build using assembler in the current directory.
24956 gcc_cv_as=./as$build_exeext
24957 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
24958 gcc_cv_as="$AS_FOR_TARGET"
24959 else
24960 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
24961 set dummy $AS_FOR_TARGET; ac_word=$2
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24963 $as_echo_n "checking for $ac_word... " >&6; }
24964 if ${ac_cv_path_gcc_cv_as+:} false; then :
24965 $as_echo_n "(cached) " >&6
24966 else
24967 case $gcc_cv_as in
24968 [\\/]* | ?:[\\/]*)
24969 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
24972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24973 for as_dir in $PATH
24975 IFS=$as_save_IFS
24976 test -z "$as_dir" && as_dir=.
24977 for ac_exec_ext in '' $ac_executable_extensions; do
24978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24979 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
24980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24981 break 2
24983 done
24984 done
24985 IFS=$as_save_IFS
24988 esac
24990 gcc_cv_as=$ac_cv_path_gcc_cv_as
24991 if test -n "$gcc_cv_as"; then
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
24993 $as_echo "$gcc_cv_as" >&6; }
24994 else
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24996 $as_echo "no" >&6; }
25003 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
25005 case "$ORIGINAL_AS_FOR_TARGET" in
25006 ./as | ./as$build_exeext) ;;
25007 *) ac_config_files="$ac_config_files as:exec-tool.in"
25009 esac
25011 default_ld=
25012 # Check whether --enable-ld was given.
25013 if test "${enable_ld+set}" = set; then :
25014 enableval=$enable_ld; case "${enableval}" in
25016 default_ld=ld.gold
25018 esac
25022 install_gold_as_default=no
25023 # Check whether --enable-gold was given.
25024 if test "${enable_gold+set}" = set; then :
25025 enableval=$enable_gold; case "${enableval}" in
25026 default)
25027 install_gold_as_default=yes
25029 yes)
25030 if test x${default_ld} != x; then
25031 install_gold_as_default=yes
25037 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
25039 esac
25043 # Identify the linker which will work hand-in-glove with the newly
25044 # built GCC, so that we can examine its features. This is the linker
25045 # which will be driven by the driver program.
25047 # If build != host, and we aren't building gas in-tree, we identify a
25048 # build->target linker and hope that it will have the same features
25049 # as the host->target linker we'll be using.
25050 gcc_cv_gld_major_version=
25051 gcc_cv_gld_minor_version=
25052 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
25053 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
25054 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
25056 if ${gcc_cv_ld+:} false; then :
25058 else
25060 if test -x "$DEFAULT_LINKER"; then
25061 gcc_cv_ld="$DEFAULT_LINKER"
25062 elif test $install_gold_as_default = yes \
25063 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
25064 && test -f ../gold/Makefile \
25065 && test x$build = x$host; then
25066 gcc_cv_ld=../gold/ld-new$build_exeext
25067 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
25068 && test -f ../ld/Makefile \
25069 && test x$build = x$host; then
25070 gcc_cv_ld=../ld/ld-new$build_exeext
25071 elif test -x collect-ld$build_exeext; then
25072 # Build using linker in the current directory.
25073 gcc_cv_ld=./collect-ld$build_exeext
25074 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
25075 gcc_cv_ld="$LD_FOR_TARGET"
25076 else
25077 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25078 set dummy $LD_FOR_TARGET; ac_word=$2
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25080 $as_echo_n "checking for $ac_word... " >&6; }
25081 if ${ac_cv_path_gcc_cv_ld+:} false; then :
25082 $as_echo_n "(cached) " >&6
25083 else
25084 case $gcc_cv_ld in
25085 [\\/]* | ?:[\\/]*)
25086 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
25089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25090 for as_dir in $PATH
25092 IFS=$as_save_IFS
25093 test -z "$as_dir" && as_dir=.
25094 for ac_exec_ext in '' $ac_executable_extensions; do
25095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25096 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
25097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25098 break 2
25100 done
25101 done
25102 IFS=$as_save_IFS
25105 esac
25107 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
25108 if test -n "$gcc_cv_ld"; then
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25110 $as_echo "$gcc_cv_ld" >&6; }
25111 else
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25113 $as_echo "no" >&6; }
25120 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
25121 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25122 # if the PLUGIN_LD is set ld-new, just have it as ld
25123 # as that is the installed named.
25124 if test x$PLUGIN_LD_SUFFIX = xld-new \
25125 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
25126 PLUGIN_LD_SUFFIX=ld
25129 # Check whether --with-plugin-ld was given.
25130 if test "${with_plugin_ld+set}" = set; then :
25131 withval=$with_plugin_ld; if test x"$withval" != x; then
25132 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
25133 PLUGIN_LD_SUFFIX="$withval"
25139 cat >>confdefs.h <<_ACEOF
25140 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25141 _ACEOF
25144 # Check to see if we are using gold instead of ld
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25146 $as_echo_n "checking whether we are using gold... " >&6; }
25147 ld_is_gold=no
25148 if test x$gcc_cv_ld != x; then
25149 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25150 | grep "GNU gold" > /dev/null; then
25151 ld_is_gold=yes
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25155 $as_echo "$ld_is_gold" >&6; }
25157 # Check to see if we are using mold instead of ld
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25159 $as_echo_n "checking whether we are using mold... " >&6; }
25160 ld_is_mold=no
25161 if test x$gcc_cv_ld != x; then
25162 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25163 | grep "mold" > /dev/null; then
25164 ld_is_mold=yes
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25168 $as_echo "$ld_is_mold" >&6; }
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25172 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25173 # Check to see if default ld is not gold, but gold is
25174 # available and has support for split stack. If gcc was configured
25175 # with gold then no checking is done.
25177 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
25179 # For platforms other than powerpc64*, enable as appropriate.
25181 gold_non_default=no
25182 ld_gold=`which ${gcc_cv_ld}.gold`
25183 # Make sure this gold has minimal split stack support
25184 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
25185 ld_vers=`$ld_gold --version | sed 1q`
25186 gold_vers=`echo $ld_vers | sed -n \
25187 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25188 case $target in
25189 # check that the gold version contains the complete split stack support
25190 # on powerpc64 big and little endian
25191 powerpc64*-*-*)
25192 case "$gold_vers" in
25193 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
25195 *) gold_non_default=no
25197 esac
25199 esac
25201 if test $gold_non_default = yes; then
25203 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25208 $as_echo "$gold_non_default" >&6; }
25210 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
25212 case "$ORIGINAL_LD_FOR_TARGET" in
25213 ./collect-ld | ./collect-ld$build_exeext) ;;
25214 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
25216 esac
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25219 $as_echo_n "checking what linker to use... " >&6; }
25220 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
25221 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
25222 # Single tree build which includes ld. We want to prefer it
25223 # over whatever linker top-level may have detected, since
25224 # we'll use what we're building after installation anyway.
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25226 $as_echo "newly built ld" >&6; }
25227 in_tree_ld=yes
25228 in_tree_ld_is_elf=no
25229 if (grep 'EMUL = .*elf' ../ld/Makefile \
25230 || grep 'EMUL = .*linux' ../ld/Makefile \
25231 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
25232 in_tree_ld_is_elf=yes
25233 elif test "$ld_is_gold" = yes; then
25234 in_tree_ld_is_elf=yes
25236 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
25238 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25239 if test x$gcc_cv_gld_version != x; then
25240 break
25242 done
25243 case $gcc_cv_gld_version in
25244 VERSION=[0-9]*) ;;
25245 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
25246 esac
25247 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25248 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25249 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
25250 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
25251 else
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25253 $as_echo "$gcc_cv_ld" >&6; }
25254 in_tree_ld=no
25255 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25256 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
25257 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
25263 # Figure out what nm we will be using.
25264 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25265 if ${gcc_cv_nm+:} false; then :
25267 else
25269 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25270 && test -f ../binutils/Makefile \
25271 && test x$build = x$host; then
25272 gcc_cv_nm=../binutils/nm-new$build_exeext
25273 elif test -x nm$build_exeext; then
25274 gcc_cv_nm=./nm$build_exeext
25275 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
25276 gcc_cv_nm="$NM_FOR_TARGET"
25277 else
25278 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25279 set dummy $NM_FOR_TARGET; ac_word=$2
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25281 $as_echo_n "checking for $ac_word... " >&6; }
25282 if ${ac_cv_path_gcc_cv_nm+:} false; then :
25283 $as_echo_n "(cached) " >&6
25284 else
25285 case $gcc_cv_nm in
25286 [\\/]* | ?:[\\/]*)
25287 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
25290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25291 for as_dir in $PATH
25293 IFS=$as_save_IFS
25294 test -z "$as_dir" && as_dir=.
25295 for ac_exec_ext in '' $ac_executable_extensions; do
25296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25297 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
25298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25299 break 2
25301 done
25302 done
25303 IFS=$as_save_IFS
25306 esac
25308 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
25309 if test -n "$gcc_cv_nm"; then
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25311 $as_echo "$gcc_cv_nm" >&6; }
25312 else
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25314 $as_echo "no" >&6; }
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25322 $as_echo_n "checking what nm to use... " >&6; }
25323 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
25324 # Single tree build which includes binutils.
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25326 $as_echo "newly built nm" >&6; }
25327 in_tree_nm=yes
25328 else
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25330 $as_echo "$gcc_cv_nm" >&6; }
25331 in_tree_nm=no
25334 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
25336 case "$ORIGINAL_NM_FOR_TARGET" in
25337 ./nm | ./nm$build_exeext) ;;
25338 *) ac_config_files="$ac_config_files nm:exec-tool.in"
25340 esac
25343 # Figure out what objdump we will be using.
25344 if ${gcc_cv_objdump+:} false; then :
25346 else
25348 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25349 && test -f ../binutils/Makefile \
25350 && test x$build = x$host; then
25351 # Single tree build which includes binutils.
25352 gcc_cv_objdump=../binutils/objdump$build_exeext
25353 elif test -x objdump$build_exeext; then
25354 gcc_cv_objdump=./objdump$build_exeext
25355 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
25356 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
25357 else
25358 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25359 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25361 $as_echo_n "checking for $ac_word... " >&6; }
25362 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
25363 $as_echo_n "(cached) " >&6
25364 else
25365 case $gcc_cv_objdump in
25366 [\\/]* | ?:[\\/]*)
25367 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
25370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25371 for as_dir in $PATH
25373 IFS=$as_save_IFS
25374 test -z "$as_dir" && as_dir=.
25375 for ac_exec_ext in '' $ac_executable_extensions; do
25376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25377 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
25378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25379 break 2
25381 done
25382 done
25383 IFS=$as_save_IFS
25386 esac
25388 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
25389 if test -n "$gcc_cv_objdump"; then
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25391 $as_echo "$gcc_cv_objdump" >&6; }
25392 else
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25394 $as_echo "no" >&6; }
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25402 $as_echo_n "checking what objdump to use... " >&6; }
25403 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
25404 # Single tree build which includes binutils.
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25406 $as_echo "newly built objdump" >&6; }
25407 elif test x$gcc_cv_objdump = x; then
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25409 $as_echo "not found" >&6; }
25410 else
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25412 $as_echo "$gcc_cv_objdump" >&6; }
25415 # Figure out what readelf we will be using.
25416 if ${gcc_cv_readelf+:} false; then :
25418 else
25420 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25421 && test -f ../binutils/Makefile \
25422 && test x$build = x$host; then
25423 # Single tree build which includes binutils.
25424 gcc_cv_readelf=../binutils/readelf$build_exeext
25425 elif test -x readelf$build_exeext; then
25426 gcc_cv_readelf=./readelf$build_exeext
25427 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
25428 gcc_cv_readelf="$READELF_FOR_TARGET"
25429 else
25430 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25431 set dummy $READELF_FOR_TARGET; ac_word=$2
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25433 $as_echo_n "checking for $ac_word... " >&6; }
25434 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
25435 $as_echo_n "(cached) " >&6
25436 else
25437 case $gcc_cv_readelf in
25438 [\\/]* | ?:[\\/]*)
25439 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
25442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25443 for as_dir in $PATH
25445 IFS=$as_save_IFS
25446 test -z "$as_dir" && as_dir=.
25447 for ac_exec_ext in '' $ac_executable_extensions; do
25448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25449 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
25450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25451 break 2
25453 done
25454 done
25455 IFS=$as_save_IFS
25458 esac
25460 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
25461 if test -n "$gcc_cv_readelf"; then
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25463 $as_echo "$gcc_cv_readelf" >&6; }
25464 else
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25466 $as_echo "no" >&6; }
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25474 $as_echo_n "checking what readelf to use... " >&6; }
25475 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
25476 # Single tree build which includes binutils.
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25478 $as_echo "newly built readelf" >&6; }
25479 elif test x$gcc_cv_readelf = x; then
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25481 $as_echo "not found" >&6; }
25482 else
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25484 $as_echo "$gcc_cv_readelf" >&6; }
25487 # Figure out what otool we will be using.
25488 if ${gcc_cv_otool+:} false; then :
25490 else
25492 if test -x otool$build_exeext; then
25493 gcc_cv_otool=./otool$build_exeext
25494 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
25495 gcc_cv_otool="$OTOOL_FOR_TARGET"
25496 else
25497 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25498 set dummy $OTOOL_FOR_TARGET; ac_word=$2
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25500 $as_echo_n "checking for $ac_word... " >&6; }
25501 if ${ac_cv_path_gcc_cv_otool+:} false; then :
25502 $as_echo_n "(cached) " >&6
25503 else
25504 case $gcc_cv_otool in
25505 [\\/]* | ?:[\\/]*)
25506 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
25509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25510 for as_dir in $PATH
25512 IFS=$as_save_IFS
25513 test -z "$as_dir" && as_dir=.
25514 for ac_exec_ext in '' $ac_executable_extensions; do
25515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25516 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
25517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25518 break 2
25520 done
25521 done
25522 IFS=$as_save_IFS
25525 esac
25527 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
25528 if test -n "$gcc_cv_otool"; then
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25530 $as_echo "$gcc_cv_otool" >&6; }
25531 else
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25533 $as_echo "no" >&6; }
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25541 $as_echo_n "checking what otool to use... " >&6; }
25542 if test x$gcc_cv_otool = x; then
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25544 $as_echo "not found" >&6; }
25545 else
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25547 $as_echo "$gcc_cv_otool" >&6; }
25550 # Figure out the dsymutil we will use.
25551 if ${gcc_cv_dsymutil+:} false; then :
25553 else
25555 if test -x "$DEFAULT_DSYMUTIL"; then
25556 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
25557 elif test -x dsymutil$build_exeext; then
25558 gcc_cv_dsymutil=./dsymutil$build_exeext
25559 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
25560 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
25561 elif ( set dummy $DSYMUTIL; test -x $2 ); then
25562 gcc_cv_dsymutil=$DSYMUTIL
25563 else
25564 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25565 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25567 $as_echo_n "checking for $ac_word... " >&6; }
25568 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
25569 $as_echo_n "(cached) " >&6
25570 else
25571 case $gcc_cv_dsymutil in
25572 [\\/]* | ?:[\\/]*)
25573 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
25576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25577 for as_dir in $PATH
25579 IFS=$as_save_IFS
25580 test -z "$as_dir" && as_dir=.
25581 for ac_exec_ext in '' $ac_executable_extensions; do
25582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25583 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
25584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25585 break 2
25587 done
25588 done
25589 IFS=$as_save_IFS
25592 esac
25594 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
25595 if test -n "$gcc_cv_dsymutil"; then
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25597 $as_echo "$gcc_cv_dsymutil" >&6; }
25598 else
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25600 $as_echo "no" >&6; }
25607 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
25609 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25610 ./dsymutil | ./dsymutil$build_exeext) ;;
25611 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
25613 esac
25615 # Figure out what assembler alignment features are present.
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25617 $as_echo_n "checking assembler flags... " >&6; }
25618 if ${gcc_cv_as_flags+:} false; then :
25619 $as_echo_n "(cached) " >&6
25620 else
25621 case "$target" in
25622 i[34567]86-*-linux*)
25623 gcc_cv_as_flags=--32
25625 x86_64-*-linux-gnux32)
25626 gcc_cv_as_flags=--x32
25628 x86_64-*-linux*)
25629 gcc_cv_as_flags=--64
25631 powerpc*-*-darwin*)
25632 gcc_cv_as_flags="-arch ppc"
25635 gcc_cv_as_flags=" "
25637 esac
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25640 $as_echo "$gcc_cv_as_flags" >&6; }
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25643 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25644 if ${gcc_cv_as_balign_and_p2align+:} false; then :
25645 $as_echo_n "(cached) " >&6
25646 else
25647 gcc_cv_as_balign_and_p2align=no
25648 if test x$gcc_cv_as != x; then
25649 $as_echo '.balign 4
25650 .p2align 2' > conftest.s
25651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25653 (eval $ac_try) 2>&5
25654 ac_status=$?
25655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25656 test $ac_status = 0; }; }
25657 then
25658 gcc_cv_as_balign_and_p2align=yes
25659 else
25660 echo "configure: failed program was" >&5
25661 cat conftest.s >&5
25663 rm -f conftest.o conftest.s
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25667 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25668 if test $gcc_cv_as_balign_and_p2align = yes; then
25670 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25676 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25677 if ${gcc_cv_as_max_skip_p2align+:} false; then :
25678 $as_echo_n "(cached) " >&6
25679 else
25680 gcc_cv_as_max_skip_p2align=no
25681 if test x$gcc_cv_as != x; then
25682 $as_echo '.p2align 4,,7' > conftest.s
25683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25685 (eval $ac_try) 2>&5
25686 ac_status=$?
25687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25688 test $ac_status = 0; }; }
25689 then
25690 gcc_cv_as_max_skip_p2align=yes
25691 else
25692 echo "configure: failed program was" >&5
25693 cat conftest.s >&5
25695 rm -f conftest.o conftest.s
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25699 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25700 if test $gcc_cv_as_max_skip_p2align = yes; then
25702 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25708 $as_echo_n "checking assembler for .literal16... " >&6; }
25709 if ${gcc_cv_as_literal16+:} false; then :
25710 $as_echo_n "(cached) " >&6
25711 else
25712 gcc_cv_as_literal16=no
25713 if test x$gcc_cv_as != x; then
25714 $as_echo '.literal16' > conftest.s
25715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25717 (eval $ac_try) 2>&5
25718 ac_status=$?
25719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25720 test $ac_status = 0; }; }
25721 then
25722 gcc_cv_as_literal16=yes
25723 else
25724 echo "configure: failed program was" >&5
25725 cat conftest.s >&5
25727 rm -f conftest.o conftest.s
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
25731 $as_echo "$gcc_cv_as_literal16" >&6; }
25732 if test $gcc_cv_as_literal16 = yes; then
25734 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25740 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25741 if ${gcc_cv_as_subsection_m1+:} false; then :
25742 $as_echo_n "(cached) " >&6
25743 else
25744 gcc_cv_as_subsection_m1=no
25745 if test x$gcc_cv_as != x; then
25746 $as_echo 'conftest_label1: .word 0
25747 .subsection -1
25748 conftest_label2: .word 0
25749 .previous' > conftest.s
25750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25752 (eval $ac_try) 2>&5
25753 ac_status=$?
25754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25755 test $ac_status = 0; }; }
25756 then
25757 if test x$gcc_cv_nm != x; then
25758 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
25759 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
25760 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
25761 then :
25762 else gcc_cv_as_subsection_m1=yes
25764 rm -f conftest.nm1 conftest.nm2
25766 else
25767 echo "configure: failed program was" >&5
25768 cat conftest.s >&5
25770 rm -f conftest.o conftest.s
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25774 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25775 if test $gcc_cv_as_subsection_m1 = yes; then
25777 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25783 $as_echo_n "checking assembler for .weak... " >&6; }
25784 if ${gcc_cv_as_weak+:} false; then :
25785 $as_echo_n "(cached) " >&6
25786 else
25787 gcc_cv_as_weak=no
25788 if test x$gcc_cv_as != x; then
25789 $as_echo ' .weak foobar' > conftest.s
25790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25792 (eval $ac_try) 2>&5
25793 ac_status=$?
25794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25795 test $ac_status = 0; }; }
25796 then
25797 gcc_cv_as_weak=yes
25798 else
25799 echo "configure: failed program was" >&5
25800 cat conftest.s >&5
25802 rm -f conftest.o conftest.s
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25806 $as_echo "$gcc_cv_as_weak" >&6; }
25807 if test $gcc_cv_as_weak = yes; then
25809 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25815 $as_echo_n "checking assembler for .weakref... " >&6; }
25816 if ${gcc_cv_as_weakref+:} false; then :
25817 $as_echo_n "(cached) " >&6
25818 else
25819 gcc_cv_as_weakref=no
25820 if test x$gcc_cv_as != x; then
25821 $as_echo ' .weakref foobar, barfnot' > conftest.s
25822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25824 (eval $ac_try) 2>&5
25825 ac_status=$?
25826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25827 test $ac_status = 0; }; }
25828 then
25829 gcc_cv_as_weakref=yes
25830 else
25831 echo "configure: failed program was" >&5
25832 cat conftest.s >&5
25834 rm -f conftest.o conftest.s
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25838 $as_echo "$gcc_cv_as_weakref" >&6; }
25839 if test $gcc_cv_as_weakref = yes; then
25841 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25847 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25848 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
25849 $as_echo_n "(cached) " >&6
25850 else
25851 gcc_cv_as_nsubspa_comdat=no
25852 if test x$gcc_cv_as != x; then
25853 $as_echo ' .SPACE $TEXT$
25854 .NSUBSPA $CODE$,COMDAT' > conftest.s
25855 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25857 (eval $ac_try) 2>&5
25858 ac_status=$?
25859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25860 test $ac_status = 0; }; }
25861 then
25862 gcc_cv_as_nsubspa_comdat=yes
25863 else
25864 echo "configure: failed program was" >&5
25865 cat conftest.s >&5
25867 rm -f conftest.o conftest.s
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
25871 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
25872 if test $gcc_cv_as_nsubspa_comdat = yes; then
25874 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
25879 # .hidden needs to be supported in both the assembler and the linker,
25880 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
25881 # This is irritatingly difficult to feature test for; we have to check the
25882 # date string after the version number. If we've got an in-tree
25883 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
25884 # to be safe.
25885 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
25886 case "${target}" in
25887 *-*-aix*)
25888 conftest_s=' .globl foobar,hidden'
25891 conftest_s=' .hidden foobar
25892 foobar:'
25894 esac
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
25896 $as_echo_n "checking assembler for .hidden... " >&6; }
25897 if ${gcc_cv_as_hidden+:} false; then :
25898 $as_echo_n "(cached) " >&6
25899 else
25900 gcc_cv_as_hidden=no
25901 if test x$gcc_cv_as != x; then
25902 $as_echo "$conftest_s" > conftest.s
25903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25905 (eval $ac_try) 2>&5
25906 ac_status=$?
25907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25908 test $ac_status = 0; }; }
25909 then
25910 gcc_cv_as_hidden=yes
25911 else
25912 echo "configure: failed program was" >&5
25913 cat conftest.s >&5
25915 rm -f conftest.o conftest.s
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
25919 $as_echo "$gcc_cv_as_hidden" >&6; }
25922 case "${target}" in
25923 *-*-darwin*)
25924 # Darwin as has some visibility support, though with a different syntax.
25925 gcc_cv_as_hidden=yes
25927 esac
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .base64" >&5
25930 $as_echo_n "checking assembler for .base64... " >&6; }
25931 if ${gcc_cv_as_base64+:} false; then :
25932 $as_echo_n "(cached) " >&6
25933 else
25934 gcc_cv_as_base64=no
25935 if test x$gcc_cv_as != x; then
25936 $as_echo ' .section .rodata
25937 .base64 "Tm9uIHB1ZG9yIGVzdCBuaWwgc2NpcmUsIHB1ZG9yIG5pbCBkaXNjZXJlIHZlbGxlLgo="' > conftest.s
25938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }
25944 then
25945 gcc_cv_as_base64=yes
25946 else
25947 echo "configure: failed program was" >&5
25948 cat conftest.s >&5
25950 rm -f conftest.o conftest.s
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_base64" >&5
25954 $as_echo "$gcc_cv_as_base64" >&6; }
25955 if test $gcc_cv_as_base64 = yes; then
25957 $as_echo "#define HAVE_GAS_BASE64 1" >>confdefs.h
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .cv_ucomp" >&5
25963 $as_echo_n "checking assembler for .cv_ucomp... " >&6; }
25964 if ${gcc_cv_as_cv_ucomp+:} false; then :
25965 $as_echo_n "(cached) " >&6
25966 else
25967 gcc_cv_as_cv_ucomp=no
25968 if test x$gcc_cv_as != x; then
25969 $as_echo '.cv_ucomp 0' > conftest.s
25970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25972 (eval $ac_try) 2>&5
25973 ac_status=$?
25974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25975 test $ac_status = 0; }; }
25976 then
25977 gcc_cv_as_cv_ucomp=yes
25978 else
25979 echo "configure: failed program was" >&5
25980 cat conftest.s >&5
25982 rm -f conftest.o conftest.s
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cv_ucomp" >&5
25986 $as_echo "$gcc_cv_as_cv_ucomp" >&6; }
25987 if test $gcc_cv_as_cv_ucomp = yes; then
25989 $as_echo "#define HAVE_GAS_CV_UCOMP 1" >>confdefs.h
25994 # gnu_indirect_function type is an extension proposed at
25995 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
25996 # selection of function implementation
25997 # Check whether --enable-gnu-indirect-function was given.
25998 if test "${enable_gnu_indirect_function+set}" = set; then :
25999 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
26000 yes | no) ;;
26001 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
26002 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26003 esac
26004 else
26005 enable_gnu_indirect_function="$default_gnu_indirect_function"
26009 case "${target}" in
26010 riscv*-*-linux*)
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
26012 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
26013 cat > conftest.s <<EOF
26014 .text
26015 .type foo_resolver, @function
26016 foo_resolver:
26018 .size foo_resolver, .-foo_resolver
26020 .globl foo
26021 .type foo, %gnu_indirect_function
26022 .set foo, foo_resolver
26024 .globl bar
26025 .type bar, @function
26026 bar:
26027 call foo
26029 .size bar, .-bar
26031 if test x$gcc_cv_as != x \
26032 && test x$gcc_cv_ld != x \
26033 && test x$gcc_cv_readelf != x \
26034 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26035 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26036 && $gcc_cv_readelf --relocs --wide conftest \
26037 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
26038 enable_gnu_indirect_function=yes
26040 rm -f conftest conftest.o conftest.s
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
26042 $as_echo "$enable_gnu_indirect_function" >&6; }
26044 esac
26046 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
26048 cat >>confdefs.h <<_ACEOF
26049 #define HAVE_GNU_INDIRECT_FUNCTION $gif
26050 _ACEOF
26054 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
26055 if test $in_tree_ld != yes ; then
26056 if echo "$ld_ver" | grep GNU > /dev/null; then
26057 if test x"$ld_is_gold" = xyes; then
26058 # GNU gold --version looks like this:
26060 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
26062 # We extract the binutils version which is more familiar and specific
26063 # than the gold version.
26064 ld_vers=`echo $ld_ver | sed -n \
26065 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26066 else
26067 # GNU ld --version looks like this:
26069 # GNU ld (GNU Binutils) 2.21.51.20110225
26070 ld_vers=`echo $ld_ver | sed -n \
26071 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26073 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
26074 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26075 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26076 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
26077 else
26078 case "${target}" in
26079 *-*-solaris2*)
26080 # Solaris 2 ld -V output looks like this for a regular version:
26082 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
26084 # but test versions add stuff at the end:
26086 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
26088 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
26089 # numbers can be used in ld.so.1 feature checks even if a different
26090 # linker is configured.
26091 ld_ver=`$gcc_cv_ld -V 2>&1`
26092 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
26093 ld_vers=`echo $ld_ver | sed -n \
26094 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
26095 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26096 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26099 esac
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
26104 $as_echo_n "checking linker for .hidden support... " >&6; }
26105 if ${gcc_cv_ld_hidden+:} false; then :
26106 $as_echo_n "(cached) " >&6
26107 else
26108 if test $in_tree_ld = yes ; then
26109 gcc_cv_ld_hidden=no
26110 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
26111 && test $in_tree_ld_is_elf = yes; then
26112 gcc_cv_ld_hidden=yes
26114 else
26115 gcc_cv_ld_hidden=yes
26116 if test x"$ld_is_gold" = xyes; then
26118 elif test x"$ld_is_mold" = xyes; then
26120 elif echo "$ld_ver" | grep GNU > /dev/null; then
26121 if test 0"$ld_date" -lt 20020404; then
26122 if test -n "$ld_date"; then
26123 # If there was date string, but was earlier than 2002-04-04, fail
26124 gcc_cv_ld_hidden=no
26125 elif test -z "$ld_vers"; then
26126 # If there was no date string nor ld version number, something is wrong
26127 gcc_cv_ld_hidden=no
26128 else
26129 test -z "$ld_vers_patch" && ld_vers_patch=0
26130 if test "$ld_vers_major" -lt 2; then
26131 gcc_cv_ld_hidden=no
26132 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26133 gcc_cv_ld_hidden="no"
26134 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26135 gcc_cv_ld_hidden=no
26139 else
26140 case "${target}" in
26141 *-*-aix[789]*)
26142 gcc_cv_ld_hidden=yes
26144 *-*-darwin*)
26145 # Darwin ld has some visibility support.
26146 gcc_cv_ld_hidden=yes
26148 hppa64*-*-hpux* | ia64*-*-hpux*)
26149 gcc_cv_ld_hidden=yes
26151 *-*-solaris2*)
26152 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26153 # .symbolic was only added in Solaris 9 12/02.
26154 gcc_cv_ld_hidden=yes
26157 gcc_cv_ld_hidden=no
26159 esac
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26164 $as_echo "$gcc_cv_ld_hidden" >&6; }
26165 libgcc_visibility=no
26168 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26169 libgcc_visibility=yes
26171 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26176 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26177 gcc_cv_ld_ro_rw_mix=unknown
26178 if test $in_tree_ld = yes ; then
26179 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
26180 && test $in_tree_ld_is_elf = yes; then
26181 gcc_cv_ld_ro_rw_mix=read-write
26183 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26184 echo '.section myfoosect, "a"' > conftest1.s
26185 echo '.section myfoosect, "aw"' > conftest2.s
26186 echo '.byte 1' >> conftest2.s
26187 echo '.section myfoosect, "a"' > conftest3.s
26188 echo '.byte 0' >> conftest3.s
26189 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
26190 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
26191 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
26192 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26193 conftest2.o conftest3.o > /dev/null 2>&1 \
26194 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
26195 conftest2.o conftest3.o > /dev/null 2>&1; then
26196 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
26197 | sed -e '/myfoosect/!d' -e N`
26198 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
26199 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
26200 gcc_cv_ld_ro_rw_mix=read-only
26201 else
26202 gcc_cv_ld_ro_rw_mix=read-write
26207 rm -f conftest.* conftest[123].*
26209 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
26211 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26215 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26217 # Check whether --enable-initfini-array was given.
26218 if test "${enable_initfini_array+set}" = set; then :
26219 enableval=$enable_initfini_array;
26220 else
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26223 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26224 if ${gcc_cv_initfini_array+:} false; then :
26225 $as_echo_n "(cached) " >&6
26226 else
26227 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26228 case "${target}" in
26229 ia64-*)
26230 if test "$cross_compiling" = yes; then :
26231 gcc_cv_initfini_array=no
26232 else
26233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26234 /* end confdefs.h. */
26236 #ifndef __ELF__
26237 #error Not an ELF OS
26238 #endif
26239 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26240 if it can be used. */
26241 static int x = -1;
26242 int main (void) { return x; }
26243 int foo (void) { x = 0; }
26244 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26246 _ACEOF
26247 if ac_fn_cxx_try_run "$LINENO"; then :
26248 gcc_cv_initfini_array=yes
26249 else
26250 gcc_cv_initfini_array=no
26252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26253 conftest.$ac_objext conftest.beam conftest.$ac_ext
26257 gcc_cv_initfini_array=no
26258 if test $in_tree_ld = yes ; then
26259 if test "$gcc_cv_gld_major_version" -eq 2 \
26260 -a "$gcc_cv_gld_minor_version" -ge 22 \
26261 -o "$gcc_cv_gld_major_version" -gt 2 \
26262 && test $in_tree_ld_is_elf = yes; then
26263 gcc_cv_initfini_array=yes
26265 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26266 case $target:$gas in
26267 *:yes)
26268 sh_flags='"a"'
26269 sh_type='%progbits'
26271 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
26272 sh_flags='"a"'
26273 sh_type='@progbits'
26275 sparc*-*-solaris2*:no)
26276 sh_flags='#alloc'
26277 sh_type='#progbits'
26278 sh_quote='"'
26280 esac
26281 case "$target:$gnu_ld" in
26282 *:yes)
26283 cat > conftest.s <<EOF
26284 .section .dtors,$sh_flags,$sh_type
26285 .balign 4
26286 .byte 'A', 'A', 'A', 'A'
26287 .section .ctors,$sh_flags,$sh_type
26288 .balign 4
26289 .byte 'B', 'B', 'B', 'B'
26290 .section .fini_array.65530,$sh_flags,$sh_type
26291 .balign 4
26292 .byte 'C', 'C', 'C', 'C'
26293 .section .init_array.65530,$sh_flags,$sh_type
26294 .balign 4
26295 .byte 'D', 'D', 'D', 'D'
26296 .section .dtors.64528,$sh_flags,$sh_type
26297 .balign 4
26298 .byte 'E', 'E', 'E', 'E'
26299 .section .ctors.64528,$sh_flags,$sh_type
26300 .balign 4
26301 .byte 'F', 'F', 'F', 'F'
26302 .section .fini_array.01005,$sh_flags,$sh_type
26303 .balign 4
26304 .byte 'G', 'G', 'G', 'G'
26305 .section .init_array.01005,$sh_flags,$sh_type
26306 .balign 4
26307 .byte 'H', 'H', 'H', 'H'
26308 .text
26309 .globl _start
26310 _start:
26312 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26313 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26314 && $gcc_cv_objdump -s -j .init_array conftest \
26315 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
26316 && $gcc_cv_objdump -s -j .fini_array conftest \
26317 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
26318 gcc_cv_initfini_array=yes
26321 *-*-solaris2*:no)
26322 # When Solaris ld added constructor priority support, it was
26323 # decided to only handle .init_array.N/.fini_array.N since
26324 # there was no need for backwards compatibility with
26325 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26326 # sections with correct execution order resp. to
26327 # .init_array/.fini_array, while gld merges them into
26328 # .init_array/.fini_array.
26329 cat > conftest.s <<EOF
26330 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26331 .align 4
26332 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26333 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26334 .align 4
26335 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26336 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26337 .align 4
26338 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26339 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26340 .align 4
26341 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26342 .text
26343 .globl _start
26344 _start:
26346 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26347 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26348 && $gcc_cv_objdump -s -j .init_array conftest \
26349 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
26350 && $gcc_cv_objdump -s -j .fini_array conftest \
26351 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
26352 gcc_cv_initfini_array=yes
26355 esac
26356 rm -f conftest conftest.*
26358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26359 /* end confdefs.h. */
26361 #ifndef __ELF__
26362 # error Not an ELF OS
26363 #endif
26364 #include <stdlib.h>
26365 #if defined __GLIBC_PREREQ
26366 # if __GLIBC_PREREQ (2, 4)
26367 # else
26368 # error GLIBC 2.4 required
26369 # endif
26370 #else
26371 # if defined __sun__ && defined __svr4__
26372 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26373 # else
26374 # error The C library not known to support .init_array/.fini_array
26375 # endif
26376 #endif
26378 _ACEOF
26379 if ac_fn_cxx_try_cpp "$LINENO"; then :
26381 else
26382 gcc_cv_initfini_array=no
26384 rm -f conftest.err conftest.i conftest.$ac_ext;;
26385 esac
26386 else
26387 case "${target}" in
26388 aarch64*-linux-gnu*)
26389 # AArch64 postdates glibc support for .init_array/.fini_array,
26390 # so we don't need the preprocessor test above.
26391 gcc_cv_initfini_array=yes
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26396 $as_echo_n "checking cross compile... guessing... " >&6; }
26397 gcc_cv_initfini_array=no
26399 esac
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26403 $as_echo "$gcc_cv_initfini_array" >&6; }
26404 enable_initfini_array=$gcc_cv_initfini_array
26409 cat >>confdefs.h <<_ACEOF
26410 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26411 _ACEOF
26415 # Some assemblers (GNU as for LoongArch) generates relocations for
26416 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26417 # probing leb128 support then.
26418 case $target in
26419 loongarch*-*-*)
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26421 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26422 if ${gcc_cv_as_mno_relax+:} false; then :
26423 $as_echo_n "(cached) " >&6
26424 else
26425 gcc_cv_as_mno_relax=no
26426 if test x$gcc_cv_as != x; then
26427 $as_echo '.text' > conftest.s
26428 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26430 (eval $ac_try) 2>&5
26431 ac_status=$?
26432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26433 test $ac_status = 0; }; }
26434 then
26435 gcc_cv_as_mno_relax=yes
26436 else
26437 echo "configure: failed program was" >&5
26438 cat conftest.s >&5
26440 rm -f conftest.o conftest.s
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26444 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26445 if test $gcc_cv_as_mno_relax = yes; then
26446 check_leb128_asflags=-mno-relax
26451 check_leb128_asflags=
26453 esac
26455 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26456 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26457 # these directives, even when they appear to accept them.
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26459 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26460 if ${gcc_cv_as_leb128+:} false; then :
26461 $as_echo_n "(cached) " >&6
26462 else
26463 gcc_cv_as_leb128=no
26464 if test x$gcc_cv_as != x; then
26465 $as_echo ' .data
26466 .uleb128 L2 - L1
26468 .uleb128 1280
26469 .sleb128 -1010
26471 .uleb128 0x8000000000000000
26472 ' > conftest.s
26473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26478 test $ac_status = 0; }; }
26479 then
26481 if test "x$gcc_cv_objdump" != x; then
26482 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
26483 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
26484 gcc_cv_as_leb128=yes
26486 elif test "x$gcc_cv_otool" != x; then
26487 if $gcc_cv_otool -d conftest.o 2>/dev/null \
26488 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
26489 gcc_cv_as_leb128=yes
26491 else
26492 # play safe, assume the assembler is broken.
26496 else
26497 echo "configure: failed program was" >&5
26498 cat conftest.s >&5
26500 rm -f conftest.o conftest.s
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26504 $as_echo "$gcc_cv_as_leb128" >&6; }
26505 if test $gcc_cv_as_leb128 = yes; then
26507 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26510 if test $gcc_cv_as_leb128 != yes; then
26512 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26516 # Determine if an .eh_frame section is read-only.
26517 gcc_fn_eh_frame_ro () {
26518 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
26519 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
26520 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
26523 # Check if we have assembler support for unwind directives.
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26525 $as_echo_n "checking assembler for cfi directives... " >&6; }
26526 if ${gcc_cv_as_cfi_directive+:} false; then :
26527 $as_echo_n "(cached) " >&6
26528 else
26529 gcc_cv_as_cfi_directive=no
26530 if test x$gcc_cv_as != x; then
26531 $as_echo ' .text
26532 .cfi_startproc
26533 .cfi_offset 0, 0
26534 .cfi_same_value 1
26535 .cfi_def_cfa 1, 2
26536 .cfi_escape 1, 2, 3, 4, 5
26537 .cfi_endproc' > conftest.s
26538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26540 (eval $ac_try) 2>&5
26541 ac_status=$?
26542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26543 test $ac_status = 0; }; }
26544 then
26545 case "$target" in
26546 *-*-solaris*)
26547 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26548 # read-only and read-write sections, we need to make sure that the
26549 # assembler used emits read-write .eh_frame sections.
26550 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
26551 gcc_cv_as_cfi_directive=yes
26552 elif test "x$gcc_cv_objdump" = x; then
26553 # No objdump, err on the side of caution.
26554 gcc_cv_as_cfi_directive=no
26555 else
26556 if test x$gas = xyes; then
26557 as_32_opt="--32"
26558 as_64_opt="--64"
26559 else
26560 as_32_opt="-m32"
26561 as_64_opt="-m64"
26563 case "$target" in
26564 sparc*-*-solaris2.*)
26565 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26566 if gcc_fn_eh_frame_ro $as_32_opt \
26567 || gcc_fn_eh_frame_ro $as_64_opt; then
26568 gcc_cv_as_cfi_directive=no
26569 else
26570 gcc_cv_as_cfi_directive=yes
26573 i?86-*-solaris2.* | x86_64-*-solaris2.*)
26574 # On Solaris/x86, make sure that GCC and assembler agree on using
26575 # read-only .eh_frame sections for 64-bit.
26576 if gcc_fn_eh_frame_ro $as_32_opt; then
26577 gcc_cv_as_cfi_directive=no
26578 elif gcc_fn_eh_frame_ro $as_64_opt; then
26579 gcc_cv_as_cfi_directive=yes
26580 else
26581 gcc_cv_as_cfi_directive=no
26584 esac
26587 *-*-*)
26588 gcc_cv_as_cfi_directive=yes
26590 esac
26591 else
26592 echo "configure: failed program was" >&5
26593 cat conftest.s >&5
26595 rm -f conftest.o conftest.s
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26599 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26602 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26604 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26605 if ${gcc_cv_as_cfi_advance_working+:} false; then :
26606 $as_echo_n "(cached) " >&6
26607 else
26608 gcc_cv_as_cfi_advance_working=no
26609 if test x$gcc_cv_as != x; then
26610 $as_echo ' .text
26611 .cfi_startproc
26612 .cfi_adjust_cfa_offset 64
26613 .skip 75040, 0
26614 .cfi_adjust_cfa_offset 128
26615 .cfi_endproc' > conftest.s
26616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26618 (eval $ac_try) 2>&5
26619 ac_status=$?
26620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26621 test $ac_status = 0; }; }
26622 then
26624 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
26625 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
26626 gcc_cv_as_cfi_advance_working=yes
26629 else
26630 echo "configure: failed program was" >&5
26631 cat conftest.s >&5
26633 rm -f conftest.o conftest.s
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26637 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26640 else
26641 # no objdump, err on the side of caution
26642 gcc_cv_as_cfi_advance_working=no
26646 cat >>confdefs.h <<_ACEOF
26647 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26648 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26649 _ACEOF
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26654 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26655 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
26656 $as_echo_n "(cached) " >&6
26657 else
26658 gcc_cv_as_cfi_personality_directive=no
26659 if test x$gcc_cv_as != x; then
26660 $as_echo ' .text
26661 .cfi_startproc
26662 .cfi_personality 0, symbol
26663 .cfi_endproc' > conftest.s
26664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26666 (eval $ac_try) 2>&5
26667 ac_status=$?
26668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26669 test $ac_status = 0; }; }
26670 then
26671 gcc_cv_as_cfi_personality_directive=yes
26672 else
26673 echo "configure: failed program was" >&5
26674 cat conftest.s >&5
26676 rm -f conftest.o conftest.s
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26680 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26684 cat >>confdefs.h <<_ACEOF
26685 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26686 _ACEOF
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26690 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26691 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
26692 $as_echo_n "(cached) " >&6
26693 else
26694 gcc_cv_as_cfi_sections_directive=no
26695 if test x$gcc_cv_as != x; then
26696 $as_echo ' .text
26697 .cfi_sections .debug_frame, .eh_frame
26698 .cfi_startproc
26699 .cfi_endproc' > conftest.s
26700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26702 (eval $ac_try) 2>&5
26703 ac_status=$?
26704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26705 test $ac_status = 0; }; }
26706 then
26707 case $target_os in
26708 win32 | pe | cygwin* | mingw32*)
26709 # Need to check that we generated the correct relocation for the
26710 # .debug_frame section. This was fixed for binutils 2.21.
26711 gcc_cv_as_cfi_sections_directive=no
26712 if test "x$gcc_cv_objdump" != x; then
26713 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
26714 grep -i secrel > /dev/null; then
26715 gcc_cv_as_cfi_sections_directive=yes
26720 gcc_cv_as_cfi_sections_directive=yes
26722 esac
26723 else
26724 echo "configure: failed program was" >&5
26725 cat conftest.s >&5
26727 rm -f conftest.o conftest.s
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
26731 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26736 cat >>confdefs.h <<_ACEOF
26737 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26738 _ACEOF
26741 # GAS versions up to and including 2.11.0 may mis-optimize
26742 # .eh_frame data.
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26744 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26745 if ${gcc_cv_as_eh_frame+:} false; then :
26746 $as_echo_n "(cached) " >&6
26747 else
26748 gcc_cv_as_eh_frame=no
26749 if test x$gcc_cv_as != x; then
26750 $as_echo ' .text
26751 .LFB1:
26752 .4byte 0
26753 .L1:
26754 .4byte 0
26755 .LFE1:
26756 .section .eh_frame,"aw",@progbits
26757 __FRAME_BEGIN__:
26758 .4byte .LECIE1-.LSCIE1
26759 .LSCIE1:
26760 .4byte 0x0
26761 .byte 0x1
26762 .ascii "z\0"
26763 .byte 0x1
26764 .byte 0x78
26765 .byte 0x1a
26766 .byte 0x0
26767 .byte 0x4
26768 .4byte 1
26769 .p2align 1
26770 .LECIE1:
26771 .LSFDE1:
26772 .4byte .LEFDE1-.LASFDE1
26773 .LASFDE1:
26774 .4byte .LASFDE1-__FRAME_BEGIN__
26775 .4byte .LFB1
26776 .4byte .LFE1-.LFB1
26777 .byte 0x4
26778 .4byte .LFE1-.LFB1
26779 .byte 0x4
26780 .4byte .L1-.LFB1
26781 .LEFDE1:' > conftest.s
26782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26784 (eval $ac_try) 2>&5
26785 ac_status=$?
26786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26787 test $ac_status = 0; }; }
26788 then
26789 cat > conftest.lit <<EOF
26790 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26791 0010 01000000 12000000 18000000 00000000 ................
26792 0020 08000000 04080000 0044 .........D
26794 cat > conftest.big <<EOF
26795 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26796 0010 00000001 00000012 00000018 00000000 ................
26797 0020 00000008 04000000 0844 .........D
26799 # If the assembler didn't choke, and we can objdump,
26800 # and we got the correct data, then succeed.
26801 # The text in the here-document typically retains its unix-style line
26802 # endings, while the output of objdump will use host line endings.
26803 # Therefore, use diff -b for the comparisons.
26804 if test x$gcc_cv_objdump != x \
26805 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
26806 | tail -3 > conftest.got \
26807 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
26808 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
26809 then
26810 gcc_cv_as_eh_frame=yes
26811 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
26812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26813 (eval $ac_try) 2>&5
26814 ac_status=$?
26815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26816 test $ac_status = 0; }; }; then
26817 gcc_cv_as_eh_frame=buggy
26818 else
26819 # Uh oh, what do we do now?
26820 gcc_cv_as_eh_frame=no
26822 else
26823 echo "configure: failed program was" >&5
26824 cat conftest.s >&5
26826 rm -f conftest.o conftest.s
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26830 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26834 if test $gcc_cv_as_eh_frame = buggy; then
26836 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26840 # Test if the assembler supports the section flag 'e' or #exclude for
26841 # specifying an excluded section.
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26843 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26844 if ${gcc_cv_as_section_exclude_e+:} false; then :
26845 $as_echo_n "(cached) " >&6
26846 else
26847 gcc_cv_as_section_exclude_e=no
26848 if test x$gcc_cv_as != x; then
26849 $as_echo '.section foo1,"e"
26850 .byte 0,0,0,0' > conftest.s
26851 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26853 (eval $ac_try) 2>&5
26854 ac_status=$?
26855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26856 test $ac_status = 0; }; }
26857 then
26858 gcc_cv_as_section_exclude_e=yes
26859 else
26860 echo "configure: failed program was" >&5
26861 cat conftest.s >&5
26863 rm -f conftest.o conftest.s
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26867 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26870 if test $gcc_cv_as_section_exclude_e = no; then
26871 case "${target}" in
26872 # Solaris as uses #exclude instead.
26873 *-*-solaris2*)
26874 case "${target}" in
26875 sparc*-*-solaris2*)
26876 conftest_s='.section "foo1", #exclude'
26878 i?86-*-solaris2* | x86_64-*-solaris2*)
26879 conftest_s='.section foo1, #exclude'
26881 esac
26883 esac
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26885 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26886 if ${gcc_cv_as_section_exclude_hash+:} false; then :
26887 $as_echo_n "(cached) " >&6
26888 else
26889 gcc_cv_as_section_exclude_hash=no
26890 if test x$gcc_cv_as != x; then
26891 $as_echo "$conftest_s
26892 .byte 0,0,0,0" > conftest.s
26893 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26895 (eval $ac_try) 2>&5
26896 ac_status=$?
26897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26898 test $ac_status = 0; }; }
26899 then
26900 gcc_cv_as_section_exclude_hash=yes
26901 else
26902 echo "configure: failed program was" >&5
26903 cat conftest.s >&5
26905 rm -f conftest.o conftest.s
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
26909 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
26914 cat >>confdefs.h <<_ACEOF
26915 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
26916 _ACEOF
26919 # Test if the assembler supports the section flag 'R' for specifying
26920 # section with SHF_GNU_RETAIN.
26921 case "${target}" in
26922 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26923 # assembler supports the section flag 'R', it doesn't mean that
26924 # Solairs ld supports it.
26925 *-*-solaris2*)
26926 gcc_cv_as_shf_gnu_retain=no
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
26930 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
26931 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
26932 $as_echo_n "(cached) " >&6
26933 else
26934 gcc_cv_as_shf_gnu_retain=no
26935 if test x$gcc_cv_as != x; then
26936 $as_echo '.section .foo,"awR",%progbits
26937 .byte 0' > conftest.s
26938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26943 test $ac_status = 0; }; }
26944 then
26945 gcc_cv_as_shf_gnu_retain=yes
26946 else
26947 echo "configure: failed program was" >&5
26948 cat conftest.s >&5
26950 rm -f conftest.o conftest.s
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
26954 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
26958 esac
26960 cat >>confdefs.h <<_ACEOF
26961 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
26962 _ACEOF
26965 # Test if the assembler supports the section flag 'o' for specifying
26966 # section with link-order.
26967 case "${target}" in
26968 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26969 # assembler supports the section flag 'o', it doesn't mean that
26970 # Solairs ld supports it.
26971 *-*-solaris2*)
26972 gcc_cv_as_section_link_order=no
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
26976 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
26977 if ${gcc_cv_as_section_link_order+:} false; then :
26978 $as_echo_n "(cached) " >&6
26979 else
26980 gcc_cv_as_section_link_order=no
26981 if test x$gcc_cv_as != x; then
26982 $as_echo '.section .foo,"a"
26983 .byte 0
26984 .section __patchable_function_entries,"awo",%progbits,.foo
26985 .byte 0' > conftest.s
26986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26988 (eval $ac_try) 2>&5
26989 ac_status=$?
26990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26991 test $ac_status = 0; }; }
26992 then
26993 gcc_cv_as_section_link_order=yes
26994 else
26995 echo "configure: failed program was" >&5
26996 cat conftest.s >&5
26998 rm -f conftest.o conftest.s
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
27002 $as_echo "$gcc_cv_as_section_link_order" >&6; }
27006 esac
27008 cat >>confdefs.h <<_ACEOF
27009 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
27010 _ACEOF
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27014 $as_echo_n "checking assembler for section merging support... " >&6; }
27015 if ${gcc_cv_as_shf_merge+:} false; then :
27016 $as_echo_n "(cached) " >&6
27017 else
27018 gcc_cv_as_shf_merge=no
27019 if test x$gcc_cv_as != x; then
27020 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
27021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27023 (eval $ac_try) 2>&5
27024 ac_status=$?
27025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27026 test $ac_status = 0; }; }
27027 then
27028 gcc_cv_as_shf_merge=yes
27029 else
27030 echo "configure: failed program was" >&5
27031 cat conftest.s >&5
27033 rm -f conftest.o conftest.s
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27037 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27040 if test $gcc_cv_as_shf_merge = no; then
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support (%progbits)" >&5
27042 $as_echo_n "checking assembler for section merging support (%progbits)... " >&6; }
27043 if ${gcc_cv_as_shf_merge_percent+:} false; then :
27044 $as_echo_n "(cached) " >&6
27045 else
27046 gcc_cv_as_shf_merge_percent=no
27047 if test x$gcc_cv_as != x; then
27048 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
27049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27051 (eval $ac_try) 2>&5
27052 ac_status=$?
27053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27054 test $ac_status = 0; }; }
27055 then
27056 gcc_cv_as_shf_merge_percent=yes
27057 else
27058 echo "configure: failed program was" >&5
27059 cat conftest.s >&5
27061 rm -f conftest.o conftest.s
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge_percent" >&5
27065 $as_echo "$gcc_cv_as_shf_merge_percent" >&6; }
27070 cat >>confdefs.h <<_ACEOF
27071 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes \
27072 || test $gcc_cv_as_shf_merge_percent = yes; then echo 1; else echo 0; fi`
27073 _ACEOF
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
27077 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
27078 if ${gcc_cv_as_comdat_group+:} false; then :
27079 $as_echo_n "(cached) " >&6
27080 else
27081 gcc_cv_as_comdat_group=no
27082 if test x$gcc_cv_as != x; then
27083 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
27084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27086 (eval $ac_try) 2>&5
27087 ac_status=$?
27088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27089 test $ac_status = 0; }; }
27090 then
27091 gcc_cv_as_comdat_group=yes
27092 else
27093 echo "configure: failed program was" >&5
27094 cat conftest.s >&5
27096 rm -f conftest.o conftest.s
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
27100 $as_echo "$gcc_cv_as_comdat_group" >&6; }
27103 if test $gcc_cv_as_comdat_group = yes; then
27104 gcc_cv_as_comdat_group_percent=no
27105 gcc_cv_as_comdat_group_group=no
27106 else
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
27108 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
27109 if ${gcc_cv_as_comdat_group_percent+:} false; then :
27110 $as_echo_n "(cached) " >&6
27111 else
27112 gcc_cv_as_comdat_group_percent=no
27113 if test x$gcc_cv_as != x; then
27114 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
27115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27117 (eval $ac_try) 2>&5
27118 ac_status=$?
27119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27120 test $ac_status = 0; }; }
27121 then
27122 gcc_cv_as_comdat_group_percent=yes
27123 else
27124 echo "configure: failed program was" >&5
27125 cat conftest.s >&5
27127 rm -f conftest.o conftest.s
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
27131 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
27134 if test $gcc_cv_as_comdat_group_percent = yes; then
27135 gcc_cv_as_comdat_group_group=no
27136 else
27137 case "${target}" in
27138 # Sun as uses a completely different syntax.
27139 *-*-solaris2*)
27140 case "${target}" in
27141 sparc*-*-solaris2*)
27142 conftest_s='
27143 .group foo,".text%foo",#comdat
27144 .section ".text%foo", #alloc,#execinstr,#progbits
27145 .globl foo
27146 foo:
27149 i?86-*-solaris2* | x86_64-*-solaris2*)
27150 conftest_s='
27151 .group foo,.text%foo,#comdat
27152 .section .text%foo, "ax", @progbits
27153 .globl foo
27154 foo:
27157 esac
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27159 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27160 if ${gcc_cv_as_comdat_group_group+:} false; then :
27161 $as_echo_n "(cached) " >&6
27162 else
27163 gcc_cv_as_comdat_group_group=no
27164 if test x$gcc_cv_as != x; then
27165 $as_echo "$conftest_s" > conftest.s
27166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27168 (eval $ac_try) 2>&5
27169 ac_status=$?
27170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27171 test $ac_status = 0; }; }
27172 then
27173 gcc_cv_as_comdat_group_group=yes
27174 else
27175 echo "configure: failed program was" >&5
27176 cat conftest.s >&5
27178 rm -f conftest.o conftest.s
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27182 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27186 esac
27187 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27188 gcc_cv_as_comdat_group_group=no
27192 if test x"$ld_is_gold" = xyes; then
27193 comdat_group=yes
27194 elif test x"$ld_is_mold" = xyes; then
27195 comdat_group=yes
27196 elif test $in_tree_ld = yes ; then
27197 comdat_group=no
27198 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
27199 && test $in_tree_ld_is_elf = yes; then
27200 comdat_group=yes
27202 elif echo "$ld_ver" | grep GNU > /dev/null; then
27203 comdat_group=yes
27204 if test 0"$ld_date" -lt 20050308; then
27205 if test -n "$ld_date"; then
27206 # If there was date string, but was earlier than 2005-03-08, fail
27207 comdat_group=no
27208 elif test "$ld_vers_major" -lt 2; then
27209 comdat_group=no
27210 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27211 comdat_group=no
27214 else
27215 case "${target}" in
27216 *-*-solaris2.1[1-9]*)
27217 comdat_group=no
27218 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27219 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27220 # version 1.688.
27222 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27223 # least ld version 1.2267.
27224 if test "$ld_vers_major" -gt 1; then
27225 comdat_group=yes
27226 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
27227 comdat_group=yes
27228 elif test "$ld_vers_minor" -ge 2267; then
27229 comdat_group=yes
27233 # Assume linkers other than GNU ld don't support COMDAT group.
27234 comdat_group=no
27236 esac
27238 # Allow overriding the automatic COMDAT group tests above.
27239 # Check whether --enable-comdat was given.
27240 if test "${enable_comdat+set}" = set; then :
27241 enableval=$enable_comdat; comdat_group="$enable_comdat"
27244 if test $comdat_group = no; then
27245 gcc_cv_as_comdat_group=no
27246 gcc_cv_as_comdat_group_percent=no
27247 gcc_cv_as_comdat_group_group=no
27250 cat >>confdefs.h <<_ACEOF
27251 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27252 || test $gcc_cv_as_comdat_group_percent = yes \
27253 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27254 _ACEOF
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27258 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27259 if ${gcc_cv_as_is_stmt+:} false; then :
27260 $as_echo_n "(cached) " >&6
27261 else
27262 gcc_cv_as_is_stmt=no
27263 if test x$gcc_cv_as != x; then
27264 $as_echo ' .text
27265 .file 1 "conf.c"
27266 .loc 1 1 0 is_stmt 1' > conftest.s
27267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27269 (eval $ac_try) 2>&5
27270 ac_status=$?
27271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27272 test $ac_status = 0; }; }
27273 then
27274 gcc_cv_as_is_stmt=yes
27275 else
27276 echo "configure: failed program was" >&5
27277 cat conftest.s >&5
27279 rm -f conftest.o conftest.s
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27283 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27284 if test $gcc_cv_as_is_stmt = yes; then
27286 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27292 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27293 if ${gcc_cv_as_discriminator+:} false; then :
27294 $as_echo_n "(cached) " >&6
27295 else
27296 gcc_cv_as_discriminator=no
27297 if test x$gcc_cv_as != x; then
27298 $as_echo ' .text
27299 .file 1 "conf.c"
27300 .loc 1 1 0 discriminator 1' > conftest.s
27301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27303 (eval $ac_try) 2>&5
27304 ac_status=$?
27305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27306 test $ac_status = 0; }; }
27307 then
27308 gcc_cv_as_discriminator=yes
27309 else
27310 echo "configure: failed program was" >&5
27311 cat conftest.s >&5
27313 rm -f conftest.o conftest.s
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27317 $as_echo "$gcc_cv_as_discriminator" >&6; }
27318 if test $gcc_cv_as_discriminator = yes; then
27320 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27325 # Catch the newlib flag of the same name so we can gate GCC features on it.
27326 # Check whether --enable-newlib-nano-formatted-io was given.
27327 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27328 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
27329 yes|no)
27332 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27334 esac
27338 # Thread-local storage - the check is heavily parameterized.
27339 conftest_s=
27340 tls_as_opt=
27341 case "$target" in
27342 alpha*-*-*)
27343 conftest_s='
27344 .section ".tdata","awT",@progbits
27345 foo: .long 25
27346 .text
27347 ldq $27,__tls_get_addr($29) !literal!1
27348 lda $16,foo($29) !tlsgd!1
27349 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27350 ldq $27,__tls_get_addr($29) !literal!2
27351 lda $16,foo($29) !tlsldm!2
27352 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27353 ldq $1,foo($29) !gotdtprel
27354 ldah $2,foo($29) !dtprelhi
27355 lda $3,foo($2) !dtprello
27356 lda $4,foo($29) !dtprel
27357 ldq $1,foo($29) !gottprel
27358 ldah $2,foo($29) !tprelhi
27359 lda $3,foo($2) !tprello
27360 lda $4,foo($29) !tprel'
27361 tls_as_opt=--fatal-warnings
27363 arc*-*-*)
27364 conftest_s='
27365 add_s r0,r0, @foo@tpoff'
27367 cris-*-*|crisv32-*-*)
27368 conftest_s='
27369 .section ".tdata","awT",@progbits
27370 x: .long 25
27371 .text
27372 move.d x:IE,$r10
27373 nop'
27374 tls_as_opt=--fatal-warnings
27376 frv*-*-*)
27377 conftest_s='
27378 .section ".tdata","awT",@progbits
27379 x: .long 25
27380 .text
27381 call #gettlsoff(x)'
27383 hppa*-*-linux*)
27384 conftest_s='
27385 t1: .reg %r20
27386 t2: .reg %r21
27387 gp: .reg %r19
27388 .section ".tdata","awT",@progbits
27389 foo: .long 25
27390 .text
27391 .align 4
27392 addil LT%foo-$tls_gdidx$,gp
27393 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27394 b __tls_get_addr
27396 addil LT%foo-$tls_ldidx$,gp
27397 b __tls_get_addr
27398 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27399 addil LR%foo-$tls_dtpoff$,%ret0
27400 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27401 mfctl %cr27,%t1
27402 addil LT%foo-$tls_ieoff$,gp
27403 ldw RT%foo-$tls_ieoff$(%r1),%t2
27404 add %t1,%t2,%t3
27405 mfctl %cr27,%t1
27406 addil LR%foo-$tls_leoff$,%t1
27407 ldo RR%foo-$tls_leoff$(%r1),%t2'
27408 tls_as_opt=--fatal-warnings
27410 arm*-*-*)
27411 conftest_s='
27412 .section ".tdata","awT",%progbits
27413 foo: .long 25
27414 .text
27415 .word foo(gottpoff)
27416 .word foo(tpoff)
27417 .word foo(tlsgd)
27418 .word foo(tlsldm)
27419 .word foo(tlsldo)'
27421 i[34567]86-*-* | x86_64-*-*)
27422 case "$target" in
27423 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
27424 on_solaris=yes
27427 on_solaris=no
27429 esac
27430 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27431 conftest_s='
27432 .section .tdata,"awt",@progbits'
27433 tls_section_flag=t
27435 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27437 else
27438 conftest_s='
27439 .section ".tdata","awT",@progbits'
27440 tls_section_flag=T
27441 tls_as_opt="--fatal-warnings"
27443 case "$target" in
27444 i[34567]86-*-*)
27445 if test x$on_solaris = xyes; then
27446 case $gas_flag in
27447 yes) tls_as_opt="$tls_as_opt --32" ;;
27448 esac
27450 conftest_s="$conftest_s
27451 foo: .long 25
27452 .text
27453 movl %gs:0, %eax
27454 leal foo@tlsgd(,%ebx,1), %eax
27455 leal foo@tlsldm(%ebx), %eax
27456 leal foo@dtpoff(%eax), %edx
27457 movl foo@gottpoff(%ebx), %eax
27458 subl foo@gottpoff(%ebx), %eax
27459 addl foo@gotntpoff(%ebx), %eax
27460 movl foo@indntpoff, %eax
27461 movl \$foo@tpoff, %eax
27462 subl \$foo@tpoff, %eax
27463 leal foo@ntpoff(%ecx), %eax"
27465 x86_64-*-*)
27466 if test x$on_solaris = xyes; then
27467 case $gas_flag in
27468 yes) tls_as_opt="$tls_as_opt --64" ;;
27469 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
27470 esac
27472 conftest_s="$conftest_s
27473 foo: .long 25
27474 .text
27475 movq %fs:0, %rax
27476 leaq foo@tlsgd(%rip), %rdi
27477 leaq foo@tlsld(%rip), %rdi
27478 leaq foo@dtpoff(%rax), %rdx
27479 movq foo@gottpoff(%rip), %rax
27480 movq \$foo@tpoff, %rax"
27482 esac
27484 ia64-*-*)
27485 conftest_s='
27486 .section ".tdata","awT",@progbits
27487 foo: data8 25
27488 .text
27489 addl r16 = @ltoff(@dtpmod(foo#)), gp
27490 addl r17 = @ltoff(@dtprel(foo#)), gp
27491 addl r18 = @ltoff(@tprel(foo#)), gp
27492 addl r19 = @dtprel(foo#), gp
27493 adds r21 = @dtprel(foo#), r13
27494 movl r23 = @dtprel(foo#)
27495 addl r20 = @tprel(foo#), gp
27496 adds r22 = @tprel(foo#), r13
27497 movl r24 = @tprel(foo#)'
27498 tls_as_opt=--fatal-warnings
27500 loongarch*-*-*)
27501 conftest_s='
27502 .section .tdata,"awT",@progbits
27503 x: .word 2
27504 .text
27505 la.tls.gd $a0,x
27506 bl __tls_get_addr'
27507 tls_first_major=0
27508 tls_first_minor=0
27509 tls_as_opt='--fatal-warnings'
27511 microblaze*-*-*)
27512 conftest_s='
27513 .section .tdata,"awT",@progbits
27515 .word 2
27516 .text
27517 addik r5,r20,x@TLSGD
27518 addik r5,r20,x@TLSLDM'
27519 tls_as_opt='--fatal-warnings'
27521 mips*-*-*)
27522 conftest_s='
27523 .section .tdata,"awT",@progbits
27525 .word 2
27526 .text
27527 addiu $4, $28, %tlsgd(x)
27528 addiu $4, $28, %tlsldm(x)
27529 lui $4, %dtprel_hi(x)
27530 addiu $4, $4, %dtprel_lo(x)
27531 lw $4, %gottprel(x)($28)
27532 lui $4, %tprel_hi(x)
27533 addiu $4, $4, %tprel_lo(x)'
27534 tls_as_opt='-32 --fatal-warnings'
27536 m68k-*-*)
27537 conftest_s='
27538 .section .tdata,"awT",@progbits
27540 .word 2
27541 .text
27542 foo:
27543 move.l x@TLSGD(%a5),%a0
27544 move.l x@TLSLDM(%a5),%a0
27545 move.l x@TLSLDO(%a5),%a0
27546 move.l x@TLSIE(%a5),%a0
27547 move.l x@TLSLE(%a5),%a0'
27548 tls_as_opt='--fatal-warnings'
27550 aarch64*-*-*)
27551 conftest_s='
27552 .section ".tdata","awT",%progbits
27553 foo: .long 25
27554 .text
27555 adrp x0, :tlsgd:x
27556 add x0, x0, #:tlsgd_lo12:x
27557 bl __tls_get_addr
27558 nop'
27559 tls_as_opt='--fatal-warnings'
27561 or1k*-*-*)
27562 conftest_s='
27563 .section ".tdata","awT",@progbits
27564 foo: .long 25
27565 .text
27566 l.movhi r3, tpoffha(foo)
27567 l.add r3, r3, r10
27568 l.lwz r4, tpofflo(foo)(r3)'
27569 tls_as_opt=--fatal-warnings
27571 powerpc-ibm-aix*)
27572 conftest_s='
27573 .extern __get_tpointer
27574 .toc
27575 LC..1:
27576 .tc a[TC],a[TL]@le
27577 .csect .text[PR]
27578 .tlstest:
27579 lwz 9,LC..1(2)
27580 bla __get_tpointer
27581 lwzx 3,9,3
27582 .globl a
27583 .csect a[TL],4
27585 .space 4'
27587 powerpc64*-*-*)
27588 conftest_s='
27589 .section ".tdata","awT",@progbits
27590 .align 3
27591 ld0: .space 8
27592 ld1: .space 8
27593 x1: .space 8
27594 x2: .space 8
27595 x3: .space 8
27596 .text
27597 addi 3,2,ld0@got@tlsgd
27598 bl .__tls_get_addr
27600 addi 3,2,ld1@toc
27601 bl .__tls_get_addr
27603 addi 3,2,x1@got@tlsld
27604 bl .__tls_get_addr
27606 addi 9,3,x1@dtprel
27607 bl .__tls_get_addr
27609 addis 9,3,x2@dtprel@ha
27610 addi 9,9,x2@dtprel@l
27611 bl .__tls_get_addr
27613 ld 9,x3@got@dtprel(2)
27614 add 9,9,3
27615 bl .__tls_get_addr
27616 nop'
27617 tls_as_opt="-a64 --fatal-warnings"
27619 powerpc*-*-*)
27620 conftest_s='
27621 .section ".tdata","awT",@progbits
27622 .align 2
27623 ld0: .space 4
27624 ld1: .space 4
27625 x1: .space 4
27626 x2: .space 4
27627 x3: .space 4
27628 .text
27629 addi 3,31,ld0@got@tlsgd
27630 bl __tls_get_addr
27631 addi 3,31,x1@got@tlsld
27632 bl __tls_get_addr
27633 addi 9,3,x1@dtprel
27634 addis 9,3,x2@dtprel@ha
27635 addi 9,9,x2@dtprel@l
27636 lwz 9,x3@got@tprel(31)
27637 add 9,9,x@tls
27638 addi 9,2,x1@tprel
27639 addis 9,2,x2@tprel@ha
27640 addi 9,9,x2@tprel@l'
27641 tls_as_opt="-a32 --fatal-warnings"
27643 riscv*-*-*)
27644 conftest_s='
27645 .section .tdata,"awT",@progbits
27646 x: .word 2
27647 .text
27648 la.tls.gd a0,x
27649 call __tls_get_addr'
27650 tls_as_opt='--fatal-warnings'
27652 s390-*-*)
27653 conftest_s='
27654 .section ".tdata","awT",@progbits
27655 foo: .long 25
27656 .text
27657 .long foo@TLSGD
27658 .long foo@TLSLDM
27659 .long foo@DTPOFF
27660 .long foo@NTPOFF
27661 .long foo@GOTNTPOFF
27662 .long foo@INDNTPOFF
27663 l %r1,foo@GOTNTPOFF(%r12)
27664 l %r1,0(%r1):tls_load:foo
27665 bas %r14,0(%r1,%r13):tls_gdcall:foo
27666 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27667 tls_as_opt="-m31 --fatal-warnings"
27669 s390x-*-*)
27670 conftest_s='
27671 .section ".tdata","awT",@progbits
27672 foo: .long 25
27673 .text
27674 .quad foo@TLSGD
27675 .quad foo@TLSLDM
27676 .quad foo@DTPOFF
27677 .quad foo@NTPOFF
27678 .quad foo@GOTNTPOFF
27679 lg %r1,foo@GOTNTPOFF(%r12)
27680 larl %r1,foo@INDNTPOFF
27681 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27682 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27683 tls_as_opt="-m64 -Aesame --fatal-warnings"
27685 sh-*-* | sh[123456789lbe]*-*-*)
27686 conftest_s='
27687 .section ".tdata","awT",@progbits
27688 foo: .long 25
27689 .text
27690 .long foo@TLSGD
27691 .long foo@TLSLDM
27692 .long foo@DTPOFF
27693 .long foo@GOTTPOFF
27694 .long foo@TPOFF'
27695 tls_as_opt=--fatal-warnings
27697 sparc*-*-*)
27698 case "$target" in
27699 sparc*-sun-solaris2.*)
27700 on_solaris=yes
27703 on_solaris=no
27705 esac
27706 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27707 conftest_s='
27708 .section ".tdata",#alloc,#write,#tls'
27709 else
27710 conftest_s='
27711 .section ".tdata","awT",@progbits'
27712 tls_as_opt="-32 --fatal-warnings"
27714 conftest_s="$conftest_s
27715 foo: .long 25
27716 .text
27717 sethi %tgd_hi22(foo), %o0
27718 add %o0, %tgd_lo10(foo), %o1
27719 add %l7, %o1, %o0, %tgd_add(foo)
27720 call __tls_get_addr, %tgd_call(foo)
27721 sethi %tldm_hi22(foo), %l1
27722 add %l1, %tldm_lo10(foo), %l2
27723 add %l7, %l2, %o0, %tldm_add(foo)
27724 call __tls_get_addr, %tldm_call(foo)
27725 sethi %tldo_hix22(foo), %l3
27726 xor %l3, %tldo_lox10(foo), %l4
27727 add %o0, %l4, %l5, %tldo_add(foo)
27728 sethi %tie_hi22(foo), %o3
27729 add %o3, %tie_lo10(foo), %o3
27730 ld [%l7 + %o3], %o2, %tie_ld(foo)
27731 add %g7, %o2, %o4, %tie_add(foo)
27732 sethi %tle_hix22(foo), %l1
27733 xor %l1, %tle_lox10(foo), %o5
27734 ld [%g7 + %o5], %o1"
27736 xtensa*-*-*)
27737 conftest_s='
27738 .section ".tdata","awT",@progbits
27739 foo: .long 25
27740 .text
27741 movi a8, foo@TLSFUNC
27742 movi a10, foo@TLSARG
27743 callx8.tls a8, foo@TLSCALL'
27745 esac
27746 set_have_as_tls=no
27747 if test "x$enable_tls" = xno ; then
27748 : # TLS explicitly disabled.
27749 elif test "x$enable_tls" = xyes ; then
27750 set_have_as_tls=yes # TLS explicitly enabled.
27751 elif test -z "$conftest_s"; then
27752 : # If we don't have a check, assume no support.
27753 else
27754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27755 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27756 if ${gcc_cv_as_tls+:} false; then :
27757 $as_echo_n "(cached) " >&6
27758 else
27759 gcc_cv_as_tls=no
27760 if test x$gcc_cv_as != x; then
27761 $as_echo "$conftest_s" > conftest.s
27762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27764 (eval $ac_try) 2>&5
27765 ac_status=$?
27766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27767 test $ac_status = 0; }; }
27768 then
27769 gcc_cv_as_tls=yes
27770 else
27771 echo "configure: failed program was" >&5
27772 cat conftest.s >&5
27774 rm -f conftest.o conftest.s
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27778 $as_echo "$gcc_cv_as_tls" >&6; }
27779 if test $gcc_cv_as_tls = yes; then
27780 set_have_as_tls=yes
27784 if test $set_have_as_tls = yes ; then
27786 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27790 # Target-specific assembler checks.
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27793 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27794 gcc_cv_ld_static_dynamic=no
27795 gcc_cv_ld_static_option='-Bstatic'
27796 gcc_cv_ld_dynamic_option='-Bdynamic'
27797 if test $in_tree_ld = yes ; then
27798 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
27799 gcc_cv_ld_static_dynamic=yes
27801 elif test x$gcc_cv_ld != x; then
27802 # Check if linker supports -Bstatic/-Bdynamic option
27803 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
27804 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
27805 gcc_cv_ld_static_dynamic=yes
27806 else
27807 case "$target" in
27808 # AIX ld uses -b flags
27809 *-*-aix4.[23]* | *-*-aix[5-9]*)
27810 gcc_cv_ld_static_dynamic=yes
27811 gcc_cv_ld_static_option="-bstatic"
27812 gcc_cv_ld_dynamic_option="-bdynamic"
27814 # HP-UX ld uses -a flags to select between shared and archive.
27815 *-*-hpux*)
27816 if test x"$gnu_ld" = xno; then
27817 gcc_cv_ld_static_dynamic=yes
27818 gcc_cv_ld_static_option="-aarchive_shared"
27819 gcc_cv_ld_dynamic_option="-adefault"
27822 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27823 *-*-solaris2*)
27824 gcc_cv_ld_static_dynamic=yes
27826 esac
27829 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
27831 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27834 cat >>confdefs.h <<_ACEOF
27835 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27836 _ACEOF
27839 cat >>confdefs.h <<_ACEOF
27840 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27841 _ACEOF
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27845 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27848 $as_echo_n "checking linker --version-script option... " >&6; }
27849 gcc_cv_ld_version_script=no
27850 ld_version_script_option=''
27851 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27852 gcc_cv_ld_version_script=yes
27853 ld_version_script_option='--version-script'
27854 elif test x$gcc_cv_ld != x; then
27855 case "$target" in
27856 # Solaris 2 ld always supports -M. It also supports a subset of
27857 # --version-script since Solaris 11.4, but requires
27858 # -z gnu-version-script-compat to activate.
27859 *-*-solaris2*)
27860 gcc_cv_ld_version_script=yes
27861 ld_version_script_option='-M'
27863 esac
27865 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
27867 $as_echo "$gcc_cv_ld_version_script" >&6; }
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
27871 $as_echo_n "checking linker soname option... " >&6; }
27872 gcc_cv_ld_soname=no
27873 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27874 gcc_cv_ld_soname=yes
27875 ld_soname_option='-soname'
27876 elif test x$gcc_cv_ld != x; then
27877 case "$target" in
27878 *-*-darwin*)
27879 gcc_cv_ld_soname=yes
27880 ld_soname_option='-install_name'
27882 # Solaris 2 ld always supports -h. It also supports --soname for GNU
27883 # ld compatiblity since some Solaris 10 update.
27884 *-*-solaris2*)
27885 gcc_cv_ld_soname=yes
27886 ld_soname_option='-h'
27888 esac
27890 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
27892 $as_echo "$gcc_cv_ld_soname" >&6; }
27895 if test x"$demangler_in_ld" = xyes; then
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
27897 $as_echo_n "checking linker --demangle support... " >&6; }
27898 gcc_cv_ld_demangle=no
27899 if test $in_tree_ld = yes; then
27900 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
27901 gcc_cv_ld_demangle=yes
27903 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
27904 # Check if the GNU linker supports --demangle option
27905 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
27906 gcc_cv_ld_demangle=yes
27909 if test x"$gcc_cv_ld_demangle" = xyes; then
27911 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
27915 $as_echo "$gcc_cv_ld_demangle" >&6; }
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
27919 $as_echo_n "checking linker plugin support... " >&6; }
27920 gcc_cv_lto_plugin=0
27921 if test -f liblto_plugin.la; then
27922 save_ld_ver="$ld_ver"
27923 save_ld_vers_major="$ld_vers_major"
27924 save_ld_vers_minor="$ld_vers_minor"
27925 save_ld_is_gold="$ld_is_gold"
27927 ld_is_gold=no
27929 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
27930 ld_ver="GNU ld"
27931 # FIXME: ld_is_gold?
27932 ld_vers_major="$gcc_cv_gld_major_version"
27933 ld_vers_minor="$gcc_cv_gld_minor_version"
27934 else
27935 # Determine plugin linker version.
27936 # FIXME: Partial duplicate from above, generalize.
27937 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
27938 if echo "$ld_ver" | grep GNU > /dev/null; then
27939 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
27940 ld_is_gold=yes
27941 ld_vers=`echo $ld_ver | sed -n \
27942 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
27943 else
27944 ld_vers=`echo $ld_ver | sed -n \
27945 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
27947 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
27948 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
27952 # Determine plugin support.
27953 if echo "$ld_ver" | grep GNU > /dev/null; then
27954 # Require GNU ld or gold 2.21+ for plugin support by default.
27955 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
27956 gcc_cv_lto_plugin=2
27957 elif test "$ld_is_mold" = yes; then
27958 gcc_cv_lto_plugin=2
27959 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
27960 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
27961 gcc_cv_lto_plugin=1
27965 ld_ver="$save_ld_ver"
27966 ld_vers_major="$save_ld_vers_major"
27967 ld_vers_minor="$save_ld_vers_minor"
27968 ld_is_gold="$save_ld_is_gold"
27971 cat >>confdefs.h <<_ACEOF
27972 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
27973 _ACEOF
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
27976 $as_echo "$gcc_cv_lto_plugin" >&6; }
27978 # Target OS-specific assembler checks.
27980 case "$target_os" in
27981 darwin*)
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
27983 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
27984 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
27985 $as_echo_n "(cached) " >&6
27986 else
27987 gcc_cv_as_mmacosx_version_min=no
27988 if test x$gcc_cv_as != x; then
27989 $as_echo '.text' > conftest.s
27990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
27991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27992 (eval $ac_try) 2>&5
27993 ac_status=$?
27994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27995 test $ac_status = 0; }; }
27996 then
27997 gcc_cv_as_mmacosx_version_min=yes
27998 else
27999 echo "configure: failed program was" >&5
28000 cat conftest.s >&5
28002 rm -f conftest.o conftest.s
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
28006 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
28007 if test $gcc_cv_as_mmacosx_version_min = yes; then
28009 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
28013 if test x$gcc_cv_as_mmacosx_version_min = "xyes"; then
28014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
28015 $as_echo_n "checking assembler for .build_version... " >&6; }
28016 if ${gcc_cv_as_darwin_build_version+:} false; then :
28017 $as_echo_n "(cached) " >&6
28018 else
28019 gcc_cv_as_darwin_build_version=no
28020 if test x$gcc_cv_as != x; then
28021 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
28022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
28023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28024 (eval $ac_try) 2>&5
28025 ac_status=$?
28026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28027 test $ac_status = 0; }; }
28028 then
28029 gcc_cv_as_darwin_build_version=yes
28030 else
28031 echo "configure: failed program was" >&5
28032 cat conftest.s >&5
28034 rm -f conftest.o conftest.s
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
28038 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
28039 if test $gcc_cv_as_darwin_build_version = yes; then
28041 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
28047 esac
28049 # Target CPU-specific assembler checks.
28051 case "$target" in
28052 aarch64*-*-*)
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
28054 $as_echo_n "checking assembler for -mabi option... " >&6; }
28055 if ${gcc_cv_as_aarch64_mabi+:} false; then :
28056 $as_echo_n "(cached) " >&6
28057 else
28058 gcc_cv_as_aarch64_mabi=no
28059 if test x$gcc_cv_as != x; then
28060 $as_echo '.text' > conftest.s
28061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
28062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28063 (eval $ac_try) 2>&5
28064 ac_status=$?
28065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28066 test $ac_status = 0; }; }
28067 then
28068 gcc_cv_as_aarch64_mabi=yes
28069 else
28070 echo "configure: failed program was" >&5
28071 cat conftest.s >&5
28073 rm -f conftest.o conftest.s
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
28077 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
28080 if test x$gcc_cv_as_aarch64_mabi = xyes; then
28082 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
28084 else
28085 if test x$with_abi = xilp32; then
28086 as_fn_error $? "Assembler does not support -mabi=ilp32.\
28087 Upgrade the Assembler." "$LINENO" 5
28089 if test x"$with_multilib_list" = xdefault; then
28090 TM_MULTILIB_CONFIG=lp64
28091 else
28092 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
28093 for aarch64_multilib in ${aarch64_multilibs}; do
28094 case ${aarch64_multilib} in
28095 ilp32)
28096 as_fn_error $? "Assembler does not support -mabi=ilp32.\
28097 Upgrade the Assembler." "$LINENO" 5
28101 esac
28102 done
28105 # Check if we have binutils support for relocations types needed by -fpic
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
28107 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
28108 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
28109 $as_echo_n "(cached) " >&6
28110 else
28111 gcc_cv_as_aarch64_picreloc=no
28112 if test x$gcc_cv_as != x; then
28113 $as_echo '
28114 .text
28115 ldr x0, [x2, #:gotpage_lo15:globalsym]
28116 ' > conftest.s
28117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28119 (eval $ac_try) 2>&5
28120 ac_status=$?
28121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28122 test $ac_status = 0; }; }
28123 then
28124 gcc_cv_as_aarch64_picreloc=yes
28125 else
28126 echo "configure: failed program was" >&5
28127 cat conftest.s >&5
28129 rm -f conftest.o conftest.s
28132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
28133 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28134 if test $gcc_cv_as_aarch64_picreloc = yes; then
28136 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28140 # Enable Branch Target Identification Mechanism and Return Address
28141 # Signing by default.
28142 # Check whether --enable-standard-branch-protection was given.
28143 if test "${enable_standard_branch_protection+set}" = set; then :
28144 enableval=$enable_standard_branch_protection;
28145 case $enableval in
28146 yes)
28147 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1 TARGET_ENABLE_GCS=1"
28152 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
28153 Valid choices are 'yes' and 'no'." "$LINENO" 5
28155 esac
28159 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28160 # Check whether --enable-fix-cortex-a53-835769 was given.
28161 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28162 enableval=$enable_fix_cortex_a53_835769;
28163 case $enableval in
28164 yes)
28165 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28170 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28171 Valid choices are 'yes' and 'no'." "$LINENO" 5
28174 esac
28178 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28179 # Check whether --enable-fix-cortex-a53-843419 was given.
28180 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28181 enableval=$enable_fix_cortex_a53_843419;
28182 case $enableval in
28183 yes)
28184 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28189 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28190 Valid choices are 'yes' and 'no'." "$LINENO" 5
28193 esac
28199 # All TARGET_ABI_OSF targets.
28200 alpha*-*-linux* | alpha*-*-*bsd*)
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28202 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28203 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
28204 $as_echo_n "(cached) " >&6
28205 else
28206 gcc_cv_as_alpha_explicit_relocs=no
28207 if test x$gcc_cv_as != x; then
28208 $as_echo ' .set nomacro
28209 .text
28210 extbl $3, $2, $3 !lituse_bytoff!1
28211 ldq $2, a($29) !literal!1
28212 ldq $4, b($29) !literal!2
28213 ldq_u $3, 0($2) !lituse_base!1
28214 ldq $27, f($29) !literal!5
28215 jsr $26, ($27), f !lituse_jsr!5
28216 ldah $29, 0($26) !gpdisp!3
28217 lda $0, c($29) !gprel
28218 ldah $1, d($29) !gprelhigh
28219 lda $1, d($1) !gprellow
28220 lda $29, 0($29) !gpdisp!3' > conftest.s
28221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28223 (eval $ac_try) 2>&5
28224 ac_status=$?
28225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28226 test $ac_status = 0; }; }
28227 then
28228 gcc_cv_as_alpha_explicit_relocs=yes
28229 else
28230 echo "configure: failed program was" >&5
28231 cat conftest.s >&5
28233 rm -f conftest.o conftest.s
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28237 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28238 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28240 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28245 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28246 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
28247 $as_echo_n "(cached) " >&6
28248 else
28249 gcc_cv_as_alpha_jsrdirect_relocs=no
28250 if test x$gcc_cv_as != x; then
28251 $as_echo ' .set nomacro
28252 .text
28253 ldq $27, a($29) !literal!1
28254 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28257 (eval $ac_try) 2>&5
28258 ac_status=$?
28259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28260 test $ac_status = 0; }; }
28261 then
28262 gcc_cv_as_alpha_jsrdirect_relocs=yes
28263 else
28264 echo "configure: failed program was" >&5
28265 cat conftest.s >&5
28267 rm -f conftest.o conftest.s
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28271 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28272 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28274 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28280 avr-*-*)
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28282 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28283 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
28284 $as_echo_n "(cached) " >&6
28285 else
28286 gcc_cv_as_avr_mlink_relax=no
28287 if test x$gcc_cv_as != x; then
28288 $as_echo '.text' > conftest.s
28289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28291 (eval $ac_try) 2>&5
28292 ac_status=$?
28293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28294 test $ac_status = 0; }; }
28295 then
28296 gcc_cv_as_avr_mlink_relax=yes
28297 else
28298 echo "configure: failed program was" >&5
28299 cat conftest.s >&5
28301 rm -f conftest.o conftest.s
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28305 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28306 if test $gcc_cv_as_avr_mlink_relax = yes; then
28308 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28314 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28315 if ${gcc_cv_as_avr_mrmw+:} false; then :
28316 $as_echo_n "(cached) " >&6
28317 else
28318 gcc_cv_as_avr_mrmw=no
28319 if test x$gcc_cv_as != x; then
28320 $as_echo '.text' > conftest.s
28321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28323 (eval $ac_try) 2>&5
28324 ac_status=$?
28325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28326 test $ac_status = 0; }; }
28327 then
28328 gcc_cv_as_avr_mrmw=yes
28329 else
28330 echo "configure: failed program was" >&5
28331 cat conftest.s >&5
28333 rm -f conftest.o conftest.s
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28337 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28338 if test $gcc_cv_as_avr_mrmw = yes; then
28340 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28346 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28347 if ${gcc_cv_as_avr_mgccisr+:} false; then :
28348 $as_echo_n "(cached) " >&6
28349 else
28350 gcc_cv_as_avr_mgccisr=no
28351 if test x$gcc_cv_as != x; then
28352 $as_echo '.text
28353 __gcc_isr 1
28354 __gcc_isr 2
28355 __gcc_isr 0,r24
28356 ' > conftest.s
28357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28359 (eval $ac_try) 2>&5
28360 ac_status=$?
28361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28362 test $ac_status = 0; }; }
28363 then
28364 gcc_cv_as_avr_mgccisr=yes
28365 else
28366 echo "configure: failed program was" >&5
28367 cat conftest.s >&5
28369 rm -f conftest.o conftest.s
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28373 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28374 if test $gcc_cv_as_avr_mgccisr = yes; then
28376 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28381 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28382 # Check how default linker description file implements .rodata for
28383 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28384 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28386 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28387 cat > conftest.s <<EOF
28388 .section .rodata,"a",@progbits
28389 .global xxvaryy
28390 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28391 xxvaryy:
28392 .word 1
28394 rm -f conftest.nm
28395 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28397 (eval $ac_try) 2>&5
28398 ac_status=$?
28399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28400 test $ac_status = 0; }; }
28401 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28403 (eval $ac_try) 2>&5
28404 ac_status=$?
28405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28406 test $ac_status = 0; }; }
28407 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
28408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28409 (eval $ac_try) 2>&5
28410 ac_status=$?
28411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28412 test $ac_status = 0; }; }
28413 if test -s conftest.nm
28414 then
28415 if grep ' R xxvaryy' conftest.nm > /dev/null; then
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28417 $as_echo "yes" >&6; }
28419 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28421 else
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28423 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28424 echo "$as_me: nm output was" >&5
28425 cat conftest.nm >&5
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
28427 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28429 else
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28431 $as_echo "test failed" >&6; }
28432 echo "$as_me: failed program was" >&5
28433 cat conftest.s >&5
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28435 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28437 rm -f conftest.s conftest.o conftest.elf conftest.nm
28439 # Check for emulation avrxmega2_flmap.
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega2_flmap support (PR31124)" >&5
28441 $as_echo_n "checking binutils for avrxmega2_flmap support (PR31124)... " >&6; }
28442 cat > conftest.s <<EOF
28443 .section .text,"ax",@progbits
28444 ldi r16, __flmap_value_with_lock
28446 { ac_try='$gcc_cv_as -mmcu=avrxmega2 conftest.s -o conftest.o'
28447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28448 (eval $ac_try) 2>&5
28449 ac_status=$?
28450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28451 test $ac_status = 0; }; }
28452 { ac_try='$gcc_cv_ld -mavrxmega2_flmap conftest.o -o conftest.elf'
28453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28454 (eval $ac_try) 2>&5
28455 ac_status=$?
28456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28457 test $ac_status = 0; }; }
28458 if test -s conftest.elf
28459 then
28460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28461 $as_echo "yes" >&6; }
28463 $as_echo "#define HAVE_LD_AVR_AVRXMEGA2_FLMAP 1" >>confdefs.h
28465 else
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28467 $as_echo "no" >&6; }
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28469 $as_echo "$as_me: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28471 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28473 rm -f conftest.o conftest.elf
28475 # Check for emulation avrxmega4_flmap.
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega4_flmap support (PR31124)" >&5
28477 $as_echo_n "checking binutils for avrxmega4_flmap support (PR31124)... " >&6; }
28478 { ac_try='$gcc_cv_as -mmcu=avrxmega4 conftest.s -o conftest.o'
28479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28480 (eval $ac_try) 2>&5
28481 ac_status=$?
28482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28483 test $ac_status = 0; }; }
28484 { ac_try='$gcc_cv_ld -mavrxmega4_flmap conftest.o -o conftest.elf'
28485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28486 (eval $ac_try) 2>&5
28487 ac_status=$?
28488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28489 test $ac_status = 0; }; }
28490 if test -s conftest.elf
28491 then
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28493 $as_echo "yes" >&6; }
28495 $as_echo "#define HAVE_LD_AVR_AVRXMEGA4_FLMAP 1" >>confdefs.h
28497 else
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28499 $as_echo "no" >&6; }
28500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28501 $as_echo "$as_me: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28503 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28505 rm -f conftest.s conftest.o conftest.elf
28508 cris-*-*)
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28510 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28511 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
28512 $as_echo_n "(cached) " >&6
28513 else
28514 gcc_cv_as_cris_no_mul_bug=no
28515 if test x$gcc_cv_as != x; then
28516 $as_echo '.text' > conftest.s
28517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28519 (eval $ac_try) 2>&5
28520 ac_status=$?
28521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28522 test $ac_status = 0; }; }
28523 then
28524 gcc_cv_as_cris_no_mul_bug=yes
28525 else
28526 echo "configure: failed program was" >&5
28527 cat conftest.s >&5
28529 rm -f conftest.o conftest.s
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28533 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28534 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28536 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28542 sparc*-*-*)
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28544 $as_echo_n "checking assembler for -relax option... " >&6; }
28545 if ${gcc_cv_as_sparc_relax+:} false; then :
28546 $as_echo_n "(cached) " >&6
28547 else
28548 gcc_cv_as_sparc_relax=no
28549 if test x$gcc_cv_as != x; then
28550 $as_echo '.text' > conftest.s
28551 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28553 (eval $ac_try) 2>&5
28554 ac_status=$?
28555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28556 test $ac_status = 0; }; }
28557 then
28558 gcc_cv_as_sparc_relax=yes
28559 else
28560 echo "configure: failed program was" >&5
28561 cat conftest.s >&5
28563 rm -f conftest.o conftest.s
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
28567 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28568 if test $gcc_cv_as_sparc_relax = yes; then
28570 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28576 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28577 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
28578 $as_echo_n "(cached) " >&6
28579 else
28580 gcc_cv_as_sparc_gotdata_op=no
28581 if test x$gcc_cv_as != x; then
28582 $as_echo '.text
28583 .align 4
28584 foo:
28586 bar:
28587 sethi %gdop_hix22(foo), %g1
28588 xor %g1, %gdop_lox10(foo), %g1
28589 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28592 (eval $ac_try) 2>&5
28593 ac_status=$?
28594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28595 test $ac_status = 0; }; }
28596 then
28597 if test x$gcc_cv_ld != x \
28598 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28599 if test x$gcc_cv_objdump != x; then
28600 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
28601 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
28602 gcc_cv_as_sparc_gotdata_op=no
28603 else
28604 gcc_cv_as_sparc_gotdata_op=yes
28608 rm -f conftest
28609 else
28610 echo "configure: failed program was" >&5
28611 cat conftest.s >&5
28613 rm -f conftest.o conftest.s
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28617 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28618 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28620 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28626 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28627 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
28628 $as_echo_n "(cached) " >&6
28629 else
28630 gcc_cv_as_sparc_ua_pcrel=no
28631 if test x$gcc_cv_as != x; then
28632 $as_echo '.text
28633 foo:
28635 .data
28636 .align 4
28637 .byte 0
28638 .uaword %r_disp32(foo)' > conftest.s
28639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28641 (eval $ac_try) 2>&5
28642 ac_status=$?
28643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28644 test $ac_status = 0; }; }
28645 then
28646 if test x$gcc_cv_ld != x \
28647 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28648 gcc_cv_as_sparc_ua_pcrel=yes
28650 rm -f conftest
28651 else
28652 echo "configure: failed program was" >&5
28653 cat conftest.s >&5
28655 rm -f conftest.o conftest.s
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28659 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28660 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28662 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28666 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28667 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
28668 $as_echo_n "(cached) " >&6
28669 else
28670 gcc_cv_as_sparc_ua_pcrel_hidden=no
28671 if test x$gcc_cv_as != x; then
28672 $as_echo '.data
28673 .align 4
28674 .byte 0x31
28675 .uaword %r_disp32(foo)
28676 .byte 0x32, 0x33, 0x34
28677 .global foo
28678 .hidden foo
28679 foo:
28680 .skip 4' > conftest.s
28681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28683 (eval $ac_try) 2>&5
28684 ac_status=$?
28685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28686 test $ac_status = 0; }; }
28687 then
28688 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
28689 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
28690 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
28691 | grep ' 31000000 07323334' > /dev/null 2>&1; then
28692 if $gcc_cv_objdump -R conftest 2> /dev/null \
28693 | grep 'DISP32' > /dev/null 2>&1; then
28695 else
28696 gcc_cv_as_sparc_ua_pcrel_hidden=yes
28699 rm -f conftest
28700 else
28701 echo "configure: failed program was" >&5
28702 cat conftest.s >&5
28704 rm -f conftest.o conftest.s
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
28708 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28709 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28711 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28717 # unaligned pcrel relocs
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28720 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28721 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
28722 $as_echo_n "(cached) " >&6
28723 else
28724 gcc_cv_as_sparc_offsetable_lo10=no
28725 if test x$gcc_cv_as != x; then
28726 $as_echo '.text
28727 or %g1, %lo(ab) + 12, %g1
28728 or %g1, %lo(ab + 12), %g1' > conftest.s
28729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28731 (eval $ac_try) 2>&5
28732 ac_status=$?
28733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28734 test $ac_status = 0; }; }
28735 then
28736 if test x$gcc_cv_objdump != x \
28737 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
28738 | grep ' 82106000 82106000' > /dev/null 2>&1; then
28739 gcc_cv_as_sparc_offsetable_lo10=yes
28741 else
28742 echo "configure: failed program was" >&5
28743 cat conftest.s >&5
28745 rm -f conftest.o conftest.s
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28749 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28750 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28752 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28758 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28759 if ${gcc_cv_as_sparc_fmaf+:} false; then :
28760 $as_echo_n "(cached) " >&6
28761 else
28762 gcc_cv_as_sparc_fmaf=no
28763 if test x$gcc_cv_as != x; then
28764 $as_echo '.text
28765 .register %g2, #scratch
28766 .register %g3, #scratch
28767 .align 4
28768 fmaddd %f0, %f2, %f4, %f6
28769 addxccc %g1, %g2, %g3
28770 fsrl32 %f2, %f4, %f8
28771 fnaddd %f10, %f12, %f14' > conftest.s
28772 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28774 (eval $ac_try) 2>&5
28775 ac_status=$?
28776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28777 test $ac_status = 0; }; }
28778 then
28779 gcc_cv_as_sparc_fmaf=yes
28780 else
28781 echo "configure: failed program was" >&5
28782 cat conftest.s >&5
28784 rm -f conftest.o conftest.s
28787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28788 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28789 if test $gcc_cv_as_sparc_fmaf = yes; then
28791 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28797 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28798 if ${gcc_cv_as_sparc_sparc4+:} false; then :
28799 $as_echo_n "(cached) " >&6
28800 else
28801 gcc_cv_as_sparc_sparc4=no
28802 if test x$gcc_cv_as != x; then
28803 $as_echo '.text
28804 .register %g2, #scratch
28805 .register %g3, #scratch
28806 .align 4
28807 cxbe %g2, %g3, 1f
28808 1: cwbneg %g2, %g3, 1f
28809 1: sha1
28811 aes_kexpand0 %f4, %f6, %f8
28812 des_round %f38, %f40, %f42, %f44
28813 camellia_f %f54, %f56, %f58, %f60
28814 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28817 (eval $ac_try) 2>&5
28818 ac_status=$?
28819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28820 test $ac_status = 0; }; }
28821 then
28822 gcc_cv_as_sparc_sparc4=yes
28823 else
28824 echo "configure: failed program was" >&5
28825 cat conftest.s >&5
28827 rm -f conftest.o conftest.s
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28831 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28832 if test $gcc_cv_as_sparc_sparc4 = yes; then
28834 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28840 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28841 if ${gcc_cv_as_sparc_sparc5+:} false; then :
28842 $as_echo_n "(cached) " >&6
28843 else
28844 gcc_cv_as_sparc_sparc5=no
28845 if test x$gcc_cv_as != x; then
28846 $as_echo '.text
28847 .register %g2, #scratch
28848 .register %g3, #scratch
28849 .align 4
28850 subxc %g1, %g2, %g3
28851 fpadd8 %f0, %f2, %f4' > conftest.s
28852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28854 (eval $ac_try) 2>&5
28855 ac_status=$?
28856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28857 test $ac_status = 0; }; }
28858 then
28859 gcc_cv_as_sparc_sparc5=yes
28860 else
28861 echo "configure: failed program was" >&5
28862 cat conftest.s >&5
28864 rm -f conftest.o conftest.s
28867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28868 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28869 if test $gcc_cv_as_sparc_sparc5 = yes; then
28871 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28877 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28878 if ${gcc_cv_as_sparc_sparc6+:} false; then :
28879 $as_echo_n "(cached) " >&6
28880 else
28881 gcc_cv_as_sparc_sparc6=no
28882 if test x$gcc_cv_as != x; then
28883 $as_echo '.text
28884 .register %g2, #scratch
28885 .register %g3, #scratch
28886 .align 4
28887 rd %entropy, %g1
28888 fpsll64x %f0, %f2, %f4' > conftest.s
28889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
28890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28891 (eval $ac_try) 2>&5
28892 ac_status=$?
28893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28894 test $ac_status = 0; }; }
28895 then
28896 gcc_cv_as_sparc_sparc6=yes
28897 else
28898 echo "configure: failed program was" >&5
28899 cat conftest.s >&5
28901 rm -f conftest.o conftest.s
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
28905 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
28906 if test $gcc_cv_as_sparc_sparc6 = yes; then
28908 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
28914 $as_echo_n "checking assembler for LEON instructions... " >&6; }
28915 if ${gcc_cv_as_sparc_leon+:} false; then :
28916 $as_echo_n "(cached) " >&6
28917 else
28918 gcc_cv_as_sparc_leon=no
28919 if test x$gcc_cv_as != x; then
28920 $as_echo '.text
28921 .register %g2, #scratch
28922 .register %g3, #scratch
28923 .align 4
28924 smac %g2, %g3, %g1
28925 umac %g2, %g3, %g1
28926 casa [%g2] 0xb, %g3, %g1' > conftest.s
28927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
28928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28929 (eval $ac_try) 2>&5
28930 ac_status=$?
28931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28932 test $ac_status = 0; }; }
28933 then
28934 gcc_cv_as_sparc_leon=yes
28935 else
28936 echo "configure: failed program was" >&5
28937 cat conftest.s >&5
28939 rm -f conftest.o conftest.s
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
28943 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
28944 if test $gcc_cv_as_sparc_leon = yes; then
28946 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
28952 i[34567]86-*-* | x86_64-*-*)
28953 case $target_os in
28954 cygwin*)
28955 # Full C++ conformance when using a shared libstdc++-v3 requires some
28956 # support from the Cygwin DLL, which in more recent versions exports
28957 # wrappers to aid in interposing and redirecting operators new, delete,
28958 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
28959 # are configuring for a version of Cygwin that exports the wrappers.
28960 if test x$host = x$target && test x$host_cpu = xi686; then
28961 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
28962 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
28963 gcc_ac_cygwin_dll_wrappers=yes
28964 else
28965 gcc_ac_cygwin_dll_wrappers=no
28968 else
28969 # Can't check presence of libc functions during cross-compile, so
28970 # we just have to assume we're building for an up-to-date target.
28971 gcc_ac_cygwin_dll_wrappers=yes
28974 cat >>confdefs.h <<_ACEOF
28975 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
28976 _ACEOF
28978 esac
28979 case $target_os in
28980 cygwin* | pe | mingw32*)
28981 # Recent binutils allows the three-operand form of ".comm" on PE. This
28982 # definition is used unconditionally to initialise the default state of
28983 # the target option variable that governs usage of the feature.
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
28985 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
28986 if ${gcc_cv_as_comm_has_align+:} false; then :
28987 $as_echo_n "(cached) " >&6
28988 else
28989 gcc_cv_as_comm_has_align=no
28990 if test x$gcc_cv_as != x; then
28991 $as_echo '.comm foo,1,32' > conftest.s
28992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28994 (eval $ac_try) 2>&5
28995 ac_status=$?
28996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28997 test $ac_status = 0; }; }
28998 then
28999 gcc_cv_as_comm_has_align=yes
29000 else
29001 echo "configure: failed program was" >&5
29002 cat conftest.s >&5
29004 rm -f conftest.o conftest.s
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
29008 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
29012 cat >>confdefs.h <<_ACEOF
29013 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
29014 _ACEOF
29016 # Used for DWARF 2 in PE
29017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
29018 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
29019 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
29020 $as_echo_n "(cached) " >&6
29021 else
29022 gcc_cv_as_ix86_pe_secrel32=no
29023 if test x$gcc_cv_as != x; then
29024 $as_echo '.text
29025 foo: nop
29026 .data
29027 .secrel32 foo' > conftest.s
29028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29030 (eval $ac_try) 2>&5
29031 ac_status=$?
29032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29033 test $ac_status = 0; }; }
29034 then
29035 if test x$gcc_cv_ld != x \
29036 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
29037 gcc_cv_as_ix86_pe_secrel32=yes
29039 rm -f conftest
29040 else
29041 echo "configure: failed program was" >&5
29042 cat conftest.s >&5
29044 rm -f conftest.o conftest.s
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
29048 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
29049 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
29051 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
29055 # Test if the assembler supports the extended form of the .section
29056 # directive that specifies section alignment. LTO support uses this,
29057 # but normally only after installation, so we warn but don't fail the
29058 # configure if LTO is enabled but the assembler does not support it.
29059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
29060 $as_echo_n "checking assembler for .section with alignment... " >&6; }
29061 if ${gcc_cv_as_section_has_align+:} false; then :
29062 $as_echo_n "(cached) " >&6
29063 else
29064 gcc_cv_as_section_has_align=no
29065 if test x$gcc_cv_as != x; then
29066 $as_echo '.section lto_test,"dr0"' > conftest.s
29067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
29068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29069 (eval $ac_try) 2>&5
29070 ac_status=$?
29071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29072 test $ac_status = 0; }; }
29073 then
29074 gcc_cv_as_section_has_align=yes
29075 else
29076 echo "configure: failed program was" >&5
29077 cat conftest.s >&5
29079 rm -f conftest.o conftest.s
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
29083 $as_echo "$gcc_cv_as_section_has_align" >&6; }
29086 if test x$gcc_cv_as_section_has_align != xyes; then
29087 case ",$enable_languages," in
29088 *,lto,*)
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
29090 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
29092 esac
29095 esac
29096 case $target_os in
29097 darwin2* | darwin19*)
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
29099 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
29100 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
29101 $as_echo_n "(cached) " >&6
29102 else
29103 gcc_cv_as_mllvm_x86_pad_for_align=no
29104 if test x$gcc_cv_as != x; then
29105 $as_echo '.text' > conftest.s
29106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
29107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29108 (eval $ac_try) 2>&5
29109 ac_status=$?
29110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29111 test $ac_status = 0; }; }
29112 then
29113 gcc_cv_as_mllvm_x86_pad_for_align=yes
29114 else
29115 echo "configure: failed program was" >&5
29116 cat conftest.s >&5
29118 rm -f conftest.o conftest.s
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
29122 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
29123 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
29125 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
29130 esac
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29133 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29134 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
29135 $as_echo_n "(cached) " >&6
29136 else
29137 gcc_cv_as_ix86_xbrace_comment=no
29138 if test x$gcc_cv_as != x; then
29139 $as_echo '.text' > conftest.s
29140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
29141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29142 (eval $ac_try) 2>&5
29143 ac_status=$?
29144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29145 test $ac_status = 0; }; }
29146 then
29147 gcc_cv_as_ix86_xbrace_comment=yes
29148 else
29149 echo "configure: failed program was" >&5
29150 cat conftest.s >&5
29152 rm -f conftest.o conftest.s
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
29156 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29157 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29159 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29165 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29166 if ${gcc_cv_as_ix86_filds+:} false; then :
29167 $as_echo_n "(cached) " >&6
29168 else
29169 gcc_cv_as_ix86_filds=no
29170 if test x$gcc_cv_as != x; then
29171 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29174 (eval $ac_try) 2>&5
29175 ac_status=$?
29176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29177 test $ac_status = 0; }; }
29178 then
29179 gcc_cv_as_ix86_filds=yes
29180 else
29181 echo "configure: failed program was" >&5
29182 cat conftest.s >&5
29184 rm -f conftest.o conftest.s
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
29188 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29189 if test $gcc_cv_as_ix86_filds = yes; then
29191 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29197 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29198 if ${gcc_cv_as_ix86_fildq+:} false; then :
29199 $as_echo_n "(cached) " >&6
29200 else
29201 gcc_cv_as_ix86_fildq=no
29202 if test x$gcc_cv_as != x; then
29203 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29206 (eval $ac_try) 2>&5
29207 ac_status=$?
29208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29209 test $ac_status = 0; }; }
29210 then
29211 gcc_cv_as_ix86_fildq=yes
29212 else
29213 echo "configure: failed program was" >&5
29214 cat conftest.s >&5
29216 rm -f conftest.o conftest.s
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29220 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29221 if test $gcc_cv_as_ix86_fildq = yes; then
29223 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29229 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29230 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
29231 $as_echo_n "(cached) " >&6
29232 else
29233 gcc_cv_as_ix86_cmov_sun_syntax=no
29234 if test x$gcc_cv_as != x; then
29235 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29238 (eval $ac_try) 2>&5
29239 ac_status=$?
29240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29241 test $ac_status = 0; }; }
29242 then
29243 gcc_cv_as_ix86_cmov_sun_syntax=yes
29244 else
29245 echo "configure: failed program was" >&5
29246 cat conftest.s >&5
29248 rm -f conftest.o conftest.s
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29252 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29253 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29255 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29261 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29262 if ${gcc_cv_as_ix86_ffreep+:} false; then :
29263 $as_echo_n "(cached) " >&6
29264 else
29265 gcc_cv_as_ix86_ffreep=no
29266 if test x$gcc_cv_as != x; then
29267 $as_echo 'ffreep %st(1)' > conftest.s
29268 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29270 (eval $ac_try) 2>&5
29271 ac_status=$?
29272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29273 test $ac_status = 0; }; }
29274 then
29275 gcc_cv_as_ix86_ffreep=yes
29276 else
29277 echo "configure: failed program was" >&5
29278 cat conftest.s >&5
29280 rm -f conftest.o conftest.s
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
29284 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29285 if test $gcc_cv_as_ix86_ffreep = yes; then
29287 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29293 $as_echo_n "checking assembler for .quad directive... " >&6; }
29294 if ${gcc_cv_as_ix86_quad+:} false; then :
29295 $as_echo_n "(cached) " >&6
29296 else
29297 gcc_cv_as_ix86_quad=no
29298 if test x$gcc_cv_as != x; then
29299 $as_echo '.quad 0' > conftest.s
29300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29302 (eval $ac_try) 2>&5
29303 ac_status=$?
29304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29305 test $ac_status = 0; }; }
29306 then
29307 gcc_cv_as_ix86_quad=yes
29308 else
29309 echo "configure: failed program was" >&5
29310 cat conftest.s >&5
29312 rm -f conftest.o conftest.s
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29316 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29317 if test $gcc_cv_as_ix86_quad = yes; then
29319 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29325 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29326 if ${gcc_cv_as_ix86_sahf+:} false; then :
29327 $as_echo_n "(cached) " >&6
29328 else
29329 gcc_cv_as_ix86_sahf=no
29330 if test x$gcc_cv_as != x; then
29331 $as_echo '.code64
29332 sahf' > conftest.s
29333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29335 (eval $ac_try) 2>&5
29336 ac_status=$?
29337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29338 test $ac_status = 0; }; }
29339 then
29340 gcc_cv_as_ix86_sahf=yes
29341 else
29342 echo "configure: failed program was" >&5
29343 cat conftest.s >&5
29345 rm -f conftest.o conftest.s
29348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29349 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29350 if test $gcc_cv_as_ix86_sahf = yes; then
29352 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29358 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29359 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
29360 $as_echo_n "(cached) " >&6
29361 else
29362 gcc_cv_as_ix86_interunit_movq=no
29363 if test x$gcc_cv_as != x; then
29364 $as_echo '.code64
29365 movq %mm0, %rax
29366 movq %rax, %xmm0' > conftest.s
29367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29369 (eval $ac_try) 2>&5
29370 ac_status=$?
29371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29372 test $ac_status = 0; }; }
29373 then
29374 gcc_cv_as_ix86_interunit_movq=yes
29375 else
29376 echo "configure: failed program was" >&5
29377 cat conftest.s >&5
29379 rm -f conftest.o conftest.s
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29383 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29387 cat >>confdefs.h <<_ACEOF
29388 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29389 _ACEOF
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29393 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29394 if ${gcc_cv_as_ix86_hle+:} false; then :
29395 $as_echo_n "(cached) " >&6
29396 else
29397 gcc_cv_as_ix86_hle=no
29398 if test x$gcc_cv_as != x; then
29399 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29402 (eval $ac_try) 2>&5
29403 ac_status=$?
29404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29405 test $ac_status = 0; }; }
29406 then
29407 gcc_cv_as_ix86_hle=yes
29408 else
29409 echo "configure: failed program was" >&5
29410 cat conftest.s >&5
29412 rm -f conftest.o conftest.s
29415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29416 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29417 if test $gcc_cv_as_ix86_hle = yes; then
29419 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29425 $as_echo_n "checking assembler for swap suffix... " >&6; }
29426 if ${gcc_cv_as_ix86_swap+:} false; then :
29427 $as_echo_n "(cached) " >&6
29428 else
29429 gcc_cv_as_ix86_swap=no
29430 if test x$gcc_cv_as != x; then
29431 $as_echo 'movl.s %esp, %ebp' > conftest.s
29432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29434 (eval $ac_try) 2>&5
29435 ac_status=$?
29436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29437 test $ac_status = 0; }; }
29438 then
29439 gcc_cv_as_ix86_swap=yes
29440 else
29441 echo "configure: failed program was" >&5
29442 cat conftest.s >&5
29444 rm -f conftest.o conftest.s
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29448 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29449 if test $gcc_cv_as_ix86_swap = yes; then
29451 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29457 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29458 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
29459 $as_echo_n "(cached) " >&6
29460 else
29461 gcc_cv_as_ix86_diff_sect_delta=no
29462 if test x$gcc_cv_as != x; then
29463 $as_echo '.section .rodata
29464 .L1:
29465 .long .L2-.L1
29466 .long .L3-.L1
29467 .text
29468 .L3: nop
29469 .L2: nop' > conftest.s
29470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29472 (eval $ac_try) 2>&5
29473 ac_status=$?
29474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29475 test $ac_status = 0; }; }
29476 then
29477 gcc_cv_as_ix86_diff_sect_delta=yes
29478 else
29479 echo "configure: failed program was" >&5
29480 cat conftest.s >&5
29482 rm -f conftest.o conftest.s
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29486 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29487 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29489 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29495 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29496 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
29497 $as_echo_n "(cached) " >&6
29498 else
29499 gcc_cv_as_ix86_rep_lock_prefix=no
29500 if test x$gcc_cv_as != x; then
29501 $as_echo 'rep movsl
29502 rep ret
29503 rep nop
29504 rep bsf %ecx, %eax
29505 rep bsr %ecx, %eax
29506 lock addl %edi, (%eax,%esi)
29507 lock orl $0, (%esp)' > conftest.s
29508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29510 (eval $ac_try) 2>&5
29511 ac_status=$?
29512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29513 test $ac_status = 0; }; }
29514 then
29515 gcc_cv_as_ix86_rep_lock_prefix=yes
29516 else
29517 echo "configure: failed program was" >&5
29518 cat conftest.s >&5
29520 rm -f conftest.o conftest.s
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
29524 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29525 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29527 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29533 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29534 if ${gcc_cv_as_ix86_ud2+:} false; then :
29535 $as_echo_n "(cached) " >&6
29536 else
29537 gcc_cv_as_ix86_ud2=no
29538 if test x$gcc_cv_as != x; then
29539 $as_echo 'ud2' > conftest.s
29540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29542 (eval $ac_try) 2>&5
29543 ac_status=$?
29544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29545 test $ac_status = 0; }; }
29546 then
29547 gcc_cv_as_ix86_ud2=yes
29548 else
29549 echo "configure: failed program was" >&5
29550 cat conftest.s >&5
29552 rm -f conftest.o conftest.s
29555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29556 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29557 if test $gcc_cv_as_ix86_ud2 = yes; then
29559 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29564 # Enforce 32-bit output with gas and gld.
29565 if test x$gas = xyes; then
29566 as_ix86_gas_32_opt="--32"
29568 if echo "$ld_ver" | grep GNU > /dev/null; then
29569 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
29570 ld_ix86_gld_32_opt="-melf_i386_sol2"
29571 else
29572 ld_ix86_gld_32_opt="-melf_i386"
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29577 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29578 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
29579 $as_echo_n "(cached) " >&6
29580 else
29581 gcc_cv_as_ix86_tlsgdplt=no
29582 if test x$gcc_cv_as != x; then
29583 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29586 (eval $ac_try) 2>&5
29587 ac_status=$?
29588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29589 test $ac_status = 0; }; }
29590 then
29591 if test x$gcc_cv_ld != x \
29592 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29593 gcc_cv_as_ix86_tlsgdplt=yes
29595 rm -f conftest
29596 else
29597 echo "configure: failed program was" >&5
29598 cat conftest.s >&5
29600 rm -f conftest.o conftest.s
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29604 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29605 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29607 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29612 conftest_s='
29613 .section .tdata,"aw'$tls_section_flag'",@progbits
29614 tls_ld:
29615 .section .text,"ax",@progbits
29616 call tls_ld@tlsldmplt'
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29619 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29620 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
29621 $as_echo_n "(cached) " >&6
29622 else
29623 gcc_cv_as_ix86_tlsldmplt=no
29624 if test x$gcc_cv_as != x; then
29625 $as_echo "$conftest_s" > conftest.s
29626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29628 (eval $ac_try) 2>&5
29629 ac_status=$?
29630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29631 test $ac_status = 0; }; }
29632 then
29633 if test x$gcc_cv_ld != x \
29634 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29635 gcc_cv_as_ix86_tlsldmplt=yes
29637 rm -f conftest
29638 else
29639 echo "configure: failed program was" >&5
29640 cat conftest.s >&5
29642 rm -f conftest.o conftest.s
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29646 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29650 cat >>confdefs.h <<_ACEOF
29651 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29652 _ACEOF
29655 conftest_s='
29656 .section .text,"ax",@progbits
29657 .globl _start
29658 .type _start, @function
29659 _start:
29660 leal value@tlsldm(%ebx), %eax
29661 call ___tls_get_addr@plt
29663 .section .tdata,"aw'$tls_section_flag'",@progbits
29664 .type value, @object
29665 value:'
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29667 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29668 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
29669 $as_echo_n "(cached) " >&6
29670 else
29671 gcc_cv_as_ix86_tlsldm=no
29672 if test x$gcc_cv_as != x; then
29673 $as_echo "$conftest_s" > conftest.s
29674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29676 (eval $ac_try) 2>&5
29677 ac_status=$?
29678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29679 test $ac_status = 0; }; }
29680 then
29681 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29682 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
29683 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
29684 || dis conftest 2>/dev/null | grep nop > /dev/null; then
29685 gcc_cv_as_ix86_tlsldm=yes
29688 rm -f conftest
29689 else
29690 echo "configure: failed program was" >&5
29691 cat conftest.s >&5
29693 rm -f conftest.o conftest.s
29696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
29697 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29701 cat >>confdefs.h <<_ACEOF
29702 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29703 _ACEOF
29706 conftest_s='
29707 .data
29708 bar:
29709 .byte 1
29710 .text
29711 .global _start
29712 _start:
29713 cmpl $0, bar@GOT
29714 jmp *_start@GOT'
29715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29716 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29717 if ${gcc_cv_as_ix86_got32x+:} false; then :
29718 $as_echo_n "(cached) " >&6
29719 else
29720 gcc_cv_as_ix86_got32x=no
29721 if test x$gcc_cv_as != x; then
29722 $as_echo "$conftest_s" > conftest.s
29723 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29725 (eval $ac_try) 2>&5
29726 ac_status=$?
29727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29728 test $ac_status = 0; }; }
29729 then
29730 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29731 && test x$gcc_cv_readelf != x \
29732 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29733 | grep R_386_GOT32X > /dev/null 2>&1 \
29734 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29735 if $gcc_cv_objdump -dw conftest 2>&1 \
29736 | grep 0xffffff > /dev/null 2>&1; then
29737 gcc_cv_as_ix86_got32x=no
29738 else
29739 gcc_cv_as_ix86_got32x=yes
29742 rm -f conftest
29743 else
29744 echo "configure: failed program was" >&5
29745 cat conftest.s >&5
29747 rm -f conftest.o conftest.s
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29751 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29755 cat >>confdefs.h <<_ACEOF
29756 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29757 _ACEOF
29760 # Check if gas and gld support "addq %r23,foo@GOTTPOFF(%rip), %r15"
29761 # with R_X86_64_CODE_6_GOTTPOFF relocation.
29762 if echo "$ld_ver" | grep GNU > /dev/null; then
29763 if $gcc_cv_ld -V 2>/dev/null | grep elf_x86_64_sol2 > /dev/null; then
29764 ld_ix86_gld_64_opt="-melf_x86_64_sol2"
29765 else
29766 ld_ix86_gld_64_opt="-melf_x86_64"
29769 # Enforce 64-bit output with gas and gld.
29770 if test x$gas = xyes; then
29771 as_ix86_gas_64_opt="--64"
29773 conftest_s='
29774 .text
29775 .globl _start
29776 .type _start, @function
29777 _start:
29778 addq %r23,foo@GOTTPOFF(%rip), %r15
29779 .section .tdata,"awT",@progbits
29780 .type foo, @object
29781 foo:
29782 .quad 0'
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc" >&5
29784 $as_echo_n "checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc... " >&6; }
29785 if ${gcc_cv_as_x86_64_code_6_gottpoff+:} false; then :
29786 $as_echo_n "(cached) " >&6
29787 else
29788 gcc_cv_as_x86_64_code_6_gottpoff=no
29789 if test x$gcc_cv_as != x; then
29790 $as_echo "$conftest_s" > conftest.s
29791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_64_opt -o conftest.o conftest.s >&5'
29792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29793 (eval $ac_try) 2>&5
29794 ac_status=$?
29795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29796 test $ac_status = 0; }; }
29797 then
29798 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29799 && test x$gcc_cv_readelf != x \
29800 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29801 | grep R_X86_64_CODE_6_GOTTPOFF > /dev/null 2>&1 \
29802 && $gcc_cv_ld $ld_ix86_gld_64_opt -o conftest conftest.o > /dev/null 2>&1; then
29803 if $gcc_cv_objdump -dw conftest 2>&1 \
29804 | grep "add \+\$0xf\+8,%r23,%r15" > /dev/null 2>&1; then
29805 gcc_cv_as_x86_64_code_6_gottpoff=yes
29806 else
29807 gcc_cv_as_x86_64_code_6_gottpoff=no
29810 rm -f conftest
29811 else
29812 echo "configure: failed program was" >&5
29813 cat conftest.s >&5
29815 rm -f conftest.o conftest.s
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_x86_64_code_6_gottpoff" >&5
29819 $as_echo "$gcc_cv_as_x86_64_code_6_gottpoff" >&6; }
29823 cat >>confdefs.h <<_ACEOF
29824 #define HAVE_AS_R_X86_64_CODE_6_GOTTPOFF `if test x"$gcc_cv_as_x86_64_code_6_gottpoff" = xyes; then echo 1; else echo 0; fi`
29825 _ACEOF
29828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29829 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29830 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
29831 $as_echo_n "(cached) " >&6
29832 else
29833 gcc_cv_as_ix86_gotoff_in_data=no
29834 if test x$gcc_cv_as != x; then
29835 $as_echo ' .text
29836 .L0:
29838 .data
29839 .long .L0@GOTOFF' > conftest.s
29840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29842 (eval $ac_try) 2>&5
29843 ac_status=$?
29844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29845 test $ac_status = 0; }; }
29846 then
29847 gcc_cv_as_ix86_gotoff_in_data=yes
29848 else
29849 echo "configure: failed program was" >&5
29850 cat conftest.s >&5
29852 rm -f conftest.o conftest.s
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29856 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29860 cat >>confdefs.h <<_ACEOF
29861 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29862 _ACEOF
29865 conftest_s='
29866 .section .text,"ax",@progbits
29867 .globl _start
29868 .type _start, @function
29869 _start:
29870 leal ld@tlsldm(%ecx), %eax
29871 call *___tls_get_addr@GOT(%ecx)
29872 leal gd@tlsgd(%ecx), %eax
29873 call *___tls_get_addr@GOT(%ecx)
29875 .section .tdata,"aw'$tls_section_flag'",@progbits
29876 .type ld, @object
29878 .byte 0
29879 .globl gd
29880 .type gd, @object
29882 .byte 0'
29883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29884 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29885 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
29886 $as_echo_n "(cached) " >&6
29887 else
29888 gcc_cv_as_ix86_tls_get_addr_via_got=no
29889 if test x$gcc_cv_as != x; then
29890 $as_echo "$conftest_s" > conftest.s
29891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29893 (eval $ac_try) 2>&5
29894 ac_status=$?
29895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29896 test $ac_status = 0; }; }
29897 then
29898 if test x$gcc_cv_ld != x \
29899 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29900 gcc_cv_as_ix86_tls_get_addr_via_got=yes
29902 rm -f conftest
29903 else
29904 echo "configure: failed program was" >&5
29905 cat conftest.s >&5
29907 rm -f conftest.o conftest.s
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
29911 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
29915 cat >>confdefs.h <<_ACEOF
29916 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
29917 _ACEOF
29921 ia64*-*-*)
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
29923 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
29924 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
29925 $as_echo_n "(cached) " >&6
29926 else
29927 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
29928 if test x$gcc_cv_as != x; then
29929 $as_echo ' .text
29930 addl r15 = @ltoffx(x#), gp
29932 ld8.mov r16 = [r15], x#
29933 ' > conftest.s
29934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29936 (eval $ac_try) 2>&5
29937 ac_status=$?
29938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29939 test $ac_status = 0; }; }
29940 then
29941 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
29942 else
29943 echo "configure: failed program was" >&5
29944 cat conftest.s >&5
29946 rm -f conftest.o conftest.s
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
29950 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
29951 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
29953 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
29960 powerpc*-*-*)
29962 case $target in
29963 *-*-darwin*)
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
29965 $as_echo_n "checking assembler for .machine directive support... " >&6; }
29966 if ${gcc_cv_as_machine_directive+:} false; then :
29967 $as_echo_n "(cached) " >&6
29968 else
29969 gcc_cv_as_machine_directive=no
29970 if test x$gcc_cv_as != x; then
29971 $as_echo ' .machine ppc7400' > conftest.s
29972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29974 (eval $ac_try) 2>&5
29975 ac_status=$?
29976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29977 test $ac_status = 0; }; }
29978 then
29979 gcc_cv_as_machine_directive=yes
29980 else
29981 echo "configure: failed program was" >&5
29982 cat conftest.s >&5
29984 rm -f conftest.o conftest.s
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
29988 $as_echo "$gcc_cv_as_machine_directive" >&6; }
29991 if test x$gcc_cv_as_machine_directive != xyes; then
29992 echo "*** This target requires an assembler supporting \".machine\"" >&2
29993 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
29994 test x$build = x$target && exit 1
29997 esac
29999 case $target in
30000 *-*-aix*) conftest_s=' .machine "pwr5"
30001 .csect .text[PR]
30002 mfcr 3,128';;
30003 *-*-darwin*) conftest_s=' .text
30004 mfcr r3,128';;
30005 *) conftest_s=' .machine power4
30006 .text
30007 mfcr 3,128';;
30008 esac
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
30011 $as_echo_n "checking assembler for mfcr field support... " >&6; }
30012 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
30013 $as_echo_n "(cached) " >&6
30014 else
30015 gcc_cv_as_powerpc_mfcrf=no
30016 if test x$gcc_cv_as != x; then
30017 $as_echo "$conftest_s" > conftest.s
30018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30020 (eval $ac_try) 2>&5
30021 ac_status=$?
30022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30023 test $ac_status = 0; }; }
30024 then
30025 gcc_cv_as_powerpc_mfcrf=yes
30026 else
30027 echo "configure: failed program was" >&5
30028 cat conftest.s >&5
30030 rm -f conftest.o conftest.s
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
30034 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
30035 if test $gcc_cv_as_powerpc_mfcrf = yes; then
30037 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
30042 case $target in
30043 *-*-aix*) conftest_s=' .machine "pwr10"
30044 .csect .text[PR]
30045 tend. 0';;
30046 *-*-darwin*) conftest_s=' .text
30047 tend. 0';;
30048 *) conftest_s=' .machine power10
30049 .text
30050 tend. 0';;
30051 esac
30053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
30054 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
30055 if ${gcc_cv_as_power10_htm+:} false; then :
30056 $as_echo_n "(cached) " >&6
30057 else
30058 gcc_cv_as_power10_htm=no
30059 if test x$gcc_cv_as != x; then
30060 $as_echo "$conftest_s" > conftest.s
30061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30063 (eval $ac_try) 2>&5
30064 ac_status=$?
30065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30066 test $ac_status = 0; }; }
30067 then
30068 gcc_cv_as_power10_htm=yes
30069 else
30070 echo "configure: failed program was" >&5
30071 cat conftest.s >&5
30073 rm -f conftest.o conftest.s
30076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
30077 $as_echo "$gcc_cv_as_power10_htm" >&6; }
30078 if test $gcc_cv_as_power10_htm = yes; then
30080 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
30085 case $target in
30086 *-*-aix*) conftest_s=' .csect .text[PR]
30087 LCF..0:
30088 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
30089 *-*-darwin*)
30090 conftest_s=' .text
30091 LCF0:
30092 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
30093 *) conftest_s=' .text
30094 .LCF0:
30095 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
30096 esac
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
30099 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
30100 if ${gcc_cv_as_powerpc_rel16+:} false; then :
30101 $as_echo_n "(cached) " >&6
30102 else
30103 gcc_cv_as_powerpc_rel16=no
30104 if test x$gcc_cv_as != x; then
30105 $as_echo "$conftest_s" > conftest.s
30106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30108 (eval $ac_try) 2>&5
30109 ac_status=$?
30110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30111 test $ac_status = 0; }; }
30112 then
30113 gcc_cv_as_powerpc_rel16=yes
30114 else
30115 echo "configure: failed program was" >&5
30116 cat conftest.s >&5
30118 rm -f conftest.o conftest.s
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
30122 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
30123 if test $gcc_cv_as_powerpc_rel16 = yes; then
30125 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
30130 case $target in
30131 *-*-aix*) conftest_s=' .machine "pwr7"
30132 .csect .text[PR]
30133 lxvd2x 1,2,3';;
30134 *) conftest_s=' .machine power7
30135 .text
30136 lxvd2x 1,2,3';;
30137 esac
30139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30140 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30141 if ${gcc_cv_as_powerpc_vsx+:} false; then :
30142 $as_echo_n "(cached) " >&6
30143 else
30144 gcc_cv_as_powerpc_vsx=no
30145 if test x$gcc_cv_as != x; then
30146 $as_echo "$conftest_s" > conftest.s
30147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30149 (eval $ac_try) 2>&5
30150 ac_status=$?
30151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30152 test $ac_status = 0; }; }
30153 then
30154 gcc_cv_as_powerpc_vsx=yes
30155 else
30156 echo "configure: failed program was" >&5
30157 cat conftest.s >&5
30159 rm -f conftest.o conftest.s
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30163 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30164 if test $gcc_cv_as_powerpc_vsx = yes; then
30166 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30172 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30173 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
30174 $as_echo_n "(cached) " >&6
30175 else
30176 gcc_cv_as_powerpc_gnu_attribute=no
30177 if test x$gcc_cv_as != x; then
30178 $as_echo '.gnu_attribute 4,1' > conftest.s
30179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30181 (eval $ac_try) 2>&5
30182 ac_status=$?
30183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30184 test $ac_status = 0; }; }
30185 then
30186 gcc_cv_as_powerpc_gnu_attribute=yes
30187 else
30188 echo "configure: failed program was" >&5
30189 cat conftest.s >&5
30191 rm -f conftest.o conftest.s
30194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
30195 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30196 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30198 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30204 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30205 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
30206 $as_echo_n "(cached) " >&6
30207 else
30208 gcc_cv_as_powerpc_entry_markers=no
30209 if test x$gcc_cv_as != x; then
30210 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30213 (eval $ac_try) 2>&5
30214 ac_status=$?
30215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30216 test $ac_status = 0; }; }
30217 then
30218 gcc_cv_as_powerpc_entry_markers=yes
30219 else
30220 echo "configure: failed program was" >&5
30221 cat conftest.s >&5
30223 rm -f conftest.o conftest.s
30226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30227 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30228 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30230 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30236 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30237 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
30238 $as_echo_n "(cached) " >&6
30239 else
30240 gcc_cv_as_powerpc_pltseq_markers=no
30241 if test x$gcc_cv_as != x; then
30242 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
30244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30245 (eval $ac_try) 2>&5
30246 ac_status=$?
30247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30248 test $ac_status = 0; }; }
30249 then
30250 gcc_cv_as_powerpc_pltseq_markers=yes
30251 else
30252 echo "configure: failed program was" >&5
30253 cat conftest.s >&5
30255 rm -f conftest.o conftest.s
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
30259 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30260 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30262 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30267 case $target in
30268 *-*-aix*)
30269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30270 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30271 if ${gcc_cv_as_aix_ref+:} false; then :
30272 $as_echo_n "(cached) " >&6
30273 else
30274 gcc_cv_as_aix_ref=no
30275 if test x$gcc_cv_as != x; then
30276 $as_echo ' .csect stuff[rw]
30277 stuff:
30278 .long 1
30279 .extern sym
30280 .ref sym
30281 ' > conftest.s
30282 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30284 (eval $ac_try) 2>&5
30285 ac_status=$?
30286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30287 test $ac_status = 0; }; }
30288 then
30289 gcc_cv_as_aix_ref=yes
30290 else
30291 echo "configure: failed program was" >&5
30292 cat conftest.s >&5
30294 rm -f conftest.o conftest.s
30297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30298 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30299 if test $gcc_cv_as_aix_ref = yes; then
30301 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30307 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30308 if ${gcc_cv_as_aix_dwloc+:} false; then :
30309 $as_echo_n "(cached) " >&6
30310 else
30311 gcc_cv_as_aix_dwloc=no
30312 if test x$gcc_cv_as != x; then
30313 $as_echo ' .dwsect 0xA0000
30314 Lframe..0:
30315 .vbyte 4,Lframe..0
30316 ' > conftest.s
30317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30319 (eval $ac_try) 2>&5
30320 ac_status=$?
30321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30322 test $ac_status = 0; }; }
30323 then
30324 gcc_cv_as_aix_dwloc=yes
30325 else
30326 echo "configure: failed program was" >&5
30327 cat conftest.s >&5
30329 rm -f conftest.o conftest.s
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30333 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30334 if test $gcc_cv_as_aix_dwloc = yes; then
30336 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30341 esac
30344 mips*-*-*)
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo" >&5
30346 $as_echo_n "checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo... " >&6; }
30347 if ${gcc_cv_as_mips_explicit_relocs_pcrel+:} false; then :
30348 $as_echo_n "(cached) " >&6
30349 else
30350 gcc_cv_as_mips_explicit_relocs_pcrel=no
30351 if test x$gcc_cv_as != x; then
30352 $as_echo ' lui $4,%pcrel_hi(foo)' > conftest.s
30353 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30355 (eval $ac_try) 2>&5
30356 ac_status=$?
30357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30358 test $ac_status = 0; }; }
30359 then
30360 gcc_cv_as_mips_explicit_relocs_pcrel=yes
30361 else
30362 echo "configure: failed program was" >&5
30363 cat conftest.s >&5
30365 rm -f conftest.o conftest.s
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs_pcrel" >&5
30369 $as_echo "$gcc_cv_as_mips_explicit_relocs_pcrel" >&6; }
30370 if test $gcc_cv_as_mips_explicit_relocs_pcrel = yes; then
30372 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_PCREL" >>confdefs.h
30377 if test x$gcc_cv_as_mips_explicit_relocs_pcrel = xno; then \
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %gp_rel" >&5
30379 $as_echo_n "checking assembler for explicit relocation support: %gp_rel... " >&6; }
30380 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
30381 $as_echo_n "(cached) " >&6
30382 else
30383 gcc_cv_as_mips_explicit_relocs=no
30384 if test x$gcc_cv_as != x; then
30385 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30388 (eval $ac_try) 2>&5
30389 ac_status=$?
30390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30391 test $ac_status = 0; }; }
30392 then
30393 gcc_cv_as_mips_explicit_relocs=yes
30394 else
30395 echo "configure: failed program was" >&5
30396 cat conftest.s >&5
30398 rm -f conftest.o conftest.s
30401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30402 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30403 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30405 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_BASE" >>confdefs.h
30409 else
30410 gcc_cv_as_mips_explicit_relocs=yes
30413 if test x$gcc_cv_as_mips_explicit_relocs = xno; then \
30415 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_NONE" >>confdefs.h
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30420 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30421 if ${gcc_cv_as_mips_no_shared+:} false; then :
30422 $as_echo_n "(cached) " >&6
30423 else
30424 gcc_cv_as_mips_no_shared=no
30425 if test x$gcc_cv_as != x; then
30426 $as_echo 'nop' > conftest.s
30427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30429 (eval $ac_try) 2>&5
30430 ac_status=$?
30431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30432 test $ac_status = 0; }; }
30433 then
30434 gcc_cv_as_mips_no_shared=yes
30435 else
30436 echo "configure: failed program was" >&5
30437 cat conftest.s >&5
30439 rm -f conftest.o conftest.s
30442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30443 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30444 if test $gcc_cv_as_mips_no_shared = yes; then
30446 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30452 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30453 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
30454 $as_echo_n "(cached) " >&6
30455 else
30456 gcc_cv_as_mips_gnu_attribute=no
30457 if test x$gcc_cv_as != x; then
30458 $as_echo '.gnu_attribute 4,1' > conftest.s
30459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30461 (eval $ac_try) 2>&5
30462 ac_status=$?
30463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30464 test $ac_status = 0; }; }
30465 then
30466 gcc_cv_as_mips_gnu_attribute=yes
30467 else
30468 echo "configure: failed program was" >&5
30469 cat conftest.s >&5
30471 rm -f conftest.o conftest.s
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
30475 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30476 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30478 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30484 $as_echo_n "checking assembler for .module support... " >&6; }
30485 if ${gcc_cv_as_mips_dot_module+:} false; then :
30486 $as_echo_n "(cached) " >&6
30487 else
30488 gcc_cv_as_mips_dot_module=no
30489 if test x$gcc_cv_as != x; then
30490 $as_echo '.module mips2
30491 .module fp=xx' > conftest.s
30492 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
30493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30494 (eval $ac_try) 2>&5
30495 ac_status=$?
30496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30497 test $ac_status = 0; }; }
30498 then
30499 gcc_cv_as_mips_dot_module=yes
30500 else
30501 echo "configure: failed program was" >&5
30502 cat conftest.s >&5
30504 rm -f conftest.o conftest.s
30507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
30508 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30509 if test $gcc_cv_as_mips_dot_module = yes; then
30511 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30515 if test x$gcc_cv_as_mips_dot_module = xno \
30516 && test x$with_fp_32 != x; then
30517 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30521 $as_echo_n "checking assembler for .micromips support... " >&6; }
30522 if ${gcc_cv_as_micromips_support+:} false; then :
30523 $as_echo_n "(cached) " >&6
30524 else
30525 gcc_cv_as_micromips_support=no
30526 if test x$gcc_cv_as != x; then
30527 $as_echo '.set micromips' > conftest.s
30528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30530 (eval $ac_try) 2>&5
30531 ac_status=$?
30532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30533 test $ac_status = 0; }; }
30534 then
30535 gcc_cv_as_micromips_support=yes
30536 else
30537 echo "configure: failed program was" >&5
30538 cat conftest.s >&5
30540 rm -f conftest.o conftest.s
30543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30544 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30545 if test $gcc_cv_as_micromips_support = yes; then
30547 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30553 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30554 if ${gcc_cv_as_mips_dtprelword+:} false; then :
30555 $as_echo_n "(cached) " >&6
30556 else
30557 gcc_cv_as_mips_dtprelword=no
30558 if test x$gcc_cv_as != x; then
30559 $as_echo '.section .tdata,"awT",@progbits
30561 .word 2
30562 .text
30563 .dtprelword x+0x8000' > conftest.s
30564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30566 (eval $ac_try) 2>&5
30567 ac_status=$?
30568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30569 test $ac_status = 0; }; }
30570 then
30571 gcc_cv_as_mips_dtprelword=yes
30572 else
30573 echo "configure: failed program was" >&5
30574 cat conftest.s >&5
30576 rm -f conftest.o conftest.s
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30580 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30581 if test $gcc_cv_as_mips_dtprelword = yes; then
30583 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30589 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30590 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
30591 $as_echo_n "(cached) " >&6
30592 else
30593 gcc_cv_as_mips_dspr1_mult=no
30594 if test x$gcc_cv_as != x; then
30595 $as_echo ' .set mips32r2
30596 .set nodspr2
30597 .set dsp
30598 madd $ac3,$4,$5
30599 maddu $ac3,$4,$5
30600 msub $ac3,$4,$5
30601 msubu $ac3,$4,$5
30602 mult $ac3,$4,$5
30603 multu $ac3,$4,$5' > conftest.s
30604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30606 (eval $ac_try) 2>&5
30607 ac_status=$?
30608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30609 test $ac_status = 0; }; }
30610 then
30611 gcc_cv_as_mips_dspr1_mult=yes
30612 else
30613 echo "configure: failed program was" >&5
30614 cat conftest.s >&5
30616 rm -f conftest.o conftest.s
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30620 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30621 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30623 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30629 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30630 gcc_cv_as_ld_jalr_reloc=no
30631 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30632 if test $in_tree_ld = yes ; then
30633 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
30634 && test $in_tree_ld_is_elf = yes; then
30635 gcc_cv_as_ld_jalr_reloc=yes
30637 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
30638 echo ' .ent x' > conftest.s
30639 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30640 echo ' lw $25,%call16(y)($28)' >> conftest.s
30641 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30642 echo '1: jalr $25' >> conftest.s
30643 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30644 echo '1: jalr $25' >> conftest.s
30645 echo ' .end x' >> conftest.s
30646 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
30647 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
30648 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
30649 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
30650 gcc_cv_as_ld_jalr_reloc=yes
30653 rm -f conftest.*
30656 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30657 if test x$target_cpu_default = x; then
30658 target_cpu_default=MASK_RELAX_PIC_CALLS
30659 else
30660 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30664 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30667 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30668 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
30669 $as_echo_n "(cached) " >&6
30670 else
30671 gcc_cv_ld_mips_personality_relaxation=no
30672 if test $in_tree_ld = yes ; then
30673 if test "$gcc_cv_gld_major_version" -eq 2 \
30674 -a "$gcc_cv_gld_minor_version" -ge 21 \
30675 -o "$gcc_cv_gld_major_version" -gt 2; then
30676 gcc_cv_ld_mips_personality_relaxation=yes
30678 elif test x$gcc_cv_as != x \
30679 -a x$gcc_cv_ld != x \
30680 -a x$gcc_cv_readelf != x ; then
30681 cat > conftest.s <<EOF
30682 .cfi_startproc
30683 .cfi_personality 0x80,indirect_ptr
30684 .ent test
30685 test:
30687 .end test
30688 .cfi_endproc
30690 .section .data,"aw",@progbits
30691 indirect_ptr:
30692 .dc.a personality
30694 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
30695 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
30696 if $gcc_cv_readelf -d conftest 2>&1 \
30697 | grep TEXTREL > /dev/null 2>&1; then
30699 elif $gcc_cv_readelf --relocs conftest 2>&1 \
30700 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
30702 else
30703 gcc_cv_ld_mips_personality_relaxation=yes
30707 rm -f conftest.s conftest.o conftest
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30710 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30711 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
30713 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30718 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30719 if ${gcc_cv_as_mips_nan+:} false; then :
30720 $as_echo_n "(cached) " >&6
30721 else
30722 gcc_cv_as_mips_nan=no
30723 if test x$gcc_cv_as != x; then
30724 $as_echo '' > conftest.s
30725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30727 (eval $ac_try) 2>&5
30728 ac_status=$?
30729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30730 test $ac_status = 0; }; }
30731 then
30732 gcc_cv_as_mips_nan=yes
30733 else
30734 echo "configure: failed program was" >&5
30735 cat conftest.s >&5
30737 rm -f conftest.o conftest.s
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30741 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30742 if test $gcc_cv_as_mips_nan = yes; then
30744 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30748 if test x$gcc_cv_as_mips_nan = xno \
30749 && test x$with_nan != x; then
30750 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30753 msp430-*-*)
30754 # Earlier GAS versions generically support .gnu_attribute, but the
30755 # msp430 assembler will not do anything with it.
30756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30757 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30758 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
30759 $as_echo_n "(cached) " >&6
30760 else
30761 gcc_cv_as_msp430_gnu_attribute=no
30762 if test x$gcc_cv_as != x; then
30763 $as_echo '.gnu_attribute 4,1' > conftest.s
30764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30766 (eval $ac_try) 2>&5
30767 ac_status=$?
30768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30769 test $ac_status = 0; }; }
30770 then
30771 gcc_cv_as_msp430_gnu_attribute=yes
30772 else
30773 echo "configure: failed program was" >&5
30774 cat conftest.s >&5
30776 rm -f conftest.o conftest.s
30779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30780 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30781 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30783 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30788 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30789 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
30790 $as_echo_n "(cached) " >&6
30791 else
30792 gcc_cv_as_msp430_mspabi_attribute=no
30793 if test x$gcc_cv_as != x; then
30794 $as_echo '.mspabi_attribute 4,2' > conftest.s
30795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30797 (eval $ac_try) 2>&5
30798 ac_status=$?
30799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30800 test $ac_status = 0; }; }
30801 then
30802 gcc_cv_as_msp430_mspabi_attribute=yes
30803 else
30804 echo "configure: failed program was" >&5
30805 cat conftest.s >&5
30807 rm -f conftest.o conftest.s
30810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30811 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30812 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30814 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30818 if test x$enable_newlib_nano_formatted_io = xyes; then
30820 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30824 riscv*-*-*)
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30826 $as_echo_n "checking assembler for .attribute support... " >&6; }
30827 if ${gcc_cv_as_riscv_attribute+:} false; then :
30828 $as_echo_n "(cached) " >&6
30829 else
30830 gcc_cv_as_riscv_attribute=no
30831 if test x$gcc_cv_as != x; then
30832 $as_echo '.attribute stack_align,4' > conftest.s
30833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30835 (eval $ac_try) 2>&5
30836 ac_status=$?
30837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30838 test $ac_status = 0; }; }
30839 then
30840 gcc_cv_as_riscv_attribute=yes
30841 else
30842 echo "configure: failed program was" >&5
30843 cat conftest.s >&5
30845 rm -f conftest.o conftest.s
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30849 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30850 if test $gcc_cv_as_riscv_attribute = yes; then
30852 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30857 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30858 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
30859 $as_echo_n "(cached) " >&6
30860 else
30861 gcc_cv_as_riscv_isa_spec=no
30862 if test x$gcc_cv_as != x; then
30863 $as_echo '' > conftest.s
30864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30866 (eval $ac_try) 2>&5
30867 ac_status=$?
30868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30869 test $ac_status = 0; }; }
30870 then
30871 gcc_cv_as_riscv_isa_spec=yes
30872 else
30873 echo "configure: failed program was" >&5
30874 cat conftest.s >&5
30876 rm -f conftest.o conftest.s
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30880 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30881 if test $gcc_cv_as_riscv_isa_spec = yes; then
30883 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
30887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
30888 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
30889 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
30890 $as_echo_n "(cached) " >&6
30891 else
30892 gcc_cv_as_riscv_march_zifencei=no
30893 if test x$gcc_cv_as != x; then
30894 $as_echo '' > conftest.s
30895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
30896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30897 (eval $ac_try) 2>&5
30898 ac_status=$?
30899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30900 test $ac_status = 0; }; }
30901 then
30902 gcc_cv_as_riscv_march_zifencei=yes
30903 else
30904 echo "configure: failed program was" >&5
30905 cat conftest.s >&5
30907 rm -f conftest.o conftest.s
30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
30911 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
30912 if test $gcc_cv_as_riscv_march_zifencei = yes; then
30914 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
30918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zaamo_zalrsc support" >&5
30919 $as_echo_n "checking assembler for -march=rv32i_zaamo_zalrsc support... " >&6; }
30920 if ${gcc_cv_as_riscv_march_zaamo_zalrsc+:} false; then :
30921 $as_echo_n "(cached) " >&6
30922 else
30923 gcc_cv_as_riscv_march_zaamo_zalrsc=no
30924 if test x$gcc_cv_as != x; then
30925 $as_echo '' > conftest.s
30926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zaamo_zalrsc -o conftest.o conftest.s >&5'
30927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30928 (eval $ac_try) 2>&5
30929 ac_status=$?
30930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30931 test $ac_status = 0; }; }
30932 then
30933 gcc_cv_as_riscv_march_zaamo_zalrsc=yes
30934 else
30935 echo "configure: failed program was" >&5
30936 cat conftest.s >&5
30938 rm -f conftest.o conftest.s
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zaamo_zalrsc" >&5
30942 $as_echo "$gcc_cv_as_riscv_march_zaamo_zalrsc" >&6; }
30943 if test $gcc_cv_as_riscv_march_zaamo_zalrsc = yes; then
30945 $as_echo "#define HAVE_AS_MARCH_ZAAMO_ZALRSC 1" >>confdefs.h
30949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_b support" >&5
30950 $as_echo_n "checking assembler for -march=rv32i_b support... " >&6; }
30951 if ${gcc_cv_as_riscv_march_b+:} false; then :
30952 $as_echo_n "(cached) " >&6
30953 else
30954 gcc_cv_as_riscv_march_b=no
30955 if test x$gcc_cv_as != x; then
30956 $as_echo '' > conftest.s
30957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_b -o conftest.o conftest.s >&5'
30958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30959 (eval $ac_try) 2>&5
30960 ac_status=$?
30961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30962 test $ac_status = 0; }; }
30963 then
30964 gcc_cv_as_riscv_march_b=yes
30965 else
30966 echo "configure: failed program was" >&5
30967 cat conftest.s >&5
30969 rm -f conftest.o conftest.s
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_b" >&5
30973 $as_echo "$gcc_cv_as_riscv_march_b" >&6; }
30974 if test $gcc_cv_as_riscv_march_b = yes; then
30976 $as_echo "#define HAVE_AS_MARCH_B 1" >>confdefs.h
30981 loongarch*-*-*)
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30983 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30984 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
30985 $as_echo_n "(cached) " >&6
30986 else
30987 gcc_cv_as_loongarch_dtprelword=no
30988 if test x$gcc_cv_as != x; then
30989 $as_echo '' > conftest.s
30990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
30991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30992 (eval $ac_try) 2>&5
30993 ac_status=$?
30994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30995 test $ac_status = 0; }; }
30996 then
30997 .section .tdata,"awT",@progbits
30999 .word 2
31000 .text
31001 .dtprelword x+0x8000
31002 else
31003 echo "configure: failed program was" >&5
31004 cat conftest.s >&5
31006 rm -f conftest.o conftest.s
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
31010 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
31012 if test $gcc_cv_as_loongarch_dtprelword != yes; then
31014 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
31018 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
31019 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
31020 $as_echo_n "(cached) " >&6
31021 else
31022 gcc_cv_as_loongarch_explicit_relocs=no
31023 if test x$gcc_cv_as != x; then
31024 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
31025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31027 (eval $ac_try) 2>&5
31028 ac_status=$?
31029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31030 test $ac_status = 0; }; }
31031 then
31032 gcc_cv_as_loongarch_explicit_relocs=yes
31033 else
31034 echo "configure: failed program was" >&5
31035 cat conftest.s >&5
31037 rm -f conftest.o conftest.s
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
31041 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
31042 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
31044 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
31049 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
31050 if ${gcc_cv_as_loongarch_call36+:} false; then :
31051 $as_echo_n "(cached) " >&6
31052 else
31053 gcc_cv_as_loongarch_call36=no
31054 if test x$gcc_cv_as != x; then
31055 $as_echo 'pcaddu18i $r1, %call36(a)
31056 jirl $r1, $r1, 0' > conftest.s
31057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31059 (eval $ac_try) 2>&5
31060 ac_status=$?
31061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31062 test $ac_status = 0; }; }
31063 then
31064 gcc_cv_as_loongarch_call36=yes
31065 else
31066 echo "configure: failed program was" >&5
31067 cat conftest.s >&5
31069 rm -f conftest.o conftest.s
31072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
31073 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
31074 if test $gcc_cv_as_loongarch_call36 = yes; then
31076 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
31081 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
31082 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
31083 $as_echo_n "(cached) " >&6
31084 else
31085 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
31086 if test x$gcc_cv_as != x; then
31087 $as_echo '.cfi_startproc
31088 .cfi_personality 0x9b,a
31089 .cfi_lsda 0x1b,b
31090 .cfi_endproc' > conftest.s
31091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31093 (eval $ac_try) 2>&5
31094 ac_status=$?
31095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31096 test $ac_status = 0; }; }
31097 then
31098 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
31099 else
31100 echo "configure: failed program was" >&5
31101 cat conftest.s >&5
31103 rm -f conftest.o conftest.s
31106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
31107 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
31108 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
31110 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
31115 $as_echo_n "checking assembler for -mrelax option... " >&6; }
31116 if ${gcc_cv_as_loongarch_relax+:} false; then :
31117 $as_echo_n "(cached) " >&6
31118 else
31119 gcc_cv_as_loongarch_relax=no
31120 if test x$gcc_cv_as != x; then
31121 $as_echo '.text' > conftest.s
31122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
31123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31124 (eval $ac_try) 2>&5
31125 ac_status=$?
31126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31127 test $ac_status = 0; }; }
31128 then
31129 gcc_cv_as_loongarch_relax=yes
31130 else
31131 echo "configure: failed program was" >&5
31132 cat conftest.s >&5
31134 rm -f conftest.o conftest.s
31137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
31138 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
31139 if test $gcc_cv_as_loongarch_relax = yes; then
31141 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
31146 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
31147 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false; then :
31148 $as_echo_n "(cached) " >&6
31149 else
31150 gcc_cv_as_loongarch_cond_branch_relax=no
31151 if test x$gcc_cv_as != x; then
31152 $as_echo 'a:
31153 .rept 32769
31155 .endr
31156 beq $a0,$a1,a' > conftest.s
31157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
31158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31159 (eval $ac_try) 2>&5
31160 ac_status=$?
31161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31162 test $ac_status = 0; }; }
31163 then
31164 gcc_cv_as_loongarch_cond_branch_relax=yes
31165 else
31166 echo "configure: failed program was" >&5
31167 cat conftest.s >&5
31169 rm -f conftest.o conftest.s
31172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31173 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31174 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31176 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls le relaxation support" >&5
31181 $as_echo_n "checking assembler for tls le relaxation support... " >&6; }
31182 if ${gcc_cv_as_loongarch_tls_le_relaxation_support+:} false; then :
31183 $as_echo_n "(cached) " >&6
31184 else
31185 gcc_cv_as_loongarch_tls_le_relaxation_support=no
31186 if test x$gcc_cv_as != x; then
31187 $as_echo 'lu12i.w $t0,%le_hi20_r(a)' > conftest.s
31188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31190 (eval $ac_try) 2>&5
31191 ac_status=$?
31192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31193 test $ac_status = 0; }; }
31194 then
31195 gcc_cv_as_loongarch_tls_le_relaxation_support=yes
31196 else
31197 echo "configure: failed program was" >&5
31198 cat conftest.s >&5
31200 rm -f conftest.o conftest.s
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_tls_le_relaxation_support" >&5
31204 $as_echo "$gcc_cv_as_loongarch_tls_le_relaxation_support" >&6; }
31205 if test $gcc_cv_as_loongarch_tls_le_relaxation_support = yes; then
31207 $as_echo "#define HAVE_AS_TLS_LE_RELAXATION 1" >>confdefs.h
31212 s390*-*-*)
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31214 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31215 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
31216 $as_echo_n "(cached) " >&6
31217 else
31218 gcc_cv_as_s390_gnu_attribute=no
31219 if test x$gcc_cv_as != x; then
31220 $as_echo '.gnu_attribute 8,1' > conftest.s
31221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31223 (eval $ac_try) 2>&5
31224 ac_status=$?
31225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31226 test $ac_status = 0; }; }
31227 then
31228 gcc_cv_as_s390_gnu_attribute=yes
31229 else
31230 echo "configure: failed program was" >&5
31231 cat conftest.s >&5
31233 rm -f conftest.o conftest.s
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31237 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31238 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31240 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31245 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31246 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
31247 $as_echo_n "(cached) " >&6
31248 else
31249 gcc_cv_as_s390_machine_machinemode=no
31250 if test x$gcc_cv_as != x; then
31251 $as_echo ' .machinemode push
31252 .machinemode pop
31253 .machine push
31254 .machine pop' > conftest.s
31255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31257 (eval $ac_try) 2>&5
31258 ac_status=$?
31259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31260 test $ac_status = 0; }; }
31261 then
31262 gcc_cv_as_s390_machine_machinemode=yes
31263 else
31264 echo "configure: failed program was" >&5
31265 cat conftest.s >&5
31267 rm -f conftest.o conftest.s
31270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
31271 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31272 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31274 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31279 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31280 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
31281 $as_echo_n "(cached) " >&6
31282 else
31283 gcc_cv_as_s390_architecture_modifiers=no
31284 if test x$gcc_cv_as != x; then
31285 $as_echo ' .machine z13+vx ' > conftest.s
31286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31288 (eval $ac_try) 2>&5
31289 ac_status=$?
31290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31291 test $ac_status = 0; }; }
31292 then
31293 gcc_cv_as_s390_architecture_modifiers=yes
31294 else
31295 echo "configure: failed program was" >&5
31296 cat conftest.s >&5
31298 rm -f conftest.o conftest.s
31301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
31302 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31303 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31305 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31310 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31311 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
31312 $as_echo_n "(cached) " >&6
31313 else
31314 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
31315 if test x$gcc_cv_as != x; then
31316 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31319 (eval $ac_try) 2>&5
31320 ac_status=$?
31321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31322 test $ac_status = 0; }; }
31323 then
31324 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
31325 else
31326 echo "configure: failed program was" >&5
31327 cat conftest.s >&5
31329 rm -f conftest.o conftest.s
31332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31333 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31334 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31336 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31341 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31342 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
31343 $as_echo_n "(cached) " >&6
31344 else
31345 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
31346 if test x$gcc_cv_as != x; then
31347 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31350 (eval $ac_try) 2>&5
31351 ac_status=$?
31352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31353 test $ac_status = 0; }; }
31354 then
31355 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
31356 else
31357 echo "configure: failed program was" >&5
31358 cat conftest.s >&5
31360 rm -f conftest.o conftest.s
31363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31364 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31365 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31367 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31373 esac
31375 # Mips, LoongArch and HP-UX need the GNU assembler.
31376 # Linux on IA64 might be able to use the Intel assembler.
31378 case "$target" in
31379 mips*-*-* | loongarch*-*-* | *-*-hpux* )
31380 if test x$gas_flag = xyes \
31381 || test x"$host" != x"$build" \
31382 || test ! -x "$gcc_cv_as" \
31383 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
31385 else
31386 echo "*** This configuration requires the GNU assembler" >&2
31387 exit 1
31390 esac
31392 # AMD GCN needs the LLVM assembler and linker.
31393 # Test that LLVM is at least 13.0.1.
31394 case "$target" in
31395 amdgcn-* | gcn-*)
31396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31397 $as_echo_n "checking llvm assembler version... " >&6; }
31398 gcc_cv_as_version="unknown"
31399 if test x$gcc_cv_as != x; then
31400 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31401 case "$gcc_cv_as_version" in
31402 13.0.[1-9]*) ;; # 13.0.1+
31403 13.[1-9]*) ;; # 13.1+
31404 1[4-9]*) ;; # 14..19
31405 [2-9][0-9]*) ;; # 20..99
31406 [1-9][0-9][0-9]*) ;; # 100+
31407 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
31408 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31409 esac
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31412 $as_echo "$gcc_cv_as_version, ok" >&6; }
31414 esac
31416 case "$target" in
31417 arm*)
31418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31419 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31420 if ${gcc_cv_as_arm_option_extensions+:} false; then :
31421 $as_echo_n "(cached) " >&6
31422 else
31423 gcc_cv_as_arm_option_extensions=no
31424 if test x$gcc_cv_as != x; then
31425 $as_echo '.text
31426 .thumb
31427 .syntax unified
31428 vmov.f32 s0, s1' > conftest.s
31429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31431 (eval $ac_try) 2>&5
31432 ac_status=$?
31433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31434 test $ac_status = 0; }; }
31435 then
31436 gcc_cv_as_arm_option_extensions=yes
31437 else
31438 echo "configure: failed program was" >&5
31439 cat conftest.s >&5
31441 rm -f conftest.o conftest.s
31444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31445 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31446 if test $gcc_cv_as_arm_option_extensions = yes; then
31448 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31452 esac
31454 # ??? Not all targets support dwarf2 debug_line, even within a version
31455 # of gas. Moreover, we need to emit a valid instruction to trigger any
31456 # info to the output file. So, as supported targets are added to gas 2.11,
31457 # add some instruction here to (also) show we expect this might work.
31458 # ??? Once 2.11 is released, probably need to add first known working
31459 # version to the per-target configury.
31460 case "$cpu_type" in
31461 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31462 | m68k | microblaze | mips | nds32 | pa | riscv | rs6000 | score | sparc \
31463 | visium | xstormy16 | xtensa | ft32)
31464 insn="nop"
31466 ia64 | s390)
31467 insn="nop 0"
31469 mmix)
31470 insn="swym 0"
31472 esac
31473 if test x"$insn" != x; then
31474 conftest_s="\
31475 .file 1 \"conftest.s\"
31476 .loc 1 3 0
31477 $insn"
31478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31479 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31480 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
31481 $as_echo_n "(cached) " >&6
31482 else
31483 gcc_cv_as_dwarf2_debug_line=no
31484 if test x$gcc_cv_as != x; then
31485 $as_echo "$conftest_s" > conftest.s
31486 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31488 (eval $ac_try) 2>&5
31489 ac_status=$?
31490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31491 test $ac_status = 0; }; }
31492 then
31493 if test x$gcc_cv_objdump != x \
31494 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
31495 | grep debug_line > /dev/null 2>&1; then
31496 gcc_cv_as_dwarf2_debug_line=yes
31497 elif test x$gcc_cv_otool != x \
31498 && $gcc_cv_otool -l conftest.o 2> /dev/null \
31499 | grep debug_line > /dev/null 2>&1; then
31500 gcc_cv_as_dwarf2_debug_line=yes
31502 else
31503 echo "configure: failed program was" >&5
31504 cat conftest.s >&5
31506 rm -f conftest.o conftest.s
31509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31510 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31514 # The .debug_line file table must be in the exact order that
31515 # we specified the files, since these indices are also used
31516 # by DW_AT_decl_file. Approximate this test by testing if
31517 # the assembler bitches if the same index is assigned twice.
31518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31519 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31520 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
31521 $as_echo_n "(cached) " >&6
31522 else
31523 gcc_cv_as_dwarf2_file_buggy=no
31524 if test x$gcc_cv_as != x; then
31525 $as_echo ' .file 1 "foo.s"
31526 .file 1 "bar.s"' > conftest.s
31527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31529 (eval $ac_try) 2>&5
31530 ac_status=$?
31531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31532 test $ac_status = 0; }; }
31533 then
31534 gcc_cv_as_dwarf2_file_buggy=yes
31535 else
31536 echo "configure: failed program was" >&5
31537 cat conftest.s >&5
31539 rm -f conftest.o conftest.s
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
31543 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31547 if test $gcc_cv_as_dwarf2_debug_line = yes \
31548 && test $gcc_cv_as_dwarf2_file_buggy = no; then
31550 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31553 if test $gcc_cv_as_leb128 = yes; then
31554 conftest_s="\
31555 .file 1 \"conftest.s\"
31556 .loc 1 3 0 view .LVU1
31557 $insn
31558 .data
31559 .uleb128 .LVU1
31560 .uleb128 .LVU1
31562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31563 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31564 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
31565 $as_echo_n "(cached) " >&6
31566 else
31567 gcc_cv_as_dwarf2_debug_view=no
31568 if test x$gcc_cv_as != x; then
31569 $as_echo "$conftest_s" > conftest.s
31570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31572 (eval $ac_try) 2>&5
31573 ac_status=$?
31574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31575 test $ac_status = 0; }; }
31576 then
31577 gcc_cv_as_dwarf2_debug_view=yes
31578 else
31579 echo "configure: failed program was" >&5
31580 cat conftest.s >&5
31582 rm -f conftest.o conftest.s
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31586 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31587 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31589 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31597 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31598 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
31599 $as_echo_n "(cached) " >&6
31600 else
31601 gcc_cv_as_gdwarf2_flag=no
31602 if test x$gcc_cv_as != x; then
31603 $as_echo "$insn" > conftest.s
31604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31606 (eval $ac_try) 2>&5
31607 ac_status=$?
31608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31609 test $ac_status = 0; }; }
31610 then
31611 gcc_cv_as_gdwarf2_flag=yes
31612 else
31613 echo "configure: failed program was" >&5
31614 cat conftest.s >&5
31616 rm -f conftest.o conftest.s
31619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31620 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31621 if test $gcc_cv_as_gdwarf2_flag = yes; then
31623 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31629 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31630 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
31631 $as_echo_n "(cached) " >&6
31632 else
31633 gcc_cv_as_gdwarf_5_flag=no
31634 if test x$gcc_cv_as != x; then
31635 $as_echo "$insn" > conftest.s
31636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31638 (eval $ac_try) 2>&5
31639 ac_status=$?
31640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31641 test $ac_status = 0; }; }
31642 then
31643 if test x$gcc_cv_objdump != x \
31644 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
31645 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
31646 gcc_cv_as_gdwarf_5_flag=yes;
31648 else
31649 echo "configure: failed program was" >&5
31650 cat conftest.s >&5
31652 rm -f conftest.o conftest.s
31655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31656 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31657 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31659 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31664 case $target_os in
31665 win32 | pe | cygwin* | mingw32*)
31666 section_flags=\"dr\"
31667 function_type=".def foo; .scl 2; .type 32; .endef"
31668 function_size="";;
31670 section_flags=\"\",%progbits
31671 function_type=".type foo, %function"
31672 function_size=".size foo, .-foo";;
31673 esac
31674 dwarf4_debug_info_size=0x46
31675 dwarf4_high_pc_form=7
31676 dwarf4_debug_aranges_size=0x2c
31677 dwarf4_line_sz=9
31678 for dwarf4_addr_size in 8 4; do
31679 conftest_s="\
31680 .file \"a.c\"
31681 .text
31682 .Ltext0:
31683 .p2align 4
31684 .globl foo
31685 $function_type
31686 foo:
31687 .LFB0:
31688 .LM1:
31689 $insn
31690 .LM2:
31691 .LFE0:
31692 $function_size
31693 .Letext0:
31694 .section .debug_info,$section_flags
31695 .Ldebug_info0:
31696 .4byte $dwarf4_debug_info_size
31697 .2byte 0x4
31698 .4byte .Ldebug_abbrev0
31699 .byte 0x$dwarf4_addr_size
31700 .byte 0x1
31701 .ascii \"GNU C17\\0\"
31702 .byte 0xc
31703 .ascii \"a.c\\0\"
31704 .ascii \"/\\0\"
31705 .${dwarf4_addr_size}byte .Ltext0
31706 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31707 .4byte .Ldebug_line0
31708 .byte 0x2
31709 .ascii \"foo\\0\"
31710 .byte 0x1
31711 .byte 0x2
31712 .byte 0x1
31713 .${dwarf4_addr_size}byte .LFB0
31714 .${dwarf4_addr_size}byte .LFE0-.LFB0
31715 .byte 0x1
31716 .byte 0x9c
31717 .byte 0
31718 .section .debug_abbrev,$section_flags
31719 .Ldebug_abbrev0:
31720 .byte 0x1
31721 .byte 0x11
31722 .byte 0x1
31723 .byte 0x25
31724 .byte 0x8
31725 .byte 0x13
31726 .byte 0xb
31727 .byte 0x3
31728 .byte 0x8
31729 .byte 0x1b
31730 .byte 0x8
31731 .byte 0x11
31732 .byte 0x1
31733 .byte 0x12
31734 .byte 0x$dwarf4_high_pc_form
31735 .byte 0x10
31736 .byte 0x17
31737 .byte 0
31738 .byte 0
31739 .byte 0x2
31740 .byte 0x2e
31741 .byte 0
31742 .byte 0x3f
31743 .byte 0x19
31744 .byte 0x3
31745 .byte 0x8
31746 .byte 0x3a
31747 .byte 0xb
31748 .byte 0x3b
31749 .byte 0xb
31750 .byte 0x39
31751 .byte 0xb
31752 .byte 0x11
31753 .byte 0x1
31754 .byte 0x12
31755 .byte 0x$dwarf4_high_pc_form
31756 .byte 0x40
31757 .byte 0x18
31758 .byte 0
31759 .byte 0
31760 .byte 0
31761 .section .debug_aranges,$section_flags
31762 .4byte $dwarf4_debug_aranges_size
31763 .2byte 0x2
31764 .4byte .Ldebug_info0
31765 .byte 0x8
31766 .byte 0
31767 .2byte 0
31768 .2byte 0
31769 .${dwarf4_addr_size}byte .Ltext0
31770 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31771 .${dwarf4_addr_size}byte 0
31772 .${dwarf4_addr_size}byte 0
31773 .section .debug_line,$section_flags
31774 .Ldebug_line0:
31775 .4byte .LELT0-.LSLT0
31776 .LSLT0:
31777 .2byte 0x4
31778 .4byte .LELTP0-.LASLTP0
31779 .LASLTP0:
31780 .byte 0x1
31781 .byte 0x1
31782 .byte 0x1
31783 .byte 0xf6
31784 .byte 0xf2
31785 .byte 0xd
31786 .byte 0
31787 .byte 0x1
31788 .byte 0x1
31789 .byte 0x1
31790 .byte 0x1
31791 .byte 0
31792 .byte 0
31793 .byte 0
31794 .byte 0x1
31795 .byte 0
31796 .byte 0
31797 .byte 0x1
31798 .byte 0
31799 .ascii \"a.c\\0\"
31800 .byte 0
31801 .byte 0
31802 .byte 0
31803 .byte 0
31804 .LELTP0:
31805 .byte 0
31806 .byte 0x$dwarf4_line_sz
31807 .byte 0x2
31808 .${dwarf4_addr_size}byte .LM1
31809 .byte 0x18
31810 .byte 0x5
31811 .byte 0x1
31812 .byte 0
31813 .byte 0x$dwarf4_line_sz
31814 .byte 0x2
31815 .${dwarf4_addr_size}byte .LM2
31816 .byte 0x1
31817 .byte 0x5
31818 .byte 0x1
31819 .byte 0
31820 .byte 0x$dwarf4_line_sz
31821 .byte 0x2
31822 .${dwarf4_addr_size}byte .Letext0
31823 .byte 0
31824 .byte 0x1
31825 .byte 0x1
31826 .LELT0:
31827 .section .debug_str,$section_flags
31828 .ident \"GCC\"
31830 dwarf4_success=no
31831 if test $dwarf4_addr_size = 4; then
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31833 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31834 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
31835 $as_echo_n "(cached) " >&6
31836 else
31837 gcc_cv_as_debug_line_32_flag=no
31838 if test x$gcc_cv_as != x; then
31839 $as_echo "$conftest_s" > conftest.s
31840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31842 (eval $ac_try) 2>&5
31843 ac_status=$?
31844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31845 test $ac_status = 0; }; }
31846 then
31847 gcc_cv_as_debug_line_32_flag=yes
31848 else
31849 echo "configure: failed program was" >&5
31850 cat conftest.s >&5
31852 rm -f conftest.o conftest.s
31855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31856 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31857 if test $gcc_cv_as_debug_line_32_flag = yes; then
31858 dwarf4_success=yes
31861 else
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31863 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31864 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
31865 $as_echo_n "(cached) " >&6
31866 else
31867 gcc_cv_as_debug_line_64_flag=no
31868 if test x$gcc_cv_as != x; then
31869 $as_echo "$conftest_s" > conftest.s
31870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31872 (eval $ac_try) 2>&5
31873 ac_status=$?
31874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31875 test $ac_status = 0; }; }
31876 then
31877 gcc_cv_as_debug_line_64_flag=yes
31878 else
31879 echo "configure: failed program was" >&5
31880 cat conftest.s >&5
31882 rm -f conftest.o conftest.s
31885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31886 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
31887 if test $gcc_cv_as_debug_line_64_flag = yes; then
31888 dwarf4_success=yes
31892 if test $dwarf4_success = yes; then
31893 dwarf4_success=no
31894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
31895 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
31896 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
31897 $as_echo_n "(cached) " >&6
31898 else
31899 gcc_cv_as_dwarf_4_debug_line_flag=no
31900 if test x$gcc_cv_as != x; then
31901 $as_echo "$conftest_s" > conftest.s
31902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31904 (eval $ac_try) 2>&5
31905 ac_status=$?
31906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31907 test $ac_status = 0; }; }
31908 then
31909 gcc_cv_as_dwarf_4_debug_line_flag=yes
31910 else
31911 echo "configure: failed program was" >&5
31912 cat conftest.s >&5
31914 rm -f conftest.o conftest.s
31917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
31918 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
31919 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
31920 dwarf4_success=yes
31923 break
31925 dwarf4_debug_info_size=0x36
31926 dwarf4_high_pc_form=6
31927 dwarf4_debug_aranges_size=0x1c
31928 dwarf4_line_sz=5
31929 done
31931 if test $dwarf4_success = yes; then
31932 conftest_s="\
31933 .file \"foo.c\"
31934 .text
31935 bar:
31936 #APP
31937 # 82 \"xxx.h\" 1
31938 $insn
31939 # 0 \"\" 2
31940 #NO_APP
31941 $insn
31942 foo:
31943 .file 1 \"foo.c\"
31944 $insn
31945 .file 2 \"foo.h\"
31948 dwarf4_success=no
31949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
31950 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
31951 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
31952 $as_echo_n "(cached) " >&6
31953 else
31954 gcc_cv_as_dwarf_4_app_flag=no
31955 if test x$gcc_cv_as != x; then
31956 $as_echo "$conftest_s" > conftest.s
31957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31959 (eval $ac_try) 2>&5
31960 ac_status=$?
31961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31962 test $ac_status = 0; }; }
31963 then
31964 gcc_cv_as_dwarf_4_app_flag=yes
31965 else
31966 echo "configure: failed program was" >&5
31967 cat conftest.s >&5
31969 rm -f conftest.o conftest.s
31972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
31973 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
31974 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
31975 dwarf4_success=yes
31980 if test $dwarf4_success = yes; then
31981 conftest_s="\
31982 .text
31983 .globl foo
31984 $function_type
31985 foo:
31986 $insn
31987 $function_size
31988 .file 1 \"foo.c\"
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
31991 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
31992 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
31993 $as_echo_n "(cached) " >&6
31994 else
31995 gcc_cv_as_working_gdwarf_n_flag=no
31996 if test x$gcc_cv_as != x; then
31997 $as_echo "$conftest_s" > conftest.s
31998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32000 (eval $ac_try) 2>&5
32001 ac_status=$?
32002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32003 test $ac_status = 0; }; }
32004 then
32005 if test x$gcc_cv_objdump != x \
32006 && $gcc_cv_objdump -W conftest.o 2>&1 \
32007 | grep conftest.s > /dev/null 2>&1; then
32008 gcc_cv_as_working_gdwarf_n_flag=no
32009 else
32010 gcc_cv_as_working_gdwarf_n_flag=yes
32012 else
32013 echo "configure: failed program was" >&5
32014 cat conftest.s >&5
32016 rm -f conftest.o conftest.s
32019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
32020 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
32023 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
32025 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
32030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
32031 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
32032 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
32033 $as_echo_n "(cached) " >&6
32034 else
32035 gcc_cv_as_debug_prefix_map_flag=no
32036 if test x$gcc_cv_as != x; then
32037 $as_echo "$insn" > conftest.s
32038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
32039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32040 (eval $ac_try) 2>&5
32041 ac_status=$?
32042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32043 test $ac_status = 0; }; }
32044 then
32045 gcc_cv_as_debug_prefix_map_flag=yes
32046 else
32047 echo "configure: failed program was" >&5
32048 cat conftest.s >&5
32050 rm -f conftest.o conftest.s
32053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
32054 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
32055 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
32057 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
32063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
32064 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
32065 if ${gcc_cv_as_compress_debug+:} false; then :
32066 $as_echo_n "(cached) " >&6
32067 else
32068 gcc_cv_as_compress_debug=no
32069 if test x$gcc_cv_as != x; then
32070 $as_echo '' > conftest.s
32071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32073 (eval $ac_try) 2>&5
32074 ac_status=$?
32075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32076 test $ac_status = 0; }; }
32077 then
32078 # gas compiled without zlib cannot compress debug sections and warns
32079 # about it, but still exits successfully. So check for this, too.
32080 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
32081 then
32082 gcc_cv_as_compress_debug=0
32083 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
32084 then
32085 gcc_cv_as_compress_debug=1
32086 gcc_cv_as_compress_debug_option="--compress-debug-sections"
32087 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
32088 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
32089 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
32090 then
32091 gcc_cv_as_compress_debug=2
32093 else
32094 gcc_cv_as_compress_debug=0
32096 else
32097 echo "configure: failed program was" >&5
32098 cat conftest.s >&5
32100 rm -f conftest.o conftest.s
32103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
32104 $as_echo "$gcc_cv_as_compress_debug" >&6; }
32108 cat >>confdefs.h <<_ACEOF
32109 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
32110 _ACEOF
32113 cat >>confdefs.h <<_ACEOF
32114 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
32115 _ACEOF
32118 cat >>confdefs.h <<_ACEOF
32119 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
32120 _ACEOF
32123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
32124 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
32125 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
32126 $as_echo_n "(cached) " >&6
32127 else
32128 gcc_cv_as_lcomm_with_alignment=no
32129 if test x$gcc_cv_as != x; then
32130 $as_echo '.lcomm bar,4,16' > conftest.s
32131 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32133 (eval $ac_try) 2>&5
32134 ac_status=$?
32135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32136 test $ac_status = 0; }; }
32137 then
32138 gcc_cv_as_lcomm_with_alignment=yes
32139 else
32140 echo "configure: failed program was" >&5
32141 cat conftest.s >&5
32143 rm -f conftest.o conftest.s
32146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
32147 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
32148 if test $gcc_cv_as_lcomm_with_alignment = yes; then
32150 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
32155 if test x$with_sysroot = x && test x$host = x$target \
32156 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32157 && test "$prefix" != "NONE"; then
32159 cat >>confdefs.h <<_ACEOF
32160 #define PREFIX_INCLUDE_DIR "$prefix/include"
32161 _ACEOF
32165 # Determine the version of glibc, if any, used on the target.
32166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32167 $as_echo_n "checking for target glibc version... " >&6; }
32169 # Check whether --with-glibc-version was given.
32170 if test "${with_glibc_version+set}" = set; then :
32171 withval=$with_glibc_version;
32172 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32173 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32174 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32175 else
32176 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
32178 else
32180 glibc_version_major=0
32181 glibc_version_minor=0
32182 if test -f $target_header_dir/features.h \
32183 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32184 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32185 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32186 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32191 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32193 cat >>confdefs.h <<_ACEOF
32194 #define TARGET_GLIBC_MAJOR $glibc_version_major
32195 _ACEOF
32198 cat >>confdefs.h <<_ACEOF
32199 #define TARGET_GLIBC_MINOR $glibc_version_minor
32200 _ACEOF
32203 # Check whether --enable-gnu-unique-object was given.
32204 if test "${enable_gnu_unique_object+set}" = set; then :
32205 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32206 yes | no) ;;
32207 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32208 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32209 esac
32210 else
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32212 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32213 if ${gcc_cv_as_gnu_unique_object+:} false; then :
32214 $as_echo_n "(cached) " >&6
32215 else
32216 gcc_cv_as_gnu_unique_object=no
32217 if test x$gcc_cv_as != x; then
32218 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32221 (eval $ac_try) 2>&5
32222 ac_status=$?
32223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32224 test $ac_status = 0; }; }
32225 then
32226 gcc_cv_as_gnu_unique_object=yes
32227 else
32228 echo "configure: failed program was" >&5
32229 cat conftest.s >&5
32231 rm -f conftest.o conftest.s
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32235 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32236 if test $gcc_cv_as_gnu_unique_object = yes; then
32237 # We need to unquote above to to use the definition from config.gcc.
32238 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32240 if test $glibc_version_major -gt 2 \
32241 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32242 enable_gnu_unique_object=yes
32249 if test x$enable_gnu_unique_object = xyes; then
32251 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32256 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32257 if ${gcc_cv_as_line_zero+:} false; then :
32258 $as_echo_n "(cached) " >&6
32259 else
32260 gcc_cv_as_line_zero=no
32261 if test "x$gcc_cv_as" != x; then
32262 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32263 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32265 (eval $ac_try) 2>&5
32266 ac_status=$?
32267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32268 test $ac_status = 0; }; } &&
32269 test "x`cat conftest.out`" = x
32270 then
32271 gcc_cv_as_line_zero=yes
32272 else
32273 echo "configure: failed program was" >&5
32274 cat conftest.s >&5
32275 echo "configure: error output was" >&5
32276 cat conftest.out >&5
32278 rm -f conftest.o conftest.s conftest.out
32281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32282 $as_echo "$gcc_cv_as_line_zero" >&6; }
32283 if test "x$gcc_cv_as_line_zero" = xyes; then
32285 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32290 $as_echo_n "checking support for thin archives... " >&6; }
32291 thin_archive_support=no
32292 echo 'int main (void) { return 0; }' > conftest.c
32293 if ($AR --version | sed 1q | grep "GNU ar" \
32294 && $CC $CFLAGS -c conftest.c \
32295 && $AR rcT conftest.a conftest.o \
32296 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
32297 thin_archive_support=yes
32299 rm -f conftest.c conftest.o conftest.a conftest
32300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32301 $as_echo "$thin_archive_support" >&6; }
32304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32305 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32306 gcc_cv_ld_eh_frame_hdr=no
32307 if test $in_tree_ld = yes ; then
32308 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
32309 && test $in_tree_ld_is_elf = yes; then
32310 gcc_cv_ld_eh_frame_hdr=yes
32312 elif test x$gcc_cv_ld != x; then
32313 if echo "$ld_ver" | grep GNU > /dev/null; then
32314 # Check if linker supports --eh-frame-hdr option
32315 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
32316 gcc_cv_ld_eh_frame_hdr=yes
32318 else
32319 case "$target" in
32320 *-*-solaris2*)
32321 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32322 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
32323 gcc_cv_ld_eh_frame_hdr=yes
32326 esac
32330 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
32332 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32336 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
32339 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
32340 gcc_cv_ld_eh_frame_ciev3=no
32341 if test $in_tree_ld = yes ; then
32342 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
32343 && test $in_tree_ld_is_elf = yes; then
32344 gcc_cv_ld_eh_frame_ciev3=yes
32346 elif test x$gcc_cv_ld != x; then
32347 if echo "$ld_ver" | grep GNU > /dev/null; then
32348 gcc_cv_ld_eh_frame_ciev3=yes
32349 if test 0"$ld_date" -lt 20040513; then
32350 if test -n "$ld_date"; then
32351 # If there was date string, but was earlier than 2004-05-13, fail
32352 gcc_cv_ld_eh_frame_ciev3=no
32353 elif test "$ld_vers_major" -lt 2; then
32354 gcc_cv_ld_eh_frame_ciev3=no
32355 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
32356 gcc_cv_ld_eh_frame_ciev3=no
32359 else
32360 case "$target" in
32361 *-*-solaris2*)
32362 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
32363 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
32364 gcc_cv_ld_eh_frame_ciev3=yes
32367 esac
32371 cat >>confdefs.h <<_ACEOF
32372 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
32373 _ACEOF
32375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
32376 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32379 $as_echo_n "checking linker position independent executable support... " >&6; }
32380 gcc_cv_ld_pie=no
32381 if test $in_tree_ld = yes ; then
32382 case "$target" in
32383 # Full PIE support on Solaris was only introduced in gld 2.26.
32384 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
32385 *) gcc_gld_pie_min_version=15 ;;
32386 esac
32387 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
32388 && test $in_tree_ld_is_elf = yes; then
32389 gcc_cv_ld_pie=yes
32391 elif test x$gcc_cv_ld != x; then
32392 # Check if linker supports -pie option
32393 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
32394 gcc_cv_ld_pie=yes
32395 case "$target" in
32396 *-*-solaris2*)
32397 if echo "$ld_ver" | grep GNU > /dev/null \
32398 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32399 gcc_cv_ld_pie=no
32402 esac
32403 else
32404 case "$target" in
32405 *-*-solaris2.1[1-9]*)
32406 # Solaris 11.3 added PIE support.
32407 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
32408 gcc_cv_ld_pie=yes
32411 esac
32414 if test x"$gcc_cv_ld_pie" = xyes; then
32416 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32420 $as_echo "$gcc_cv_ld_pie" >&6; }
32422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32423 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32424 gcc_cv_ld_pie_copyreloc=no
32425 if test $gcc_cv_ld_pie = yes ; then
32426 if test $in_tree_ld = yes ; then
32427 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
32428 gcc_cv_ld_pie_copyreloc=yes
32430 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32431 # Check if linker supports -pie option with copy reloc
32432 case "$target" in
32433 i?86-*-linux* | x86_64-*-linux*)
32434 cat > conftest1.s <<EOF
32435 .globl a_glob
32436 .data
32437 .type a_glob, @object
32438 .size a_glob, 4
32439 a_glob:
32440 .long 2
32442 cat > conftest2.s <<EOF
32443 .text
32444 .globl main
32445 .type main, @function
32446 main:
32447 movl %eax, a_glob(%rip)
32448 .size main, .-main
32449 .globl ptr
32450 .section .data.rel,"aw",@progbits
32451 .type ptr, @object
32452 ptr:
32453 .quad a_glob
32455 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32456 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
32457 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32458 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
32459 gcc_cv_ld_pie_copyreloc=yes
32461 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32463 esac
32467 cat >>confdefs.h <<_ACEOF
32468 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32469 _ACEOF
32471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32472 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32475 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32476 gcc_cv_ld_eh_gc_sections=no
32477 if test $in_tree_ld = yes ; then
32478 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
32479 && test $in_tree_ld_is_elf = yes; then
32480 gcc_cv_ld_eh_gc_sections=yes
32482 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
32483 cat > conftest.s <<EOF
32484 .section .text
32485 .globl _start
32486 .type _start, @function
32487 _start:
32488 .long foo
32489 .size _start, .-_start
32490 .section .text.foo,"ax",@progbits
32491 .type foo, @function
32492 foo:
32493 .long 0
32494 .size foo, .-foo
32495 .section .gcc_except_table.foo,"a",@progbits
32496 .L0:
32497 .long 0
32498 .section .eh_frame,"a",@progbits
32499 .long .L0
32501 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32502 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32503 | grep "gc-sections option ignored" > /dev/null; then
32504 gcc_cv_ld_eh_gc_sections=no
32505 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32506 | grep gcc_except_table > /dev/null; then
32507 gcc_cv_ld_eh_gc_sections=yes
32508 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32509 if test x$gcc_cv_as_comdat_group != xyes; then
32510 gcc_cv_ld_eh_gc_sections=no
32511 cat > conftest.s <<EOF
32512 .section .text
32513 .globl _start
32514 .type _start, @function
32515 _start:
32516 .long foo
32517 .size _start, .-_start
32518 .section .gnu.linkonce.t.foo,"ax",@progbits
32519 .type foo, @function
32520 foo:
32521 .long 0
32522 .size foo, .-foo
32523 .section .gcc_except_table.foo,"a",@progbits
32524 .L0:
32525 .long 0
32526 .section .eh_frame,"a",@progbits
32527 .long .L0
32529 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32530 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32531 | grep "gc-sections option ignored" > /dev/null; then
32532 gcc_cv_ld_eh_gc_sections=no
32533 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32534 | grep gcc_except_table > /dev/null; then
32535 gcc_cv_ld_eh_gc_sections=yes
32541 rm -f conftest.s conftest.o conftest
32543 case "$target" in
32544 hppa*-*-linux*)
32545 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32546 gcc_cv_ld_eh_gc_sections=no
32548 esac
32549 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
32551 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32555 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32558 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32559 gcc_cv_ld_eh_gc_sections_bug=no
32560 if test $in_tree_ld = yes ; then
32561 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
32562 && test $in_tree_ld_is_elf = yes; then
32563 gcc_cv_ld_eh_gc_sections_bug=yes
32565 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
32566 gcc_cv_ld_eh_gc_sections_bug=yes
32567 cat > conftest.s <<EOF
32568 .section .text
32569 .globl _start
32570 .type _start, @function
32571 _start:
32572 .long foo
32573 .size _start, .-_start
32574 .section .text.startup.foo,"ax",@progbits
32575 .type foo, @function
32576 foo:
32577 .long 0
32578 .size foo, .-foo
32579 .section .gcc_except_table.foo,"a",@progbits
32580 .L0:
32581 .long 0
32582 .section .eh_frame,"a",@progbits
32583 .long .L0
32585 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32586 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32587 | grep "gc-sections option ignored" > /dev/null; then
32589 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32590 | grep gcc_except_table > /dev/null; then
32591 gcc_cv_ld_eh_gc_sections_bug=no
32594 rm -f conftest.s conftest.o conftest
32596 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
32598 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32602 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32605 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32606 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32607 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
32608 gcc_cv_ld_compress_debug=1
32609 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
32610 # Detect zstd debug section compression support
32611 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
32612 gcc_cv_ld_compress_debug=2
32614 else
32615 case "${target}" in
32616 *-*-solaris2*)
32617 # Introduced in Solaris 11.2.
32618 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
32619 gcc_cv_ld_compress_debug=1
32620 gcc_cv_ld_compress_debug_option="-z compress-sections"
32621 else
32622 gcc_cv_ld_compress_debug=0
32626 # Assume linkers other than GNU ld don't support compessed debug
32627 # sections.
32628 gcc_cv_ld_compress_debug=0
32630 esac
32633 cat >>confdefs.h <<_ACEOF
32634 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32635 _ACEOF
32638 cat >>confdefs.h <<_ACEOF
32639 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32640 _ACEOF
32642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32643 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32645 if test x"$ld64_flag" = x"yes"; then
32647 # Set defaults for possibly untestable items.
32648 gcc_cv_ld64_export_dynamic=0
32649 gcc_cv_ld64_platform_version=0
32650 gcc_cv_ld64_demangle=0
32652 if test "$build" = "$host"; then
32653 darwin_try_test=1
32654 else
32655 darwin_try_test=0
32658 # On Darwin, because of FAT library support, it is often possible to execute
32659 # exes from compatible archs even when the host differs from the build system.
32660 case "$build","$host" in
32661 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
32662 darwin_try_test=1;;
32663 *) ;;
32664 esac
32666 # If the configurer specified a minimum ld64 version to be supported, then use
32667 # that to determine feature support.
32668 if test x"${gcc_cv_ld64_version}" != x; then
32669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32670 $as_echo_n "checking ld64 specified version... " >&6; }
32671 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32673 $as_echo "$gcc_cv_ld64_major" >&6; }
32674 if test "$gcc_cv_ld64_major" -ge 97; then
32675 gcc_cv_ld64_demangle=1
32677 if test "$gcc_cv_ld64_major" -ge 236; then
32678 gcc_cv_ld64_export_dynamic=1
32680 if test "$gcc_cv_ld64_major" -ge 512; then
32681 gcc_cv_ld64_platform_version=1
32683 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32684 # If the version was not specified, try to find it.
32685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32686 $as_echo_n "checking linker version... " >&6; }
32687 if test x"${gcc_cv_ld64_version}" = x; then
32688 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
32689 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
32691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32692 $as_echo "$gcc_cv_ld64_version" >&6; }
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32695 $as_echo_n "checking linker for -demangle support... " >&6; }
32696 gcc_cv_ld64_demangle=1
32697 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32698 gcc_cv_ld64_demangle=0
32700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32701 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32704 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32705 gcc_cv_ld64_export_dynamic=1
32706 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32707 gcc_cv_ld64_export_dynamic=0
32709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32710 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32713 $as_echo_n "checking linker for -platform_version support... " >&6; }
32714 gcc_cv_ld64_platform_version=1
32715 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32716 gcc_cv_ld64_platform_version=0
32718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32719 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32722 if test x"${gcc_cv_ld64_version}" != x; then
32724 cat >>confdefs.h <<_ACEOF
32725 #define LD64_VERSION "${gcc_cv_ld64_version}"
32726 _ACEOF
32731 cat >>confdefs.h <<_ACEOF
32732 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32733 _ACEOF
32737 cat >>confdefs.h <<_ACEOF
32738 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32739 _ACEOF
32743 cat >>confdefs.h <<_ACEOF
32744 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32745 _ACEOF
32749 if test x"$dsymutil_flag" = x"yes"; then
32751 # If the user specified a dsymutil path, then we will already have the
32752 # version string, otherwise, pick it up.
32753 if test x"$gcc_cv_dsymutil" = x; then
32754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32755 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32756 dsymutil_vers="tool unspecified"
32757 elif test x"$dsymutil_vers" = x; then
32758 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32761 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
32762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32763 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32764 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
32765 dsymutil_kind=DWARFUTILS
32766 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32767 elif echo $dsymutil_temp | grep clang- > /dev/null; then
32768 dsymutil_kind=CLANG
32769 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32770 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
32771 dsymutil_kind=LLVM
32772 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32773 else
32774 dsymutil_kind=DET_UNKNOWN
32775 dsymutil_vers="0.0"
32777 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32778 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32779 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32780 if test x"${dsymutil_minor}" = x; then
32781 dsymutil_minor=0
32783 if test x"${dsymutil_tiny}" = x; then
32784 dsymutil_tiny=0
32787 cat >>confdefs.h <<_ACEOF
32788 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32789 _ACEOF
32791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32792 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32795 case $target_os in
32796 win32 | pe | cygwin* | mingw32*)
32797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
32798 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
32799 gcc_cv_ld_broken_pe_dwarf5=yes
32800 if test $in_tree_ld = yes ; then
32801 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32802 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32803 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32804 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32805 gcc_cv_ld_broken_pe_dwarf5=no
32807 else
32808 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32809 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32810 gcc_cv_ld_broken_pe_dwarf5=no
32813 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32815 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32819 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32822 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32823 gcc_cv_ld_disable_dynamicbase=no
32824 if test $in_tree_ld = yes; then
32825 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 36 -o "$gcc_cv_gld_major_version" -gt 2; then \
32826 gcc_cv_ld_disable_dynamicbase=yes
32828 else
32829 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
32830 gcc_cv_ld_disable_dynamicbase=yes
32833 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
32835 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32839 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32841 esac
32843 # --------
32844 # UNSORTED
32845 # --------
32847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32848 $as_echo_n "checking linker --as-needed support... " >&6; }
32849 if ${gcc_cv_ld_as_needed+:} false; then :
32850 $as_echo_n "(cached) " >&6
32851 else
32852 gcc_cv_ld_as_needed=no
32853 gcc_cv_ld_as_needed_option='--as-needed'
32854 gcc_cv_ld_no_as_needed_option='--no-as-needed'
32855 if test $in_tree_ld = yes ; then
32856 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
32857 && test $in_tree_ld_is_elf = yes; then
32858 gcc_cv_ld_as_needed=yes
32859 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32860 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32861 gcc_cv_ld_no_as_needed_option='--pop-state'
32864 elif test x$gcc_cv_ld != x; then
32865 # Check if linker supports --as-needed and --no-as-needed options
32866 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
32867 gcc_cv_ld_as_needed=yes
32868 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
32869 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
32870 && echo "$ld_ver" | grep GNU > /dev/null \
32871 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32872 # Use these options only when both ld.bfd and ld.gold support
32873 # --push-state/--pop-state, which unfortunately wasn't added
32874 # at the same time.
32875 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32876 gcc_cv_ld_no_as_needed_option='--pop-state'
32879 case "$target:$gnu_ld" in
32880 *-*-solaris2*:no)
32881 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32882 # forms.
32883 gcc_cv_ld_as_needed=yes
32884 gcc_cv_ld_as_needed_option="-z ignore"
32885 gcc_cv_ld_no_as_needed_option="-z record"
32887 esac
32889 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32890 # dl_iterate_phdr, i.e. since Solaris 11.
32891 case "$target" in
32892 *-*-solaris2.1[1-9]*)
32893 case "$target" in
32894 i?86-*-* | x86_64-*-*)
32895 if echo "$ld_ver" | grep GNU > /dev/null; then
32896 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32897 gcc_cv_ld_as_needed=no
32900 esac
32902 *-*-solaris2*)
32903 gcc_cv_ld_as_needed=no
32905 esac
32908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
32909 $as_echo "$gcc_cv_ld_as_needed" >&6; }
32910 if test x"$gcc_cv_ld_as_needed" = xyes; then
32912 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
32915 cat >>confdefs.h <<_ACEOF
32916 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
32917 _ACEOF
32920 cat >>confdefs.h <<_ACEOF
32921 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
32922 _ACEOF
32926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
32927 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
32928 saved_LDFLAGS="$LDFLAGS"
32929 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
32930 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
32931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32932 /* end confdefs.h. */
32933 int main(void) {return 0;}
32934 _ACEOF
32935 if ac_fn_cxx_try_link "$LINENO"; then :
32936 gcc_cv_ld_clearcap=yes; break
32937 else
32938 gcc_cv_ld_clearcap=no
32940 rm -f core conftest.err conftest.$ac_objext \
32941 conftest$ac_exeext conftest.$ac_ext
32942 done
32943 LDFLAGS="$saved_LDFLAGS"
32944 if test "x$gcc_cv_ld_clearcap" = xyes; then
32946 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
32948 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
32951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
32952 $as_echo "$gcc_cv_ld_clearcap" >&6; }
32954 case "$target" in
32955 powerpc*-*-*)
32956 case "$target" in
32957 *le-*-linux*)
32958 emul_name="-melf32lppc"
32961 emul_name="-melf32ppc"
32963 esac
32964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
32965 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
32966 if ${gcc_cv_ld_ppc_attr+:} false; then :
32967 $as_echo_n "(cached) " >&6
32968 else
32969 gcc_cv_ld_ppc_attr=no
32970 if test x"$ld_is_gold" = xyes; then
32971 gcc_cv_ld_ppc_attr=yes
32972 elif test $in_tree_ld = yes ; then
32973 if test "$gcc_cv_gld_major_version" -eq 2 \
32974 -a "$gcc_cv_gld_minor_version" -ge 28 \
32975 -o "$gcc_cv_gld_major_version" -gt 2; then
32976 gcc_cv_ld_ppc_attr=yes
32978 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32979 # check that merging the long double .gnu_attribute doesn't warn
32980 cat > conftest1.s <<EOF
32981 .gnu_attribute 4,1
32983 cat > conftest2.s <<EOF
32984 .gnu_attribute 4,9
32986 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32987 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32988 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
32989 && test ! -s conftest.err; then
32990 gcc_cv_ld_ppc_attr=yes
32992 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
32996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
32997 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
32998 if test x$gcc_cv_ld_ppc_attr = xyes; then
33000 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
33004 esac
33006 case "$target:$tm_file" in
33007 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
33008 case "$target" in
33009 *le-*-linux*)
33010 emul_name="-melf64lppc"
33012 *-*-linux*)
33013 emul_name="-melf64ppc"
33015 *le-*-freebsd*)
33016 emul_name="-melf64lppc_fbsd"
33018 *-*-freebsd*)
33019 emul_name="-melf64ppc_fbsd"
33021 esac
33022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
33023 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
33024 if ${gcc_cv_ld_no_dot_syms+:} false; then :
33025 $as_echo_n "(cached) " >&6
33026 else
33027 gcc_cv_ld_no_dot_syms=no
33028 if test x"$ld_is_gold" = xyes; then
33029 gcc_cv_ld_no_dot_syms=yes
33030 elif test $in_tree_ld = yes ; then
33031 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
33032 gcc_cv_ld_no_dot_syms=yes
33034 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
33035 cat > conftest1.s <<EOF
33036 .text
33037 bl .foo
33039 cat > conftest2.s <<EOF
33040 .section ".opd","aw"
33041 .align 3
33042 .globl foo
33043 .type foo,@function
33044 foo:
33045 .quad .LEfoo,.TOC.@tocbase,0
33046 .text
33047 .LEfoo:
33049 .size foo,.-.LEfoo
33051 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
33052 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
33053 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
33054 gcc_cv_ld_no_dot_syms=yes
33056 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
33060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
33061 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
33062 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
33064 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
33068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33069 $as_echo_n "checking linker large toc support... " >&6; }
33070 if ${gcc_cv_ld_large_toc+:} false; then :
33071 $as_echo_n "(cached) " >&6
33072 else
33073 gcc_cv_ld_large_toc=no
33074 if test x"$ld_is_gold" = xyes; then
33075 gcc_cv_ld_large_toc=yes
33076 elif test $in_tree_ld = yes ; then
33077 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
33078 gcc_cv_ld_large_toc=yes
33080 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
33081 cat > conftest.s <<EOF
33082 .section ".tbss","awT",@nobits
33083 .align 3
33084 ie0: .space 8
33085 .global _start
33086 .text
33087 _start:
33088 addis 9,13,ie0@got@tprel@ha
33089 ld 9,ie0@got@tprel@l(9)
33091 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33092 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
33093 gcc_cv_ld_large_toc=yes
33095 rm -f conftest conftest.o conftest.s
33099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33100 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33101 if test x"$gcc_cv_ld_large_toc" = xyes; then
33103 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
33108 $as_echo_n "checking linker toc pointer alignment... " >&6; }
33109 if ${gcc_cv_ld_toc_align+:} false; then :
33110 $as_echo_n "(cached) " >&6
33111 else
33112 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
33113 cat > conftest.s <<EOF
33114 .global _start
33115 .text
33116 _start:
33117 addis 9,2,x@got@ha
33118 .section .data.rel.ro,"aw",@progbits
33119 .p2align 16
33120 .space 32768
33121 x: .quad .TOC.
33123 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33124 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
33125 gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
33127 rm -f conftest conftest.o conftest.s
33131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
33132 $as_echo "$gcc_cv_ld_toc_align" >&6; }
33133 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
33135 cat >>confdefs.h <<_ACEOF
33136 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
33137 _ACEOF
33141 esac
33143 case "$target" in
33144 *-*-aix*)
33145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33146 $as_echo_n "checking linker large toc support... " >&6; }
33147 if ${gcc_cv_ld_large_toc+:} false; then :
33148 $as_echo_n "(cached) " >&6
33149 else
33150 gcc_cv_ld_large_toc=no
33151 if test x$gcc_cv_as != x ; then
33152 cat > conftest.s <<EOF
33153 .toc
33154 LC..1:
33155 .tc a[TC],a[RW]
33156 .extern a[RW]
33157 .csect .text[PR]
33158 .largetoctest:
33159 addis 9,LC..1@u(2)
33160 ld 3,LC..1@l(9)
33162 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
33163 gcc_cv_ld_large_toc=yes
33165 rm -f conftest conftest.o conftest.s
33169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33170 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33171 if test x"$gcc_cv_ld_large_toc" = xyes; then
33173 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33177 esac
33179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33180 $as_echo_n "checking linker --build-id support... " >&6; }
33181 if ${gcc_cv_ld_buildid+:} false; then :
33182 $as_echo_n "(cached) " >&6
33183 else
33184 gcc_cv_ld_buildid=no
33185 if test $in_tree_ld = yes ; then
33186 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33187 "$gcc_cv_gld_minor_version" -ge 18 -o \
33188 "$gcc_cv_gld_major_version" -gt 2 \
33189 && test $in_tree_ld_is_elf = yes; then
33190 gcc_cv_ld_buildid=yes
33192 elif test x$gcc_cv_ld != x; then
33193 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
33194 gcc_cv_ld_buildid=yes
33198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33199 $as_echo "$gcc_cv_ld_buildid" >&6; }
33200 if test x"$gcc_cv_ld_buildid" = xyes; then
33202 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33206 # Check whether --enable-linker-build-id was given.
33207 if test "${enable_linker_build_id+set}" = set; then :
33208 enableval=$enable_linker_build_id;
33209 else
33210 enable_linker_build_id=no
33214 if test x"$enable_linker_build_id" = xyes; then
33215 if test x"$gcc_cv_ld_buildid" = xyes; then
33217 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33219 else
33220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33221 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33225 # In binutils 2.21, GNU ld gained support for new emulations fully
33226 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33228 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33229 if ${gcc_cv_ld_sol2_emulation+:} false; then :
33230 $as_echo_n "(cached) " >&6
33231 else
33232 gcc_cv_ld_sol2_emulation=no
33233 if test $in_tree_ld = yes ; then
33234 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33235 "$gcc_cv_gld_minor_version" -ge 21 -o \
33236 "$gcc_cv_gld_major_version" -gt 2 \
33237 && test $in_tree_ld_is_elf = yes; then
33238 gcc_cv_ld_sol2_emulation=yes
33240 elif test x$gcc_cv_ld != x; then
33241 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
33242 grep _sol2 > /dev/null; then
33243 gcc_cv_ld_sol2_emulation=yes
33247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33248 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33249 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
33251 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33256 $as_echo_n "checking linker --sysroot support... " >&6; }
33257 if ${gcc_cv_ld_sysroot+:} false; then :
33258 $as_echo_n "(cached) " >&6
33259 else
33260 gcc_cv_ld_sysroot=no
33261 if test $in_tree_ld = yes ; then
33262 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
33263 gcc_cv_ld_sysroot=yes
33265 elif test x$gcc_cv_ld != x; then
33266 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
33267 gcc_cv_ld_sysroot=yes
33271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33272 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33273 if test x"$gcc_cv_ld_sysroot" = xyes; then
33275 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33279 case $target in
33280 *-*-solaris2*)
33281 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33283 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33284 if ${gcc_cv_solaris_crts+:} false; then :
33285 $as_echo_n "(cached) " >&6
33286 else
33287 gcc_cv_solaris_crts=no
33288 if test x$host != x$target; then
33289 if test "x$with_sysroot" = xyes; then
33290 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
33291 else
33292 target_sysroot="${with_sysroot}"
33295 target_libdir="$target_sysroot/usr/lib"
33296 # At the time they were added, gcrt1.o became a symlink for backwards
33297 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33298 case $target in
33299 i?86-*-solaris2* | x86_64-*-solaris2*)
33300 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
33302 sparc*-*-solaris2*)
33303 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
33305 esac
33307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33308 $as_echo "$gcc_cv_solaris_crts" >&6; }
33310 esac
33311 if test x$gcc_cv_solaris_crts = xyes; then
33313 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33317 # Check whether --enable-libssp was given.
33318 if test "${enable_libssp+set}" = set; then :
33319 enableval=$enable_libssp; case "${enableval}" in
33320 yes|no)
33323 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
33325 esac
33329 # Test for stack protector support in target C library.
33330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33331 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33332 if ${gcc_cv_libc_provides_ssp+:} false; then :
33333 $as_echo_n "(cached) " >&6
33334 else
33335 gcc_cv_libc_provides_ssp=no
33336 if test "x$enable_libssp" = "xno"; then
33337 gcc_cv_libc_provides_ssp=yes
33338 elif test "x$enable_libssp" = "xyes"; then
33339 gcc_cv_libc_provides_ssp=no
33340 else
33341 case "$target" in
33342 *-*-musl*)
33343 # All versions of musl provide stack protector
33344 gcc_cv_libc_provides_ssp=yes;;
33345 *-*-linux* | *-*-kfreebsd*-gnu)
33346 # glibc 2.4 and later provides __stack_chk_fail and
33347 # either __stack_chk_guard, or TLS access to stack guard canary.
33349 if test $glibc_version_major -gt 2 \
33350 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33351 gcc_cv_libc_provides_ssp=yes
33352 else
33354 if test -f $target_header_dir/features.h \
33355 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33356 $target_header_dir/features.h > /dev/null; then
33357 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33358 $target_header_dir/features.h > /dev/null && \
33359 test -f $target_header_dir/bits/uClibc_config.h && \
33360 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33361 $target_header_dir/bits/uClibc_config.h > /dev/null; then
33362 gcc_cv_libc_provides_ssp=yes
33364 # all versions of Bionic support stack protector
33365 elif test -f $target_header_dir/sys/cdefs.h \
33366 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33367 $target_header_dir/sys/cdefs.h > /dev/null; then
33368 gcc_cv_libc_provides_ssp=yes
33372 *-*-gnu*)
33373 # Avoid complicated tests (see
33374 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33375 # simply assert that glibc does provide this, which is true for all
33376 # realistically usable GNU/Hurd configurations.
33377 # All supported versions of musl provide it as well
33378 gcc_cv_libc_provides_ssp=yes;;
33379 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
33380 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33381 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
33382 gcc_cv_libc_provides_ssp=yes
33383 else
33384 echo "no __stack_chk_fail on this target"
33388 *) gcc_cv_libc_provides_ssp=no ;;
33389 esac
33392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33393 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33395 if test x$gcc_cv_libc_provides_ssp = xyes; then
33397 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33401 # Check whether --enable-default-ssp was given.
33402 # Check whether --enable-default-ssp was given.
33403 if test "${enable_default_ssp+set}" = set; then :
33404 enableval=$enable_default_ssp;
33405 if test x$gcc_cv_libc_provides_ssp = xyes; then
33406 case "$target" in
33407 ia64*-*-*) enable_default_ssp=no ;;
33408 *) enable_default_ssp=$enableval ;;
33409 esac
33410 else
33411 enable_default_ssp=no
33413 else
33414 enable_default_ssp=no
33417 if test x$enable_default_ssp = xyes ; then
33419 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33424 # Test for <sys/sdt.h> on the target.
33426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33427 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33428 if ${gcc_cv_sys_sdt_h+:} false; then :
33429 $as_echo_n "(cached) " >&6
33430 else
33432 gcc_cv_sys_sdt_h=no
33433 if test -f $target_header_dir/sys/sdt.h; then
33434 gcc_cv_sys_sdt_h=yes
33438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33439 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33440 if test x$gcc_cv_sys_sdt_h = xyes; then :
33443 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33448 # Check if TFmode long double should be used by default or not.
33449 # Some glibc targets used DFmode long double, but with glibc 2.4
33450 # and later they can use TFmode.
33451 case "$target" in
33452 powerpc*-*-linux* | \
33453 sparc*-*-linux* | \
33454 s390*-*-linux* | \
33455 alpha*-*-linux*)
33457 # Check whether --with-long-double-128 was given.
33458 if test "${with_long_double_128+set}" = set; then :
33459 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
33460 else
33462 case "$target" in
33463 s390*-*-linux-musl*)
33464 gcc_cv_target_ldbl128=yes
33466 powerpc*-*-linux-musl*)
33467 gcc_cv_target_ldbl128=no
33471 if test $glibc_version_major -gt 2 \
33472 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33473 gcc_cv_target_ldbl128=yes
33474 else
33476 gcc_cv_target_ldbl128=no
33477 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33478 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
33479 && gcc_cv_target_ldbl128=yes
33484 esac
33489 esac
33490 if test x$gcc_cv_target_ldbl128 = xyes; then
33492 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33496 # Check if TFmode long double target should use the IBM extended double or IEEE
33497 # 128-bit floating point formats if long doubles are 128-bits long. The long
33498 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33499 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33500 # libgcc.
33502 # Check whether --with-long-double-format was given.
33503 if test "${with_long_double_format+set}" = set; then :
33504 withval=$with_long_double_format;
33505 case "$target:$with_long_double_format" in
33506 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
33509 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
33510 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33511 case "$with_cpu" in
33512 power7 | power8 | power9 | power1*)
33516 as_fn_error $? "Configuration option --with-long-double-format is only \
33517 supported if the default cpu is power7 or newer" "$LINENO" 5
33518 with_long_double_format=""
33520 esac
33522 powerpc64*-*-linux*:*)
33523 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33524 with_long_double_format=""
33527 as_fn_error $? "Configure option --with-long-double-format is only supported \
33528 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33529 with_long_double_format=""
33531 esac
33535 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33536 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33537 gcc_cv_libc_provides_hwcap_in_tcb=no
33538 case "$target" in
33539 powerpc*-*-linux*)
33541 if test $glibc_version_major -gt 2 \
33542 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33543 gcc_cv_libc_provides_hwcap_in_tcb=yes
33546 esac
33547 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
33549 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33553 # Check if the target LIBC handles PT_GNU_STACK.
33554 gcc_cv_libc_gnustack=unknown
33555 case "$target" in
33556 mips*-*-linux-musl*)
33557 gcc_cv_libc_gnustack=yes
33559 mips*-*-linux*)
33561 if test $glibc_version_major -gt 2 \
33562 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33563 gcc_cv_libc_gnustack=yes
33566 esac
33567 if test x$gcc_cv_libc_gnustack = xyes; then
33569 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33574 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33575 gcc_cv_target_dl_iterate_phdr=unknown
33576 case "$target" in
33577 *-*-solaris2*)
33578 gcc_cv_target_dl_iterate_phdr=yes
33580 *-*-dragonfly* | *-*-freebsd*)
33581 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
33582 gcc_cv_target_dl_iterate_phdr=yes
33583 else
33584 gcc_cv_target_dl_iterate_phdr=no
33587 *-linux-musl*)
33588 gcc_cv_target_dl_iterate_phdr=yes
33590 esac
33592 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
33594 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33598 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33600 # We no longer support different GC mechanisms. Emit an error if
33601 # the user configures with --with-gc.
33603 # Check whether --with-gc was given.
33604 if test "${with_gc+set}" = set; then :
33605 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33609 # Libraries to use on the host. This will normally be set by the top
33610 # level Makefile. Here we simply capture the value for our Makefile.
33611 if test -z "${HOST_LIBS+set}"; then
33612 HOST_LIBS=
33616 # Use the system's zlib library.
33618 # Use the system's zlib library.
33619 zlibdir="-L\$(top_builddir)/../zlib"
33620 zlibinc="-I\$(top_srcdir)/../zlib"
33622 # Check whether --with-system-zlib was given.
33623 if test "${with_system_zlib+set}" = set; then :
33624 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
33625 zlibdir=
33626 zlibinc=
33636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33637 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33638 # Check whether --enable-maintainer-mode was given.
33639 if test "${enable_maintainer_mode+set}" = set; then :
33640 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
33641 else
33642 maintainer_mode=no
33646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33647 $as_echo "$maintainer_mode" >&6; }
33649 if test "$maintainer_mode" = "yes"; then
33650 MAINT=''
33651 else
33652 MAINT='#'
33655 if test -z "$CTAGS"; then
33656 CTAGS=ctags
33659 if test -z "$ETAGS"; then
33660 ETAGS=etags
33663 if test -z "$CSCOPE"; then
33664 CSCOPE=cscope
33669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33670 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33671 # Check whether --enable-link-mutex was given.
33672 if test "${enable_link_mutex+set}" = set; then :
33673 enableval=$enable_link_mutex; do_link_mutex=$enableval
33674 else
33675 do_link_mutex=no
33678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33679 $as_echo "$do_link_mutex" >&6; }
33681 if test "$do_link_mutex" = "yes"; then
33682 DO_LINK_MUTEX=true
33683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&5
33684 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33685 else
33686 DO_LINK_MUTEX=false
33691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33692 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33693 # Check whether --enable-link-serialization was given.
33694 if test "${enable_link_serialization+set}" = set; then :
33695 enableval=$enable_link_serialization; do_link_serialization=$enableval
33696 else
33697 do_link_serialization=no
33700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33701 $as_echo "$do_link_serialization" >&6; }
33703 case "$do_link_serialization" in
33704 yes)
33705 DO_LINK_SERIALIZATION=1;;
33706 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
33707 DO_LINK_SERIALIZATION=$do_link_serialization;;
33709 DO_LINK_SERIALIZATION=;;
33711 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33712 esac
33715 # --------------
33716 # Language hooks
33717 # --------------
33719 # Make empty files to contain the specs and options for each language.
33720 # Then add #include lines to for a compiler that has specs and/or options.
33722 subdirs=
33723 lang_opt_files=
33724 lang_specs_files=
33725 lang_tree_files=
33726 # These (without "all_") are set in each config-lang.in.
33727 # `language' must be a single word so is spelled singularly.
33728 all_languages=
33729 all_compilers=
33730 all_outputs='Makefile'
33731 # List of language configure and makefile fragments.
33732 all_lang_configurefrags=
33733 all_lang_makefrags=
33734 # Additional files for gengtype
33735 all_gtfiles="$target_gtfiles"
33737 # These are the languages that are set in --enable-languages,
33738 # and are available in the GCC tree.
33739 all_selected_languages=
33741 # Add the language fragments.
33742 # Languages are added via two mechanisms. Some information must be
33743 # recorded in makefile variables, these are defined in config-lang.in.
33744 # We accumulate them and plug them into the main Makefile.
33745 # The other mechanism is a set of hooks for each of the main targets
33746 # like `clean', `install', etc.
33748 language_hooks="Make-hooks"
33750 for lang in ${srcdir}/*/config-lang.in
33752 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33754 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33755 if test "x$lang_alias" = x
33756 then
33757 echo "$lang doesn't set \$language." 1>&2
33758 exit 1
33760 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33761 subdirs="$subdirs $subdir"
33763 # $gcc_subdir is where the gcc integration files are to be found
33764 # for a language, both for internal compiler purposes (compiler
33765 # sources implementing front-end to GCC tree converters), and for
33766 # build infrastructure purposes (Make-lang.in, etc.)
33768 # This will be <subdir> (relative to $srcdir) if a line like
33769 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33770 # is found in <langdir>/config-lang.in, and will remain <langdir>
33771 # otherwise.
33773 # Except for the language alias (fetched above), the regular
33774 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33775 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33776 # only this and the language alias.
33778 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33779 if [ "$gcc_subdir" = "" ]; then
33780 gcc_subdir="$subdir"
33783 case ",$enable_languages," in
33784 *,$lang_alias,*)
33785 all_selected_languages="$all_selected_languages $lang_alias"
33786 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
33787 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33790 esac
33792 language=
33793 boot_language=
33794 compilers=
33795 outputs=
33796 gtfiles=
33797 subdir_requires=
33798 . ${srcdir}/$gcc_subdir/config-lang.in
33799 if test "x$language" = x
33800 then
33801 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33802 exit 1
33805 ok=:
33806 case ",$enable_languages," in
33807 *,$lang_alias,*) ;;
33809 for i in $subdir_requires; do
33810 test -f "${srcdir}/$i/config-lang.in" && continue
33811 ok=false
33812 break
33813 done
33815 esac
33816 $ok || continue
33818 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33819 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
33820 # Put c/Make-lang.in fragment first to match serialization languages order.
33821 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33822 else
33823 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33825 if test -f $srcdir/$gcc_subdir/lang.opt; then
33826 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33827 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33829 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
33830 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33832 all_languages="$all_languages $language"
33833 all_compilers="$all_compilers $compilers"
33834 all_outputs="$all_outputs $outputs"
33835 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
33836 case ",$enable_languages," in
33837 *,lto,*)
33839 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33841 enable_lto=yes
33844 *) ;;
33845 esac
33846 done
33848 check_languages=
33849 for language in $all_selected_languages
33851 check_languages="$check_languages check-$language"
33852 done
33853 if test x$enable_libgdiagnostics = xyes; then
33854 check_languages="$check_languages check-libgdiagnostics check-sarif-replay"
33857 selftest_languages=
33858 for language in $all_selected_languages
33860 selftest_languages="$selftest_languages selftest-$language"
33861 done
33863 # We link each language in with a set of hooks, reached indirectly via
33864 # lang.${target}. Only do so for selected languages.
33866 rm -f Make-hooks
33867 touch Make-hooks
33868 target_list="all.cross start.encap rest.encap tags \
33869 install-common install-man install-info install-dvi install-pdf \
33870 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33871 mostlyclean clean distclean maintainer-clean install-plugin"
33873 for t in $target_list
33876 for lang in $all_selected_languages
33878 x="$x $lang.$t"
33879 done
33880 echo "lang.$t: $x" >> Make-hooks
33881 done
33883 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33884 echo "SERIAL_LIST =" >> Make-hooks
33885 echo else >> Make-hooks
33886 lang_cnt=0
33887 lang_list=
33888 prev=c
33889 serialization_languages=c
33890 for lang in $all_selected_languages
33892 test $lang = c && continue
33893 if test $lang = lto; then
33894 serialization_languages="$serialization_languages lto1 lto2"
33895 else
33896 serialization_languages="$serialization_languages $lang"
33898 done
33899 for lang in $serialization_languages
33901 test $lang = c && continue
33902 lang_cnt=`expr $lang_cnt + 1`
33903 lang_list=" $prev$lang_list"
33904 prev=${lang}
33905 done
33906 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33907 echo endif >> Make-hooks
33908 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
33909 echo "INDEX.c = 0" >> Make-hooks
33910 lang_idx=1
33911 for lang in $serialization_languages
33913 test $lang = c && continue
33914 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
33915 echo "INDEX.$lang = $lang_idx" >> Make-hooks
33916 lang_cnt=`expr $lang_cnt - 1`
33917 lang_idx=`expr $lang_idx + 1`
33918 done
33920 # --------
33921 # Option include files
33922 # --------
33924 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
33925 option_includes="option-includes.mk"
33928 # --------
33929 # UNSORTED
33930 # --------
33932 # Create .gdbinit.
33934 echo "dir ." > .gdbinit
33935 echo "dir ${srcdir}" >> .gdbinit
33936 if test x$gdb_needs_out_file_path = xyes
33937 then
33938 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
33940 if test "x$subdirs" != x; then
33941 for s in $subdirs
33943 echo "dir ${srcdir}/$s" >> .gdbinit
33944 done
33946 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
33947 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
33949 # Put a breakpoint on __asan_report_error to help with debugging buffer
33950 # overflow.
33951 case "$CFLAGS" in
33952 *-fsanitize=address*)
33953 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
33955 esac
33957 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
33961 # Find a directory in which to install a shared libgcc.
33963 # Check whether --enable-version-specific-runtime-libs was given.
33964 if test "${enable_version_specific_runtime_libs+set}" = set; then :
33965 enableval=$enable_version_specific_runtime_libs;
33969 # Substitute configuration variables
34042 # Echo link setup.
34043 if test x${build} = x${host} ; then
34044 if test x${host} = x${target} ; then
34045 echo "Links are now set up to build a native compiler for ${target}." 1>&2
34046 else
34047 echo "Links are now set up to build a cross-compiler" 1>&2
34048 echo " from ${host} to ${target}." 1>&2
34050 else
34051 if test x${host} = x${target} ; then
34052 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
34053 echo " for ${target}." 1>&2
34054 else
34055 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
34056 echo " from ${host} to ${target}." 1>&2
34065 if test "x${ISLLIBS}" != "x" ; then
34067 $as_echo "#define HAVE_isl 1" >>confdefs.h
34071 # Check for plugin support
34072 # Check whether --enable-plugin was given.
34073 if test "${enable_plugin+set}" = set; then :
34074 enableval=$enable_plugin; enable_plugin=$enableval
34075 else
34076 enable_plugin=yes; default_plugin=yes
34080 pluginlibs=
34081 plugin_check=yes
34083 case "${host}" in
34084 *-*-mingw*)
34085 # Since plugin support under MinGW is not as straightforward as on
34086 # other platforms (e.g., we have to link import library, etc), we
34087 # only enable it if explicitly requested.
34088 if test x"$default_plugin" = x"yes"; then
34089 enable_plugin=no
34090 elif test x"$enable_plugin" = x"yes"; then
34091 # Use make's target variable to derive import library name.
34092 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
34093 plugin_check=no
34096 *-*-darwin*)
34097 if test x$build = x$host; then
34098 export_sym_check="nm${exeext} -g"
34099 elif test x$host = x$target; then
34100 export_sym_check="$gcc_cv_nm -g"
34101 else
34102 export_sym_check=
34106 if test x$build = x$host; then
34107 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34108 elif test x$host = x$target; then
34109 export_sym_check="$gcc_cv_objdump -T"
34110 else
34111 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34114 esac
34116 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
34118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
34119 $as_echo_n "checking for exported symbols... " >&6; }
34120 if test "x$export_sym_check" != x; then
34121 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
34122 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34123 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34124 : # No need to use a flag
34125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34126 $as_echo "yes" >&6; }
34127 else
34128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34129 $as_echo "yes" >&6; }
34130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
34131 $as_echo_n "checking for -rdynamic... " >&6; }
34132 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34133 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34134 plugin_rdynamic=yes
34135 pluginlibs="-rdynamic"
34136 else
34137 plugin_rdynamic=no
34138 enable_plugin=no
34140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
34141 $as_echo "$plugin_rdynamic" >&6; }
34143 else
34144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
34145 $as_echo "unable to check" >&6; }
34148 # Check -ldl
34149 saved_LIBS="$LIBS"
34150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
34151 $as_echo_n "checking for library containing dlopen... " >&6; }
34152 if ${ac_cv_search_dlopen+:} false; then :
34153 $as_echo_n "(cached) " >&6
34154 else
34155 ac_func_search_save_LIBS=$LIBS
34156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34157 /* end confdefs.h. */
34159 /* Override any GCC internal prototype to avoid an error.
34160 Use char because int might match the return type of a GCC
34161 builtin and then its argument prototype would still apply. */
34162 #ifdef __cplusplus
34163 extern "C"
34164 #endif
34165 char dlopen ();
34167 main ()
34169 return dlopen ();
34171 return 0;
34173 _ACEOF
34174 for ac_lib in '' dl; do
34175 if test -z "$ac_lib"; then
34176 ac_res="none required"
34177 else
34178 ac_res=-l$ac_lib
34179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34181 if ac_fn_cxx_try_link "$LINENO"; then :
34182 ac_cv_search_dlopen=$ac_res
34184 rm -f core conftest.err conftest.$ac_objext \
34185 conftest$ac_exeext
34186 if ${ac_cv_search_dlopen+:} false; then :
34187 break
34189 done
34190 if ${ac_cv_search_dlopen+:} false; then :
34192 else
34193 ac_cv_search_dlopen=no
34195 rm conftest.$ac_ext
34196 LIBS=$ac_func_search_save_LIBS
34198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34199 $as_echo "$ac_cv_search_dlopen" >&6; }
34200 ac_res=$ac_cv_search_dlopen
34201 if test "$ac_res" != no; then :
34202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34206 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
34207 pluginlibs="$pluginlibs -ldl"
34209 LIBS="$saved_LIBS"
34211 # Check that we can build shared objects with -fPIC -shared
34212 saved_LDFLAGS="$LDFLAGS"
34213 saved_CFLAGS="$CFLAGS"
34214 saved_CXXFLAGS="$CXXFLAGS"
34215 case "${host}" in
34216 *-*-darwin*)
34217 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34218 CFLAGS="$CFLAGS -fPIC"
34219 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34220 CXXFLAGS="$CXXFLAGS -fPIC"
34221 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
34224 CFLAGS="$CFLAGS -fPIC"
34225 CXXFLAGS="$CXXFLAGS -fPIC"
34226 LDFLAGS="$LDFLAGS -fPIC -shared"
34228 esac
34229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34230 $as_echo_n "checking for -fPIC -shared... " >&6; }
34231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34232 /* end confdefs.h. */
34233 extern int X;
34235 main ()
34237 return X == 0;
34239 return 0;
34241 _ACEOF
34242 if ac_fn_cxx_try_link "$LINENO"; then :
34243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34244 $as_echo "yes" >&6; }; have_pic_shared=yes
34245 else
34246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34247 $as_echo "no" >&6; }; have_pic_shared=no
34249 rm -f core conftest.err conftest.$ac_objext \
34250 conftest$ac_exeext conftest.$ac_ext
34251 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
34252 pluginlibs=
34253 enable_plugin=no
34255 LDFLAGS="$saved_LDFLAGS"
34256 CFLAGS="$saved_CFLAGS"
34257 CXXFLAGS="$saved_CXXFLAGS"
34259 # If plugin support had been requested but not available, fail.
34260 if test x"$enable_plugin" = x"no" ; then
34261 if test x"$default_plugin" != x"yes"; then
34262 as_fn_error $? "
34263 Building GCC with plugin support requires a host that supports
34264 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34271 if test x"$enable_plugin" = x"yes"; then
34273 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34278 # Enable --enable-host-shared
34279 # Check whether --enable-host-shared was given.
34280 if test "${enable_host_shared+set}" = set; then :
34281 enableval=$enable_host_shared;
34286 # Enable --enable-host-pie
34287 # Check whether --enable-host-pie was given.
34288 if test "${enable_host_pie+set}" = set; then :
34289 enableval=$enable_host_pie;
34294 # Check whether --enable-libgdiagnostics was given.
34295 if test "${enable_libgdiagnostics+set}" = set; then :
34296 enableval=$enable_libgdiagnostics;
34301 if test "$enable_libgdiagnostics" = "yes"; then
34302 LIBGDIAGNOSTICS='libgdiagnostics sarif-replay'
34303 else
34304 LIBGDIAGNOSTICS=''
34309 # Enable --enable-host-bind-now
34310 # Check whether --enable-host-bind-now was given.
34311 if test "${enable_host_bind_now+set}" = set; then :
34312 enableval=$enable_host_bind_now;
34317 # Check whether --enable-libquadmath-support was given.
34318 if test "${enable_libquadmath_support+set}" = set; then :
34319 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
34320 else
34321 ENABLE_LIBQUADMATH_SUPPORT=yes
34324 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34326 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34331 # Specify what hash style to use by default.
34333 # Check whether --with-linker-hash-style was given.
34334 if test "${with_linker_hash_style+set}" = set; then :
34335 withval=$with_linker_hash_style; case x"$withval" in
34336 xsysv)
34337 LINKER_HASH_STYLE=sysv
34339 xgnu)
34340 LINKER_HASH_STYLE=gnu
34342 xboth)
34343 LINKER_HASH_STYLE=both
34346 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34348 esac
34349 else
34350 LINKER_HASH_STYLE=''
34353 if test x"${LINKER_HASH_STYLE}" != x; then
34355 cat >>confdefs.h <<_ACEOF
34356 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34357 _ACEOF
34361 # Specify what should be the default of -fdiagnostics-color option.
34363 # Check whether --with-diagnostics-color was given.
34364 if test "${with_diagnostics_color+set}" = set; then :
34365 withval=$with_diagnostics_color; case x"$withval" in
34366 xnever)
34367 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
34369 xauto)
34370 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34372 xauto-if-env)
34373 DIAGNOSTICS_COLOR_DEFAULT=-1
34375 xalways)
34376 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
34379 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34381 esac
34382 else
34383 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34387 cat >>confdefs.h <<_ACEOF
34388 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34389 _ACEOF
34392 # Specify what should be the default of -fdiagnostics-urls option.
34394 # Check whether --with-diagnostics-urls was given.
34395 if test "${with_diagnostics_urls+set}" = set; then :
34396 withval=$with_diagnostics_urls; case x"$withval" in
34397 xnever)
34398 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
34400 xauto)
34401 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34403 xauto-if-env)
34404 DIAGNOSTICS_URLS_DEFAULT=-1
34406 xalways)
34407 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
34410 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34412 esac
34413 else
34414 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34418 cat >>confdefs.h <<_ACEOF
34419 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34420 _ACEOF
34423 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34424 # of jit/jit-playback.cc.
34425 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34426 echo "gcc_driver_version: ${gcc_driver_version}"
34427 cat > gcc-driver-name.h <<EOF
34428 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34431 # Check whether --enable-default-pie was given.
34432 # Check whether --enable-default-pie was given.
34433 if test "${enable_default_pie+set}" = set; then :
34434 enableval=$enable_default_pie; enable_default_pie=$enableval
34435 else
34436 enable_default_pie=no
34439 if test x$enable_default_pie = xyes ; then
34441 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34446 # Check if -fno-PIE works.
34447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34448 $as_echo_n "checking for -fno-PIE option... " >&6; }
34449 if ${gcc_cv_c_no_fpie+:} false; then :
34450 $as_echo_n "(cached) " >&6
34451 else
34452 saved_CXXFLAGS="$CXXFLAGS"
34453 CXXFLAGS="$CXXFLAGS -fno-PIE"
34454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34455 /* end confdefs.h. */
34456 int main(void) {return 0;}
34457 _ACEOF
34458 if ac_fn_cxx_try_compile "$LINENO"; then :
34459 gcc_cv_c_no_fpie=yes
34460 else
34461 gcc_cv_c_no_fpie=no
34463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34464 CXXFLAGS="$saved_CXXFLAGS"
34466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34467 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34469 # Check if -no-pie works.
34470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34471 $as_echo_n "checking for -no-pie option... " >&6; }
34472 if ${gcc_cv_no_pie+:} false; then :
34473 $as_echo_n "(cached) " >&6
34474 else
34475 saved_LDFLAGS="$LDFLAGS"
34476 LDFLAGS="$LDFLAGS -no-pie"
34477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34478 /* end confdefs.h. */
34479 int main(void) {return 0;}
34480 _ACEOF
34481 if ac_fn_cxx_try_link "$LINENO"; then :
34482 gcc_cv_no_pie=yes
34483 else
34484 gcc_cv_no_pie=no
34486 rm -f core conftest.err conftest.$ac_objext \
34487 conftest$ac_exeext conftest.$ac_ext
34488 LDFLAGS="$saved_LDFLAGS"
34490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34491 $as_echo "$gcc_cv_no_pie" >&6; }
34493 if test x$enable_host_shared = xyes; then
34494 PICFLAG=-fPIC
34495 elif test x$enable_host_pie = xyes; then
34496 PICFLAG=-fPIE
34497 elif test x$gcc_cv_c_no_fpie = xyes; then
34498 PICFLAG=-fno-PIE
34499 else
34500 PICFLAG=
34505 if test x$enable_host_pie = xyes; then
34506 LD_PICFLAG=-pie
34507 elif test x$gcc_cv_no_pie = xyes; then
34508 LD_PICFLAG=-no-pie
34509 else
34510 LD_PICFLAG=
34513 if test x$enable_host_bind_now = xyes; then
34514 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
34519 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34520 # Check whether --enable-cet was given.
34521 if test "${enable_cet+set}" = set; then :
34522 enableval=$enable_cet;
34523 case "$enableval" in
34524 yes|no|auto) ;;
34525 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34526 esac
34528 else
34529 enable_cet=auto
34533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34534 $as_echo_n "checking for CET support... " >&6; }
34536 case "$host" in
34537 i[34567]86-*-linux* | x86_64-*-linux*)
34538 may_have_cet=yes
34539 cet_save_CFLAGS="$CFLAGS"
34540 CFLAGS="$CFLAGS -fcf-protection"
34541 case "$enable_cet" in
34542 auto)
34543 # Check if target supports multi-byte NOPs
34544 # and if compiler and assembler support CET.
34545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34546 /* end confdefs.h. */
34549 main ()
34552 #if !defined(__SSE2__)
34553 #error target does not support multi-byte NOPs
34554 #else
34555 asm ("setssbsy");
34556 #endif
34559 return 0;
34561 _ACEOF
34562 if ac_fn_cxx_try_compile "$LINENO"; then :
34563 enable_cet=yes
34564 else
34565 enable_cet=no
34567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34569 yes)
34570 # Check if compiler and assembler support CET.
34571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34572 /* end confdefs.h. */
34575 main ()
34577 asm ("setssbsy");
34579 return 0;
34581 _ACEOF
34582 if ac_fn_cxx_try_compile "$LINENO"; then :
34583 support_cet=yes
34584 else
34585 support_cet=no
34587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34588 if test $support_cet = "no"; then
34589 if test x$enable_bootstrap != xno \
34590 && test -z "${with_build_subdir}" \
34591 && (test ! -f ../stage_current \
34592 || test `cat ../stage_current` != "stage1"); then
34593 # Require CET support only for the final GCC build.
34594 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34595 else
34596 # Don't enable CET without CET support for non-bootstrap
34597 # build, in stage1 nor for build support.
34598 enable_cet=no
34602 esac
34603 CFLAGS="$cet_save_CFLAGS"
34606 may_have_cet=no
34607 enable_cet=no
34609 esac
34611 cet_save_CFLAGS="$CFLAGS"
34612 CFLAGS="$CFLAGS -fcf-protection=none"
34613 cet_save_LDFLAGS="$LDFLAGS"
34614 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34615 if test x$may_have_cet = xyes; then
34616 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34618 /* end confdefs.h. */
34621 main ()
34623 return 0;
34625 return 0;
34627 _ACEOF
34628 if ac_fn_cxx_try_link "$LINENO"; then :
34629 may_have_cet=yes
34630 else
34631 may_have_cet=no
34633 rm -f core conftest.err conftest.$ac_objext \
34634 conftest$ac_exeext conftest.$ac_ext
34637 if test x$may_have_cet = xyes; then
34638 if test x$cross_compiling = xno; then
34639 if test "$cross_compiling" = yes; then :
34640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34642 as_fn_error $? "cannot run test program while cross compiling
34643 See \`config.log' for more details" "$LINENO" 5; }
34644 else
34645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34646 /* end confdefs.h. */
34649 main ()
34651 asm ("endbr32");
34652 return 0;
34655 _ACEOF
34656 if ac_fn_cxx_try_run "$LINENO"; then :
34657 have_multi_byte_nop=yes
34658 else
34659 have_multi_byte_nop=no
34661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34662 conftest.$ac_objext conftest.beam conftest.$ac_ext
34665 have_cet=no
34666 if test x$have_multi_byte_nop = xyes; then
34667 if test "$cross_compiling" = yes; then :
34668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34670 as_fn_error $? "cannot run test program while cross compiling
34671 See \`config.log' for more details" "$LINENO" 5; }
34672 else
34673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34674 /* end confdefs.h. */
34676 static void
34677 foo (void)
34681 static void
34682 __attribute__ ((noinline, noclone))
34683 xxx (void (*f) (void))
34685 f ();
34688 static void
34689 __attribute__ ((noinline, noclone))
34690 bar (void)
34692 xxx (foo);
34696 main ()
34698 bar ();
34699 return 0;
34702 _ACEOF
34703 if ac_fn_cxx_try_run "$LINENO"; then :
34704 have_cet=no
34705 else
34706 have_cet=yes
34708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34709 conftest.$ac_objext conftest.beam conftest.$ac_ext
34713 if test x$enable_cet = xno -a x$have_cet = xyes; then
34714 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34717 else
34718 # Enable CET in cross compiler if possible so that it will run on both
34719 # CET and non-CET hosts.
34720 have_cet=yes
34722 if test x$enable_cet = xyes; then
34723 CET_HOST_FLAGS="-fcf-protection"
34724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34725 $as_echo "yes" >&6; }
34726 else
34727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34728 $as_echo "no" >&6; }
34730 CFLAGS="$cet_save_CFLAGS"
34731 LDFLAGS="$cet_save_LDFLAGS"
34733 case x$enable_languages in
34734 *jit*)
34737 CET_HOST_FLAGS=
34739 esac
34742 # Check linker supports '-z bndplt'
34743 ld_bndplt_support=no
34744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34745 $as_echo_n "checking linker -z bndplt option... " >&6; }
34746 if test x"$ld_is_gold" = xno; then
34747 if test $in_tree_ld = yes ; then
34748 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
34749 ld_bndplt_support=yes
34751 elif test x$gcc_cv_ld != x; then
34752 # Check if linker supports -z bndplt option
34753 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
34754 ld_bndplt_support=yes
34758 if test x"$ld_bndplt_support" = xyes; then
34760 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34764 $as_echo "$ld_bndplt_support" >&6; }
34766 # Check linker supports '--push-state'/'--pop-state'
34767 ld_pushpopstate_support=no
34768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34769 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34770 if test x"$ld_is_gold" = xno; then
34771 if test $in_tree_ld = yes ; then
34772 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
34773 ld_pushpopstate_support=yes
34775 elif test x$gcc_cv_ld != x; then
34776 # Check if linker supports --push-state/--pop-state options
34777 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
34778 ld_pushpopstate_support=yes
34782 if test x"$ld_pushpopstate_support" = xyes; then
34784 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34788 $as_echo "$ld_pushpopstate_support" >&6; }
34790 # On s390, float_t has historically been statically defined as double for no
34791 # good reason. To comply with the C standard in the light of this definition,
34792 # gcc has evaluated float expressions in double precision when in
34793 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34794 # a smooth transition towards the new model used by most architectures, where
34795 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34796 # float_t from that, this behavior can be configured with
34797 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34798 # the old model. When omitted, native builds and cross compiles that have target
34799 # libc headers will detect whether libc clamps float_t to double and in that
34800 # case maintain the old model. Otherwise, they will default to the new model.
34801 # Check whether --enable-s390-excess-float-precision was given.
34802 if test "${enable_s390_excess_float_precision+set}" = set; then :
34803 enableval=$enable_s390_excess_float_precision;
34804 else
34805 enable_s390_excess_float_precision=auto
34809 case $target in
34810 s390*-linux*)
34811 if test x"$enable_s390_excess_float_precision" = xauto; then
34812 # Can we autodetect the behavior of the target libc?
34813 if test "$target" = "$host" -a "$host" = "$build"; then
34814 enable_s390_excess_float_precision=autodetect
34815 elif test "x$with_headers" != xno; then
34816 # cross build. are target headers available?
34817 # carefully coerce the build-system compiler to use target headers
34818 saved_CXXFLAGS="$CXXFLAGS"
34819 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34820 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34821 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34823 /* end confdefs.h. */
34825 #include <math.h>
34827 _ACEOF
34828 if ac_fn_cxx_try_compile "$LINENO"; then :
34829 enable_s390_excess_float_precision=autodetect
34831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34832 CXXFLAGS="$saved_CXXFLAGS"
34835 if test x"$enable_s390_excess_float_precision" = xautodetect; then
34836 saved_CXXFLAGS="$CXXFLAGS"
34837 if ! test "$target" = "$host" -a "$host" = "$build"; then
34838 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34839 unset CROSS_TEST_CXXFLAGS
34841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34842 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34843 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
34844 $as_echo_n "(cached) " >&6
34845 else
34847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34848 /* end confdefs.h. */
34850 #define __FLT_EVAL_METHOD__ 0
34851 #include <math.h>
34852 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34854 _ACEOF
34855 if ac_fn_cxx_try_compile "$LINENO"; then :
34856 gcc_cv_float_t_clamped_to_double=yes
34857 else
34858 gcc_cv_float_t_clamped_to_double=no
34860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34863 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34864 CXXFLAGS="$saved_CXXFLAGS"
34865 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
34866 else
34867 # no way to detect behavior of target libc, default to new model
34868 enable_s390_excess_float_precision=no
34873 if test x"$enable_s390_excess_float_precision" = xyes; then
34875 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34879 esac
34881 # Check if the linker supports '-z now'
34882 ld_now_support=no
34883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z now option" >&5
34884 $as_echo_n "checking linker -z now option... " >&6; }
34885 if test x"$ld_is_gold" = xyes; then
34886 ld_now_support=yes
34887 elif test $in_tree_ld = yes ; then
34888 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then
34889 ld_now_support=yes
34891 elif test x$gcc_cv_ld != x; then
34892 # Check if linker supports -z now
34893 if $gcc_cv_ld --help 2>&1 | grep -- '-z now' > /dev/null; then
34894 ld_now_support=yes
34898 cat >>confdefs.h <<_ACEOF
34899 #define HAVE_LD_NOW_SUPPORT `if test x"$ld_now_support" = xyes; then echo 1; else echo 0; fi`
34900 _ACEOF
34902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_now_support" >&5
34903 $as_echo "$ld_now_support" >&6; }
34905 # Check if the linker supports '-z relro'
34906 ld_relro_support=no
34907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z relro option" >&5
34908 $as_echo_n "checking linker -z relro option... " >&6; }
34909 if test x"$ld_is_gold" = xyes; then
34910 ld_relro_support=yes
34911 elif test $in_tree_ld = yes ; then
34912 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2; then
34913 ld_relro_support=yes
34915 elif test x$gcc_cv_ld != x; then
34916 # Check if linker supports -z relro
34917 if $gcc_cv_ld --help 2>&1 | grep -- '-z relro' > /dev/null; then
34918 ld_relro_support=yes
34922 cat >>confdefs.h <<_ACEOF
34923 #define HAVE_LD_RELRO_SUPPORT `if test x"$ld_relro_support" = xyes; then echo 1; else echo 0; fi`
34924 _ACEOF
34926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_relro_support" >&5
34927 $as_echo "$ld_relro_support" >&6; }
34929 case $target_os in
34930 linux* | gnu*)
34931 # -fhardened is only supported on GNU/Linux.
34932 fhardened_support=yes
34935 fhardened_support=no
34937 esac
34940 cat >>confdefs.h <<_ACEOF
34941 #define HAVE_FHARDENED_SUPPORT `if test x"$fhardened_support" = xyes; then echo 1; else echo 0; fi`
34942 _ACEOF
34944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fhardened_support" >&5
34945 $as_echo "$fhardened_support" >&6; }
34947 # Configure the subdirectories
34948 # AC_CONFIG_SUBDIRS($subdirs)
34950 # Create the Makefile
34951 # and configure language subdirectories
34952 ac_config_files="$ac_config_files $all_outputs"
34955 ac_config_commands="$ac_config_commands default"
34957 cat >confcache <<\_ACEOF
34958 # This file is a shell script that caches the results of configure
34959 # tests run on this system so they can be shared between configure
34960 # scripts and configure runs, see configure's option --config-cache.
34961 # It is not useful on other systems. If it contains results you don't
34962 # want to keep, you may remove or edit it.
34964 # config.status only pays attention to the cache file if you give it
34965 # the --recheck option to rerun configure.
34967 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34969 # following values.
34971 _ACEOF
34973 # The following way of writing the cache mishandles newlines in values,
34974 # but we know of no workaround that is simple, portable, and efficient.
34975 # So, we kill variables containing newlines.
34976 # Ultrix sh set writes to stderr and can't be redirected directly,
34977 # and sets the high bit in the cache file unless we assign to the vars.
34979 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34980 eval ac_val=\$$ac_var
34981 case $ac_val in #(
34982 *${as_nl}*)
34983 case $ac_var in #(
34984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34986 esac
34987 case $ac_var in #(
34988 _ | IFS | as_nl) ;; #(
34989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34990 *) { eval $ac_var=; unset $ac_var;} ;;
34991 esac ;;
34992 esac
34993 done
34995 (set) 2>&1 |
34996 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34997 *${as_nl}ac_space=\ *)
34998 # `set' does not quote correctly, so add quotes: double-quote
34999 # substitution turns \\\\ into \\, and sed turns \\ into \.
35000 sed -n \
35001 "s/'/'\\\\''/g;
35002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35003 ;; #(
35005 # `set' quotes correctly as required by POSIX, so do not add quotes.
35006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35008 esac |
35009 sort
35011 sed '
35012 /^ac_cv_env_/b end
35013 t clear
35014 :clear
35015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35016 t end
35017 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35018 :end' >>confcache
35019 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35020 if test -w "$cache_file"; then
35021 if test "x$cache_file" != "x/dev/null"; then
35022 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35023 $as_echo "$as_me: updating cache $cache_file" >&6;}
35024 if test ! -f "$cache_file" || test -h "$cache_file"; then
35025 cat confcache >"$cache_file"
35026 else
35027 case $cache_file in #(
35028 */* | ?:*)
35029 mv -f confcache "$cache_file"$$ &&
35030 mv -f "$cache_file"$$ "$cache_file" ;; #(
35032 mv -f confcache "$cache_file" ;;
35033 esac
35036 else
35037 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35038 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35041 rm -f confcache
35043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35044 # Let make expand exec_prefix.
35045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35047 DEFS=-DHAVE_CONFIG_H
35049 ac_libobjs=
35050 ac_ltlibobjs=
35052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35053 # 1. Remove the extension, and $U if already installed.
35054 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35055 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35056 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35057 # will be set to the directory where LIBOBJS objects are built.
35058 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35059 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35060 done
35061 LIBOBJS=$ac_libobjs
35063 LTLIBOBJS=$ac_ltlibobjs
35067 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
35068 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
35069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35072 : "${CONFIG_STATUS=./config.status}"
35073 ac_write_fail=0
35074 ac_clean_files_save=$ac_clean_files
35075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35077 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35078 as_write_fail=0
35079 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35080 #! $SHELL
35081 # Generated by $as_me.
35082 # Run this file to recreate the current configuration.
35083 # Compiler output produced by configure, useful for debugging
35084 # configure, is in config.log if it exists.
35086 debug=false
35087 ac_cs_recheck=false
35088 ac_cs_silent=false
35090 SHELL=\${CONFIG_SHELL-$SHELL}
35091 export SHELL
35092 _ASEOF
35093 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35094 ## -------------------- ##
35095 ## M4sh Initialization. ##
35096 ## -------------------- ##
35098 # Be more Bourne compatible
35099 DUALCASE=1; export DUALCASE # for MKS sh
35100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35101 emulate sh
35102 NULLCMD=:
35103 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35104 # is contrary to our usage. Disable this feature.
35105 alias -g '${1+"$@"}'='"$@"'
35106 setopt NO_GLOB_SUBST
35107 else
35108 case `(set -o) 2>/dev/null` in #(
35109 *posix*) :
35110 set -o posix ;; #(
35111 *) :
35113 esac
35117 as_nl='
35119 export as_nl
35120 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35121 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35124 # Prefer a ksh shell builtin over an external printf program on Solaris,
35125 # but without wasting forks for bash or zsh.
35126 if test -z "$BASH_VERSION$ZSH_VERSION" \
35127 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35128 as_echo='print -r --'
35129 as_echo_n='print -rn --'
35130 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35131 as_echo='printf %s\n'
35132 as_echo_n='printf %s'
35133 else
35134 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35135 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35136 as_echo_n='/usr/ucb/echo -n'
35137 else
35138 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35139 as_echo_n_body='eval
35140 arg=$1;
35141 case $arg in #(
35142 *"$as_nl"*)
35143 expr "X$arg" : "X\\(.*\\)$as_nl";
35144 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35145 esac;
35146 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35148 export as_echo_n_body
35149 as_echo_n='sh -c $as_echo_n_body as_echo'
35151 export as_echo_body
35152 as_echo='sh -c $as_echo_body as_echo'
35155 # The user is always right.
35156 if test "${PATH_SEPARATOR+set}" != set; then
35157 PATH_SEPARATOR=:
35158 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35159 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35160 PATH_SEPARATOR=';'
35165 # IFS
35166 # We need space, tab and new line, in precisely that order. Quoting is
35167 # there to prevent editors from complaining about space-tab.
35168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35169 # splitting by setting IFS to empty value.)
35170 IFS=" "" $as_nl"
35172 # Find who we are. Look in the path if we contain no directory separator.
35173 as_myself=
35174 case $0 in #((
35175 *[\\/]* ) as_myself=$0 ;;
35176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35177 for as_dir in $PATH
35179 IFS=$as_save_IFS
35180 test -z "$as_dir" && as_dir=.
35181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35182 done
35183 IFS=$as_save_IFS
35186 esac
35187 # We did not find ourselves, most probably we were run as `sh COMMAND'
35188 # in which case we are not to be found in the path.
35189 if test "x$as_myself" = x; then
35190 as_myself=$0
35192 if test ! -f "$as_myself"; then
35193 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35194 exit 1
35197 # Unset variables that we do not need and which cause bugs (e.g. in
35198 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35199 # suppresses any "Segmentation fault" message there. '((' could
35200 # trigger a bug in pdksh 5.2.14.
35201 for as_var in BASH_ENV ENV MAIL MAILPATH
35202 do eval test x\${$as_var+set} = xset \
35203 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35204 done
35205 PS1='$ '
35206 PS2='> '
35207 PS4='+ '
35209 # NLS nuisances.
35210 LC_ALL=C
35211 export LC_ALL
35212 LANGUAGE=C
35213 export LANGUAGE
35215 # CDPATH.
35216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35219 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35220 # ----------------------------------------
35221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35223 # script with STATUS, using 1 if that was 0.
35224 as_fn_error ()
35226 as_status=$1; test $as_status -eq 0 && as_status=1
35227 if test "$4"; then
35228 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35229 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35231 $as_echo "$as_me: error: $2" >&2
35232 as_fn_exit $as_status
35233 } # as_fn_error
35236 # as_fn_set_status STATUS
35237 # -----------------------
35238 # Set $? to STATUS, without forking.
35239 as_fn_set_status ()
35241 return $1
35242 } # as_fn_set_status
35244 # as_fn_exit STATUS
35245 # -----------------
35246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35247 as_fn_exit ()
35249 set +e
35250 as_fn_set_status $1
35251 exit $1
35252 } # as_fn_exit
35254 # as_fn_unset VAR
35255 # ---------------
35256 # Portably unset VAR.
35257 as_fn_unset ()
35259 { eval $1=; unset $1;}
35261 as_unset=as_fn_unset
35262 # as_fn_append VAR VALUE
35263 # ----------------------
35264 # Append the text in VALUE to the end of the definition contained in VAR. Take
35265 # advantage of any shell optimizations that allow amortized linear growth over
35266 # repeated appends, instead of the typical quadratic growth present in naive
35267 # implementations.
35268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35269 eval 'as_fn_append ()
35271 eval $1+=\$2
35273 else
35274 as_fn_append ()
35276 eval $1=\$$1\$2
35278 fi # as_fn_append
35280 # as_fn_arith ARG...
35281 # ------------------
35282 # Perform arithmetic evaluation on the ARGs, and store the result in the
35283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35284 # must be portable across $(()) and expr.
35285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35286 eval 'as_fn_arith ()
35288 as_val=$(( $* ))
35290 else
35291 as_fn_arith ()
35293 as_val=`expr "$@" || test $? -eq 1`
35295 fi # as_fn_arith
35298 if expr a : '\(a\)' >/dev/null 2>&1 &&
35299 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35300 as_expr=expr
35301 else
35302 as_expr=false
35305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35306 as_basename=basename
35307 else
35308 as_basename=false
35311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35312 as_dirname=dirname
35313 else
35314 as_dirname=false
35317 as_me=`$as_basename -- "$0" ||
35318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35319 X"$0" : 'X\(//\)$' \| \
35320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35321 $as_echo X/"$0" |
35322 sed '/^.*\/\([^/][^/]*\)\/*$/{
35323 s//\1/
35326 /^X\/\(\/\/\)$/{
35327 s//\1/
35330 /^X\/\(\/\).*/{
35331 s//\1/
35334 s/.*/./; q'`
35336 # Avoid depending upon Character Ranges.
35337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35340 as_cr_digits='0123456789'
35341 as_cr_alnum=$as_cr_Letters$as_cr_digits
35343 ECHO_C= ECHO_N= ECHO_T=
35344 case `echo -n x` in #(((((
35345 -n*)
35346 case `echo 'xy\c'` in
35347 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35348 xy) ECHO_C='\c';;
35349 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35350 ECHO_T=' ';;
35351 esac;;
35353 ECHO_N='-n';;
35354 esac
35356 rm -f conf$$ conf$$.exe conf$$.file
35357 if test -d conf$$.dir; then
35358 rm -f conf$$.dir/conf$$.file
35359 else
35360 rm -f conf$$.dir
35361 mkdir conf$$.dir 2>/dev/null
35363 if (echo >conf$$.file) 2>/dev/null; then
35364 if ln -s conf$$.file conf$$ 2>/dev/null; then
35365 as_ln_s='ln -s'
35366 # ... but there are two gotchas:
35367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35369 # In both cases, we have to default to `cp -pR'.
35370 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35371 as_ln_s='cp -pR'
35372 elif ln conf$$.file conf$$ 2>/dev/null; then
35373 as_ln_s=ln
35374 else
35375 as_ln_s='cp -pR'
35377 else
35378 as_ln_s='cp -pR'
35380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35381 rmdir conf$$.dir 2>/dev/null
35384 # as_fn_mkdir_p
35385 # -------------
35386 # Create "$as_dir" as a directory, including parents if necessary.
35387 as_fn_mkdir_p ()
35390 case $as_dir in #(
35391 -*) as_dir=./$as_dir;;
35392 esac
35393 test -d "$as_dir" || eval $as_mkdir_p || {
35394 as_dirs=
35395 while :; do
35396 case $as_dir in #(
35397 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35398 *) as_qdir=$as_dir;;
35399 esac
35400 as_dirs="'$as_qdir' $as_dirs"
35401 as_dir=`$as_dirname -- "$as_dir" ||
35402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35403 X"$as_dir" : 'X\(//\)[^/]' \| \
35404 X"$as_dir" : 'X\(//\)$' \| \
35405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35406 $as_echo X"$as_dir" |
35407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35408 s//\1/
35411 /^X\(\/\/\)[^/].*/{
35412 s//\1/
35415 /^X\(\/\/\)$/{
35416 s//\1/
35419 /^X\(\/\).*/{
35420 s//\1/
35423 s/.*/./; q'`
35424 test -d "$as_dir" && break
35425 done
35426 test -z "$as_dirs" || eval "mkdir $as_dirs"
35427 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35430 } # as_fn_mkdir_p
35431 if mkdir -p . 2>/dev/null; then
35432 as_mkdir_p='mkdir -p "$as_dir"'
35433 else
35434 test -d ./-p && rmdir ./-p
35435 as_mkdir_p=false
35439 # as_fn_executable_p FILE
35440 # -----------------------
35441 # Test if FILE is an executable regular file.
35442 as_fn_executable_p ()
35444 test -f "$1" && test -x "$1"
35445 } # as_fn_executable_p
35446 as_test_x='test -x'
35447 as_executable_p=as_fn_executable_p
35449 # Sed expression to map a string onto a valid CPP name.
35450 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35452 # Sed expression to map a string onto a valid variable name.
35453 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35456 exec 6>&1
35457 ## ----------------------------------- ##
35458 ## Main body of $CONFIG_STATUS script. ##
35459 ## ----------------------------------- ##
35460 _ASEOF
35461 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35464 # Save the log message, to keep $0 and so on meaningful, and to
35465 # report actual input values of CONFIG_FILES etc. instead of their
35466 # values after options handling.
35467 ac_log="
35468 This file was extended by $as_me, which was
35469 generated by GNU Autoconf 2.69. Invocation command line was
35471 CONFIG_FILES = $CONFIG_FILES
35472 CONFIG_HEADERS = $CONFIG_HEADERS
35473 CONFIG_LINKS = $CONFIG_LINKS
35474 CONFIG_COMMANDS = $CONFIG_COMMANDS
35475 $ $0 $@
35477 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35480 _ACEOF
35482 case $ac_config_files in *"
35483 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35484 esac
35486 case $ac_config_headers in *"
35487 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35488 esac
35491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35492 # Files that config.status was made for.
35493 config_files="$ac_config_files"
35494 config_headers="$ac_config_headers"
35495 config_links="$ac_config_links"
35496 config_commands="$ac_config_commands"
35498 _ACEOF
35500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35501 ac_cs_usage="\
35502 \`$as_me' instantiates files and other configuration actions
35503 from templates according to the current configuration. Unless the files
35504 and actions are specified as TAGs, all are instantiated by default.
35506 Usage: $0 [OPTION]... [TAG]...
35508 -h, --help print this help, then exit
35509 -V, --version print version number and configuration settings, then exit
35510 --config print configuration, then exit
35511 -q, --quiet, --silent
35512 do not print progress messages
35513 -d, --debug don't remove temporary files
35514 --recheck update $as_me by reconfiguring in the same conditions
35515 --file=FILE[:TEMPLATE]
35516 instantiate the configuration file FILE
35517 --header=FILE[:TEMPLATE]
35518 instantiate the configuration header FILE
35520 Configuration files:
35521 $config_files
35523 Configuration headers:
35524 $config_headers
35526 Configuration links:
35527 $config_links
35529 Configuration commands:
35530 $config_commands
35532 Report bugs to the package provider."
35534 _ACEOF
35535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35536 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35537 ac_cs_version="\\
35538 config.status
35539 configured by $0, generated by GNU Autoconf 2.69,
35540 with options \\"\$ac_cs_config\\"
35542 Copyright (C) 2012 Free Software Foundation, Inc.
35543 This config.status script is free software; the Free Software Foundation
35544 gives unlimited permission to copy, distribute and modify it."
35546 ac_pwd='$ac_pwd'
35547 srcdir='$srcdir'
35548 INSTALL='$INSTALL'
35549 AWK='$AWK'
35550 test -n "\$AWK" || AWK=awk
35551 _ACEOF
35553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35554 # The default lists apply if the user does not specify any file.
35555 ac_need_defaults=:
35556 while test $# != 0
35558 case $1 in
35559 --*=?*)
35560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35561 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35562 ac_shift=:
35564 --*=)
35565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35566 ac_optarg=
35567 ac_shift=:
35570 ac_option=$1
35571 ac_optarg=$2
35572 ac_shift=shift
35574 esac
35576 case $ac_option in
35577 # Handling of the options.
35578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35579 ac_cs_recheck=: ;;
35580 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35581 $as_echo "$ac_cs_version"; exit ;;
35582 --config | --confi | --conf | --con | --co | --c )
35583 $as_echo "$ac_cs_config"; exit ;;
35584 --debug | --debu | --deb | --de | --d | -d )
35585 debug=: ;;
35586 --file | --fil | --fi | --f )
35587 $ac_shift
35588 case $ac_optarg in
35589 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35590 '') as_fn_error $? "missing file argument" ;;
35591 esac
35592 as_fn_append CONFIG_FILES " '$ac_optarg'"
35593 ac_need_defaults=false;;
35594 --header | --heade | --head | --hea )
35595 $ac_shift
35596 case $ac_optarg in
35597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35598 esac
35599 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35600 ac_need_defaults=false;;
35601 --he | --h)
35602 # Conflict between --help and --header
35603 as_fn_error $? "ambiguous option: \`$1'
35604 Try \`$0 --help' for more information.";;
35605 --help | --hel | -h )
35606 $as_echo "$ac_cs_usage"; exit ;;
35607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35608 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35609 ac_cs_silent=: ;;
35611 # This is an error.
35612 -*) as_fn_error $? "unrecognized option: \`$1'
35613 Try \`$0 --help' for more information." ;;
35615 *) as_fn_append ac_config_targets " $1"
35616 ac_need_defaults=false ;;
35618 esac
35619 shift
35620 done
35622 ac_configure_extra_args=
35624 if $ac_cs_silent; then
35625 exec 6>/dev/null
35626 ac_configure_extra_args="$ac_configure_extra_args --silent"
35629 _ACEOF
35630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35631 if \$ac_cs_recheck; then
35632 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35633 shift
35634 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35635 CONFIG_SHELL='$SHELL'
35636 export CONFIG_SHELL
35637 exec "\$@"
35640 _ACEOF
35641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35642 exec 5>>config.log
35644 echo
35645 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35646 ## Running $as_me. ##
35647 _ASBOX
35648 $as_echo "$ac_log"
35649 } >&5
35651 _ACEOF
35652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35654 # INIT-COMMANDS
35656 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35657 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35658 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35659 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35660 # from automake.
35661 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35662 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35663 LINGUAS="${LINGUAS-%UNSET%}"
35665 subdirs='$subdirs'
35667 _ACEOF
35669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35671 # Handling of arguments.
35672 for ac_config_target in $ac_config_targets
35674 case $ac_config_target in
35675 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
35676 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
35677 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
35678 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35679 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
35680 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35681 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
35682 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35683 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35684 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
35685 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35687 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35688 esac
35689 done
35692 # If the user did not use the arguments to specify the items to instantiate,
35693 # then the envvar interface is used. Set only those that are not.
35694 # We use the long form for the default assignment because of an extremely
35695 # bizarre bug on SunOS 4.1.3.
35696 if $ac_need_defaults; then
35697 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35698 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35699 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
35700 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35703 # Have a temporary directory for convenience. Make it in the build tree
35704 # simply because there is no reason against having it here, and in addition,
35705 # creating and moving files from /tmp can sometimes cause problems.
35706 # Hook for its removal unless debugging.
35707 # Note that there is a small window in which the directory will not be cleaned:
35708 # after its creation but before its name has been assigned to `$tmp'.
35709 $debug ||
35711 tmp= ac_tmp=
35712 trap 'exit_status=$?
35713 : "${ac_tmp:=$tmp}"
35714 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35716 trap 'as_fn_exit 1' 1 2 13 15
35718 # Create a (secure) tmp directory for tmp files.
35721 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35722 test -d "$tmp"
35723 } ||
35725 tmp=./conf$$-$RANDOM
35726 (umask 077 && mkdir "$tmp")
35727 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35728 ac_tmp=$tmp
35730 # Set up the scripts for CONFIG_FILES section.
35731 # No need to generate them if there are no CONFIG_FILES.
35732 # This happens for instance with `./config.status config.h'.
35733 if test -n "$CONFIG_FILES"; then
35735 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
35736 ac_cs_awk_getline=:
35737 ac_cs_awk_pipe_init=
35738 ac_cs_awk_read_file='
35739 while ((getline aline < (F[key])) > 0)
35740 print(aline)
35741 close(F[key])'
35742 ac_cs_awk_pipe_fini=
35743 else
35744 ac_cs_awk_getline=false
35745 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
35746 ac_cs_awk_read_file='
35747 print "|#_!!_#|"
35748 print "cat " F[key] " &&"
35749 '$ac_cs_awk_pipe_init
35750 # The final `:' finishes the AND list.
35751 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
35753 ac_cr=`echo X | tr X '\015'`
35754 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35755 # But we know of no other shell where ac_cr would be empty at this
35756 # point, so we can use a bashism as a fallback.
35757 if test "x$ac_cr" = x; then
35758 eval ac_cr=\$\'\\r\'
35760 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35761 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35762 ac_cs_awk_cr='\\r'
35763 else
35764 ac_cs_awk_cr=$ac_cr
35767 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35768 _ACEOF
35770 # Create commands to substitute file output variables.
35772 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35773 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35774 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
35775 echo "_ACAWK" &&
35776 echo "_ACEOF"
35777 } >conf$$files.sh &&
35778 . ./conf$$files.sh ||
35779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35780 rm -f conf$$files.sh
35783 echo "cat >conf$$subs.awk <<_ACEOF" &&
35784 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35785 echo "_ACEOF"
35786 } >conf$$subs.sh ||
35787 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35788 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35789 ac_delim='%!_!# '
35790 for ac_last_try in false false false false false :; do
35791 . ./conf$$subs.sh ||
35792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35794 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35795 if test $ac_delim_n = $ac_delim_num; then
35796 break
35797 elif $ac_last_try; then
35798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35799 else
35800 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35802 done
35803 rm -f conf$$subs.sh
35805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35806 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35807 _ACEOF
35808 sed -n '
35810 s/^/S["/; s/!.*/"]=/
35813 s/^[^!]*!//
35814 :repl
35815 t repl
35816 s/'"$ac_delim"'$//
35817 t delim
35820 s/\(.\{148\}\)..*/\1/
35821 t more1
35822 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35825 b repl
35826 :more1
35827 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35830 s/.\{148\}//
35831 t nl
35832 :delim
35834 s/\(.\{148\}\)..*/\1/
35835 t more2
35836 s/["\\]/\\&/g; s/^/"/; s/$/"/
35839 :more2
35840 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35843 s/.\{148\}//
35844 t delim
35845 ' <conf$$subs.awk | sed '
35846 /^[^""]/{
35848 s/\n//
35850 ' >>$CONFIG_STATUS || ac_write_fail=1
35851 rm -f conf$$subs.awk
35852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35853 _ACAWK
35854 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35855 for (key in S) S_is_set[key] = 1
35856 FS = "\a"
35857 \$ac_cs_awk_pipe_init
35860 line = $ 0
35861 nfields = split(line, field, "@")
35862 substed = 0
35863 len = length(field[1])
35864 for (i = 2; i < nfields; i++) {
35865 key = field[i]
35866 keylen = length(key)
35867 if (S_is_set[key]) {
35868 value = S[key]
35869 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35870 len += length(value) + length(field[++i])
35871 substed = 1
35872 } else
35873 len += 1 + keylen
35875 if (nfields == 3 && !substed) {
35876 key = field[2]
35877 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35878 \$ac_cs_awk_read_file
35879 next
35882 print line
35884 \$ac_cs_awk_pipe_fini
35885 _ACAWK
35886 _ACEOF
35887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35888 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35889 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35890 else
35892 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35893 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35894 _ACEOF
35896 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35897 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35898 # trailing colons and then remove the whole line if VPATH becomes empty
35899 # (actually we leave an empty line to preserve line numbers).
35900 if test "x$srcdir" = x.; then
35901 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35903 s///
35904 s/^/:/
35905 s/[ ]*$/:/
35906 s/:\$(srcdir):/:/g
35907 s/:\${srcdir}:/:/g
35908 s/:@srcdir@:/:/g
35909 s/^:*//
35910 s/:*$//
35912 s/\(=[ ]*\).*/\1/
35914 s/\n//
35915 s/^[^=]*=[ ]*$//
35919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35920 fi # test -n "$CONFIG_FILES"
35922 # Set up the scripts for CONFIG_HEADERS section.
35923 # No need to generate them if there are no CONFIG_HEADERS.
35924 # This happens for instance with `./config.status Makefile'.
35925 if test -n "$CONFIG_HEADERS"; then
35926 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35927 BEGIN {
35928 _ACEOF
35930 # Transform confdefs.h into an awk script `defines.awk', embedded as
35931 # here-document in config.status, that substitutes the proper values into
35932 # config.h.in to produce config.h.
35934 # Create a delimiter string that does not exist in confdefs.h, to ease
35935 # handling of long lines.
35936 ac_delim='%!_!# '
35937 for ac_last_try in false false :; do
35938 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35939 if test -z "$ac_tt"; then
35940 break
35941 elif $ac_last_try; then
35942 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35943 else
35944 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35946 done
35948 # For the awk script, D is an array of macro values keyed by name,
35949 # likewise P contains macro parameters if any. Preserve backslash
35950 # newline sequences.
35952 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35953 sed -n '
35954 s/.\{148\}/&'"$ac_delim"'/g
35955 t rset
35956 :rset
35957 s/^[ ]*#[ ]*define[ ][ ]*/ /
35958 t def
35960 :def
35961 s/\\$//
35962 t bsnl
35963 s/["\\]/\\&/g
35964 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35965 D["\1"]=" \3"/p
35966 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35968 :bsnl
35969 s/["\\]/\\&/g
35970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35971 D["\1"]=" \3\\\\\\n"\\/p
35972 t cont
35973 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35974 t cont
35976 :cont
35978 s/.\{148\}/&'"$ac_delim"'/g
35979 t clear
35980 :clear
35981 s/\\$//
35982 t bsnlc
35983 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35985 :bsnlc
35986 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35987 b cont
35988 ' <confdefs.h | sed '
35989 s/'"$ac_delim"'/"\\\
35990 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35993 for (key in D) D_is_set[key] = 1
35994 FS = "\a"
35996 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35997 line = \$ 0
35998 split(line, arg, " ")
35999 if (arg[1] == "#") {
36000 defundef = arg[2]
36001 mac1 = arg[3]
36002 } else {
36003 defundef = substr(arg[1], 2)
36004 mac1 = arg[2]
36006 split(mac1, mac2, "(") #)
36007 macro = mac2[1]
36008 prefix = substr(line, 1, index(line, defundef) - 1)
36009 if (D_is_set[macro]) {
36010 # Preserve the white space surrounding the "#".
36011 print prefix "define", macro P[macro] D[macro]
36012 next
36013 } else {
36014 # Replace #undef with comments. This is necessary, for example,
36015 # in the case of _POSIX_SOURCE, which is predefined and required
36016 # on some systems where configure will not decide to define it.
36017 if (defundef == "undef") {
36018 print "/*", prefix defundef, macro, "*/"
36019 next
36023 { print }
36024 _ACAWK
36025 _ACEOF
36026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36027 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36028 fi # test -n "$CONFIG_HEADERS"
36031 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
36032 shift
36033 for ac_tag
36035 case $ac_tag in
36036 :[FHLC]) ac_mode=$ac_tag; continue;;
36037 esac
36038 case $ac_mode$ac_tag in
36039 :[FHL]*:*);;
36040 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
36041 :[FH]-) ac_tag=-:-;;
36042 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36043 esac
36044 ac_save_IFS=$IFS
36045 IFS=:
36046 set x $ac_tag
36047 IFS=$ac_save_IFS
36048 shift
36049 ac_file=$1
36050 shift
36052 case $ac_mode in
36053 :L) ac_source=$1;;
36054 :[FH])
36055 ac_file_inputs=
36056 for ac_f
36058 case $ac_f in
36059 -) ac_f="$ac_tmp/stdin";;
36060 *) # Look for the file first in the build tree, then in the source tree
36061 # (if the path is not absolute). The absolute path cannot be DOS-style,
36062 # because $ac_f cannot contain `:'.
36063 test -f "$ac_f" ||
36064 case $ac_f in
36065 [\\/$]*) false;;
36066 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36067 esac ||
36068 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36069 esac
36070 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36071 as_fn_append ac_file_inputs " '$ac_f'"
36072 done
36074 # Let's still pretend it is `configure' which instantiates (i.e., don't
36075 # use $as_me), people would be surprised to read:
36076 # /* config.h. Generated by config.status. */
36077 configure_input='Generated from '`
36078 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36079 `' by configure.'
36080 if test x"$ac_file" != x-; then
36081 configure_input="$ac_file. $configure_input"
36082 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36083 $as_echo "$as_me: creating $ac_file" >&6;}
36085 # Neutralize special characters interpreted by sed in replacement strings.
36086 case $configure_input in #(
36087 *\&* | *\|* | *\\* )
36088 ac_sed_conf_input=`$as_echo "$configure_input" |
36089 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36090 *) ac_sed_conf_input=$configure_input;;
36091 esac
36093 case $ac_tag in
36094 *:-:* | *:-) cat >"$ac_tmp/stdin" \
36095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36096 esac
36098 esac
36100 ac_dir=`$as_dirname -- "$ac_file" ||
36101 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36102 X"$ac_file" : 'X\(//\)[^/]' \| \
36103 X"$ac_file" : 'X\(//\)$' \| \
36104 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36105 $as_echo X"$ac_file" |
36106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36107 s//\1/
36110 /^X\(\/\/\)[^/].*/{
36111 s//\1/
36114 /^X\(\/\/\)$/{
36115 s//\1/
36118 /^X\(\/\).*/{
36119 s//\1/
36122 s/.*/./; q'`
36123 as_dir="$ac_dir"; as_fn_mkdir_p
36124 ac_builddir=.
36126 case "$ac_dir" in
36127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36129 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36130 # A ".." for each directory in $ac_dir_suffix.
36131 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36132 case $ac_top_builddir_sub in
36133 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36134 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36135 esac ;;
36136 esac
36137 ac_abs_top_builddir=$ac_pwd
36138 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36139 # for backward compatibility:
36140 ac_top_builddir=$ac_top_build_prefix
36142 case $srcdir in
36143 .) # We are building in place.
36144 ac_srcdir=.
36145 ac_top_srcdir=$ac_top_builddir_sub
36146 ac_abs_top_srcdir=$ac_pwd ;;
36147 [\\/]* | ?:[\\/]* ) # Absolute name.
36148 ac_srcdir=$srcdir$ac_dir_suffix;
36149 ac_top_srcdir=$srcdir
36150 ac_abs_top_srcdir=$srcdir ;;
36151 *) # Relative name.
36152 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36153 ac_top_srcdir=$ac_top_build_prefix$srcdir
36154 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36155 esac
36156 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36159 case $ac_mode in
36162 # CONFIG_FILE
36165 case $INSTALL in
36166 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36167 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36168 esac
36169 _ACEOF
36171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36172 # If the template does not know about datarootdir, expand it.
36173 # FIXME: This hack should be removed a few years after 2.60.
36174 ac_datarootdir_hack=; ac_datarootdir_seen=
36175 ac_sed_dataroot='
36176 /datarootdir/ {
36180 /@datadir@/p
36181 /@docdir@/p
36182 /@infodir@/p
36183 /@localedir@/p
36184 /@mandir@/p'
36185 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36186 *datarootdir*) ac_datarootdir_seen=yes;;
36187 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36189 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36190 _ACEOF
36191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36192 ac_datarootdir_hack='
36193 s&@datadir@&$datadir&g
36194 s&@docdir@&$docdir&g
36195 s&@infodir@&$infodir&g
36196 s&@localedir@&$localedir&g
36197 s&@mandir@&$mandir&g
36198 s&\\\${datarootdir}&$datarootdir&g' ;;
36199 esac
36200 _ACEOF
36202 # Neutralize VPATH when `$srcdir' = `.'.
36203 # Shell code in configure.ac might set extrasub.
36204 # FIXME: do we really want to maintain this feature?
36205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36206 ac_sed_extra="$ac_vpsub
36207 $extrasub
36208 _ACEOF
36209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36212 s|@configure_input@|$ac_sed_conf_input|;t t
36213 s&@top_builddir@&$ac_top_builddir_sub&;t t
36214 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36215 s&@srcdir@&$ac_srcdir&;t t
36216 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36217 s&@top_srcdir@&$ac_top_srcdir&;t t
36218 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36219 s&@builddir@&$ac_builddir&;t t
36220 s&@abs_builddir@&$ac_abs_builddir&;t t
36221 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36222 s&@INSTALL@&$ac_INSTALL&;t t
36223 $ac_datarootdir_hack
36225 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36226 if $ac_cs_awk_getline; then
36227 $AWK -f "$ac_tmp/subs.awk"
36228 else
36229 $AWK -f "$ac_tmp/subs.awk" | $SHELL
36230 fi \
36231 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36233 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36234 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36235 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36236 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36238 which seems to be undefined. Please make sure it is defined" >&5
36239 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36240 which seems to be undefined. Please make sure it is defined" >&2;}
36242 rm -f "$ac_tmp/stdin"
36243 case $ac_file in
36244 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36245 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36246 esac \
36247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36251 # CONFIG_HEADER
36253 if test x"$ac_file" != x-; then
36255 $as_echo "/* $configure_input */" \
36256 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36257 } >"$ac_tmp/config.h" \
36258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36259 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36260 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36261 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36262 else
36263 rm -f "$ac_file"
36264 mv "$ac_tmp/config.h" "$ac_file" \
36265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36267 else
36268 $as_echo "/* $configure_input */" \
36269 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36270 || as_fn_error $? "could not create -" "$LINENO" 5
36275 # CONFIG_LINK
36278 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
36280 else
36281 # Prefer the file from the source tree if names are identical.
36282 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36283 ac_source=$srcdir/$ac_source
36286 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36287 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36289 if test ! -r "$ac_source"; then
36290 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36292 rm -f "$ac_file"
36294 # Try a relative symlink, then a hard link, then a copy.
36295 case $ac_source in
36296 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36297 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36298 esac
36299 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36300 ln "$ac_source" "$ac_file" 2>/dev/null ||
36301 cp -p "$ac_source" "$ac_file" ||
36302 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36305 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36306 $as_echo "$as_me: executing $ac_file commands" >&6;}
36308 esac
36311 case $ac_file$ac_mode in
36312 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36313 "gccdepdir":C)
36314 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36315 for lang in $subdirs c-family common analyzer text-art rtl-ssa sym-exec
36317 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36318 done ;;
36319 "default-1":C)
36320 for ac_file in $CONFIG_FILES; do
36321 # Support "outfile[:infile[:infile...]]"
36322 case "$ac_file" in
36323 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36324 esac
36325 # PO directories have a Makefile.in generated from Makefile.in.in.
36326 case "$ac_file" in */Makefile.in)
36327 # Adjust a relative srcdir.
36328 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36329 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
36330 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36331 # In autoconf-2.13 it is called $ac_given_srcdir.
36332 # In autoconf-2.50 it is called $srcdir.
36333 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36334 case "$ac_given_srcdir" in
36335 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36336 /*) top_srcdir="$ac_given_srcdir" ;;
36337 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36338 esac
36339 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36340 rm -f "$ac_dir/POTFILES"
36341 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36342 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36343 POMAKEFILEDEPS="POTFILES.in"
36344 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36345 # on $ac_dir but don't depend on user-specified configuration
36346 # parameters.
36347 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36348 # The LINGUAS file contains the set of available languages.
36349 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36350 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
36352 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36353 # Hide the ALL_LINGUAS assigment from automake.
36354 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36355 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36356 else
36357 # The set of available languages was given in configure.ac.
36358 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36360 case "$ac_given_srcdir" in
36361 .) srcdirpre= ;;
36362 *) srcdirpre='$(srcdir)/' ;;
36363 esac
36364 POFILES=
36365 GMOFILES=
36366 UPDATEPOFILES=
36367 DUMMYPOFILES=
36368 for lang in $ALL_LINGUAS; do
36369 POFILES="$POFILES $srcdirpre$lang.po"
36370 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36371 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36372 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36373 done
36374 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36375 # environment variable.
36376 INST_LINGUAS=
36377 if test -n "$ALL_LINGUAS"; then
36378 for presentlang in $ALL_LINGUAS; do
36379 useit=no
36380 if test "%UNSET%" != "$LINGUAS"; then
36381 desiredlanguages="$LINGUAS"
36382 else
36383 desiredlanguages="$ALL_LINGUAS"
36385 for desiredlang in $desiredlanguages; do
36386 # Use the presentlang catalog if desiredlang is
36387 # a. equal to presentlang, or
36388 # b. a variant of presentlang (because in this case,
36389 # presentlang can be used as a fallback for messages
36390 # which are not translated in the desiredlang catalog).
36391 case "$desiredlang" in
36392 "$presentlang"*) useit=yes;;
36393 esac
36394 done
36395 if test $useit = yes; then
36396 INST_LINGUAS="$INST_LINGUAS $presentlang"
36398 done
36400 CATALOGS=
36401 if test -n "$INST_LINGUAS"; then
36402 for lang in $INST_LINGUAS; do
36403 CATALOGS="$CATALOGS $lang.gmo"
36404 done
36406 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36407 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36408 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36409 if test -f "$f"; then
36410 case "$f" in
36411 *.orig | *.bak | *~) ;;
36412 *) cat "$f" >> "$ac_dir/Makefile" ;;
36413 esac
36415 done
36418 esac
36419 done ;;
36420 "as":F) chmod +x as ;;
36421 "collect-ld":F) chmod +x collect-ld ;;
36422 "nm":F) chmod +x nm ;;
36423 "dsymutil":F) chmod +x dsymutil ;;
36424 "default":C)
36425 case ${CONFIG_HEADERS} in
36426 *auto-host.h:config.in*)
36427 echo > cstamp-h ;;
36428 esac
36429 # Make sure all the subdirs exist.
36430 for d in $subdirs doc build common c-family
36432 test -d $d || mkdir $d
36433 done
36436 esac
36437 done # for ac_tag
36440 as_fn_exit 0
36441 _ACEOF
36442 ac_clean_files=$ac_clean_files_save
36444 test $ac_write_fail = 0 ||
36445 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36448 # configure is writing to config.log, and then calls config.status.
36449 # config.status does its own redirection, appending to config.log.
36450 # Unfortunately, on DOS this fails, as config.log is still kept open
36451 # by configure, so config.status won't be able to write to it; its
36452 # output is simply discarded. So we exec the FD to /dev/null,
36453 # effectively closing config.log, so it can be properly (re)opened and
36454 # appended to by config.status. When coming back to configure, we
36455 # need to make the FD available again.
36456 if test "$no_create" != yes; then
36457 ac_cs_success=:
36458 ac_config_status_args=
36459 test "$silent" = yes &&
36460 ac_config_status_args="$ac_config_status_args --quiet"
36461 exec 5>/dev/null
36462 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36463 exec 5>>config.log
36464 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36465 # would make configure fail if this is the last instruction.
36466 $ac_cs_success || as_fn_exit 1
36468 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36470 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}