d: Fix ICE: in verify_gimple_in_seq on powerpc-darwin9 [PR112270]
[official-gcc.git] / gcc / configure
blob77f33ee4df6f26f9e23be87907892c8163e64bf5
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 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 LD_PICFLAG
636 PICFLAG
637 enable_default_pie
638 enable_host_bind_now
639 enable_host_pie
640 enable_host_shared
641 enable_plugin
642 pluginlibs
643 ISLINC
644 ISLLIBS
645 GMPINC
646 GMPLIBS
647 target_cpu_default
648 rust_target_objs
649 d_target_objs
650 fortran_target_objs
651 cxx_target_objs
652 c_target_objs
653 use_gcc_stdint
654 xm_defines
655 xm_include_list
656 xm_file_list
657 tm_rust_include_list
658 tm_rust_file_list
659 tm_d_include_list
660 tm_d_file_list
661 tm_p_include_list
662 tm_p_file_list
663 tm_defines
664 tm_include_list
665 tm_file_list
666 common_out_object_file
667 common_out_file
668 out_object_file
669 out_file
670 objc_boehm_gc
671 md_file
672 local_prefix
673 lang_tree_files
674 lang_specs_files
675 lang_opt_files
676 install
677 out_host_hook_obj
678 host_xm_defines
679 host_xm_include_list
680 host_xm_file_list
681 host_exeext
682 gcc_gxx_libcxx_include_dir_add_sysroot
683 gcc_gxx_libcxx_include_dir
684 gcc_gxx_include_dir_add_sysroot
685 gcc_gxx_include_dir
686 gcc_config_arguments
687 float_h_file
688 extra_programs
689 extra_objs
690 extra_headers_list
691 user_headers_inc_next_post
692 user_headers_inc_next_pre
693 extra_gcc_objs
694 TM_MULTILIB_EXCEPTIONS_CONFIG
695 TM_MULTILIB_CONFIG
696 TM_ENDIAN_CONFIG
697 tmake_file
698 xmake_file
699 cpp_install_dir
700 selftest_languages
701 check_languages
702 build_file_translate
703 build_xm_defines
704 build_xm_include_list
705 build_xm_file_list
706 build_install_headers_dir
707 build_exeext
708 all_selected_languages
709 all_languages
710 all_lang_makefrags
711 all_lang_configurefrags
712 all_gtfiles
713 all_compilers
714 srcdir
715 subdirs
716 dollar
717 gcc_tooldir
718 enable_lto
719 DO_LINK_SERIALIZATION
720 DO_LINK_MUTEX
721 CSCOPE
722 ETAGS
723 CTAGS
724 MAINT
725 zlibinc
726 zlibdir
727 HOST_LIBS
728 enable_default_ssp
729 thin_archive_support
730 ld_soname_option
731 ld_version_script_option
732 libgcc_visibility
733 ORIGINAL_DSYMUTIL_FOR_TARGET
734 gcc_cv_dsymutil
735 gcc_cv_otool
736 gcc_cv_readelf
737 gcc_cv_objdump
738 ORIGINAL_NM_FOR_TARGET
739 gcc_cv_nm
740 ORIGINAL_LD_GOLD_FOR_TARGET
741 ORIGINAL_LD_BFD_FOR_TARGET
742 ORIGINAL_LD_FOR_TARGET
743 ORIGINAL_PLUGIN_LD_FOR_TARGET
744 gcc_cv_ld
745 ORIGINAL_AS_FOR_TARGET
746 gcc_cv_as
747 ENABLE_DARWIN_AT_RPATH_FALSE
748 ENABLE_DARWIN_AT_RPATH_TRUE
749 enable_fast_install
750 objdir
751 OTOOL64
752 OTOOL
753 LIPO
754 NMEDIT
755 DSYMUTIL
756 STRIP
757 OBJDUMP
758 ac_ct_DUMPBIN
759 DUMPBIN
761 FGREP
763 LIBTOOL
764 collect2
765 STMP_FIXINC
766 BUILD_LDFLAGS
767 BUILD_CXXFLAGS
768 BUILD_CFLAGS
769 CXX_FOR_BUILD
770 CC_FOR_BUILD
771 inhibit_libc
772 BUILD_SYSTEM_HEADER_DIR
773 SYSTEM_HEADER_DIR
775 CROSS
776 CATOBJEXT
777 GENCAT
778 INSTOBJEXT
779 DATADIRNAME
780 CATALOGS
781 POSUB
782 GMSGFMT
783 XGETTEXT
784 INCINTL
785 LIBINTL_DEP
786 LIBINTL
787 USE_NLS
788 get_gcc_base_ver
789 HAVE_AUTO_BUILD
790 extra_opt_files
791 extra_modes_file
792 NATIVE_SYSTEM_HEADER_DIR
793 objext
794 manext
795 LIBICONV_DEP
796 LTLIBICONV
797 LIBICONV
798 ZSTD_LDFLAGS
799 ZSTD_CPPFLAGS
800 ZSTD_LIB
801 ZSTD_INCLUDE
802 DL_LIB
803 LDEXP_LIB
804 NETLIBS
805 EXTRA_GCC_LIBS
806 GNAT_LIBEXC
807 COLLECT2_LIBS
808 CXXDEPMODE
809 DEPDIR
810 am__leading_dot
811 doc_build_sys
814 HAVE_PYTHON
815 PYTHON
816 BISON
817 FLEX
818 GENERATED_MANPAGES
819 MAKEINFO_TOC_INLINE_FLAG
820 BUILD_INFO
821 MAKEINFO
822 have_mktemp_command
823 make_compare_target
824 INSTALL_DATA
825 INSTALL_PROGRAM
826 INSTALL
827 ranlib_flags
828 RANLIB
830 LN_S
832 SET_MAKE
833 omp_device_property_deps
834 omp_device_properties
835 accel_dir_suffix
836 real_target_noncanonical
837 enable_as_accelerator
838 gnat_install_lib
839 REPORT_BUGS_TEXI
840 REPORT_BUGS_TO
841 PKGVERSION
842 CONFIGURE_SPECS
843 enable_gcov
844 enable_shared
845 enable_fixed_point
846 enable_decimal_float
847 DEFAULT_MATCHPD_PARTITIONS
848 with_float
849 with_cpu
850 enable_multiarch
851 enable_multilib
852 coverage_flags
853 valgrind_command
854 valgrind_path_defines
855 valgrind_path
856 TREECHECKING
857 nocommon_flag
858 noexception_flags
859 warn_cxxflags
860 warn_cflags
861 c_strict_warn
862 strict_warn
863 c_loose_warn
864 loose_warn
865 aliasing_flags
867 EGREP
868 GREP
869 CXXCPP
870 PICFLAG_FOR_TARGET
871 GDCFLAGS
873 GNATMAKE
874 GNATBIND
875 ac_ct_CXX
876 CXXFLAGS
878 OBJEXT
879 EXEEXT
880 ac_ct_CC
881 CPPFLAGS
882 LDFLAGS
883 CFLAGS
885 GENINSRC
886 CROSS_SYSTEM_HEADER_DIR
887 TARGET_SYSTEM_ROOT_DEFINE
888 TARGET_SYSTEM_ROOT
889 SYSROOT_CFLAGS_FOR_TARGET
890 target_subdir
891 host_subdir
892 build_subdir
893 build_libsubdir
894 target_noncanonical
895 host_noncanonical
896 target_os
897 target_vendor
898 target_cpu
899 target
900 host_os
901 host_vendor
902 host_cpu
903 host
904 build_os
905 build_vendor
906 build_cpu
907 build
908 target_alias
909 host_alias
910 build_alias
911 LIBS
912 ECHO_T
913 ECHO_N
914 ECHO_C
915 DEFS
916 mandir
917 localedir
918 libdir
919 psdir
920 pdfdir
921 dvidir
922 htmldir
923 infodir
924 docdir
925 oldincludedir
926 includedir
927 localstatedir
928 sharedstatedir
929 sysconfdir
930 datadir
931 datarootdir
932 libexecdir
933 sbindir
934 bindir
935 program_transform_name
936 prefix
937 exec_prefix
938 PACKAGE_URL
939 PACKAGE_BUGREPORT
940 PACKAGE_STRING
941 PACKAGE_VERSION
942 PACKAGE_TARNAME
943 PACKAGE_NAME
944 PATH_SEPARATOR
945 SHELL'
946 ac_subst_files='option_includes
947 language_hooks'
948 ac_user_opts='
949 enable_option_checking
950 with_build_libsubdir
951 with_local_prefix
952 with_native_system_header_dir
953 with_build_sysroot
954 with_sysroot
955 with_gxx_include_dir
956 with_gxx_libcxx_include_dir
957 with_cpp_install_dir
958 enable_generated_files_in_srcdir
959 with_gnu_ld
960 with_ld
961 with_demangler_in_ld
962 with_dsymutil
963 with_gnu_as
964 with_as
965 enable_largefile
966 enable_build_format_warnings
967 enable_werror_always
968 enable_checking
969 enable_coverage
970 enable_gather_detailed_mem_stats
971 enable_valgrind_annotations
972 enable_multilib
973 enable_multiarch
974 with_stack_clash_protection_guard_size
975 with_matchpd_partitions
976 enable___cxa_atexit
977 enable_decimal_float
978 enable_fixed_point
979 enable_threads
980 enable_tls
981 enable_vtable_verify
982 enable_analyzer
983 enable_objc_gc
984 with_dwarf2
985 enable_shared
986 enable_gcov
987 with_specs
988 with_pkgversion
989 with_bugurl
990 with_documentation_root_url
991 with_changes_root_url
992 enable_languages
993 with_multilib_list
994 with_multilib_generator
995 with_zstd
996 with_zstd_include
997 with_zstd_lib
998 enable_rpath
999 with_libiconv_prefix
1000 with_libiconv_type
1001 enable_sjlj_exceptions
1002 with_gcc_major_version_only
1003 enable_secureplt
1004 enable_mingw_wildcard
1005 enable_large_address_aware
1006 enable_leading_mingw64_underscores
1007 enable_cld
1008 enable_frame_pointer
1009 enable_win32_registry
1010 enable_static
1011 with_pic
1012 enable_fast_install
1013 enable_libtool_lock
1014 enable_darwin_at_rpath
1015 with_darwin_extra_rpath
1016 enable_ld
1017 enable_gold
1018 with_plugin_ld
1019 enable_gnu_indirect_function
1020 enable_initfini_array
1021 enable_comdat
1022 enable_newlib_nano_formatted_io
1023 enable_standard_branch_protection
1024 enable_fix_cortex_a53_835769
1025 enable_fix_cortex_a53_843419
1026 with_glibc_version
1027 enable_gnu_unique_object
1028 enable_linker_build_id
1029 enable_libssp
1030 enable_default_ssp
1031 with_long_double_128
1032 with_long_double_format
1033 with_gc
1034 with_system_zlib
1035 enable_maintainer_mode
1036 enable_link_mutex
1037 enable_link_serialization
1038 enable_version_specific_runtime_libs
1039 enable_plugin
1040 enable_host_shared
1041 enable_host_pie
1042 enable_host_bind_now
1043 enable_libquadmath_support
1044 with_linker_hash_style
1045 with_diagnostics_color
1046 with_diagnostics_urls
1047 enable_default_pie
1048 enable_cet
1049 enable_s390_excess_float_precision
1051 ac_precious_vars='build_alias
1052 host_alias
1053 target_alias
1055 CFLAGS
1056 LDFLAGS
1057 LIBS
1058 CPPFLAGS
1060 CXXFLAGS
1062 CXXCPP
1064 GMPLIBS
1065 GMPINC
1066 ISLLIBS
1067 ISLINC'
1070 # Initialize some variables set by options.
1071 ac_init_help=
1072 ac_init_version=false
1073 ac_unrecognized_opts=
1074 ac_unrecognized_sep=
1075 # The variables have the same names as the options, with
1076 # dashes changed to underlines.
1077 cache_file=/dev/null
1078 exec_prefix=NONE
1079 no_create=
1080 no_recursion=
1081 prefix=NONE
1082 program_prefix=NONE
1083 program_suffix=NONE
1084 program_transform_name=s,x,x,
1085 silent=
1086 site=
1087 srcdir=
1088 verbose=
1089 x_includes=NONE
1090 x_libraries=NONE
1092 # Installation directory options.
1093 # These are left unexpanded so users can "make install exec_prefix=/foo"
1094 # and all the variables that are supposed to be based on exec_prefix
1095 # by default will actually change.
1096 # Use braces instead of parens because sh, perl, etc. also accept them.
1097 # (The list follows the same order as the GNU Coding Standards.)
1098 bindir='${exec_prefix}/bin'
1099 sbindir='${exec_prefix}/sbin'
1100 libexecdir='${exec_prefix}/libexec'
1101 datarootdir='${prefix}/share'
1102 datadir='${datarootdir}'
1103 sysconfdir='${prefix}/etc'
1104 sharedstatedir='${prefix}/com'
1105 localstatedir='${prefix}/var'
1106 includedir='${prefix}/include'
1107 oldincludedir='/usr/include'
1108 docdir='${datarootdir}/doc/${PACKAGE}'
1109 infodir='${datarootdir}/info'
1110 htmldir='${docdir}'
1111 dvidir='${docdir}'
1112 pdfdir='${docdir}'
1113 psdir='${docdir}'
1114 libdir='${exec_prefix}/lib'
1115 localedir='${datarootdir}/locale'
1116 mandir='${datarootdir}/man'
1118 ac_prev=
1119 ac_dashdash=
1120 for ac_option
1122 # If the previous option needs an argument, assign it.
1123 if test -n "$ac_prev"; then
1124 eval $ac_prev=\$ac_option
1125 ac_prev=
1126 continue
1129 case $ac_option in
1130 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1131 *=) ac_optarg= ;;
1132 *) ac_optarg=yes ;;
1133 esac
1135 # Accept the important Cygnus configure options, so we can diagnose typos.
1137 case $ac_dashdash$ac_option in
1139 ac_dashdash=yes ;;
1141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1142 ac_prev=bindir ;;
1143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1144 bindir=$ac_optarg ;;
1146 -build | --build | --buil | --bui | --bu)
1147 ac_prev=build_alias ;;
1148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1149 build_alias=$ac_optarg ;;
1151 -cache-file | --cache-file | --cache-fil | --cache-fi \
1152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1153 ac_prev=cache_file ;;
1154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1156 cache_file=$ac_optarg ;;
1158 --config-cache | -C)
1159 cache_file=config.cache ;;
1161 -datadir | --datadir | --datadi | --datad)
1162 ac_prev=datadir ;;
1163 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1164 datadir=$ac_optarg ;;
1166 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1167 | --dataroo | --dataro | --datar)
1168 ac_prev=datarootdir ;;
1169 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1170 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1171 datarootdir=$ac_optarg ;;
1173 -disable-* | --disable-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid feature name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "enable_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval enable_$ac_useropt=no ;;
1189 -docdir | --docdir | --docdi | --doc | --do)
1190 ac_prev=docdir ;;
1191 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1192 docdir=$ac_optarg ;;
1194 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1195 ac_prev=dvidir ;;
1196 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1197 dvidir=$ac_optarg ;;
1199 -enable-* | --enable-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid feature name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1208 "enable_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval enable_$ac_useropt=\$ac_optarg ;;
1215 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1216 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1217 | --exec | --exe | --ex)
1218 ac_prev=exec_prefix ;;
1219 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1220 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1221 | --exec=* | --exe=* | --ex=*)
1222 exec_prefix=$ac_optarg ;;
1224 -gas | --gas | --ga | --g)
1225 # Obsolete; use --with-gas.
1226 with_gas=yes ;;
1228 -help | --help | --hel | --he | -h)
1229 ac_init_help=long ;;
1230 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1231 ac_init_help=recursive ;;
1232 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1233 ac_init_help=short ;;
1235 -host | --host | --hos | --ho)
1236 ac_prev=host_alias ;;
1237 -host=* | --host=* | --hos=* | --ho=*)
1238 host_alias=$ac_optarg ;;
1240 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1241 ac_prev=htmldir ;;
1242 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1243 | --ht=*)
1244 htmldir=$ac_optarg ;;
1246 -includedir | --includedir | --includedi | --included | --include \
1247 | --includ | --inclu | --incl | --inc)
1248 ac_prev=includedir ;;
1249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1250 | --includ=* | --inclu=* | --incl=* | --inc=*)
1251 includedir=$ac_optarg ;;
1253 -infodir | --infodir | --infodi | --infod | --info | --inf)
1254 ac_prev=infodir ;;
1255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1256 infodir=$ac_optarg ;;
1258 -libdir | --libdir | --libdi | --libd)
1259 ac_prev=libdir ;;
1260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1261 libdir=$ac_optarg ;;
1263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1264 | --libexe | --libex | --libe)
1265 ac_prev=libexecdir ;;
1266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1267 | --libexe=* | --libex=* | --libe=*)
1268 libexecdir=$ac_optarg ;;
1270 -localedir | --localedir | --localedi | --localed | --locale)
1271 ac_prev=localedir ;;
1272 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1273 localedir=$ac_optarg ;;
1275 -localstatedir | --localstatedir | --localstatedi | --localstated \
1276 | --localstate | --localstat | --localsta | --localst | --locals)
1277 ac_prev=localstatedir ;;
1278 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1279 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1280 localstatedir=$ac_optarg ;;
1282 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1283 ac_prev=mandir ;;
1284 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1285 mandir=$ac_optarg ;;
1287 -nfp | --nfp | --nf)
1288 # Obsolete; use --without-fp.
1289 with_fp=no ;;
1291 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1292 | --no-cr | --no-c | -n)
1293 no_create=yes ;;
1295 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1296 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1297 no_recursion=yes ;;
1299 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1300 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1301 | --oldin | --oldi | --old | --ol | --o)
1302 ac_prev=oldincludedir ;;
1303 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1304 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1305 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1306 oldincludedir=$ac_optarg ;;
1308 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1309 ac_prev=prefix ;;
1310 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1311 prefix=$ac_optarg ;;
1313 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1314 | --program-pre | --program-pr | --program-p)
1315 ac_prev=program_prefix ;;
1316 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1317 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1318 program_prefix=$ac_optarg ;;
1320 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1321 | --program-suf | --program-su | --program-s)
1322 ac_prev=program_suffix ;;
1323 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1324 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1325 program_suffix=$ac_optarg ;;
1327 -program-transform-name | --program-transform-name \
1328 | --program-transform-nam | --program-transform-na \
1329 | --program-transform-n | --program-transform- \
1330 | --program-transform | --program-transfor \
1331 | --program-transfo | --program-transf \
1332 | --program-trans | --program-tran \
1333 | --progr-tra | --program-tr | --program-t)
1334 ac_prev=program_transform_name ;;
1335 -program-transform-name=* | --program-transform-name=* \
1336 | --program-transform-nam=* | --program-transform-na=* \
1337 | --program-transform-n=* | --program-transform-=* \
1338 | --program-transform=* | --program-transfor=* \
1339 | --program-transfo=* | --program-transf=* \
1340 | --program-trans=* | --program-tran=* \
1341 | --progr-tra=* | --program-tr=* | --program-t=*)
1342 program_transform_name=$ac_optarg ;;
1344 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1345 ac_prev=pdfdir ;;
1346 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1347 pdfdir=$ac_optarg ;;
1349 -psdir | --psdir | --psdi | --psd | --ps)
1350 ac_prev=psdir ;;
1351 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1352 psdir=$ac_optarg ;;
1354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1355 | -silent | --silent | --silen | --sile | --sil)
1356 silent=yes ;;
1358 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1359 ac_prev=sbindir ;;
1360 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1361 | --sbi=* | --sb=*)
1362 sbindir=$ac_optarg ;;
1364 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1365 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1366 | --sharedst | --shareds | --shared | --share | --shar \
1367 | --sha | --sh)
1368 ac_prev=sharedstatedir ;;
1369 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1370 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1371 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1372 | --sha=* | --sh=*)
1373 sharedstatedir=$ac_optarg ;;
1375 -site | --site | --sit)
1376 ac_prev=site ;;
1377 -site=* | --site=* | --sit=*)
1378 site=$ac_optarg ;;
1380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1381 ac_prev=srcdir ;;
1382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1383 srcdir=$ac_optarg ;;
1385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1386 | --syscon | --sysco | --sysc | --sys | --sy)
1387 ac_prev=sysconfdir ;;
1388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1390 sysconfdir=$ac_optarg ;;
1392 -target | --target | --targe | --targ | --tar | --ta | --t)
1393 ac_prev=target_alias ;;
1394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1395 target_alias=$ac_optarg ;;
1397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1398 verbose=yes ;;
1400 -version | --version | --versio | --versi | --vers | -V)
1401 ac_init_version=: ;;
1403 -with-* | --with-*)
1404 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1405 # Reject names that are not valid shell variable names.
1406 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1407 as_fn_error $? "invalid package name: $ac_useropt"
1408 ac_useropt_orig=$ac_useropt
1409 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1410 case $ac_user_opts in
1412 "with_$ac_useropt"
1413 "*) ;;
1414 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1415 ac_unrecognized_sep=', ';;
1416 esac
1417 eval with_$ac_useropt=\$ac_optarg ;;
1419 -without-* | --without-*)
1420 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1421 # Reject names that are not valid shell variable names.
1422 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1423 as_fn_error $? "invalid package name: $ac_useropt"
1424 ac_useropt_orig=$ac_useropt
1425 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1426 case $ac_user_opts in
1428 "with_$ac_useropt"
1429 "*) ;;
1430 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1431 ac_unrecognized_sep=', ';;
1432 esac
1433 eval with_$ac_useropt=no ;;
1435 --x)
1436 # Obsolete; use --with-x.
1437 with_x=yes ;;
1439 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1440 | --x-incl | --x-inc | --x-in | --x-i)
1441 ac_prev=x_includes ;;
1442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1444 x_includes=$ac_optarg ;;
1446 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1447 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1448 ac_prev=x_libraries ;;
1449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1451 x_libraries=$ac_optarg ;;
1453 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1454 Try \`$0 --help' for more information"
1457 *=*)
1458 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1459 # Reject names that are not valid shell variable names.
1460 case $ac_envvar in #(
1461 '' | [0-9]* | *[!_$as_cr_alnum]* )
1462 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1463 esac
1464 eval $ac_envvar=\$ac_optarg
1465 export $ac_envvar ;;
1468 # FIXME: should be removed in autoconf 3.0.
1469 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1470 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1471 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1472 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1475 esac
1476 done
1478 if test -n "$ac_prev"; then
1479 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1480 as_fn_error $? "missing argument to $ac_option"
1483 if test -n "$ac_unrecognized_opts"; then
1484 case $enable_option_checking in
1485 no) ;;
1486 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1487 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1488 esac
1491 # Check all directory arguments for consistency.
1492 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1493 datadir sysconfdir sharedstatedir localstatedir includedir \
1494 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1495 libdir localedir mandir
1497 eval ac_val=\$$ac_var
1498 # Remove trailing slashes.
1499 case $ac_val in
1500 */ )
1501 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1502 eval $ac_var=\$ac_val;;
1503 esac
1504 # Be sure to have absolute directory names.
1505 case $ac_val in
1506 [\\/$]* | ?:[\\/]* ) continue;;
1507 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1508 esac
1509 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1510 done
1512 # There might be people who depend on the old broken behavior: `$host'
1513 # used to hold the argument of --host etc.
1514 # FIXME: To remove some day.
1515 build=$build_alias
1516 host=$host_alias
1517 target=$target_alias
1519 # FIXME: To remove some day.
1520 if test "x$host_alias" != x; then
1521 if test "x$build_alias" = x; then
1522 cross_compiling=maybe
1523 elif test "x$build_alias" != "x$host_alias"; then
1524 cross_compiling=yes
1528 ac_tool_prefix=
1529 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1531 test "$silent" = yes && exec 6>/dev/null
1534 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1535 ac_ls_di=`ls -di .` &&
1536 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1537 as_fn_error $? "working directory cannot be determined"
1538 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1539 as_fn_error $? "pwd does not report name of working directory"
1542 # Find the source files, if location was not specified.
1543 if test -z "$srcdir"; then
1544 ac_srcdir_defaulted=yes
1545 # Try the directory containing this script, then the parent directory.
1546 ac_confdir=`$as_dirname -- "$as_myself" ||
1547 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1548 X"$as_myself" : 'X\(//\)[^/]' \| \
1549 X"$as_myself" : 'X\(//\)$' \| \
1550 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1551 $as_echo X"$as_myself" |
1552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1553 s//\1/
1556 /^X\(\/\/\)[^/].*/{
1557 s//\1/
1560 /^X\(\/\/\)$/{
1561 s//\1/
1564 /^X\(\/\).*/{
1565 s//\1/
1568 s/.*/./; q'`
1569 srcdir=$ac_confdir
1570 if test ! -r "$srcdir/$ac_unique_file"; then
1571 srcdir=..
1573 else
1574 ac_srcdir_defaulted=no
1576 if test ! -r "$srcdir/$ac_unique_file"; then
1577 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1578 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1580 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1581 ac_abs_confdir=`(
1582 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1583 pwd)`
1584 # When building in place, set srcdir=.
1585 if test "$ac_abs_confdir" = "$ac_pwd"; then
1586 srcdir=.
1588 # Remove unnecessary trailing slashes from srcdir.
1589 # Double slashes in file names in object file debugging info
1590 # mess up M-x gdb in Emacs.
1591 case $srcdir in
1592 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1593 esac
1594 for ac_var in $ac_precious_vars; do
1595 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1596 eval ac_env_${ac_var}_value=\$${ac_var}
1597 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1598 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1599 done
1602 # Report the --help message.
1604 if test "$ac_init_help" = "long"; then
1605 # Omit some internal or obsolete options to make the list less imposing.
1606 # This message is too long to be a string in the A/UX 3.1 sh.
1607 cat <<_ACEOF
1608 \`configure' configures this package to adapt to many kinds of systems.
1610 Usage: $0 [OPTION]... [VAR=VALUE]...
1612 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1613 VAR=VALUE. See below for descriptions of some of the useful variables.
1615 Defaults for the options are specified in brackets.
1617 Configuration:
1618 -h, --help display this help and exit
1619 --help=short display options specific to this package
1620 --help=recursive display the short help of all the included packages
1621 -V, --version display version information and exit
1622 -q, --quiet, --silent do not print \`checking ...' messages
1623 --cache-file=FILE cache test results in FILE [disabled]
1624 -C, --config-cache alias for \`--cache-file=config.cache'
1625 -n, --no-create do not create output files
1626 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1628 Installation directories:
1629 --prefix=PREFIX install architecture-independent files in PREFIX
1630 [$ac_default_prefix]
1631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1632 [PREFIX]
1634 By default, \`make install' will install all the files in
1635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1637 for instance \`--prefix=\$HOME'.
1639 For better control, use the options below.
1641 Fine tuning of the installation directories:
1642 --bindir=DIR user executables [EPREFIX/bin]
1643 --sbindir=DIR system admin executables [EPREFIX/sbin]
1644 --libexecdir=DIR program executables [EPREFIX/libexec]
1645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1648 --libdir=DIR object code libraries [EPREFIX/lib]
1649 --includedir=DIR C header files [PREFIX/include]
1650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1651 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1652 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1653 --infodir=DIR info documentation [DATAROOTDIR/info]
1654 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1655 --mandir=DIR man documentation [DATAROOTDIR/man]
1656 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1657 --htmldir=DIR html documentation [DOCDIR]
1658 --dvidir=DIR dvi documentation [DOCDIR]
1659 --pdfdir=DIR pdf documentation [DOCDIR]
1660 --psdir=DIR ps documentation [DOCDIR]
1661 _ACEOF
1663 cat <<\_ACEOF
1665 Program names:
1666 --program-prefix=PREFIX prepend PREFIX to installed program names
1667 --program-suffix=SUFFIX append SUFFIX to installed program names
1668 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1670 System types:
1671 --build=BUILD configure for building on BUILD [guessed]
1672 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1673 --target=TARGET configure for building compilers for TARGET [HOST]
1674 _ACEOF
1677 if test -n "$ac_init_help"; then
1679 cat <<\_ACEOF
1681 Optional Features:
1682 --disable-option-checking ignore unrecognized --enable/--with options
1683 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1684 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1685 --enable-generated-files-in-srcdir
1686 put copies of generated files in source dir intended
1687 for creating source tarballs for users without
1688 texinfo bison or flex
1689 --disable-largefile omit support for large files
1690 --disable-build-format-warnings
1691 don't use -Wformat while building GCC
1692 --enable-werror-always enable -Werror despite compiler version
1693 --enable-checking[=LIST]
1694 enable expensive run-time checks. With LIST, enable
1695 only specific categories of checks. Categories are:
1696 yes,no,all,none,release. Flags are:
1697 assert,df,extra,fold,gc,gcac,gimple,misc,
1698 rtlflag,rtl,runtime,tree,valgrind,types
1699 --enable-coverage[=LEVEL]
1700 enable compiler's code coverage collection. Use to
1701 measure compiler performance and locate unused parts
1702 of the compiler. With LEVEL, specify optimization.
1703 Values are opt, noopt, default is noopt
1704 --enable-gather-detailed-mem-stats
1705 enable detailed memory allocation stats gathering
1706 --enable-valgrind-annotations
1707 enable valgrind runtime interaction
1708 --enable-multilib enable library support for multiple ABIs
1709 --enable-multiarch enable support for multiarch paths
1710 --enable-__cxa_atexit enable __cxa_atexit for C++
1711 --enable-decimal-float={no,yes,bid,dpd}
1712 enable decimal float extension to C. Selecting 'bid'
1713 or 'dpd' choses which decimal floating point format
1714 to use
1715 --enable-fixed-point enable fixed-point arithmetic extension to C
1716 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1717 package
1718 --enable-tls enable or disable generation of tls code overriding
1719 the assembler check for tls support
1720 --enable-vtable-verify enable vtable verification feature
1721 --disable-analyzer disable -fanalyzer static analyzer
1722 --enable-objc-gc enable the use of Boehm's garbage collector with the
1723 GNU Objective-C runtime
1724 --disable-shared don't provide a shared libgcc
1725 --disable-gcov don't provide libgcov and related host tools
1726 --enable-languages=LIST specify which front-ends to build
1727 --disable-rpath do not hardcode runtime library paths
1728 --enable-sjlj-exceptions
1729 arrange to use setjmp/longjmp exception handling
1730 --enable-secureplt enable -msecure-plt by default for PowerPC
1731 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1732 Default to platform configuration
1733 --enable-large-address-aware
1734 Link mingw executables with --large-address-aware
1735 --enable-leading-mingw64-underscores
1736 enable leading underscores on 64 bit mingw targets
1737 --enable-cld enable -mcld by default for 32bit x86
1738 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1739 --disable-win32-registry
1740 disable lookup of installation paths in the Registry
1741 on Windows hosts
1742 --enable-win32-registry enable registry lookup (default)
1743 --enable-win32-registry=KEY
1744 use KEY instead of GCC version as the last portion
1745 of the registry key
1746 --enable-shared[=PKGS] build shared libraries [default=yes]
1747 --enable-static[=PKGS] build static libraries [default=yes]
1748 --enable-fast-install[=PKGS]
1749 optimize for fast installation [default=yes]
1750 --disable-libtool-lock avoid locking (might break parallel builds)
1751 --enable-darwin-at-rpath
1752 install libraries with @rpath/library-name, requires
1753 rpaths to be added to executables
1754 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1755 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1756 --enable-gnu-indirect-function
1757 enable the use of the @gnu_indirect_function to
1758 glibc systems
1759 --enable-initfini-array use .init_array/.fini_array sections
1760 --enable-comdat enable COMDAT group support
1761 --enable-newlib-nano-formatted-io
1762 Use nano version formatted IO
1764 --enable-standard-branch-protection
1765 enable Branch Target Identification Mechanism and
1766 Return Address Signing by default for AArch64
1767 --disable-standard-branch-protection
1768 disable Branch Target Identification Mechanism and
1769 Return Address Signing by default for AArch64
1772 --enable-fix-cortex-a53-835769
1773 enable workaround for AArch64 Cortex-A53 erratum
1774 835769 by default
1775 --disable-fix-cortex-a53-835769
1776 disable workaround for AArch64 Cortex-A53 erratum
1777 835769 by default
1780 --enable-fix-cortex-a53-843419
1781 enable workaround for AArch64 Cortex-A53 erratum
1782 843419 by default
1783 --disable-fix-cortex-a53-843419
1784 disable workaround for AArch64 Cortex-A53 erratum
1785 843419 by default
1787 --enable-gnu-unique-object
1788 enable the use of the @gnu_unique_object ELF
1789 extension on glibc systems
1790 --enable-linker-build-id
1791 compiler will always pass --build-id to linker
1792 --enable-libssp enable linking against libssp
1793 --enable-default-ssp enable Stack Smashing Protection as default
1794 --enable-maintainer-mode
1795 enable make rules and dependencies not useful (and
1796 sometimes confusing) to the casual installer
1797 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1798 thrashing on the build machine
1799 --enable-link-serialization
1800 avoid linking multiple GCC front-ends at once using
1801 make dependencies to avoid thrashing on the build
1802 machine
1803 --enable-version-specific-runtime-libs
1804 specify that runtime libraries should be installed
1805 in a compiler-specific directory
1806 --enable-plugin enable plugin support
1807 --enable-host-shared build host code as shared libraries
1808 --enable-host-pie build host code as PIE
1809 --enable-host-bind-now link host code as BIND_NOW
1810 --disable-libquadmath-support
1811 disable libquadmath support for Fortran
1812 --enable-default-pie enable Position Independent Executable as default
1813 --enable-cet enable Intel CET in host libraries [default=auto]
1814 --enable-s390-excess-float-precision
1815 on s390 targets, evaluate float with double
1816 precision when in standards-conforming mode
1818 Optional Packages:
1819 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1820 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1821 --with-build-libsubdir=DIR Directory where to find libraries for build system
1822 --with-local-prefix=DIR specifies directory to put local include
1823 --with-native-system-header-dir=dir
1824 use dir as the directory to look for standard
1825 system header files in. Defaults to /usr/include.
1826 --with-build-sysroot=sysroot
1827 use sysroot as the system root during the build
1828 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1829 --with-gxx-include-dir=DIR
1830 specifies directory to put g++ header files
1831 --with-gxx-libcxx-include-dir=DIR
1832 specifies directory to find libc++ header files
1833 --with-cpp-install-dir=DIR
1834 install the user visible C preprocessor in DIR
1835 (relative to PREFIX) as well as PREFIX/bin
1836 --with-gnu-ld arrange to work with GNU ld
1837 --with-ld arrange to use the specified ld (full pathname)
1838 --with-demangler-in-ld try to use demangler in GNU ld
1839 --with-dsymutil arrange to use the specified dsymutil (full
1840 pathname)
1841 --with-gnu-as arrange to work with GNU as
1842 --with-as arrange to use the specified as (full pathname)
1843 --with-stack-clash-protection-guard-size=size
1844 Set the default stack clash protection guard size
1845 for specific targets as a power of two in bytes.
1846 --with-matchpd-partitions=num
1847 Set the number of partitions to make for gimple and
1848 generic when splitting match.pd. [default=10]
1849 --with-dwarf2 force the default debug format to be DWARF 2 (or
1850 later)
1851 --with-specs=SPECS add SPECS to driver command-line processing
1852 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1853 --with-bugurl=URL Direct users to URL to report a bug
1854 --with-documentation-root-url=URL
1855 Root for documentation URLs
1856 --with-changes-root-url=URL
1857 Root for GCC changes URLs
1858 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1859 SH and x86-64 only)
1860 --with-multilib-generator
1861 Multi-libs configuration string (RISC-V only)
1862 --with-zstd=PATH specify prefix directory for installed zstd library.
1863 Equivalent to --with-zstd-include=PATH/include plus
1864 --with-zstd-lib=PATH/lib
1865 --with-zstd-include=PATH
1866 specify directory for installed zstd include files
1867 --with-zstd-lib=PATH specify directory for the installed zstd library
1868 --with-gnu-ld assume the C compiler uses GNU ld default=no
1869 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1870 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1871 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1872 --with-gcc-major-version-only
1873 use only GCC major number in filesystem paths
1874 --with-pic try to use only PIC/non-PIC objects [default=use
1875 both]
1876 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1877 --with-darwin-extra-rpath=[ARG]
1878 Specify a runpath directory, additional to those
1879 provided by the compiler
1880 --with-plugin-ld=[ARG] specify the plugin linker
1881 --with-glibc-version=M.N
1882 assume GCC used with glibc version M.N or later
1883 --with-long-double-128 use 128-bit long double by default
1884 --with-long-double-format={ieee,ibm}
1885 Specify whether PowerPC long double uses IEEE or IBM format
1887 --with-gc={page,zone} this option is not supported anymore. It used to
1888 choose the garbage collection mechanism to use with
1889 the compiler
1890 --with-system-zlib use installed libz
1891 --with-linker-hash-style={sysv,gnu,both}
1892 specify the linker hash style
1893 --with-diagnostics-color={never,auto,auto-if-env,always}
1894 specify the default of -fdiagnostics-color option
1895 auto-if-env stands for -fdiagnostics-color=auto if
1896 GCC_COLOR environment variable is present and
1897 -fdiagnostics-color=never otherwise
1898 --with-diagnostics-urls={never,auto,auto-if-env,always}
1899 specify the default of -fdiagnostics-urls option
1900 auto-if-env stands for -fdiagnostics-urls=auto if
1901 GCC_URLS or TERM_URLS environment variable is
1902 present and -fdiagnostics-urls=never otherwise
1904 Some influential environment variables:
1905 CC C compiler command
1906 CFLAGS C compiler flags
1907 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1908 nonstandard directory <lib dir>
1909 LIBS libraries to pass to the linker, e.g. -l<library>
1910 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1911 you have headers in a nonstandard directory <include dir>
1912 CXX C++ compiler command
1913 CXXFLAGS C++ compiler flags
1914 CXXCPP C++ preprocessor
1915 CPP C preprocessor
1916 GMPLIBS How to link GMP
1917 GMPINC How to find GMP include files
1918 ISLLIBS How to link isl
1919 ISLINC How to find isl include files
1921 Use these variables to override the choices made by `configure' or to help
1922 it to find libraries and programs with nonstandard names/locations.
1924 Report bugs to the package provider.
1925 _ACEOF
1926 ac_status=$?
1929 if test "$ac_init_help" = "recursive"; then
1930 # If there are subdirs, report their specific --help.
1931 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1932 test -d "$ac_dir" ||
1933 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1934 continue
1935 ac_builddir=.
1937 case "$ac_dir" in
1938 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1940 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1941 # A ".." for each directory in $ac_dir_suffix.
1942 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1943 case $ac_top_builddir_sub in
1944 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1945 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1946 esac ;;
1947 esac
1948 ac_abs_top_builddir=$ac_pwd
1949 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1950 # for backward compatibility:
1951 ac_top_builddir=$ac_top_build_prefix
1953 case $srcdir in
1954 .) # We are building in place.
1955 ac_srcdir=.
1956 ac_top_srcdir=$ac_top_builddir_sub
1957 ac_abs_top_srcdir=$ac_pwd ;;
1958 [\\/]* | ?:[\\/]* ) # Absolute name.
1959 ac_srcdir=$srcdir$ac_dir_suffix;
1960 ac_top_srcdir=$srcdir
1961 ac_abs_top_srcdir=$srcdir ;;
1962 *) # Relative name.
1963 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1964 ac_top_srcdir=$ac_top_build_prefix$srcdir
1965 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1966 esac
1967 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1969 cd "$ac_dir" || { ac_status=$?; continue; }
1970 # Check for guested configure.
1971 if test -f "$ac_srcdir/configure.gnu"; then
1972 echo &&
1973 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1974 elif test -f "$ac_srcdir/configure"; then
1975 echo &&
1976 $SHELL "$ac_srcdir/configure" --help=recursive
1977 else
1978 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1979 fi || ac_status=$?
1980 cd "$ac_pwd" || { ac_status=$?; break; }
1981 done
1984 test -n "$ac_init_help" && exit $ac_status
1985 if $ac_init_version; then
1986 cat <<\_ACEOF
1987 configure
1988 generated by GNU Autoconf 2.69
1990 Copyright (C) 2012 Free Software Foundation, Inc.
1991 This configure script is free software; the Free Software Foundation
1992 gives unlimited permission to copy, distribute and modify it.
1993 _ACEOF
1994 exit
1997 ## ------------------------ ##
1998 ## Autoconf initialization. ##
1999 ## ------------------------ ##
2001 # ac_fn_c_try_compile LINENO
2002 # --------------------------
2003 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2004 ac_fn_c_try_compile ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 rm -f conftest.$ac_objext
2008 if { { ac_try="$ac_compile"
2009 case "(($ac_try" in
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_compile") 2>conftest.err
2016 ac_status=$?
2017 if test -s conftest.err; then
2018 grep -v '^ *+' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2020 mv -f conftest.er1 conftest.err
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && {
2024 test -z "$ac_c_werror_flag" ||
2025 test ! -s conftest.err
2026 } && test -s conftest.$ac_objext; then :
2027 ac_retval=0
2028 else
2029 $as_echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2032 ac_retval=1
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 as_fn_set_status $ac_retval
2037 } # ac_fn_c_try_compile
2039 # ac_fn_cxx_try_compile LINENO
2040 # ----------------------------
2041 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2042 ac_fn_cxx_try_compile ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 rm -f conftest.$ac_objext
2046 if { { ac_try="$ac_compile"
2047 case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_compile") 2>conftest.err
2054 ac_status=$?
2055 if test -s conftest.err; then
2056 grep -v '^ *+' conftest.err >conftest.er1
2057 cat conftest.er1 >&5
2058 mv -f conftest.er1 conftest.err
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } && {
2062 test -z "$ac_cxx_werror_flag" ||
2063 test ! -s conftest.err
2064 } && test -s conftest.$ac_objext; then :
2065 ac_retval=0
2066 else
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 ac_retval=1
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status $ac_retval
2075 } # ac_fn_cxx_try_compile
2077 # ac_fn_cxx_try_cpp LINENO
2078 # ------------------------
2079 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2080 ac_fn_cxx_try_cpp ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if { { ac_try="$ac_cpp conftest.$ac_ext"
2084 case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087 esac
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2091 ac_status=$?
2092 if test -s conftest.err; then
2093 grep -v '^ *+' conftest.err >conftest.er1
2094 cat conftest.er1 >&5
2095 mv -f conftest.er1 conftest.err
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } > conftest.i && {
2099 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2100 test ! -s conftest.err
2101 }; then :
2102 ac_retval=0
2103 else
2104 $as_echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2107 ac_retval=1
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 as_fn_set_status $ac_retval
2112 } # ac_fn_cxx_try_cpp
2114 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2115 # ---------------------------------------------------------
2116 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2117 # the include files in INCLUDES and setting the cache variable VAR
2118 # accordingly.
2119 ac_fn_cxx_check_header_mongrel ()
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 if eval \${$3+:} false; then :
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if eval \${$3+:} false; then :
2126 $as_echo_n "(cached) " >&6
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 else
2132 # Is the header compilable?
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2134 $as_echo_n "checking $2 usability... " >&6; }
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2138 #include <$2>
2139 _ACEOF
2140 if ac_fn_cxx_try_compile "$LINENO"; then :
2141 ac_header_compiler=yes
2142 else
2143 ac_header_compiler=no
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2147 $as_echo "$ac_header_compiler" >&6; }
2149 # Is the header present?
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2151 $as_echo_n "checking $2 presence... " >&6; }
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2154 #include <$2>
2155 _ACEOF
2156 if ac_fn_cxx_try_cpp "$LINENO"; then :
2157 ac_header_preproc=yes
2158 else
2159 ac_header_preproc=no
2161 rm -f conftest.err conftest.i conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2163 $as_echo "$ac_header_preproc" >&6; }
2165 # So? What about this header?
2166 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2167 yes:no: )
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2169 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2171 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2173 no:yes:* )
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2175 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2177 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2179 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2181 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2183 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2185 esac
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \${$3+:} false; then :
2189 $as_echo_n "(cached) " >&6
2190 else
2191 eval "$3=\$ac_header_compiler"
2193 eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 } # ac_fn_cxx_check_header_mongrel
2201 # ac_fn_cxx_try_run LINENO
2202 # ------------------------
2203 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2204 # that executables *can* be run.
2205 ac_fn_cxx_try_run ()
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 if { { ac_try="$ac_link"
2209 case "(($ac_try" in
2210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2212 esac
2213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214 $as_echo "$ac_try_echo"; } >&5
2215 (eval "$ac_link") 2>&5
2216 ac_status=$?
2217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2219 { { case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222 esac
2223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224 $as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_try") 2>&5
2226 ac_status=$?
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; }; }; then :
2229 ac_retval=0
2230 else
2231 $as_echo "$as_me: program exited with status $ac_status" >&5
2232 $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2235 ac_retval=$ac_status
2237 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 as_fn_set_status $ac_retval
2241 } # ac_fn_cxx_try_run
2243 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2244 # ---------------------------------------------------------
2245 # Tests whether HEADER exists and can be compiled using the include files in
2246 # INCLUDES, setting the cache variable VAR accordingly.
2247 ac_fn_cxx_check_header_compile ()
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251 $as_echo_n "checking for $2... " >&6; }
2252 if eval \${$3+:} false; then :
2253 $as_echo_n "(cached) " >&6
2254 else
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2258 #include <$2>
2259 _ACEOF
2260 if ac_fn_cxx_try_compile "$LINENO"; then :
2261 eval "$3=yes"
2262 else
2263 eval "$3=no"
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 eval ac_res=\$$3
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272 } # ac_fn_cxx_check_header_compile
2274 # ac_fn_c_try_cpp LINENO
2275 # ----------------------
2276 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2277 ac_fn_c_try_cpp ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 if { { ac_try="$ac_cpp conftest.$ac_ext"
2281 case "(($ac_try" in
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2284 esac
2285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286 $as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2288 ac_status=$?
2289 if test -s conftest.err; then
2290 grep -v '^ *+' conftest.err >conftest.er1
2291 cat conftest.er1 >&5
2292 mv -f conftest.er1 conftest.err
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; } > conftest.i && {
2296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2297 test ! -s conftest.err
2298 }; then :
2299 ac_retval=0
2300 else
2301 $as_echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2304 ac_retval=1
2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307 as_fn_set_status $ac_retval
2309 } # ac_fn_c_try_cpp
2311 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2312 # ----------------------------------------------
2313 # Tries to find the compile-time value of EXPR in a program that includes
2314 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2315 # computed
2316 ac_fn_cxx_compute_int ()
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 if test "$cross_compiling" = yes; then
2320 # Depending upon the size, compute the lo and hi bounds.
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2325 main ()
2327 static int test_array [1 - 2 * !(($2) >= 0)];
2328 test_array [0] = 0;
2329 return test_array [0];
2332 return 0;
2334 _ACEOF
2335 if ac_fn_cxx_try_compile "$LINENO"; then :
2336 ac_lo=0 ac_mid=0
2337 while :; do
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2342 main ()
2344 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2345 test_array [0] = 0;
2346 return test_array [0];
2349 return 0;
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353 ac_hi=$ac_mid; break
2354 else
2355 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2356 if test $ac_lo -le $ac_mid; then
2357 ac_lo= ac_hi=
2358 break
2360 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 done
2364 else
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2369 main ()
2371 static int test_array [1 - 2 * !(($2) < 0)];
2372 test_array [0] = 0;
2373 return test_array [0];
2376 return 0;
2378 _ACEOF
2379 if ac_fn_cxx_try_compile "$LINENO"; then :
2380 ac_hi=-1 ac_mid=-1
2381 while :; do
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2386 main ()
2388 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2389 test_array [0] = 0;
2390 return test_array [0];
2393 return 0;
2395 _ACEOF
2396 if ac_fn_cxx_try_compile "$LINENO"; then :
2397 ac_lo=$ac_mid; break
2398 else
2399 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2400 if test $ac_mid -le $ac_hi; then
2401 ac_lo= ac_hi=
2402 break
2404 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 done
2408 else
2409 ac_lo= ac_hi=
2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 # Binary search between lo and hi bounds.
2415 while test "x$ac_lo" != "x$ac_hi"; do
2416 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2421 main ()
2423 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2424 test_array [0] = 0;
2425 return test_array [0];
2428 return 0;
2430 _ACEOF
2431 if ac_fn_cxx_try_compile "$LINENO"; then :
2432 ac_hi=$ac_mid
2433 else
2434 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 done
2438 case $ac_lo in #((
2439 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2440 '') ac_retval=1 ;;
2441 esac
2442 else
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2446 static long int longval () { return $2; }
2447 static unsigned long int ulongval () { return $2; }
2448 #include <stdio.h>
2449 #include <stdlib.h>
2451 main ()
2454 FILE *f = fopen ("conftest.val", "w");
2455 if (! f)
2456 return 1;
2457 if (($2) < 0)
2459 long int i = longval ();
2460 if (i != ($2))
2461 return 1;
2462 fprintf (f, "%ld", i);
2464 else
2466 unsigned long int i = ulongval ();
2467 if (i != ($2))
2468 return 1;
2469 fprintf (f, "%lu", i);
2471 /* Do not output a trailing newline, as this causes \r\n confusion
2472 on some platforms. */
2473 return ferror (f) || fclose (f) != 0;
2476 return 0;
2478 _ACEOF
2479 if ac_fn_cxx_try_run "$LINENO"; then :
2480 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2481 else
2482 ac_retval=1
2484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2485 conftest.$ac_objext conftest.beam conftest.$ac_ext
2486 rm -f conftest.val
2489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2490 as_fn_set_status $ac_retval
2492 } # ac_fn_cxx_compute_int
2494 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2495 # ---------------------------------------------
2496 # Tests whether TYPE exists after having included INCLUDES, setting cache
2497 # variable VAR accordingly.
2498 ac_fn_cxx_check_type ()
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2502 $as_echo_n "checking for $2... " >&6; }
2503 if eval \${$3+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 eval "$3=no"
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2511 main ()
2513 if (sizeof ($2))
2514 return 0;
2516 return 0;
2518 _ACEOF
2519 if ac_fn_cxx_try_compile "$LINENO"; then :
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2524 main ()
2526 if (sizeof (($2)))
2527 return 0;
2529 return 0;
2531 _ACEOF
2532 if ac_fn_cxx_try_compile "$LINENO"; then :
2534 else
2535 eval "$3=yes"
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 eval ac_res=\$$3
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2546 } # ac_fn_cxx_check_type
2548 # ac_fn_c_find_intX_t LINENO BITS VAR
2549 # -----------------------------------
2550 # Finds a signed integer type with width BITS, setting cache variable VAR
2551 # accordingly.
2552 ac_fn_c_find_intX_t ()
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2556 $as_echo_n "checking for int$2_t... " >&6; }
2557 if eval \${$3+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 eval "$3=no"
2561 # Order is important - never check a type that is potentially smaller
2562 # than half of the expected target width.
2563 for ac_type in int$2_t 'int' 'long int' \
2564 'long long int' 'short int' 'signed char'; do
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2567 $ac_includes_default
2568 enum { N = $2 / 2 - 1 };
2570 main ()
2572 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2573 test_array [0] = 0;
2574 return test_array [0];
2577 return 0;
2579 _ACEOF
2580 if ac_fn_cxx_try_compile "$LINENO"; then :
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2583 $ac_includes_default
2584 enum { N = $2 / 2 - 1 };
2586 main ()
2588 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2589 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2590 test_array [0] = 0;
2591 return test_array [0];
2594 return 0;
2596 _ACEOF
2597 if ac_fn_cxx_try_compile "$LINENO"; then :
2599 else
2600 case $ac_type in #(
2601 int$2_t) :
2602 eval "$3=yes" ;; #(
2603 *) :
2604 eval "$3=\$ac_type" ;;
2605 esac
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 if eval test \"x\$"$3"\" = x"no"; then :
2612 else
2613 break
2615 done
2617 eval ac_res=\$$3
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619 $as_echo "$ac_res" >&6; }
2620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622 } # ac_fn_c_find_intX_t
2624 # ac_fn_cxx_try_link LINENO
2625 # -------------------------
2626 # Try to link conftest.$ac_ext, and return whether this succeeded.
2627 ac_fn_cxx_try_link ()
2629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2630 rm -f conftest.$ac_objext conftest$ac_exeext
2631 if { { ac_try="$ac_link"
2632 case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2635 esac
2636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2637 $as_echo "$ac_try_echo"; } >&5
2638 (eval "$ac_link") 2>conftest.err
2639 ac_status=$?
2640 if test -s conftest.err; then
2641 grep -v '^ *+' conftest.err >conftest.er1
2642 cat conftest.er1 >&5
2643 mv -f conftest.er1 conftest.err
2645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2646 test $ac_status = 0; } && {
2647 test -z "$ac_cxx_werror_flag" ||
2648 test ! -s conftest.err
2649 } && test -s conftest$ac_exeext && {
2650 test "$cross_compiling" = yes ||
2651 test -x conftest$ac_exeext
2652 }; then :
2653 ac_retval=0
2654 else
2655 $as_echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2658 ac_retval=1
2660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2662 # interfere with the next link command; also delete a directory that is
2663 # left behind by Apple's compiler. We do this before executing the actions.
2664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2666 as_fn_set_status $ac_retval
2668 } # ac_fn_cxx_try_link
2670 # ac_fn_c_find_uintX_t LINENO BITS VAR
2671 # ------------------------------------
2672 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2673 # accordingly.
2674 ac_fn_c_find_uintX_t ()
2676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2678 $as_echo_n "checking for uint$2_t... " >&6; }
2679 if eval \${$3+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 eval "$3=no"
2683 # Order is important - never check a type that is potentially smaller
2684 # than half of the expected target width.
2685 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2686 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2689 $ac_includes_default
2691 main ()
2693 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2694 test_array [0] = 0;
2695 return test_array [0];
2698 return 0;
2700 _ACEOF
2701 if ac_fn_cxx_try_compile "$LINENO"; then :
2702 case $ac_type in #(
2703 uint$2_t) :
2704 eval "$3=yes" ;; #(
2705 *) :
2706 eval "$3=\$ac_type" ;;
2707 esac
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710 if eval test \"x\$"$3"\" = x"no"; then :
2712 else
2713 break
2715 done
2717 eval ac_res=\$$3
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2719 $as_echo "$ac_res" >&6; }
2720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2722 } # ac_fn_c_find_uintX_t
2724 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2725 # ------------------------------------------------
2726 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2727 ac_fn_cxx_check_header_preproc ()
2729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2731 $as_echo_n "checking for $2... " >&6; }
2732 if eval \${$3+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h. */
2737 #include <$2>
2738 _ACEOF
2739 if ac_fn_cxx_try_cpp "$LINENO"; then :
2740 eval "$3=yes"
2741 else
2742 eval "$3=no"
2744 rm -f conftest.err conftest.i conftest.$ac_ext
2746 eval ac_res=\$$3
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2748 $as_echo "$ac_res" >&6; }
2749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2751 } # ac_fn_cxx_check_header_preproc
2753 # ac_fn_cxx_check_func LINENO FUNC VAR
2754 # ------------------------------------
2755 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2756 ac_fn_cxx_check_func ()
2758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2760 $as_echo_n "checking for $2... " >&6; }
2761 if eval \${$3+:} false; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2766 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2768 #define $2 innocuous_$2
2770 /* System header to define __stub macros and hopefully few prototypes,
2771 which can conflict with char $2 (); below.
2772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2773 <limits.h> exists even on freestanding compilers. */
2775 #ifdef __STDC__
2776 # include <limits.h>
2777 #else
2778 # include <assert.h>
2779 #endif
2781 #undef $2
2783 /* Override any GCC internal prototype to avoid an error.
2784 Use char because int might match the return type of a GCC
2785 builtin and then its argument prototype would still apply. */
2786 #ifdef __cplusplus
2787 extern "C"
2788 #endif
2789 char $2 ();
2790 /* The GNU C library defines this for functions which it implements
2791 to always fail with ENOSYS. Some functions are actually named
2792 something starting with __ and the normal name is an alias. */
2793 #if defined __stub_$2 || defined __stub___$2
2794 choke me
2795 #endif
2798 main ()
2800 return $2 ();
2802 return 0;
2804 _ACEOF
2805 if ac_fn_cxx_try_link "$LINENO"; then :
2806 eval "$3=yes"
2807 else
2808 eval "$3=no"
2810 rm -f core conftest.err conftest.$ac_objext \
2811 conftest$ac_exeext conftest.$ac_ext
2813 eval ac_res=\$$3
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2815 $as_echo "$ac_res" >&6; }
2816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2818 } # ac_fn_cxx_check_func
2820 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2821 # -----------------------------------------------
2822 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2823 # accordingly.
2824 ac_fn_cxx_check_decl ()
2826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2827 as_decl_name=`echo $2|sed 's/ *(.*//'`
2828 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2830 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2831 if eval \${$3+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2838 main ()
2840 #ifndef $as_decl_name
2841 #ifdef __cplusplus
2842 (void) $as_decl_use;
2843 #else
2844 (void) $as_decl_name;
2845 #endif
2846 #endif
2849 return 0;
2851 _ACEOF
2852 if ac_fn_cxx_try_compile "$LINENO"; then :
2853 eval "$3=yes"
2854 else
2855 eval "$3=no"
2857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859 eval ac_res=\$$3
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2861 $as_echo "$ac_res" >&6; }
2862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2864 } # ac_fn_cxx_check_decl
2866 # ac_fn_c_try_link LINENO
2867 # -----------------------
2868 # Try to link conftest.$ac_ext, and return whether this succeeded.
2869 ac_fn_c_try_link ()
2871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2872 rm -f conftest.$ac_objext conftest$ac_exeext
2873 if { { ac_try="$ac_link"
2874 case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879 $as_echo "$ac_try_echo"; } >&5
2880 (eval "$ac_link") 2>conftest.err
2881 ac_status=$?
2882 if test -s conftest.err; then
2883 grep -v '^ *+' conftest.err >conftest.er1
2884 cat conftest.er1 >&5
2885 mv -f conftest.er1 conftest.err
2887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2888 test $ac_status = 0; } && {
2889 test -z "$ac_c_werror_flag" ||
2890 test ! -s conftest.err
2891 } && test -s conftest$ac_exeext && {
2892 test "$cross_compiling" = yes ||
2893 test -x conftest$ac_exeext
2894 }; then :
2895 ac_retval=0
2896 else
2897 $as_echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 ac_retval=1
2902 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2903 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2904 # interfere with the next link command; also delete a directory that is
2905 # left behind by Apple's compiler. We do this before executing the actions.
2906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2908 as_fn_set_status $ac_retval
2910 } # ac_fn_c_try_link
2912 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2913 # ----------------------------------------------
2914 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2915 ac_fn_c_check_header_preproc ()
2917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2919 $as_echo_n "checking for $2... " >&6; }
2920 if eval \${$3+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2925 #include <$2>
2926 _ACEOF
2927 if ac_fn_c_try_cpp "$LINENO"; then :
2928 eval "$3=yes"
2929 else
2930 eval "$3=no"
2932 rm -f conftest.err conftest.i conftest.$ac_ext
2934 eval ac_res=\$$3
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2936 $as_echo "$ac_res" >&6; }
2937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2939 } # ac_fn_c_check_header_preproc
2941 # ac_fn_c_check_func LINENO FUNC VAR
2942 # ----------------------------------
2943 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2944 ac_fn_c_check_func ()
2946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2948 $as_echo_n "checking for $2... " >&6; }
2949 if eval \${$3+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953 /* end confdefs.h. */
2954 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2956 #define $2 innocuous_$2
2958 /* System header to define __stub macros and hopefully few prototypes,
2959 which can conflict with char $2 (); below.
2960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2961 <limits.h> exists even on freestanding compilers. */
2963 #ifdef __STDC__
2964 # include <limits.h>
2965 #else
2966 # include <assert.h>
2967 #endif
2969 #undef $2
2971 /* Override any GCC internal prototype to avoid an error.
2972 Use char because int might match the return type of a GCC
2973 builtin and then its argument prototype would still apply. */
2974 #ifdef __cplusplus
2975 extern "C"
2976 #endif
2977 char $2 ();
2978 /* The GNU C library defines this for functions which it implements
2979 to always fail with ENOSYS. Some functions are actually named
2980 something starting with __ and the normal name is an alias. */
2981 #if defined __stub_$2 || defined __stub___$2
2982 choke me
2983 #endif
2986 main ()
2988 return $2 ();
2990 return 0;
2992 _ACEOF
2993 if ac_fn_c_try_link "$LINENO"; then :
2994 eval "$3=yes"
2995 else
2996 eval "$3=no"
2998 rm -f core conftest.err conftest.$ac_objext \
2999 conftest$ac_exeext conftest.$ac_ext
3001 eval ac_res=\$$3
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3003 $as_echo "$ac_res" >&6; }
3004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3006 } # ac_fn_c_check_func
3007 cat >config.log <<_ACEOF
3008 This file contains any messages produced by compilers while
3009 running configure, to aid debugging if configure makes a mistake.
3011 It was created by $as_me, which was
3012 generated by GNU Autoconf 2.69. Invocation command line was
3014 $ $0 $@
3016 _ACEOF
3017 exec 5>>config.log
3019 cat <<_ASUNAME
3020 ## --------- ##
3021 ## Platform. ##
3022 ## --------- ##
3024 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3025 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3026 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3027 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3028 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3030 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3031 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3033 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3034 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3035 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3036 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3037 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3038 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3039 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3041 _ASUNAME
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 $as_echo "PATH: $as_dir"
3049 done
3050 IFS=$as_save_IFS
3052 } >&5
3054 cat >&5 <<_ACEOF
3057 ## ----------- ##
3058 ## Core tests. ##
3059 ## ----------- ##
3061 _ACEOF
3064 # Keep a trace of the command line.
3065 # Strip out --no-create and --no-recursion so they do not pile up.
3066 # Strip out --silent because we don't want to record it for future runs.
3067 # Also quote any args containing shell meta-characters.
3068 # Make two passes to allow for proper duplicate-argument suppression.
3069 ac_configure_args=
3070 ac_configure_args0=
3071 ac_configure_args1=
3072 ac_must_keep_next=false
3073 for ac_pass in 1 2
3075 for ac_arg
3077 case $ac_arg in
3078 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3080 | -silent | --silent | --silen | --sile | --sil)
3081 continue ;;
3082 *\'*)
3083 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3084 esac
3085 case $ac_pass in
3086 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3088 as_fn_append ac_configure_args1 " '$ac_arg'"
3089 if test $ac_must_keep_next = true; then
3090 ac_must_keep_next=false # Got value, back to normal.
3091 else
3092 case $ac_arg in
3093 *=* | --config-cache | -C | -disable-* | --disable-* \
3094 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3095 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3096 | -with-* | --with-* | -without-* | --without-* | --x)
3097 case "$ac_configure_args0 " in
3098 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3099 esac
3101 -* ) ac_must_keep_next=true ;;
3102 esac
3104 as_fn_append ac_configure_args " '$ac_arg'"
3106 esac
3107 done
3108 done
3109 { ac_configure_args0=; unset ac_configure_args0;}
3110 { ac_configure_args1=; unset ac_configure_args1;}
3112 # When interrupted or exit'd, cleanup temporary files, and complete
3113 # config.log. We remove comments because anyway the quotes in there
3114 # would cause problems or look ugly.
3115 # WARNING: Use '\'' to represent an apostrophe within the trap.
3116 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3117 trap 'exit_status=$?
3118 # Save into config.log some information that might help in debugging.
3120 echo
3122 $as_echo "## ---------------- ##
3123 ## Cache variables. ##
3124 ## ---------------- ##"
3125 echo
3126 # The following way of writing the cache mishandles newlines in values,
3128 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3129 eval ac_val=\$$ac_var
3130 case $ac_val in #(
3131 *${as_nl}*)
3132 case $ac_var in #(
3133 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3134 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3135 esac
3136 case $ac_var in #(
3137 _ | IFS | as_nl) ;; #(
3138 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3139 *) { eval $ac_var=; unset $ac_var;} ;;
3140 esac ;;
3141 esac
3142 done
3143 (set) 2>&1 |
3144 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3145 *${as_nl}ac_space=\ *)
3146 sed -n \
3147 "s/'\''/'\''\\\\'\'''\''/g;
3148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3149 ;; #(
3151 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3153 esac |
3154 sort
3156 echo
3158 $as_echo "## ----------------- ##
3159 ## Output variables. ##
3160 ## ----------------- ##"
3161 echo
3162 for ac_var in $ac_subst_vars
3164 eval ac_val=\$$ac_var
3165 case $ac_val in
3166 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3167 esac
3168 $as_echo "$ac_var='\''$ac_val'\''"
3169 done | sort
3170 echo
3172 if test -n "$ac_subst_files"; then
3173 $as_echo "## ------------------- ##
3174 ## File substitutions. ##
3175 ## ------------------- ##"
3176 echo
3177 for ac_var in $ac_subst_files
3179 eval ac_val=\$$ac_var
3180 case $ac_val in
3181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3182 esac
3183 $as_echo "$ac_var='\''$ac_val'\''"
3184 done | sort
3185 echo
3188 if test -s confdefs.h; then
3189 $as_echo "## ----------- ##
3190 ## confdefs.h. ##
3191 ## ----------- ##"
3192 echo
3193 cat confdefs.h
3194 echo
3196 test "$ac_signal" != 0 &&
3197 $as_echo "$as_me: caught signal $ac_signal"
3198 $as_echo "$as_me: exit $exit_status"
3199 } >&5
3200 rm -f core *.core core.conftest.* &&
3201 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3202 exit $exit_status
3204 for ac_signal in 1 2 13 15; do
3205 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3206 done
3207 ac_signal=0
3209 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3210 rm -f -r conftest* confdefs.h
3212 $as_echo "/* confdefs.h */" > confdefs.h
3214 # Predefined preprocessor variables.
3216 cat >>confdefs.h <<_ACEOF
3217 #define PACKAGE_NAME "$PACKAGE_NAME"
3218 _ACEOF
3220 cat >>confdefs.h <<_ACEOF
3221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3222 _ACEOF
3224 cat >>confdefs.h <<_ACEOF
3225 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3226 _ACEOF
3228 cat >>confdefs.h <<_ACEOF
3229 #define PACKAGE_STRING "$PACKAGE_STRING"
3230 _ACEOF
3232 cat >>confdefs.h <<_ACEOF
3233 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3234 _ACEOF
3236 cat >>confdefs.h <<_ACEOF
3237 #define PACKAGE_URL "$PACKAGE_URL"
3238 _ACEOF
3241 # Let the site file select an alternate cache file if it wants to.
3242 # Prefer an explicitly selected file to automatically selected ones.
3243 ac_site_file1=NONE
3244 ac_site_file2=NONE
3245 if test -n "$CONFIG_SITE"; then
3246 # We do not want a PATH search for config.site.
3247 case $CONFIG_SITE in #((
3248 -*) ac_site_file1=./$CONFIG_SITE;;
3249 */*) ac_site_file1=$CONFIG_SITE;;
3250 *) ac_site_file1=./$CONFIG_SITE;;
3251 esac
3252 elif test "x$prefix" != xNONE; then
3253 ac_site_file1=$prefix/share/config.site
3254 ac_site_file2=$prefix/etc/config.site
3255 else
3256 ac_site_file1=$ac_default_prefix/share/config.site
3257 ac_site_file2=$ac_default_prefix/etc/config.site
3259 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3261 test "x$ac_site_file" = xNONE && continue
3262 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3264 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3265 sed 's/^/| /' "$ac_site_file" >&5
3266 . "$ac_site_file" \
3267 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269 as_fn_error $? "failed to load site script $ac_site_file
3270 See \`config.log' for more details" "$LINENO" 5; }
3272 done
3274 if test -r "$cache_file"; then
3275 # Some versions of bash will fail to source /dev/null (special files
3276 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3277 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3279 $as_echo "$as_me: loading cache $cache_file" >&6;}
3280 case $cache_file in
3281 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3282 *) . "./$cache_file";;
3283 esac
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3287 $as_echo "$as_me: creating cache $cache_file" >&6;}
3288 >$cache_file
3291 # Check that the precious variables saved in the cache have kept the same
3292 # value.
3293 ac_cache_corrupted=false
3294 for ac_var in $ac_precious_vars; do
3295 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3296 eval ac_new_set=\$ac_env_${ac_var}_set
3297 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3298 eval ac_new_val=\$ac_env_${ac_var}_value
3299 case $ac_old_set,$ac_new_set in
3300 set,)
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3302 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3303 ac_cache_corrupted=: ;;
3304 ,set)
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3306 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3307 ac_cache_corrupted=: ;;
3308 ,);;
3310 if test "x$ac_old_val" != "x$ac_new_val"; then
3311 # differences in whitespace do not lead to failure.
3312 ac_old_val_w=`echo x $ac_old_val`
3313 ac_new_val_w=`echo x $ac_new_val`
3314 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3316 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3317 ac_cache_corrupted=:
3318 else
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3320 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3321 eval $ac_var=\$ac_old_val
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3324 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3326 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3327 fi;;
3328 esac
3329 # Pass precious variables to config.status.
3330 if test "$ac_new_set" = set; then
3331 case $ac_new_val in
3332 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3333 *) ac_arg=$ac_var=$ac_new_val ;;
3334 esac
3335 case " $ac_configure_args " in
3336 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3337 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3338 esac
3340 done
3341 if $ac_cache_corrupted; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3345 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3346 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3348 ## -------------------- ##
3349 ## Main body of script. ##
3350 ## -------------------- ##
3352 ac_ext=c
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3367 gcc_version=`cat $srcdir/BASE-VER`
3369 # Determine the host, build, and target systems
3370 ac_aux_dir=
3371 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3372 if test -f "$ac_dir/install-sh"; then
3373 ac_aux_dir=$ac_dir
3374 ac_install_sh="$ac_aux_dir/install-sh -c"
3375 break
3376 elif test -f "$ac_dir/install.sh"; then
3377 ac_aux_dir=$ac_dir
3378 ac_install_sh="$ac_aux_dir/install.sh -c"
3379 break
3380 elif test -f "$ac_dir/shtool"; then
3381 ac_aux_dir=$ac_dir
3382 ac_install_sh="$ac_aux_dir/shtool install -c"
3383 break
3385 done
3386 if test -z "$ac_aux_dir"; then
3387 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3390 # These three variables are undocumented and unsupported,
3391 # and are intended to be withdrawn in a future Autoconf release.
3392 # They can cause serious problems if a builder's source tree is in a directory
3393 # whose full name contains unusual characters.
3394 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3395 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3396 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3399 # Make sure we can run config.sub.
3400 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3401 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3404 $as_echo_n "checking build system type... " >&6; }
3405 if ${ac_cv_build+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 ac_build_alias=$build_alias
3409 test "x$ac_build_alias" = x &&
3410 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3411 test "x$ac_build_alias" = x &&
3412 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3413 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3418 $as_echo "$ac_cv_build" >&6; }
3419 case $ac_cv_build in
3420 *-*-*) ;;
3421 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3422 esac
3423 build=$ac_cv_build
3424 ac_save_IFS=$IFS; IFS='-'
3425 set x $ac_cv_build
3426 shift
3427 build_cpu=$1
3428 build_vendor=$2
3429 shift; shift
3430 # Remember, the first character of IFS is used to create $*,
3431 # except with old shells:
3432 build_os=$*
3433 IFS=$ac_save_IFS
3434 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3438 $as_echo_n "checking host system type... " >&6; }
3439 if ${ac_cv_host+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test "x$host_alias" = x; then
3443 ac_cv_host=$ac_cv_build
3444 else
3445 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3451 $as_echo "$ac_cv_host" >&6; }
3452 case $ac_cv_host in
3453 *-*-*) ;;
3454 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3455 esac
3456 host=$ac_cv_host
3457 ac_save_IFS=$IFS; IFS='-'
3458 set x $ac_cv_host
3459 shift
3460 host_cpu=$1
3461 host_vendor=$2
3462 shift; shift
3463 # Remember, the first character of IFS is used to create $*,
3464 # except with old shells:
3465 host_os=$*
3466 IFS=$ac_save_IFS
3467 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3471 $as_echo_n "checking target system type... " >&6; }
3472 if ${ac_cv_target+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 if test "x$target_alias" = x; then
3476 ac_cv_target=$ac_cv_host
3477 else
3478 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3484 $as_echo "$ac_cv_target" >&6; }
3485 case $ac_cv_target in
3486 *-*-*) ;;
3487 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3488 esac
3489 target=$ac_cv_target
3490 ac_save_IFS=$IFS; IFS='-'
3491 set x $ac_cv_target
3492 shift
3493 target_cpu=$1
3494 target_vendor=$2
3495 shift; shift
3496 # Remember, the first character of IFS is used to create $*,
3497 # except with old shells:
3498 target_os=$*
3499 IFS=$ac_save_IFS
3500 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3503 # The aliases save the names the user supplied, while $host etc.
3504 # will get canonicalized.
3505 test -n "$target_alias" &&
3506 test "$program_prefix$program_suffix$program_transform_name" = \
3507 NONENONEs,x,x, &&
3508 program_prefix=${target_alias}-
3510 # Determine the noncanonical host name, for Ada.
3511 case ${build_alias} in
3512 "") build_noncanonical=${build} ;;
3513 *) build_noncanonical=${build_alias} ;;
3514 esac
3516 case ${host_alias} in
3517 "") host_noncanonical=${build_noncanonical} ;;
3518 *) host_noncanonical=${host_alias} ;;
3519 esac
3524 # Determine the noncanonical target name, for directory use.
3525 case ${target_alias} in
3526 "") target_noncanonical=${host_noncanonical} ;;
3527 *) target_noncanonical=${target_alias} ;;
3528 esac
3533 # Used for constructing correct paths for offload compilers.
3534 real_target_noncanonical=${target_noncanonical}
3535 accel_dir_suffix=
3537 # Determine the target- and build-specific subdirectories
3539 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3540 # have matching libraries, they should use host libraries: Makefile.tpl
3541 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3542 # However, they still use the build modules, because the corresponding
3543 # host modules (e.g. bison) are only built for the host when bootstrap
3544 # finishes. So:
3545 # - build_subdir is where we find build modules, and never changes.
3546 # - build_libsubdir is where we find build libraries, and can be overridden.
3548 # Prefix 'build-' so this never conflicts with target_subdir.
3549 build_subdir="build-${build_noncanonical}"
3551 # Check whether --with-build-libsubdir was given.
3552 if test "${with_build_libsubdir+set}" = set; then :
3553 withval=$with_build_libsubdir; build_libsubdir="$withval"
3554 else
3555 build_libsubdir="$build_subdir"
3558 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3559 if ( test $srcdir = . && test -d gcc ) \
3560 || test -d $srcdir/../host-${host_noncanonical}; then
3561 host_subdir="host-${host_noncanonical}"
3562 else
3563 host_subdir=.
3565 # No prefix.
3566 target_subdir=${target_noncanonical}
3569 # Set program_transform_name
3570 test "$program_prefix" != NONE &&
3571 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3572 # Use a double $ so make ignores it.
3573 test "$program_suffix" != NONE &&
3574 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3575 # Double any \ or $.
3576 # By default was `s,x,x', remove it if useless.
3577 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3578 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3581 # Check for bogus environment variables.
3582 # Test if LIBRARY_PATH contains the notation for the current directory
3583 # since this would lead to problems installing/building glibc.
3584 # LIBRARY_PATH contains the current directory if one of the following
3585 # is true:
3586 # - one of the terminals (":" and ";") is the first or last sign
3587 # - two terminals occur directly after each other
3588 # - the path contains an element with a dot in it
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3590 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3591 case ${LIBRARY_PATH} in
3592 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3593 library_path_setting="contains current directory"
3596 library_path_setting="ok"
3598 esac
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3600 $as_echo "$library_path_setting" >&6; }
3601 if test "$library_path_setting" != "ok"; then
3602 as_fn_error $? "
3603 *** LIBRARY_PATH shouldn't contain the current directory when
3604 *** building gcc. Please change the environment variable
3605 *** and run configure again." "$LINENO" 5
3608 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3609 # since this would lead to problems installing/building glibc.
3610 # GCC_EXEC_PREFIX contains the current directory if one of the following
3611 # is true:
3612 # - one of the terminals (":" and ";") is the first or last sign
3613 # - two terminals occur directly after each other
3614 # - the path contains an element with a dot in it
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3616 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3617 case ${GCC_EXEC_PREFIX} in
3618 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3619 gcc_exec_prefix_setting="contains current directory"
3622 gcc_exec_prefix_setting="ok"
3624 esac
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3626 $as_echo "$gcc_exec_prefix_setting" >&6; }
3627 if test "$gcc_exec_prefix_setting" != "ok"; then
3628 as_fn_error $? "
3629 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3630 *** building gcc. Please change the environment variable
3631 *** and run configure again." "$LINENO" 5
3634 # -----------
3635 # Directories
3636 # -----------
3638 # Specify the local prefix
3639 local_prefix=
3641 # Check whether --with-local-prefix was given.
3642 if test "${with_local_prefix+set}" = set; then :
3643 withval=$with_local_prefix; case "${withval}" in
3644 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3645 no) ;;
3646 *) local_prefix=$with_local_prefix ;;
3647 esac
3651 # Default local prefix if it is empty
3652 if test x$local_prefix = x; then
3653 local_prefix=/usr/local
3657 # Check whether --with-native-system-header-dir was given.
3658 if test "${with_native_system_header_dir+set}" = set; then :
3659 withval=$with_native_system_header_dir;
3660 case ${with_native_system_header_dir} in
3661 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3662 /* | [A-Za-z]:[\\/]*) ;;
3663 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3664 esac
3665 configured_native_system_header_dir="${withval}"
3667 else
3668 configured_native_system_header_dir=
3673 # Check whether --with-build-sysroot was given.
3674 if test "${with_build_sysroot+set}" = set; then :
3675 withval=$with_build_sysroot; if test x"$withval" != x ; then
3676 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3678 else
3679 SYSROOT_CFLAGS_FOR_TARGET=
3684 if test "x$prefix" = xNONE; then
3685 test_prefix=/usr/local
3686 else
3687 test_prefix=$prefix
3689 if test "x$exec_prefix" = xNONE; then
3690 test_exec_prefix=$test_prefix
3691 else
3692 test_exec_prefix=$exec_prefix
3696 # Check whether --with-sysroot was given.
3697 if test "${with_sysroot+set}" = set; then :
3698 withval=$with_sysroot;
3699 case ${with_sysroot} in
3700 /) ;;
3701 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3702 esac
3703 case ${with_sysroot} in
3704 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3705 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3706 esac
3708 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3709 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3711 case ${TARGET_SYSTEM_ROOT} in
3712 "${test_prefix}"|"${test_prefix}/"*|\
3713 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3714 '${prefix}'|'${prefix}/'*|\
3715 '${exec_prefix}'|'${exec_prefix}/'*)
3716 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3717 TARGET_SYSTEM_ROOT_DEFINE="$t"
3719 esac
3721 else
3723 TARGET_SYSTEM_ROOT=
3724 TARGET_SYSTEM_ROOT_DEFINE=
3725 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3733 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3734 # passed in by the toplevel make and thus we'd get different behavior
3735 # depending on where we built the sources.
3736 gcc_gxx_include_dir=
3737 # Specify the g++ header file directory
3739 # Check whether --with-gxx-include-dir was given.
3740 if test "${with_gxx_include_dir+set}" = set; then :
3741 withval=$with_gxx_include_dir; case "${withval}" in
3742 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3743 no) ;;
3744 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3745 esac
3749 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3750 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3751 # relative to the sysroot.
3752 gcc_gxx_include_dir_add_sysroot=0
3754 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3755 if test x${gcc_gxx_include_dir} = x; then
3756 if test x${enable_version_specific_runtime_libs} = xyes; then
3757 gcc_gxx_include_dir='${libsubdir}/include/c++'
3758 else
3759 libstdcxx_incdir='include/c++/$(version)'
3760 if test x$host != x$target; then
3761 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3763 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3765 elif test "${with_sysroot+set}" = set; then
3766 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3767 if test "${gcc_gxx_without_sysroot}"; then
3768 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3769 gcc_gxx_include_dir_add_sysroot=1
3773 # Configuration for an alternate set of C++ headers.
3774 gcc_gxx_libcxx_include_dir=
3775 # Specify the alternate g++ header file directory
3777 # Check whether --with-gxx-libcxx-include-dir was given.
3778 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3779 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3780 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3781 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3782 esac
3786 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3787 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3788 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3789 # based on the platform (to be available on platform versions where it is the
3790 # default for the system tools). We also use a default path within the compiler
3791 # install tree.
3792 # Otherwise, we use the path provided and enable the stdlib option.
3793 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3794 # check to see if the latter starts with the former and, upon success, compute
3795 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3796 gcc_gxx_libcxx_include_dir_add_sysroot=0
3797 gcc_enable_stdlib_opt=0
3798 if test x${gcc_gxx_libcxx_include_dir} != x; then
3799 if test x${gcc_gxx_libcxx_include_dir} = xno; then
3800 # set defaults for the dir, but the option is disabled anyway.
3801 gcc_gxx_libcxx_include_dir=
3802 else
3803 gcc_enable_stdlib_opt=1
3805 else
3806 case $target in
3807 *-darwin1[1-9]* | *-darwin2*)
3808 # Default this on for Darwin versions which default to libcxx,
3809 # and embed the path in the compiler install so that we get a
3810 # self-contained toolchain.
3811 gcc_enable_stdlib_opt=1
3813 *) ;;
3814 esac
3817 cat >>confdefs.h <<_ACEOF
3818 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3819 _ACEOF
3822 # Sysroot behaviour as for gxx-include-dir
3823 if test x${gcc_gxx_libcxx_include_dir} = x; then
3824 # default path,embedded in the compiler tree.
3825 libcxx_incdir='include/c++/v1'
3826 if test x${enable_version_specific_runtime_libs} = xyes; then
3827 gcc_gxx_libcxx_include_dir='${libsubdir}/$libcxx_incdir'
3828 else
3829 if test x$host != x$target; then
3830 libcxx_incdir="$target_alias/$libcxx_incdir"
3832 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3834 elif test "${with_sysroot+set}" = set; then
3835 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3836 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3837 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3838 gcc_gxx_libcxx_include_dir_add_sysroot=1
3843 # Check whether --with-cpp_install_dir was given.
3844 if test "${with_cpp_install_dir+set}" = set; then :
3845 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3846 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3847 elif test x$withval != xno; then
3848 cpp_install_dir=$withval
3853 # We would like to our source tree to be readonly. However when releases or
3854 # pre-releases are generated, the flex/bison generated files as well as the
3855 # various formats of manuals need to be included along with the rest of the
3856 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3857 # just that.
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3860 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3861 # Check whether --enable-generated-files-in-srcdir was given.
3862 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3863 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3864 else
3865 generated_files_in_srcdir=no
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3870 $as_echo "$generated_files_in_srcdir" >&6; }
3872 if test "$generated_files_in_srcdir" = "yes"; then
3873 GENINSRC=''
3874 else
3875 GENINSRC='#'
3879 # -------------------
3880 # Find default linker
3881 # -------------------
3883 # With GNU ld
3885 # Check whether --with-gnu-ld was given.
3886 if test "${with_gnu_ld+set}" = set; then :
3887 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3888 else
3889 gnu_ld_flag=no
3893 case $target in
3894 *darwin*)
3895 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3896 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3899 ld64_flag=no
3900 dsymutil_flag=no
3902 esac
3904 # With pre-defined ld
3906 # Check whether --with-ld was given.
3907 if test "${with_ld+set}" = set; then :
3908 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3911 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3912 if test ! -x "$DEFAULT_LINKER"; then
3913 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3914 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3915 gnu_ld_flag=yes
3916 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3917 ld64_flag=yes
3920 cat >>confdefs.h <<_ACEOF
3921 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3922 _ACEOF
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3927 $as_echo_n "checking whether a default linker was specified... " >&6; }
3928 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3929 if test x"$gnu_ld_flag" = x"no"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3931 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3932 else
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3934 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3936 else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3941 # With demangler in GNU ld
3943 # Check whether --with-demangler-in-ld was given.
3944 if test "${with_demangler_in_ld+set}" = set; then :
3945 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3946 else
3947 demangler_in_ld=yes
3951 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3953 # Check whether --with-dsymutil was given.
3954 if test "${with_dsymutil+set}" = set; then :
3955 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3959 dsymutil_vers=
3960 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3961 if test ! -x "$DEFAULT_DSYMUTIL"; then
3962 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3963 else
3964 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3965 dsymutil_flag=yes
3969 cat >>confdefs.h <<_ACEOF
3970 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3971 _ACEOF
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3976 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3977 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3979 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3980 else
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3985 # ----------------------
3986 # Find default assembler
3987 # ----------------------
3989 # With GNU as
3991 # Check whether --with-gnu-as was given.
3992 if test "${with_gnu_as+set}" = set; then :
3993 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3994 else
3995 gas_flag=no
4000 # Check whether --with-as was given.
4001 if test "${with_as+set}" = set; then :
4002 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
4005 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4006 if test ! -x "$DEFAULT_ASSEMBLER"; then
4007 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4008 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
4009 gas_flag=yes
4012 cat >>confdefs.h <<_ACEOF
4013 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4014 _ACEOF
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4019 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4020 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4021 if test x"$gas_flag" = x"no"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4023 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4024 else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4026 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4028 else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4033 # ---------------
4034 # Find C compiler
4035 # ---------------
4037 # If a non-executable a.out is present (e.g. created by GNU as above even if
4038 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4039 # file, even when creating an executable, so an execution test fails.
4040 # Remove possible default executable files to avoid this.
4042 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4043 # Autoconf includes it.
4044 rm -f a.out a.exe b.out
4046 # Find the native compiler
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 if test -n "$ac_tool_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4054 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_CC+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 if test -n "$CC"; then
4061 ac_cv_prog_CC="$CC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4074 done
4075 done
4076 IFS=$as_save_IFS
4080 CC=$ac_cv_prog_CC
4081 if test -n "$CC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083 $as_echo "$CC" >&6; }
4084 else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4091 if test -z "$ac_cv_prog_CC"; then
4092 ac_ct_CC=$CC
4093 # Extract the first word of "gcc", so it can be a program name with args.
4094 set dummy gcc; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 if test -n "$ac_ct_CC"; then
4101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110 ac_cv_prog_ac_ct_CC="gcc"
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 break 2
4114 done
4115 done
4116 IFS=$as_save_IFS
4120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4121 if test -n "$ac_ct_CC"; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4123 $as_echo "$ac_ct_CC" >&6; }
4124 else
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4129 if test "x$ac_ct_CC" = x; then
4130 CC=""
4131 else
4132 case $cross_compiling:$ac_tool_warned in
4133 yes:)
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned=yes ;;
4137 esac
4138 CC=$ac_ct_CC
4140 else
4141 CC="$ac_cv_prog_CC"
4144 if test -z "$CC"; then
4145 if test -n "$ac_tool_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147 set dummy ${ac_tool_prefix}cc; ac_word=$2
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149 $as_echo_n "checking for $ac_word... " >&6; }
4150 if ${ac_cv_prog_CC+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 if test -n "$CC"; then
4154 ac_cv_prog_CC="$CC" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_CC="${ac_tool_prefix}cc"
4164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4167 done
4168 done
4169 IFS=$as_save_IFS
4173 CC=$ac_cv_prog_CC
4174 if test -n "$CC"; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176 $as_echo "$CC" >&6; }
4177 else
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4185 if test -z "$CC"; then
4186 # Extract the first word of "cc", so it can be a program name with args.
4187 set dummy cc; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if ${ac_cv_prog_CC+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 if test -n "$CC"; then
4194 ac_cv_prog_CC="$CC" # Let the user override the test.
4195 else
4196 ac_prog_rejected=no
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4205 ac_prog_rejected=yes
4206 continue
4208 ac_cv_prog_CC="cc"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4212 done
4213 done
4214 IFS=$as_save_IFS
4216 if test $ac_prog_rejected = yes; then
4217 # We found a bogon in the path, so make sure we never use it.
4218 set dummy $ac_cv_prog_CC
4219 shift
4220 if test $# != 0; then
4221 # We chose a different compiler from the bogus one.
4222 # However, it has the same basename, so the bogon will be chosen
4223 # first if we set CC to just the basename; use the full file name.
4224 shift
4225 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4230 CC=$ac_cv_prog_CC
4231 if test -n "$CC"; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4233 $as_echo "$CC" >&6; }
4234 else
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4241 if test -z "$CC"; then
4242 if test -n "$ac_tool_prefix"; then
4243 for ac_prog in cl.exe
4245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if ${ac_cv_prog_CC+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 if test -n "$CC"; then
4253 ac_cv_prog_CC="$CC" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4266 done
4267 done
4268 IFS=$as_save_IFS
4272 CC=$ac_cv_prog_CC
4273 if test -n "$CC"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4275 $as_echo "$CC" >&6; }
4276 else
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4282 test -n "$CC" && break
4283 done
4285 if test -z "$CC"; then
4286 ac_ct_CC=$CC
4287 for ac_prog in cl.exe
4289 # Extract the first word of "$ac_prog", so it can be a program name with args.
4290 set dummy $ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if test -n "$ac_ct_CC"; then
4297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306 ac_cv_prog_ac_ct_CC="$ac_prog"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4310 done
4311 done
4312 IFS=$as_save_IFS
4316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4317 if test -n "$ac_ct_CC"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4319 $as_echo "$ac_ct_CC" >&6; }
4320 else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4326 test -n "$ac_ct_CC" && break
4327 done
4329 if test "x$ac_ct_CC" = x; then
4330 CC=""
4331 else
4332 case $cross_compiling:$ac_tool_warned in
4333 yes:)
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4336 ac_tool_warned=yes ;;
4337 esac
4338 CC=$ac_ct_CC
4345 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error $? "no acceptable C compiler found in \$PATH
4348 See \`config.log' for more details" "$LINENO" 5; }
4350 # Provide some information about the compiler.
4351 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4352 set X $ac_compile
4353 ac_compiler=$2
4354 for ac_option in --version -v -V -qversion; do
4355 { { ac_try="$ac_compiler $ac_option >&5"
4356 case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 $as_echo "$ac_try_echo"; } >&5
4362 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4363 ac_status=$?
4364 if test -s conftest.err; then
4365 sed '10a\
4366 ... rest of stderr output deleted ...
4367 10q' conftest.err >conftest.er1
4368 cat conftest.er1 >&5
4370 rm -f conftest.er1 conftest.err
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }
4373 done
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4379 main ()
4383 return 0;
4385 _ACEOF
4386 ac_clean_files_save=$ac_clean_files
4387 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4388 # Try to create an executable without -o first, disregard a.out.
4389 # It will help us diagnose broken compilers, and finding out an intuition
4390 # of exeext.
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4392 $as_echo_n "checking whether the C compiler works... " >&6; }
4393 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4395 # The possible output files:
4396 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4398 ac_rmfiles=
4399 for ac_file in $ac_files
4401 case $ac_file in
4402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4403 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4404 esac
4405 done
4406 rm -f $ac_rmfiles
4408 if { { ac_try="$ac_link_default"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_link_default") 2>&5
4416 ac_status=$?
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }; then :
4419 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4420 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4421 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4422 # so that the user can short-circuit this test for compilers unknown to
4423 # Autoconf.
4424 for ac_file in $ac_files ''
4426 test -f "$ac_file" || continue
4427 case $ac_file in
4428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4430 [ab].out )
4431 # We found the default executable, but exeext='' is most
4432 # certainly right.
4433 break;;
4434 *.* )
4435 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4436 then :; else
4437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4439 # We set ac_cv_exeext here because the later test for it is not
4440 # safe: cross compilers may not add the suffix if given an `-o'
4441 # argument, so we may need to know it at that point already.
4442 # Even if this section looks crufty: it has the advantage of
4443 # actually working.
4444 break;;
4446 break;;
4447 esac
4448 done
4449 test "$ac_cv_exeext" = no && ac_cv_exeext=
4451 else
4452 ac_file=''
4454 if test -z "$ac_file"; then :
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 $as_echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4462 as_fn_error 77 "C compiler cannot create executables
4463 See \`config.log' for more details" "$LINENO" 5; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4466 $as_echo "yes" >&6; }
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4469 $as_echo_n "checking for C compiler default output file name... " >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4471 $as_echo "$ac_file" >&6; }
4472 ac_exeext=$ac_cv_exeext
4474 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4475 ac_clean_files=$ac_clean_files_save
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4477 $as_echo_n "checking for suffix of executables... " >&6; }
4478 if { { ac_try="$ac_link"
4479 case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482 esac
4483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 $as_echo "$ac_try_echo"; } >&5
4485 (eval "$ac_link") 2>&5
4486 ac_status=$?
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }; then :
4489 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4490 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4491 # work properly (i.e., refer to `conftest.exe'), while it won't with
4492 # `rm'.
4493 for ac_file in conftest.exe conftest conftest.*; do
4494 test -f "$ac_file" || continue
4495 case $ac_file in
4496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4497 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4498 break;;
4499 * ) break;;
4500 esac
4501 done
4502 else
4503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4505 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4506 See \`config.log' for more details" "$LINENO" 5; }
4508 rm -f conftest conftest$ac_cv_exeext
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4510 $as_echo "$ac_cv_exeext" >&6; }
4512 rm -f conftest.$ac_ext
4513 EXEEXT=$ac_cv_exeext
4514 ac_exeext=$EXEEXT
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517 #include <stdio.h>
4519 main ()
4521 FILE *f = fopen ("conftest.out", "w");
4522 return ferror (f) || fclose (f) != 0;
4525 return 0;
4527 _ACEOF
4528 ac_clean_files="$ac_clean_files conftest.out"
4529 # Check that the compiler produces executables we can run. If not, either
4530 # the compiler is broken, or we cross compile.
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4532 $as_echo_n "checking whether we are cross compiling... " >&6; }
4533 if test "$cross_compiling" != yes; then
4534 { { ac_try="$ac_link"
4535 case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538 esac
4539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4540 $as_echo "$ac_try_echo"; } >&5
4541 (eval "$ac_link") 2>&5
4542 ac_status=$?
4543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }
4545 if { ac_try='./conftest$ac_cv_exeext'
4546 { { case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4551 $as_echo "$ac_try_echo"; } >&5
4552 (eval "$ac_try") 2>&5
4553 ac_status=$?
4554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555 test $ac_status = 0; }; }; then
4556 cross_compiling=no
4557 else
4558 if test "$cross_compiling" = maybe; then
4559 cross_compiling=yes
4560 else
4561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4563 as_fn_error $? "cannot run C compiled programs.
4564 If you meant to cross compile, use \`--host'.
4565 See \`config.log' for more details" "$LINENO" 5; }
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4570 $as_echo "$cross_compiling" >&6; }
4572 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4573 ac_clean_files=$ac_clean_files_save
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4575 $as_echo_n "checking for suffix of object files... " >&6; }
4576 if ${ac_cv_objext+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4583 main ()
4587 return 0;
4589 _ACEOF
4590 rm -f conftest.o conftest.obj
4591 if { { ac_try="$ac_compile"
4592 case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4595 esac
4596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4597 $as_echo "$ac_try_echo"; } >&5
4598 (eval "$ac_compile") 2>&5
4599 ac_status=$?
4600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4601 test $ac_status = 0; }; then :
4602 for ac_file in conftest.o conftest.obj conftest.*; do
4603 test -f "$ac_file" || continue;
4604 case $ac_file in
4605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4606 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4607 break;;
4608 esac
4609 done
4610 else
4611 $as_echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4616 as_fn_error $? "cannot compute suffix of object files: cannot compile
4617 See \`config.log' for more details" "$LINENO" 5; }
4619 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4622 $as_echo "$ac_cv_objext" >&6; }
4623 OBJEXT=$ac_cv_objext
4624 ac_objext=$OBJEXT
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4626 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4627 if ${ac_cv_c_compiler_gnu+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4634 main ()
4636 #ifndef __GNUC__
4637 choke me
4638 #endif
4641 return 0;
4643 _ACEOF
4644 if ac_fn_c_try_compile "$LINENO"; then :
4645 ac_compiler_gnu=yes
4646 else
4647 ac_compiler_gnu=no
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4654 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4655 if test $ac_compiler_gnu = yes; then
4656 GCC=yes
4657 else
4658 GCC=
4660 ac_test_CFLAGS=${CFLAGS+set}
4661 ac_save_CFLAGS=$CFLAGS
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4663 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4664 if ${ac_cv_prog_cc_g+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 ac_save_c_werror_flag=$ac_c_werror_flag
4668 ac_c_werror_flag=yes
4669 ac_cv_prog_cc_g=no
4670 CFLAGS="-g"
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4675 main ()
4679 return 0;
4681 _ACEOF
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683 ac_cv_prog_cc_g=yes
4684 else
4685 CFLAGS=""
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4690 main ()
4694 return 0;
4696 _ACEOF
4697 if ac_fn_c_try_compile "$LINENO"; then :
4699 else
4700 ac_c_werror_flag=$ac_save_c_werror_flag
4701 CFLAGS="-g"
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4706 main ()
4710 return 0;
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714 ac_cv_prog_cc_g=yes
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 ac_c_werror_flag=$ac_save_c_werror_flag
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4724 $as_echo "$ac_cv_prog_cc_g" >&6; }
4725 if test "$ac_test_CFLAGS" = set; then
4726 CFLAGS=$ac_save_CFLAGS
4727 elif test $ac_cv_prog_cc_g = yes; then
4728 if test "$GCC" = yes; then
4729 CFLAGS="-g -O2"
4730 else
4731 CFLAGS="-g"
4733 else
4734 if test "$GCC" = yes; then
4735 CFLAGS="-O2"
4736 else
4737 CFLAGS=
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4741 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4742 if ${ac_cv_prog_cc_c89+:} false; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 ac_cv_prog_cc_c89=no
4746 ac_save_CC=$CC
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4749 #include <stdarg.h>
4750 #include <stdio.h>
4751 struct stat;
4752 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4753 struct buf { int x; };
4754 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4755 static char *e (p, i)
4756 char **p;
4757 int i;
4759 return p[i];
4761 static char *f (char * (*g) (char **, int), char **p, ...)
4763 char *s;
4764 va_list v;
4765 va_start (v,p);
4766 s = g (p, va_arg (v,int));
4767 va_end (v);
4768 return s;
4771 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4772 function prototypes and stuff, but not '\xHH' hex character constants.
4773 These don't provoke an error unfortunately, instead are silently treated
4774 as 'x'. The following induces an error, until -std is added to get
4775 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4776 array size at least. It's necessary to write '\x00'==0 to get something
4777 that's true only with -std. */
4778 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4780 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4781 inside strings and character constants. */
4782 #define FOO(x) 'x'
4783 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4785 int test (int i, double x);
4786 struct s1 {int (*f) (int a);};
4787 struct s2 {int (*f) (double a);};
4788 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4789 int argc;
4790 char **argv;
4792 main ()
4794 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4796 return 0;
4798 _ACEOF
4799 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4800 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4802 CC="$ac_save_CC $ac_arg"
4803 if ac_fn_c_try_compile "$LINENO"; then :
4804 ac_cv_prog_cc_c89=$ac_arg
4806 rm -f core conftest.err conftest.$ac_objext
4807 test "x$ac_cv_prog_cc_c89" != "xno" && break
4808 done
4809 rm -f conftest.$ac_ext
4810 CC=$ac_save_CC
4813 # AC_CACHE_VAL
4814 case "x$ac_cv_prog_cc_c89" in
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4817 $as_echo "none needed" >&6; } ;;
4818 xno)
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4820 $as_echo "unsupported" >&6; } ;;
4822 CC="$CC $ac_cv_prog_cc_c89"
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4824 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4825 esac
4826 if test "x$ac_cv_prog_cc_c89" != xno; then :
4830 ac_ext=c
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836 ac_ext=cpp
4837 ac_cpp='$CXXCPP $CPPFLAGS'
4838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4841 if test -z "$CXX"; then
4842 if test -n "$CCC"; then
4843 CXX=$CCC
4844 else
4845 if test -n "$ac_tool_prefix"; then
4846 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_prog_CXX+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -n "$CXX"; then
4856 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4869 done
4870 done
4871 IFS=$as_save_IFS
4875 CXX=$ac_cv_prog_CXX
4876 if test -n "$CXX"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4878 $as_echo "$CXX" >&6; }
4879 else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4885 test -n "$CXX" && break
4886 done
4888 if test -z "$CXX"; then
4889 ac_ct_CXX=$CXX
4890 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4892 # Extract the first word of "$ac_prog", so it can be a program name with args.
4893 set dummy $ac_prog; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$ac_ct_CXX"; then
4900 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_ac_ct_CXX="$ac_prog"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4915 IFS=$as_save_IFS
4919 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4920 if test -n "$ac_ct_CXX"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4922 $as_echo "$ac_ct_CXX" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4929 test -n "$ac_ct_CXX" && break
4930 done
4932 if test "x$ac_ct_CXX" = x; then
4933 CXX="g++"
4934 else
4935 case $cross_compiling:$ac_tool_warned in
4936 yes:)
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4939 ac_tool_warned=yes ;;
4940 esac
4941 CXX=$ac_ct_CXX
4947 # Provide some information about the compiler.
4948 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4949 set X $ac_compile
4950 ac_compiler=$2
4951 for ac_option in --version -v -V -qversion; do
4952 { { ac_try="$ac_compiler $ac_option >&5"
4953 case "(($ac_try" in
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4956 esac
4957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4958 $as_echo "$ac_try_echo"; } >&5
4959 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4960 ac_status=$?
4961 if test -s conftest.err; then
4962 sed '10a\
4963 ... rest of stderr output deleted ...
4964 10q' conftest.err >conftest.er1
4965 cat conftest.er1 >&5
4967 rm -f conftest.er1 conftest.err
4968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4969 test $ac_status = 0; }
4970 done
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4973 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4974 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4981 main ()
4983 #ifndef __GNUC__
4984 choke me
4985 #endif
4988 return 0;
4990 _ACEOF
4991 if ac_fn_cxx_try_compile "$LINENO"; then :
4992 ac_compiler_gnu=yes
4993 else
4994 ac_compiler_gnu=no
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5001 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5002 if test $ac_compiler_gnu = yes; then
5003 GXX=yes
5004 else
5005 GXX=
5007 ac_test_CXXFLAGS=${CXXFLAGS+set}
5008 ac_save_CXXFLAGS=$CXXFLAGS
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5010 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5011 if ${ac_cv_prog_cxx_g+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5015 ac_cxx_werror_flag=yes
5016 ac_cv_prog_cxx_g=no
5017 CXXFLAGS="-g"
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5022 main ()
5026 return 0;
5028 _ACEOF
5029 if ac_fn_cxx_try_compile "$LINENO"; then :
5030 ac_cv_prog_cxx_g=yes
5031 else
5032 CXXFLAGS=""
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5037 main ()
5041 return 0;
5043 _ACEOF
5044 if ac_fn_cxx_try_compile "$LINENO"; then :
5046 else
5047 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5048 CXXFLAGS="-g"
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5053 main ()
5057 return 0;
5059 _ACEOF
5060 if ac_fn_cxx_try_compile "$LINENO"; then :
5061 ac_cv_prog_cxx_g=yes
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5071 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5072 if test "$ac_test_CXXFLAGS" = set; then
5073 CXXFLAGS=$ac_save_CXXFLAGS
5074 elif test $ac_cv_prog_cxx_g = yes; then
5075 if test "$GXX" = yes; then
5076 CXXFLAGS="-g -O2"
5077 else
5078 CXXFLAGS="-g"
5080 else
5081 if test "$GXX" = yes; then
5082 CXXFLAGS="-O2"
5083 else
5084 CXXFLAGS=
5087 ac_ext=c
5088 ac_cpp='$CPP $CPPFLAGS'
5089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5096 if test -n "$ac_tool_prefix"; then
5097 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5098 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_prog_GNATBIND+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 if test -n "$GNATBIND"; then
5105 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5106 else
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5118 done
5119 done
5120 IFS=$as_save_IFS
5124 GNATBIND=$ac_cv_prog_GNATBIND
5125 if test -n "$GNATBIND"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5127 $as_echo "$GNATBIND" >&6; }
5128 else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5135 if test -z "$ac_cv_prog_GNATBIND"; then
5136 ac_ct_GNATBIND=$GNATBIND
5137 # Extract the first word of "gnatbind", so it can be a program name with args.
5138 set dummy gnatbind; ac_word=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5142 $as_echo_n "(cached) " >&6
5143 else
5144 if test -n "$ac_ct_GNATBIND"; then
5145 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5158 done
5159 done
5160 IFS=$as_save_IFS
5164 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5165 if test -n "$ac_ct_GNATBIND"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5167 $as_echo "$ac_ct_GNATBIND" >&6; }
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5173 if test "x$ac_ct_GNATBIND" = x; then
5174 GNATBIND="no"
5175 else
5176 case $cross_compiling:$ac_tool_warned in
5177 yes:)
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned=yes ;;
5181 esac
5182 GNATBIND=$ac_ct_GNATBIND
5184 else
5185 GNATBIND="$ac_cv_prog_GNATBIND"
5188 if test -n "$ac_tool_prefix"; then
5189 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5190 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_prog_GNATMAKE+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test -n "$GNATMAKE"; then
5197 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5216 GNATMAKE=$ac_cv_prog_GNATMAKE
5217 if test -n "$GNATMAKE"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5219 $as_echo "$GNATMAKE" >&6; }
5220 else
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5227 if test -z "$ac_cv_prog_GNATMAKE"; then
5228 ac_ct_GNATMAKE=$GNATMAKE
5229 # Extract the first word of "gnatmake", so it can be a program name with args.
5230 set dummy gnatmake; ac_word=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if test -n "$ac_ct_GNATMAKE"; then
5237 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5252 IFS=$as_save_IFS
5256 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5257 if test -n "$ac_ct_GNATMAKE"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5259 $as_echo "$ac_ct_GNATMAKE" >&6; }
5260 else
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5265 if test "x$ac_ct_GNATMAKE" = x; then
5266 GNATMAKE="no"
5267 else
5268 case $cross_compiling:$ac_tool_warned in
5269 yes:)
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272 ac_tool_warned=yes ;;
5273 esac
5274 GNATMAKE=$ac_ct_GNATMAKE
5276 else
5277 GNATMAKE="$ac_cv_prog_GNATMAKE"
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5281 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5282 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 cat >conftest.adb <<EOF
5286 pragma Warnings (Off);
5287 with System.CRTL;
5288 pragma Warnings (On);
5289 use type System.CRTL.int64;
5290 procedure conftest is begin null; end conftest;
5292 acx_cv_cc_gcc_supports_ada=no
5293 # There is a bug in old released versions of GCC which causes the
5294 # driver to exit successfully when the appropriate language module
5295 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5296 # Therefore we must check for the error message as well as an
5297 # unsuccessful exit.
5298 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5299 # given a .adb file, but produce no object file. So we must check
5300 # if an object file was really produced to guard against this.
5301 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5302 if test x"$errors" = x && test -f conftest.$ac_objext; then
5303 acx_cv_cc_gcc_supports_ada=yes
5305 rm -f conftest.*
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5308 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5310 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5311 have_gnat=yes
5312 else
5313 have_gnat=no
5318 if test -n "$ac_tool_prefix"; then
5319 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5320 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if ${ac_cv_prog_GDC+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 if test -n "$GDC"; then
5327 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5340 done
5341 done
5342 IFS=$as_save_IFS
5346 GDC=$ac_cv_prog_GDC
5347 if test -n "$GDC"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5349 $as_echo "$GDC" >&6; }
5350 else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5357 if test -z "$ac_cv_prog_GDC"; then
5358 ac_ct_GDC=$GDC
5359 # Extract the first word of "gdc", so it can be a program name with args.
5360 set dummy gdc; ac_word=$2
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 if test -n "$ac_ct_GDC"; then
5367 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5368 else
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_prog_ac_ct_GDC="gdc"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5380 done
5381 done
5382 IFS=$as_save_IFS
5386 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5387 if test -n "$ac_ct_GDC"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5389 $as_echo "$ac_ct_GDC" >&6; }
5390 else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5395 if test "x$ac_ct_GDC" = x; then
5396 GDC="no"
5397 else
5398 case $cross_compiling:$ac_tool_warned in
5399 yes:)
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5402 ac_tool_warned=yes ;;
5403 esac
5404 GDC=$ac_ct_GDC
5406 else
5407 GDC="$ac_cv_prog_GDC"
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5411 $as_echo_n "checking whether the D compiler works... " >&6; }
5412 if ${acx_cv_d_compiler_works+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 cat >conftest.d <<EOF
5416 module conftest; int main() { return 0; }
5418 acx_cv_d_compiler_works=no
5419 if test "x$GDC" != xno; then
5420 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5421 if test x"$errors" = x && test -f conftest.$ac_objext; then
5422 acx_cv_d_compiler_works=yes
5424 rm -f conftest.*
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5428 $as_echo "$acx_cv_d_compiler_works" >&6; }
5429 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5430 have_gdc=yes
5431 else
5432 have_gdc=no
5436 # Do configure tests with the C++ compiler, since that's what we build with.
5437 ac_ext=cpp
5438 ac_cpp='$CXXCPP $CPPFLAGS'
5439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5444 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5445 # optimizations to be activated explicitly by the toplevel.
5446 case "$CC" in
5447 */prev-gcc/xgcc*) ;;
5448 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5449 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5450 esac
5455 # Determine PICFLAG for target gnatlib.
5460 case "${target}" in
5461 # PIC is the default on some targets or must not be used.
5462 *-*-darwin*)
5463 # For darwin, common symbols are not allowed in MH_DYLIB files
5464 case "${CFLAGS}" in
5465 # If we are using a compiler supporting mdynamic-no-pic
5466 # and the option has been tested as safe to add, then cancel
5467 # it here, since the code generated is incompatible with shared
5468 # libs.
5469 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5470 *) PICFLAG_FOR_TARGET=-fno-common ;;
5471 esac
5473 alpha*-dec-osf5*)
5474 # PIC is the default.
5476 hppa*64*-*-hpux*)
5477 # PIC is the default for 64-bit PA HP-UX.
5479 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5481 i[34567]86-*-mingw* | x86_64-*-mingw*)
5483 i[34567]86-*-interix[3-9]*)
5484 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5485 # Instead, we relocate shared libraries at runtime.
5487 i[34567]86-*-nto-qnx*)
5488 # QNX uses GNU C++, but need to define -shared option too, otherwise
5489 # it will coredump.
5490 PICFLAG_FOR_TARGET='-fPIC -shared'
5492 i[34567]86-pc-msdosdjgpp*)
5493 # DJGPP does not support shared libraries at all.
5495 ia64*-*-hpux*)
5496 # On IA64 HP-UX, PIC is the default but the pic flag
5497 # sets the default TLS model and affects inlining.
5498 PICFLAG_FOR_TARGET=-fPIC
5500 loongarch*-*-*)
5501 PICFLAG_FOR_TARGET=-fpic
5503 mips-sgi-irix6*)
5504 # PIC is the default.
5506 rs6000-ibm-aix* | powerpc-ibm-aix*)
5507 # All AIX code is PIC.
5510 # Some targets support both -fPIC and -fpic, but prefer the latter.
5511 # FIXME: Why?
5512 i[34567]86-*-* | x86_64-*-*)
5513 PICFLAG_FOR_TARGET=-fpic
5515 # FIXME: Override -fPIC default in libgcc only?
5516 sh-*-linux* | sh[2346lbe]*-*-linux*)
5517 PICFLAG_FOR_TARGET=-fpic
5519 sh*-*-netbsd*)
5520 PICFLAG_FOR_TARGET=-fpic
5522 # Default to -fPIC unless specified otherwise.
5524 PICFLAG_FOR_TARGET=-fPIC
5526 esac
5528 # If the user explicitly uses -fpic/-fPIC, keep that.
5529 case "${CFLAGS_FOR_TARGET}" in
5530 *-fpic*)
5531 PICFLAG_FOR_TARGET=-fpic
5533 *-fPIC*)
5534 PICFLAG_FOR_TARGET=-fPIC
5536 esac
5540 # -------------------------
5541 # Check C compiler features
5542 # -------------------------
5545 ac_ext=cpp
5546 ac_cpp='$CXXCPP $CPPFLAGS'
5547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5551 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5552 if test -z "$CXXCPP"; then
5553 if ${ac_cv_prog_CXXCPP+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 # Double quotes because CXXCPP needs to be expanded
5557 for CXXCPP in "$CXX -E" "/lib/cpp"
5559 ac_preproc_ok=false
5560 for ac_cxx_preproc_warn_flag in '' yes
5562 # Use a header file that comes with gcc, so configuring glibc
5563 # with a fresh cross-compiler works.
5564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565 # <limits.h> exists even on freestanding compilers.
5566 # On the NeXT, cc -E runs the code through the compiler's parser,
5567 # not just through cpp. "Syntax error" is here to catch this case.
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 #ifdef __STDC__
5571 # include <limits.h>
5572 #else
5573 # include <assert.h>
5574 #endif
5575 Syntax error
5576 _ACEOF
5577 if ac_fn_cxx_try_cpp "$LINENO"; then :
5579 else
5580 # Broken: fails on valid input.
5581 continue
5583 rm -f conftest.err conftest.i conftest.$ac_ext
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <ac_nonexistent.h>
5590 _ACEOF
5591 if ac_fn_cxx_try_cpp "$LINENO"; then :
5592 # Broken: success on invalid input.
5593 continue
5594 else
5595 # Passes both tests.
5596 ac_preproc_ok=:
5597 break
5599 rm -f conftest.err conftest.i conftest.$ac_ext
5601 done
5602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5603 rm -f conftest.i conftest.err conftest.$ac_ext
5604 if $ac_preproc_ok; then :
5605 break
5608 done
5609 ac_cv_prog_CXXCPP=$CXXCPP
5612 CXXCPP=$ac_cv_prog_CXXCPP
5613 else
5614 ac_cv_prog_CXXCPP=$CXXCPP
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5617 $as_echo "$CXXCPP" >&6; }
5618 ac_preproc_ok=false
5619 for ac_cxx_preproc_warn_flag in '' yes
5621 # Use a header file that comes with gcc, so configuring glibc
5622 # with a fresh cross-compiler works.
5623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5624 # <limits.h> exists even on freestanding compilers.
5625 # On the NeXT, cc -E runs the code through the compiler's parser,
5626 # not just through cpp. "Syntax error" is here to catch this case.
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #ifdef __STDC__
5630 # include <limits.h>
5631 #else
5632 # include <assert.h>
5633 #endif
5634 Syntax error
5635 _ACEOF
5636 if ac_fn_cxx_try_cpp "$LINENO"; then :
5638 else
5639 # Broken: fails on valid input.
5640 continue
5642 rm -f conftest.err conftest.i conftest.$ac_ext
5644 # OK, works on sane cases. Now check whether nonexistent headers
5645 # can be detected and how.
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #include <ac_nonexistent.h>
5649 _ACEOF
5650 if ac_fn_cxx_try_cpp "$LINENO"; then :
5651 # Broken: success on invalid input.
5652 continue
5653 else
5654 # Passes both tests.
5655 ac_preproc_ok=:
5656 break
5658 rm -f conftest.err conftest.i conftest.$ac_ext
5660 done
5661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5662 rm -f conftest.i conftest.err conftest.$ac_ext
5663 if $ac_preproc_ok; then :
5665 else
5666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5668 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5669 See \`config.log' for more details" "$LINENO" 5; }
5672 ac_ext=cpp
5673 ac_cpp='$CXXCPP $CPPFLAGS'
5674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5680 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5681 if ${ac_cv_path_GREP+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test -z "$GREP"; then
5685 ac_path_GREP_found=false
5686 # Loop through the user's path and test for each of PROGNAME-LIST
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_prog in grep ggrep; do
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5695 as_fn_executable_p "$ac_path_GREP" || continue
5696 # Check for GNU ac_path_GREP and select it if it is found.
5697 # Check for GNU $ac_path_GREP
5698 case `"$ac_path_GREP" --version 2>&1` in
5699 *GNU*)
5700 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5702 ac_count=0
5703 $as_echo_n 0123456789 >"conftest.in"
5704 while :
5706 cat "conftest.in" "conftest.in" >"conftest.tmp"
5707 mv "conftest.tmp" "conftest.in"
5708 cp "conftest.in" "conftest.nl"
5709 $as_echo 'GREP' >> "conftest.nl"
5710 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5712 as_fn_arith $ac_count + 1 && ac_count=$as_val
5713 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5714 # Best one so far, save it but keep looking for a better one
5715 ac_cv_path_GREP="$ac_path_GREP"
5716 ac_path_GREP_max=$ac_count
5718 # 10*(2^10) chars as input seems more than enough
5719 test $ac_count -gt 10 && break
5720 done
5721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5722 esac
5724 $ac_path_GREP_found && break 3
5725 done
5726 done
5727 done
5728 IFS=$as_save_IFS
5729 if test -z "$ac_cv_path_GREP"; then
5730 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5732 else
5733 ac_cv_path_GREP=$GREP
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5738 $as_echo "$ac_cv_path_GREP" >&6; }
5739 GREP="$ac_cv_path_GREP"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5743 $as_echo_n "checking for egrep... " >&6; }
5744 if ${ac_cv_path_EGREP+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5748 then ac_cv_path_EGREP="$GREP -E"
5749 else
5750 if test -z "$EGREP"; then
5751 ac_path_EGREP_found=false
5752 # Loop through the user's path and test for each of PROGNAME-LIST
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_prog in egrep; do
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5761 as_fn_executable_p "$ac_path_EGREP" || continue
5762 # Check for GNU ac_path_EGREP and select it if it is found.
5763 # Check for GNU $ac_path_EGREP
5764 case `"$ac_path_EGREP" --version 2>&1` in
5765 *GNU*)
5766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5768 ac_count=0
5769 $as_echo_n 0123456789 >"conftest.in"
5770 while :
5772 cat "conftest.in" "conftest.in" >"conftest.tmp"
5773 mv "conftest.tmp" "conftest.in"
5774 cp "conftest.in" "conftest.nl"
5775 $as_echo 'EGREP' >> "conftest.nl"
5776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5778 as_fn_arith $ac_count + 1 && ac_count=$as_val
5779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5780 # Best one so far, save it but keep looking for a better one
5781 ac_cv_path_EGREP="$ac_path_EGREP"
5782 ac_path_EGREP_max=$ac_count
5784 # 10*(2^10) chars as input seems more than enough
5785 test $ac_count -gt 10 && break
5786 done
5787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5788 esac
5790 $ac_path_EGREP_found && break 3
5791 done
5792 done
5793 done
5794 IFS=$as_save_IFS
5795 if test -z "$ac_cv_path_EGREP"; then
5796 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5798 else
5799 ac_cv_path_EGREP=$EGREP
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5805 $as_echo "$ac_cv_path_EGREP" >&6; }
5806 EGREP="$ac_cv_path_EGREP"
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5810 $as_echo_n "checking for ANSI C header files... " >&6; }
5811 if ${ac_cv_header_stdc+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 #include <stdlib.h>
5817 #include <stdarg.h>
5818 #include <string.h>
5819 #include <float.h>
5822 main ()
5826 return 0;
5828 _ACEOF
5829 if ac_fn_cxx_try_compile "$LINENO"; then :
5830 ac_cv_header_stdc=yes
5831 else
5832 ac_cv_header_stdc=no
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 if test $ac_cv_header_stdc = yes; then
5837 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840 #include <string.h>
5842 _ACEOF
5843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5844 $EGREP "memchr" >/dev/null 2>&1; then :
5846 else
5847 ac_cv_header_stdc=no
5849 rm -f conftest*
5853 if test $ac_cv_header_stdc = yes; then
5854 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5857 #include <stdlib.h>
5859 _ACEOF
5860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5861 $EGREP "free" >/dev/null 2>&1; then :
5863 else
5864 ac_cv_header_stdc=no
5866 rm -f conftest*
5870 if test $ac_cv_header_stdc = yes; then
5871 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5872 if test "$cross_compiling" = yes; then :
5874 else
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877 #include <ctype.h>
5878 #include <stdlib.h>
5879 #if ((' ' & 0x0FF) == 0x020)
5880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5882 #else
5883 # define ISLOWER(c) \
5884 (('a' <= (c) && (c) <= 'i') \
5885 || ('j' <= (c) && (c) <= 'r') \
5886 || ('s' <= (c) && (c) <= 'z'))
5887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5888 #endif
5890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5892 main ()
5894 int i;
5895 for (i = 0; i < 256; i++)
5896 if (XOR (islower (i), ISLOWER (i))
5897 || toupper (i) != TOUPPER (i))
5898 return 2;
5899 return 0;
5901 _ACEOF
5902 if ac_fn_cxx_try_run "$LINENO"; then :
5904 else
5905 ac_cv_header_stdc=no
5907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5908 conftest.$ac_objext conftest.beam conftest.$ac_ext
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5914 $as_echo "$ac_cv_header_stdc" >&6; }
5915 if test $ac_cv_header_stdc = yes; then
5917 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5921 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5922 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5923 inttypes.h stdint.h unistd.h
5924 do :
5925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5926 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5928 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5929 cat >>confdefs.h <<_ACEOF
5930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5931 _ACEOF
5935 done
5939 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5940 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5941 MINIX=yes
5942 else
5943 MINIX=
5947 if test "$MINIX" = yes; then
5949 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5952 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5955 $as_echo "#define _MINIX 1" >>confdefs.h
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5961 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5962 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5968 # define __EXTENSIONS__ 1
5969 $ac_includes_default
5971 main ()
5975 return 0;
5977 _ACEOF
5978 if ac_fn_cxx_try_compile "$LINENO"; then :
5979 ac_cv_safe_to_define___extensions__=yes
5980 else
5981 ac_cv_safe_to_define___extensions__=no
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5986 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5987 test $ac_cv_safe_to_define___extensions__ = yes &&
5988 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5990 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5992 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5994 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5996 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6000 ac_ext=c
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6006 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6007 # On Suns, sometimes $CPP names a directory.
6008 if test -n "$CPP" && test -d "$CPP"; then
6009 CPP=
6011 if test -z "$CPP"; then
6012 if ${ac_cv_prog_CPP+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 # Double quotes because CPP needs to be expanded
6016 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6018 ac_preproc_ok=false
6019 for ac_c_preproc_warn_flag in '' yes
6021 # Use a header file that comes with gcc, so configuring glibc
6022 # with a fresh cross-compiler works.
6023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6024 # <limits.h> exists even on freestanding compilers.
6025 # On the NeXT, cc -E runs the code through the compiler's parser,
6026 # not just through cpp. "Syntax error" is here to catch this case.
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 #ifdef __STDC__
6030 # include <limits.h>
6031 #else
6032 # include <assert.h>
6033 #endif
6034 Syntax error
6035 _ACEOF
6036 if ac_fn_c_try_cpp "$LINENO"; then :
6038 else
6039 # Broken: fails on valid input.
6040 continue
6042 rm -f conftest.err conftest.i conftest.$ac_ext
6044 # OK, works on sane cases. Now check whether nonexistent headers
6045 # can be detected and how.
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048 #include <ac_nonexistent.h>
6049 _ACEOF
6050 if ac_fn_c_try_cpp "$LINENO"; then :
6051 # Broken: success on invalid input.
6052 continue
6053 else
6054 # Passes both tests.
6055 ac_preproc_ok=:
6056 break
6058 rm -f conftest.err conftest.i conftest.$ac_ext
6060 done
6061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6062 rm -f conftest.i conftest.err conftest.$ac_ext
6063 if $ac_preproc_ok; then :
6064 break
6067 done
6068 ac_cv_prog_CPP=$CPP
6071 CPP=$ac_cv_prog_CPP
6072 else
6073 ac_cv_prog_CPP=$CPP
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6076 $as_echo "$CPP" >&6; }
6077 ac_preproc_ok=false
6078 for ac_c_preproc_warn_flag in '' yes
6080 # Use a header file that comes with gcc, so configuring glibc
6081 # with a fresh cross-compiler works.
6082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6083 # <limits.h> exists even on freestanding compilers.
6084 # On the NeXT, cc -E runs the code through the compiler's parser,
6085 # not just through cpp. "Syntax error" is here to catch this case.
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 #ifdef __STDC__
6089 # include <limits.h>
6090 #else
6091 # include <assert.h>
6092 #endif
6093 Syntax error
6094 _ACEOF
6095 if ac_fn_c_try_cpp "$LINENO"; then :
6097 else
6098 # Broken: fails on valid input.
6099 continue
6101 rm -f conftest.err conftest.i conftest.$ac_ext
6103 # OK, works on sane cases. Now check whether nonexistent headers
6104 # can be detected and how.
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107 #include <ac_nonexistent.h>
6108 _ACEOF
6109 if ac_fn_c_try_cpp "$LINENO"; then :
6110 # Broken: success on invalid input.
6111 continue
6112 else
6113 # Passes both tests.
6114 ac_preproc_ok=:
6115 break
6117 rm -f conftest.err conftest.i conftest.$ac_ext
6119 done
6120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6121 rm -f conftest.i conftest.err conftest.$ac_ext
6122 if $ac_preproc_ok; then :
6124 else
6125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6127 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6128 See \`config.log' for more details" "$LINENO" 5; }
6131 ac_ext=cpp
6132 ac_cpp='$CXXCPP $CPPFLAGS'
6133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6138 $as_echo_n "checking for inline... " >&6; }
6139 if ${ac_cv_c_inline+:} false; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 ac_cv_c_inline=no
6143 for ac_kw in inline __inline__ __inline; do
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 #ifndef __cplusplus
6147 typedef int foo_t;
6148 static $ac_kw foo_t static_foo () {return 0; }
6149 $ac_kw foo_t foo () {return 0; }
6150 #endif
6152 _ACEOF
6153 if ac_fn_cxx_try_compile "$LINENO"; then :
6154 ac_cv_c_inline=$ac_kw
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 test "$ac_cv_c_inline" != no && break
6158 done
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6162 $as_echo "$ac_cv_c_inline" >&6; }
6164 case $ac_cv_c_inline in
6165 inline | yes) ;;
6167 case $ac_cv_c_inline in
6168 no) ac_val=;;
6169 *) ac_val=$ac_cv_c_inline;;
6170 esac
6171 cat >>confdefs.h <<_ACEOF
6172 #ifndef __cplusplus
6173 #define inline $ac_val
6174 #endif
6175 _ACEOF
6177 esac
6180 # Check whether --enable-largefile was given.
6181 if test "${enable_largefile+set}" = set; then :
6182 enableval=$enable_largefile;
6185 if test "$enable_largefile" != no; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6188 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6189 if ${ac_cv_sys_largefile_CC+:} false; then :
6190 $as_echo_n "(cached) " >&6
6191 else
6192 ac_cv_sys_largefile_CC=no
6193 if test "$GCC" != yes; then
6194 ac_save_CC=$CC
6195 while :; do
6196 # IRIX 6.2 and later do not support large files by default,
6197 # so use the C compiler's -n32 option if that helps.
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6200 #include <sys/types.h>
6201 /* Check that off_t can represent 2**63 - 1 correctly.
6202 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6203 since some C++ compilers masquerading as C compilers
6204 incorrectly reject 9223372036854775807. */
6205 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6207 && LARGE_OFF_T % 2147483647 == 1)
6208 ? 1 : -1];
6210 main ()
6214 return 0;
6216 _ACEOF
6217 if ac_fn_cxx_try_compile "$LINENO"; then :
6218 break
6220 rm -f core conftest.err conftest.$ac_objext
6221 CC="$CC -n32"
6222 if ac_fn_cxx_try_compile "$LINENO"; then :
6223 ac_cv_sys_largefile_CC=' -n32'; break
6225 rm -f core conftest.err conftest.$ac_objext
6226 break
6227 done
6228 CC=$ac_save_CC
6229 rm -f conftest.$ac_ext
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6233 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6234 if test "$ac_cv_sys_largefile_CC" != no; then
6235 CC=$CC$ac_cv_sys_largefile_CC
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6239 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6240 if ${ac_cv_sys_file_offset_bits+:} false; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 while :; do
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #include <sys/types.h>
6247 /* Check that off_t can represent 2**63 - 1 correctly.
6248 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6249 since some C++ compilers masquerading as C compilers
6250 incorrectly reject 9223372036854775807. */
6251 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6253 && LARGE_OFF_T % 2147483647 == 1)
6254 ? 1 : -1];
6256 main ()
6260 return 0;
6262 _ACEOF
6263 if ac_fn_cxx_try_compile "$LINENO"; then :
6264 ac_cv_sys_file_offset_bits=no; break
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 #define _FILE_OFFSET_BITS 64
6270 #include <sys/types.h>
6271 /* Check that off_t can represent 2**63 - 1 correctly.
6272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6273 since some C++ compilers masquerading as C compilers
6274 incorrectly reject 9223372036854775807. */
6275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6277 && LARGE_OFF_T % 2147483647 == 1)
6278 ? 1 : -1];
6280 main ()
6284 return 0;
6286 _ACEOF
6287 if ac_fn_cxx_try_compile "$LINENO"; then :
6288 ac_cv_sys_file_offset_bits=64; break
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 ac_cv_sys_file_offset_bits=unknown
6292 break
6293 done
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6296 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6297 case $ac_cv_sys_file_offset_bits in #(
6298 no | unknown) ;;
6300 cat >>confdefs.h <<_ACEOF
6301 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6302 _ACEOF
6304 esac
6305 rm -rf conftest*
6306 if test $ac_cv_sys_file_offset_bits = unknown; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6308 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6309 if ${ac_cv_sys_large_files+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 while :; do
6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 #include <sys/types.h>
6316 /* Check that off_t can represent 2**63 - 1 correctly.
6317 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6318 since some C++ compilers masquerading as C compilers
6319 incorrectly reject 9223372036854775807. */
6320 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6321 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6322 && LARGE_OFF_T % 2147483647 == 1)
6323 ? 1 : -1];
6325 main ()
6329 return 0;
6331 _ACEOF
6332 if ac_fn_cxx_try_compile "$LINENO"; then :
6333 ac_cv_sys_large_files=no; break
6335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 #define _LARGE_FILES 1
6339 #include <sys/types.h>
6340 /* Check that off_t can represent 2**63 - 1 correctly.
6341 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6342 since some C++ compilers masquerading as C compilers
6343 incorrectly reject 9223372036854775807. */
6344 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6345 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6346 && LARGE_OFF_T % 2147483647 == 1)
6347 ? 1 : -1];
6349 main ()
6353 return 0;
6355 _ACEOF
6356 if ac_fn_cxx_try_compile "$LINENO"; then :
6357 ac_cv_sys_large_files=1; break
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 ac_cv_sys_large_files=unknown
6361 break
6362 done
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6365 $as_echo "$ac_cv_sys_large_files" >&6; }
6366 case $ac_cv_sys_large_files in #(
6367 no | unknown) ;;
6369 cat >>confdefs.h <<_ACEOF
6370 #define _LARGE_FILES $ac_cv_sys_large_files
6371 _ACEOF
6373 esac
6374 rm -rf conftest*
6380 # The cast to long int works around a bug in the HP C Compiler
6381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6383 # This bug is HP SR number 8606223364.
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6385 $as_echo_n "checking size of ino_t... " >&6; }
6386 if ${ac_cv_sizeof_ino_t+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6391 else
6392 if test "$ac_cv_type_ino_t" = yes; then
6393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6395 as_fn_error 77 "cannot compute sizeof (ino_t)
6396 See \`config.log' for more details" "$LINENO" 5; }
6397 else
6398 ac_cv_sizeof_ino_t=0
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6404 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6408 cat >>confdefs.h <<_ACEOF
6409 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6410 _ACEOF
6413 # The cast to long int works around a bug in the HP C Compiler
6414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6416 # This bug is HP SR number 8606223364.
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6418 $as_echo_n "checking size of dev_t... " >&6; }
6419 if ${ac_cv_sizeof_dev_t+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6424 else
6425 if test "$ac_cv_type_dev_t" = yes; then
6426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6428 as_fn_error 77 "cannot compute sizeof (dev_t)
6429 See \`config.log' for more details" "$LINENO" 5; }
6430 else
6431 ac_cv_sizeof_dev_t=0
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6437 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6441 cat >>confdefs.h <<_ACEOF
6442 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6443 _ACEOF
6447 # Select the right stat being able to handle 64bit inodes, if needed.
6448 if test "$enable_largefile" != no; then
6449 case "$host, $build" in
6450 *-*-aix*,*|*,*-*-aix*)
6451 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6453 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6455 fi;;
6456 esac
6460 # sizeof(char) is 1 by definition.
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 void *" >&5
6466 $as_echo_n "checking size of void *... " >&6; }
6467 if ${ac_cv_sizeof_void_p+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6472 else
6473 if test "$ac_cv_type_void_p" = 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 (void *)
6477 See \`config.log' for more details" "$LINENO" 5; }
6478 else
6479 ac_cv_sizeof_void_p=0
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6485 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6489 cat >>confdefs.h <<_ACEOF
6490 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6491 _ACEOF
6494 # The cast to long int works around a bug in the HP C Compiler
6495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6497 # This bug is HP SR number 8606223364.
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6499 $as_echo_n "checking size of short... " >&6; }
6500 if ${ac_cv_sizeof_short+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6505 else
6506 if test "$ac_cv_type_short" = yes; then
6507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6509 as_fn_error 77 "cannot compute sizeof (short)
6510 See \`config.log' for more details" "$LINENO" 5; }
6511 else
6512 ac_cv_sizeof_short=0
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6518 $as_echo "$ac_cv_sizeof_short" >&6; }
6522 cat >>confdefs.h <<_ACEOF
6523 #define SIZEOF_SHORT $ac_cv_sizeof_short
6524 _ACEOF
6527 # The cast to long int works around a bug in the HP C Compiler
6528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6530 # This bug is HP SR number 8606223364.
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6532 $as_echo_n "checking size of int... " >&6; }
6533 if ${ac_cv_sizeof_int+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6538 else
6539 if test "$ac_cv_type_int" = yes; then
6540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6542 as_fn_error 77 "cannot compute sizeof (int)
6543 See \`config.log' for more details" "$LINENO" 5; }
6544 else
6545 ac_cv_sizeof_int=0
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6551 $as_echo "$ac_cv_sizeof_int" >&6; }
6555 cat >>confdefs.h <<_ACEOF
6556 #define SIZEOF_INT $ac_cv_sizeof_int
6557 _ACEOF
6560 # The cast to long int works around a bug in the HP C Compiler
6561 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6562 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6563 # This bug is HP SR number 8606223364.
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6565 $as_echo_n "checking size of long... " >&6; }
6566 if ${ac_cv_sizeof_long+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6571 else
6572 if test "$ac_cv_type_long" = yes; then
6573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6575 as_fn_error 77 "cannot compute sizeof (long)
6576 See \`config.log' for more details" "$LINENO" 5; }
6577 else
6578 ac_cv_sizeof_long=0
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6584 $as_echo "$ac_cv_sizeof_long" >&6; }
6588 cat >>confdefs.h <<_ACEOF
6589 #define SIZEOF_LONG $ac_cv_sizeof_long
6590 _ACEOF
6593 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6594 if test "x$ac_cv_type_long_long" = xyes; then :
6596 cat >>confdefs.h <<_ACEOF
6597 #define HAVE_LONG_LONG 1
6598 _ACEOF
6600 # The cast to long int works around a bug in the HP C Compiler
6601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6603 # This bug is HP SR number 8606223364.
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6605 $as_echo_n "checking size of long long... " >&6; }
6606 if ${ac_cv_sizeof_long_long+:} false; then :
6607 $as_echo_n "(cached) " >&6
6608 else
6609 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6611 else
6612 if test "$ac_cv_type_long_long" = yes; then
6613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6615 as_fn_error 77 "cannot compute sizeof (long long)
6616 See \`config.log' for more details" "$LINENO" 5; }
6617 else
6618 ac_cv_sizeof_long_long=0
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6624 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6628 cat >>confdefs.h <<_ACEOF
6629 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6630 _ACEOF
6635 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6636 case $ac_cv_c_int8_t in #(
6637 no|yes) ;; #(
6640 cat >>confdefs.h <<_ACEOF
6641 #define int8_t $ac_cv_c_int8_t
6642 _ACEOF
6644 esac
6646 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6647 case $ac_cv_c_int16_t in #(
6648 no|yes) ;; #(
6651 cat >>confdefs.h <<_ACEOF
6652 #define int16_t $ac_cv_c_int16_t
6653 _ACEOF
6655 esac
6657 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6658 case $ac_cv_c_int32_t in #(
6659 no|yes) ;; #(
6662 cat >>confdefs.h <<_ACEOF
6663 #define int32_t $ac_cv_c_int32_t
6664 _ACEOF
6666 esac
6668 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6669 case $ac_cv_c_int64_t in #(
6670 no|yes) ;; #(
6673 cat >>confdefs.h <<_ACEOF
6674 #define int64_t $ac_cv_c_int64_t
6675 _ACEOF
6677 esac
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6681 $as_echo_n "checking for unsigned long long int... " >&6; }
6682 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 ac_cv_type_unsigned_long_long_int=yes
6686 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6690 /* For now, do not test the preprocessor; as of 2007 there are too many
6691 implementations with broken preprocessors. Perhaps this can
6692 be revisited in 2012. In the meantime, code should not expect
6693 #if to work with literals wider than 32 bits. */
6694 /* Test literals. */
6695 long long int ll = 9223372036854775807ll;
6696 long long int nll = -9223372036854775807LL;
6697 unsigned long long int ull = 18446744073709551615ULL;
6698 /* Test constant expressions. */
6699 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6700 ? 1 : -1)];
6701 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6702 ? 1 : -1)];
6703 int i = 63;
6705 main ()
6707 /* Test availability of runtime routines for shift and division. */
6708 long long int llmax = 9223372036854775807ll;
6709 unsigned long long int ullmax = 18446744073709551615ull;
6710 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6711 | (llmax / ll) | (llmax % ll)
6712 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6713 | (ullmax / ull) | (ullmax % ull));
6715 return 0;
6718 _ACEOF
6719 if ac_fn_cxx_try_link "$LINENO"; then :
6721 else
6722 ac_cv_type_unsigned_long_long_int=no
6724 rm -f core conftest.err conftest.$ac_objext \
6725 conftest$ac_exeext conftest.$ac_ext
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6729 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6730 if test $ac_cv_type_unsigned_long_long_int = yes; then
6732 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6739 $as_echo_n "checking for long long int... " >&6; }
6740 if ${ac_cv_type_long_long_int+:} false; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 ac_cv_type_long_long_int=yes
6744 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6745 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6746 if test $ac_cv_type_long_long_int = yes; then
6747 if test "$cross_compiling" = yes; then :
6749 else
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6752 #include <limits.h>
6753 #ifndef LLONG_MAX
6754 # define HALF \
6755 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6756 # define LLONG_MAX (HALF - 1 + HALF)
6757 #endif
6759 main ()
6761 long long int n = 1;
6762 int i;
6763 for (i = 0; ; i++)
6765 long long int m = n << i;
6766 if (m >> i != n)
6767 return 1;
6768 if (LLONG_MAX / 2 < m)
6769 break;
6771 return 0;
6773 return 0;
6775 _ACEOF
6776 if ac_fn_cxx_try_run "$LINENO"; then :
6778 else
6779 ac_cv_type_long_long_int=no
6781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6782 conftest.$ac_objext conftest.beam conftest.$ac_ext
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6789 $as_echo "$ac_cv_type_long_long_int" >&6; }
6790 if test $ac_cv_type_long_long_int = yes; then
6792 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6798 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6799 if test "x$ac_cv_type_intmax_t" = xyes; then :
6801 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6803 else
6804 test $ac_cv_type_long_long_int = yes \
6805 && ac_type='long long int' \
6806 || ac_type='long int'
6808 cat >>confdefs.h <<_ACEOF
6809 #define intmax_t $ac_type
6810 _ACEOF
6816 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6817 if test "x$ac_cv_type_intptr_t" = xyes; then :
6819 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6821 else
6822 for ac_type in 'int' 'long int' 'long long int'; do
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 $ac_includes_default
6827 main ()
6829 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6830 test_array [0] = 0;
6831 return test_array [0];
6834 return 0;
6836 _ACEOF
6837 if ac_fn_cxx_try_compile "$LINENO"; then :
6839 cat >>confdefs.h <<_ACEOF
6840 #define intptr_t $ac_type
6841 _ACEOF
6843 ac_type=
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 test -z "$ac_type" && break
6847 done
6851 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6852 case $ac_cv_c_uint8_t in #(
6853 no|yes) ;; #(
6856 $as_echo "#define _UINT8_T 1" >>confdefs.h
6859 cat >>confdefs.h <<_ACEOF
6860 #define uint8_t $ac_cv_c_uint8_t
6861 _ACEOF
6863 esac
6865 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6866 case $ac_cv_c_uint16_t in #(
6867 no|yes) ;; #(
6871 cat >>confdefs.h <<_ACEOF
6872 #define uint16_t $ac_cv_c_uint16_t
6873 _ACEOF
6875 esac
6877 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6878 case $ac_cv_c_uint32_t in #(
6879 no|yes) ;; #(
6882 $as_echo "#define _UINT32_T 1" >>confdefs.h
6885 cat >>confdefs.h <<_ACEOF
6886 #define uint32_t $ac_cv_c_uint32_t
6887 _ACEOF
6889 esac
6891 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6892 case $ac_cv_c_uint64_t in #(
6893 no|yes) ;; #(
6896 $as_echo "#define _UINT64_T 1" >>confdefs.h
6899 cat >>confdefs.h <<_ACEOF
6900 #define uint64_t $ac_cv_c_uint64_t
6901 _ACEOF
6903 esac
6907 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6908 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6910 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6912 else
6913 test $ac_cv_type_unsigned_long_long_int = yes \
6914 && ac_type='unsigned long long int' \
6915 || ac_type='unsigned long int'
6917 cat >>confdefs.h <<_ACEOF
6918 #define uintmax_t $ac_type
6919 _ACEOF
6925 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6926 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6928 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6930 else
6931 for ac_type in 'unsigned int' 'unsigned long int' \
6932 'unsigned long long int'; do
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935 $ac_includes_default
6937 main ()
6939 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6940 test_array [0] = 0;
6941 return test_array [0];
6944 return 0;
6946 _ACEOF
6947 if ac_fn_cxx_try_compile "$LINENO"; then :
6949 cat >>confdefs.h <<_ACEOF
6950 #define uintptr_t $ac_type
6951 _ACEOF
6953 ac_type=
6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956 test -z "$ac_type" && break
6957 done
6973 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6974 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6977 # check what underlying integer type int64_t uses
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6979 $as_echo_n "checking for int64_t underlying type... " >&6; }
6980 if ${ac_cv_int64_t_type+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6987 #ifdef HAVE_STDINT_H
6988 #include <stdint.h>
6989 #endif
6990 template <typename T> struct X { };
6991 template <>
6992 struct X<long> { typedef long t; };
6995 main ()
6997 X<int64_t>::t x;
6999 return 0;
7001 _ACEOF
7002 if ac_fn_cxx_try_compile "$LINENO"; then :
7003 ac_cv_int64_t_type=long
7004 else
7005 ac_cv_int64_t_type="long long"
7007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7010 $as_echo "$ac_cv_int64_t_type" >&6; }
7011 if test "$ac_cv_int64_t_type" = "long"; then
7013 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7015 else
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7019 #ifdef HAVE_STDINT_H
7020 #include <stdint.h>
7021 #endif
7022 template <typename T> struct X { };
7023 template <>
7024 struct X<long long> { typedef long long t; };
7027 main ()
7029 X<int64_t>::t x;
7031 return 0;
7033 _ACEOF
7034 if ac_fn_cxx_try_compile "$LINENO"; then :
7036 else
7037 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7043 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7044 if ${ac_cv_std_swap_in_utility+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7051 #include <utility>
7054 main ()
7056 int a, b; std::swap(a,b);
7058 return 0;
7060 _ACEOF
7061 if ac_fn_cxx_try_compile "$LINENO"; then :
7062 ac_cv_std_swap_in_utility=yes
7063 else
7064 ac_cv_std_swap_in_utility=no
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7069 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7070 if test $ac_cv_std_swap_in_utility = yes; then
7072 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7076 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7077 # If the host compiler is affected by the bug, and we build with optimization
7078 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7079 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7080 # Since there is no reliable feature check for the presence of this bug,
7081 # we simply use a GCC version number check. (This should never trigger for
7082 # stages 2 or 3 of a native bootstrap.)
7083 aliasing_flags=
7084 if test "$GCC" = yes; then
7085 saved_CXXFLAGS="$CXXFLAGS"
7087 # The following test compilation will succeed if and only if $CXX accepts
7088 # -fno-strict-aliasing *and* is older than GCC 4.3.
7089 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7091 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7095 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7096 #error compiler not affected by placement new aliasing bug
7097 #endif
7099 _ACEOF
7100 if ac_fn_cxx_try_compile "$LINENO"; then :
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7102 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7103 else
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105 $as_echo "no" >&6; }
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7109 CXXFLAGS="$saved_CXXFLAGS"
7115 # ---------------------
7116 # Warnings and checking
7117 # ---------------------
7119 # Check $CC warning features (if it's GCC).
7120 # We want to use -pedantic, but we don't want warnings about
7121 # * 'long long'
7122 # * variadic macros
7123 # * overlong strings
7124 # * C++11 narrowing conversions in { }
7125 # So, we only use -pedantic if we can disable those warnings.
7127 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7128 # Check whether --enable-build-format-warnings was given.
7129 if test "${enable_build_format_warnings+set}" = set; then :
7130 enableval=$enable_build_format_warnings;
7131 else
7132 enable_build_format_warnings=yes
7135 if test $enable_build_format_warnings = no; then :
7136 wf_opt=-Wno-format
7137 else
7138 wf_opt=
7140 ac_ext=cpp
7141 ac_cpp='$CXXCPP $CPPFLAGS'
7142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7146 loose_warn=
7147 save_CXXFLAGS="$CXXFLAGS"
7148 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7149 # Do the check with the no- prefix removed since gcc silently
7150 # accepts any -Wno-* option on purpose
7151 case $real_option in
7152 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7153 *) option=$real_option ;;
7154 esac
7155 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7158 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7159 if eval \${$as_acx_Woption+:} false; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 CXXFLAGS="$option"
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7167 main ()
7171 return 0;
7173 _ACEOF
7174 if ac_fn_cxx_try_compile "$LINENO"; then :
7175 eval "$as_acx_Woption=yes"
7176 else
7177 eval "$as_acx_Woption=no"
7179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 eval ac_res=\$$as_acx_Woption
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7184 $as_echo "$ac_res" >&6; }
7185 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7186 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7188 done
7189 CXXFLAGS="$save_CXXFLAGS"
7190 ac_ext=cpp
7191 ac_cpp='$CXXCPP $CPPFLAGS'
7192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7198 ac_ext=c
7199 ac_cpp='$CPP $CPPFLAGS'
7200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7204 c_loose_warn=
7205 save_CFLAGS="$CFLAGS"
7206 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7207 # Do the check with the no- prefix removed since gcc silently
7208 # accepts any -Wno-* option on purpose
7209 case $real_option in
7210 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7211 *) option=$real_option ;;
7212 esac
7213 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7216 $as_echo_n "checking whether $CC supports $option... " >&6; }
7217 if eval \${$as_acx_Woption+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 CFLAGS="$option"
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7225 main ()
7229 return 0;
7231 _ACEOF
7232 if ac_fn_c_try_compile "$LINENO"; then :
7233 eval "$as_acx_Woption=yes"
7234 else
7235 eval "$as_acx_Woption=no"
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 eval ac_res=\$$as_acx_Woption
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7242 $as_echo "$ac_res" >&6; }
7243 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7244 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7246 done
7247 CFLAGS="$save_CFLAGS"
7248 ac_ext=cpp
7249 ac_cpp='$CXXCPP $CPPFLAGS'
7250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7255 ac_ext=cpp
7256 ac_cpp='$CXXCPP $CPPFLAGS'
7257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7261 strict_warn=
7262 save_CXXFLAGS="$CXXFLAGS"
7263 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7264 # Do the check with the no- prefix removed since gcc silently
7265 # accepts any -Wno-* option on purpose
7266 case $real_option in
7267 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7268 *) option=$real_option ;;
7269 esac
7270 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7273 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7274 if eval \${$as_acx_Woption+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 CXXFLAGS="$option"
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7282 main ()
7286 return 0;
7288 _ACEOF
7289 if ac_fn_cxx_try_compile "$LINENO"; then :
7290 eval "$as_acx_Woption=yes"
7291 else
7292 eval "$as_acx_Woption=no"
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297 eval ac_res=\$$as_acx_Woption
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7299 $as_echo "$ac_res" >&6; }
7300 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7301 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7303 done
7304 CXXFLAGS="$save_CXXFLAGS"
7305 ac_ext=cpp
7306 ac_cpp='$CXXCPP $CPPFLAGS'
7307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7312 ac_ext=c
7313 ac_cpp='$CPP $CPPFLAGS'
7314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7318 c_strict_warn=
7319 save_CFLAGS="$CFLAGS"
7320 for real_option in -Wold-style-definition -Wc++-compat; do
7321 # Do the check with the no- prefix removed since gcc silently
7322 # accepts any -Wno-* option on purpose
7323 case $real_option in
7324 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7325 *) option=$real_option ;;
7326 esac
7327 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7330 $as_echo_n "checking whether $CC supports $option... " >&6; }
7331 if eval \${$as_acx_Woption+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 CFLAGS="$option"
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7339 main ()
7343 return 0;
7345 _ACEOF
7346 if ac_fn_c_try_compile "$LINENO"; then :
7347 eval "$as_acx_Woption=yes"
7348 else
7349 eval "$as_acx_Woption=no"
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354 eval ac_res=\$$as_acx_Woption
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7356 $as_echo "$ac_res" >&6; }
7357 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7358 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7360 done
7361 CFLAGS="$save_CFLAGS"
7362 ac_ext=cpp
7363 ac_cpp='$CXXCPP $CPPFLAGS'
7364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7369 ac_ext=cpp
7370 ac_cpp='$CXXCPP $CPPFLAGS'
7371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7375 # Do the check with the no- prefix removed from the warning options
7376 # since gcc silently accepts any -Wno-* option on purpose
7377 if test "$GXX" = yes; then :
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7379 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7380 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 save_CXXFLAGS="$CXXFLAGS"
7384 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7389 main ()
7393 return 0;
7395 _ACEOF
7396 if ac_fn_cxx_try_compile "$LINENO"; then :
7397 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7398 else
7399 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 CXXFLAGS="$save_CXXFLAGS"
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7405 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7406 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7407 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7411 ac_ext=cpp
7412 ac_cpp='$CXXCPP $CPPFLAGS'
7413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7418 ac_ext=cpp
7419 ac_cpp='$CXXCPP $CPPFLAGS'
7420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7424 # Check whether --enable-werror-always was given.
7425 if test "${enable_werror_always+set}" = set; then :
7426 enableval=$enable_werror_always;
7427 else
7428 enable_werror_always=no
7431 if test $enable_werror_always = yes; then :
7432 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7435 ac_ext=cpp
7436 ac_cpp='$CXXCPP $CPPFLAGS'
7437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7443 # The above macros do nothing if the compiler is not GCC. However, the
7444 # Makefile has more goo to add other flags, so these variables are used
7445 # to enable warnings only for GCC.
7446 warn_cflags=
7447 warn_cxxflags=
7448 if test "x$GCC" = "xyes"; then
7449 warn_cflags='$(GCC_WARN_CFLAGS)'
7450 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7455 # Disable exceptions and RTTI if building with g++
7456 ac_ext=c
7457 ac_cpp='$CPP $CPPFLAGS'
7458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7462 noexception_flags=
7463 save_CFLAGS="$CFLAGS"
7464 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7465 # Do the check with the no- prefix removed since gcc silently
7466 # accepts any -Wno-* option on purpose
7467 case $real_option in
7468 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7469 *) option=$real_option ;;
7470 esac
7471 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7474 $as_echo_n "checking whether $CC supports $option... " >&6; }
7475 if eval \${$as_acx_Woption+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 CFLAGS="$option"
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7483 main ()
7487 return 0;
7489 _ACEOF
7490 if ac_fn_c_try_compile "$LINENO"; then :
7491 eval "$as_acx_Woption=yes"
7492 else
7493 eval "$as_acx_Woption=no"
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7498 eval ac_res=\$$as_acx_Woption
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7500 $as_echo "$ac_res" >&6; }
7501 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7502 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7504 done
7505 CFLAGS="$save_CFLAGS"
7506 ac_ext=cpp
7507 ac_cpp='$CXXCPP $CPPFLAGS'
7508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7514 # Enable expensive internal checks
7515 is_release=
7516 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7517 is_release=yes
7520 # Check whether --enable-checking was given.
7521 if test "${enable_checking+set}" = set; then :
7522 enableval=$enable_checking; ac_checking_flags="${enableval}"
7523 else
7525 # Determine the default checks.
7526 if test x$is_release = x ; then
7527 ac_checking_flags=yes,extra
7528 else
7529 ac_checking_flags=release
7533 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7534 for check in release $ac_checking_flags
7536 case $check in
7537 # these set all the flags to specific states
7538 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7539 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7540 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7541 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7542 ac_tree_checking=1 ; ac_valgrind_checking= ;
7543 ac_types_checking=1 ;;
7544 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7545 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7546 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7547 ac_rtlflag_checking= ; ac_runtime_checking= ;
7548 ac_tree_checking= ; ac_valgrind_checking= ;
7549 ac_types_checking= ;;
7550 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7551 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7552 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7553 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7554 ac_tree_checking=1 ; ac_valgrind_checking= ;
7555 ac_types_checking=1 ;;
7556 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7557 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7558 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7559 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7560 ac_tree_checking= ; ac_valgrind_checking= ;
7561 ac_types_checking= ;;
7562 # these enable particular checks
7563 assert) ac_assert_checking=1 ;;
7564 df) ac_df_checking=1 ;;
7565 extra) ac_extra_checking=1 ;;
7566 fold) ac_fold_checking=1 ;;
7567 gc) ac_gc_checking=1 ;;
7568 gcac) ac_gc_always_collect=1 ;;
7569 gimple) ac_gimple_checking=1 ;;
7570 misc) ac_checking=1 ;;
7571 rtl) ac_rtl_checking=1 ;;
7572 rtlflag) ac_rtlflag_checking=1 ;;
7573 runtime) ac_runtime_checking=1 ;;
7574 tree) ac_tree_checking=1 ;;
7575 types) ac_types_checking=1 ;;
7576 valgrind) ac_valgrind_checking=1 ;;
7577 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7578 esac
7579 done
7580 IFS="$ac_save_IFS"
7582 nocommon_flag=""
7583 if test x$ac_checking != x ; then
7585 $as_echo "#define CHECKING_P 1" >>confdefs.h
7587 nocommon_flag=-fno-common
7588 else
7589 $as_echo "#define CHECKING_P 0" >>confdefs.h
7593 if test x$ac_extra_checking != x ; then
7595 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7597 else
7598 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7601 if test x$ac_df_checking != x ; then
7603 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7606 if test x$ac_assert_checking != x ; then
7608 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7611 if test x$ac_gimple_checking != x ; then
7613 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7617 if test x$ac_runtime_checking != x ; then
7619 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7622 if test x$ac_tree_checking != x ; then
7624 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7626 TREECHECKING=yes
7628 if test x$ac_types_checking != x ; then
7630 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7634 if test x$ac_rtl_checking != x ; then
7636 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7639 if test x$ac_rtlflag_checking != x ; then
7641 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7644 if test x$ac_gc_checking != x ; then
7646 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7649 if test x$ac_gc_always_collect != x ; then
7651 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7654 if test x$ac_fold_checking != x ; then
7656 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7659 valgrind_path_defines=
7660 valgrind_command=
7662 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7663 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7664 have_valgrind_h=yes
7665 else
7666 have_valgrind_h=no
7671 # It is certainly possible that there's valgrind but no valgrind.h.
7672 # GCC relies on making annotations so we must have both.
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7674 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 #include <valgrind/memcheck.h>
7678 #ifndef VALGRIND_DISCARD
7679 #error VALGRIND_DISCARD not defined
7680 #endif
7681 _ACEOF
7682 if ac_fn_cxx_try_cpp "$LINENO"; then :
7683 gcc_cv_header_valgrind_memcheck_h=yes
7684 else
7685 gcc_cv_header_valgrind_memcheck_h=no
7687 rm -f conftest.err conftest.i conftest.$ac_ext
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7689 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7691 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 #include <memcheck.h>
7695 #ifndef VALGRIND_DISCARD
7696 #error VALGRIND_DISCARD not defined
7697 #endif
7698 _ACEOF
7699 if ac_fn_cxx_try_cpp "$LINENO"; then :
7700 gcc_cv_header_memcheck_h=yes
7701 else
7702 gcc_cv_header_memcheck_h=no
7704 rm -f conftest.err conftest.i conftest.$ac_ext
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7706 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7707 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7709 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7712 if test $gcc_cv_header_memcheck_h = yes; then
7714 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7718 if test x$ac_valgrind_checking != x ; then
7720 # Prepare PATH_SEPARATOR.
7721 # The user is always right.
7722 if test "${PATH_SEPARATOR+set}" != set; then
7723 echo "#! /bin/sh" >conf$$.sh
7724 echo "exit 0" >>conf$$.sh
7725 chmod +x conf$$.sh
7726 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7727 PATH_SEPARATOR=';'
7728 else
7729 PATH_SEPARATOR=:
7731 rm -f conf$$.sh
7734 # Find out how to test for executable files. Don't use a zero-byte file,
7735 # as systems may use methods other than mode bits to determine executability.
7736 cat >conf$$.file <<_ASEOF
7737 #! /bin/sh
7738 exit 0
7739 _ASEOF
7740 chmod +x conf$$.file
7741 if test -x conf$$.file >/dev/null 2>&1; then
7742 ac_executable_p="test -x"
7743 else
7744 ac_executable_p="test -f"
7746 rm -f conf$$.file
7748 # Extract the first word of "valgrind", so it can be a program name with args.
7749 set dummy valgrind; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if ${ac_cv_path_valgrind_path+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 case "$valgrind_path" in
7756 [\\/]* | ?:[\\/]*)
7757 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7760 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7761 for ac_dir in $PATH; do
7762 IFS="$ac_save_IFS"
7763 test -z "$ac_dir" && ac_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7766 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7767 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7768 break 2
7771 done
7772 done
7773 IFS="$ac_save_IFS"
7775 esac
7777 valgrind_path="$ac_cv_path_valgrind_path"
7778 if test -n "$valgrind_path"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7780 $as_echo "$valgrind_path" >&6; }
7781 else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7786 if test "x$valgrind_path" = "x" \
7787 || (test $have_valgrind_h = no \
7788 && test $gcc_cv_header_memcheck_h = no \
7789 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7790 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7792 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7793 valgrind_command="$valgrind_path -q"
7795 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7801 # Enable code coverage collection
7802 # Check whether --enable-coverage was given.
7803 if test "${enable_coverage+set}" = set; then :
7804 enableval=$enable_coverage; case "${enableval}" in
7805 yes|noopt)
7806 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7808 opt)
7809 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7812 # a.k.a. --disable-coverage
7813 coverage_flags=""
7816 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7818 esac
7819 else
7820 coverage_flags=""
7825 # Check whether --enable-gather-detailed-mem-stats was given.
7826 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7827 enableval=$enable_gather_detailed_mem_stats;
7828 else
7829 enable_gather_detailed_mem_stats=no
7832 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7834 cat >>confdefs.h <<_ACEOF
7835 #define GATHER_STATISTICS $gather_stats
7836 _ACEOF
7839 # Check whether --enable-valgrind-annotations was given.
7840 if test "${enable_valgrind_annotations+set}" = set; then :
7841 enableval=$enable_valgrind_annotations;
7842 else
7843 enable_valgrind_annotations=no
7846 if test x$enable_valgrind_annotations != xno \
7847 || test x$ac_valgrind_checking != x; then
7848 if (test $have_valgrind_h = no \
7849 && test $gcc_cv_header_memcheck_h = no \
7850 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7851 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7854 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7858 # -------------------------------
7859 # Miscenalleous configure options
7860 # -------------------------------
7862 # Determine whether or not multilibs are enabled.
7863 # Check whether --enable-multilib was given.
7864 if test "${enable_multilib+set}" = set; then :
7865 enableval=$enable_multilib;
7866 else
7867 enable_multilib=yes
7872 # Determine whether or not multiarch is enabled.
7873 # Check whether --enable-multiarch was given.
7874 if test "${enable_multiarch+set}" = set; then :
7875 enableval=$enable_multiarch; case "${enableval}" in
7876 yes|no|auto) enable_multiarch=$enableval;;
7877 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7878 esac
7879 else
7880 enable_multiarch=auto
7883 if test x${enable_multiarch} = xauto; then
7884 if test x${with_native_system_header_dir} != x; then
7885 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7886 enable_multiarch=no
7888 if test x$host != x$target && test "x$with_sysroot" = x; then
7889 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7890 enable_multiarch=no
7893 if test x${enable_multiarch} = xyes; then
7895 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7899 $as_echo_n "checking for multiarch configuration... " >&6; }
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7902 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7904 # needed for setting the multiarch name for soft-float/hard-float ABIs
7908 # default stack clash protection guard size as power of twos in bytes.
7909 # Please keep these in sync with params.def.
7910 stk_clash_min=12
7911 stk_clash_max=30
7913 # Keep the default value when the option is not used to 0, this allows us to
7914 # distinguish between the cases where the user specifially set a value via
7915 # configure and when the normal default value is used.
7917 # Check whether --with-stack-clash-protection-guard-size was given.
7918 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7919 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7920 else
7921 DEFAULT_STK_CLASH_GUARD_SIZE=0
7924 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7925 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7926 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7927 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
7931 cat >>confdefs.h <<_ACEOF
7932 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7933 _ACEOF
7936 # Specify the number of splits of match.pd to generate.
7938 # Check whether --with-matchpd-partitions was given.
7939 if test "${with_matchpd_partitions+set}" = set; then :
7940 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7941 else
7942 DEFAULT_MATCHPD_PARTITIONS=10
7945 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7946 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7951 # Enable __cxa_atexit for C++.
7952 # Check whether --enable-__cxa_atexit was given.
7953 if test "${enable___cxa_atexit+set}" = set; then :
7954 enableval=$enable___cxa_atexit;
7958 # Enable C extension for decimal float if target supports it.
7960 # Check whether --enable-decimal-float was given.
7961 if test "${enable_decimal_float+set}" = set; then :
7962 enableval=$enable_decimal_float;
7963 case $enable_decimal_float in
7964 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7965 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7966 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7967 esac
7969 else
7971 case $target in
7972 aarch64* | \
7973 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7974 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7975 i?86*-*-mingw* | x86_64*-*-mingw* | \
7976 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7977 enable_decimal_float=yes
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7981 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7982 enable_decimal_float=no
7984 esac
7989 # x86's use BID format instead of DPD
7990 case x$enable_decimal_float in
7991 xyes)
7992 case $target in
7993 aarch64* | i?86*-*-* | x86_64*-*-*)
7994 enable_decimal_float=bid
7997 enable_decimal_float=dpd
7999 esac
8000 default_decimal_float=$enable_decimal_float
8002 xno)
8003 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8004 # dependency on libdecnumber.
8005 default_decimal_float=dpd
8007 esac
8012 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8014 cat >>confdefs.h <<_ACEOF
8015 #define ENABLE_DECIMAL_FLOAT $dfp
8016 _ACEOF
8019 # Use default_decimal_float for dependency.
8020 enable_decimal_float=$default_decimal_float
8022 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8024 cat >>confdefs.h <<_ACEOF
8025 #define ENABLE_DECIMAL_BID_FORMAT $bid
8026 _ACEOF
8029 # Enable C extension for fixed-point arithmetic.
8030 # Check whether --enable-fixed-point was given.
8031 if test "${enable_fixed_point+set}" = set; then :
8032 enableval=$enable_fixed_point;
8033 else
8035 case $target in
8036 arm*)
8037 enable_fixed_point=yes
8040 mips*-*-*)
8041 enable_fixed_point=yes
8043 loongarch*-*-*)
8044 enable_fixed_point=yes
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8048 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8049 enable_fixed_point=no
8051 esac
8057 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8059 cat >>confdefs.h <<_ACEOF
8060 #define ENABLE_FIXED_POINT $fixedpoint
8061 _ACEOF
8064 # Enable threads
8065 # Pass with no value to take the default
8066 # Pass with a value to specify a thread package
8067 # Check whether --enable-threads was given.
8068 if test "${enable_threads+set}" = set; then :
8069 enableval=$enable_threads;
8070 else
8071 enable_threads=''
8075 # Check whether --enable-tls was given.
8076 if test "${enable_tls+set}" = set; then :
8077 enableval=$enable_tls;
8078 case $enable_tls in
8079 yes | no) ;;
8080 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8081 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8082 esac
8084 else
8085 enable_tls=''
8089 # Check whether --enable-vtable-verify was given.
8090 if test "${enable_vtable_verify+set}" = set; then :
8091 enableval=$enable_vtable_verify;
8092 else
8093 enable_vtable_verify=no
8096 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8098 cat >>confdefs.h <<_ACEOF
8099 #define ENABLE_VTABLE_VERIFY $vtable_verify
8100 _ACEOF
8103 # Check whether --enable-analyzer was given.
8104 if test "${enable_analyzer+set}" = set; then :
8105 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8106 analyzer=0
8107 else
8108 analyzer=1
8110 else
8111 analyzer=1
8115 cat >>confdefs.h <<_ACEOF
8116 #define ENABLE_ANALYZER $analyzer
8117 _ACEOF
8120 # Check whether --enable-objc-gc was given.
8121 if test "${enable_objc_gc+set}" = set; then :
8122 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8123 objc_boehm_gc=''
8124 else
8125 objc_boehm_gc=1
8127 else
8128 objc_boehm_gc=''
8133 # Check whether --with-dwarf2 was given.
8134 if test "${with_dwarf2+set}" = set; then :
8135 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8136 else
8137 dwarf2=no
8141 # Check whether --enable-shared was given.
8142 if test "${enable_shared+set}" = set; then :
8143 enableval=$enable_shared;
8144 case $enable_shared in
8145 yes | no) ;;
8147 enable_shared=no
8148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8149 for pkg in $enableval; do
8150 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8151 enable_shared=yes
8153 done
8154 IFS="$ac_save_ifs"
8156 esac
8158 else
8159 enable_shared=yes
8164 # Check whether --enable-gcov was given.
8165 if test "${enable_gcov+set}" = set; then :
8166 enableval=$enable_gcov;
8167 else
8168 case $target in
8169 bpf-*-*)
8170 enable_gcov=no
8173 enable_gcov=yes
8175 esac
8182 # Check whether --with-specs was given.
8183 if test "${with_specs+set}" = set; then :
8184 withval=$with_specs; CONFIGURE_SPECS=$withval
8185 else
8186 CONFIGURE_SPECS=
8194 # Check whether --with-pkgversion was given.
8195 if test "${with_pkgversion+set}" = set; then :
8196 withval=$with_pkgversion; case "$withval" in
8197 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8198 no) PKGVERSION= ;;
8199 *) PKGVERSION="($withval) " ;;
8200 esac
8201 else
8202 PKGVERSION="(GCC) "
8210 # Check whether --with-bugurl was given.
8211 if test "${with_bugurl+set}" = set; then :
8212 withval=$with_bugurl; case "$withval" in
8213 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8214 no) BUGURL=
8216 *) BUGURL="$withval"
8218 esac
8219 else
8220 BUGURL="https://gcc.gnu.org/bugs/"
8224 case ${BUGURL} in
8226 REPORT_BUGS_TO=
8227 REPORT_BUGS_TEXI=
8230 REPORT_BUGS_TO="<$BUGURL>"
8231 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8233 esac;
8238 # Allow overriding the default URL for documentation
8240 # Check whether --with-documentation-root-url was given.
8241 if test "${with_documentation_root_url+set}" = set; then :
8242 withval=$with_documentation_root_url; case "$withval" in
8243 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8244 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8245 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8246 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8247 esac
8248 else
8249 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8254 cat >>confdefs.h <<_ACEOF
8255 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8256 _ACEOF
8259 # Allow overriding the default URL for GCC changes
8261 # Check whether --with-changes-root-url was given.
8262 if test "${with_changes_root_url+set}" = set; then :
8263 withval=$with_changes_root_url; case "$withval" in
8264 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8265 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8266 */) CHANGES_ROOT_URL="$withval" ;;
8267 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8268 esac
8269 else
8270 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8275 cat >>confdefs.h <<_ACEOF
8276 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8277 _ACEOF
8280 # Sanity check enable_languages in case someone does not run the toplevel
8281 # configure # script.
8282 # Check whether --enable-languages was given.
8283 if test "${enable_languages+set}" = set; then :
8284 enableval=$enable_languages; case ,${enable_languages}, in
8285 ,,|,yes,)
8286 # go safe -- we cannot be much sure without the toplevel
8287 # configure's
8288 # analysis of which target libs are present and usable
8289 enable_languages=c
8291 *,all,*)
8292 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8294 *,c,*)
8297 enable_languages=c,${enable_languages}
8299 esac
8300 else
8301 enable_languages=c
8305 # If top-level libada has been disabled, then wire in install-gnatlib
8306 # invocation with `make install', so that one can build and install
8307 # the library manually with `make -C gcc all gnatlib gnattools install'.
8308 if test x"$enable_libada" = xno; then
8309 gnat_install_lib=gnat-install-lib
8310 else
8311 gnat_install_lib=
8315 if test x"$enable_as_accelerator_for" != x; then
8317 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8319 enable_as_accelerator=yes
8320 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8321 program_transform_name=`echo $program_transform_name | sed $sedscript`
8322 accel_dir_suffix=/accel/${target_noncanonical}
8323 real_target_noncanonical=${enable_as_accelerator_for}
8329 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8330 tgt=`echo $tgt | sed 's/=.*//'`
8332 enable_offloading=1
8333 case "$tgt" in
8334 amdgcn*)
8335 omp_device_property=omp-device-properties-gcn
8336 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8338 nvptx*)
8339 omp_device_property=omp-device-properties-nvptx
8340 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8343 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8345 esac
8346 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8347 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8349 if test x"$offload_targets" = x; then
8350 offload_targets=$tgt
8351 else
8352 offload_targets="$offload_targets,$tgt"
8354 done
8359 cat >>confdefs.h <<_ACEOF
8360 #define OFFLOAD_TARGETS "$offload_targets"
8361 _ACEOF
8363 if test x"$enable_offloading" != x; then
8365 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8367 else
8369 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8373 if test "x$enable_offload_defaulted" = xyes; then
8375 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8380 # Check whether --with-multilib-list was given.
8381 if test "${with_multilib_list+set}" = set; then :
8382 withval=$with_multilib_list; :
8383 else
8384 with_multilib_list=default
8389 # Check whether --with-multilib-generator was given.
8390 if test "${with_multilib_generator+set}" = set; then :
8391 withval=$with_multilib_generator; :
8392 else
8393 with_multilib_generator=default
8397 # -------------------------
8398 # Checks for other programs
8399 # -------------------------
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8402 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8403 set x ${MAKE-make}
8404 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8405 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 cat >conftest.make <<\_ACEOF
8409 SHELL = /bin/sh
8410 all:
8411 @echo '@@@%%%=$(MAKE)=@@@%%%'
8412 _ACEOF
8413 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8414 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8415 *@@@%%%=?*=@@@%%%*)
8416 eval ac_cv_prog_make_${ac_make}_set=yes;;
8418 eval ac_cv_prog_make_${ac_make}_set=no;;
8419 esac
8420 rm -f conftest.make
8422 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8424 $as_echo "yes" >&6; }
8425 SET_MAKE=
8426 else
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 SET_MAKE="MAKE=${MAKE-make}"
8433 # Find some useful tools
8434 for ac_prog in gawk mawk nawk awk
8436 # Extract the first word of "$ac_prog", so it can be a program name with args.
8437 set dummy $ac_prog; ac_word=$2
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 $as_echo_n "checking for $ac_word... " >&6; }
8440 if ${ac_cv_prog_AWK+:} false; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 if test -n "$AWK"; then
8444 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8445 else
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $PATH
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453 ac_cv_prog_AWK="$ac_prog"
8454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 break 2
8457 done
8458 done
8459 IFS=$as_save_IFS
8463 AWK=$ac_cv_prog_AWK
8464 if test -n "$AWK"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8466 $as_echo "$AWK" >&6; }
8467 else
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8473 test -n "$AWK" && break
8474 done
8476 # We need awk to create options.cc and options.h.
8477 # Bail out if it's missing.
8478 case ${AWK} in
8479 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8480 esac
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8483 $as_echo_n "checking whether ln -s works... " >&6; }
8484 if ${gcc_cv_prog_LN_S+:} false; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 rm -f conftestdata_t
8488 echo >conftestdata_f
8489 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8490 then
8491 gcc_cv_prog_LN_S="ln -s"
8492 else
8493 if ln conftestdata_f conftestdata_t 2>/dev/null
8494 then
8495 gcc_cv_prog_LN_S=ln
8496 else
8497 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8498 then
8499 gcc_cv_prog_LN_S="cp -p"
8500 else
8501 gcc_cv_prog_LN_S=cp
8505 rm -f conftestdata_f conftestdata_t
8508 LN_S="$gcc_cv_prog_LN_S"
8509 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8511 $as_echo "yes" >&6; }
8512 else
8513 if test "$gcc_cv_prog_LN_S" = "ln"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8515 $as_echo "no, using ln" >&6; }
8516 else
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8518 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8523 $as_echo_n "checking whether ln works... " >&6; }
8524 if ${acx_cv_prog_LN+:} false; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 rm -f conftestdata_t
8528 echo >conftestdata_f
8529 if ln conftestdata_f conftestdata_t 2>/dev/null
8530 then
8531 acx_cv_prog_LN=ln
8532 else
8533 acx_cv_prog_LN=no
8535 rm -f conftestdata_f conftestdata_t
8538 if test $acx_cv_prog_LN = no; then
8539 LN="$LN_S"
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8541 $as_echo "no, using $LN" >&6; }
8542 else
8543 LN="$acx_cv_prog_LN"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8545 $as_echo "yes" >&6; }
8548 if test -n "$ac_tool_prefix"; then
8549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552 $as_echo_n "checking for $ac_word... " >&6; }
8553 if ${ac_cv_prog_RANLIB+:} false; then :
8554 $as_echo_n "(cached) " >&6
8555 else
8556 if test -n "$RANLIB"; then
8557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8558 else
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 for as_dir in $PATH
8562 IFS=$as_save_IFS
8563 test -z "$as_dir" && as_dir=.
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568 break 2
8570 done
8571 done
8572 IFS=$as_save_IFS
8576 RANLIB=$ac_cv_prog_RANLIB
8577 if test -n "$RANLIB"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8579 $as_echo "$RANLIB" >&6; }
8580 else
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8587 if test -z "$ac_cv_prog_RANLIB"; then
8588 ac_ct_RANLIB=$RANLIB
8589 # Extract the first word of "ranlib", so it can be a program name with args.
8590 set dummy ranlib; ac_word=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 if test -n "$ac_ct_RANLIB"; then
8597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8598 else
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 for as_dir in $PATH
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8606 ac_cv_prog_ac_ct_RANLIB="ranlib"
8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 break 2
8610 done
8611 done
8612 IFS=$as_save_IFS
8616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8617 if test -n "$ac_ct_RANLIB"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8619 $as_echo "$ac_ct_RANLIB" >&6; }
8620 else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8625 if test "x$ac_ct_RANLIB" = x; then
8626 RANLIB=":"
8627 else
8628 case $cross_compiling:$ac_tool_warned in
8629 yes:)
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8632 ac_tool_warned=yes ;;
8633 esac
8634 RANLIB=$ac_ct_RANLIB
8636 else
8637 RANLIB="$ac_cv_prog_RANLIB"
8640 ranlib_flags=""
8643 # Find a good install program. We prefer a C program (faster),
8644 # so one script is as good as another. But avoid the broken or
8645 # incompatible versions:
8646 # SysV /etc/install, /usr/sbin/install
8647 # SunOS /usr/etc/install
8648 # IRIX /sbin/install
8649 # AIX /bin/install
8650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8652 # ./install, which can be erroneously created by make from ./install.sh.
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8654 $as_echo_n "checking for a BSD compatible install... " >&6; }
8655 if test -z "$INSTALL"; then
8656 if ${ac_cv_path_install+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8660 for ac_dir in $PATH; do
8661 # Account for people who put trailing slashes in PATH elements.
8662 case "$ac_dir/" in
8663 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8665 # OSF1 and SCO ODT 3.0 have their own names for install.
8666 for ac_prog in ginstall scoinst install; do
8667 if test -f $ac_dir/$ac_prog; then
8668 if test $ac_prog = install &&
8669 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8670 # AIX install. It has an incompatible calling convention.
8671 # OSF/1 installbsd also uses dspmsg, but is usable.
8673 else
8674 ac_cv_path_install="$ac_dir/$ac_prog -c"
8675 break 2
8678 done
8680 esac
8681 done
8682 IFS="$ac_save_IFS"
8685 if test "${ac_cv_path_install+set}" = set; then
8686 INSTALL="$ac_cv_path_install"
8687 else
8688 # As a last resort, use the slow shell script. We don't cache a
8689 # path for INSTALL within a source directory, because that will
8690 # break other packages using the cache if that directory is
8691 # removed, or if the path is relative.
8692 INSTALL="$ac_install_sh"
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8696 $as_echo "$INSTALL" >&6; }
8698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8699 # It thinks the first close brace ends the variable substitution.
8700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8705 # See if cmp has --ignore-initial.
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8707 $as_echo_n "checking for cmp's capabilities... " >&6; }
8708 if ${gcc_cv_prog_cmp_skip+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 echo abfoo >t1
8712 echo cdfoo >t2
8713 gcc_cv_prog_cmp_skip=slowcompare
8714 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8715 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8717 else
8718 gcc_cv_prog_cmp_skip=gnucompare
8721 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8722 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8723 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8725 else
8726 gcc_cv_prog_cmp_skip=fastcompare
8730 rm t1 t2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8734 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8735 make_compare_target=$gcc_cv_prog_cmp_skip
8739 # See if we have the mktemp command.
8740 # Extract the first word of "mktemp", so it can be a program name with args.
8741 set dummy mktemp; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 if test -n "$have_mktemp_command"; then
8748 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8749 else
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 for as_dir in $PATH
8753 IFS=$as_save_IFS
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757 ac_cv_prog_have_mktemp_command="yes"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8759 break 2
8761 done
8762 done
8763 IFS=$as_save_IFS
8765 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8768 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8769 if test -n "$have_mktemp_command"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8771 $as_echo "$have_mktemp_command" >&6; }
8772 else
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8779 # See if makeinfo has been installed and is modern enough
8780 # that we can use it.
8782 # Extract the first word of "makeinfo", so it can be a program name with args.
8783 set dummy makeinfo; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if ${ac_cv_prog_MAKEINFO+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 if test -n "$MAKEINFO"; then
8790 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799 ac_cv_prog_MAKEINFO="makeinfo"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 break 2
8803 done
8804 done
8805 IFS=$as_save_IFS
8809 MAKEINFO=$ac_cv_prog_MAKEINFO
8810 if test -n "$MAKEINFO"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8812 $as_echo "$MAKEINFO" >&6; }
8813 else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8819 if test -n "$MAKEINFO"; then
8820 # Found it, now check the version.
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8822 $as_echo_n "checking for modern makeinfo... " >&6; }
8823 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8827 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8829 case $ac_prog_version in
8830 '') gcc_cv_prog_makeinfo_modern=no;;
8831 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8832 *) gcc_cv_prog_makeinfo_modern=no;;
8833 esac
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8837 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8838 else
8839 gcc_cv_prog_makeinfo_modern=no
8841 if test $gcc_cv_prog_makeinfo_modern = no; then
8842 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8845 if test $gcc_cv_prog_makeinfo_modern = no; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8847 *** Makeinfo is missing or too old.
8848 *** Info documentation will not be built." >&5
8849 $as_echo "$as_me: WARNING:
8850 *** Makeinfo is missing or too old.
8851 *** Info documentation will not be built." >&2;}
8852 BUILD_INFO=
8853 else
8854 BUILD_INFO=info
8858 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8859 # If it does, we want to pass it to makeinfo in order to restore the old
8860 # behavior of @{summary,}contents placement.
8861 MAKEINFO_TOC_INLINE_FLAG=
8862 if test x"$MAKEINFO" != x; then :
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8865 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8866 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8870 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8871 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8872 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8873 gcc_cv_texi_add_toc_inline_flags=no
8874 else
8875 gcc_cv_texi_add_toc_inline_flags=yes
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8880 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8881 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8882 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8888 # Is pod2man recent enough to regenerate manpages?
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8890 $as_echo_n "checking for recent Pod::Man... " >&6; }
8891 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8893 $as_echo "yes" >&6; }
8894 GENERATED_MANPAGES=generated-manpages
8895 else
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8898 GENERATED_MANPAGES=
8902 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8904 # How about lex?
8905 for ac_prog in flex
8907 # Extract the first word of "$ac_prog", so it can be a program name with args.
8908 set dummy $ac_prog; ac_word=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if ${ac_cv_prog_FLEX+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 if test -n "$FLEX"; then
8915 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8916 else
8917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918 for as_dir in $PATH
8920 IFS=$as_save_IFS
8921 test -z "$as_dir" && as_dir=.
8922 for ac_exec_ext in '' $ac_executable_extensions; do
8923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8924 ac_cv_prog_FLEX="$ac_prog"
8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926 break 2
8928 done
8929 done
8930 IFS=$as_save_IFS
8934 FLEX=$ac_cv_prog_FLEX
8935 if test -n "$FLEX"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8937 $as_echo "$FLEX" >&6; }
8938 else
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8944 test -n "$FLEX" && break
8945 done
8946 test -n "$FLEX" || FLEX="$MISSING flex"
8949 # Bison?
8950 for ac_prog in bison
8952 # Extract the first word of "$ac_prog", so it can be a program name with args.
8953 set dummy $ac_prog; ac_word=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if ${ac_cv_prog_BISON+:} false; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 if test -n "$BISON"; then
8960 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8961 else
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 for as_dir in $PATH
8965 IFS=$as_save_IFS
8966 test -z "$as_dir" && as_dir=.
8967 for ac_exec_ext in '' $ac_executable_extensions; do
8968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8969 ac_cv_prog_BISON="$ac_prog"
8970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8971 break 2
8973 done
8974 done
8975 IFS=$as_save_IFS
8979 BISON=$ac_cv_prog_BISON
8980 if test -n "$BISON"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8982 $as_echo "$BISON" >&6; }
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8989 test -n "$BISON" && break
8990 done
8991 test -n "$BISON" || BISON="$MISSING bison"
8994 # Python3?
8996 # Extract the first word of "python3", so it can be a program name with args.
8997 set dummy python3; ac_word=$2
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999 $as_echo_n "checking for $ac_word... " >&6; }
9000 if ${ac_cv_prog_PYTHON+:} false; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 if test -n "$PYTHON"; then
9004 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
9005 else
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007 for as_dir in $PATH
9009 IFS=$as_save_IFS
9010 test -z "$as_dir" && as_dir=.
9011 for ac_exec_ext in '' $ac_executable_extensions; do
9012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9013 ac_cv_prog_PYTHON="python3"
9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 break 2
9017 done
9018 done
9019 IFS=$as_save_IFS
9023 PYTHON=$ac_cv_prog_PYTHON
9024 if test -n "$PYTHON"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9026 $as_echo "$PYTHON" >&6; }
9027 else
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029 $as_echo "no" >&6; }
9033 if test -n "$PYTHON"; then
9034 # Found it, now check the version.
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9036 $as_echo_n "checking for modern python3... " >&6; }
9037 if ${gcc_cv_prog_python3_modern+:} false; then :
9038 $as_echo_n "(cached) " >&6
9039 else
9040 ac_prog_version=`eval $PYTHON --version 2>&1 |
9041 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9043 case $ac_prog_version in
9044 '') gcc_cv_prog_python3_modern=no;;
9045 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9046 *) gcc_cv_prog_python3_modern=no;;
9047 esac
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9051 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9052 else
9053 gcc_cv_prog_python3_modern=no
9055 if test $gcc_cv_prog_python3_modern = no; then
9056 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9059 if test $gcc_cv_prog_python3_modern = no; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9061 *** Python3 is missing.
9062 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9063 $as_echo "$as_me: WARNING:
9064 *** Python3 is missing.
9065 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9066 HAVE_PYTHON=no
9067 else
9068 HAVE_PYTHON=yes
9072 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9073 # check for build == host before using them.
9075 # NM
9076 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9077 && test -d ../binutils ; then
9078 NM='${objdir}/../binutils/nm-new'
9079 else
9080 # Extract the first word of "nm", so it can be a program name with args.
9081 set dummy nm; ac_word=$2
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083 $as_echo_n "checking for $ac_word... " >&6; }
9084 if ${ac_cv_prog_NM+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 if test -n "$NM"; then
9088 ac_cv_prog_NM="$NM" # Let the user override the test.
9089 else
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091 for as_dir in $PATH
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
9095 for ac_exec_ext in '' $ac_executable_extensions; do
9096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9097 ac_cv_prog_NM="nm"
9098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 break 2
9101 done
9102 done
9103 IFS=$as_save_IFS
9105 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9108 NM=$ac_cv_prog_NM
9109 if test -n "$NM"; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9111 $as_echo "$NM" >&6; }
9112 else
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 $as_echo "no" >&6; }
9120 # AR
9121 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9122 && test -d ../binutils ; then
9123 AR='${objdir}/../binutils/ar'
9124 else
9125 # Extract the first word of "ar", so it can be a program name with args.
9126 set dummy ar; ac_word=$2
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9128 $as_echo_n "checking for $ac_word... " >&6; }
9129 if ${ac_cv_prog_AR+:} false; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 if test -n "$AR"; then
9133 ac_cv_prog_AR="$AR" # Let the user override the test.
9134 else
9135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136 for as_dir in $PATH
9138 IFS=$as_save_IFS
9139 test -z "$as_dir" && as_dir=.
9140 for ac_exec_ext in '' $ac_executable_extensions; do
9141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9142 ac_cv_prog_AR="ar"
9143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144 break 2
9146 done
9147 done
9148 IFS=$as_save_IFS
9150 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9153 AR=$ac_cv_prog_AR
9154 if test -n "$AR"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9156 $as_echo "$AR" >&6; }
9157 else
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9165 # The jit documentation looks better if built with sphinx, but can be
9166 # built with texinfo if sphinx is not available.
9167 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9168 # Extract the first word of "sphinx-build", so it can be a program name with args.
9169 set dummy sphinx-build; ac_word=$2
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9171 $as_echo_n "checking for $ac_word... " >&6; }
9172 if ${ac_cv_prog_doc_build_sys+:} false; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 if test -n "$doc_build_sys"; then
9176 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9177 else
9178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179 for as_dir in $PATH
9181 IFS=$as_save_IFS
9182 test -z "$as_dir" && as_dir=.
9183 for ac_exec_ext in '' $ac_executable_extensions; do
9184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9185 ac_cv_prog_doc_build_sys="sphinx"
9186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9187 break 2
9189 done
9190 done
9191 IFS=$as_save_IFS
9193 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9196 doc_build_sys=$ac_cv_prog_doc_build_sys
9197 if test -n "$doc_build_sys"; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9199 $as_echo "$doc_build_sys" >&6; }
9200 else
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202 $as_echo "no" >&6; }
9207 # --------------------
9208 # Checks for C headers
9209 # --------------------
9211 # Need to reject headers which give warnings, so that the -Werror bootstrap
9212 # works later. *sigh* This needs to come before all header checks.
9214 ac_c_preproc_warn_flag=yes
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9217 $as_echo_n "checking for ANSI C header files... " >&6; }
9218 if ${ac_cv_header_stdc+:} false; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9223 #include <stdlib.h>
9224 #include <stdarg.h>
9225 #include <string.h>
9226 #include <float.h>
9229 main ()
9233 return 0;
9235 _ACEOF
9236 if ac_fn_cxx_try_compile "$LINENO"; then :
9237 ac_cv_header_stdc=yes
9238 else
9239 ac_cv_header_stdc=no
9241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243 if test $ac_cv_header_stdc = yes; then
9244 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247 #include <string.h>
9249 _ACEOF
9250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9251 $EGREP "memchr" >/dev/null 2>&1; then :
9253 else
9254 ac_cv_header_stdc=no
9256 rm -f conftest*
9260 if test $ac_cv_header_stdc = yes; then
9261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264 #include <stdlib.h>
9266 _ACEOF
9267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9268 $EGREP "free" >/dev/null 2>&1; then :
9270 else
9271 ac_cv_header_stdc=no
9273 rm -f conftest*
9277 if test $ac_cv_header_stdc = yes; then
9278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9279 if test "$cross_compiling" = yes; then :
9281 else
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284 #include <ctype.h>
9285 #include <stdlib.h>
9286 #if ((' ' & 0x0FF) == 0x020)
9287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9289 #else
9290 # define ISLOWER(c) \
9291 (('a' <= (c) && (c) <= 'i') \
9292 || ('j' <= (c) && (c) <= 'r') \
9293 || ('s' <= (c) && (c) <= 'z'))
9294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9295 #endif
9297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9299 main ()
9301 int i;
9302 for (i = 0; i < 256; i++)
9303 if (XOR (islower (i), ISLOWER (i))
9304 || toupper (i) != TOUPPER (i))
9305 return 2;
9306 return 0;
9308 _ACEOF
9309 if ac_fn_cxx_try_run "$LINENO"; then :
9311 else
9312 ac_cv_header_stdc=no
9314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9315 conftest.$ac_objext conftest.beam conftest.$ac_ext
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9321 $as_echo "$ac_cv_header_stdc" >&6; }
9322 if test $ac_cv_header_stdc = yes; then
9324 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9329 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9330 if ${ac_cv_header_time+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9335 #include <sys/types.h>
9336 #include <sys/time.h>
9337 #include <time.h>
9340 main ()
9342 if ((struct tm *) 0)
9343 return 0;
9345 return 0;
9347 _ACEOF
9348 if ac_fn_cxx_try_compile "$LINENO"; then :
9349 ac_cv_header_time=yes
9350 else
9351 ac_cv_header_time=no
9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9356 $as_echo "$ac_cv_header_time" >&6; }
9357 if test $ac_cv_header_time = yes; then
9359 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9364 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9365 if ${gcc_cv_header_string+:} false; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9370 #include <string.h>
9371 #include <strings.h>
9373 main ()
9377 return 0;
9379 _ACEOF
9380 if ac_fn_cxx_try_compile "$LINENO"; then :
9381 gcc_cv_header_string=yes
9382 else
9383 gcc_cv_header_string=no
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9388 $as_echo "$gcc_cv_header_string" >&6; }
9389 if test $gcc_cv_header_string = yes; then
9391 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9396 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9397 if ${ac_cv_header_sys_wait_h+:} false; then :
9398 $as_echo_n "(cached) " >&6
9399 else
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402 #include <sys/types.h>
9403 #include <sys/wait.h>
9404 #ifndef WEXITSTATUS
9405 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9406 #endif
9407 #ifndef WIFEXITED
9408 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9409 #endif
9412 main ()
9414 int s;
9415 wait (&s);
9416 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9418 return 0;
9420 _ACEOF
9421 if ac_fn_cxx_try_compile "$LINENO"; then :
9422 ac_cv_header_sys_wait_h=yes
9423 else
9424 ac_cv_header_sys_wait_h=no
9426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9429 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9430 if test $ac_cv_header_sys_wait_h = yes; then
9432 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9437 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9438 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 #include <sys/types.h>
9444 #include <termios.h>
9445 #ifdef TIOCGWINSZ
9447 #endif
9449 _ACEOF
9450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9451 $EGREP "yes" >/dev/null 2>&1; then :
9452 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9453 else
9454 ac_cv_sys_tiocgwinsz_in_termios_h=no
9456 rm -f conftest*
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9460 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9462 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9464 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9465 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 #include <sys/types.h>
9471 #include <sys/ioctl.h>
9472 #ifdef TIOCGWINSZ
9474 #endif
9476 _ACEOF
9477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9478 $EGREP "yes" >/dev/null 2>&1; then :
9479 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9480 else
9481 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9483 rm -f conftest*
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9487 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9489 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9491 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9496 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9497 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9498 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9499 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9500 do :
9501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9502 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9503 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9504 cat >>confdefs.h <<_ACEOF
9505 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9506 _ACEOF
9509 done
9512 # Check for thread headers.
9513 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9514 if test "x$ac_cv_header_thread_h" = xyes; then :
9515 have_thread_h=yes
9516 else
9517 have_thread_h=
9520 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9521 if test "x$ac_cv_header_pthread_h" = xyes; then :
9522 have_pthread_h=yes
9523 else
9524 have_pthread_h=
9528 # These tests can't be done till we know if we have limits.h.
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9530 $as_echo_n "checking for CHAR_BIT... " >&6; }
9531 if ${gcc_cv_decl_char_bit+:} false; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9536 #ifdef HAVE_LIMITS_H
9537 #include <limits.h>
9538 #endif
9539 #ifdef CHAR_BIT
9540 found
9541 #endif
9542 _ACEOF
9543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9544 $EGREP "found" >/dev/null 2>&1; then :
9545 gcc_cv_decl_char_bit=yes
9546 else
9547 gcc_cv_decl_char_bit=no
9549 rm -f conftest*
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9554 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9555 if test $gcc_cv_decl_char_bit = no; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9557 $as_echo_n "checking number of bits in a byte... " >&6; }
9558 if ${gcc_cv_c_nbby+:} false; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9562 gcc_cv_c_nbby=
9563 while test $i -lt 65; do
9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9568 main ()
9570 switch(0) {
9571 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9572 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9575 return 0;
9577 _ACEOF
9578 if ac_fn_cxx_try_compile "$LINENO"; then :
9579 gcc_cv_c_nbby=$i; break
9581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9582 i=`expr $i + 1`
9583 done
9584 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9588 $as_echo "$gcc_cv_c_nbby" >&6; }
9589 if test $gcc_cv_c_nbby = failed; then
9590 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9591 else
9593 cat >>confdefs.h <<_ACEOF
9594 #define CHAR_BIT $gcc_cv_c_nbby
9595 _ACEOF
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9600 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9601 if ${ac_cv_c_bigendian+:} false; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 ac_cv_c_bigendian=unknown
9605 # See if we're dealing with a universal compiler.
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608 #ifndef __APPLE_CC__
9609 not a universal capable compiler
9610 #endif
9611 typedef int dummy;
9613 _ACEOF
9614 if ac_fn_cxx_try_compile "$LINENO"; then :
9616 # Check for potential -arch flags. It is not universal unless
9617 # there are at least two -arch flags with different values.
9618 ac_arch=
9619 ac_prev=
9620 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9621 if test -n "$ac_prev"; then
9622 case $ac_word in
9623 i?86 | x86_64 | ppc | ppc64)
9624 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9625 ac_arch=$ac_word
9626 else
9627 ac_cv_c_bigendian=universal
9628 break
9631 esac
9632 ac_prev=
9633 elif test "x$ac_word" = "x-arch"; then
9634 ac_prev=arch
9636 done
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 if test $ac_cv_c_bigendian = unknown; then
9640 # See if sys/param.h defines the BYTE_ORDER macro.
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643 #include <sys/types.h>
9644 #include <sys/param.h>
9647 main ()
9649 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9650 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9651 && LITTLE_ENDIAN)
9652 bogus endian macros
9653 #endif
9656 return 0;
9658 _ACEOF
9659 if ac_fn_cxx_try_compile "$LINENO"; then :
9660 # It does; now see whether it defined to BIG_ENDIAN or not.
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9663 #include <sys/types.h>
9664 #include <sys/param.h>
9667 main ()
9669 #if BYTE_ORDER != BIG_ENDIAN
9670 not big endian
9671 #endif
9674 return 0;
9676 _ACEOF
9677 if ac_fn_cxx_try_compile "$LINENO"; then :
9678 ac_cv_c_bigendian=yes
9679 else
9680 ac_cv_c_bigendian=no
9682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686 if test $ac_cv_c_bigendian = unknown; then
9687 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9690 #include <limits.h>
9693 main ()
9695 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9696 bogus endian macros
9697 #endif
9700 return 0;
9702 _ACEOF
9703 if ac_fn_cxx_try_compile "$LINENO"; then :
9704 # It does; now see whether it defined to _BIG_ENDIAN or not.
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9707 #include <limits.h>
9710 main ()
9712 #ifndef _BIG_ENDIAN
9713 not big endian
9714 #endif
9717 return 0;
9719 _ACEOF
9720 if ac_fn_cxx_try_compile "$LINENO"; then :
9721 ac_cv_c_bigendian=yes
9722 else
9723 ac_cv_c_bigendian=no
9725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9729 if test $ac_cv_c_bigendian = unknown; then
9730 # Compile a test program.
9731 if test "$cross_compiling" = yes; then :
9732 # Try to guess by grepping values from an object file.
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9735 short int ascii_mm[] =
9736 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9737 short int ascii_ii[] =
9738 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9739 int use_ascii (int i) {
9740 return ascii_mm[i] + ascii_ii[i];
9742 short int ebcdic_ii[] =
9743 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9744 short int ebcdic_mm[] =
9745 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9746 int use_ebcdic (int i) {
9747 return ebcdic_mm[i] + ebcdic_ii[i];
9749 extern int foo;
9752 main ()
9754 return use_ascii (foo) == use_ebcdic (foo);
9756 return 0;
9758 _ACEOF
9759 if ac_fn_cxx_try_compile "$LINENO"; then :
9760 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9761 ac_cv_c_bigendian=yes
9763 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9764 if test "$ac_cv_c_bigendian" = unknown; then
9765 ac_cv_c_bigendian=no
9766 else
9767 # finding both strings is unlikely to happen, but who knows?
9768 ac_cv_c_bigendian=unknown
9772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773 else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 $ac_includes_default
9778 main ()
9781 /* Are we little or big endian? From Harbison&Steele. */
9782 union
9784 long int l;
9785 char c[sizeof (long int)];
9786 } u;
9787 u.l = 1;
9788 return u.c[sizeof (long int) - 1] == 1;
9791 return 0;
9793 _ACEOF
9794 if ac_fn_cxx_try_run "$LINENO"; then :
9795 ac_cv_c_bigendian=no
9796 else
9797 ac_cv_c_bigendian=yes
9799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9800 conftest.$ac_objext conftest.beam conftest.$ac_ext
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9806 $as_echo "$ac_cv_c_bigendian" >&6; }
9807 case $ac_cv_c_bigendian in #(
9808 yes)
9809 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9810 ;; #(
9812 ;; #(
9813 universal)
9815 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9817 ;; #(
9819 as_fn_error $? "unknown endianness
9820 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9821 esac
9824 # ----------------------
9825 # Checks for C++ headers
9826 # ----------------------
9828 ac_ext=cpp
9829 ac_cpp='$CXXCPP $CPPFLAGS'
9830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9834 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9835 if test -z "$CXXCPP"; then
9836 if ${ac_cv_prog_CXXCPP+:} false; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 # Double quotes because CXXCPP needs to be expanded
9840 for CXXCPP in "$CXX -E" "/lib/cpp"
9842 ac_preproc_ok=false
9843 for ac_cxx_preproc_warn_flag in '' yes
9845 # Use a header file that comes with gcc, so configuring glibc
9846 # with a fresh cross-compiler works.
9847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9848 # <limits.h> exists even on freestanding compilers.
9849 # On the NeXT, cc -E runs the code through the compiler's parser,
9850 # not just through cpp. "Syntax error" is here to catch this case.
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 #ifdef __STDC__
9854 # include <limits.h>
9855 #else
9856 # include <assert.h>
9857 #endif
9858 Syntax error
9859 _ACEOF
9860 if ac_fn_cxx_try_cpp "$LINENO"; then :
9862 else
9863 # Broken: fails on valid input.
9864 continue
9866 rm -f conftest.err conftest.i conftest.$ac_ext
9868 # OK, works on sane cases. Now check whether nonexistent headers
9869 # can be detected and how.
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 #include <ac_nonexistent.h>
9873 _ACEOF
9874 if ac_fn_cxx_try_cpp "$LINENO"; then :
9875 # Broken: success on invalid input.
9876 continue
9877 else
9878 # Passes both tests.
9879 ac_preproc_ok=:
9880 break
9882 rm -f conftest.err conftest.i conftest.$ac_ext
9884 done
9885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9886 rm -f conftest.i conftest.err conftest.$ac_ext
9887 if $ac_preproc_ok; then :
9888 break
9891 done
9892 ac_cv_prog_CXXCPP=$CXXCPP
9895 CXXCPP=$ac_cv_prog_CXXCPP
9896 else
9897 ac_cv_prog_CXXCPP=$CXXCPP
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9900 $as_echo "$CXXCPP" >&6; }
9901 ac_preproc_ok=false
9902 for ac_cxx_preproc_warn_flag in '' yes
9904 # Use a header file that comes with gcc, so configuring glibc
9905 # with a fresh cross-compiler works.
9906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9907 # <limits.h> exists even on freestanding compilers.
9908 # On the NeXT, cc -E runs the code through the compiler's parser,
9909 # not just through cpp. "Syntax error" is here to catch this case.
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912 #ifdef __STDC__
9913 # include <limits.h>
9914 #else
9915 # include <assert.h>
9916 #endif
9917 Syntax error
9918 _ACEOF
9919 if ac_fn_cxx_try_cpp "$LINENO"; then :
9921 else
9922 # Broken: fails on valid input.
9923 continue
9925 rm -f conftest.err conftest.i conftest.$ac_ext
9927 # OK, works on sane cases. Now check whether nonexistent headers
9928 # can be detected and how.
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9931 #include <ac_nonexistent.h>
9932 _ACEOF
9933 if ac_fn_cxx_try_cpp "$LINENO"; then :
9934 # Broken: success on invalid input.
9935 continue
9936 else
9937 # Passes both tests.
9938 ac_preproc_ok=:
9939 break
9941 rm -f conftest.err conftest.i conftest.$ac_ext
9943 done
9944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9945 rm -f conftest.i conftest.err conftest.$ac_ext
9946 if $ac_preproc_ok; then :
9948 else
9949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9952 See \`config.log' for more details" >&5
9953 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9954 See \`config.log' for more details" >&2;}; }
9957 ac_ext=cpp
9958 ac_cpp='$CXXCPP $CPPFLAGS'
9959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9964 for ac_header in unordered_map
9965 do :
9966 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9967 if test "x$ac_cv_header_unordered_map" = xyes; then :
9968 cat >>confdefs.h <<_ACEOF
9969 #define HAVE_UNORDERED_MAP 1
9970 _ACEOF
9973 done
9975 for ac_header in tr1/unordered_map
9976 do :
9977 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9978 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9979 cat >>confdefs.h <<_ACEOF
9980 #define HAVE_TR1_UNORDERED_MAP 1
9981 _ACEOF
9984 done
9986 for ac_header in ext/hash_map
9987 do :
9988 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9989 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9990 cat >>confdefs.h <<_ACEOF
9991 #define HAVE_EXT_HASH_MAP 1
9992 _ACEOF
9995 done
9998 # --------
9999 # Dependency checking.
10000 # --------
10002 rm -rf .tst 2>/dev/null
10003 mkdir .tst 2>/dev/null
10004 if test -d .tst; then
10005 am__leading_dot=.
10006 else
10007 am__leading_dot=_
10009 rmdir .tst 2>/dev/null
10011 DEPDIR="${am__leading_dot}deps"
10013 ac_config_commands="$ac_config_commands depdir"
10016 ac_config_commands="$ac_config_commands gccdepdir"
10019 depcc="$CXX" am_compiler_list=
10021 am_depcomp=$ac_aux_dir/depcomp
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10023 $as_echo_n "checking dependency style of $depcc... " >&6; }
10024 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 if test -f "$am_depcomp"; then
10028 # We make a subdir and do the tests there. Otherwise we can end up
10029 # making bogus files that we don't know about and never remove. For
10030 # instance it was reported that on HP-UX the gcc test will end up
10031 # making a dummy file named `D' -- because `-MD' means `put the output
10032 # in D'.
10033 mkdir conftest.dir
10034 # Copy depcomp to subdir because otherwise we won't find it if we're
10035 # using a relative directory.
10036 cp "$am_depcomp" conftest.dir
10037 cd conftest.dir
10038 # We will build objects and dependencies in a subdirectory because
10039 # it helps to detect inapplicable dependency modes. For instance
10040 # both Tru64's cc and ICC support -MD to output dependencies as a
10041 # side effect of compilation, but ICC will put the dependencies in
10042 # the current directory while Tru64 will put them in the object
10043 # directory.
10044 mkdir sub
10046 am_cv_CXX_dependencies_compiler_type=none
10047 if test "$am_compiler_list" = ""; then
10048 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10050 for depmode in $am_compiler_list; do
10051 if test $depmode = none; then break; fi
10053 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10054 # Setup a source with many dependencies, because some compilers
10055 # like to wrap large dependency lists on column 80 (with \), and
10056 # we should not choose a depcomp mode which is confused by this.
10058 # We need to recreate these files for each test, as the compiler may
10059 # overwrite some of them when testing with obscure command lines.
10060 # This happens at least with the AIX C compiler.
10061 : > sub/conftest.c
10062 for i in 1 2 3 4 5 6; do
10063 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10064 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10065 # Solaris 8's {/usr,}/bin/sh.
10066 touch sub/conftst$i.h
10067 done
10068 echo "include sub/conftest.Po" > confmf
10070 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10071 # mode. It turns out that the SunPro C++ compiler does not properly
10072 # handle `-M -o', and we need to detect this.
10073 depcmd="depmode=$depmode \
10074 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10076 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10077 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10078 if env $depcmd > conftest.err 2>&1 &&
10079 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10080 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10081 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10082 # icc doesn't choke on unknown options, it will just issue warnings
10083 # or remarks (even with -Werror). So we grep stderr for any message
10084 # that says an option was ignored or not supported.
10085 # When given -MP, icc 7.0 and 7.1 complain thusly:
10086 # icc: Command line warning: ignoring option '-M'; no argument required
10087 # The diagnosis changed in icc 8.0:
10088 # icc: Command line remark: option '-MP' not supported
10089 if (grep 'ignoring option' conftest.err ||
10090 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10091 am_cv_CXX_dependencies_compiler_type=$depmode
10092 $as_echo "$as_me:$LINENO: success" >&5
10093 break
10096 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10097 sed -e 's/^/| /' < conftest.err >&5
10098 done
10100 cd ..
10101 rm -rf conftest.dir
10102 else
10103 am_cv_CXX_dependencies_compiler_type=none
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10108 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10109 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10110 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10111 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10116 # --------
10117 # UNSORTED
10118 # --------
10121 # These libraries may be used by collect2.
10122 # We may need a special search path to get them linked.
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10124 $as_echo_n "checking for collect2 libraries... " >&6; }
10125 if ${gcc_cv_collect2_libs+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 save_LIBS="$LIBS"
10129 for libs in '' -lld -lmld \
10130 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10131 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10133 LIBS="$libs"
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10137 /* Override any GCC internal prototype to avoid an error.
10138 Use char because int might match the return type of a GCC
10139 builtin and then its argument prototype would still apply. */
10140 #ifdef __cplusplus
10141 extern "C"
10142 #endif
10143 char ldopen ();
10145 main ()
10147 return ldopen ();
10149 return 0;
10151 _ACEOF
10152 if ac_fn_cxx_try_link "$LINENO"; then :
10153 gcc_cv_collect2_libs="$libs"; break
10155 rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 done
10158 LIBS="$save_LIBS"
10159 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10162 $as_echo "$gcc_cv_collect2_libs" >&6; }
10163 case $gcc_cv_collect2_libs in
10164 "none required") ;;
10165 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10166 esac
10169 # When building Ada code on Alpha, we need exc_resume which is usually in
10170 # -lexc. So test for it.
10171 save_LIBS="$LIBS"
10172 LIBS=
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10174 $as_echo_n "checking for library containing exc_resume... " >&6; }
10175 if ${ac_cv_search_exc_resume+:} false; then :
10176 $as_echo_n "(cached) " >&6
10177 else
10178 ac_func_search_save_LIBS=$LIBS
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10182 /* Override any GCC internal prototype to avoid an error.
10183 Use char because int might match the return type of a GCC
10184 builtin and then its argument prototype would still apply. */
10185 #ifdef __cplusplus
10186 extern "C"
10187 #endif
10188 char exc_resume ();
10190 main ()
10192 return exc_resume ();
10194 return 0;
10196 _ACEOF
10197 for ac_lib in '' exc; do
10198 if test -z "$ac_lib"; then
10199 ac_res="none required"
10200 else
10201 ac_res=-l$ac_lib
10202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10204 if ac_fn_cxx_try_link "$LINENO"; then :
10205 ac_cv_search_exc_resume=$ac_res
10207 rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext
10209 if ${ac_cv_search_exc_resume+:} false; then :
10210 break
10212 done
10213 if ${ac_cv_search_exc_resume+:} false; then :
10215 else
10216 ac_cv_search_exc_resume=no
10218 rm conftest.$ac_ext
10219 LIBS=$ac_func_search_save_LIBS
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10222 $as_echo "$ac_cv_search_exc_resume" >&6; }
10223 ac_res=$ac_cv_search_exc_resume
10224 if test "$ac_res" != no; then :
10225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10229 GNAT_LIBEXC="$LIBS"
10230 LIBS="$save_LIBS"
10233 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10234 save_LIBS="$LIBS"
10235 LIBS=
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10237 $as_echo_n "checking for library containing kstat_open... " >&6; }
10238 if ${ac_cv_search_kstat_open+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 ac_func_search_save_LIBS=$LIBS
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 char kstat_open ();
10253 main ()
10255 return kstat_open ();
10257 return 0;
10259 _ACEOF
10260 for ac_lib in '' kstat; do
10261 if test -z "$ac_lib"; then
10262 ac_res="none required"
10263 else
10264 ac_res=-l$ac_lib
10265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10267 if ac_fn_cxx_try_link "$LINENO"; then :
10268 ac_cv_search_kstat_open=$ac_res
10270 rm -f core conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext
10272 if ${ac_cv_search_kstat_open+:} false; then :
10273 break
10275 done
10276 if ${ac_cv_search_kstat_open+:} false; then :
10278 else
10279 ac_cv_search_kstat_open=no
10281 rm conftest.$ac_ext
10282 LIBS=$ac_func_search_save_LIBS
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10285 $as_echo "$ac_cv_search_kstat_open" >&6; }
10286 ac_res=$ac_cv_search_kstat_open
10287 if test "$ac_res" != no; then :
10288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10292 EXTRA_GCC_LIBS="$LIBS"
10293 LIBS="$save_LIBS"
10296 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10297 # C++ needs those for libcody.
10298 save_LIBS="$LIBS"
10299 LIBS=
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10302 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10303 if ${ac_cv_search_gethostbyname+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 ac_func_search_save_LIBS=$LIBS
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10310 /* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10313 #ifdef __cplusplus
10314 extern "C"
10315 #endif
10316 char gethostbyname ();
10318 main ()
10320 return gethostbyname ();
10322 return 0;
10324 _ACEOF
10325 for ac_lib in '' nsl; do
10326 if test -z "$ac_lib"; then
10327 ac_res="none required"
10328 else
10329 ac_res=-l$ac_lib
10330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10332 if ac_fn_cxx_try_link "$LINENO"; then :
10333 ac_cv_search_gethostbyname=$ac_res
10335 rm -f core conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext
10337 if ${ac_cv_search_gethostbyname+:} false; then :
10338 break
10340 done
10341 if ${ac_cv_search_gethostbyname+:} false; then :
10343 else
10344 ac_cv_search_gethostbyname=no
10346 rm conftest.$ac_ext
10347 LIBS=$ac_func_search_save_LIBS
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10350 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10351 ac_res=$ac_cv_search_gethostbyname
10352 if test "$ac_res" != no; then :
10353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10358 $as_echo_n "checking for library containing socket... " >&6; }
10359 if ${ac_cv_search_socket+:} false; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 ac_func_search_save_LIBS=$LIBS
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10366 /* Override any GCC internal prototype to avoid an error.
10367 Use char because int might match the return type of a GCC
10368 builtin and then its argument prototype would still apply. */
10369 #ifdef __cplusplus
10370 extern "C"
10371 #endif
10372 char socket ();
10374 main ()
10376 return socket ();
10378 return 0;
10380 _ACEOF
10381 for ac_lib in '' socket; do
10382 if test -z "$ac_lib"; then
10383 ac_res="none required"
10384 else
10385 ac_res=-l$ac_lib
10386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10388 if ac_fn_cxx_try_link "$LINENO"; then :
10389 ac_cv_search_socket=$ac_res
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext
10393 if ${ac_cv_search_socket+:} false; then :
10394 break
10396 done
10397 if ${ac_cv_search_socket+:} false; then :
10399 else
10400 ac_cv_search_socket=no
10402 rm conftest.$ac_ext
10403 LIBS=$ac_func_search_save_LIBS
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10406 $as_echo "$ac_cv_search_socket" >&6; }
10407 ac_res=$ac_cv_search_socket
10408 if test "$ac_res" != no; then :
10409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10411 else
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10414 $as_echo_n "checking for socket in -lsocket... " >&6; }
10415 if ${ac_cv_lib_socket_socket+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 ac_check_lib_save_LIBS=$LIBS
10419 LIBS="-lsocket -lnsl $LIBS"
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char socket ();
10431 main ()
10433 return socket ();
10435 return 0;
10437 _ACEOF
10438 if ac_fn_cxx_try_link "$LINENO"; then :
10439 ac_cv_lib_socket_socket=yes
10440 else
10441 ac_cv_lib_socket_socket=no
10443 rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10448 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10449 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10450 LIBS="-lsocket -lnsl $LIBS"
10456 NETLIBS="$LIBS"
10457 LIBS="$save_LIBS"
10460 # Some systems put ldexp and frexp in libm instead of libc; assume
10461 # they're both in the same place. jcf-dump needs them.
10462 save_LIBS="$LIBS"
10463 LIBS=
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10465 $as_echo_n "checking for library containing ldexp... " >&6; }
10466 if ${ac_cv_search_ldexp+:} false; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 ac_func_search_save_LIBS=$LIBS
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10473 /* Override any GCC internal prototype to avoid an error.
10474 Use char because int might match the return type of a GCC
10475 builtin and then its argument prototype would still apply. */
10476 #ifdef __cplusplus
10477 extern "C"
10478 #endif
10479 char ldexp ();
10481 main ()
10483 return ldexp ();
10485 return 0;
10487 _ACEOF
10488 for ac_lib in '' m; do
10489 if test -z "$ac_lib"; then
10490 ac_res="none required"
10491 else
10492 ac_res=-l$ac_lib
10493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10495 if ac_fn_cxx_try_link "$LINENO"; then :
10496 ac_cv_search_ldexp=$ac_res
10498 rm -f core conftest.err conftest.$ac_objext \
10499 conftest$ac_exeext
10500 if ${ac_cv_search_ldexp+:} false; then :
10501 break
10503 done
10504 if ${ac_cv_search_ldexp+:} false; then :
10506 else
10507 ac_cv_search_ldexp=no
10509 rm conftest.$ac_ext
10510 LIBS=$ac_func_search_save_LIBS
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10513 $as_echo "$ac_cv_search_ldexp" >&6; }
10514 ac_res=$ac_cv_search_ldexp
10515 if test "$ac_res" != no; then :
10516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10520 LDEXP_LIB="$LIBS"
10521 LIBS="$save_LIBS"
10524 # Some systems need dlopen
10525 save_LIBS="$LIBS"
10526 LIBS=
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10528 $as_echo_n "checking for library containing dlopen... " >&6; }
10529 if ${ac_cv_search_dlopen+:} false; then :
10530 $as_echo_n "(cached) " >&6
10531 else
10532 ac_func_search_save_LIBS=$LIBS
10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10536 /* Override any GCC internal prototype to avoid an error.
10537 Use char because int might match the return type of a GCC
10538 builtin and then its argument prototype would still apply. */
10539 #ifdef __cplusplus
10540 extern "C"
10541 #endif
10542 char dlopen ();
10544 main ()
10546 return dlopen ();
10548 return 0;
10550 _ACEOF
10551 for ac_lib in '' dl; do
10552 if test -z "$ac_lib"; then
10553 ac_res="none required"
10554 else
10555 ac_res=-l$ac_lib
10556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10558 if ac_fn_cxx_try_link "$LINENO"; then :
10559 ac_cv_search_dlopen=$ac_res
10561 rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext
10563 if ${ac_cv_search_dlopen+:} false; then :
10564 break
10566 done
10567 if ${ac_cv_search_dlopen+:} false; then :
10569 else
10570 ac_cv_search_dlopen=no
10572 rm conftest.$ac_ext
10573 LIBS=$ac_func_search_save_LIBS
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10576 $as_echo "$ac_cv_search_dlopen" >&6; }
10577 ac_res=$ac_cv_search_dlopen
10578 if test "$ac_res" != no; then :
10579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10583 DL_LIB="$LIBS"
10584 LIBS="$save_LIBS"
10587 # Use <inttypes.h> only if it exists,
10588 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10589 # PRId64
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10591 $as_echo_n "checking for inttypes.h... " >&6; }
10592 if ${gcc_cv_header_inttypes_h+:} false; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #define __STDC_FORMAT_MACROS
10598 #include <sys/types.h>
10599 #include <inttypes.h>
10601 main ()
10603 intmax_t i = -1;
10604 #ifndef PRId64
10605 choke me
10606 #endif
10608 return 0;
10610 _ACEOF
10611 if ac_fn_cxx_try_compile "$LINENO"; then :
10612 gcc_cv_header_inttypes_h=yes
10613 else
10614 gcc_cv_header_inttypes_h=no
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10620 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10621 if test $gcc_cv_header_inttypes_h = yes; then
10623 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10627 # Look for the ZSTD package.
10628 ZSTD_INCLUDE=
10629 ZSTD_LIB=
10632 ZSTD_CPPFLAGS=
10633 ZSTD_LDFLAGS=
10637 # Check whether --with-zstd was given.
10638 if test "${with_zstd+set}" = set; then :
10639 withval=$with_zstd;
10643 # Check whether --with-zstd-include was given.
10644 if test "${with_zstd_include+set}" = set; then :
10645 withval=$with_zstd_include;
10649 # Check whether --with-zstd-lib was given.
10650 if test "${with_zstd_lib+set}" = set; then :
10651 withval=$with_zstd_lib;
10654 case "x$with_zstd" in
10655 x) ;;
10656 xno)
10657 ZSTD_INCLUDE=
10658 ZSTD_LIB=
10660 *) ZSTD_INCLUDE=$with_zstd/include
10661 ZSTD_LIB=$with_zstd/lib
10663 esac
10665 if test "x$with_zstd" != xno; then
10666 if test "x$with_zstd_include" != x; then
10667 ZSTD_INCLUDE=$with_zstd_include
10669 if test "x$with_zstd_lib" != x; then
10670 ZSTD_LIB=$with_zstd_lib
10672 if test "x$ZSTD_INCLUDE" != x \
10673 && test "x$ZSTD_INCLUDE" != xno; then
10674 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10676 if test "x$ZSTD_LIB" != x \
10677 && test "x$ZSTD_LIB" != xno; then
10678 ZSTD_LDFLAGS=-L$ZSTD_LIB
10681 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10682 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10684 # LTO can use zstd compression algorithm
10685 save_LIBS="$LIBS"
10686 LIBS=
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10688 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10689 if ${ac_cv_search_ZSTD_compress+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 ac_func_search_save_LIBS=$LIBS
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char ZSTD_compress ();
10704 main ()
10706 return ZSTD_compress ();
10708 return 0;
10710 _ACEOF
10711 for ac_lib in '' zstd; do
10712 if test -z "$ac_lib"; then
10713 ac_res="none required"
10714 else
10715 ac_res=-l$ac_lib
10716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10718 if ac_fn_cxx_try_link "$LINENO"; then :
10719 ac_cv_search_ZSTD_compress=$ac_res
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext
10723 if ${ac_cv_search_ZSTD_compress+:} false; then :
10724 break
10726 done
10727 if ${ac_cv_search_ZSTD_compress+:} false; then :
10729 else
10730 ac_cv_search_ZSTD_compress=no
10732 rm conftest.$ac_ext
10733 LIBS=$ac_func_search_save_LIBS
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10736 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10737 ac_res=$ac_cv_search_ZSTD_compress
10738 if test "$ac_res" != no; then :
10739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10741 else
10742 gcc_cv_header_zstd_h=no
10745 ZSTD_LIB="$LIBS"
10746 LIBS="$save_LIBS"
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10750 $as_echo_n "checking for zstd.h... " >&6; }
10751 if ${gcc_cv_header_zstd_h+:} false; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 # We require version 1.3.0 or later. This is the first version that has
10755 # ZSTD_getFrameContentSize.
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10758 #include <zstd.h>
10759 #if ZSTD_VERSION_NUMBER < 10300
10760 #error "need zstd 1.3.0 or better"
10761 #endif
10763 main ()
10767 return 0;
10769 _ACEOF
10770 if ac_fn_cxx_try_compile "$LINENO"; then :
10771 gcc_cv_header_zstd_h=yes
10772 else
10773 gcc_cv_header_zstd_h=no
10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10779 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10780 if test $gcc_cv_header_zstd_h = yes; then
10782 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10784 elif test "x$with_zstd" != x; then
10785 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10791 for ac_func in times clock kill getrlimit setrlimit atoq \
10792 popen sysconf strsignal getrusage nl_langinfo \
10793 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10794 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
10795 do :
10796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10797 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10798 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10799 cat >>confdefs.h <<_ACEOF
10800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10801 _ACEOF
10804 done
10807 if test x$ac_cv_func_mbstowcs = xyes; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10809 $as_echo_n "checking whether mbstowcs works... " >&6; }
10810 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 if test "$cross_compiling" = yes; then :
10814 gcc_cv_func_mbstowcs_works=yes
10815 else
10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10818 #include <stdlib.h>
10819 int main()
10821 mbstowcs(0, "", 0);
10822 return 0;
10824 _ACEOF
10825 if ac_fn_cxx_try_run "$LINENO"; then :
10826 gcc_cv_func_mbstowcs_works=yes
10827 else
10828 gcc_cv_func_mbstowcs_works=no
10830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10831 conftest.$ac_objext conftest.beam conftest.$ac_ext
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10836 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10837 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10839 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10844 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10845 if test "x$ac_cv_type_ssize_t" = xyes; then :
10847 else
10849 cat >>confdefs.h <<_ACEOF
10850 #define ssize_t int
10851 _ACEOF
10855 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10856 if test "x$ac_cv_type_caddr_t" = xyes; then :
10858 else
10860 cat >>confdefs.h <<_ACEOF
10861 #define caddr_t char *
10862 _ACEOF
10866 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10868 if test "x$ac_cv_type_sighander_t" = xyes; then :
10870 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10876 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10877 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10878 gcc_header_sys_mman_h=yes
10879 else
10880 gcc_header_sys_mman_h=no
10883 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10884 if test "x$ac_cv_func_mmap" = xyes; then :
10885 gcc_func_mmap=yes
10886 else
10887 gcc_func_mmap=no
10890 if test "$gcc_header_sys_mman_h" != yes \
10891 || test "$gcc_func_mmap" != yes; then
10892 gcc_cv_func_mmap_file=no
10893 gcc_cv_func_mmap_dev_zero=no
10894 gcc_cv_func_mmap_anon=no
10895 else
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10897 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10898 if ${gcc_cv_func_mmap_file+:} false; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 # Add a system to this blacklist if
10902 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10903 # memory area containing the same data that you'd get if you applied
10904 # read() to the same fd. The only system known to have a problem here
10905 # is VMS, where text files have record structure.
10906 case "$host_os" in
10907 *vms* | ultrix*)
10908 gcc_cv_func_mmap_file=no ;;
10910 gcc_cv_func_mmap_file=yes;;
10911 esac
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10914 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10916 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10917 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 # Add a system to this blacklist if it has mmap() but /dev/zero
10921 # does not exist, or if mmapping /dev/zero does not give anonymous
10922 # zeroed pages with both the following properties:
10923 # 1. If you map N consecutive pages in with one call, and then
10924 # unmap any subset of those pages, the pages that were not
10925 # explicitly unmapped remain accessible.
10926 # 2. If you map two adjacent blocks of memory and then unmap them
10927 # both at once, they must both go away.
10928 # Systems known to be in this category are Windows (all variants),
10929 # VMS, and Darwin.
10930 case "$host_os" in
10931 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10932 gcc_cv_func_mmap_dev_zero=no ;;
10934 gcc_cv_func_mmap_dev_zero=yes;;
10935 esac
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10938 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10940 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10942 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10943 if ${gcc_cv_decl_map_anon+:} false; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #include <sys/types.h>
10949 #include <sys/mman.h>
10950 #include <unistd.h>
10952 #ifndef MAP_ANONYMOUS
10953 #define MAP_ANONYMOUS MAP_ANON
10954 #endif
10957 main ()
10959 int n = MAP_ANONYMOUS;
10961 return 0;
10963 _ACEOF
10964 if ac_fn_cxx_try_compile "$LINENO"; then :
10965 gcc_cv_decl_map_anon=yes
10966 else
10967 gcc_cv_decl_map_anon=no
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10972 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10974 if test $gcc_cv_decl_map_anon = no; then
10975 gcc_cv_func_mmap_anon=no
10976 else
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10978 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10979 if ${gcc_cv_func_mmap_anon+:} false; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10983 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10984 # doesn't give anonymous zeroed pages with the same properties listed
10985 # above for use of /dev/zero.
10986 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10987 case "$host_os" in
10988 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10989 gcc_cv_func_mmap_anon=no ;;
10991 gcc_cv_func_mmap_anon=yes;;
10992 esac
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10995 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10999 if test $gcc_cv_func_mmap_file = yes; then
11001 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11004 if test $gcc_cv_func_mmap_dev_zero = yes; then
11006 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11009 if test $gcc_cv_func_mmap_anon = yes; then
11011 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11016 case "${host}" in
11017 *-*-*vms*)
11018 # Under VMS, vfork works very differently than on Unix. The standard test
11019 # won't work, and it isn't easily adaptable. It makes more sense to
11020 # just force it.
11021 ac_cv_func_vfork_works=yes
11023 esac
11024 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11025 if test "x$ac_cv_type_pid_t" = xyes; then :
11027 else
11029 cat >>confdefs.h <<_ACEOF
11030 #define pid_t int
11031 _ACEOF
11035 for ac_header in vfork.h
11036 do :
11037 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11038 if test "x$ac_cv_header_vfork_h" = xyes; then :
11039 cat >>confdefs.h <<_ACEOF
11040 #define HAVE_VFORK_H 1
11041 _ACEOF
11044 done
11046 for ac_func in fork vfork
11047 do :
11048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11049 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11050 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11051 cat >>confdefs.h <<_ACEOF
11052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11053 _ACEOF
11056 done
11058 if test "x$ac_cv_func_fork" = xyes; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11060 $as_echo_n "checking for working fork... " >&6; }
11061 if ${ac_cv_func_fork_works+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 if test "$cross_compiling" = yes; then :
11065 ac_cv_func_fork_works=cross
11066 else
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11069 $ac_includes_default
11071 main ()
11074 /* By Ruediger Kuhlmann. */
11075 return fork () < 0;
11078 return 0;
11080 _ACEOF
11081 if ac_fn_cxx_try_run "$LINENO"; then :
11082 ac_cv_func_fork_works=yes
11083 else
11084 ac_cv_func_fork_works=no
11086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11087 conftest.$ac_objext conftest.beam conftest.$ac_ext
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11092 $as_echo "$ac_cv_func_fork_works" >&6; }
11094 else
11095 ac_cv_func_fork_works=$ac_cv_func_fork
11097 if test "x$ac_cv_func_fork_works" = xcross; then
11098 case $host in
11099 *-*-amigaos* | *-*-msdosdjgpp*)
11100 # Override, as these systems have only a dummy fork() stub
11101 ac_cv_func_fork_works=no
11104 ac_cv_func_fork_works=yes
11106 esac
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11108 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11110 ac_cv_func_vfork_works=$ac_cv_func_vfork
11111 if test "x$ac_cv_func_vfork" = xyes; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11113 $as_echo_n "checking for working vfork... " >&6; }
11114 if ${ac_cv_func_vfork_works+:} false; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 if test "$cross_compiling" = yes; then :
11118 ac_cv_func_vfork_works=cross
11119 else
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11122 /* Thanks to Paul Eggert for this test. */
11123 $ac_includes_default
11124 #include <sys/wait.h>
11125 #ifdef HAVE_VFORK_H
11126 # include <vfork.h>
11127 #endif
11128 /* On some sparc systems, changes by the child to local and incoming
11129 argument registers are propagated back to the parent. The compiler
11130 is told about this with #include <vfork.h>, but some compilers
11131 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11132 static variable whose address is put into a register that is
11133 clobbered by the vfork. */
11134 static void
11135 #ifdef __cplusplus
11136 sparc_address_test (int arg)
11137 # else
11138 sparc_address_test (arg) int arg;
11139 #endif
11141 static pid_t child;
11142 if (!child) {
11143 child = vfork ();
11144 if (child < 0) {
11145 perror ("vfork");
11146 _exit(2);
11148 if (!child) {
11149 arg = getpid();
11150 write(-1, "", 0);
11151 _exit (arg);
11157 main ()
11159 pid_t parent = getpid ();
11160 pid_t child;
11162 sparc_address_test (0);
11164 child = vfork ();
11166 if (child == 0) {
11167 /* Here is another test for sparc vfork register problems. This
11168 test uses lots of local variables, at least as many local
11169 variables as main has allocated so far including compiler
11170 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11171 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11172 reuse the register of parent for one of the local variables,
11173 since it will think that parent can't possibly be used any more
11174 in this routine. Assigning to the local variable will thus
11175 munge parent in the parent process. */
11176 pid_t
11177 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11178 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11179 /* Convince the compiler that p..p7 are live; otherwise, it might
11180 use the same hardware register for all 8 local variables. */
11181 if (p != p1 || p != p2 || p != p3 || p != p4
11182 || p != p5 || p != p6 || p != p7)
11183 _exit(1);
11185 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11186 from child file descriptors. If the child closes a descriptor
11187 before it execs or exits, this munges the parent's descriptor
11188 as well. Test for this by closing stdout in the child. */
11189 _exit(close(fileno(stdout)) != 0);
11190 } else {
11191 int status;
11192 struct stat st;
11194 while (wait(&status) != child)
11196 return (
11197 /* Was there some problem with vforking? */
11198 child < 0
11200 /* Did the child fail? (This shouldn't happen.) */
11201 || status
11203 /* Did the vfork/compiler bug occur? */
11204 || parent != getpid()
11206 /* Did the file descriptor bug occur? */
11207 || fstat(fileno(stdout), &st) != 0
11211 _ACEOF
11212 if ac_fn_cxx_try_run "$LINENO"; then :
11213 ac_cv_func_vfork_works=yes
11214 else
11215 ac_cv_func_vfork_works=no
11217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11218 conftest.$ac_objext conftest.beam conftest.$ac_ext
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11223 $as_echo "$ac_cv_func_vfork_works" >&6; }
11226 if test "x$ac_cv_func_fork_works" = xcross; then
11227 ac_cv_func_vfork_works=$ac_cv_func_vfork
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11229 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11232 if test "x$ac_cv_func_vfork_works" = xyes; then
11234 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11236 else
11238 $as_echo "#define vfork fork" >>confdefs.h
11241 if test "x$ac_cv_func_fork_works" = xyes; then
11243 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11249 if test "X$prefix" = "XNONE"; then
11250 acl_final_prefix="$ac_default_prefix"
11251 else
11252 acl_final_prefix="$prefix"
11254 if test "X$exec_prefix" = "XNONE"; then
11255 acl_final_exec_prefix='${prefix}'
11256 else
11257 acl_final_exec_prefix="$exec_prefix"
11259 acl_save_prefix="$prefix"
11260 prefix="$acl_final_prefix"
11261 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11262 prefix="$acl_save_prefix"
11265 # Check whether --with-gnu-ld was given.
11266 if test "${with_gnu_ld+set}" = set; then :
11267 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11268 else
11269 with_gnu_ld=no
11272 # Prepare PATH_SEPARATOR.
11273 # The user is always right.
11274 if test "${PATH_SEPARATOR+set}" != set; then
11275 echo "#! /bin/sh" >conf$$.sh
11276 echo "exit 0" >>conf$$.sh
11277 chmod +x conf$$.sh
11278 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11279 PATH_SEPARATOR=';'
11280 else
11281 PATH_SEPARATOR=:
11283 rm -f conf$$.sh
11285 ac_prog=ld
11286 if test "$GCC" = yes; then
11287 # Check if gcc -print-prog-name=ld gives a path.
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11289 $as_echo_n "checking for ld used by GCC... " >&6; }
11290 case $host in
11291 *-*-mingw*)
11292 # gcc leaves a trailing carriage return which upsets mingw
11293 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11295 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11296 esac
11297 case $ac_prog in
11298 # Accept absolute paths.
11299 [\\/]* | [A-Za-z]:[\\/]*)
11300 re_direlt='/[^/][^/]*/\.\./'
11301 # Canonicalize the path of ld
11302 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11303 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11304 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11305 done
11306 test -z "$LD" && LD="$ac_prog"
11309 # If it fails, then pretend we aren't using GCC.
11310 ac_prog=ld
11313 # If it is relative, then search for the first ld in PATH.
11314 with_gnu_ld=unknown
11316 esac
11317 elif test "$with_gnu_ld" = yes; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11319 $as_echo_n "checking for GNU ld... " >&6; }
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11322 $as_echo_n "checking for non-GNU ld... " >&6; }
11324 if ${acl_cv_path_LD+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 if test -z "$LD"; then
11328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11329 for ac_dir in $PATH; do
11330 test -z "$ac_dir" && ac_dir=.
11331 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11332 acl_cv_path_LD="$ac_dir/$ac_prog"
11333 # Check to see if the program is GNU ld. I'd rather use --version,
11334 # but apparently some GNU ld's only accept -v.
11335 # Break only if it was the GNU/non-GNU ld that we prefer.
11336 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11337 test "$with_gnu_ld" != no && break
11338 else
11339 test "$with_gnu_ld" != yes && break
11342 done
11343 IFS="$ac_save_ifs"
11344 else
11345 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11349 LD="$acl_cv_path_LD"
11350 if test -n "$LD"; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11352 $as_echo "$LD" >&6; }
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11357 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11359 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11360 if ${acl_cv_prog_gnu_ld+:} false; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11364 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11365 acl_cv_prog_gnu_ld=yes
11366 else
11367 acl_cv_prog_gnu_ld=no
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11371 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11372 with_gnu_ld=$acl_cv_prog_gnu_ld
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11377 $as_echo_n "checking for shared library run path origin... " >&6; }
11378 if ${acl_cv_rpath+:} false; then :
11379 $as_echo_n "(cached) " >&6
11380 else
11382 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11383 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11384 . ./conftest.sh
11385 rm -f ./conftest.sh
11386 acl_cv_rpath=done
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11390 $as_echo "$acl_cv_rpath" >&6; }
11391 wl="$acl_cv_wl"
11392 libext="$acl_cv_libext"
11393 shlibext="$acl_cv_shlibext"
11394 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11395 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11396 hardcode_direct="$acl_cv_hardcode_direct"
11397 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11398 # Check whether --enable-rpath was given.
11399 if test "${enable_rpath+set}" = set; then :
11400 enableval=$enable_rpath; :
11401 else
11402 enable_rpath=yes
11412 use_additional=yes
11414 acl_save_prefix="$prefix"
11415 prefix="$acl_final_prefix"
11416 acl_save_exec_prefix="$exec_prefix"
11417 exec_prefix="$acl_final_exec_prefix"
11419 eval additional_includedir=\"$includedir\"
11420 eval additional_libdir=\"$libdir\"
11422 exec_prefix="$acl_save_exec_prefix"
11423 prefix="$acl_save_prefix"
11426 # Check whether --with-libiconv-prefix was given.
11427 if test "${with_libiconv_prefix+set}" = set; then :
11428 withval=$with_libiconv_prefix;
11429 if test "X$withval" = "Xno"; then
11430 use_additional=no
11431 else
11432 if test "X$withval" = "X"; then
11434 acl_save_prefix="$prefix"
11435 prefix="$acl_final_prefix"
11436 acl_save_exec_prefix="$exec_prefix"
11437 exec_prefix="$acl_final_exec_prefix"
11439 eval additional_includedir=\"$includedir\"
11440 eval additional_libdir=\"$libdir\"
11442 exec_prefix="$acl_save_exec_prefix"
11443 prefix="$acl_save_prefix"
11445 else
11446 additional_includedir="$withval/include"
11447 additional_libdir="$withval/lib"
11454 # Check whether --with-libiconv-type was given.
11455 if test "${with_libiconv_type+set}" = set; then :
11456 withval=$with_libiconv_type; with_libiconv_type=$withval
11457 else
11458 with_libiconv_type=auto
11461 lib_type=`eval echo \$with_libiconv_type`
11463 LIBICONV=
11464 LTLIBICONV=
11465 INCICONV=
11466 rpathdirs=
11467 ltrpathdirs=
11468 names_already_handled=
11469 names_next_round='iconv '
11470 while test -n "$names_next_round"; do
11471 names_this_round="$names_next_round"
11472 names_next_round=
11473 for name in $names_this_round; do
11474 already_handled=
11475 for n in $names_already_handled; do
11476 if test "$n" = "$name"; then
11477 already_handled=yes
11478 break
11480 done
11481 if test -z "$already_handled"; then
11482 names_already_handled="$names_already_handled $name"
11483 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11484 eval value=\"\$HAVE_LIB$uppername\"
11485 if test -n "$value"; then
11486 if test "$value" = yes; then
11487 eval value=\"\$LIB$uppername\"
11488 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11489 eval value=\"\$LTLIB$uppername\"
11490 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11491 else
11494 else
11495 found_dir=
11496 found_la=
11497 found_so=
11498 found_a=
11499 if test $use_additional = yes; then
11500 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11501 found_dir="$additional_libdir"
11502 found_so="$additional_libdir/lib$name.$shlibext"
11503 if test -f "$additional_libdir/lib$name.la"; then
11504 found_la="$additional_libdir/lib$name.la"
11506 elif test x$lib_type != xshared; then
11507 if test -f "$additional_libdir/lib$name.$libext"; then
11508 found_dir="$additional_libdir"
11509 found_a="$additional_libdir/lib$name.$libext"
11510 if test -f "$additional_libdir/lib$name.la"; then
11511 found_la="$additional_libdir/lib$name.la"
11516 if test "X$found_dir" = "X"; then
11517 for x in $LDFLAGS $LTLIBICONV; do
11519 acl_save_prefix="$prefix"
11520 prefix="$acl_final_prefix"
11521 acl_save_exec_prefix="$exec_prefix"
11522 exec_prefix="$acl_final_exec_prefix"
11523 eval x=\"$x\"
11524 exec_prefix="$acl_save_exec_prefix"
11525 prefix="$acl_save_prefix"
11527 case "$x" in
11528 -L*)
11529 dir=`echo "X$x" | sed -e 's/^X-L//'`
11530 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11531 found_dir="$dir"
11532 found_so="$dir/lib$name.$shlibext"
11533 if test -f "$dir/lib$name.la"; then
11534 found_la="$dir/lib$name.la"
11536 elif test x$lib_type != xshared; then
11537 if test -f "$dir/lib$name.$libext"; then
11538 found_dir="$dir"
11539 found_a="$dir/lib$name.$libext"
11540 if test -f "$dir/lib$name.la"; then
11541 found_la="$dir/lib$name.la"
11546 esac
11547 if test "X$found_dir" != "X"; then
11548 break
11550 done
11552 if test "X$found_dir" != "X"; then
11553 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11554 if test "X$found_so" != "X"; then
11555 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11556 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11557 else
11558 haveit=
11559 for x in $ltrpathdirs; do
11560 if test "X$x" = "X$found_dir"; then
11561 haveit=yes
11562 break
11564 done
11565 if test -z "$haveit"; then
11566 ltrpathdirs="$ltrpathdirs $found_dir"
11568 if test "$hardcode_direct" = yes; then
11569 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11570 else
11571 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11572 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11573 haveit=
11574 for x in $rpathdirs; do
11575 if test "X$x" = "X$found_dir"; then
11576 haveit=yes
11577 break
11579 done
11580 if test -z "$haveit"; then
11581 rpathdirs="$rpathdirs $found_dir"
11583 else
11584 haveit=
11585 for x in $LDFLAGS $LIBICONV; do
11587 acl_save_prefix="$prefix"
11588 prefix="$acl_final_prefix"
11589 acl_save_exec_prefix="$exec_prefix"
11590 exec_prefix="$acl_final_exec_prefix"
11591 eval x=\"$x\"
11592 exec_prefix="$acl_save_exec_prefix"
11593 prefix="$acl_save_prefix"
11595 if test "X$x" = "X-L$found_dir"; then
11596 haveit=yes
11597 break
11599 done
11600 if test -z "$haveit"; then
11601 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11603 if test "$hardcode_minus_L" != no; then
11604 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11605 else
11606 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11611 else
11612 if test "X$found_a" != "X"; then
11613 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11614 else
11615 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11618 additional_includedir=
11619 case "$found_dir" in
11620 */lib | */lib/)
11621 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11622 additional_includedir="$basedir/include"
11624 esac
11625 if test "X$additional_includedir" != "X"; then
11626 if test "X$additional_includedir" != "X/usr/include"; then
11627 haveit=
11628 if test "X$additional_includedir" = "X/usr/local/include"; then
11629 if test -n "$GCC"; then
11630 case $host_os in
11631 linux*) haveit=yes;;
11632 esac
11635 if test -z "$haveit"; then
11636 for x in $CPPFLAGS $INCICONV; do
11638 acl_save_prefix="$prefix"
11639 prefix="$acl_final_prefix"
11640 acl_save_exec_prefix="$exec_prefix"
11641 exec_prefix="$acl_final_exec_prefix"
11642 eval x=\"$x\"
11643 exec_prefix="$acl_save_exec_prefix"
11644 prefix="$acl_save_prefix"
11646 if test "X$x" = "X-I$additional_includedir"; then
11647 haveit=yes
11648 break
11650 done
11651 if test -z "$haveit"; then
11652 if test -d "$additional_includedir"; then
11653 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11659 if test -n "$found_la"; then
11660 save_libdir="$libdir"
11661 case "$found_la" in
11662 */* | *\\*) . "$found_la" ;;
11663 *) . "./$found_la" ;;
11664 esac
11665 libdir="$save_libdir"
11666 for dep in $dependency_libs; do
11667 case "$dep" in
11668 -L*)
11669 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11670 if test "X$additional_libdir" != "X/usr/lib"; then
11671 haveit=
11672 if test "X$additional_libdir" = "X/usr/local/lib"; then
11673 if test -n "$GCC"; then
11674 case $host_os in
11675 linux*) haveit=yes;;
11676 esac
11679 if test -z "$haveit"; then
11680 haveit=
11681 for x in $LDFLAGS $LIBICONV; do
11683 acl_save_prefix="$prefix"
11684 prefix="$acl_final_prefix"
11685 acl_save_exec_prefix="$exec_prefix"
11686 exec_prefix="$acl_final_exec_prefix"
11687 eval x=\"$x\"
11688 exec_prefix="$acl_save_exec_prefix"
11689 prefix="$acl_save_prefix"
11691 if test "X$x" = "X-L$additional_libdir"; then
11692 haveit=yes
11693 break
11695 done
11696 if test -z "$haveit"; then
11697 if test -d "$additional_libdir"; then
11698 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11701 haveit=
11702 for x in $LDFLAGS $LTLIBICONV; do
11704 acl_save_prefix="$prefix"
11705 prefix="$acl_final_prefix"
11706 acl_save_exec_prefix="$exec_prefix"
11707 exec_prefix="$acl_final_exec_prefix"
11708 eval x=\"$x\"
11709 exec_prefix="$acl_save_exec_prefix"
11710 prefix="$acl_save_prefix"
11712 if test "X$x" = "X-L$additional_libdir"; then
11713 haveit=yes
11714 break
11716 done
11717 if test -z "$haveit"; then
11718 if test -d "$additional_libdir"; then
11719 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11725 -R*)
11726 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11727 if test "$enable_rpath" != no; then
11728 haveit=
11729 for x in $rpathdirs; do
11730 if test "X$x" = "X$dir"; then
11731 haveit=yes
11732 break
11734 done
11735 if test -z "$haveit"; then
11736 rpathdirs="$rpathdirs $dir"
11738 haveit=
11739 for x in $ltrpathdirs; do
11740 if test "X$x" = "X$dir"; then
11741 haveit=yes
11742 break
11744 done
11745 if test -z "$haveit"; then
11746 ltrpathdirs="$ltrpathdirs $dir"
11750 -l*)
11751 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11753 *.la)
11754 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11757 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11758 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11760 esac
11761 done
11763 else
11764 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11765 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11766 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11767 else
11768 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11769 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11774 done
11775 done
11776 if test "X$rpathdirs" != "X"; then
11777 if test -n "$hardcode_libdir_separator"; then
11778 alldirs=
11779 for found_dir in $rpathdirs; do
11780 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11781 done
11782 acl_save_libdir="$libdir"
11783 libdir="$alldirs"
11784 eval flag=\"$hardcode_libdir_flag_spec\"
11785 libdir="$acl_save_libdir"
11786 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11787 else
11788 for found_dir in $rpathdirs; do
11789 acl_save_libdir="$libdir"
11790 libdir="$found_dir"
11791 eval flag=\"$hardcode_libdir_flag_spec\"
11792 libdir="$acl_save_libdir"
11793 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11794 done
11797 if test "X$ltrpathdirs" != "X"; then
11798 for found_dir in $ltrpathdirs; do
11799 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11800 done
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11810 $as_echo_n "checking for iconv... " >&6; }
11811 if ${am_cv_func_iconv+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11815 am_cv_func_iconv="no, consider installing GNU libiconv"
11816 am_cv_lib_iconv=no
11817 am_save_CPPFLAGS="$CPPFLAGS"
11818 CPPFLAGS="$CPPFLAGS $INCICONV"
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11821 #include <stdlib.h>
11822 #include <iconv.h>
11824 main ()
11826 iconv_t cd = iconv_open("","");
11827 iconv(cd,NULL,NULL,NULL,NULL);
11828 iconv_close(cd);
11830 return 0;
11832 _ACEOF
11833 if ac_fn_cxx_try_link "$LINENO"; then :
11834 am_cv_func_iconv=yes
11836 rm -f core conftest.err conftest.$ac_objext \
11837 conftest$ac_exeext conftest.$ac_ext
11838 CPPFLAGS="$am_save_CPPFLAGS"
11840 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11841 for _libs in .libs _libs; do
11842 am_save_CPPFLAGS="$CPPFLAGS"
11843 am_save_LIBS="$LIBS"
11844 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11845 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11848 #include <stdlib.h>
11849 #include <iconv.h>
11851 main ()
11853 iconv_t cd = iconv_open("","");
11854 iconv(cd,NULL,NULL,NULL,NULL);
11855 iconv_close(cd);
11857 return 0;
11859 _ACEOF
11860 if ac_fn_cxx_try_link "$LINENO"; then :
11861 INCICONV="-I../libiconv/include"
11862 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11863 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11864 am_cv_lib_iconv=yes
11865 am_cv_func_iconv=yes
11867 rm -f core conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
11869 CPPFLAGS="$am_save_CPPFLAGS"
11870 LIBS="$am_save_LIBS"
11871 if test "$am_cv_func_iconv" = "yes"; then
11872 break
11874 done
11877 if test "$am_cv_func_iconv" != yes; then
11878 am_save_CPPFLAGS="$CPPFLAGS"
11879 am_save_LIBS="$LIBS"
11880 CPPFLAGS="$CPPFLAGS $INCICONV"
11881 LIBS="$LIBS $LIBICONV"
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884 #include <stdlib.h>
11885 #include <iconv.h>
11887 main ()
11889 iconv_t cd = iconv_open("","");
11890 iconv(cd,NULL,NULL,NULL,NULL);
11891 iconv_close(cd);
11893 return 0;
11895 _ACEOF
11896 if ac_fn_cxx_try_link "$LINENO"; then :
11897 am_cv_lib_iconv=yes
11898 am_cv_func_iconv=yes
11900 rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11902 CPPFLAGS="$am_save_CPPFLAGS"
11903 LIBS="$am_save_LIBS"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11908 $as_echo "$am_cv_func_iconv" >&6; }
11909 if test "$am_cv_func_iconv" = yes; then
11911 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11914 if test "$am_cv_lib_iconv" = yes; then
11916 for element in $INCICONV; do
11917 haveit=
11918 for x in $CPPFLAGS; do
11920 acl_save_prefix="$prefix"
11921 prefix="$acl_final_prefix"
11922 acl_save_exec_prefix="$exec_prefix"
11923 exec_prefix="$acl_final_exec_prefix"
11924 eval x=\"$x\"
11925 exec_prefix="$acl_save_exec_prefix"
11926 prefix="$acl_save_prefix"
11928 if test "X$x" = "X$element"; then
11929 haveit=yes
11930 break
11932 done
11933 if test -z "$haveit"; then
11934 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11936 done
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11939 $as_echo_n "checking how to link with libiconv... " >&6; }
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11941 $as_echo "$LIBICONV" >&6; }
11942 else
11943 LIBICONV=
11944 LTLIBICONV=
11949 if test "$am_cv_func_iconv" = yes; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11951 $as_echo_n "checking for iconv declaration... " >&6; }
11952 if ${am_cv_proto_iconv+:} false; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11959 #include <stdlib.h>
11960 #include <iconv.h>
11961 extern
11962 #ifdef __cplusplus
11964 #endif
11965 #if defined(__STDC__) || defined(__cplusplus)
11966 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11967 #else
11968 size_t iconv();
11969 #endif
11972 main ()
11976 return 0;
11978 _ACEOF
11979 if ac_fn_cxx_try_compile "$LINENO"; then :
11980 am_cv_proto_iconv_arg1=""
11981 else
11982 am_cv_proto_iconv_arg1="const"
11984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11985 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11988 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11990 }$am_cv_proto_iconv" >&5
11991 $as_echo "${ac_t:-
11992 }$am_cv_proto_iconv" >&6; }
11994 cat >>confdefs.h <<_ACEOF
11995 #define ICONV_CONST $am_cv_proto_iconv_arg1
11996 _ACEOF
12001 # Until we have in-tree GNU iconv:
12002 LIBICONV_DEP=
12003 if test -f "$LTLIBICONV"; then
12004 LIBICONV_DEP=$LTLIBICONV
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12010 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12011 if ${am_cv_val_LC_MESSAGES+:} false; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12016 #include <locale.h>
12018 main ()
12020 return LC_MESSAGES
12022 return 0;
12024 _ACEOF
12025 if ac_fn_cxx_try_link "$LINENO"; then :
12026 am_cv_val_LC_MESSAGES=yes
12027 else
12028 am_cv_val_LC_MESSAGES=no
12030 rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12034 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12035 if test $am_cv_val_LC_MESSAGES = yes; then
12037 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12044 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12045 if ${am_cv_langinfo_codeset+:} false; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 #include <langinfo.h>
12052 main ()
12054 char* cs = nl_langinfo(CODESET);
12056 return 0;
12058 _ACEOF
12059 if ac_fn_cxx_try_link "$LINENO"; then :
12060 am_cv_langinfo_codeset=yes
12061 else
12062 am_cv_langinfo_codeset=no
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12069 $as_echo "$am_cv_langinfo_codeset" >&6; }
12070 if test $am_cv_langinfo_codeset = yes; then
12072 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12077 # We will need to find libiberty.h and ansidecl.h
12078 saved_CFLAGS="$CFLAGS"
12079 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12080 saved_CXXFLAGS="$CXXFLAGS"
12081 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12083 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12084 # normal autoconf function for these. But force definition of
12085 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12086 # basename handling in libiberty.h.
12087 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12088 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12089 #undef HAVE_DECL_BASENAME
12090 #define HAVE_DECL_BASENAME 1
12091 #include \"ansidecl.h\"
12092 #include \"system.h\"
12094 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12095 ac_have_decl=1
12096 else
12097 ac_have_decl=0
12100 cat >>confdefs.h <<_ACEOF
12101 #define HAVE_DECL_BASENAME $ac_have_decl
12102 _ACEOF
12103 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12104 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12105 #undef HAVE_DECL_BASENAME
12106 #define HAVE_DECL_BASENAME 1
12107 #include \"ansidecl.h\"
12108 #include \"system.h\"
12110 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12111 ac_have_decl=1
12112 else
12113 ac_have_decl=0
12116 cat >>confdefs.h <<_ACEOF
12117 #define HAVE_DECL_STRSTR $ac_have_decl
12118 _ACEOF
12121 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12122 madvise stpcpy strnlen strsignal strverscmp \
12123 strtol strtoul strtoll strtoull setenv unsetenv \
12124 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12125 free getopt clock getpagesize ffs 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
12127 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12129 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12130 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135 #undef $ac_tr_decl
12136 #define $ac_tr_decl 1
12138 #include "ansidecl.h"
12139 #include "system.h"
12142 main ()
12144 #ifndef $ac_func
12145 char *(*pfn) = (char *(*)) $ac_func ;
12146 #endif
12148 return 0;
12150 _ACEOF
12151 if ac_fn_cxx_try_compile "$LINENO"; then :
12152 eval "gcc_cv_have_decl_$ac_func=yes"
12153 else
12154 eval "gcc_cv_have_decl_$ac_func=no"
12156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12159 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12161 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12162 #define $ac_tr_decl 1
12163 _ACEOF
12165 else
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12168 #define $ac_tr_decl 0
12169 _ACEOF
12173 done
12176 for ac_func in getrlimit setrlimit getrusage
12178 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12180 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12181 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12186 #undef $ac_tr_decl
12187 #define $ac_tr_decl 1
12189 #include "ansidecl.h"
12190 #include "system.h"
12191 #ifdef HAVE_SYS_RESOURCE_H
12192 #include <sys/resource.h>
12193 #endif
12197 main ()
12199 #ifndef $ac_func
12200 char *(*pfn) = (char *(*)) $ac_func ;
12201 #endif
12203 return 0;
12205 _ACEOF
12206 if ac_fn_cxx_try_compile "$LINENO"; then :
12207 eval "gcc_cv_have_decl_$ac_func=yes"
12208 else
12209 eval "gcc_cv_have_decl_$ac_func=no"
12211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12216 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12217 #define $ac_tr_decl 1
12218 _ACEOF
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12223 #define $ac_tr_decl 0
12224 _ACEOF
12228 done
12231 for ac_func in mallinfo mallinfo2
12233 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12235 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12236 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241 #undef $ac_tr_decl
12242 #define $ac_tr_decl 1
12244 #include "ansidecl.h"
12245 #include "system.h"
12246 #ifdef HAVE_MALLOC_H
12247 #include <malloc.h>
12248 #endif
12252 main ()
12254 #ifndef $ac_func
12255 char *(*pfn) = (char *(*)) $ac_func ;
12256 #endif
12258 return 0;
12260 _ACEOF
12261 if ac_fn_cxx_try_compile "$LINENO"; then :
12262 eval "gcc_cv_have_decl_$ac_func=yes"
12263 else
12264 eval "gcc_cv_have_decl_$ac_func=no"
12266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12271 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12272 #define $ac_tr_decl 1
12273 _ACEOF
12275 else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12278 #define $ac_tr_decl 0
12279 _ACEOF
12283 done
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12289 #include "ansidecl.h"
12290 #include "system.h"
12291 #ifdef HAVE_SYS_RESOURCE_H
12292 #include <sys/resource.h>
12293 #endif
12296 main ()
12298 rlim_t l = 0;
12300 return 0;
12302 _ACEOF
12303 if ac_fn_cxx_try_compile "$LINENO"; then :
12305 else
12307 $as_echo "#define rlim_t long" >>confdefs.h
12310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12313 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12314 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12315 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12316 for ac_func in ldgetname
12318 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12320 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12321 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12322 $as_echo_n "(cached) " >&6
12323 else
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326 #undef $ac_tr_decl
12327 #define $ac_tr_decl 1
12329 #include "ansidecl.h"
12330 #include "system.h"
12331 #ifdef HAVE_LDFCN_H
12332 #undef FREAD
12333 #undef FWRITE
12334 #include <ldfcn.h>
12335 #endif
12339 main ()
12341 #ifndef $ac_func
12342 char *(*pfn) = (char *(*)) $ac_func ;
12343 #endif
12345 return 0;
12347 _ACEOF
12348 if ac_fn_cxx_try_compile "$LINENO"; then :
12349 eval "gcc_cv_have_decl_$ac_func=yes"
12350 else
12351 eval "gcc_cv_have_decl_$ac_func=no"
12353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12359 #define $ac_tr_decl 1
12360 _ACEOF
12362 else
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12365 #define $ac_tr_decl 0
12366 _ACEOF
12370 done
12373 for ac_func in times
12375 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12377 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12378 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383 #undef $ac_tr_decl
12384 #define $ac_tr_decl 1
12386 #include "ansidecl.h"
12387 #include "system.h"
12388 #ifdef HAVE_SYS_TIMES_H
12389 #include <sys/times.h>
12390 #endif
12394 main ()
12396 #ifndef $ac_func
12397 char *(*pfn) = (char *(*)) $ac_func ;
12398 #endif
12400 return 0;
12402 _ACEOF
12403 if ac_fn_cxx_try_compile "$LINENO"; then :
12404 eval "gcc_cv_have_decl_$ac_func=yes"
12405 else
12406 eval "gcc_cv_have_decl_$ac_func=no"
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12413 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12414 #define $ac_tr_decl 1
12415 _ACEOF
12417 else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12420 #define $ac_tr_decl 0
12421 _ACEOF
12425 done
12428 for ac_func in sigaltstack
12430 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12432 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12433 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438 #undef $ac_tr_decl
12439 #define $ac_tr_decl 1
12441 #include "ansidecl.h"
12442 #include "system.h"
12443 #include <signal.h>
12447 main ()
12449 #ifndef $ac_func
12450 char *(*pfn) = (char *(*)) $ac_func ;
12451 #endif
12453 return 0;
12455 _ACEOF
12456 if ac_fn_cxx_try_compile "$LINENO"; then :
12457 eval "gcc_cv_have_decl_$ac_func=yes"
12458 else
12459 eval "gcc_cv_have_decl_$ac_func=no"
12461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12464 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12466 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12467 #define $ac_tr_decl 1
12468 _ACEOF
12470 else
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12473 #define $ac_tr_decl 0
12474 _ACEOF
12478 done
12481 # More time-related stuff.
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12483 $as_echo_n "checking for struct tms... " >&6; }
12484 if ${ac_cv_struct_tms+:} false; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12491 #include "ansidecl.h"
12492 #include "system.h"
12493 #ifdef HAVE_SYS_TIMES_H
12494 #include <sys/times.h>
12495 #endif
12498 main ()
12500 struct tms tms;
12502 return 0;
12504 _ACEOF
12505 if ac_fn_cxx_try_compile "$LINENO"; then :
12506 ac_cv_struct_tms=yes
12507 else
12508 ac_cv_struct_tms=no
12510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12513 $as_echo "$ac_cv_struct_tms" >&6; }
12514 if test $ac_cv_struct_tms = yes; then
12516 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12520 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12521 # revisit after autoconf 2.50.
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12523 $as_echo_n "checking for clock_t... " >&6; }
12524 if ${gcc_cv_type_clock_t+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12531 #include "ansidecl.h"
12532 #include "system.h"
12535 main ()
12537 clock_t x;
12539 return 0;
12541 _ACEOF
12542 if ac_fn_cxx_try_compile "$LINENO"; then :
12543 gcc_cv_type_clock_t=yes
12544 else
12545 gcc_cv_type_clock_t=no
12547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12550 $as_echo "$gcc_cv_type_clock_t" >&6; }
12551 if test $gcc_cv_type_clock_t = yes; then
12553 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12557 # Check if F_SETLKW is supported by fcntl.
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12559 $as_echo_n "checking for F_SETLKW... " >&6; }
12560 if ${ac_cv_f_setlkw+:} false; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12567 #include <fcntl.h>
12569 main ()
12572 struct flock fl;
12573 fl.l_whence = 0;
12574 fl.l_start = 0;
12575 fl.l_len = 0;
12576 fl.l_pid = 0;
12577 return fcntl (1, F_SETLKW, &fl);
12579 return 0;
12581 _ACEOF
12582 if ac_fn_cxx_try_compile "$LINENO"; then :
12583 ac_cv_f_setlkw=yes
12584 else
12585 ac_cv_f_setlkw=no
12587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12590 $as_echo "$ac_cv_f_setlkw" >&6; }
12591 if test $ac_cv_f_setlkw = yes; then
12593 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12597 # Check if O_CLOEXEC is defined by fcntl
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12599 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12600 if ${ac_cv_o_cloexec+:} false; then :
12601 $as_echo_n "(cached) " >&6
12602 else
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12607 #include <fcntl.h>
12609 main ()
12612 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12614 return 0;
12616 _ACEOF
12617 if ac_fn_cxx_try_compile "$LINENO"; then :
12618 ac_cv_o_cloexec=yes
12619 else
12620 ac_cv_o_cloexec=no
12622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12625 $as_echo "$ac_cv_o_cloexec" >&6; }
12626 if test $ac_cv_o_cloexec = yes; then
12628 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12632 # Check if O_NONBLOCK is defined by fcntl
12633 for ac_header in fcntl.h
12634 do :
12635 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12636 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12637 cat >>confdefs.h <<_ACEOF
12638 #define HAVE_FCNTL_H 1
12639 _ACEOF
12642 done
12644 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12646 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12650 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12652 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12657 # C++ Modules would like some networking features to provide the mapping
12658 # server. You can still use modules without them though.
12659 # The following network-related checks could probably do with some
12660 # Windows and other non-linux defenses and checking.
12662 # Local socket connectivity wants AF_UNIX networking
12663 # Check for AF_UNIX networking
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12665 $as_echo_n "checking for AF_UNIX... " >&6; }
12666 if ${ac_cv_af_unix+:} false; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12673 #include <sys/types.h>
12674 #include <sys/socket.h>
12675 #include <sys/un.h>
12676 #include <netinet/in.h>
12678 main ()
12681 sockaddr_un un;
12682 un.sun_family = AF_UNSPEC;
12683 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12684 connect (fd, (sockaddr *)&un, sizeof (un));
12686 return 0;
12688 _ACEOF
12689 if ac_fn_cxx_try_compile "$LINENO"; then :
12690 ac_cv_af_unix=yes
12691 else
12692 ac_cv_af_unix=no
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12697 $as_echo "$ac_cv_af_unix" >&6; }
12698 if test $ac_cv_af_unix = yes; then
12700 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12704 # Remote socket connectivity wants AF_INET6 networking
12705 # Check for AF_INET6 networking
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12707 $as_echo_n "checking for AF_INET6... " >&6; }
12708 if ${ac_cv_af_inet6+:} false; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12715 #include <sys/types.h>
12716 #include <sys/socket.h>
12717 #include <netinet/in.h>
12718 #include <netdb.h>
12720 main ()
12723 sockaddr_in6 in6;
12724 in6.sin6_family = AF_UNSPEC;
12725 struct addrinfo *addrs = 0;
12726 struct addrinfo hints;
12727 hints.ai_flags = 0;
12728 hints.ai_family = AF_INET6;
12729 hints.ai_socktype = SOCK_STREAM;
12730 hints.ai_protocol = 0;
12731 hints.ai_canonname = 0;
12732 hints.ai_addr = 0;
12733 hints.ai_next = 0;
12734 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12735 const char *str = gai_strerror (e);
12736 freeaddrinfo (addrs);
12737 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12738 connect (fd, (sockaddr *)&in6, sizeof (in6));
12740 return 0;
12742 _ACEOF
12743 if ac_fn_cxx_try_compile "$LINENO"; then :
12744 ac_cv_af_inet6=yes
12745 else
12746 ac_cv_af_inet6=no
12748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12751 $as_echo "$ac_cv_af_inet6" >&6; }
12752 if test $ac_cv_af_inet6 = yes; then
12754 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12758 # Check if _LK_LOCK is supported by _locking
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12760 $as_echo_n "checking for _LK_LOCK... " >&6; }
12761 if ${ac_cv_lk_lock+:} false; then :
12762 $as_echo_n "(cached) " >&6
12763 else
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12768 #include <io.h>
12769 #include <sys/locking.h>
12771 main ()
12774 int fd;
12775 return _locking (fd, _LK_LOCK, 0);
12777 return 0;
12779 _ACEOF
12780 if ac_fn_cxx_try_compile "$LINENO"; then :
12781 ac_cv_lk_lock=yes
12782 else
12783 ac_cv_lk_lock=no
12785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12788 $as_echo "$ac_cv_lk_lock" >&6; }
12789 if test $ac_cv_lk_lock = yes; then
12791 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12795 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12796 CFLAGS="$saved_CFLAGS"
12797 CXXFLAGS="$saved_CXXFLAGS"
12799 # mkdir takes a single argument on some systems.
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12801 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12802 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12808 #include <sys/types.h>
12809 #ifdef HAVE_SYS_STAT_H
12810 # include <sys/stat.h>
12811 #endif
12812 #ifdef HAVE_UNISTD_H
12813 # include <unistd.h>
12814 #endif
12815 #ifdef HAVE_DIRECT_H
12816 # include <direct.h>
12817 #endif
12819 main ()
12821 mkdir ("foo", 0);
12823 return 0;
12825 _ACEOF
12826 if ac_fn_cxx_try_compile "$LINENO"; then :
12827 gcc_cv_mkdir_takes_one_arg=no
12828 else
12829 gcc_cv_mkdir_takes_one_arg=yes
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12834 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12835 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12837 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12842 # File extensions
12843 manext='.1'
12844 objext='.o'
12848 # With Setjmp/Longjmp based exception handling.
12849 # Check whether --enable-sjlj-exceptions was given.
12850 if test "${enable_sjlj_exceptions+set}" = set; then :
12851 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12852 else
12853 case $target in
12854 lm32*-*-*)
12855 force_sjlj_exceptions=yes
12856 enableval=yes
12859 force_sjlj_exceptions=no
12861 esac
12864 if test $force_sjlj_exceptions = yes; then
12865 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12867 cat >>confdefs.h <<_ACEOF
12868 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12869 _ACEOF
12873 # --------------------------------------------------------
12874 # Build, host, and target specific configuration fragments
12875 # --------------------------------------------------------
12877 # Collect build-machine-specific information.
12878 . ${srcdir}/config.build || exit 1
12880 # Collect host-machine-specific information.
12881 . ${srcdir}/config.host || exit 1
12883 target_gtfiles=
12885 # Collect target-machine-specific information.
12886 . ${srcdir}/config.gcc || exit 1
12888 extra_objs="${host_extra_objs} ${extra_objs}"
12889 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12891 # Default the target-machine variables that were not explicitly set.
12892 if test x"$tm_file" = x
12893 then tm_file=$cpu_type/$cpu_type.h; fi
12895 if test x"$extra_headers" = x
12896 then extra_headers=; fi
12898 if test x$md_file = x
12899 then md_file=$cpu_type/$cpu_type.md; fi
12901 if test x$out_file = x
12902 then out_file=$cpu_type/$cpu_type.cc; fi
12904 if test x"$tmake_file" = x
12905 then tmake_file=$cpu_type/t-$cpu_type
12908 # Support --enable-initfini-array.
12909 if test x$enable_initfini_array != xno; then
12910 tm_file="${tm_file} initfini-array.h"
12913 if test x"$dwarf2" = xyes
12914 then tm_file="$tm_file tm-dwarf2.h"
12917 # Say what files are being used for the output code and MD file.
12918 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12919 echo "Using \`$srcdir/config/$md_file' as machine description file."
12921 # If any of the xm_file variables contain nonexistent files, warn
12922 # about them and drop them.
12925 for x in $build_xm_file; do
12926 if test -f $srcdir/config/$x
12927 then bx="$bx $x"
12928 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12929 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12931 done
12932 build_xm_file="$bx"
12935 for x in $host_xm_file; do
12936 if test -f $srcdir/config/$x
12937 then hx="$hx $x"
12938 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12939 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12941 done
12942 host_xm_file="$hx"
12945 for x in $xm_file; do
12946 if test -f $srcdir/config/$x
12947 then tx="$tx $x"
12948 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12949 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12951 done
12952 xm_file="$tx"
12954 count=a
12955 for f in $tm_file; do
12956 count=${count}x
12957 done
12958 if test $count = ax; then
12959 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12960 else
12961 echo "Using the following target machine macro files:"
12962 for f in $tm_file; do
12963 echo " $srcdir/config/$f"
12964 done
12967 if test x$use_long_long_for_widest_fast_int = xyes; then
12969 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12973 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12975 cat >>confdefs.h <<_ACEOF
12976 #define HAVE_GNU_LD $gnu_ld_bool
12977 _ACEOF
12980 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12982 cat >>confdefs.h <<_ACEOF
12983 #define HAVE_GNU_AS $gnu_as_bool
12984 _ACEOF
12987 count=a
12988 for f in $host_xm_file; do
12989 count=${count}x
12990 done
12991 if test $count = a; then
12993 elif test $count = ax; then
12994 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12995 else
12996 echo "Using the following host machine macro files:"
12997 for f in $host_xm_file; do
12998 echo " $srcdir/config/$f"
12999 done
13001 echo "Using ${out_host_hook_obj} for host machine hooks."
13003 if test "$host_xm_file" != "$build_xm_file"; then
13004 count=a
13005 for f in $build_xm_file; do
13006 count=${count}x
13007 done
13008 if test $count = a; then
13010 elif test $count = ax; then
13011 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13012 else
13013 echo "Using the following build machine macro files:"
13014 for f in $build_xm_file; do
13015 echo " $srcdir/config/$f"
13016 done
13020 if test -n "$configured_native_system_header_dir"; then
13021 native_system_header_dir=$configured_native_system_header_dir
13023 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
13026 case ${host} in
13027 powerpc*-*-darwin*)
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13029 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13030 if ${gcc_cv_mcontext_underscores+:} false; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13036 #include <sys/cdefs.h>
13037 #include <sys/signal.h>
13038 #include <ucontext.h>
13039 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13041 _ACEOF
13042 if ac_fn_cxx_try_compile "$LINENO"; then :
13043 gcc_cv_mcontext_underscores=no
13044 else
13045 gcc_cv_mcontext_underscores=yes
13047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13050 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13051 if test $gcc_cv_mcontext_underscores = yes; then
13053 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13057 esac
13059 # ---------
13060 # Threading
13061 # ---------
13063 # Check if a valid thread package
13064 case ${enable_threads} in
13065 "" | no)
13066 # No threads
13067 target_thread_file='single'
13069 yes)
13070 # default
13071 target_thread_file='single'
13073 aix | dce | lynx | mipssde | posix | rtems | \
13074 single | tpf | vxworks | win32 | mcf)
13075 target_thread_file=${enable_threads}
13078 echo "${enable_threads} is an unknown thread package" 1>&2
13079 exit 1
13081 esac
13083 if test x${thread_file} = x; then
13084 # No thread file set by target-specific clauses in config.gcc,
13085 # so use file chosen by default logic above
13086 thread_file=${target_thread_file}
13089 # --------
13090 # UNSORTED
13091 # --------
13093 use_cxa_atexit=no
13094 if test x$enable___cxa_atexit = xyes || \
13095 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13096 if test x$host = x$target; then
13097 case $host in
13098 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13099 # keyed to flag_use_cxa_atexit
13100 *-*-mingw32*)
13101 use_cxa_atexit=yes
13103 powerpc-ibm-aix*)
13104 use_cxa_atexit=yes
13107 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13108 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13109 use_cxa_atexit=yes
13110 else
13111 echo "__cxa_atexit can't be enabled on this target"
13115 esac
13116 else
13117 # We can't check for __cxa_atexit when building a cross, so assume
13118 # it is available
13119 use_cxa_atexit=yes
13121 if test x$use_cxa_atexit = xyes; then
13123 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13128 # Look for a file containing extra machine modes.
13129 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13130 extra_modes_file='$(srcdir)'/config/${extra_modes}
13133 cat >>confdefs.h <<_ACEOF
13134 #define EXTRA_MODES_FILE "config/$extra_modes"
13135 _ACEOF
13139 # Convert extra_options into a form suitable for Makefile use.
13140 extra_opt_files=
13141 all_opt_files=
13142 for f in $extra_options; do
13143 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13144 all_opt_files="$all_opt_files $srcdir/config/$f"
13145 done
13148 # auto-host.h is the file containing items generated by autoconf and is
13149 # the first file included by config.h.
13150 # If host=build, it is correct to have bconfig include auto-host.h
13151 # as well. If host!=build, we are in error and need to do more
13152 # work to find out the build config parameters.
13153 if test x$host = x$build
13154 then
13155 build_auto=auto-host.h
13156 HAVE_AUTO_BUILD='# '
13157 else
13158 # We create a subdir, then run autoconf in the subdir.
13159 # To prevent recursion we set host and build for the new
13160 # invocation of configure to the build for this invocation
13161 # of configure.
13162 tempdir=build.$$
13163 rm -rf $tempdir
13164 mkdir $tempdir
13165 cd $tempdir
13166 case ${srcdir} in
13167 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13168 *) realsrcdir=../${srcdir};;
13169 esac
13170 # Clearing GMPINC is necessary to prevent host headers being
13171 # used by the build compiler. Defining GENERATOR_FILE stops
13172 # system.h from including gmp.h.
13173 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13174 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13175 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13176 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13177 ${realsrcdir}/configure \
13178 --enable-languages=${enable_languages-all} \
13179 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13180 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13181 --target=$target_alias --host=$build_alias \
13182 --build=$build_alias || exit # retaining $tempdir
13184 # We just finished tests for the build machine, so rename
13185 # the file auto-build.h in the gcc directory.
13186 mv auto-host.h ../auto-build.h
13187 cd ..
13188 rm -rf $tempdir
13189 build_auto=auto-build.h
13190 HAVE_AUTO_BUILD=
13195 tm_file="${tm_file} defaults.h"
13196 tm_p_file="${tm_p_file} tm-preds.h"
13197 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13198 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13199 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13200 # put this back in temporarily.
13201 xm_file="auto-host.h ansidecl.h ${xm_file}"
13203 # --------
13204 # UNSORTED
13205 # --------
13207 # Compile in configure arguments.
13208 if test -f configargs.h ; then
13209 # Being re-configured.
13210 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13211 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13212 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13213 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13215 else
13216 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13219 # Double all backslashes and backslash all quotes to turn
13220 # gcc_config_arguments into a C string.
13221 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13222 $gcc_config_arguments
13224 gcc_config_arguments_str=`cat conftest.out`
13225 rm -f conftest.out
13227 cat > configargs.h <<EOF
13228 /* Generated automatically. */
13229 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13230 static const char thread_model[] = "$thread_file";
13232 static const struct {
13233 const char *name, *value;
13234 } configure_default_options[] = $configure_default_options;
13237 gcc_BASEVER=`cat $srcdir/BASE-VER`
13238 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13239 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13240 if test -f $srcdir/REVISION ; then
13241 gcc_REVISION=`cat $srcdir/REVISION`
13242 else
13243 gcc_REVISION=""
13245 cat > plugin-version.h <<EOF
13246 #include "configargs.h"
13248 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13249 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13250 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13251 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13253 static char basever[] = "$gcc_BASEVER";
13254 static char datestamp[] = "$gcc_DATESTAMP";
13255 static char devphase[] = "$gcc_DEVPHASE";
13256 static char revision[] = "$gcc_REVISION";
13258 /* FIXME plugins: We should make the version information more precise.
13259 One way to do is to add a checksum. */
13261 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13262 devphase, revision,
13263 configuration_arguments};
13266 # Determine what GCC version number to use in filesystem paths.
13268 get_gcc_base_ver="cat"
13270 # Check whether --with-gcc-major-version-only was given.
13271 if test "${with_gcc_major_version_only+set}" = set; then :
13272 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13273 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13281 # Internationalization
13282 # If we haven't got the data from the intl directory,
13283 # assume NLS is disabled.
13284 USE_NLS=no
13285 LIBINTL=
13286 LIBINTL_DEP=
13287 INCINTL=
13288 XGETTEXT=
13289 GMSGFMT=
13290 POSUB=
13292 if test -f ../intl/config.intl; then
13293 . ../intl/config.intl
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13296 $as_echo_n "checking whether NLS is requested... " >&6; }
13297 if test x"$USE_NLS" != xyes; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13300 else
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13302 $as_echo "yes" >&6; }
13304 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13308 $as_echo_n "checking for catalogs to be installed... " >&6; }
13309 # Look for .po and .gmo files in the source directory.
13310 CATALOGS=
13311 XLINGUAS=
13312 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13313 # If there aren't any .gmo files the shell will give us the
13314 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13315 # weeded out.
13316 case "$cat" in *\**)
13317 continue;;
13318 esac
13319 # The quadruple backslash is collapsed to a double backslash
13320 # by the backticks, then collapsed again by the double quotes,
13321 # leaving us with one backslash in the sed expression (right
13322 # before the dot that mustn't act as a wildcard).
13323 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13324 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13325 # The user is allowed to set LINGUAS to a list of languages to
13326 # install catalogs for. If it's empty that means "all of them."
13327 if test "x$LINGUAS" = x; then
13328 CATALOGS="$CATALOGS $cat"
13329 XLINGUAS="$XLINGUAS $lang"
13330 else
13331 case "$LINGUAS" in *$lang*)
13332 CATALOGS="$CATALOGS $cat"
13333 XLINGUAS="$XLINGUAS $lang"
13335 esac
13337 done
13338 LINGUAS="$XLINGUAS"
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13340 $as_echo "$LINGUAS" >&6; }
13343 DATADIRNAME=share
13345 INSTOBJEXT=.mo
13347 GENCAT=gencat
13349 CATOBJEXT=.gmo
13353 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13354 # -liconv on the link line twice.
13355 case "$LIBINTL" in *$LIBICONV*)
13356 LIBICONV= ;;
13357 esac
13359 # Check whether --enable-secureplt was given.
13360 if test "${enable_secureplt+set}" = set; then :
13361 enableval=$enable_secureplt;
13365 # Check whether --enable-mingw-wildcard was given.
13366 if test "${enable_mingw_wildcard+set}" = set; then :
13367 enableval=$enable_mingw_wildcard;
13368 else
13369 enable_mingw_wildcard=platform
13372 if test x"$enable_mingw_wildcard" != xplatform ; then :
13374 cat >>confdefs.h <<_ACEOF
13375 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13376 _ACEOF
13380 # Check whether --enable-large-address-aware was given.
13381 if test "${enable_large_address_aware+set}" = set; then :
13382 enableval=$enable_large_address_aware;
13385 if test x"$enable_large_address_aware" = xyes; then :
13387 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13391 # Check whether --enable-leading-mingw64-underscores was given.
13392 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13393 enableval=$enable_leading_mingw64_underscores;
13396 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13398 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13402 # Check whether --enable-cld was given.
13403 if test "${enable_cld+set}" = set; then :
13404 enableval=$enable_cld;
13405 else
13406 enable_cld=no
13410 # Check whether --enable-frame-pointer was given.
13411 if test "${enable_frame_pointer+set}" = set; then :
13412 enableval=$enable_frame_pointer;
13413 else
13415 case $target_os in
13416 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13417 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13418 enable_frame_pointer=no
13421 enable_frame_pointer=yes
13423 esac
13428 case $target in
13429 i[34567]86-*-* | x86_64-*-*)
13430 if test "x$enable_cld" = xyes; then
13431 tm_defines="${tm_defines} USE_IX86_CLD=1"
13433 if test "x$enable_frame_pointer" = xyes; then
13434 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13437 esac
13439 # Windows32 Registry support for specifying GCC installation paths.
13440 # Check whether --enable-win32-registry was given.
13441 if test "${enable_win32_registry+set}" = set; then :
13442 enableval=$enable_win32_registry;
13446 case $host_os in
13447 win32 | pe | cygwin* | mingw32*)
13448 if test "x$enable_win32_registry" != xno; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13450 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13451 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454 ac_func_search_save_LIBS=$LIBS
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13461 #ifdef __cplusplus
13462 extern "C"
13463 #endif
13464 char RegOpenKeyExA ();
13466 main ()
13468 return RegOpenKeyExA ();
13470 return 0;
13472 _ACEOF
13473 for ac_lib in '' advapi32; do
13474 if test -z "$ac_lib"; then
13475 ac_res="none required"
13476 else
13477 ac_res=-l$ac_lib
13478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13480 if ac_fn_cxx_try_link "$LINENO"; then :
13481 ac_cv_search_RegOpenKeyExA=$ac_res
13483 rm -f core conftest.err conftest.$ac_objext \
13484 conftest$ac_exeext
13485 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13486 break
13488 done
13489 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13491 else
13492 ac_cv_search_RegOpenKeyExA=no
13494 rm conftest.$ac_ext
13495 LIBS=$ac_func_search_save_LIBS
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13498 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13499 ac_res=$ac_cv_search_RegOpenKeyExA
13500 if test "$ac_res" != no; then :
13501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13503 else
13504 enable_win32_registry=no
13509 if test "x$enable_win32_registry" != xno; then
13511 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13514 if test "x$enable_win32_registry" != xyes \
13515 && test "x$enable_win32_registry" != x; then
13517 cat >>confdefs.h <<_ACEOF
13518 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13519 _ACEOF
13524 esac
13526 # Get an absolute path to the GCC top-level source directory
13527 holddir=`${PWDCMD-pwd}`
13528 cd $srcdir
13529 topdir=`${PWDCMD-pwd}`
13530 cd $holddir
13532 # Conditionalize the makefile for this host machine.
13533 xmake_file=
13534 for f in ${host_xmake_file}
13536 if test -f ${srcdir}/config/$f
13537 then
13538 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13540 done
13542 # Conditionalize the makefile for this target machine.
13543 tmake_file_=
13544 for f in ${tmake_file}
13546 if test -f ${srcdir}/config/$f
13547 then
13548 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13550 done
13551 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13553 out_object_file=`basename $out_file .cc`.o
13554 common_out_object_file=`basename $common_out_file .cc`.o
13556 tm_file_list="options.h"
13557 tm_include_list="options.h insn-constants.h"
13558 for f in $tm_file; do
13559 case $f in
13560 ./* )
13561 f=`echo $f | sed 's/^..//'`
13562 tm_file_list="${tm_file_list} $f"
13563 tm_include_list="${tm_include_list} $f"
13565 defaults.h )
13566 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13567 tm_include_list="${tm_include_list} $f"
13570 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13571 tm_include_list="${tm_include_list} config/$f"
13573 esac
13574 done
13576 tm_p_file_list=
13577 tm_p_include_list=
13578 for f in $tm_p_file; do
13579 case $f in
13580 tm-preds.h )
13581 tm_p_file_list="${tm_p_file_list} $f"
13582 tm_p_include_list="${tm_p_include_list} $f"
13585 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13586 tm_p_include_list="${tm_p_include_list} config/$f"
13587 esac
13588 done
13590 tm_d_file_list=
13591 tm_d_include_list=
13592 for f in $tm_d_file; do
13593 case $f in
13595 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13596 tm_d_include_list="${tm_d_include_list} config/$f"
13598 esac
13599 done
13601 tm_rust_file_list=
13602 tm_rust_include_list=
13603 for f in $tm_rust_file; do
13604 case $f in
13606 tm_rust_file_list="${tm_rust_file_list} \$(srcdir)/config/$f"
13607 tm_rust_include_list="${tm_rust_include_list} config/$f"
13609 esac
13610 done
13612 xm_file_list=
13613 xm_include_list=
13614 for f in $xm_file; do
13615 case $f in
13616 ansidecl.h )
13617 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13618 xm_include_list="${xm_include_list} $f"
13620 auto-host.h )
13621 xm_file_list="${xm_file_list} $f"
13622 xm_include_list="${xm_include_list} $f"
13625 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13626 xm_include_list="${xm_include_list} config/$f"
13628 esac
13629 done
13631 host_xm_file_list=
13632 host_xm_include_list=
13633 for f in $host_xm_file; do
13634 case $f in
13635 ansidecl.h )
13636 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13637 host_xm_include_list="${host_xm_include_list} $f"
13639 auto-host.h )
13640 host_xm_file_list="${host_xm_file_list} $f"
13641 host_xm_include_list="${host_xm_include_list} $f"
13644 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13645 host_xm_include_list="${host_xm_include_list} config/$f"
13647 esac
13648 done
13650 build_xm_file_list=
13651 for f in $build_xm_file; do
13652 case $f in
13653 ansidecl.h )
13654 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13655 build_xm_include_list="${build_xm_include_list} $f"
13657 auto-build.h | auto-host.h )
13658 build_xm_file_list="${build_xm_file_list} $f"
13659 build_xm_include_list="${build_xm_include_list} $f"
13662 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13663 build_xm_include_list="${build_xm_include_list} config/$f"
13665 esac
13666 done
13668 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13669 # cross-compiler which does not use the native headers and libraries.
13670 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13671 CROSS=
13672 ALL=all.internal
13673 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13674 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13676 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13677 test x$build != x$host || test "x$with_build_sysroot" != x; then
13678 if test "x$with_build_sysroot" != x; then
13679 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13680 else
13681 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13684 if test x$host != x$target
13685 then
13686 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13687 ALL=all.cross
13688 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13689 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13690 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13693 if test "x$with_build_sysroot" != "x"; then
13694 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13695 elif test "x$with_sysroot" = x; then
13696 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13697 elif test "x$with_sysroot" = xyes; then
13698 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13699 else
13700 target_header_dir="${with_sysroot}${native_system_header_dir}"
13702 else
13703 target_header_dir=${native_system_header_dir}
13706 # If this is a cross-compiler that does not
13707 # have its own set of headers then define
13708 # inhibit_libc
13710 # If this is using newlib, without having the headers available now,
13711 # then define inhibit_libc in LIBGCC2_CFLAGS.
13712 # This prevents libgcc2 from containing any code which requires libc
13713 # support.
13714 : ${inhibit_libc=false}
13715 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13716 test x$with_newlib = xyes ; } &&
13717 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13718 inhibit_libc=true
13722 # When building gcc with a cross-compiler, we need to adjust things so
13723 # that the generator programs are still built with the native compiler.
13724 # Also, we cannot run fixincludes.
13726 # These are the normal (build=host) settings:
13727 CC_FOR_BUILD='$(CC)'
13728 CXX_FOR_BUILD='$(CXX)'
13729 BUILD_CFLAGS='$(ALL_CFLAGS)'
13730 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13731 BUILD_LDFLAGS='$(LDFLAGS)'
13732 STMP_FIXINC=stmp-fixinc
13734 # And these apply if build != host, or we are generating coverage data
13735 if test x$build != x$host || test "x$coverage_flags" != x
13736 then
13737 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13738 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13739 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13743 if test x$enable_fixincludes = xno;
13744 then
13745 STMP_FIXINC=''
13748 # Expand extra_headers to include complete path.
13749 # This substitutes for lots of t-* files.
13750 extra_headers_list=
13751 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13752 for file in ${extra_headers} ; do
13753 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13754 done
13756 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13757 if test x"$use_gcc_tgmath" = xyes
13758 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13761 # Define collect2 in Makefile.
13762 case $host_can_use_collect2 in
13763 no) collect2= ;;
13764 *) collect2='collect2$(exeext)' ;;
13765 esac
13768 # Add a definition of USE_COLLECT2 if system wants one.
13769 case $use_collect2 in
13770 no) use_collect2= ;;
13771 "") ;;
13773 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13774 xm_defines="${xm_defines} USE_COLLECT2"
13775 case $host_can_use_collect2 in
13777 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13779 esac
13781 esac
13784 cat >>confdefs.h <<_ACEOF
13785 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13786 _ACEOF
13789 # ---------------------------
13790 # Assembler & linker features
13791 # ---------------------------
13793 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13794 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13795 # However when ld-new is first executed from the build tree, libtool will
13796 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13797 # to the build tree. While doing this we need to use the previous-stage
13798 # linker, or we have an infinite loop. The presence of a shell script as
13799 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13800 # the gcc/collect-ld script. So we need to know how libtool works, or
13801 # exec-tool will fail.
13804 case `pwd` in
13805 *\ * | *\ *)
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13807 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13808 esac
13812 macro_version='2.2.7a'
13813 macro_revision='1.3134'
13827 ltmain="$ac_aux_dir/ltmain.sh"
13829 # Backslashify metacharacters that are still active within
13830 # double-quoted strings.
13831 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13833 # Same as above, but do not quote variable references.
13834 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13836 # Sed substitution to delay expansion of an escaped shell variable in a
13837 # double_quote_subst'ed string.
13838 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13840 # Sed substitution to delay expansion of an escaped single quote.
13841 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13843 # Sed substitution to avoid accidental globbing in evaled expressions
13844 no_glob_subst='s/\*/\\\*/g'
13846 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13847 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13848 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13851 $as_echo_n "checking how to print strings... " >&6; }
13852 # Test print first, because it will be a builtin if present.
13853 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13854 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13855 ECHO='print -r --'
13856 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13857 ECHO='printf %s\n'
13858 else
13859 # Use this function as a fallback that always works.
13860 func_fallback_echo ()
13862 eval 'cat <<_LTECHO_EOF
13864 _LTECHO_EOF'
13866 ECHO='func_fallback_echo'
13869 # func_echo_all arg...
13870 # Invoke $ECHO with all args, space-separated.
13871 func_echo_all ()
13873 $ECHO ""
13876 case "$ECHO" in
13877 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13878 $as_echo "printf" >&6; } ;;
13879 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13880 $as_echo "print -r" >&6; } ;;
13881 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13882 $as_echo "cat" >&6; } ;;
13883 esac
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13899 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13900 if ${ac_cv_path_SED+:} false; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13904 for ac_i in 1 2 3 4 5 6 7; do
13905 ac_script="$ac_script$as_nl$ac_script"
13906 done
13907 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13908 { ac_script=; unset ac_script;}
13909 if test -z "$SED"; then
13910 ac_path_SED_found=false
13911 # Loop through the user's path and test for each of PROGNAME-LIST
13912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13913 for as_dir in $PATH
13915 IFS=$as_save_IFS
13916 test -z "$as_dir" && as_dir=.
13917 for ac_prog in sed gsed; do
13918 for ac_exec_ext in '' $ac_executable_extensions; do
13919 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13920 as_fn_executable_p "$ac_path_SED" || continue
13921 # Check for GNU ac_path_SED and select it if it is found.
13922 # Check for GNU $ac_path_SED
13923 case `"$ac_path_SED" --version 2>&1` in
13924 *GNU*)
13925 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13927 ac_count=0
13928 $as_echo_n 0123456789 >"conftest.in"
13929 while :
13931 cat "conftest.in" "conftest.in" >"conftest.tmp"
13932 mv "conftest.tmp" "conftest.in"
13933 cp "conftest.in" "conftest.nl"
13934 $as_echo '' >> "conftest.nl"
13935 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13937 as_fn_arith $ac_count + 1 && ac_count=$as_val
13938 if test $ac_count -gt ${ac_path_SED_max-0}; then
13939 # Best one so far, save it but keep looking for a better one
13940 ac_cv_path_SED="$ac_path_SED"
13941 ac_path_SED_max=$ac_count
13943 # 10*(2^10) chars as input seems more than enough
13944 test $ac_count -gt 10 && break
13945 done
13946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13947 esac
13949 $ac_path_SED_found && break 3
13950 done
13951 done
13952 done
13953 IFS=$as_save_IFS
13954 if test -z "$ac_cv_path_SED"; then
13955 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13957 else
13958 ac_cv_path_SED=$SED
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13963 $as_echo "$ac_cv_path_SED" >&6; }
13964 SED="$ac_cv_path_SED"
13965 rm -f conftest.sed
13967 test -z "$SED" && SED=sed
13968 Xsed="$SED -e 1s/^X//"
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13981 $as_echo_n "checking for fgrep... " >&6; }
13982 if ${ac_cv_path_FGREP+:} false; then :
13983 $as_echo_n "(cached) " >&6
13984 else
13985 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13986 then ac_cv_path_FGREP="$GREP -F"
13987 else
13988 if test -z "$FGREP"; then
13989 ac_path_FGREP_found=false
13990 # Loop through the user's path and test for each of PROGNAME-LIST
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13994 IFS=$as_save_IFS
13995 test -z "$as_dir" && as_dir=.
13996 for ac_prog in fgrep; do
13997 for ac_exec_ext in '' $ac_executable_extensions; do
13998 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13999 as_fn_executable_p "$ac_path_FGREP" || continue
14000 # Check for GNU ac_path_FGREP and select it if it is found.
14001 # Check for GNU $ac_path_FGREP
14002 case `"$ac_path_FGREP" --version 2>&1` in
14003 *GNU*)
14004 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
14006 ac_count=0
14007 $as_echo_n 0123456789 >"conftest.in"
14008 while :
14010 cat "conftest.in" "conftest.in" >"conftest.tmp"
14011 mv "conftest.tmp" "conftest.in"
14012 cp "conftest.in" "conftest.nl"
14013 $as_echo 'FGREP' >> "conftest.nl"
14014 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14016 as_fn_arith $ac_count + 1 && ac_count=$as_val
14017 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14018 # Best one so far, save it but keep looking for a better one
14019 ac_cv_path_FGREP="$ac_path_FGREP"
14020 ac_path_FGREP_max=$ac_count
14022 # 10*(2^10) chars as input seems more than enough
14023 test $ac_count -gt 10 && break
14024 done
14025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14026 esac
14028 $ac_path_FGREP_found && break 3
14029 done
14030 done
14031 done
14032 IFS=$as_save_IFS
14033 if test -z "$ac_cv_path_FGREP"; then
14034 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14036 else
14037 ac_cv_path_FGREP=$FGREP
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14043 $as_echo "$ac_cv_path_FGREP" >&6; }
14044 FGREP="$ac_cv_path_FGREP"
14047 test -z "$GREP" && GREP=grep
14067 # Check whether --with-gnu-ld was given.
14068 if test "${with_gnu_ld+set}" = set; then :
14069 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14070 else
14071 with_gnu_ld=no
14074 ac_prog=ld
14075 if test "$GCC" = yes; then
14076 # Check if gcc -print-prog-name=ld gives a path.
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14078 $as_echo_n "checking for ld used by $CC... " >&6; }
14079 case $host in
14080 *-*-mingw*)
14081 # gcc leaves a trailing carriage return which upsets mingw
14082 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14084 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14085 esac
14086 case $ac_prog in
14087 # Accept absolute paths.
14088 [\\/]* | ?:[\\/]*)
14089 re_direlt='/[^/][^/]*/\.\./'
14090 # Canonicalize the pathname of ld
14091 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14092 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14093 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14094 done
14095 test -z "$LD" && LD="$ac_prog"
14098 # If it fails, then pretend we aren't using GCC.
14099 ac_prog=ld
14102 # If it is relative, then search for the first ld in PATH.
14103 with_gnu_ld=unknown
14105 esac
14106 elif test "$with_gnu_ld" = yes; then
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14108 $as_echo_n "checking for GNU ld... " >&6; }
14109 else
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14111 $as_echo_n "checking for non-GNU ld... " >&6; }
14113 if ${lt_cv_path_LD+:} false; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116 if test -z "$LD"; then
14117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14118 for ac_dir in $PATH; do
14119 IFS="$lt_save_ifs"
14120 test -z "$ac_dir" && ac_dir=.
14121 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14122 lt_cv_path_LD="$ac_dir/$ac_prog"
14123 # Check to see if the program is GNU ld. I'd rather use --version,
14124 # but apparently some variants of GNU ld only accept -v.
14125 # Break only if it was the GNU/non-GNU ld that we prefer.
14126 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14127 *GNU* | *'with BFD'*)
14128 test "$with_gnu_ld" != no && break
14131 test "$with_gnu_ld" != yes && break
14133 esac
14135 done
14136 IFS="$lt_save_ifs"
14137 else
14138 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14142 LD="$lt_cv_path_LD"
14143 if test -n "$LD"; then
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14145 $as_echo "$LD" >&6; }
14146 else
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148 $as_echo "no" >&6; }
14150 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14152 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14153 if ${lt_cv_prog_gnu_ld+:} false; then :
14154 $as_echo_n "(cached) " >&6
14155 else
14156 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14157 case `$LD -v 2>&1 </dev/null` in
14158 *GNU* | *'with BFD'*)
14159 lt_cv_prog_gnu_ld=yes
14162 lt_cv_prog_gnu_ld=no
14164 esac
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14167 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14168 with_gnu_ld=$lt_cv_prog_gnu_ld
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14179 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14180 if ${lt_cv_path_NM+:} false; then :
14181 $as_echo_n "(cached) " >&6
14182 else
14183 if test -n "$NM"; then
14184 # Let the user override the nm to test.
14185 lt_nm_to_check="$NM"
14186 else
14187 lt_nm_to_check="${ac_tool_prefix}nm"
14188 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14189 lt_nm_to_check="$lt_nm_to_check nm"
14192 for lt_tmp_nm in "$lt_nm_to_check"; do
14193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14194 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14195 IFS="$lt_save_ifs"
14196 test -z "$ac_dir" && ac_dir=.
14197 # Strip out any user-provided options from the nm to test twice,
14198 # the first time to test to see if nm (rather than its options) has
14199 # an explicit path, the second time to yield a file which can be
14200 # nm'ed itself.
14201 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
14202 case "$tmp_nm_path" in
14203 */*|*\\*) tmp_nm="$lt_tmp_nm";;
14204 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
14205 esac
14206 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
14207 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
14208 # Check to see if the nm accepts a BSD-compat flag.
14209 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14210 # nm: unknown option "B" ignored
14211 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14212 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
14213 break
14216 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14217 *$tmp_nm*)
14218 lt_cv_path_NM="$tmp_nm -p"
14219 break
14222 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14223 continue # so that we can try to find one that supports BSD flags
14225 esac
14227 esac
14229 done
14230 IFS="$lt_save_ifs"
14231 done
14232 : ${lt_cv_path_NM=no}
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14235 $as_echo "$lt_cv_path_NM" >&6; }
14236 if test "$lt_cv_path_NM" != "no"; then
14237 NM="$lt_cv_path_NM"
14238 else
14239 # Didn't find any BSD compatible name lister, look for dumpbin.
14240 if test -n "$DUMPBIN"; then :
14241 # Let the user override the test.
14242 else
14243 if test -n "$ac_tool_prefix"; then
14244 for ac_prog in dumpbin "link -dump"
14246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14249 $as_echo_n "checking for $ac_word... " >&6; }
14250 if ${ac_cv_prog_DUMPBIN+:} false; then :
14251 $as_echo_n "(cached) " >&6
14252 else
14253 if test -n "$DUMPBIN"; then
14254 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14255 else
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14259 IFS=$as_save_IFS
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14263 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14265 break 2
14267 done
14268 done
14269 IFS=$as_save_IFS
14273 DUMPBIN=$ac_cv_prog_DUMPBIN
14274 if test -n "$DUMPBIN"; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14276 $as_echo "$DUMPBIN" >&6; }
14277 else
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14283 test -n "$DUMPBIN" && break
14284 done
14286 if test -z "$DUMPBIN"; then
14287 ac_ct_DUMPBIN=$DUMPBIN
14288 for ac_prog in dumpbin "link -dump"
14290 # Extract the first word of "$ac_prog", so it can be a program name with args.
14291 set dummy $ac_prog; ac_word=$2
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14293 $as_echo_n "checking for $ac_word... " >&6; }
14294 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14295 $as_echo_n "(cached) " >&6
14296 else
14297 if test -n "$ac_ct_DUMPBIN"; then
14298 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14299 else
14300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14301 for as_dir in $PATH
14303 IFS=$as_save_IFS
14304 test -z "$as_dir" && as_dir=.
14305 for ac_exec_ext in '' $ac_executable_extensions; do
14306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14307 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14309 break 2
14311 done
14312 done
14313 IFS=$as_save_IFS
14317 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14318 if test -n "$ac_ct_DUMPBIN"; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14320 $as_echo "$ac_ct_DUMPBIN" >&6; }
14321 else
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14323 $as_echo "no" >&6; }
14327 test -n "$ac_ct_DUMPBIN" && break
14328 done
14330 if test "x$ac_ct_DUMPBIN" = x; then
14331 DUMPBIN=":"
14332 else
14333 case $cross_compiling:$ac_tool_warned in
14334 yes:)
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14337 ac_tool_warned=yes ;;
14338 esac
14339 DUMPBIN=$ac_ct_DUMPBIN
14343 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14344 *COFF*)
14345 DUMPBIN="$DUMPBIN -symbols"
14348 DUMPBIN=:
14350 esac
14353 if test "$DUMPBIN" != ":"; then
14354 NM="$DUMPBIN"
14357 test -z "$NM" && NM=nm
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14365 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14366 if ${lt_cv_nm_interface+:} false; then :
14367 $as_echo_n "(cached) " >&6
14368 else
14369 lt_cv_nm_interface="BSD nm"
14370 echo "int some_variable = 0;" > conftest.$ac_ext
14371 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14372 (eval "$ac_compile" 2>conftest.err)
14373 cat conftest.err >&5
14374 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14375 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14376 cat conftest.err >&5
14377 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14378 cat conftest.out >&5
14379 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14380 lt_cv_nm_interface="MS dumpbin"
14382 rm -f conftest*
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14385 $as_echo "$lt_cv_nm_interface" >&6; }
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14388 $as_echo_n "checking whether ln -s works... " >&6; }
14389 LN_S=$as_ln_s
14390 if test "$LN_S" = "ln -s"; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14392 $as_echo "yes" >&6; }
14393 else
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14395 $as_echo "no, using $LN_S" >&6; }
14398 # find the maximum length of command line arguments
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14400 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14401 if ${lt_cv_sys_max_cmd_len+:} false; then :
14402 $as_echo_n "(cached) " >&6
14403 else
14405 teststring="ABCD"
14407 case $build_os in
14408 msdosdjgpp*)
14409 # On DJGPP, this test can blow up pretty badly due to problems in libc
14410 # (any single argument exceeding 2000 bytes causes a buffer overrun
14411 # during glob expansion). Even if it were fixed, the result of this
14412 # check would be larger than it should be.
14413 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14416 gnu*)
14417 # Under GNU Hurd, this test is not required because there is
14418 # no limit to the length of command line arguments.
14419 # Libtool will interpret -1 as no limit whatsoever
14420 lt_cv_sys_max_cmd_len=-1;
14423 cygwin* | mingw* | cegcc*)
14424 # On Win9x/ME, this test blows up -- it succeeds, but takes
14425 # about 5 minutes as the teststring grows exponentially.
14426 # Worse, since 9x/ME are not pre-emptively multitasking,
14427 # you end up with a "frozen" computer, even though with patience
14428 # the test eventually succeeds (with a max line length of 256k).
14429 # Instead, let's just punt: use the minimum linelength reported by
14430 # all of the supported platforms: 8192 (on NT/2K/XP).
14431 lt_cv_sys_max_cmd_len=8192;
14434 mint*)
14435 # On MiNT this can take a long time and run out of memory.
14436 lt_cv_sys_max_cmd_len=8192;
14439 amigaos*)
14440 # On AmigaOS with pdksh, this test takes hours, literally.
14441 # So we just punt and use a minimum line length of 8192.
14442 lt_cv_sys_max_cmd_len=8192;
14445 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14446 # This has been around since 386BSD, at least. Likely further.
14447 if test -x /sbin/sysctl; then
14448 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14449 elif test -x /usr/sbin/sysctl; then
14450 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14451 else
14452 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14454 # And add a safety zone
14455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14459 interix*)
14460 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14461 lt_cv_sys_max_cmd_len=196608
14464 osf*)
14465 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14466 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14467 # nice to cause kernel panics so lets avoid the loop below.
14468 # First set a reasonable default.
14469 lt_cv_sys_max_cmd_len=16384
14471 if test -x /sbin/sysconfig; then
14472 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14473 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14474 esac
14477 sco3.2v5*)
14478 lt_cv_sys_max_cmd_len=102400
14480 sysv5* | sco5v6* | sysv4.2uw2*)
14481 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14482 if test -n "$kargmax"; then
14483 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14484 else
14485 lt_cv_sys_max_cmd_len=32768
14489 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14490 if test -n "$lt_cv_sys_max_cmd_len"; then
14491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14493 else
14494 # Make teststring a little bigger before we do anything with it.
14495 # a 1K string should be a reasonable start.
14496 for i in 1 2 3 4 5 6 7 8 ; do
14497 teststring=$teststring$teststring
14498 done
14499 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14500 # If test is not a shell built-in, we'll probably end up computing a
14501 # maximum length that is only half of the actual maximum length, but
14502 # we can't tell.
14503 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14504 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14505 test $i != 17 # 1/2 MB should be enough
14507 i=`expr $i + 1`
14508 teststring=$teststring$teststring
14509 done
14510 # Only check the string length outside the loop.
14511 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14512 teststring=
14513 # Add a significant safety factor because C++ compilers can tack on
14514 # massive amounts of additional arguments before passing them to the
14515 # linker. It appears as though 1/2 is a usable value.
14516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14519 esac
14523 if test -n $lt_cv_sys_max_cmd_len ; then
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14525 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14526 else
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14528 $as_echo "none" >&6; }
14530 max_cmd_len=$lt_cv_sys_max_cmd_len
14537 : ${CP="cp -f"}
14538 : ${MV="mv -f"}
14539 : ${RM="rm -f"}
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14542 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14543 # Try some XSI features
14544 xsi_shell=no
14545 ( _lt_dummy="a/b/c"
14546 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14547 = c,a/b,, \
14548 && eval 'test $(( 1 + 1 )) -eq 2 \
14549 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14550 && xsi_shell=yes
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14552 $as_echo "$xsi_shell" >&6; }
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14556 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14557 lt_shell_append=no
14558 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14559 >/dev/null 2>&1 \
14560 && lt_shell_append=yes
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14562 $as_echo "$lt_shell_append" >&6; }
14565 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14566 lt_unset=unset
14567 else
14568 lt_unset=false
14575 # test EBCDIC or ASCII
14576 case `echo X|tr X '\101'` in
14577 A) # ASCII based system
14578 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14579 lt_SP2NL='tr \040 \012'
14580 lt_NL2SP='tr \015\012 \040\040'
14582 *) # EBCDIC based system
14583 lt_SP2NL='tr \100 \n'
14584 lt_NL2SP='tr \r\n \100\100'
14586 esac
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14597 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14598 if ${lt_cv_ld_reload_flag+:} false; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 lt_cv_ld_reload_flag='-r'
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14604 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14605 reload_flag=$lt_cv_ld_reload_flag
14606 case $reload_flag in
14607 "" | " "*) ;;
14608 *) reload_flag=" $reload_flag" ;;
14609 esac
14610 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14611 case $host_os in
14612 darwin*)
14613 if test "$GCC" = yes; then
14614 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14615 else
14616 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14619 esac
14629 if test -n "$ac_tool_prefix"; then
14630 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14631 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14633 $as_echo_n "checking for $ac_word... " >&6; }
14634 if ${ac_cv_prog_OBJDUMP+:} false; then :
14635 $as_echo_n "(cached) " >&6
14636 else
14637 if test -n "$OBJDUMP"; then
14638 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14639 else
14640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $PATH
14643 IFS=$as_save_IFS
14644 test -z "$as_dir" && as_dir=.
14645 for ac_exec_ext in '' $ac_executable_extensions; do
14646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14647 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14649 break 2
14651 done
14652 done
14653 IFS=$as_save_IFS
14657 OBJDUMP=$ac_cv_prog_OBJDUMP
14658 if test -n "$OBJDUMP"; then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14660 $as_echo "$OBJDUMP" >&6; }
14661 else
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14663 $as_echo "no" >&6; }
14668 if test -z "$ac_cv_prog_OBJDUMP"; then
14669 ac_ct_OBJDUMP=$OBJDUMP
14670 # Extract the first word of "objdump", so it can be a program name with args.
14671 set dummy objdump; ac_word=$2
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14673 $as_echo_n "checking for $ac_word... " >&6; }
14674 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14675 $as_echo_n "(cached) " >&6
14676 else
14677 if test -n "$ac_ct_OBJDUMP"; then
14678 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14679 else
14680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14681 for as_dir in $PATH
14683 IFS=$as_save_IFS
14684 test -z "$as_dir" && as_dir=.
14685 for ac_exec_ext in '' $ac_executable_extensions; do
14686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14687 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14689 break 2
14691 done
14692 done
14693 IFS=$as_save_IFS
14697 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14698 if test -n "$ac_ct_OBJDUMP"; then
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14700 $as_echo "$ac_ct_OBJDUMP" >&6; }
14701 else
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14703 $as_echo "no" >&6; }
14706 if test "x$ac_ct_OBJDUMP" = x; then
14707 OBJDUMP="false"
14708 else
14709 case $cross_compiling:$ac_tool_warned in
14710 yes:)
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14713 ac_tool_warned=yes ;;
14714 esac
14715 OBJDUMP=$ac_ct_OBJDUMP
14717 else
14718 OBJDUMP="$ac_cv_prog_OBJDUMP"
14721 test -z "$OBJDUMP" && OBJDUMP=objdump
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14732 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14733 if ${lt_cv_deplibs_check_method+:} false; then :
14734 $as_echo_n "(cached) " >&6
14735 else
14736 lt_cv_file_magic_cmd='$MAGIC_CMD'
14737 lt_cv_file_magic_test_file=
14738 lt_cv_deplibs_check_method='unknown'
14739 # Need to set the preceding variable on all platforms that support
14740 # interlibrary dependencies.
14741 # 'none' -- dependencies not supported.
14742 # `unknown' -- same as none, but documents that we really don't know.
14743 # 'pass_all' -- all dependencies passed with no checks.
14744 # 'test_compile' -- check by making test program.
14745 # 'file_magic [[regex]]' -- check by looking for files in library path
14746 # which responds to the $file_magic_cmd with a given extended regex.
14747 # If you have `file' or equivalent on your system and you're not sure
14748 # whether `pass_all' will *always* work, you probably want this one.
14750 case $host_os in
14751 aix[4-9]*)
14752 lt_cv_deplibs_check_method=pass_all
14755 beos*)
14756 lt_cv_deplibs_check_method=pass_all
14759 bsdi[45]*)
14760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14761 lt_cv_file_magic_cmd='/usr/bin/file -L'
14762 lt_cv_file_magic_test_file=/shlib/libc.so
14765 cygwin*)
14766 # func_win32_libid is a shell function defined in ltmain.sh
14767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14768 lt_cv_file_magic_cmd='func_win32_libid'
14771 mingw* | pw32*)
14772 # Base MSYS/MinGW do not provide the 'file' command needed by
14773 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14774 # unless we find 'file', for example because we are cross-compiling.
14775 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14776 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14777 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14778 lt_cv_file_magic_cmd='func_win32_libid'
14779 else
14780 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14781 lt_cv_file_magic_cmd='$OBJDUMP -f'
14785 cegcc*)
14786 # use the weaker test based on 'objdump'. See mingw*.
14787 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14788 lt_cv_file_magic_cmd='$OBJDUMP -f'
14791 darwin* | rhapsody*)
14792 lt_cv_deplibs_check_method=pass_all
14795 freebsd* | dragonfly*)
14796 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14797 case $host_cpu in
14798 i*86 )
14799 # Not sure whether the presence of OpenBSD here was a mistake.
14800 # Let's accept both of them until this is cleared up.
14801 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14802 lt_cv_file_magic_cmd=/usr/bin/file
14803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14805 esac
14806 else
14807 lt_cv_deplibs_check_method=pass_all
14811 gnu*)
14812 lt_cv_deplibs_check_method=pass_all
14815 haiku*)
14816 lt_cv_deplibs_check_method=pass_all
14819 hpux10.20* | hpux11*)
14820 lt_cv_file_magic_cmd=/usr/bin/file
14821 case $host_cpu in
14822 ia64*)
14823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14824 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14826 hppa*64*)
14827 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]'
14828 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14832 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14834 esac
14837 interix[3-9]*)
14838 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14842 irix5* | irix6* | nonstopux*)
14843 case $LD in
14844 *-32|*"-32 ") libmagic=32-bit;;
14845 *-n32|*"-n32 ") libmagic=N32;;
14846 *-64|*"-64 ") libmagic=64-bit;;
14847 *) libmagic=never-match;;
14848 esac
14849 lt_cv_deplibs_check_method=pass_all
14852 # This must be Linux ELF.
14853 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14854 lt_cv_deplibs_check_method=pass_all
14857 netbsd*)
14858 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14860 else
14861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14865 newos6*)
14866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14867 lt_cv_file_magic_cmd=/usr/bin/file
14868 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14871 *nto* | *qnx*)
14872 lt_cv_deplibs_check_method=pass_all
14875 openbsd*)
14876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14878 else
14879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14883 osf3* | osf4* | osf5*)
14884 lt_cv_deplibs_check_method=pass_all
14887 rdos*)
14888 lt_cv_deplibs_check_method=pass_all
14891 solaris*)
14892 lt_cv_deplibs_check_method=pass_all
14895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14896 lt_cv_deplibs_check_method=pass_all
14899 sysv4 | sysv4.3*)
14900 case $host_vendor in
14901 motorola)
14902 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]'
14903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14905 ncr)
14906 lt_cv_deplibs_check_method=pass_all
14908 sequent)
14909 lt_cv_file_magic_cmd='/bin/file'
14910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14912 sni)
14913 lt_cv_file_magic_cmd='/bin/file'
14914 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14915 lt_cv_file_magic_test_file=/lib/libc.so
14917 siemens)
14918 lt_cv_deplibs_check_method=pass_all
14921 lt_cv_deplibs_check_method=pass_all
14923 esac
14926 tpf*)
14927 lt_cv_deplibs_check_method=pass_all
14929 vxworks*)
14930 # Assume VxWorks cross toolchains are built on Linux, possibly
14931 # as canadian for Windows hosts.
14932 lt_cv_deplibs_check_method=pass_all
14934 esac
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14938 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14939 file_magic_cmd=$lt_cv_file_magic_cmd
14940 deplibs_check_method=$lt_cv_deplibs_check_method
14941 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14954 plugin_option=
14955 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
14956 for plugin in $plugin_names; do
14957 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14958 if test x$plugin_so = x$plugin; then
14959 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14961 if test x$plugin_so != x$plugin; then
14962 plugin_option="--plugin $plugin_so"
14963 break
14965 done
14967 if test -n "$ac_tool_prefix"; then
14968 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14969 set dummy ${ac_tool_prefix}ar; ac_word=$2
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14971 $as_echo_n "checking for $ac_word... " >&6; }
14972 if ${ac_cv_prog_AR+:} false; then :
14973 $as_echo_n "(cached) " >&6
14974 else
14975 if test -n "$AR"; then
14976 ac_cv_prog_AR="$AR" # Let the user override the test.
14977 else
14978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14979 for as_dir in $PATH
14981 IFS=$as_save_IFS
14982 test -z "$as_dir" && as_dir=.
14983 for ac_exec_ext in '' $ac_executable_extensions; do
14984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14985 ac_cv_prog_AR="${ac_tool_prefix}ar"
14986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14987 break 2
14989 done
14990 done
14991 IFS=$as_save_IFS
14995 AR=$ac_cv_prog_AR
14996 if test -n "$AR"; then
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14998 $as_echo "$AR" >&6; }
14999 else
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15001 $as_echo "no" >&6; }
15006 if test -z "$ac_cv_prog_AR"; then
15007 ac_ct_AR=$AR
15008 # Extract the first word of "ar", so it can be a program name with args.
15009 set dummy ar; ac_word=$2
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15011 $as_echo_n "checking for $ac_word... " >&6; }
15012 if ${ac_cv_prog_ac_ct_AR+:} false; then :
15013 $as_echo_n "(cached) " >&6
15014 else
15015 if test -n "$ac_ct_AR"; then
15016 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15017 else
15018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15019 for as_dir in $PATH
15021 IFS=$as_save_IFS
15022 test -z "$as_dir" && as_dir=.
15023 for ac_exec_ext in '' $ac_executable_extensions; do
15024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15025 ac_cv_prog_ac_ct_AR="ar"
15026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15027 break 2
15029 done
15030 done
15031 IFS=$as_save_IFS
15035 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15036 if test -n "$ac_ct_AR"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15038 $as_echo "$ac_ct_AR" >&6; }
15039 else
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041 $as_echo "no" >&6; }
15044 if test "x$ac_ct_AR" = x; then
15045 AR="false"
15046 else
15047 case $cross_compiling:$ac_tool_warned in
15048 yes:)
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15051 ac_tool_warned=yes ;;
15052 esac
15053 AR=$ac_ct_AR
15055 else
15056 AR="$ac_cv_prog_AR"
15059 test -z "$AR" && AR=ar
15060 if test -n "$plugin_option"; then
15061 if $AR --help 2>&1 | grep -q "\--plugin"; then
15062 touch conftest.c
15063 $AR $plugin_option rc conftest.a conftest.c
15064 if test "$?" != 0; then
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
15066 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
15067 else
15068 AR="$AR $plugin_option"
15070 rm -f conftest.*
15073 test -z "$AR_FLAGS" && AR_FLAGS=cru
15085 if test -n "$ac_tool_prefix"; then
15086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15087 set dummy ${ac_tool_prefix}strip; ac_word=$2
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15089 $as_echo_n "checking for $ac_word... " >&6; }
15090 if ${ac_cv_prog_STRIP+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 if test -n "$STRIP"; then
15094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15095 else
15096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15097 for as_dir in $PATH
15099 IFS=$as_save_IFS
15100 test -z "$as_dir" && as_dir=.
15101 for ac_exec_ext in '' $ac_executable_extensions; do
15102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15105 break 2
15107 done
15108 done
15109 IFS=$as_save_IFS
15113 STRIP=$ac_cv_prog_STRIP
15114 if test -n "$STRIP"; then
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15116 $as_echo "$STRIP" >&6; }
15117 else
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 $as_echo "no" >&6; }
15124 if test -z "$ac_cv_prog_STRIP"; then
15125 ac_ct_STRIP=$STRIP
15126 # Extract the first word of "strip", so it can be a program name with args.
15127 set dummy strip; ac_word=$2
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15129 $as_echo_n "checking for $ac_word... " >&6; }
15130 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15131 $as_echo_n "(cached) " >&6
15132 else
15133 if test -n "$ac_ct_STRIP"; then
15134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15135 else
15136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15137 for as_dir in $PATH
15139 IFS=$as_save_IFS
15140 test -z "$as_dir" && as_dir=.
15141 for ac_exec_ext in '' $ac_executable_extensions; do
15142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15143 ac_cv_prog_ac_ct_STRIP="strip"
15144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15145 break 2
15147 done
15148 done
15149 IFS=$as_save_IFS
15153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15154 if test -n "$ac_ct_STRIP"; then
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15156 $as_echo "$ac_ct_STRIP" >&6; }
15157 else
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15159 $as_echo "no" >&6; }
15162 if test "x$ac_ct_STRIP" = x; then
15163 STRIP=":"
15164 else
15165 case $cross_compiling:$ac_tool_warned in
15166 yes:)
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15169 ac_tool_warned=yes ;;
15170 esac
15171 STRIP=$ac_ct_STRIP
15173 else
15174 STRIP="$ac_cv_prog_STRIP"
15177 test -z "$STRIP" && STRIP=:
15184 if test -n "$ac_tool_prefix"; then
15185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15188 $as_echo_n "checking for $ac_word... " >&6; }
15189 if ${ac_cv_prog_RANLIB+:} false; then :
15190 $as_echo_n "(cached) " >&6
15191 else
15192 if test -n "$RANLIB"; then
15193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15194 else
15195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15196 for as_dir in $PATH
15198 IFS=$as_save_IFS
15199 test -z "$as_dir" && as_dir=.
15200 for ac_exec_ext in '' $ac_executable_extensions; do
15201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15204 break 2
15206 done
15207 done
15208 IFS=$as_save_IFS
15212 RANLIB=$ac_cv_prog_RANLIB
15213 if test -n "$RANLIB"; then
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15215 $as_echo "$RANLIB" >&6; }
15216 else
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15218 $as_echo "no" >&6; }
15223 if test -z "$ac_cv_prog_RANLIB"; then
15224 ac_ct_RANLIB=$RANLIB
15225 # Extract the first word of "ranlib", so it can be a program name with args.
15226 set dummy ranlib; ac_word=$2
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15228 $as_echo_n "checking for $ac_word... " >&6; }
15229 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15230 $as_echo_n "(cached) " >&6
15231 else
15232 if test -n "$ac_ct_RANLIB"; then
15233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15234 else
15235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15236 for as_dir in $PATH
15238 IFS=$as_save_IFS
15239 test -z "$as_dir" && as_dir=.
15240 for ac_exec_ext in '' $ac_executable_extensions; do
15241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15242 ac_cv_prog_ac_ct_RANLIB="ranlib"
15243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15244 break 2
15246 done
15247 done
15248 IFS=$as_save_IFS
15252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15253 if test -n "$ac_ct_RANLIB"; then
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15255 $as_echo "$ac_ct_RANLIB" >&6; }
15256 else
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15258 $as_echo "no" >&6; }
15261 if test "x$ac_ct_RANLIB" = x; then
15262 RANLIB=":"
15263 else
15264 case $cross_compiling:$ac_tool_warned in
15265 yes:)
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15268 ac_tool_warned=yes ;;
15269 esac
15270 RANLIB=$ac_ct_RANLIB
15272 else
15273 RANLIB="$ac_cv_prog_RANLIB"
15276 test -z "$RANLIB" && RANLIB=:
15277 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
15278 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
15279 RANLIB="$RANLIB $plugin_option"
15288 # Determine commands to create old-style static archives.
15289 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15290 old_postinstall_cmds='chmod 644 $oldlib'
15291 old_postuninstall_cmds=
15293 if test -n "$RANLIB"; then
15294 case $host_os in
15295 openbsd*)
15296 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15299 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15301 esac
15302 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15305 case $host_os in
15306 darwin*)
15307 lock_old_archive_extraction=yes ;;
15309 lock_old_archive_extraction=no ;;
15310 esac
15350 # If no C compiler was specified, use CC.
15351 LTCC=${LTCC-"$CC"}
15353 # If no C compiler flags were specified, use CFLAGS.
15354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15356 # Allow CC to be a program name with arguments.
15357 compiler=$CC
15360 # Check for command to grab the raw symbol name followed by C symbol from nm.
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15362 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15363 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15364 $as_echo_n "(cached) " >&6
15365 else
15367 # These are sane defaults that work on at least a few old systems.
15368 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15370 # Character class describing NM global symbol codes.
15371 symcode='[BCDEGRST]'
15373 # Regexp to match symbols that can be accessed directly from C.
15374 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15376 # Define system-specific variables.
15377 case $host_os in
15378 aix*)
15379 symcode='[BCDT]'
15381 cygwin* | mingw* | pw32* | cegcc*)
15382 symcode='[ABCDGISTW]'
15384 hpux*)
15385 if test "$host_cpu" = ia64; then
15386 symcode='[ABCDEGRST]'
15389 irix* | nonstopux*)
15390 symcode='[BCDEGRST]'
15392 osf*)
15393 symcode='[BCDEGQRST]'
15395 solaris*)
15396 symcode='[BCDRT]'
15398 sco3.2v5*)
15399 symcode='[DT]'
15401 sysv4.2uw2*)
15402 symcode='[DT]'
15404 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15405 symcode='[ABDT]'
15407 sysv4)
15408 symcode='[DFNSTU]'
15410 esac
15412 # If we're using GNU nm, then use its standard symbol codes.
15413 case `$NM -V 2>&1` in
15414 *GNU* | *'with BFD'*)
15415 symcode='[ABCDGIRSTW]' ;;
15416 esac
15418 # Transform an extracted symbol line into a proper C declaration.
15419 # Some systems (esp. on ia64) link data and code symbols differently,
15420 # so use this general approach.
15421 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15423 # Transform an extracted symbol line into symbol name and symbol address
15424 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15425 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'"
15427 # Handle CRLF in mingw tool chain
15428 opt_cr=
15429 case $build_os in
15430 mingw*)
15431 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15433 esac
15435 # Try without a prefix underscore, then with it.
15436 for ac_symprfx in "" "_"; do
15438 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15439 symxfrm="\\1 $ac_symprfx\\2 \\2"
15441 # Write the raw and C identifiers.
15442 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15443 # Fake it for dumpbin and say T for any non-static function
15444 # and D for any global variable.
15445 # Also find C++ and __fastcall symbols from MSVC++,
15446 # which start with @ or ?.
15447 lt_cv_sys_global_symbol_pipe="$AWK '"\
15448 " {last_section=section; section=\$ 3};"\
15449 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15450 " \$ 0!~/External *\|/{next};"\
15451 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15452 " {if(hide[section]) next};"\
15453 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15454 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15455 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15456 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15457 " ' prfx=^$ac_symprfx"
15458 else
15459 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15462 # Check to see that the pipe works correctly.
15463 pipe_works=no
15465 rm -f conftest*
15466 cat > conftest.$ac_ext <<_LT_EOF
15467 #ifdef __cplusplus
15468 extern "C" {
15469 #endif
15470 char nm_test_var;
15471 void nm_test_func(void);
15472 void nm_test_func(void){}
15473 #ifdef __cplusplus
15475 #endif
15476 int main(){nm_test_var='a';nm_test_func();return(0);}
15477 _LT_EOF
15479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15480 (eval $ac_compile) 2>&5
15481 ac_status=$?
15482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15483 test $ac_status = 0; }; then
15484 # Now try to grab the symbols.
15485 nlist=conftest.nm
15486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15487 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15488 ac_status=$?
15489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15490 test $ac_status = 0; } && test -s "$nlist"; then
15491 # Try sorting and uniquifying the output.
15492 if sort "$nlist" | uniq > "$nlist"T; then
15493 mv -f "$nlist"T "$nlist"
15494 else
15495 rm -f "$nlist"T
15498 # Make sure that we snagged all the symbols we need.
15499 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15500 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15501 cat <<_LT_EOF > conftest.$ac_ext
15502 #ifdef __cplusplus
15503 extern "C" {
15504 #endif
15506 _LT_EOF
15507 # Now generate the symbol file.
15508 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15510 cat <<_LT_EOF >> conftest.$ac_ext
15512 /* The mapping between symbol names and symbols. */
15513 const struct {
15514 const char *name;
15515 void *address;
15517 lt__PROGRAM__LTX_preloaded_symbols[] =
15519 { "@PROGRAM@", (void *) 0 },
15520 _LT_EOF
15521 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15522 cat <<\_LT_EOF >> conftest.$ac_ext
15523 {0, (void *) 0}
15526 /* This works around a problem in FreeBSD linker */
15527 #ifdef FREEBSD_WORKAROUND
15528 static const void *lt_preloaded_setup() {
15529 return lt__PROGRAM__LTX_preloaded_symbols;
15531 #endif
15533 #ifdef __cplusplus
15535 #endif
15536 _LT_EOF
15537 # Now try linking the two files.
15538 mv conftest.$ac_objext conftstm.$ac_objext
15539 lt_save_LIBS="$LIBS"
15540 lt_save_CFLAGS="$CFLAGS"
15541 LIBS="conftstm.$ac_objext"
15542 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15544 (eval $ac_link) 2>&5
15545 ac_status=$?
15546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15547 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15548 pipe_works=yes
15550 LIBS="$lt_save_LIBS"
15551 CFLAGS="$lt_save_CFLAGS"
15552 else
15553 echo "cannot find nm_test_func in $nlist" >&5
15555 else
15556 echo "cannot find nm_test_var in $nlist" >&5
15558 else
15559 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15561 else
15562 echo "$progname: failed program was:" >&5
15563 cat conftest.$ac_ext >&5
15565 rm -rf conftest* conftst*
15567 # Do not use the global_symbol_pipe unless it works.
15568 if test "$pipe_works" = yes; then
15569 break
15570 else
15571 lt_cv_sys_global_symbol_pipe=
15573 done
15577 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15578 lt_cv_sys_global_symbol_to_cdecl=
15580 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15582 $as_echo "failed" >&6; }
15583 else
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15585 $as_echo "ok" >&6; }
15609 # Check whether --enable-libtool-lock was given.
15610 if test "${enable_libtool_lock+set}" = set; then :
15611 enableval=$enable_libtool_lock;
15614 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15616 # Some flags need to be propagated to the compiler or linker for good
15617 # libtool support.
15618 case $host in
15619 ia64-*-hpux*)
15620 # Find out which ABI we are using.
15621 echo 'int i;' > conftest.$ac_ext
15622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15623 (eval $ac_compile) 2>&5
15624 ac_status=$?
15625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15626 test $ac_status = 0; }; then
15627 case `/usr/bin/file conftest.$ac_objext` in
15628 *ELF-32*)
15629 HPUX_IA64_MODE="32"
15631 *ELF-64*)
15632 HPUX_IA64_MODE="64"
15634 esac
15636 rm -rf conftest*
15638 *-*-irix6*)
15639 # Find out which ABI we are using.
15640 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15642 (eval $ac_compile) 2>&5
15643 ac_status=$?
15644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15645 test $ac_status = 0; }; then
15646 if test "$lt_cv_prog_gnu_ld" = yes; then
15647 case `/usr/bin/file conftest.$ac_objext` in
15648 *32-bit*)
15649 LD="${LD-ld} -melf32bsmip"
15651 *N32*)
15652 LD="${LD-ld} -melf32bmipn32"
15654 *64-bit*)
15655 LD="${LD-ld} -melf64bmip"
15657 esac
15658 else
15659 case `/usr/bin/file conftest.$ac_objext` in
15660 *32-bit*)
15661 LD="${LD-ld} -32"
15663 *N32*)
15664 LD="${LD-ld} -n32"
15666 *64-bit*)
15667 LD="${LD-ld} -64"
15669 esac
15672 rm -rf conftest*
15675 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15676 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15677 # Find out which ABI we are using.
15678 echo 'int i;' > conftest.$ac_ext
15679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15680 (eval $ac_compile) 2>&5
15681 ac_status=$?
15682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15683 test $ac_status = 0; }; then
15684 case `/usr/bin/file conftest.o` in
15685 *32-bit*)
15686 case $host in
15687 x86_64-*kfreebsd*-gnu)
15688 LD="${LD-ld} -m elf_i386_fbsd"
15690 x86_64-*linux*)
15691 case `/usr/bin/file conftest.o` in
15692 *x86-64*)
15693 LD="${LD-ld} -m elf32_x86_64"
15696 LD="${LD-ld} -m elf_i386"
15698 esac
15700 powerpc64le-*linux*)
15701 LD="${LD-ld} -m elf32lppclinux"
15703 powerpc64-*linux*)
15704 LD="${LD-ld} -m elf32ppclinux"
15706 s390x-*linux*)
15707 LD="${LD-ld} -m elf_s390"
15709 sparc64-*linux*)
15710 LD="${LD-ld} -m elf32_sparc"
15712 esac
15714 *64-bit*)
15715 case $host in
15716 x86_64-*kfreebsd*-gnu)
15717 LD="${LD-ld} -m elf_x86_64_fbsd"
15719 x86_64-*linux*)
15720 LD="${LD-ld} -m elf_x86_64"
15722 powerpcle-*linux*)
15723 LD="${LD-ld} -m elf64lppc"
15725 powerpc-*linux*)
15726 LD="${LD-ld} -m elf64ppc"
15728 s390*-*linux*|s390*-*tpf*)
15729 LD="${LD-ld} -m elf64_s390"
15731 sparc*-*linux*)
15732 LD="${LD-ld} -m elf64_sparc"
15734 esac
15736 esac
15738 rm -rf conftest*
15741 *-*-sco3.2v5*)
15742 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15743 SAVE_CFLAGS="$CFLAGS"
15744 CFLAGS="$CFLAGS -belf"
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15746 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15747 if ${lt_cv_cc_needs_belf+:} false; then :
15748 $as_echo_n "(cached) " >&6
15749 else
15750 ac_ext=c
15751 ac_cpp='$CPP $CPPFLAGS'
15752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h. */
15760 main ()
15764 return 0;
15766 _ACEOF
15767 if ac_fn_c_try_link "$LINENO"; then :
15768 lt_cv_cc_needs_belf=yes
15769 else
15770 lt_cv_cc_needs_belf=no
15772 rm -f core conftest.err conftest.$ac_objext \
15773 conftest$ac_exeext conftest.$ac_ext
15774 ac_ext=c
15775 ac_cpp='$CPP $CPPFLAGS'
15776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15782 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15783 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15784 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15785 CFLAGS="$SAVE_CFLAGS"
15788 sparc*-*solaris*)
15789 # Find out which ABI we are using.
15790 echo 'int i;' > conftest.$ac_ext
15791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15792 (eval $ac_compile) 2>&5
15793 ac_status=$?
15794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15795 test $ac_status = 0; }; then
15796 case `/usr/bin/file conftest.o` in
15797 *64-bit*)
15798 case $lt_cv_prog_gnu_ld in
15799 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15801 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15802 LD="${LD-ld} -64"
15805 esac
15807 esac
15809 rm -rf conftest*
15811 esac
15813 need_locks="$enable_libtool_lock"
15816 case $host_os in
15817 rhapsody* | darwin*)
15818 if test -n "$ac_tool_prefix"; then
15819 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15820 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15822 $as_echo_n "checking for $ac_word... " >&6; }
15823 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15824 $as_echo_n "(cached) " >&6
15825 else
15826 if test -n "$DSYMUTIL"; then
15827 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15828 else
15829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15830 for as_dir in $PATH
15832 IFS=$as_save_IFS
15833 test -z "$as_dir" && as_dir=.
15834 for ac_exec_ext in '' $ac_executable_extensions; do
15835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15836 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15838 break 2
15840 done
15841 done
15842 IFS=$as_save_IFS
15846 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15847 if test -n "$DSYMUTIL"; then
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15849 $as_echo "$DSYMUTIL" >&6; }
15850 else
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15852 $as_echo "no" >&6; }
15857 if test -z "$ac_cv_prog_DSYMUTIL"; then
15858 ac_ct_DSYMUTIL=$DSYMUTIL
15859 # Extract the first word of "dsymutil", so it can be a program name with args.
15860 set dummy dsymutil; ac_word=$2
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15862 $as_echo_n "checking for $ac_word... " >&6; }
15863 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15864 $as_echo_n "(cached) " >&6
15865 else
15866 if test -n "$ac_ct_DSYMUTIL"; then
15867 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15868 else
15869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15870 for as_dir in $PATH
15872 IFS=$as_save_IFS
15873 test -z "$as_dir" && as_dir=.
15874 for ac_exec_ext in '' $ac_executable_extensions; do
15875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15876 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15878 break 2
15880 done
15881 done
15882 IFS=$as_save_IFS
15886 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15887 if test -n "$ac_ct_DSYMUTIL"; then
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15889 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15890 else
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15892 $as_echo "no" >&6; }
15895 if test "x$ac_ct_DSYMUTIL" = x; then
15896 DSYMUTIL=":"
15897 else
15898 case $cross_compiling:$ac_tool_warned in
15899 yes:)
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15902 ac_tool_warned=yes ;;
15903 esac
15904 DSYMUTIL=$ac_ct_DSYMUTIL
15906 else
15907 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15910 if test -n "$ac_tool_prefix"; then
15911 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15912 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15914 $as_echo_n "checking for $ac_word... " >&6; }
15915 if ${ac_cv_prog_NMEDIT+:} false; then :
15916 $as_echo_n "(cached) " >&6
15917 else
15918 if test -n "$NMEDIT"; then
15919 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15920 else
15921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15922 for as_dir in $PATH
15924 IFS=$as_save_IFS
15925 test -z "$as_dir" && as_dir=.
15926 for ac_exec_ext in '' $ac_executable_extensions; do
15927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15928 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15930 break 2
15932 done
15933 done
15934 IFS=$as_save_IFS
15938 NMEDIT=$ac_cv_prog_NMEDIT
15939 if test -n "$NMEDIT"; then
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15941 $as_echo "$NMEDIT" >&6; }
15942 else
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15944 $as_echo "no" >&6; }
15949 if test -z "$ac_cv_prog_NMEDIT"; then
15950 ac_ct_NMEDIT=$NMEDIT
15951 # Extract the first word of "nmedit", so it can be a program name with args.
15952 set dummy nmedit; ac_word=$2
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15954 $as_echo_n "checking for $ac_word... " >&6; }
15955 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15956 $as_echo_n "(cached) " >&6
15957 else
15958 if test -n "$ac_ct_NMEDIT"; then
15959 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15960 else
15961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15962 for as_dir in $PATH
15964 IFS=$as_save_IFS
15965 test -z "$as_dir" && as_dir=.
15966 for ac_exec_ext in '' $ac_executable_extensions; do
15967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15968 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15970 break 2
15972 done
15973 done
15974 IFS=$as_save_IFS
15978 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15979 if test -n "$ac_ct_NMEDIT"; then
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15981 $as_echo "$ac_ct_NMEDIT" >&6; }
15982 else
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15984 $as_echo "no" >&6; }
15987 if test "x$ac_ct_NMEDIT" = x; then
15988 NMEDIT=":"
15989 else
15990 case $cross_compiling:$ac_tool_warned in
15991 yes:)
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15994 ac_tool_warned=yes ;;
15995 esac
15996 NMEDIT=$ac_ct_NMEDIT
15998 else
15999 NMEDIT="$ac_cv_prog_NMEDIT"
16002 if test -n "$ac_tool_prefix"; then
16003 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
16004 set dummy ${ac_tool_prefix}lipo; ac_word=$2
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16006 $as_echo_n "checking for $ac_word... " >&6; }
16007 if ${ac_cv_prog_LIPO+:} false; then :
16008 $as_echo_n "(cached) " >&6
16009 else
16010 if test -n "$LIPO"; then
16011 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16012 else
16013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16014 for as_dir in $PATH
16016 IFS=$as_save_IFS
16017 test -z "$as_dir" && as_dir=.
16018 for ac_exec_ext in '' $ac_executable_extensions; do
16019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16020 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
16021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16022 break 2
16024 done
16025 done
16026 IFS=$as_save_IFS
16030 LIPO=$ac_cv_prog_LIPO
16031 if test -n "$LIPO"; then
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
16033 $as_echo "$LIPO" >&6; }
16034 else
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16036 $as_echo "no" >&6; }
16041 if test -z "$ac_cv_prog_LIPO"; then
16042 ac_ct_LIPO=$LIPO
16043 # Extract the first word of "lipo", so it can be a program name with args.
16044 set dummy lipo; ac_word=$2
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16046 $as_echo_n "checking for $ac_word... " >&6; }
16047 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16048 $as_echo_n "(cached) " >&6
16049 else
16050 if test -n "$ac_ct_LIPO"; then
16051 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16052 else
16053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16054 for as_dir in $PATH
16056 IFS=$as_save_IFS
16057 test -z "$as_dir" && as_dir=.
16058 for ac_exec_ext in '' $ac_executable_extensions; do
16059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16060 ac_cv_prog_ac_ct_LIPO="lipo"
16061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16062 break 2
16064 done
16065 done
16066 IFS=$as_save_IFS
16070 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16071 if test -n "$ac_ct_LIPO"; then
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
16073 $as_echo "$ac_ct_LIPO" >&6; }
16074 else
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16076 $as_echo "no" >&6; }
16079 if test "x$ac_ct_LIPO" = x; then
16080 LIPO=":"
16081 else
16082 case $cross_compiling:$ac_tool_warned in
16083 yes:)
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16086 ac_tool_warned=yes ;;
16087 esac
16088 LIPO=$ac_ct_LIPO
16090 else
16091 LIPO="$ac_cv_prog_LIPO"
16094 if test -n "$ac_tool_prefix"; then
16095 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16096 set dummy ${ac_tool_prefix}otool; ac_word=$2
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16098 $as_echo_n "checking for $ac_word... " >&6; }
16099 if ${ac_cv_prog_OTOOL+:} false; then :
16100 $as_echo_n "(cached) " >&6
16101 else
16102 if test -n "$OTOOL"; then
16103 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16104 else
16105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16106 for as_dir in $PATH
16108 IFS=$as_save_IFS
16109 test -z "$as_dir" && as_dir=.
16110 for ac_exec_ext in '' $ac_executable_extensions; do
16111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16112 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16114 break 2
16116 done
16117 done
16118 IFS=$as_save_IFS
16122 OTOOL=$ac_cv_prog_OTOOL
16123 if test -n "$OTOOL"; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
16125 $as_echo "$OTOOL" >&6; }
16126 else
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16128 $as_echo "no" >&6; }
16133 if test -z "$ac_cv_prog_OTOOL"; then
16134 ac_ct_OTOOL=$OTOOL
16135 # Extract the first word of "otool", so it can be a program name with args.
16136 set dummy otool; ac_word=$2
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16138 $as_echo_n "checking for $ac_word... " >&6; }
16139 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16140 $as_echo_n "(cached) " >&6
16141 else
16142 if test -n "$ac_ct_OTOOL"; then
16143 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16144 else
16145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16146 for as_dir in $PATH
16148 IFS=$as_save_IFS
16149 test -z "$as_dir" && as_dir=.
16150 for ac_exec_ext in '' $ac_executable_extensions; do
16151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16152 ac_cv_prog_ac_ct_OTOOL="otool"
16153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16154 break 2
16156 done
16157 done
16158 IFS=$as_save_IFS
16162 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16163 if test -n "$ac_ct_OTOOL"; then
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16165 $as_echo "$ac_ct_OTOOL" >&6; }
16166 else
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16168 $as_echo "no" >&6; }
16171 if test "x$ac_ct_OTOOL" = x; then
16172 OTOOL=":"
16173 else
16174 case $cross_compiling:$ac_tool_warned in
16175 yes:)
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16178 ac_tool_warned=yes ;;
16179 esac
16180 OTOOL=$ac_ct_OTOOL
16182 else
16183 OTOOL="$ac_cv_prog_OTOOL"
16186 if test -n "$ac_tool_prefix"; then
16187 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16188 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16190 $as_echo_n "checking for $ac_word... " >&6; }
16191 if ${ac_cv_prog_OTOOL64+:} false; then :
16192 $as_echo_n "(cached) " >&6
16193 else
16194 if test -n "$OTOOL64"; then
16195 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16196 else
16197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16198 for as_dir in $PATH
16200 IFS=$as_save_IFS
16201 test -z "$as_dir" && as_dir=.
16202 for ac_exec_ext in '' $ac_executable_extensions; do
16203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16204 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16206 break 2
16208 done
16209 done
16210 IFS=$as_save_IFS
16214 OTOOL64=$ac_cv_prog_OTOOL64
16215 if test -n "$OTOOL64"; then
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16217 $as_echo "$OTOOL64" >&6; }
16218 else
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16220 $as_echo "no" >&6; }
16225 if test -z "$ac_cv_prog_OTOOL64"; then
16226 ac_ct_OTOOL64=$OTOOL64
16227 # Extract the first word of "otool64", so it can be a program name with args.
16228 set dummy otool64; ac_word=$2
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16230 $as_echo_n "checking for $ac_word... " >&6; }
16231 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16232 $as_echo_n "(cached) " >&6
16233 else
16234 if test -n "$ac_ct_OTOOL64"; then
16235 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16236 else
16237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16238 for as_dir in $PATH
16240 IFS=$as_save_IFS
16241 test -z "$as_dir" && as_dir=.
16242 for ac_exec_ext in '' $ac_executable_extensions; do
16243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16244 ac_cv_prog_ac_ct_OTOOL64="otool64"
16245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16246 break 2
16248 done
16249 done
16250 IFS=$as_save_IFS
16254 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16255 if test -n "$ac_ct_OTOOL64"; then
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16257 $as_echo "$ac_ct_OTOOL64" >&6; }
16258 else
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16260 $as_echo "no" >&6; }
16263 if test "x$ac_ct_OTOOL64" = x; then
16264 OTOOL64=":"
16265 else
16266 case $cross_compiling:$ac_tool_warned in
16267 yes:)
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16270 ac_tool_warned=yes ;;
16271 esac
16272 OTOOL64=$ac_ct_OTOOL64
16274 else
16275 OTOOL64="$ac_cv_prog_OTOOL64"
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16305 $as_echo_n "checking for -single_module linker flag... " >&6; }
16306 if ${lt_cv_apple_cc_single_mod+:} false; then :
16307 $as_echo_n "(cached) " >&6
16308 else
16309 lt_cv_apple_cc_single_mod=no
16310 if test -z "${LT_MULTI_MODULE}"; then
16311 # By default we will add the -single_module flag. You can override
16312 # by either setting the environment variable LT_MULTI_MODULE
16313 # non-empty at configure time, or by adding -multi_module to the
16314 # link flags.
16315 rm -rf libconftest.dylib*
16316 echo "int foo(void){return 1;}" > conftest.c
16317 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16318 -dynamiclib -Wl,-single_module conftest.c" >&5
16319 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16320 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16321 _lt_result=$?
16322 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16323 lt_cv_apple_cc_single_mod=yes
16324 else
16325 cat conftest.err >&5
16327 rm -rf libconftest.dylib*
16328 rm -f conftest.*
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16332 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16334 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16335 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16336 $as_echo_n "(cached) " >&6
16337 else
16338 lt_cv_ld_exported_symbols_list=no
16339 save_LDFLAGS=$LDFLAGS
16340 echo "_main" > conftest.sym
16341 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h. */
16346 main ()
16350 return 0;
16352 _ACEOF
16353 if ac_fn_c_try_link "$LINENO"; then :
16354 lt_cv_ld_exported_symbols_list=yes
16355 else
16356 lt_cv_ld_exported_symbols_list=no
16358 rm -f core conftest.err conftest.$ac_objext \
16359 conftest$ac_exeext conftest.$ac_ext
16360 LDFLAGS="$save_LDFLAGS"
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16364 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16366 $as_echo_n "checking for -force_load linker flag... " >&6; }
16367 if ${lt_cv_ld_force_load+:} false; then :
16368 $as_echo_n "(cached) " >&6
16369 else
16370 lt_cv_ld_force_load=no
16371 cat > conftest.c << _LT_EOF
16372 int forced_loaded() { return 2;}
16373 _LT_EOF
16374 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16375 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16376 echo "$AR cru libconftest.a conftest.o" >&5
16377 $AR cru libconftest.a conftest.o 2>&5
16378 cat > conftest.c << _LT_EOF
16379 int main() { return 0;}
16380 _LT_EOF
16381 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16382 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16383 _lt_result=$?
16384 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16385 lt_cv_ld_force_load=yes
16386 else
16387 cat conftest.err >&5
16389 rm -f conftest.err libconftest.a conftest conftest.c
16390 rm -rf conftest.dSYM
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16394 $as_echo "$lt_cv_ld_force_load" >&6; }
16395 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16396 # build without first building modern cctools / linker.
16397 case $host_cpu-$host_os in
16398 *-rhapsody* | *-darwin1.[012])
16399 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16400 *-darwin1.*)
16401 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16402 *-darwin*)
16403 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16404 # deployment target is forced to an earlier version.
16405 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16406 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
16408 10.[012][,.]*)
16409 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16413 esac
16415 esac
16416 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16417 _lt_dar_single_mod='$single_module'
16419 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16420 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16421 else
16422 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16424 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16425 _lt_dsymutil='~$DSYMUTIL $lib || :'
16426 else
16427 _lt_dsymutil=
16430 esac
16433 for ac_header in dlfcn.h
16434 do :
16435 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16436 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16437 cat >>confdefs.h <<_ACEOF
16438 #define HAVE_DLFCN_H 1
16439 _ACEOF
16442 done
16448 # Set options
16452 enable_dlopen=no
16455 enable_win32_dll=no
16458 # Check whether --enable-shared was given.
16459 if test "${enable_shared+set}" = set; then :
16460 enableval=$enable_shared; p=${PACKAGE-default}
16461 case $enableval in
16462 yes) enable_shared=yes ;;
16463 no) enable_shared=no ;;
16465 enable_shared=no
16466 # Look at the argument we got. We use all the common list separators.
16467 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16468 for pkg in $enableval; do
16469 IFS="$lt_save_ifs"
16470 if test "X$pkg" = "X$p"; then
16471 enable_shared=yes
16473 done
16474 IFS="$lt_save_ifs"
16476 esac
16477 else
16478 enable_shared=yes
16489 # Check whether --enable-static was given.
16490 if test "${enable_static+set}" = set; then :
16491 enableval=$enable_static; p=${PACKAGE-default}
16492 case $enableval in
16493 yes) enable_static=yes ;;
16494 no) enable_static=no ;;
16496 enable_static=no
16497 # Look at the argument we got. We use all the common list separators.
16498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16499 for pkg in $enableval; do
16500 IFS="$lt_save_ifs"
16501 if test "X$pkg" = "X$p"; then
16502 enable_static=yes
16504 done
16505 IFS="$lt_save_ifs"
16507 esac
16508 else
16509 enable_static=yes
16521 # Check whether --with-pic was given.
16522 if test "${with_pic+set}" = set; then :
16523 withval=$with_pic; pic_mode="$withval"
16524 else
16525 pic_mode=default
16529 test -z "$pic_mode" && pic_mode=default
16537 # Check whether --enable-fast-install was given.
16538 if test "${enable_fast_install+set}" = set; then :
16539 enableval=$enable_fast_install; p=${PACKAGE-default}
16540 case $enableval in
16541 yes) enable_fast_install=yes ;;
16542 no) enable_fast_install=no ;;
16544 enable_fast_install=no
16545 # Look at the argument we got. We use all the common list separators.
16546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16547 for pkg in $enableval; do
16548 IFS="$lt_save_ifs"
16549 if test "X$pkg" = "X$p"; then
16550 enable_fast_install=yes
16552 done
16553 IFS="$lt_save_ifs"
16555 esac
16556 else
16557 enable_fast_install=yes
16570 # This can be used to rebuild libtool when needed
16571 LIBTOOL_DEPS="$ltmain"
16573 # Always use our own libtool.
16574 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16601 test -z "$LN_S" && LN_S="ln -s"
16616 if test -n "${ZSH_VERSION+set}" ; then
16617 setopt NO_GLOB_SUBST
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16621 $as_echo_n "checking for objdir... " >&6; }
16622 if ${lt_cv_objdir+:} false; then :
16623 $as_echo_n "(cached) " >&6
16624 else
16625 rm -f .libs 2>/dev/null
16626 mkdir .libs 2>/dev/null
16627 if test -d .libs; then
16628 lt_cv_objdir=.libs
16629 else
16630 # MS-DOS does not allow filenames that begin with a dot.
16631 lt_cv_objdir=_libs
16633 rmdir .libs 2>/dev/null
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16636 $as_echo "$lt_cv_objdir" >&6; }
16637 objdir=$lt_cv_objdir
16643 cat >>confdefs.h <<_ACEOF
16644 #define LT_OBJDIR "$lt_cv_objdir/"
16645 _ACEOF
16650 case $host_os in
16651 aix3*)
16652 # AIX sometimes has problems with the GCC collect2 program. For some
16653 # reason, if we set the COLLECT_NAMES environment variable, the problems
16654 # vanish in a puff of smoke.
16655 if test "X${COLLECT_NAMES+set}" != Xset; then
16656 COLLECT_NAMES=
16657 export COLLECT_NAMES
16660 esac
16662 # Global variables:
16663 ofile=libtool
16664 can_build_shared=yes
16666 # All known linkers require a `.a' archive for static linking (except MSVC,
16667 # which needs '.lib').
16668 libext=a
16670 with_gnu_ld="$lt_cv_prog_gnu_ld"
16672 old_CC="$CC"
16673 old_CFLAGS="$CFLAGS"
16675 # Set sane defaults for various variables
16676 test -z "$CC" && CC=cc
16677 test -z "$LTCC" && LTCC=$CC
16678 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16679 test -z "$LD" && LD=ld
16680 test -z "$ac_objext" && ac_objext=o
16682 for cc_temp in $compiler""; do
16683 case $cc_temp in
16684 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16685 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16686 \-*) ;;
16687 *) break;;
16688 esac
16689 done
16690 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16693 # Only perform the check for file, if the check method requires it
16694 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16695 case $deplibs_check_method in
16696 file_magic*)
16697 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16699 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16700 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16701 $as_echo_n "(cached) " >&6
16702 else
16703 case $MAGIC_CMD in
16704 [\\/*] | ?:[\\/]*)
16705 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16708 lt_save_MAGIC_CMD="$MAGIC_CMD"
16709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16710 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16711 for ac_dir in $ac_dummy; do
16712 IFS="$lt_save_ifs"
16713 test -z "$ac_dir" && ac_dir=.
16714 if test -f $ac_dir/${ac_tool_prefix}file; then
16715 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16716 if test -n "$file_magic_test_file"; then
16717 case $deplibs_check_method in
16718 "file_magic "*)
16719 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16721 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16722 $EGREP "$file_magic_regex" > /dev/null; then
16724 else
16725 cat <<_LT_EOF 1>&2
16727 *** Warning: the command libtool uses to detect shared libraries,
16728 *** $file_magic_cmd, produces output that libtool cannot recognize.
16729 *** The result is that libtool may fail to recognize shared libraries
16730 *** as such. This will affect the creation of libtool libraries that
16731 *** depend on shared libraries, but programs linked with such libtool
16732 *** libraries will work regardless of this problem. Nevertheless, you
16733 *** may want to report the problem to your system manager and/or to
16734 *** bug-libtool@gnu.org
16736 _LT_EOF
16737 fi ;;
16738 esac
16740 break
16742 done
16743 IFS="$lt_save_ifs"
16744 MAGIC_CMD="$lt_save_MAGIC_CMD"
16746 esac
16749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16750 if test -n "$MAGIC_CMD"; then
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16752 $as_echo "$MAGIC_CMD" >&6; }
16753 else
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16755 $as_echo "no" >&6; }
16762 if test -z "$lt_cv_path_MAGIC_CMD"; then
16763 if test -n "$ac_tool_prefix"; then
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16765 $as_echo_n "checking for file... " >&6; }
16766 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16767 $as_echo_n "(cached) " >&6
16768 else
16769 case $MAGIC_CMD in
16770 [\\/*] | ?:[\\/]*)
16771 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16774 lt_save_MAGIC_CMD="$MAGIC_CMD"
16775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16776 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16777 for ac_dir in $ac_dummy; do
16778 IFS="$lt_save_ifs"
16779 test -z "$ac_dir" && ac_dir=.
16780 if test -f $ac_dir/file; then
16781 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16782 if test -n "$file_magic_test_file"; then
16783 case $deplibs_check_method in
16784 "file_magic "*)
16785 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16787 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16788 $EGREP "$file_magic_regex" > /dev/null; then
16790 else
16791 cat <<_LT_EOF 1>&2
16793 *** Warning: the command libtool uses to detect shared libraries,
16794 *** $file_magic_cmd, produces output that libtool cannot recognize.
16795 *** The result is that libtool may fail to recognize shared libraries
16796 *** as such. This will affect the creation of libtool libraries that
16797 *** depend on shared libraries, but programs linked with such libtool
16798 *** libraries will work regardless of this problem. Nevertheless, you
16799 *** may want to report the problem to your system manager and/or to
16800 *** bug-libtool@gnu.org
16802 _LT_EOF
16803 fi ;;
16804 esac
16806 break
16808 done
16809 IFS="$lt_save_ifs"
16810 MAGIC_CMD="$lt_save_MAGIC_CMD"
16812 esac
16815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16816 if test -n "$MAGIC_CMD"; then
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16818 $as_echo "$MAGIC_CMD" >&6; }
16819 else
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821 $as_echo "no" >&6; }
16825 else
16826 MAGIC_CMD=:
16832 esac
16834 # Use C for the default configuration in the libtool script
16836 lt_save_CC="$CC"
16837 ac_ext=c
16838 ac_cpp='$CPP $CPPFLAGS'
16839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16844 # Source file extension for C test sources.
16845 ac_ext=c
16847 # Object file extension for compiled C test sources.
16848 objext=o
16849 objext=$objext
16851 # Code to be used in simple compile tests
16852 lt_simple_compile_test_code="int some_variable = 0;"
16854 # Code to be used in simple link tests
16855 lt_simple_link_test_code='int main(){return(0);}'
16863 # If no C compiler was specified, use CC.
16864 LTCC=${LTCC-"$CC"}
16866 # If no C compiler flags were specified, use CFLAGS.
16867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16869 # Allow CC to be a program name with arguments.
16870 compiler=$CC
16872 # Save the default compiler, since it gets overwritten when the other
16873 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16874 compiler_DEFAULT=$CC
16876 # save warnings/boilerplate of simple test code
16877 ac_outfile=conftest.$ac_objext
16878 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16880 _lt_compiler_boilerplate=`cat conftest.err`
16881 $RM conftest*
16883 ac_outfile=conftest.$ac_objext
16884 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16886 _lt_linker_boilerplate=`cat conftest.err`
16887 $RM -r conftest*
16890 ## CAVEAT EMPTOR:
16891 ## There is no encapsulation within the following macros, do not change
16892 ## the running order or otherwise move them around unless you know exactly
16893 ## what you are doing...
16894 if test -n "$compiler"; then
16896 lt_prog_compiler_no_builtin_flag=
16898 if test "$GCC" = yes; then
16899 case $cc_basename in
16900 nvcc*)
16901 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16903 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16904 esac
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16907 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16908 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16909 $as_echo_n "(cached) " >&6
16910 else
16911 lt_cv_prog_compiler_rtti_exceptions=no
16912 ac_outfile=conftest.$ac_objext
16913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16914 lt_compiler_flag="-fno-rtti -fno-exceptions"
16915 # Insert the option either (1) after the last *FLAGS variable, or
16916 # (2) before a word containing "conftest.", or (3) at the end.
16917 # Note that $ac_compile itself does not contain backslashes and begins
16918 # with a dollar sign (not a hyphen), so the echo should work correctly.
16919 # The option is referenced via a variable to avoid confusing sed.
16920 lt_compile=`echo "$ac_compile" | $SED \
16921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16923 -e 's:$: $lt_compiler_flag:'`
16924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16925 (eval "$lt_compile" 2>conftest.err)
16926 ac_status=$?
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 if (exit $ac_status) && test -s "$ac_outfile"; then
16930 # The compiler can only warn and ignore the option if not recognized
16931 # So say no if there are warnings other than the usual output.
16932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16934 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16935 lt_cv_prog_compiler_rtti_exceptions=yes
16938 $RM conftest*
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16942 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16944 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16945 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16946 else
16957 lt_prog_compiler_wl=
16958 lt_prog_compiler_pic=
16959 lt_prog_compiler_static=
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16962 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16964 if test "$GCC" = yes; then
16965 lt_prog_compiler_wl='-Wl,'
16966 lt_prog_compiler_static='-static'
16968 case $host_os in
16969 aix*)
16970 # All AIX code is PIC.
16971 if test "$host_cpu" = ia64; then
16972 # AIX 5 now supports IA64 processor
16973 lt_prog_compiler_static='-Bstatic'
16975 lt_prog_compiler_pic='-fPIC'
16978 amigaos*)
16979 case $host_cpu in
16980 powerpc)
16981 # see comment about AmigaOS4 .so support
16982 lt_prog_compiler_pic='-fPIC'
16984 m68k)
16985 # FIXME: we need at least 68020 code to build shared libraries, but
16986 # adding the `-m68020' flag to GCC prevents building anything better,
16987 # like `-m68040'.
16988 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16990 esac
16993 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16994 # PIC is the default for these OSes.
16997 mingw* | cygwin* | pw32* | os2* | cegcc*)
16998 # This hack is so that the source file can tell whether it is being
16999 # built for inclusion in a dll (and should export symbols for example).
17000 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17001 # (--disable-auto-import) libraries
17002 lt_prog_compiler_pic='-DDLL_EXPORT'
17005 darwin* | rhapsody*)
17006 # PIC is the default on this platform
17007 # Common symbols not allowed in MH_DYLIB files
17008 lt_prog_compiler_pic='-fno-common'
17011 haiku*)
17012 # PIC is the default for Haiku.
17013 # The "-static" flag exists, but is broken.
17014 lt_prog_compiler_static=
17017 hpux*)
17018 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17019 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17020 # sets the default TLS model and affects inlining.
17021 case $host_cpu in
17022 hppa*64*)
17023 # +Z the default
17026 lt_prog_compiler_pic='-fPIC'
17028 esac
17031 interix[3-9]*)
17032 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17033 # Instead, we relocate shared libraries at runtime.
17036 msdosdjgpp*)
17037 # Just because we use GCC doesn't mean we suddenly get shared libraries
17038 # on systems that don't support them.
17039 lt_prog_compiler_can_build_shared=no
17040 enable_shared=no
17043 *nto* | *qnx*)
17044 # QNX uses GNU C++, but need to define -shared option too, otherwise
17045 # it will coredump.
17046 lt_prog_compiler_pic='-fPIC -shared'
17049 sysv4*MP*)
17050 if test -d /usr/nec; then
17051 lt_prog_compiler_pic=-Kconform_pic
17056 lt_prog_compiler_pic='-fPIC'
17058 esac
17060 case $cc_basename in
17061 nvcc*) # Cuda Compiler Driver 2.2
17062 lt_prog_compiler_wl='-Xlinker '
17063 lt_prog_compiler_pic='-Xcompiler -fPIC'
17065 esac
17066 else
17067 # PORTME Check for flag to pass linker flags through the system compiler.
17068 case $host_os in
17069 aix*)
17070 lt_prog_compiler_wl='-Wl,'
17071 if test "$host_cpu" = ia64; then
17072 # AIX 5 now supports IA64 processor
17073 lt_prog_compiler_static='-Bstatic'
17074 else
17075 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17079 mingw* | cygwin* | pw32* | os2* | cegcc*)
17080 # This hack is so that the source file can tell whether it is being
17081 # built for inclusion in a dll (and should export symbols for example).
17082 lt_prog_compiler_pic='-DDLL_EXPORT'
17085 hpux9* | hpux10* | hpux11*)
17086 lt_prog_compiler_wl='-Wl,'
17087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17088 # not for PA HP-UX.
17089 case $host_cpu in
17090 hppa*64*|ia64*)
17091 # +Z the default
17094 lt_prog_compiler_pic='+Z'
17096 esac
17097 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17098 lt_prog_compiler_static='${wl}-a ${wl}archive'
17101 irix5* | irix6* | nonstopux*)
17102 lt_prog_compiler_wl='-Wl,'
17103 # PIC (with -KPIC) is the default.
17104 lt_prog_compiler_static='-non_shared'
17107 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17108 case $cc_basename in
17109 # old Intel for x86_64 which still supported -KPIC.
17110 ecc*)
17111 lt_prog_compiler_wl='-Wl,'
17112 lt_prog_compiler_pic='-KPIC'
17113 lt_prog_compiler_static='-static'
17115 # icc used to be incompatible with GCC.
17116 # ICC 10 doesn't accept -KPIC any more.
17117 icc* | ifort*)
17118 lt_prog_compiler_wl='-Wl,'
17119 lt_prog_compiler_pic='-fPIC'
17120 lt_prog_compiler_static='-static'
17122 # Lahey Fortran 8.1.
17123 lf95*)
17124 lt_prog_compiler_wl='-Wl,'
17125 lt_prog_compiler_pic='--shared'
17126 lt_prog_compiler_static='--static'
17128 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17129 # Portland Group compilers (*not* the Pentium gcc compiler,
17130 # which looks to be a dead project)
17131 lt_prog_compiler_wl='-Wl,'
17132 lt_prog_compiler_pic='-fpic'
17133 lt_prog_compiler_static='-Bstatic'
17135 ccc*)
17136 lt_prog_compiler_wl='-Wl,'
17137 # All Alpha code is PIC.
17138 lt_prog_compiler_static='-non_shared'
17140 xl* | bgxl* | bgf* | mpixl*)
17141 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17142 lt_prog_compiler_wl='-Wl,'
17143 lt_prog_compiler_pic='-qpic'
17144 lt_prog_compiler_static='-qstaticlink'
17147 case `$CC -V 2>&1 | sed 5q` in
17148 *Sun\ F* | *Sun*Fortran*)
17149 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17150 lt_prog_compiler_pic='-KPIC'
17151 lt_prog_compiler_static='-Bstatic'
17152 lt_prog_compiler_wl=''
17154 *Sun\ C*)
17155 # Sun C 5.9
17156 lt_prog_compiler_pic='-KPIC'
17157 lt_prog_compiler_static='-Bstatic'
17158 lt_prog_compiler_wl='-Wl,'
17160 esac
17162 esac
17165 newsos6)
17166 lt_prog_compiler_pic='-KPIC'
17167 lt_prog_compiler_static='-Bstatic'
17170 *nto* | *qnx*)
17171 # QNX uses GNU C++, but need to define -shared option too, otherwise
17172 # it will coredump.
17173 lt_prog_compiler_pic='-fPIC -shared'
17176 osf3* | osf4* | osf5*)
17177 lt_prog_compiler_wl='-Wl,'
17178 # All OSF/1 code is PIC.
17179 lt_prog_compiler_static='-non_shared'
17182 rdos*)
17183 lt_prog_compiler_static='-non_shared'
17186 solaris*)
17187 lt_prog_compiler_pic='-KPIC'
17188 lt_prog_compiler_static='-Bstatic'
17189 case $cc_basename in
17190 f77* | f90* | f95*)
17191 lt_prog_compiler_wl='-Qoption ld ';;
17193 lt_prog_compiler_wl='-Wl,';;
17194 esac
17197 sunos4*)
17198 lt_prog_compiler_wl='-Qoption ld '
17199 lt_prog_compiler_pic='-PIC'
17200 lt_prog_compiler_static='-Bstatic'
17203 sysv4 | sysv4.2uw2* | sysv4.3*)
17204 lt_prog_compiler_wl='-Wl,'
17205 lt_prog_compiler_pic='-KPIC'
17206 lt_prog_compiler_static='-Bstatic'
17209 sysv4*MP*)
17210 if test -d /usr/nec ;then
17211 lt_prog_compiler_pic='-Kconform_pic'
17212 lt_prog_compiler_static='-Bstatic'
17216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17217 lt_prog_compiler_wl='-Wl,'
17218 lt_prog_compiler_pic='-KPIC'
17219 lt_prog_compiler_static='-Bstatic'
17222 unicos*)
17223 lt_prog_compiler_wl='-Wl,'
17224 lt_prog_compiler_can_build_shared=no
17227 uts4*)
17228 lt_prog_compiler_pic='-pic'
17229 lt_prog_compiler_static='-Bstatic'
17233 lt_prog_compiler_can_build_shared=no
17235 esac
17238 case $host_os in
17239 # For platforms which do not support PIC, -DPIC is meaningless:
17240 *djgpp*)
17241 lt_prog_compiler_pic=
17244 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17246 esac
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17248 $as_echo "$lt_prog_compiler_pic" >&6; }
17256 # Check to make sure the PIC flag actually works.
17258 if test -n "$lt_prog_compiler_pic"; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17260 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17261 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17262 $as_echo_n "(cached) " >&6
17263 else
17264 lt_cv_prog_compiler_pic_works=no
17265 ac_outfile=conftest.$ac_objext
17266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17267 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17268 # Insert the option either (1) after the last *FLAGS variable, or
17269 # (2) before a word containing "conftest.", or (3) at the end.
17270 # Note that $ac_compile itself does not contain backslashes and begins
17271 # with a dollar sign (not a hyphen), so the echo should work correctly.
17272 # The option is referenced via a variable to avoid confusing sed.
17273 lt_compile=`echo "$ac_compile" | $SED \
17274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17276 -e 's:$: $lt_compiler_flag:'`
17277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17278 (eval "$lt_compile" 2>conftest.err)
17279 ac_status=$?
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 if (exit $ac_status) && test -s "$ac_outfile"; then
17283 # The compiler can only warn and ignore the option if not recognized
17284 # So say no if there are warnings other than the usual output.
17285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17288 lt_cv_prog_compiler_pic_works=yes
17291 $RM conftest*
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17295 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17297 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17298 case $lt_prog_compiler_pic in
17299 "" | " "*) ;;
17300 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17301 esac
17302 else
17303 lt_prog_compiler_pic=
17304 lt_prog_compiler_can_build_shared=no
17315 # Check to make sure the static flag actually works.
17317 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17319 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17320 if ${lt_cv_prog_compiler_static_works+:} false; then :
17321 $as_echo_n "(cached) " >&6
17322 else
17323 lt_cv_prog_compiler_static_works=no
17324 save_LDFLAGS="$LDFLAGS"
17325 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17326 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17327 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17328 # The linker can only warn and ignore the option if not recognized
17329 # So say no if there are warnings
17330 if test -s conftest.err; then
17331 # Append any errors to the config.log.
17332 cat conftest.err 1>&5
17333 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17335 if diff conftest.exp conftest.er2 >/dev/null; then
17336 lt_cv_prog_compiler_static_works=yes
17338 else
17339 lt_cv_prog_compiler_static_works=yes
17342 $RM -r conftest*
17343 LDFLAGS="$save_LDFLAGS"
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17347 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17349 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17351 else
17352 lt_prog_compiler_static=
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17362 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17363 if ${lt_cv_prog_compiler_c_o+:} false; then :
17364 $as_echo_n "(cached) " >&6
17365 else
17366 lt_cv_prog_compiler_c_o=no
17367 $RM -r conftest 2>/dev/null
17368 mkdir conftest
17369 cd conftest
17370 mkdir out
17371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17373 lt_compiler_flag="-o out/conftest2.$ac_objext"
17374 # Insert the option either (1) after the last *FLAGS variable, or
17375 # (2) before a word containing "conftest.", or (3) at the end.
17376 # Note that $ac_compile itself does not contain backslashes and begins
17377 # with a dollar sign (not a hyphen), so the echo should work correctly.
17378 lt_compile=`echo "$ac_compile" | $SED \
17379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17381 -e 's:$: $lt_compiler_flag:'`
17382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17383 (eval "$lt_compile" 2>out/conftest.err)
17384 ac_status=$?
17385 cat out/conftest.err >&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17388 then
17389 # The compiler can only warn and ignore the option if not recognized
17390 # So say no if there are warnings
17391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17392 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17393 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17394 lt_cv_prog_compiler_c_o=yes
17397 chmod u+w . 2>&5
17398 $RM conftest*
17399 # SGI C++ compiler will create directory out/ii_files/ for
17400 # template instantiation
17401 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17402 $RM out/* && rmdir out
17403 cd ..
17404 $RM -r conftest
17405 $RM conftest*
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17409 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17417 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17418 if ${lt_cv_prog_compiler_c_o+:} false; then :
17419 $as_echo_n "(cached) " >&6
17420 else
17421 lt_cv_prog_compiler_c_o=no
17422 $RM -r conftest 2>/dev/null
17423 mkdir conftest
17424 cd conftest
17425 mkdir out
17426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17428 lt_compiler_flag="-o out/conftest2.$ac_objext"
17429 # Insert the option either (1) after the last *FLAGS variable, or
17430 # (2) before a word containing "conftest.", or (3) at the end.
17431 # Note that $ac_compile itself does not contain backslashes and begins
17432 # with a dollar sign (not a hyphen), so the echo should work correctly.
17433 lt_compile=`echo "$ac_compile" | $SED \
17434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17436 -e 's:$: $lt_compiler_flag:'`
17437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17438 (eval "$lt_compile" 2>out/conftest.err)
17439 ac_status=$?
17440 cat out/conftest.err >&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17443 then
17444 # The compiler can only warn and ignore the option if not recognized
17445 # So say no if there are warnings
17446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17449 lt_cv_prog_compiler_c_o=yes
17452 chmod u+w . 2>&5
17453 $RM conftest*
17454 # SGI C++ compiler will create directory out/ii_files/ for
17455 # template instantiation
17456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17457 $RM out/* && rmdir out
17458 cd ..
17459 $RM -r conftest
17460 $RM conftest*
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17464 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17469 hard_links="nottested"
17470 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17471 # do not overwrite the value of need_locks provided by the user
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17473 $as_echo_n "checking if we can lock with hard links... " >&6; }
17474 hard_links=yes
17475 $RM conftest*
17476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17477 touch conftest.a
17478 ln conftest.a conftest.b 2>&5 || hard_links=no
17479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17481 $as_echo "$hard_links" >&6; }
17482 if test "$hard_links" = no; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17484 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17485 need_locks=warn
17487 else
17488 need_locks=no
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17497 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17499 runpath_var=
17500 allow_undefined_flag=
17501 always_export_symbols=no
17502 archive_cmds=
17503 archive_expsym_cmds=
17504 compiler_needs_object=no
17505 enable_shared_with_static_runtimes=no
17506 export_dynamic_flag_spec=
17507 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17508 hardcode_automatic=no
17509 hardcode_direct=no
17510 hardcode_direct_absolute=no
17511 hardcode_libdir_flag_spec=
17512 hardcode_libdir_flag_spec_ld=
17513 hardcode_libdir_separator=
17514 hardcode_minus_L=no
17515 hardcode_shlibpath_var=unsupported
17516 inherit_rpath=no
17517 link_all_deplibs=unknown
17518 module_cmds=
17519 module_expsym_cmds=
17520 old_archive_from_new_cmds=
17521 old_archive_from_expsyms_cmds=
17522 thread_safe_flag_spec=
17523 whole_archive_flag_spec=
17524 # include_expsyms should be a list of space-separated symbols to be *always*
17525 # included in the symbol list
17526 include_expsyms=
17527 # exclude_expsyms can be an extended regexp of symbols to exclude
17528 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17529 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17530 # as well as any symbol that contains `d'.
17531 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17532 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17533 # platforms (ab)use it in PIC code, but their linkers get confused if
17534 # the symbol is explicitly referenced. Since portable code cannot
17535 # rely on this symbol name, it's probably fine to never include it in
17536 # preloaded symbol tables.
17537 # Exclude shared library initialization/finalization symbols.
17538 extract_expsyms_cmds=
17540 case $host_os in
17541 cygwin* | mingw* | pw32* | cegcc*)
17542 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17543 # When not using gcc, we currently assume that we are using
17544 # Microsoft Visual C++.
17545 if test "$GCC" != yes; then
17546 with_gnu_ld=no
17549 interix*)
17550 # we just hope/assume this is gcc and not c89 (= MSVC++)
17551 with_gnu_ld=yes
17553 openbsd*)
17554 with_gnu_ld=no
17556 esac
17558 ld_shlibs=yes
17560 # On some targets, GNU ld is compatible enough with the native linker
17561 # that we're better off using the native interface for both.
17562 lt_use_gnu_ld_interface=no
17563 if test "$with_gnu_ld" = yes; then
17564 case $host_os in
17565 aix*)
17566 # The AIX port of GNU ld has always aspired to compatibility
17567 # with the native linker. However, as the warning in the GNU ld
17568 # block says, versions before 2.19.5* couldn't really create working
17569 # shared libraries, regardless of the interface used.
17570 case `$LD -v 2>&1` in
17571 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17572 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17573 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17575 lt_use_gnu_ld_interface=yes
17577 esac
17580 lt_use_gnu_ld_interface=yes
17582 esac
17585 if test "$lt_use_gnu_ld_interface" = yes; then
17586 # If archive_cmds runs LD, not CC, wlarc should be empty
17587 wlarc='${wl}'
17589 # Set some defaults for GNU ld with shared library support. These
17590 # are reset later if shared libraries are not supported. Putting them
17591 # here allows them to be overridden if necessary.
17592 runpath_var=LD_RUN_PATH
17593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17594 export_dynamic_flag_spec='${wl}--export-dynamic'
17595 # ancient GNU ld didn't support --whole-archive et. al.
17596 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17597 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17598 else
17599 whole_archive_flag_spec=
17601 supports_anon_versioning=no
17602 case `$LD -v 2>&1` in
17603 *GNU\ gold*) supports_anon_versioning=yes ;;
17604 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17605 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17606 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17607 *\ 2.11.*) ;; # other 2.11 versions
17608 *) supports_anon_versioning=yes ;;
17609 esac
17611 # See if GNU ld supports shared libraries.
17612 case $host_os in
17613 aix[3-9]*)
17614 # On AIX/PPC, the GNU linker is very broken
17615 if test "$host_cpu" != ia64; then
17616 ld_shlibs=no
17617 cat <<_LT_EOF 1>&2
17619 *** Warning: the GNU linker, at least up to release 2.19, is reported
17620 *** to be unable to reliably create shared libraries on AIX.
17621 *** Therefore, libtool is disabling shared libraries support. If you
17622 *** really care for shared libraries, you may want to install binutils
17623 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17624 *** You will then need to restart the configuration process.
17626 _LT_EOF
17630 amigaos*)
17631 case $host_cpu in
17632 powerpc)
17633 # see comment about AmigaOS4 .so support
17634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17635 archive_expsym_cmds=''
17637 m68k)
17638 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)'
17639 hardcode_libdir_flag_spec='-L$libdir'
17640 hardcode_minus_L=yes
17642 esac
17645 beos*)
17646 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17647 allow_undefined_flag=unsupported
17648 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17649 # support --undefined. This deserves some investigation. FIXME
17650 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17651 else
17652 ld_shlibs=no
17656 cygwin* | mingw* | pw32* | cegcc*)
17657 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17658 # as there is no search path for DLLs.
17659 hardcode_libdir_flag_spec='-L$libdir'
17660 export_dynamic_flag_spec='${wl}--export-all-symbols'
17661 allow_undefined_flag=unsupported
17662 always_export_symbols=no
17663 enable_shared_with_static_runtimes=yes
17664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17666 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17668 # If the export-symbols file already is a .def file (1st line
17669 # is EXPORTS), use it as is; otherwise, prepend...
17670 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17671 cp $export_symbols $output_objdir/$soname.def;
17672 else
17673 echo EXPORTS > $output_objdir/$soname.def;
17674 cat $export_symbols >> $output_objdir/$soname.def;
17676 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17677 else
17678 ld_shlibs=no
17682 haiku*)
17683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17684 link_all_deplibs=yes
17687 interix[3-9]*)
17688 hardcode_direct=no
17689 hardcode_shlibpath_var=no
17690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17691 export_dynamic_flag_spec='${wl}-E'
17692 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17693 # Instead, shared libraries are loaded at an image base (0x10000000 by
17694 # default) and relocated if they conflict, which is a slow very memory
17695 # consuming and fragmenting process. To avoid this, we pick a random,
17696 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17697 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17698 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17699 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'
17702 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17703 tmp_diet=no
17704 if test "$host_os" = linux-dietlibc; then
17705 case $cc_basename in
17706 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17707 esac
17709 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17710 && test "$tmp_diet" = no
17711 then
17712 tmp_addflag=' $pic_flag'
17713 tmp_sharedflag='-shared'
17714 case $cc_basename,$host_cpu in
17715 pgcc*) # Portland Group C compiler
17716 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'
17717 tmp_addflag=' $pic_flag'
17719 pgf77* | pgf90* | pgf95* | pgfortran*)
17720 # Portland Group f77 and f90 compilers
17721 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'
17722 tmp_addflag=' $pic_flag -Mnomain' ;;
17723 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17724 tmp_addflag=' -i_dynamic' ;;
17725 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17726 tmp_addflag=' -i_dynamic -nofor_main' ;;
17727 ifc* | ifort*) # Intel Fortran compiler
17728 tmp_addflag=' -nofor_main' ;;
17729 lf95*) # Lahey Fortran 8.1
17730 whole_archive_flag_spec=
17731 tmp_sharedflag='--shared' ;;
17732 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17733 tmp_sharedflag='-qmkshrobj'
17734 tmp_addflag= ;;
17735 nvcc*) # Cuda Compiler Driver 2.2
17736 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'
17737 compiler_needs_object=yes
17739 esac
17740 case `$CC -V 2>&1 | sed 5q` in
17741 *Sun\ C*) # Sun C 5.9
17742 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'
17743 compiler_needs_object=yes
17744 tmp_sharedflag='-G' ;;
17745 *Sun\ F*) # Sun Fortran 8.3
17746 tmp_sharedflag='-G' ;;
17747 esac
17748 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17750 if test "x$supports_anon_versioning" = xyes; then
17751 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17752 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17753 echo "local: *; };" >> $output_objdir/$libname.ver~
17754 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17757 case $cc_basename in
17758 xlf* | bgf* | bgxlf* | mpixlf*)
17759 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17760 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17761 hardcode_libdir_flag_spec=
17762 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17763 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17764 if test "x$supports_anon_versioning" = xyes; then
17765 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17767 echo "local: *; };" >> $output_objdir/$libname.ver~
17768 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17771 esac
17772 else
17773 ld_shlibs=no
17777 netbsd*)
17778 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17779 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17780 wlarc=
17781 else
17782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17787 solaris*)
17788 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17789 ld_shlibs=no
17790 cat <<_LT_EOF 1>&2
17792 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17793 *** create shared libraries on Solaris systems. Therefore, libtool
17794 *** is disabling shared libraries support. We urge you to upgrade GNU
17795 *** binutils to release 2.9.1 or newer. Another option is to modify
17796 *** your PATH or compiler configuration so that the native linker is
17797 *** used, and then restart.
17799 _LT_EOF
17800 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17803 else
17804 ld_shlibs=no
17808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17809 case `$LD -v 2>&1` in
17810 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17811 ld_shlibs=no
17812 cat <<_LT_EOF 1>&2
17814 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17815 *** reliably create shared libraries on SCO systems. Therefore, libtool
17816 *** is disabling shared libraries support. We urge you to upgrade GNU
17817 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17818 *** your PATH or compiler configuration so that the native linker is
17819 *** used, and then restart.
17821 _LT_EOF
17824 # For security reasons, it is highly recommended that you always
17825 # use absolute paths for naming shared libraries, and exclude the
17826 # DT_RUNPATH tag from executables and libraries. But doing so
17827 # requires that you compile everything twice, which is a pain.
17828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17832 else
17833 ld_shlibs=no
17836 esac
17839 sunos4*)
17840 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17841 wlarc=
17842 hardcode_direct=yes
17843 hardcode_shlibpath_var=no
17847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17850 else
17851 ld_shlibs=no
17854 esac
17856 if test "$ld_shlibs" = no; then
17857 runpath_var=
17858 hardcode_libdir_flag_spec=
17859 export_dynamic_flag_spec=
17860 whole_archive_flag_spec=
17862 else
17863 # PORTME fill in a description of your system's linker (not GNU ld)
17864 case $host_os in
17865 aix3*)
17866 allow_undefined_flag=unsupported
17867 always_export_symbols=yes
17868 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'
17869 # Note: this linker hardcodes the directories in LIBPATH if there
17870 # are no directories specified by -L.
17871 hardcode_minus_L=yes
17872 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17873 # Neither direct hardcoding nor static linking is supported with a
17874 # broken collect2.
17875 hardcode_direct=unsupported
17879 aix[4-9]*)
17880 if test "$host_cpu" = ia64; then
17881 # On IA64, the linker does run time linking by default, so we don't
17882 # have to do anything special.
17883 aix_use_runtimelinking=no
17884 exp_sym_flag='-Bexport'
17885 no_entry_flag=""
17886 else
17887 # If we're using GNU nm, then we don't want the "-C" option.
17888 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17889 # Also, AIX nm treats weak defined symbols like other global
17890 # defined symbols, whereas GNU nm marks them as "W".
17891 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17892 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'
17893 else
17894 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'
17896 aix_use_runtimelinking=no
17898 # Test if we are trying to use run time linking or normal
17899 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17900 # need to do runtime linking.
17901 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17902 for ld_flag in $LDFLAGS; do
17903 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17904 aix_use_runtimelinking=yes
17905 break
17907 done
17909 esac
17911 exp_sym_flag='-bexport'
17912 no_entry_flag='-bnoentry'
17915 # When large executables or shared objects are built, AIX ld can
17916 # have problems creating the table of contents. If linking a library
17917 # or program results in "error TOC overflow" add -mminimal-toc to
17918 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17919 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17921 archive_cmds=''
17922 hardcode_direct=yes
17923 hardcode_direct_absolute=yes
17924 hardcode_libdir_separator=':'
17925 link_all_deplibs=yes
17926 file_list_spec='${wl}-f,'
17928 if test "$GCC" = yes; then
17929 case $host_os in aix4.[012]|aix4.[012].*)
17930 # We only want to do this on AIX 4.2 and lower, the check
17931 # below for broken collect2 doesn't work under 4.3+
17932 collect2name=`${CC} -print-prog-name=collect2`
17933 if test -f "$collect2name" &&
17934 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17935 then
17936 # We have reworked collect2
17938 else
17939 # We have old collect2
17940 hardcode_direct=unsupported
17941 # It fails to find uninstalled libraries when the uninstalled
17942 # path is not listed in the libpath. Setting hardcode_minus_L
17943 # to unsupported forces relinking
17944 hardcode_minus_L=yes
17945 hardcode_libdir_flag_spec='-L$libdir'
17946 hardcode_libdir_separator=
17949 esac
17950 shared_flag='-shared'
17951 if test "$aix_use_runtimelinking" = yes; then
17952 shared_flag="$shared_flag "'${wl}-G'
17954 else
17955 # not using gcc
17956 if test "$host_cpu" = ia64; then
17957 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17958 # chokes on -Wl,-G. The following line is correct:
17959 shared_flag='-G'
17960 else
17961 if test "$aix_use_runtimelinking" = yes; then
17962 shared_flag='${wl}-G'
17963 else
17964 shared_flag='${wl}-bM:SRE'
17969 export_dynamic_flag_spec='${wl}-bexpall'
17970 # It seems that -bexpall does not export symbols beginning with
17971 # underscore (_), so it is better to generate a list of symbols to export.
17972 always_export_symbols=yes
17973 if test "$aix_use_runtimelinking" = yes; then
17974 # Warning - without using the other runtime loading flags (-brtl),
17975 # -berok will link without error, but may produce a broken library.
17976 allow_undefined_flag='-berok'
17977 # Determine the default libpath from the value encoded in an
17978 # empty executable.
17979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h. */
17983 main ()
17987 return 0;
17989 _ACEOF
17990 if ac_fn_c_try_link "$LINENO"; then :
17992 lt_aix_libpath_sed='
17993 /Import File Strings/,/^$/ {
17994 /^0/ {
17995 s/^0 *\(.*\)$/\1/
17999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18000 # Check for a 64-bit object if we didn't find anything.
18001 if test -z "$aix_libpath"; then
18002 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18005 rm -f core conftest.err conftest.$ac_objext \
18006 conftest$ac_exeext conftest.$ac_ext
18007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18009 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18010 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"
18011 else
18012 if test "$host_cpu" = ia64; then
18013 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18014 allow_undefined_flag="-z nodefs"
18015 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"
18016 else
18017 # Determine the default libpath from the value encoded in an
18018 # empty executable.
18019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020 /* end confdefs.h. */
18023 main ()
18027 return 0;
18029 _ACEOF
18030 if ac_fn_c_try_link "$LINENO"; then :
18032 lt_aix_libpath_sed='
18033 /Import File Strings/,/^$/ {
18034 /^0/ {
18035 s/^0 *\(.*\)$/\1/
18039 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18040 # Check for a 64-bit object if we didn't find anything.
18041 if test -z "$aix_libpath"; then
18042 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18045 rm -f core conftest.err conftest.$ac_objext \
18046 conftest$ac_exeext conftest.$ac_ext
18047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18049 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18050 # Warning - without using the other run time loading flags,
18051 # -berok will link without error, but may produce a broken library.
18052 no_undefined_flag=' ${wl}-bernotok'
18053 allow_undefined_flag=' ${wl}-berok'
18054 if test "$with_gnu_ld" = yes; then
18055 # We only use this code for GNU lds that support --whole-archive.
18056 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18057 else
18058 # Exported symbols can be pulled into shared objects from archives
18059 whole_archive_flag_spec='$convenience'
18061 archive_cmds_need_lc=yes
18062 # This is similar to how AIX traditionally builds its shared libraries.
18063 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'
18068 amigaos*)
18069 case $host_cpu in
18070 powerpc)
18071 # see comment about AmigaOS4 .so support
18072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18073 archive_expsym_cmds=''
18075 m68k)
18076 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)'
18077 hardcode_libdir_flag_spec='-L$libdir'
18078 hardcode_minus_L=yes
18080 esac
18083 bsdi[45]*)
18084 export_dynamic_flag_spec=-rdynamic
18087 cygwin* | mingw* | pw32* | cegcc*)
18088 # When not using gcc, we currently assume that we are using
18089 # Microsoft Visual C++.
18090 # hardcode_libdir_flag_spec is actually meaningless, as there is
18091 # no search path for DLLs.
18092 hardcode_libdir_flag_spec=' '
18093 allow_undefined_flag=unsupported
18094 # Tell ltmain to make .lib files, not .a files.
18095 libext=lib
18096 # Tell ltmain to make .dll files, not .so files.
18097 shrext_cmds=".dll"
18098 # FIXME: Setting linknames here is a bad hack.
18099 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18100 # The linker will automatically build a .lib file if we build a DLL.
18101 old_archive_from_new_cmds='true'
18102 # FIXME: Should let the user specify the lib program.
18103 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18104 fix_srcfile_path='`cygpath -w "$srcfile"`'
18105 enable_shared_with_static_runtimes=yes
18108 darwin* | rhapsody*)
18112 # Publish an arg to allow the user to select that Darwin host (and target)
18113 # libraries should be given install-names like @rpath/libfoo.dylib. This
18114 # requires that the user of the library then adds an 'rpath' to the DSO that
18115 # needs access.
18116 # NOTE: there are defaults below, for systems that support rpaths. The person
18117 # configuring can override the defaults for any system version that supports
18118 # them - they are, however, forced off for system versions without support.
18119 # Check whether --enable-darwin-at-rpath was given.
18120 if test "${enable_darwin_at_rpath+set}" = set; then :
18121 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
18122 # This is not supported before macOS 10.5 / Darwin9.
18123 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
18124 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
18126 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
18127 enable_darwin_at_rpath=no
18129 esac
18131 else
18132 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
18133 # As above, before 10.5 / Darwin9 this does not work.
18134 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
18135 enable_darwin_at_rpath=no
18138 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
18139 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
18140 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
18141 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
18143 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
18144 enable_darwin_at_rpath=yes
18146 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
18147 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
18149 esac
18154 archive_cmds_need_lc=no
18155 hardcode_direct=no
18156 hardcode_automatic=yes
18157 hardcode_shlibpath_var=unsupported
18158 if test "$lt_cv_ld_force_load" = "yes"; then
18159 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\"`'
18160 else
18161 whole_archive_flag_spec=''
18163 link_all_deplibs=yes
18164 allow_undefined_flag="$_lt_dar_allow_undefined"
18165 case $cc_basename in
18166 ifort*) _lt_dar_can_shared=yes ;;
18167 *) _lt_dar_can_shared=$GCC ;;
18168 esac
18169 if test "$_lt_dar_can_shared" = "yes"; then
18170 output_verbose_link_cmd=func_echo_all
18171 _lt_install_name='\$rpath/\$soname'
18172 if test "x$enable_darwin_at_rpath" = "xyes"; then
18173 _lt_install_name='@rpath/\$soname'
18175 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
18176 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18177 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}"
18178 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}"
18180 else
18181 ld_shlibs=no
18186 dgux*)
18187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18188 hardcode_libdir_flag_spec='-L$libdir'
18189 hardcode_shlibpath_var=no
18192 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18193 # support. Future versions do this automatically, but an explicit c++rt0.o
18194 # does not break anything, and helps significantly (at the cost of a little
18195 # extra space).
18196 freebsd2.2*)
18197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18198 hardcode_libdir_flag_spec='-R$libdir'
18199 hardcode_direct=yes
18200 hardcode_shlibpath_var=no
18203 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18204 freebsd2.*)
18205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18206 hardcode_direct=yes
18207 hardcode_minus_L=yes
18208 hardcode_shlibpath_var=no
18211 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18212 freebsd* | dragonfly*)
18213 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18214 hardcode_libdir_flag_spec='-R$libdir'
18215 hardcode_direct=yes
18216 hardcode_shlibpath_var=no
18219 hpux9*)
18220 if test "$GCC" = yes; then
18221 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'
18222 else
18223 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'
18225 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18226 hardcode_libdir_separator=:
18227 hardcode_direct=yes
18229 # hardcode_minus_L: Not really in the search PATH,
18230 # but as the default location of the library.
18231 hardcode_minus_L=yes
18232 export_dynamic_flag_spec='${wl}-E'
18235 hpux10*)
18236 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18237 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18238 else
18239 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18241 if test "$with_gnu_ld" = no; then
18242 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18243 hardcode_libdir_flag_spec_ld='+b $libdir'
18244 hardcode_libdir_separator=:
18245 hardcode_direct=yes
18246 hardcode_direct_absolute=yes
18247 export_dynamic_flag_spec='${wl}-E'
18248 # hardcode_minus_L: Not really in the search PATH,
18249 # but as the default location of the library.
18250 hardcode_minus_L=yes
18254 hpux11*)
18255 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18256 case $host_cpu in
18257 hppa*64*)
18258 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18260 ia64*)
18261 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18266 esac
18267 else
18268 case $host_cpu in
18269 hppa*64*)
18270 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18272 ia64*)
18273 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18277 # Older versions of the 11.00 compiler do not understand -b yet
18278 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18280 $as_echo_n "checking if $CC understands -b... " >&6; }
18281 if ${lt_cv_prog_compiler__b+:} false; then :
18282 $as_echo_n "(cached) " >&6
18283 else
18284 lt_cv_prog_compiler__b=no
18285 save_LDFLAGS="$LDFLAGS"
18286 LDFLAGS="$LDFLAGS -b"
18287 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18288 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18289 # The linker can only warn and ignore the option if not recognized
18290 # So say no if there are warnings
18291 if test -s conftest.err; then
18292 # Append any errors to the config.log.
18293 cat conftest.err 1>&5
18294 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18296 if diff conftest.exp conftest.er2 >/dev/null; then
18297 lt_cv_prog_compiler__b=yes
18299 else
18300 lt_cv_prog_compiler__b=yes
18303 $RM -r conftest*
18304 LDFLAGS="$save_LDFLAGS"
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18308 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18310 if test x"$lt_cv_prog_compiler__b" = xyes; then
18311 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18312 else
18313 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18317 esac
18319 if test "$with_gnu_ld" = no; then
18320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18321 hardcode_libdir_separator=:
18323 case $host_cpu in
18324 hppa*64*|ia64*)
18325 hardcode_direct=no
18326 hardcode_shlibpath_var=no
18329 hardcode_direct=yes
18330 hardcode_direct_absolute=yes
18331 export_dynamic_flag_spec='${wl}-E'
18333 # hardcode_minus_L: Not really in the search PATH,
18334 # but as the default location of the library.
18335 hardcode_minus_L=yes
18337 esac
18341 irix5* | irix6* | nonstopux*)
18342 if test "$GCC" = yes; then
18343 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'
18344 # Try to use the -exported_symbol ld option, if it does not
18345 # work, assume that -exports_file does not work either and
18346 # implicitly export all symbols.
18347 save_LDFLAGS="$LDFLAGS"
18348 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18350 /* end confdefs.h. */
18351 int foo(void) {}
18352 _ACEOF
18353 if ac_fn_c_try_link "$LINENO"; then :
18354 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'
18357 rm -f core conftest.err conftest.$ac_objext \
18358 conftest$ac_exeext conftest.$ac_ext
18359 LDFLAGS="$save_LDFLAGS"
18360 else
18361 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'
18362 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'
18364 archive_cmds_need_lc='no'
18365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18366 hardcode_libdir_separator=:
18367 inherit_rpath=yes
18368 link_all_deplibs=yes
18371 netbsd*)
18372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18374 else
18375 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18377 hardcode_libdir_flag_spec='-R$libdir'
18378 hardcode_direct=yes
18379 hardcode_shlibpath_var=no
18382 newsos6)
18383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18384 hardcode_direct=yes
18385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18386 hardcode_libdir_separator=:
18387 hardcode_shlibpath_var=no
18390 *nto* | *qnx*)
18393 openbsd*)
18394 if test -f /usr/libexec/ld.so; then
18395 hardcode_direct=yes
18396 hardcode_shlibpath_var=no
18397 hardcode_direct_absolute=yes
18398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18400 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18401 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18402 export_dynamic_flag_spec='${wl}-E'
18403 else
18404 case $host_os in
18405 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18407 hardcode_libdir_flag_spec='-R$libdir'
18410 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18411 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18413 esac
18415 else
18416 ld_shlibs=no
18420 os2*)
18421 hardcode_libdir_flag_spec='-L$libdir'
18422 hardcode_minus_L=yes
18423 allow_undefined_flag=unsupported
18424 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'
18425 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18428 osf3*)
18429 if test "$GCC" = yes; then
18430 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18431 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'
18432 else
18433 allow_undefined_flag=' -expect_unresolved \*'
18434 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'
18436 archive_cmds_need_lc='no'
18437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18438 hardcode_libdir_separator=:
18441 osf4* | osf5*) # as osf3* with the addition of -msym flag
18442 if test "$GCC" = yes; then
18443 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18444 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'
18445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18446 else
18447 allow_undefined_flag=' -expect_unresolved \*'
18448 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'
18449 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~
18450 $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'
18452 # Both c and cxx compiler support -rpath directly
18453 hardcode_libdir_flag_spec='-rpath $libdir'
18455 archive_cmds_need_lc='no'
18456 hardcode_libdir_separator=:
18459 solaris*)
18460 no_undefined_flag=' -z defs'
18461 if test "$GCC" = yes; then
18462 wlarc='${wl}'
18463 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18464 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18465 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18466 else
18467 case `$CC -V 2>&1` in
18468 *"Compilers 5.0"*)
18469 wlarc=''
18470 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18471 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18472 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18475 wlarc='${wl}'
18476 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18478 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18480 esac
18482 hardcode_libdir_flag_spec='-R$libdir'
18483 hardcode_shlibpath_var=no
18484 case $host_os in
18485 solaris2.[0-5] | solaris2.[0-5].*) ;;
18487 # The compiler driver will combine and reorder linker options,
18488 # but understands `-z linker_flag'. GCC discards it without `$wl',
18489 # but is careful enough not to reorder.
18490 # Supported since Solaris 2.6 (maybe 2.5.1?)
18491 if test "$GCC" = yes; then
18492 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18493 else
18494 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18497 esac
18498 link_all_deplibs=yes
18501 sunos4*)
18502 if test "x$host_vendor" = xsequent; then
18503 # Use $CC to link under sequent, because it throws in some extra .o
18504 # files that make .init and .fini sections work.
18505 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18506 else
18507 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18509 hardcode_libdir_flag_spec='-L$libdir'
18510 hardcode_direct=yes
18511 hardcode_minus_L=yes
18512 hardcode_shlibpath_var=no
18515 sysv4)
18516 case $host_vendor in
18517 sni)
18518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18519 hardcode_direct=yes # is this really true???
18521 siemens)
18522 ## LD is ld it makes a PLAMLIB
18523 ## CC just makes a GrossModule.
18524 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18525 reload_cmds='$CC -r -o $output$reload_objs'
18526 hardcode_direct=no
18528 motorola)
18529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18530 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18532 esac
18533 runpath_var='LD_RUN_PATH'
18534 hardcode_shlibpath_var=no
18537 sysv4.3*)
18538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18539 hardcode_shlibpath_var=no
18540 export_dynamic_flag_spec='-Bexport'
18543 sysv4*MP*)
18544 if test -d /usr/nec; then
18545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18546 hardcode_shlibpath_var=no
18547 runpath_var=LD_RUN_PATH
18548 hardcode_runpath_var=yes
18549 ld_shlibs=yes
18553 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18554 no_undefined_flag='${wl}-z,text'
18555 archive_cmds_need_lc=no
18556 hardcode_shlibpath_var=no
18557 runpath_var='LD_RUN_PATH'
18559 if test "$GCC" = yes; then
18560 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18561 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18562 else
18563 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18564 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18568 sysv5* | sco3.2v5* | sco5v6*)
18569 # Note: We can NOT use -z defs as we might desire, because we do not
18570 # link with -lc, and that would cause any symbols used from libc to
18571 # always be unresolved, which means just about no library would
18572 # ever link correctly. If we're not using GNU ld we use -z text
18573 # though, which does catch some bad symbols but isn't as heavy-handed
18574 # as -z defs.
18575 no_undefined_flag='${wl}-z,text'
18576 allow_undefined_flag='${wl}-z,nodefs'
18577 archive_cmds_need_lc=no
18578 hardcode_shlibpath_var=no
18579 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18580 hardcode_libdir_separator=':'
18581 link_all_deplibs=yes
18582 export_dynamic_flag_spec='${wl}-Bexport'
18583 runpath_var='LD_RUN_PATH'
18585 if test "$GCC" = yes; then
18586 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18587 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18588 else
18589 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18590 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18594 uts4*)
18595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18596 hardcode_libdir_flag_spec='-L$libdir'
18597 hardcode_shlibpath_var=no
18601 ld_shlibs=no
18603 esac
18605 if test x$host_vendor = xsni; then
18606 case $host in
18607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18608 export_dynamic_flag_spec='${wl}-Blargedynsym'
18610 esac
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18615 $as_echo "$ld_shlibs" >&6; }
18616 test "$ld_shlibs" = no && can_build_shared=no
18618 with_gnu_ld=$with_gnu_ld
18635 # Do we need to explicitly link libc?
18637 case "x$archive_cmds_need_lc" in
18638 x|xyes)
18639 # Assume -lc should be added
18640 archive_cmds_need_lc=yes
18642 if test "$enable_shared" = yes && test "$GCC" = yes; then
18643 case $archive_cmds in
18644 *'~'*)
18645 # FIXME: we may have to deal with multi-command sequences.
18647 '$CC '*)
18648 # Test whether the compiler implicitly links with -lc since on some
18649 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18650 # to ld, don't add -lc before -lgcc.
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18652 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18653 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18654 $as_echo_n "(cached) " >&6
18655 else
18656 $RM conftest*
18657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18660 (eval $ac_compile) 2>&5
18661 ac_status=$?
18662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18663 test $ac_status = 0; } 2>conftest.err; then
18664 soname=conftest
18665 lib=conftest
18666 libobjs=conftest.$ac_objext
18667 deplibs=
18668 wl=$lt_prog_compiler_wl
18669 pic_flag=$lt_prog_compiler_pic
18670 compiler_flags=-v
18671 linker_flags=-v
18672 verstring=
18673 output_objdir=.
18674 libname=conftest
18675 lt_save_allow_undefined_flag=$allow_undefined_flag
18676 allow_undefined_flag=
18677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18678 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18679 ac_status=$?
18680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18681 test $ac_status = 0; }
18682 then
18683 lt_cv_archive_cmds_need_lc=no
18684 else
18685 lt_cv_archive_cmds_need_lc=yes
18687 allow_undefined_flag=$lt_save_allow_undefined_flag
18688 else
18689 cat conftest.err 1>&5
18691 $RM conftest*
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18695 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18696 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18698 esac
18701 esac
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18860 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18862 if test "$GCC" = yes; then
18863 case $host_os in
18864 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18865 *) lt_awk_arg="/^libraries:/" ;;
18866 esac
18867 case $host_os in
18868 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18869 *) lt_sed_strip_eq="s,=/,/,g" ;;
18870 esac
18871 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18872 case $lt_search_path_spec in
18873 *\;*)
18874 # if the path contains ";" then we assume it to be the separator
18875 # otherwise default to the standard path separator (i.e. ":") - it is
18876 # assumed that no part of a normal pathname contains ";" but that should
18877 # okay in the real world where ";" in dirpaths is itself problematic.
18878 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18883 esac
18884 # Ok, now we have the path, separated by spaces, we can step through it
18885 # and add multilib dir if necessary.
18886 lt_tmp_lt_search_path_spec=
18887 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18888 for lt_sys_path in $lt_search_path_spec; do
18889 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18890 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18891 else
18892 test -d "$lt_sys_path" && \
18893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18895 done
18896 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18897 BEGIN {RS=" "; FS="/|\n";} {
18898 lt_foo="";
18899 lt_count=0;
18900 for (lt_i = NF; lt_i > 0; lt_i--) {
18901 if ($lt_i != "" && $lt_i != ".") {
18902 if ($lt_i == "..") {
18903 lt_count++;
18904 } else {
18905 if (lt_count == 0) {
18906 lt_foo="/" $lt_i lt_foo;
18907 } else {
18908 lt_count--;
18913 if (lt_foo != "") { lt_freq[lt_foo]++; }
18914 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18916 # AWK program above erroneously prepends '/' to C:/dos/paths
18917 # for these hosts.
18918 case $host_os in
18919 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18920 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18921 esac
18922 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18923 else
18924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18926 library_names_spec=
18927 libname_spec='lib$name'
18928 soname_spec=
18929 shrext_cmds=".so"
18930 postinstall_cmds=
18931 postuninstall_cmds=
18932 finish_cmds=
18933 finish_eval=
18934 shlibpath_var=
18935 shlibpath_overrides_runpath=unknown
18936 version_type=none
18937 dynamic_linker="$host_os ld.so"
18938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18939 need_lib_prefix=unknown
18940 hardcode_into_libs=no
18942 # when you set need_version to no, make sure it does not cause -set_version
18943 # flags to be left without arguments
18944 need_version=unknown
18946 case $host_os in
18947 aix3*)
18948 version_type=linux
18949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18950 shlibpath_var=LIBPATH
18952 # AIX 3 has no versioning support, so we append a major version to the name.
18953 soname_spec='${libname}${release}${shared_ext}$major'
18956 aix[4-9]*)
18957 version_type=linux
18958 need_lib_prefix=no
18959 need_version=no
18960 hardcode_into_libs=yes
18961 if test "$host_cpu" = ia64; then
18962 # AIX 5 supports IA64
18963 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18964 shlibpath_var=LD_LIBRARY_PATH
18965 else
18966 # With GCC up to 2.95.x, collect2 would create an import file
18967 # for dependence libraries. The import file would start with
18968 # the line `#! .'. This would cause the generated library to
18969 # depend on `.', always an invalid library. This was fixed in
18970 # development snapshots of GCC prior to 3.0.
18971 case $host_os in
18972 aix4 | aix4.[01] | aix4.[01].*)
18973 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18974 echo ' yes '
18975 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18977 else
18978 can_build_shared=no
18981 esac
18982 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18983 # soname into executable. Probably we can add versioning support to
18984 # collect2, so additional links can be useful in future.
18985 if test "$aix_use_runtimelinking" = yes; then
18986 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18987 # instead of lib<name>.a to let people know that these are not
18988 # typical AIX shared libraries.
18989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18990 else
18991 # We preserve .a as extension for shared libraries through AIX4.2
18992 # and later when we are not doing run time linking.
18993 library_names_spec='${libname}${release}.a $libname.a'
18994 soname_spec='${libname}${release}${shared_ext}$major'
18996 shlibpath_var=LIBPATH
19000 amigaos*)
19001 case $host_cpu in
19002 powerpc)
19003 # Since July 2007 AmigaOS4 officially supports .so libraries.
19004 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19007 m68k)
19008 library_names_spec='$libname.ixlibrary $libname.a'
19009 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19010 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'
19012 esac
19015 beos*)
19016 library_names_spec='${libname}${shared_ext}'
19017 dynamic_linker="$host_os ld.so"
19018 shlibpath_var=LIBRARY_PATH
19021 bsdi[45]*)
19022 version_type=linux
19023 need_version=no
19024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19025 soname_spec='${libname}${release}${shared_ext}$major'
19026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19027 shlibpath_var=LD_LIBRARY_PATH
19028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19030 # the default ld.so.conf also contains /usr/contrib/lib and
19031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19032 # libtool to hard-code these into programs
19035 cygwin* | mingw* | pw32* | cegcc*)
19036 version_type=windows
19037 shrext_cmds=".dll"
19038 need_version=no
19039 need_lib_prefix=no
19041 case $GCC,$host_os in
19042 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19043 library_names_spec='$libname.dll.a'
19044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19045 postinstall_cmds='base_file=`basename \${file}`~
19046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19047 dldir=$destdir/`dirname \$dlpath`~
19048 test -d \$dldir || mkdir -p \$dldir~
19049 $install_prog $dir/$dlname \$dldir/$dlname~
19050 chmod a+x \$dldir/$dlname~
19051 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19052 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19055 dlpath=$dir/\$dldll~
19056 $RM \$dlpath'
19057 shlibpath_overrides_runpath=yes
19059 case $host_os in
19060 cygwin*)
19061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19062 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19064 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
19066 mingw* | cegcc*)
19067 # MinGW DLLs use traditional 'lib' prefix
19068 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19070 pw32*)
19071 # pw32 DLLs use 'pw' prefix rather than 'lib'
19072 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19074 esac
19078 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19080 esac
19081 dynamic_linker='Win32 ld.exe'
19082 # FIXME: first we should search . and the directory the executable is in
19083 shlibpath_var=PATH
19086 darwin* | rhapsody*)
19087 dynamic_linker="$host_os dyld"
19088 version_type=darwin
19089 need_lib_prefix=no
19090 need_version=no
19091 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19092 soname_spec='${libname}${release}${major}$shared_ext'
19093 shlibpath_overrides_runpath=yes
19094 shlibpath_var=DYLD_LIBRARY_PATH
19095 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19097 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19101 dgux*)
19102 version_type=linux
19103 need_lib_prefix=no
19104 need_version=no
19105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19106 soname_spec='${libname}${release}${shared_ext}$major'
19107 shlibpath_var=LD_LIBRARY_PATH
19110 freebsd* | dragonfly*)
19111 # DragonFly does not have aout. When/if they implement a new
19112 # versioning mechanism, adjust this.
19113 if test -x /usr/bin/objformat; then
19114 objformat=`/usr/bin/objformat`
19115 else
19116 case $host_os in
19117 freebsd[23].*) objformat=aout ;;
19118 *) objformat=elf ;;
19119 esac
19121 version_type=freebsd-$objformat
19122 case $version_type in
19123 freebsd-elf*)
19124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19125 need_version=no
19126 need_lib_prefix=no
19128 freebsd-*)
19129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19130 need_version=yes
19132 esac
19133 shlibpath_var=LD_LIBRARY_PATH
19134 case $host_os in
19135 freebsd2.*)
19136 shlibpath_overrides_runpath=yes
19138 freebsd3.[01]* | freebsdelf3.[01]*)
19139 shlibpath_overrides_runpath=yes
19140 hardcode_into_libs=yes
19142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19144 shlibpath_overrides_runpath=no
19145 hardcode_into_libs=yes
19147 *) # from 4.6 on, and DragonFly
19148 shlibpath_overrides_runpath=yes
19149 hardcode_into_libs=yes
19151 esac
19154 haiku*)
19155 version_type=linux
19156 need_lib_prefix=no
19157 need_version=no
19158 dynamic_linker="$host_os runtime_loader"
19159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19160 soname_spec='${libname}${release}${shared_ext}$major'
19161 shlibpath_var=LIBRARY_PATH
19162 shlibpath_overrides_runpath=yes
19163 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19164 hardcode_into_libs=yes
19167 hpux9* | hpux10* | hpux11*)
19168 # Give a soname corresponding to the major version so that dld.sl refuses to
19169 # link against other versions.
19170 version_type=sunos
19171 need_lib_prefix=no
19172 need_version=no
19173 case $host_cpu in
19174 ia64*)
19175 shrext_cmds='.so'
19176 hardcode_into_libs=yes
19177 dynamic_linker="$host_os dld.so"
19178 shlibpath_var=LD_LIBRARY_PATH
19179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19181 soname_spec='${libname}${release}${shared_ext}$major'
19182 if test "X$HPUX_IA64_MODE" = X32; then
19183 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19184 else
19185 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19189 hppa*64*)
19190 shrext_cmds='.sl'
19191 hardcode_into_libs=yes
19192 dynamic_linker="$host_os dld.sl"
19193 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19196 soname_spec='${libname}${release}${shared_ext}$major'
19197 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19201 shrext_cmds='.sl'
19202 dynamic_linker="$host_os dld.sl"
19203 shlibpath_var=SHLIB_PATH
19204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19206 soname_spec='${libname}${release}${shared_ext}$major'
19208 esac
19209 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19210 postinstall_cmds='chmod 555 $lib'
19211 # or fails outright, so override atomically:
19212 install_override_mode=555
19215 interix[3-9]*)
19216 version_type=linux
19217 need_lib_prefix=no
19218 need_version=no
19219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19220 soname_spec='${libname}${release}${shared_ext}$major'
19221 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19222 shlibpath_var=LD_LIBRARY_PATH
19223 shlibpath_overrides_runpath=no
19224 hardcode_into_libs=yes
19227 irix5* | irix6* | nonstopux*)
19228 case $host_os in
19229 nonstopux*) version_type=nonstopux ;;
19231 if test "$lt_cv_prog_gnu_ld" = yes; then
19232 version_type=linux
19233 else
19234 version_type=irix
19235 fi ;;
19236 esac
19237 need_lib_prefix=no
19238 need_version=no
19239 soname_spec='${libname}${release}${shared_ext}$major'
19240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19241 case $host_os in
19242 irix5* | nonstopux*)
19243 libsuff= shlibsuff=
19246 case $LD in # libtool.m4 will add one of these switches to LD
19247 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19248 libsuff= shlibsuff= libmagic=32-bit;;
19249 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19250 libsuff=32 shlibsuff=N32 libmagic=N32;;
19251 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19252 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19253 *) libsuff= shlibsuff= libmagic=never-match;;
19254 esac
19256 esac
19257 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19258 shlibpath_overrides_runpath=no
19259 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19260 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19261 hardcode_into_libs=yes
19264 # No shared lib support for Linux oldld, aout, or coff.
19265 linux*oldld* | linux*aout* | linux*coff*)
19266 dynamic_linker=no
19269 # This must be Linux ELF.
19271 # uclinux* changes (here and below) have been submitted to the libtool
19272 # project, but have not yet been accepted: they are GCC-local changes
19273 # for the time being. (See
19274 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19275 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19276 version_type=linux
19277 need_lib_prefix=no
19278 need_version=no
19279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19280 soname_spec='${libname}${release}${shared_ext}$major'
19281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19282 shlibpath_var=LD_LIBRARY_PATH
19283 shlibpath_overrides_runpath=no
19285 # Some binutils ld are patched to set DT_RUNPATH
19286 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19287 $as_echo_n "(cached) " >&6
19288 else
19289 lt_cv_shlibpath_overrides_runpath=no
19290 save_LDFLAGS=$LDFLAGS
19291 save_libdir=$libdir
19292 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19293 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h. */
19298 main ()
19302 return 0;
19304 _ACEOF
19305 if ac_fn_c_try_link "$LINENO"; then :
19306 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19307 lt_cv_shlibpath_overrides_runpath=yes
19310 rm -f core conftest.err conftest.$ac_objext \
19311 conftest$ac_exeext conftest.$ac_ext
19312 LDFLAGS=$save_LDFLAGS
19313 libdir=$save_libdir
19317 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19319 # This implies no fast_install, which is unacceptable.
19320 # Some rework will be needed to allow for fast_install
19321 # before this can be enabled.
19322 hardcode_into_libs=yes
19324 # Append ld.so.conf contents to the search path
19325 if test -f /etc/ld.so.conf; then
19326 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' ' '`
19327 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19330 # We used to test for /lib/ld.so.1 and disable shared libraries on
19331 # powerpc, because MkLinux only supported shared libraries with the
19332 # GNU dynamic linker. Since this was broken with cross compilers,
19333 # most powerpc-linux boxes support dynamic linking these days and
19334 # people can always --disable-shared, the test was removed, and we
19335 # assume the GNU/Linux dynamic linker is in use.
19336 dynamic_linker='GNU/Linux ld.so'
19339 netbsd*)
19340 version_type=sunos
19341 need_lib_prefix=no
19342 need_version=no
19343 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19346 dynamic_linker='NetBSD (a.out) ld.so'
19347 else
19348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19349 soname_spec='${libname}${release}${shared_ext}$major'
19350 dynamic_linker='NetBSD ld.elf_so'
19352 shlibpath_var=LD_LIBRARY_PATH
19353 shlibpath_overrides_runpath=yes
19354 hardcode_into_libs=yes
19357 newsos6)
19358 version_type=linux
19359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19360 shlibpath_var=LD_LIBRARY_PATH
19361 shlibpath_overrides_runpath=yes
19364 *nto* | *qnx*)
19365 version_type=qnx
19366 need_lib_prefix=no
19367 need_version=no
19368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19369 soname_spec='${libname}${release}${shared_ext}$major'
19370 shlibpath_var=LD_LIBRARY_PATH
19371 shlibpath_overrides_runpath=no
19372 hardcode_into_libs=yes
19373 dynamic_linker='ldqnx.so'
19376 openbsd*)
19377 version_type=sunos
19378 sys_lib_dlsearch_path_spec="/usr/lib"
19379 need_lib_prefix=no
19380 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19381 case $host_os in
19382 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19383 *) need_version=no ;;
19384 esac
19385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19387 shlibpath_var=LD_LIBRARY_PATH
19388 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19389 case $host_os in
19390 openbsd2.[89] | openbsd2.[89].*)
19391 shlibpath_overrides_runpath=no
19394 shlibpath_overrides_runpath=yes
19396 esac
19397 else
19398 shlibpath_overrides_runpath=yes
19402 os2*)
19403 libname_spec='$name'
19404 shrext_cmds=".dll"
19405 need_lib_prefix=no
19406 library_names_spec='$libname${shared_ext} $libname.a'
19407 dynamic_linker='OS/2 ld.exe'
19408 shlibpath_var=LIBPATH
19411 osf3* | osf4* | osf5*)
19412 version_type=osf
19413 need_lib_prefix=no
19414 need_version=no
19415 soname_spec='${libname}${release}${shared_ext}$major'
19416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19417 shlibpath_var=LD_LIBRARY_PATH
19418 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19419 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19422 rdos*)
19423 dynamic_linker=no
19426 solaris*)
19427 version_type=linux
19428 need_lib_prefix=no
19429 need_version=no
19430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19431 soname_spec='${libname}${release}${shared_ext}$major'
19432 shlibpath_var=LD_LIBRARY_PATH
19433 shlibpath_overrides_runpath=yes
19434 hardcode_into_libs=yes
19435 # ldd complains unless libraries are executable
19436 postinstall_cmds='chmod +x $lib'
19439 sunos4*)
19440 version_type=sunos
19441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19442 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19443 shlibpath_var=LD_LIBRARY_PATH
19444 shlibpath_overrides_runpath=yes
19445 if test "$with_gnu_ld" = yes; then
19446 need_lib_prefix=no
19448 need_version=yes
19451 sysv4 | sysv4.3*)
19452 version_type=linux
19453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19454 soname_spec='${libname}${release}${shared_ext}$major'
19455 shlibpath_var=LD_LIBRARY_PATH
19456 case $host_vendor in
19457 sni)
19458 shlibpath_overrides_runpath=no
19459 need_lib_prefix=no
19460 runpath_var=LD_RUN_PATH
19462 siemens)
19463 need_lib_prefix=no
19465 motorola)
19466 need_lib_prefix=no
19467 need_version=no
19468 shlibpath_overrides_runpath=no
19469 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19471 esac
19474 sysv4*MP*)
19475 if test -d /usr/nec ;then
19476 version_type=linux
19477 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19478 soname_spec='$libname${shared_ext}.$major'
19479 shlibpath_var=LD_LIBRARY_PATH
19483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19484 version_type=freebsd-elf
19485 need_lib_prefix=no
19486 need_version=no
19487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19488 soname_spec='${libname}${release}${shared_ext}$major'
19489 shlibpath_var=LD_LIBRARY_PATH
19490 shlibpath_overrides_runpath=yes
19491 hardcode_into_libs=yes
19492 if test "$with_gnu_ld" = yes; then
19493 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19494 else
19495 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19496 case $host_os in
19497 sco3.2v5*)
19498 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19500 esac
19502 sys_lib_dlsearch_path_spec='/usr/lib'
19505 tpf*)
19506 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19507 version_type=linux
19508 need_lib_prefix=no
19509 need_version=no
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19511 shlibpath_var=LD_LIBRARY_PATH
19512 shlibpath_overrides_runpath=no
19513 hardcode_into_libs=yes
19516 uts4*)
19517 version_type=linux
19518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19519 soname_spec='${libname}${release}${shared_ext}$major'
19520 shlibpath_var=LD_LIBRARY_PATH
19523 # Shared libraries for VwWorks, >= 7 only at this stage
19524 # and (fpic) still incompatible with "large" code models
19525 # in a few configurations. Only for RTP mode in any case,
19526 # and upon explicit request at configure time.
19527 vxworks7*)
19528 dynamic_linker=no
19529 case ${with_multisubdir}-${enable_shared} in
19530 *large*)
19532 *mrtp*-yes)
19533 version_type=linux
19534 need_lib_prefix=no
19535 need_version=no
19536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19537 soname_spec='${libname}${release}${shared_ext}$major'
19538 dynamic_linker="$host_os module_loader"
19540 esac
19543 dynamic_linker=no
19545 esac
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19547 $as_echo "$dynamic_linker" >&6; }
19548 test "$dynamic_linker" = no && can_build_shared=no
19550 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19551 if test "$GCC" = yes; then
19552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19555 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19556 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19558 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19559 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19654 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19655 hardcode_action=
19656 if test -n "$hardcode_libdir_flag_spec" ||
19657 test -n "$runpath_var" ||
19658 test "X$hardcode_automatic" = "Xyes" ; then
19660 # We can hardcode non-existent directories.
19661 if test "$hardcode_direct" != no &&
19662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19663 # have to relink, otherwise we might link with an installed library
19664 # when we should be linking with a yet-to-be-installed one
19665 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19666 test "$hardcode_minus_L" != no; then
19667 # Linking always hardcodes the temporary library directory.
19668 hardcode_action=relink
19669 else
19670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19671 hardcode_action=immediate
19673 else
19674 # We cannot hardcode anything, or else we can only hardcode existing
19675 # directories.
19676 hardcode_action=unsupported
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19679 $as_echo "$hardcode_action" >&6; }
19681 if test "$hardcode_action" = relink ||
19682 test "$inherit_rpath" = yes; then
19683 # Fast installation is not supported
19684 enable_fast_install=no
19685 elif test "$shlibpath_overrides_runpath" = yes ||
19686 test "$enable_shared" = no; then
19687 # Fast installation is not necessary
19688 enable_fast_install=needless
19696 if test "x$enable_dlopen" != xyes; then
19697 enable_dlopen=unknown
19698 enable_dlopen_self=unknown
19699 enable_dlopen_self_static=unknown
19700 else
19701 lt_cv_dlopen=no
19702 lt_cv_dlopen_libs=
19704 case $host_os in
19705 beos*)
19706 lt_cv_dlopen="load_add_on"
19707 lt_cv_dlopen_libs=
19708 lt_cv_dlopen_self=yes
19711 mingw* | pw32* | cegcc*)
19712 lt_cv_dlopen="LoadLibrary"
19713 lt_cv_dlopen_libs=
19716 cygwin*)
19717 lt_cv_dlopen="dlopen"
19718 lt_cv_dlopen_libs=
19721 darwin*)
19722 # if libdl is installed we need to link against it
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19724 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19725 if ${ac_cv_lib_dl_dlopen+:} false; then :
19726 $as_echo_n "(cached) " >&6
19727 else
19728 ac_check_lib_save_LIBS=$LIBS
19729 LIBS="-ldl $LIBS"
19730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19731 /* end confdefs.h. */
19733 /* Override any GCC internal prototype to avoid an error.
19734 Use char because int might match the return type of a GCC
19735 builtin and then its argument prototype would still apply. */
19736 #ifdef __cplusplus
19737 extern "C"
19738 #endif
19739 char dlopen ();
19741 main ()
19743 return dlopen ();
19745 return 0;
19747 _ACEOF
19748 if ac_fn_c_try_link "$LINENO"; then :
19749 ac_cv_lib_dl_dlopen=yes
19750 else
19751 ac_cv_lib_dl_dlopen=no
19753 rm -f core conftest.err conftest.$ac_objext \
19754 conftest$ac_exeext conftest.$ac_ext
19755 LIBS=$ac_check_lib_save_LIBS
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19758 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19759 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19761 else
19763 lt_cv_dlopen="dyld"
19764 lt_cv_dlopen_libs=
19765 lt_cv_dlopen_self=yes
19772 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19773 if test "x$ac_cv_func_shl_load" = xyes; then :
19774 lt_cv_dlopen="shl_load"
19775 else
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19777 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19778 if ${ac_cv_lib_dld_shl_load+:} false; then :
19779 $as_echo_n "(cached) " >&6
19780 else
19781 ac_check_lib_save_LIBS=$LIBS
19782 LIBS="-ldld $LIBS"
19783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19784 /* end confdefs.h. */
19786 /* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
19789 #ifdef __cplusplus
19790 extern "C"
19791 #endif
19792 char shl_load ();
19794 main ()
19796 return shl_load ();
19798 return 0;
19800 _ACEOF
19801 if ac_fn_c_try_link "$LINENO"; then :
19802 ac_cv_lib_dld_shl_load=yes
19803 else
19804 ac_cv_lib_dld_shl_load=no
19806 rm -f core conftest.err conftest.$ac_objext \
19807 conftest$ac_exeext conftest.$ac_ext
19808 LIBS=$ac_check_lib_save_LIBS
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19811 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19812 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19813 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19814 else
19815 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19816 if test "x$ac_cv_func_dlopen" = xyes; then :
19817 lt_cv_dlopen="dlopen"
19818 else
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19820 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19821 if ${ac_cv_lib_dl_dlopen+:} false; then :
19822 $as_echo_n "(cached) " >&6
19823 else
19824 ac_check_lib_save_LIBS=$LIBS
19825 LIBS="-ldl $LIBS"
19826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19827 /* end confdefs.h. */
19829 /* Override any GCC internal prototype to avoid an error.
19830 Use char because int might match the return type of a GCC
19831 builtin and then its argument prototype would still apply. */
19832 #ifdef __cplusplus
19833 extern "C"
19834 #endif
19835 char dlopen ();
19837 main ()
19839 return dlopen ();
19841 return 0;
19843 _ACEOF
19844 if ac_fn_c_try_link "$LINENO"; then :
19845 ac_cv_lib_dl_dlopen=yes
19846 else
19847 ac_cv_lib_dl_dlopen=no
19849 rm -f core conftest.err conftest.$ac_objext \
19850 conftest$ac_exeext conftest.$ac_ext
19851 LIBS=$ac_check_lib_save_LIBS
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19854 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19855 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19857 else
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19859 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19860 if ${ac_cv_lib_svld_dlopen+:} false; then :
19861 $as_echo_n "(cached) " >&6
19862 else
19863 ac_check_lib_save_LIBS=$LIBS
19864 LIBS="-lsvld $LIBS"
19865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19866 /* end confdefs.h. */
19868 /* Override any GCC internal prototype to avoid an error.
19869 Use char because int might match the return type of a GCC
19870 builtin and then its argument prototype would still apply. */
19871 #ifdef __cplusplus
19872 extern "C"
19873 #endif
19874 char dlopen ();
19876 main ()
19878 return dlopen ();
19880 return 0;
19882 _ACEOF
19883 if ac_fn_c_try_link "$LINENO"; then :
19884 ac_cv_lib_svld_dlopen=yes
19885 else
19886 ac_cv_lib_svld_dlopen=no
19888 rm -f core conftest.err conftest.$ac_objext \
19889 conftest$ac_exeext conftest.$ac_ext
19890 LIBS=$ac_check_lib_save_LIBS
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19893 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19894 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19896 else
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19898 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19899 if ${ac_cv_lib_dld_dld_link+:} false; then :
19900 $as_echo_n "(cached) " >&6
19901 else
19902 ac_check_lib_save_LIBS=$LIBS
19903 LIBS="-ldld $LIBS"
19904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905 /* end confdefs.h. */
19907 /* Override any GCC internal prototype to avoid an error.
19908 Use char because int might match the return type of a GCC
19909 builtin and then its argument prototype would still apply. */
19910 #ifdef __cplusplus
19911 extern "C"
19912 #endif
19913 char dld_link ();
19915 main ()
19917 return dld_link ();
19919 return 0;
19921 _ACEOF
19922 if ac_fn_c_try_link "$LINENO"; then :
19923 ac_cv_lib_dld_dld_link=yes
19924 else
19925 ac_cv_lib_dld_dld_link=no
19927 rm -f core conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
19929 LIBS=$ac_check_lib_save_LIBS
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19932 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19933 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19934 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19953 esac
19955 if test "x$lt_cv_dlopen" != xno; then
19956 enable_dlopen=yes
19957 else
19958 enable_dlopen=no
19961 case $lt_cv_dlopen in
19962 dlopen)
19963 save_CPPFLAGS="$CPPFLAGS"
19964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19966 save_LDFLAGS="$LDFLAGS"
19967 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19969 save_LIBS="$LIBS"
19970 LIBS="$lt_cv_dlopen_libs $LIBS"
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19973 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19974 if ${lt_cv_dlopen_self+:} false; then :
19975 $as_echo_n "(cached) " >&6
19976 else
19977 if test "$cross_compiling" = yes; then :
19978 lt_cv_dlopen_self=cross
19979 else
19980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19981 lt_status=$lt_dlunknown
19982 cat > conftest.$ac_ext <<_LT_EOF
19983 #line 19983 "configure"
19984 #include "confdefs.h"
19986 #if HAVE_DLFCN_H
19987 #include <dlfcn.h>
19988 #endif
19990 #include <stdio.h>
19992 #ifdef RTLD_GLOBAL
19993 # define LT_DLGLOBAL RTLD_GLOBAL
19994 #else
19995 # ifdef DL_GLOBAL
19996 # define LT_DLGLOBAL DL_GLOBAL
19997 # else
19998 # define LT_DLGLOBAL 0
19999 # endif
20000 #endif
20002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20003 find out it does not work in some platform. */
20004 #ifndef LT_DLLAZY_OR_NOW
20005 # ifdef RTLD_LAZY
20006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20007 # else
20008 # ifdef DL_LAZY
20009 # define LT_DLLAZY_OR_NOW DL_LAZY
20010 # else
20011 # ifdef RTLD_NOW
20012 # define LT_DLLAZY_OR_NOW RTLD_NOW
20013 # else
20014 # ifdef DL_NOW
20015 # define LT_DLLAZY_OR_NOW DL_NOW
20016 # else
20017 # define LT_DLLAZY_OR_NOW 0
20018 # endif
20019 # endif
20020 # endif
20021 # endif
20022 #endif
20024 /* When -fvisbility=hidden is used, assume the code has been annotated
20025 correspondingly for the symbols needed. */
20026 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20027 void fnord () __attribute__((visibility("default")));
20028 #endif
20030 void fnord () { int i=42; }
20031 int main ()
20033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20034 int status = $lt_dlunknown;
20036 if (self)
20038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20039 else
20041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20042 else puts (dlerror ());
20044 /* dlclose (self); */
20046 else
20047 puts (dlerror ());
20049 return status;
20051 _LT_EOF
20052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20053 (eval $ac_link) 2>&5
20054 ac_status=$?
20055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20056 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20057 (./conftest; exit; ) >&5 2>/dev/null
20058 lt_status=$?
20059 case x$lt_status in
20060 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20061 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20062 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20063 esac
20064 else :
20065 # compilation failed
20066 lt_cv_dlopen_self=no
20069 rm -fr conftest*
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20074 $as_echo "$lt_cv_dlopen_self" >&6; }
20076 if test "x$lt_cv_dlopen_self" = xyes; then
20077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20079 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20080 if ${lt_cv_dlopen_self_static+:} false; then :
20081 $as_echo_n "(cached) " >&6
20082 else
20083 if test "$cross_compiling" = yes; then :
20084 lt_cv_dlopen_self_static=cross
20085 else
20086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20087 lt_status=$lt_dlunknown
20088 cat > conftest.$ac_ext <<_LT_EOF
20089 #line 20089 "configure"
20090 #include "confdefs.h"
20092 #if HAVE_DLFCN_H
20093 #include <dlfcn.h>
20094 #endif
20096 #include <stdio.h>
20098 #ifdef RTLD_GLOBAL
20099 # define LT_DLGLOBAL RTLD_GLOBAL
20100 #else
20101 # ifdef DL_GLOBAL
20102 # define LT_DLGLOBAL DL_GLOBAL
20103 # else
20104 # define LT_DLGLOBAL 0
20105 # endif
20106 #endif
20108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20109 find out it does not work in some platform. */
20110 #ifndef LT_DLLAZY_OR_NOW
20111 # ifdef RTLD_LAZY
20112 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20113 # else
20114 # ifdef DL_LAZY
20115 # define LT_DLLAZY_OR_NOW DL_LAZY
20116 # else
20117 # ifdef RTLD_NOW
20118 # define LT_DLLAZY_OR_NOW RTLD_NOW
20119 # else
20120 # ifdef DL_NOW
20121 # define LT_DLLAZY_OR_NOW DL_NOW
20122 # else
20123 # define LT_DLLAZY_OR_NOW 0
20124 # endif
20125 # endif
20126 # endif
20127 # endif
20128 #endif
20130 /* When -fvisbility=hidden is used, assume the code has been annotated
20131 correspondingly for the symbols needed. */
20132 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20133 void fnord () __attribute__((visibility("default")));
20134 #endif
20136 void fnord () { int i=42; }
20137 int main ()
20139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20140 int status = $lt_dlunknown;
20142 if (self)
20144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20145 else
20147 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20148 else puts (dlerror ());
20150 /* dlclose (self); */
20152 else
20153 puts (dlerror ());
20155 return status;
20157 _LT_EOF
20158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20159 (eval $ac_link) 2>&5
20160 ac_status=$?
20161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20162 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20163 (./conftest; exit; ) >&5 2>/dev/null
20164 lt_status=$?
20165 case x$lt_status in
20166 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20167 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20168 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20169 esac
20170 else :
20171 # compilation failed
20172 lt_cv_dlopen_self_static=no
20175 rm -fr conftest*
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20180 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20183 CPPFLAGS="$save_CPPFLAGS"
20184 LDFLAGS="$save_LDFLAGS"
20185 LIBS="$save_LIBS"
20187 esac
20189 case $lt_cv_dlopen_self in
20190 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20191 *) enable_dlopen_self=unknown ;;
20192 esac
20194 case $lt_cv_dlopen_self_static in
20195 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20196 *) enable_dlopen_self_static=unknown ;;
20197 esac
20216 striplib=
20217 old_striplib=
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20219 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20220 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20221 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20222 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20224 $as_echo "yes" >&6; }
20225 else
20226 # FIXME - insert some real tests, host_os isn't really good enough
20227 case $host_os in
20228 darwin*)
20229 if test -n "$STRIP" ; then
20230 striplib="$STRIP -x"
20231 old_striplib="$STRIP -S"
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20233 $as_echo "yes" >&6; }
20234 else
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20236 $as_echo "no" >&6; }
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20241 $as_echo "no" >&6; }
20243 esac
20257 # Report which library types will actually be built
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20259 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20261 $as_echo "$can_build_shared" >&6; }
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20264 $as_echo_n "checking whether to build shared libraries... " >&6; }
20265 test "$can_build_shared" = "no" && enable_shared=no
20267 # On AIX, shared libraries and static libraries use the same namespace, and
20268 # are all built from PIC.
20269 case $host_os in
20270 aix3*)
20271 test "$enable_shared" = yes && enable_static=no
20272 if test -n "$RANLIB"; then
20273 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20274 postinstall_cmds='$RANLIB $lib'
20278 aix[4-9]*)
20279 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20280 test "$enable_shared" = yes && enable_static=no
20283 esac
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20285 $as_echo "$enable_shared" >&6; }
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20288 $as_echo_n "checking whether to build static libraries... " >&6; }
20289 # Make sure either enable_shared or enable_static is yes.
20290 test "$enable_shared" = yes || enable_static=yes
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20292 $as_echo "$enable_static" >&6; }
20298 ac_ext=cpp
20299 ac_cpp='$CXXCPP $CPPFLAGS'
20300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20304 CC="$lt_save_CC"
20306 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20307 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20308 (test "X$CXX" != "Xg++"))) ; then
20309 ac_ext=cpp
20310 ac_cpp='$CXXCPP $CPPFLAGS'
20311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20315 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20316 if test -z "$CXXCPP"; then
20317 if ${ac_cv_prog_CXXCPP+:} false; then :
20318 $as_echo_n "(cached) " >&6
20319 else
20320 # Double quotes because CXXCPP needs to be expanded
20321 for CXXCPP in "$CXX -E" "/lib/cpp"
20323 ac_preproc_ok=false
20324 for ac_cxx_preproc_warn_flag in '' yes
20326 # Use a header file that comes with gcc, so configuring glibc
20327 # with a fresh cross-compiler works.
20328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20329 # <limits.h> exists even on freestanding compilers.
20330 # On the NeXT, cc -E runs the code through the compiler's parser,
20331 # not just through cpp. "Syntax error" is here to catch this case.
20332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20333 /* end confdefs.h. */
20334 #ifdef __STDC__
20335 # include <limits.h>
20336 #else
20337 # include <assert.h>
20338 #endif
20339 Syntax error
20340 _ACEOF
20341 if ac_fn_cxx_try_cpp "$LINENO"; then :
20343 else
20344 # Broken: fails on valid input.
20345 continue
20347 rm -f conftest.err conftest.i conftest.$ac_ext
20349 # OK, works on sane cases. Now check whether nonexistent headers
20350 # can be detected and how.
20351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20352 /* end confdefs.h. */
20353 #include <ac_nonexistent.h>
20354 _ACEOF
20355 if ac_fn_cxx_try_cpp "$LINENO"; then :
20356 # Broken: success on invalid input.
20357 continue
20358 else
20359 # Passes both tests.
20360 ac_preproc_ok=:
20361 break
20363 rm -f conftest.err conftest.i conftest.$ac_ext
20365 done
20366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20367 rm -f conftest.i conftest.err conftest.$ac_ext
20368 if $ac_preproc_ok; then :
20369 break
20372 done
20373 ac_cv_prog_CXXCPP=$CXXCPP
20376 CXXCPP=$ac_cv_prog_CXXCPP
20377 else
20378 ac_cv_prog_CXXCPP=$CXXCPP
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20381 $as_echo "$CXXCPP" >&6; }
20382 ac_preproc_ok=false
20383 for ac_cxx_preproc_warn_flag in '' yes
20385 # Use a header file that comes with gcc, so configuring glibc
20386 # with a fresh cross-compiler works.
20387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20388 # <limits.h> exists even on freestanding compilers.
20389 # On the NeXT, cc -E runs the code through the compiler's parser,
20390 # not just through cpp. "Syntax error" is here to catch this case.
20391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h. */
20393 #ifdef __STDC__
20394 # include <limits.h>
20395 #else
20396 # include <assert.h>
20397 #endif
20398 Syntax error
20399 _ACEOF
20400 if ac_fn_cxx_try_cpp "$LINENO"; then :
20402 else
20403 # Broken: fails on valid input.
20404 continue
20406 rm -f conftest.err conftest.i conftest.$ac_ext
20408 # OK, works on sane cases. Now check whether nonexistent headers
20409 # can be detected and how.
20410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20411 /* end confdefs.h. */
20412 #include <ac_nonexistent.h>
20413 _ACEOF
20414 if ac_fn_cxx_try_cpp "$LINENO"; then :
20415 # Broken: success on invalid input.
20416 continue
20417 else
20418 # Passes both tests.
20419 ac_preproc_ok=:
20420 break
20422 rm -f conftest.err conftest.i conftest.$ac_ext
20424 done
20425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20426 rm -f conftest.i conftest.err conftest.$ac_ext
20427 if $ac_preproc_ok; then :
20429 else
20430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20432 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20433 See \`config.log' for more details" "$LINENO" 5; }
20436 ac_ext=cpp
20437 ac_cpp='$CXXCPP $CPPFLAGS'
20438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20442 else
20443 _lt_caught_CXX_error=yes
20446 ac_ext=cpp
20447 ac_cpp='$CXXCPP $CPPFLAGS'
20448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20452 archive_cmds_need_lc_CXX=no
20453 allow_undefined_flag_CXX=
20454 always_export_symbols_CXX=no
20455 archive_expsym_cmds_CXX=
20456 compiler_needs_object_CXX=no
20457 export_dynamic_flag_spec_CXX=
20458 hardcode_direct_CXX=no
20459 hardcode_direct_absolute_CXX=no
20460 hardcode_libdir_flag_spec_CXX=
20461 hardcode_libdir_flag_spec_ld_CXX=
20462 hardcode_libdir_separator_CXX=
20463 hardcode_minus_L_CXX=no
20464 hardcode_shlibpath_var_CXX=unsupported
20465 hardcode_automatic_CXX=no
20466 inherit_rpath_CXX=no
20467 module_cmds_CXX=
20468 module_expsym_cmds_CXX=
20469 link_all_deplibs_CXX=unknown
20470 old_archive_cmds_CXX=$old_archive_cmds
20471 reload_flag_CXX=$reload_flag
20472 reload_cmds_CXX=$reload_cmds
20473 no_undefined_flag_CXX=
20474 whole_archive_flag_spec_CXX=
20475 enable_shared_with_static_runtimes_CXX=no
20477 # Source file extension for C++ test sources.
20478 ac_ext=cpp
20480 # Object file extension for compiled C++ test sources.
20481 objext=o
20482 objext_CXX=$objext
20484 # No sense in running all these tests if we already determined that
20485 # the CXX compiler isn't working. Some variables (like enable_shared)
20486 # are currently assumed to apply to all compilers on this platform,
20487 # and will be corrupted by setting them based on a non-working compiler.
20488 if test "$_lt_caught_CXX_error" != yes; then
20489 # Code to be used in simple compile tests
20490 lt_simple_compile_test_code="int some_variable = 0;"
20492 # Code to be used in simple link tests
20493 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20495 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20502 # If no C compiler was specified, use CC.
20503 LTCC=${LTCC-"$CC"}
20505 # If no C compiler flags were specified, use CFLAGS.
20506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20508 # Allow CC to be a program name with arguments.
20509 compiler=$CC
20512 # save warnings/boilerplate of simple test code
20513 ac_outfile=conftest.$ac_objext
20514 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20515 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20516 _lt_compiler_boilerplate=`cat conftest.err`
20517 $RM conftest*
20519 ac_outfile=conftest.$ac_objext
20520 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20521 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20522 _lt_linker_boilerplate=`cat conftest.err`
20523 $RM -r conftest*
20526 # Allow CC to be a program name with arguments.
20527 lt_save_CC=$CC
20528 lt_save_LD=$LD
20529 lt_save_GCC=$GCC
20530 GCC=$GXX
20531 lt_save_with_gnu_ld=$with_gnu_ld
20532 lt_save_path_LD=$lt_cv_path_LD
20533 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20534 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20535 else
20536 $as_unset lt_cv_prog_gnu_ld
20538 if test -n "${lt_cv_path_LDCXX+set}"; then
20539 lt_cv_path_LD=$lt_cv_path_LDCXX
20540 else
20541 $as_unset lt_cv_path_LD
20543 test -z "${LDCXX+set}" || LD=$LDCXX
20544 CC=${CXX-"c++"}
20545 compiler=$CC
20546 compiler_CXX=$CC
20547 for cc_temp in $compiler""; do
20548 case $cc_temp in
20549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20551 \-*) ;;
20552 *) break;;
20553 esac
20554 done
20555 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20558 if test -n "$compiler"; then
20559 # We don't want -fno-exception when compiling C++ code, so set the
20560 # no_builtin_flag separately
20561 if test "$GXX" = yes; then
20562 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20563 else
20564 lt_prog_compiler_no_builtin_flag_CXX=
20567 if test "$GXX" = yes; then
20568 # Set up default GNU C++ configuration
20572 # Check whether --with-gnu-ld was given.
20573 if test "${with_gnu_ld+set}" = set; then :
20574 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20575 else
20576 with_gnu_ld=no
20579 ac_prog=ld
20580 if test "$GCC" = yes; then
20581 # Check if gcc -print-prog-name=ld gives a path.
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20583 $as_echo_n "checking for ld used by $CC... " >&6; }
20584 case $host in
20585 *-*-mingw*)
20586 # gcc leaves a trailing carriage return which upsets mingw
20587 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20589 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20590 esac
20591 case $ac_prog in
20592 # Accept absolute paths.
20593 [\\/]* | ?:[\\/]*)
20594 re_direlt='/[^/][^/]*/\.\./'
20595 # Canonicalize the pathname of ld
20596 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20597 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20598 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20599 done
20600 test -z "$LD" && LD="$ac_prog"
20603 # If it fails, then pretend we aren't using GCC.
20604 ac_prog=ld
20607 # If it is relative, then search for the first ld in PATH.
20608 with_gnu_ld=unknown
20610 esac
20611 elif test "$with_gnu_ld" = yes; then
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20613 $as_echo_n "checking for GNU ld... " >&6; }
20614 else
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20616 $as_echo_n "checking for non-GNU ld... " >&6; }
20618 if ${lt_cv_path_LD+:} false; then :
20619 $as_echo_n "(cached) " >&6
20620 else
20621 if test -z "$LD"; then
20622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20623 for ac_dir in $PATH; do
20624 IFS="$lt_save_ifs"
20625 test -z "$ac_dir" && ac_dir=.
20626 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20627 lt_cv_path_LD="$ac_dir/$ac_prog"
20628 # Check to see if the program is GNU ld. I'd rather use --version,
20629 # but apparently some variants of GNU ld only accept -v.
20630 # Break only if it was the GNU/non-GNU ld that we prefer.
20631 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20632 *GNU* | *'with BFD'*)
20633 test "$with_gnu_ld" != no && break
20636 test "$with_gnu_ld" != yes && break
20638 esac
20640 done
20641 IFS="$lt_save_ifs"
20642 else
20643 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20647 LD="$lt_cv_path_LD"
20648 if test -n "$LD"; then
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20650 $as_echo "$LD" >&6; }
20651 else
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653 $as_echo "no" >&6; }
20655 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20658 if ${lt_cv_prog_gnu_ld+:} false; then :
20659 $as_echo_n "(cached) " >&6
20660 else
20661 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20662 case `$LD -v 2>&1 </dev/null` in
20663 *GNU* | *'with BFD'*)
20664 lt_cv_prog_gnu_ld=yes
20667 lt_cv_prog_gnu_ld=no
20669 esac
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20672 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20673 with_gnu_ld=$lt_cv_prog_gnu_ld
20681 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20682 # archiving commands below assume that GNU ld is being used.
20683 if test "$with_gnu_ld" = yes; then
20684 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20685 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'
20687 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20690 # If archive_cmds runs LD, not CC, wlarc should be empty
20691 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20692 # investigate it a little bit more. (MM)
20693 wlarc='${wl}'
20695 # ancient GNU ld didn't support --whole-archive et. al.
20696 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20697 $GREP 'no-whole-archive' > /dev/null; then
20698 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20699 else
20700 whole_archive_flag_spec_CXX=
20702 else
20703 with_gnu_ld=no
20704 wlarc=
20706 # A generic and very simple default shared library creation
20707 # command for GNU C++ for the case where it uses the native
20708 # linker, instead of GNU ld. If possible, this setting should
20709 # overridden to take advantage of the native linker features on
20710 # the platform it is being used on.
20711 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20714 # Commands to make compiler produce verbose output that lists
20715 # what "hidden" libraries, object files and flags are used when
20716 # linking a shared library.
20717 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20719 else
20720 GXX=no
20721 with_gnu_ld=no
20722 wlarc=
20725 # PORTME: fill in a description of your system's C++ link characteristics
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20727 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20728 ld_shlibs_CXX=yes
20729 case $host_os in
20730 aix3*)
20731 # FIXME: insert proper C++ library support
20732 ld_shlibs_CXX=no
20734 aix[4-9]*)
20735 if test "$host_cpu" = ia64; then
20736 # On IA64, the linker does run time linking by default, so we don't
20737 # have to do anything special.
20738 aix_use_runtimelinking=no
20739 exp_sym_flag='-Bexport'
20740 no_entry_flag=""
20741 else
20742 aix_use_runtimelinking=no
20744 # Test if we are trying to use run time linking or normal
20745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20746 # need to do runtime linking.
20747 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20748 for ld_flag in $LDFLAGS; do
20749 case $ld_flag in
20750 *-brtl*)
20751 aix_use_runtimelinking=yes
20752 break
20754 esac
20755 done
20757 esac
20759 exp_sym_flag='-bexport'
20760 no_entry_flag='-bnoentry'
20763 # When large executables or shared objects are built, AIX ld can
20764 # have problems creating the table of contents. If linking a library
20765 # or program results in "error TOC overflow" add -mminimal-toc to
20766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20769 archive_cmds_CXX=''
20770 hardcode_direct_CXX=yes
20771 hardcode_direct_absolute_CXX=yes
20772 hardcode_libdir_separator_CXX=':'
20773 link_all_deplibs_CXX=yes
20774 file_list_spec_CXX='${wl}-f,'
20776 if test "$GXX" = yes; then
20777 case $host_os in aix4.[012]|aix4.[012].*)
20778 # We only want to do this on AIX 4.2 and lower, the check
20779 # below for broken collect2 doesn't work under 4.3+
20780 collect2name=`${CC} -print-prog-name=collect2`
20781 if test -f "$collect2name" &&
20782 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20783 then
20784 # We have reworked collect2
20786 else
20787 # We have old collect2
20788 hardcode_direct_CXX=unsupported
20789 # It fails to find uninstalled libraries when the uninstalled
20790 # path is not listed in the libpath. Setting hardcode_minus_L
20791 # to unsupported forces relinking
20792 hardcode_minus_L_CXX=yes
20793 hardcode_libdir_flag_spec_CXX='-L$libdir'
20794 hardcode_libdir_separator_CXX=
20796 esac
20797 shared_flag='-shared'
20798 if test "$aix_use_runtimelinking" = yes; then
20799 shared_flag="$shared_flag "'${wl}-G'
20801 else
20802 # not using gcc
20803 if test "$host_cpu" = ia64; then
20804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20805 # chokes on -Wl,-G. The following line is correct:
20806 shared_flag='-G'
20807 else
20808 if test "$aix_use_runtimelinking" = yes; then
20809 shared_flag='${wl}-G'
20810 else
20811 shared_flag='${wl}-bM:SRE'
20816 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20817 # It seems that -bexpall does not export symbols beginning with
20818 # underscore (_), so it is better to generate a list of symbols to
20819 # export.
20820 always_export_symbols_CXX=yes
20821 if test "$aix_use_runtimelinking" = yes; then
20822 # Warning - without using the other runtime loading flags (-brtl),
20823 # -berok will link without error, but may produce a broken library.
20824 allow_undefined_flag_CXX='-berok'
20825 # Determine the default libpath from the value encoded in an empty
20826 # executable.
20827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20828 /* end confdefs.h. */
20831 main ()
20835 return 0;
20837 _ACEOF
20838 if ac_fn_cxx_try_link "$LINENO"; then :
20840 lt_aix_libpath_sed='
20841 /Import File Strings/,/^$/ {
20842 /^0/ {
20843 s/^0 *\(.*\)$/\1/
20847 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20848 # Check for a 64-bit object if we didn't find anything.
20849 if test -z "$aix_libpath"; then
20850 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20853 rm -f core conftest.err conftest.$ac_objext \
20854 conftest$ac_exeext conftest.$ac_ext
20855 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20857 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20859 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"
20860 else
20861 if test "$host_cpu" = ia64; then
20862 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20863 allow_undefined_flag_CXX="-z nodefs"
20864 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"
20865 else
20866 # Determine the default libpath from the value encoded in an
20867 # empty executable.
20868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20869 /* end confdefs.h. */
20872 main ()
20876 return 0;
20878 _ACEOF
20879 if ac_fn_cxx_try_link "$LINENO"; then :
20881 lt_aix_libpath_sed='
20882 /Import File Strings/,/^$/ {
20883 /^0/ {
20884 s/^0 *\(.*\)$/\1/
20888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20889 # Check for a 64-bit object if we didn't find anything.
20890 if test -z "$aix_libpath"; then
20891 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20894 rm -f core conftest.err conftest.$ac_objext \
20895 conftest$ac_exeext conftest.$ac_ext
20896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20898 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20899 # Warning - without using the other run time loading flags,
20900 # -berok will link without error, but may produce a broken library.
20901 no_undefined_flag_CXX=' ${wl}-bernotok'
20902 allow_undefined_flag_CXX=' ${wl}-berok'
20903 if test "$with_gnu_ld" = yes; then
20904 # We only use this code for GNU lds that support --whole-archive.
20905 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20906 else
20907 # Exported symbols can be pulled into shared objects from archives
20908 whole_archive_flag_spec_CXX='$convenience'
20910 archive_cmds_need_lc_CXX=yes
20911 # This is similar to how AIX traditionally builds its shared
20912 # libraries.
20913 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'
20918 beos*)
20919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20920 allow_undefined_flag_CXX=unsupported
20921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20922 # support --undefined. This deserves some investigation. FIXME
20923 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20924 else
20925 ld_shlibs_CXX=no
20929 chorus*)
20930 case $cc_basename in
20932 # FIXME: insert proper C++ library support
20933 ld_shlibs_CXX=no
20935 esac
20938 cygwin* | mingw* | pw32* | cegcc*)
20939 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20940 # as there is no search path for DLLs.
20941 hardcode_libdir_flag_spec_CXX='-L$libdir'
20942 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20943 allow_undefined_flag_CXX=unsupported
20944 always_export_symbols_CXX=no
20945 enable_shared_with_static_runtimes_CXX=yes
20947 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20948 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'
20949 # If the export-symbols file already is a .def file (1st line
20950 # is EXPORTS), use it as is; otherwise, prepend...
20951 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20952 cp $export_symbols $output_objdir/$soname.def;
20953 else
20954 echo EXPORTS > $output_objdir/$soname.def;
20955 cat $export_symbols >> $output_objdir/$soname.def;
20957 $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'
20958 else
20959 ld_shlibs_CXX=no
20962 darwin* | rhapsody*)
20966 # Publish an arg to allow the user to select that Darwin host (and target)
20967 # libraries should be given install-names like @rpath/libfoo.dylib. This
20968 # requires that the user of the library then adds an 'rpath' to the DSO that
20969 # needs access.
20970 # NOTE: there are defaults below, for systems that support rpaths. The person
20971 # configuring can override the defaults for any system version that supports
20972 # them - they are, however, forced off for system versions without support.
20973 # Check whether --enable-darwin-at-rpath was given.
20974 if test "${enable_darwin_at_rpath+set}" = set; then :
20975 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
20976 # This is not supported before macOS 10.5 / Darwin9.
20977 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
20978 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
20980 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
20981 enable_darwin_at_rpath=no
20983 esac
20985 else
20986 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
20987 # As above, before 10.5 / Darwin9 this does not work.
20988 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
20989 enable_darwin_at_rpath=no
20992 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
20993 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
20994 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
20995 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
20997 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
20998 enable_darwin_at_rpath=yes
21000 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
21001 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
21003 esac
21008 archive_cmds_need_lc_CXX=no
21009 hardcode_direct_CXX=no
21010 hardcode_automatic_CXX=yes
21011 hardcode_shlibpath_var_CXX=unsupported
21012 if test "$lt_cv_ld_force_load" = "yes"; then
21013 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\"`'
21014 else
21015 whole_archive_flag_spec_CXX=''
21017 link_all_deplibs_CXX=yes
21018 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
21019 case $cc_basename in
21020 ifort*) _lt_dar_can_shared=yes ;;
21021 *) _lt_dar_can_shared=$GCC ;;
21022 esac
21023 if test "$_lt_dar_can_shared" = "yes"; then
21024 output_verbose_link_cmd=func_echo_all
21025 _lt_install_name='\$rpath/\$soname'
21026 if test "x$enable_darwin_at_rpath" = "xyes"; then
21027 _lt_install_name='@rpath/\$soname'
21029 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
21030 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21031 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}"
21032 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}"
21033 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
21034 _lt_install_name='\$rpath/\$soname'
21035 if test "x$enable_darwin_at_rpath" = "xyes"; then
21036 _lt_install_name='@rpath/\$soname'
21038 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}"
21039 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}"
21042 else
21043 ld_shlibs_CXX=no
21048 dgux*)
21049 case $cc_basename in
21050 ec++*)
21051 # FIXME: insert proper C++ library support
21052 ld_shlibs_CXX=no
21054 ghcx*)
21055 # Green Hills C++ Compiler
21056 # FIXME: insert proper C++ library support
21057 ld_shlibs_CXX=no
21060 # FIXME: insert proper C++ library support
21061 ld_shlibs_CXX=no
21063 esac
21066 freebsd2.*)
21067 # C++ shared libraries reported to be fairly broken before
21068 # switch to ELF
21069 ld_shlibs_CXX=no
21072 freebsd-elf*)
21073 archive_cmds_need_lc_CXX=no
21076 freebsd* | dragonfly*)
21077 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21078 # conventions
21079 ld_shlibs_CXX=yes
21082 gnu*)
21085 haiku*)
21086 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21087 link_all_deplibs_CXX=yes
21090 hpux9*)
21091 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21092 hardcode_libdir_separator_CXX=:
21093 export_dynamic_flag_spec_CXX='${wl}-E'
21094 hardcode_direct_CXX=yes
21095 hardcode_minus_L_CXX=yes # Not in the search PATH,
21096 # but as the default
21097 # location of the library.
21099 case $cc_basename in
21100 CC*)
21101 # FIXME: insert proper C++ library support
21102 ld_shlibs_CXX=no
21104 aCC*)
21105 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'
21106 # Commands to make compiler produce verbose output that lists
21107 # what "hidden" libraries, object files and flags are used when
21108 # linking a shared library.
21110 # There doesn't appear to be a way to prevent this compiler from
21111 # explicitly linking system object files so we need to strip them
21112 # from the output so that they don't get included in the library
21113 # dependencies.
21114 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"'
21117 if test "$GXX" = yes; then
21118 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'
21119 else
21120 # FIXME: insert proper C++ library support
21121 ld_shlibs_CXX=no
21124 esac
21127 hpux10*|hpux11*)
21128 if test $with_gnu_ld = no; then
21129 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21130 hardcode_libdir_separator_CXX=:
21132 case $host_cpu in
21133 hppa*64*|ia64*)
21136 export_dynamic_flag_spec_CXX='${wl}-E'
21138 esac
21140 case $host_cpu in
21141 hppa*64*|ia64*)
21142 hardcode_direct_CXX=no
21143 hardcode_shlibpath_var_CXX=no
21146 hardcode_direct_CXX=yes
21147 hardcode_direct_absolute_CXX=yes
21148 hardcode_minus_L_CXX=yes # Not in the search PATH,
21149 # but as the default
21150 # location of the library.
21152 esac
21154 case $cc_basename in
21155 CC*)
21156 # FIXME: insert proper C++ library support
21157 ld_shlibs_CXX=no
21159 aCC*)
21160 case $host_cpu in
21161 hppa*64*)
21162 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21164 ia64*)
21165 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21168 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21170 esac
21171 # Commands to make compiler produce verbose output that lists
21172 # what "hidden" libraries, object files and flags are used when
21173 # linking a shared library.
21175 # There doesn't appear to be a way to prevent this compiler from
21176 # explicitly linking system object files so we need to strip them
21177 # from the output so that they don't get included in the library
21178 # dependencies.
21179 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"'
21182 if test "$GXX" = yes; then
21183 if test $with_gnu_ld = no; then
21184 case $host_cpu in
21185 hppa*64*)
21186 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21188 ia64*)
21189 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21192 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'
21194 esac
21196 else
21197 # FIXME: insert proper C++ library support
21198 ld_shlibs_CXX=no
21201 esac
21204 interix[3-9]*)
21205 hardcode_direct_CXX=no
21206 hardcode_shlibpath_var_CXX=no
21207 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21208 export_dynamic_flag_spec_CXX='${wl}-E'
21209 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21210 # Instead, shared libraries are loaded at an image base (0x10000000 by
21211 # default) and relocated if they conflict, which is a slow very memory
21212 # consuming and fragmenting process. To avoid this, we pick a random,
21213 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21214 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21215 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'
21216 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'
21218 irix5* | irix6*)
21219 case $cc_basename in
21220 CC*)
21221 # SGI C++
21222 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'
21224 # Archives containing C++ object files must be created using
21225 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21226 # necessary to make sure instantiated templates are included
21227 # in the archive.
21228 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21231 if test "$GXX" = yes; then
21232 if test "$with_gnu_ld" = no; then
21233 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'
21234 else
21235 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'
21238 link_all_deplibs_CXX=yes
21240 esac
21241 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21242 hardcode_libdir_separator_CXX=:
21243 inherit_rpath_CXX=yes
21246 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21247 case $cc_basename in
21248 KCC*)
21249 # Kuck and Associates, Inc. (KAI) C++ Compiler
21251 # KCC will only create a shared library if the output file
21252 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21253 # to its proper name (with version) after linking.
21254 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'
21255 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'
21256 # Commands to make compiler produce verbose output that lists
21257 # what "hidden" libraries, object files and flags are used when
21258 # linking a shared library.
21260 # There doesn't appear to be a way to prevent this compiler from
21261 # explicitly linking system object files so we need to strip them
21262 # from the output so that they don't get included in the library
21263 # dependencies.
21264 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"'
21266 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21269 # Archives containing C++ object files must be created using
21270 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21271 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21273 icpc* | ecpc* )
21274 # Intel C++
21275 with_gnu_ld=yes
21276 # version 8.0 and above of icpc choke on multiply defined symbols
21277 # if we add $predep_objects and $postdep_objects, however 7.1 and
21278 # earlier do not add the objects themselves.
21279 case `$CC -V 2>&1` in
21280 *"Version 7."*)
21281 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21282 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'
21284 *) # Version 8.0 or newer
21285 tmp_idyn=
21286 case $host_cpu in
21287 ia64*) tmp_idyn=' -i_dynamic';;
21288 esac
21289 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21290 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'
21292 esac
21293 archive_cmds_need_lc_CXX=no
21294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21295 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21296 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21298 pgCC* | pgcpp*)
21299 # Portland Group C++ compiler
21300 case `$CC -V` in
21301 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
21302 prelink_cmds_CXX='tpldir=Template.dir~
21303 rm -rf $tpldir~
21304 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21305 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21306 old_archive_cmds_CXX='tpldir=Template.dir~
21307 rm -rf $tpldir~
21308 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21309 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21310 $RANLIB $oldlib'
21311 archive_cmds_CXX='tpldir=Template.dir~
21312 rm -rf $tpldir~
21313 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21314 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21315 archive_expsym_cmds_CXX='tpldir=Template.dir~
21316 rm -rf $tpldir~
21317 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21318 $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'
21320 *) # Version 6 and above use weak symbols
21321 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21322 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'
21324 esac
21326 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21327 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21328 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'
21330 cxx*)
21331 # Compaq C++
21332 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21333 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'
21335 runpath_var=LD_RUN_PATH
21336 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21337 hardcode_libdir_separator_CXX=:
21339 # Commands to make compiler produce verbose output that lists
21340 # what "hidden" libraries, object files and flags are used when
21341 # linking a shared library.
21343 # There doesn't appear to be a way to prevent this compiler from
21344 # explicitly linking system object files so we need to strip them
21345 # from the output so that they don't get included in the library
21346 # dependencies.
21347 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'
21349 xl* | mpixl* | bgxl*)
21350 # IBM XL 8.0 on PPC, with GNU ld
21351 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21353 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21354 if test "x$supports_anon_versioning" = xyes; then
21355 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21356 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21357 echo "local: *; };" >> $output_objdir/$libname.ver~
21358 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21362 case `$CC -V 2>&1 | sed 5q` in
21363 *Sun\ C*)
21364 # Sun C++ 5.9
21365 no_undefined_flag_CXX=' -zdefs'
21366 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21367 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'
21368 hardcode_libdir_flag_spec_CXX='-R$libdir'
21369 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'
21370 compiler_needs_object_CXX=yes
21372 # Not sure whether something based on
21373 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21374 # would be better.
21375 output_verbose_link_cmd='func_echo_all'
21377 # Archives containing C++ object files must be created using
21378 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21379 # necessary to make sure instantiated templates are included
21380 # in the archive.
21381 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21383 esac
21385 esac
21388 lynxos*)
21389 # FIXME: insert proper C++ library support
21390 ld_shlibs_CXX=no
21393 m88k*)
21394 # FIXME: insert proper C++ library support
21395 ld_shlibs_CXX=no
21398 mvs*)
21399 case $cc_basename in
21400 cxx*)
21401 # FIXME: insert proper C++ library support
21402 ld_shlibs_CXX=no
21405 # FIXME: insert proper C++ library support
21406 ld_shlibs_CXX=no
21408 esac
21411 netbsd*)
21412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21413 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21414 wlarc=
21415 hardcode_libdir_flag_spec_CXX='-R$libdir'
21416 hardcode_direct_CXX=yes
21417 hardcode_shlibpath_var_CXX=no
21419 # Workaround some broken pre-1.5 toolchains
21420 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21423 *nto* | *qnx*)
21424 ld_shlibs_CXX=yes
21427 openbsd2*)
21428 # C++ shared libraries are fairly broken
21429 ld_shlibs_CXX=no
21432 openbsd*)
21433 if test -f /usr/libexec/ld.so; then
21434 hardcode_direct_CXX=yes
21435 hardcode_shlibpath_var_CXX=no
21436 hardcode_direct_absolute_CXX=yes
21437 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21438 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21439 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21440 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21441 export_dynamic_flag_spec_CXX='${wl}-E'
21442 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21444 output_verbose_link_cmd=func_echo_all
21445 else
21446 ld_shlibs_CXX=no
21450 osf3* | osf4* | osf5*)
21451 case $cc_basename in
21452 KCC*)
21453 # Kuck and Associates, Inc. (KAI) C++ Compiler
21455 # KCC will only create a shared library if the output file
21456 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21457 # to its proper name (with version) after linking.
21458 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'
21460 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21461 hardcode_libdir_separator_CXX=:
21463 # Archives containing C++ object files must be created using
21464 # the KAI C++ compiler.
21465 case $host in
21466 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21467 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21468 esac
21470 RCC*)
21471 # Rational C++ 2.4.1
21472 # FIXME: insert proper C++ library support
21473 ld_shlibs_CXX=no
21475 cxx*)
21476 case $host in
21477 osf3*)
21478 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21479 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'
21480 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21483 allow_undefined_flag_CXX=' -expect_unresolved \*'
21484 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'
21485 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21486 echo "-hidden">> $lib.exp~
21487 $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~
21488 $RM $lib.exp'
21489 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21491 esac
21493 hardcode_libdir_separator_CXX=:
21495 # Commands to make compiler produce verbose output that lists
21496 # what "hidden" libraries, object files and flags are used when
21497 # linking a shared library.
21499 # There doesn't appear to be a way to prevent this compiler from
21500 # explicitly linking system object files so we need to strip them
21501 # from the output so that they don't get included in the library
21502 # dependencies.
21503 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"'
21506 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21507 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21508 case $host in
21509 osf3*)
21510 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'
21513 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'
21515 esac
21517 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21518 hardcode_libdir_separator_CXX=:
21520 # Commands to make compiler produce verbose output that lists
21521 # what "hidden" libraries, object files and flags are used when
21522 # linking a shared library.
21523 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21525 else
21526 # FIXME: insert proper C++ library support
21527 ld_shlibs_CXX=no
21530 esac
21533 psos*)
21534 # FIXME: insert proper C++ library support
21535 ld_shlibs_CXX=no
21538 sunos4*)
21539 case $cc_basename in
21540 CC*)
21541 # Sun C++ 4.x
21542 # FIXME: insert proper C++ library support
21543 ld_shlibs_CXX=no
21545 lcc*)
21546 # Lucid
21547 # FIXME: insert proper C++ library support
21548 ld_shlibs_CXX=no
21551 # FIXME: insert proper C++ library support
21552 ld_shlibs_CXX=no
21554 esac
21557 solaris*)
21558 case $cc_basename in
21559 CC*)
21560 # Sun C++ 4.2, 5.x and Centerline C++
21561 archive_cmds_need_lc_CXX=yes
21562 no_undefined_flag_CXX=' -zdefs'
21563 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21564 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21565 $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'
21567 hardcode_libdir_flag_spec_CXX='-R$libdir'
21568 hardcode_shlibpath_var_CXX=no
21569 case $host_os in
21570 solaris2.[0-5] | solaris2.[0-5].*) ;;
21572 # The compiler driver will combine and reorder linker options,
21573 # but understands `-z linker_flag'.
21574 # Supported since Solaris 2.6 (maybe 2.5.1?)
21575 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21577 esac
21578 link_all_deplibs_CXX=yes
21580 output_verbose_link_cmd='func_echo_all'
21582 # Archives containing C++ object files must be created using
21583 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21584 # necessary to make sure instantiated templates are included
21585 # in the archive.
21586 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21588 gcx*)
21589 # Green Hills C++ Compiler
21590 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21592 # The C++ compiler must be used to create the archive.
21593 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21596 # GNU C++ compiler with Solaris linker
21597 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21598 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21599 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21600 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21601 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21602 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21604 # Commands to make compiler produce verbose output that lists
21605 # what "hidden" libraries, object files and flags are used when
21606 # linking a shared library.
21607 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21608 else
21609 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21610 # platform.
21611 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21612 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21613 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21615 # Commands to make compiler produce verbose output that lists
21616 # what "hidden" libraries, object files and flags are used when
21617 # linking a shared library.
21618 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21621 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21622 case $host_os in
21623 solaris2.[0-5] | solaris2.[0-5].*) ;;
21625 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21627 esac
21630 esac
21633 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21634 no_undefined_flag_CXX='${wl}-z,text'
21635 archive_cmds_need_lc_CXX=no
21636 hardcode_shlibpath_var_CXX=no
21637 runpath_var='LD_RUN_PATH'
21639 case $cc_basename in
21640 CC*)
21641 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21642 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21645 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21646 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21648 esac
21651 sysv5* | sco3.2v5* | sco5v6*)
21652 # Note: We can NOT use -z defs as we might desire, because we do not
21653 # link with -lc, and that would cause any symbols used from libc to
21654 # always be unresolved, which means just about no library would
21655 # ever link correctly. If we're not using GNU ld we use -z text
21656 # though, which does catch some bad symbols but isn't as heavy-handed
21657 # as -z defs.
21658 no_undefined_flag_CXX='${wl}-z,text'
21659 allow_undefined_flag_CXX='${wl}-z,nodefs'
21660 archive_cmds_need_lc_CXX=no
21661 hardcode_shlibpath_var_CXX=no
21662 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21663 hardcode_libdir_separator_CXX=':'
21664 link_all_deplibs_CXX=yes
21665 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21666 runpath_var='LD_RUN_PATH'
21668 case $cc_basename in
21669 CC*)
21670 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21671 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21672 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21673 '"$old_archive_cmds_CXX"
21674 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21675 '"$reload_cmds_CXX"
21678 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21679 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21681 esac
21684 tandem*)
21685 case $cc_basename in
21686 NCC*)
21687 # NonStop-UX NCC 3.20
21688 # FIXME: insert proper C++ library support
21689 ld_shlibs_CXX=no
21692 # FIXME: insert proper C++ library support
21693 ld_shlibs_CXX=no
21695 esac
21698 vxworks*)
21699 # For VxWorks ports, we assume the use of a GNU linker with
21700 # standard elf conventions.
21701 ld_shlibs_CXX=yes
21705 # FIXME: insert proper C++ library support
21706 ld_shlibs_CXX=no
21708 esac
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21711 $as_echo "$ld_shlibs_CXX" >&6; }
21712 test "$ld_shlibs_CXX" = no && can_build_shared=no
21714 GCC_CXX="$GXX"
21715 LD_CXX="$LD"
21717 ## CAVEAT EMPTOR:
21718 ## There is no encapsulation within the following macros, do not change
21719 ## the running order or otherwise move them around unless you know exactly
21720 ## what you are doing...
21721 # Dependencies to place before and after the object being linked:
21722 predep_objects_CXX=
21723 postdep_objects_CXX=
21724 predeps_CXX=
21725 postdeps_CXX=
21726 compiler_lib_search_path_CXX=
21728 cat > conftest.$ac_ext <<_LT_EOF
21729 class Foo
21731 public:
21732 Foo (void) { a = 0; }
21733 private:
21734 int a;
21736 _LT_EOF
21738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21739 (eval $ac_compile) 2>&5
21740 ac_status=$?
21741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21742 test $ac_status = 0; }; then
21743 # Parse the compiler output and extract the necessary
21744 # objects, libraries and library flags.
21746 # Sentinel used to keep track of whether or not we are before
21747 # the conftest object file.
21748 pre_test_object_deps_done=no
21750 for p in `eval "$output_verbose_link_cmd"`; do
21751 case $p in
21753 -L* | -R* | -l*)
21754 # Some compilers place space between "-{L,R}" and the path.
21755 # Remove the space.
21756 if test $p = "-L" ||
21757 test $p = "-R"; then
21758 prev=$p
21759 continue
21760 else
21761 prev=
21764 if test "$pre_test_object_deps_done" = no; then
21765 case $p in
21766 -L* | -R*)
21767 # Internal compiler library paths should come after those
21768 # provided the user. The postdeps already come after the
21769 # user supplied libs so there is no need to process them.
21770 if test -z "$compiler_lib_search_path_CXX"; then
21771 compiler_lib_search_path_CXX="${prev}${p}"
21772 else
21773 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21776 # The "-l" case would never come before the object being
21777 # linked, so don't bother handling this case.
21778 esac
21779 else
21780 if test -z "$postdeps_CXX"; then
21781 postdeps_CXX="${prev}${p}"
21782 else
21783 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21788 *.$objext)
21789 # This assumes that the test object file only shows up
21790 # once in the compiler output.
21791 if test "$p" = "conftest.$objext"; then
21792 pre_test_object_deps_done=yes
21793 continue
21796 if test "$pre_test_object_deps_done" = no; then
21797 if test -z "$predep_objects_CXX"; then
21798 predep_objects_CXX="$p"
21799 else
21800 predep_objects_CXX="$predep_objects_CXX $p"
21802 else
21803 if test -z "$postdep_objects_CXX"; then
21804 postdep_objects_CXX="$p"
21805 else
21806 postdep_objects_CXX="$postdep_objects_CXX $p"
21811 *) ;; # Ignore the rest.
21813 esac
21814 done
21816 # Clean up.
21817 rm -f a.out a.exe
21818 else
21819 echo "libtool.m4: error: problem compiling CXX test program"
21822 $RM -f confest.$objext
21824 # PORTME: override above test on systems where it is broken
21825 case $host_os in
21826 interix[3-9]*)
21827 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21828 # hack all around it, let's just trust "g++" to DTRT.
21829 predep_objects_CXX=
21830 postdep_objects_CXX=
21831 postdeps_CXX=
21834 linux*)
21835 case `$CC -V 2>&1 | sed 5q` in
21836 *Sun\ C*)
21837 # Sun C++ 5.9
21839 # The more standards-conforming stlport4 library is
21840 # incompatible with the Cstd library. Avoid specifying
21841 # it if it's in CXXFLAGS. Ignore libCrun as
21842 # -library=stlport4 depends on it.
21843 case " $CXX $CXXFLAGS " in
21844 *" -library=stlport4 "*)
21845 solaris_use_stlport4=yes
21847 esac
21849 if test "$solaris_use_stlport4" != yes; then
21850 postdeps_CXX='-library=Cstd -library=Crun'
21853 esac
21856 solaris*)
21857 case $cc_basename in
21858 CC*)
21859 # The more standards-conforming stlport4 library is
21860 # incompatible with the Cstd library. Avoid specifying
21861 # it if it's in CXXFLAGS. Ignore libCrun as
21862 # -library=stlport4 depends on it.
21863 case " $CXX $CXXFLAGS " in
21864 *" -library=stlport4 "*)
21865 solaris_use_stlport4=yes
21867 esac
21869 # Adding this requires a known-good setup of shared libraries for
21870 # Sun compiler versions before 5.6, else PIC objects from an old
21871 # archive will be linked into the output, leading to subtle bugs.
21872 if test "$solaris_use_stlport4" != yes; then
21873 postdeps_CXX='-library=Cstd -library=Crun'
21876 esac
21878 esac
21881 case " $postdeps_CXX " in
21882 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21883 esac
21884 compiler_lib_search_dirs_CXX=
21885 if test -n "${compiler_lib_search_path_CXX}"; then
21886 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21919 lt_prog_compiler_wl_CXX=
21920 lt_prog_compiler_pic_CXX=
21921 lt_prog_compiler_static_CXX=
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21924 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21926 # C++ specific cases for pic, static, wl, etc.
21927 if test "$GXX" = yes; then
21928 lt_prog_compiler_wl_CXX='-Wl,'
21929 lt_prog_compiler_static_CXX='-static'
21931 case $host_os in
21932 aix*)
21933 # All AIX code is PIC.
21934 if test "$host_cpu" = ia64; then
21935 # AIX 5 now supports IA64 processor
21936 lt_prog_compiler_static_CXX='-Bstatic'
21938 lt_prog_compiler_pic_CXX='-fPIC'
21941 amigaos*)
21942 case $host_cpu in
21943 powerpc)
21944 # see comment about AmigaOS4 .so support
21945 lt_prog_compiler_pic_CXX='-fPIC'
21947 m68k)
21948 # FIXME: we need at least 68020 code to build shared libraries, but
21949 # adding the `-m68020' flag to GCC prevents building anything better,
21950 # like `-m68040'.
21951 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21953 esac
21956 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21957 # PIC is the default for these OSes.
21959 mingw* | cygwin* | os2* | pw32* | cegcc*)
21960 # This hack is so that the source file can tell whether it is being
21961 # built for inclusion in a dll (and should export symbols for example).
21962 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21963 # (--disable-auto-import) libraries
21964 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21966 darwin* | rhapsody*)
21967 # PIC is the default on this platform
21968 # Common symbols not allowed in MH_DYLIB files
21969 lt_prog_compiler_pic_CXX='-fno-common'
21971 *djgpp*)
21972 # DJGPP does not support shared libraries at all
21973 lt_prog_compiler_pic_CXX=
21975 haiku*)
21976 # PIC is the default for Haiku.
21977 # The "-static" flag exists, but is broken.
21978 lt_prog_compiler_static_CXX=
21980 interix[3-9]*)
21981 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21982 # Instead, we relocate shared libraries at runtime.
21984 sysv4*MP*)
21985 if test -d /usr/nec; then
21986 lt_prog_compiler_pic_CXX=-Kconform_pic
21989 hpux*)
21990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21992 # sets the default TLS model and affects inlining.
21993 case $host_cpu in
21994 hppa*64*)
21997 lt_prog_compiler_pic_CXX='-fPIC'
21999 esac
22001 *qnx* | *nto*)
22002 # QNX uses GNU C++, but need to define -shared option too, otherwise
22003 # it will coredump.
22004 lt_prog_compiler_pic_CXX='-fPIC -shared'
22007 lt_prog_compiler_pic_CXX='-fPIC'
22009 esac
22010 else
22011 case $host_os in
22012 aix[4-9]*)
22013 # All AIX code is PIC.
22014 if test "$host_cpu" = ia64; then
22015 # AIX 5 now supports IA64 processor
22016 lt_prog_compiler_static_CXX='-Bstatic'
22017 else
22018 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
22021 chorus*)
22022 case $cc_basename in
22023 cxch68*)
22024 # Green Hills C++ Compiler
22025 # _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"
22027 esac
22029 dgux*)
22030 case $cc_basename in
22031 ec++*)
22032 lt_prog_compiler_pic_CXX='-KPIC'
22034 ghcx*)
22035 # Green Hills C++ Compiler
22036 lt_prog_compiler_pic_CXX='-pic'
22040 esac
22042 freebsd* | dragonfly*)
22043 # FreeBSD uses GNU C++
22045 hpux9* | hpux10* | hpux11*)
22046 case $cc_basename in
22047 CC*)
22048 lt_prog_compiler_wl_CXX='-Wl,'
22049 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
22050 if test "$host_cpu" != ia64; then
22051 lt_prog_compiler_pic_CXX='+Z'
22054 aCC*)
22055 lt_prog_compiler_wl_CXX='-Wl,'
22056 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
22057 case $host_cpu in
22058 hppa*64*|ia64*)
22059 # +Z the default
22062 lt_prog_compiler_pic_CXX='+Z'
22064 esac
22068 esac
22070 interix*)
22071 # This is c89, which is MS Visual C++ (no shared libs)
22072 # Anyone wants to do a port?
22074 irix5* | irix6* | nonstopux*)
22075 case $cc_basename in
22076 CC*)
22077 lt_prog_compiler_wl_CXX='-Wl,'
22078 lt_prog_compiler_static_CXX='-non_shared'
22079 # CC pic flag -KPIC is the default.
22083 esac
22085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22086 case $cc_basename in
22087 KCC*)
22088 # KAI C++ Compiler
22089 lt_prog_compiler_wl_CXX='--backend -Wl,'
22090 lt_prog_compiler_pic_CXX='-fPIC'
22092 ecpc* )
22093 # old Intel C++ for x86_64 which still supported -KPIC.
22094 lt_prog_compiler_wl_CXX='-Wl,'
22095 lt_prog_compiler_pic_CXX='-KPIC'
22096 lt_prog_compiler_static_CXX='-static'
22098 icpc* )
22099 # Intel C++, used to be incompatible with GCC.
22100 # ICC 10 doesn't accept -KPIC any more.
22101 lt_prog_compiler_wl_CXX='-Wl,'
22102 lt_prog_compiler_pic_CXX='-fPIC'
22103 lt_prog_compiler_static_CXX='-static'
22105 pgCC* | pgcpp*)
22106 # Portland Group C++ compiler
22107 lt_prog_compiler_wl_CXX='-Wl,'
22108 lt_prog_compiler_pic_CXX='-fpic'
22109 lt_prog_compiler_static_CXX='-Bstatic'
22111 cxx*)
22112 # Compaq C++
22113 # Make sure the PIC flag is empty. It appears that all Alpha
22114 # Linux and Compaq Tru64 Unix objects are PIC.
22115 lt_prog_compiler_pic_CXX=
22116 lt_prog_compiler_static_CXX='-non_shared'
22118 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
22119 # IBM XL 8.0, 9.0 on PPC and BlueGene
22120 lt_prog_compiler_wl_CXX='-Wl,'
22121 lt_prog_compiler_pic_CXX='-qpic'
22122 lt_prog_compiler_static_CXX='-qstaticlink'
22125 case `$CC -V 2>&1 | sed 5q` in
22126 *Sun\ C*)
22127 # Sun C++ 5.9
22128 lt_prog_compiler_pic_CXX='-KPIC'
22129 lt_prog_compiler_static_CXX='-Bstatic'
22130 lt_prog_compiler_wl_CXX='-Qoption ld '
22132 esac
22134 esac
22136 lynxos*)
22138 m88k*)
22140 mvs*)
22141 case $cc_basename in
22142 cxx*)
22143 lt_prog_compiler_pic_CXX='-W c,exportall'
22147 esac
22149 netbsd*)
22151 *qnx* | *nto*)
22152 # QNX uses GNU C++, but need to define -shared option too, otherwise
22153 # it will coredump.
22154 lt_prog_compiler_pic_CXX='-fPIC -shared'
22156 osf3* | osf4* | osf5*)
22157 case $cc_basename in
22158 KCC*)
22159 lt_prog_compiler_wl_CXX='--backend -Wl,'
22161 RCC*)
22162 # Rational C++ 2.4.1
22163 lt_prog_compiler_pic_CXX='-pic'
22165 cxx*)
22166 # Digital/Compaq C++
22167 lt_prog_compiler_wl_CXX='-Wl,'
22168 # Make sure the PIC flag is empty. It appears that all Alpha
22169 # Linux and Compaq Tru64 Unix objects are PIC.
22170 lt_prog_compiler_pic_CXX=
22171 lt_prog_compiler_static_CXX='-non_shared'
22175 esac
22177 psos*)
22179 solaris*)
22180 case $cc_basename in
22181 CC*)
22182 # Sun C++ 4.2, 5.x and Centerline C++
22183 lt_prog_compiler_pic_CXX='-KPIC'
22184 lt_prog_compiler_static_CXX='-Bstatic'
22185 lt_prog_compiler_wl_CXX='-Qoption ld '
22187 gcx*)
22188 # Green Hills C++ Compiler
22189 lt_prog_compiler_pic_CXX='-PIC'
22193 esac
22195 sunos4*)
22196 case $cc_basename in
22197 CC*)
22198 # Sun C++ 4.x
22199 lt_prog_compiler_pic_CXX='-pic'
22200 lt_prog_compiler_static_CXX='-Bstatic'
22202 lcc*)
22203 # Lucid
22204 lt_prog_compiler_pic_CXX='-pic'
22208 esac
22210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22211 case $cc_basename in
22212 CC*)
22213 lt_prog_compiler_wl_CXX='-Wl,'
22214 lt_prog_compiler_pic_CXX='-KPIC'
22215 lt_prog_compiler_static_CXX='-Bstatic'
22217 esac
22219 tandem*)
22220 case $cc_basename in
22221 NCC*)
22222 # NonStop-UX NCC 3.20
22223 lt_prog_compiler_pic_CXX='-KPIC'
22227 esac
22229 vxworks*)
22232 lt_prog_compiler_can_build_shared_CXX=no
22234 esac
22237 case $host_os in
22238 # For platforms which do not support PIC, -DPIC is meaningless:
22239 *djgpp*)
22240 lt_prog_compiler_pic_CXX=
22243 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22245 esac
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22247 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22252 # Check to make sure the PIC flag actually works.
22254 if test -n "$lt_prog_compiler_pic_CXX"; then
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22256 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22257 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
22258 $as_echo_n "(cached) " >&6
22259 else
22260 lt_cv_prog_compiler_pic_works_CXX=no
22261 ac_outfile=conftest.$ac_objext
22262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22263 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22264 # Insert the option either (1) after the last *FLAGS variable, or
22265 # (2) before a word containing "conftest.", or (3) at the end.
22266 # Note that $ac_compile itself does not contain backslashes and begins
22267 # with a dollar sign (not a hyphen), so the echo should work correctly.
22268 # The option is referenced via a variable to avoid confusing sed.
22269 lt_compile=`echo "$ac_compile" | $SED \
22270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22272 -e 's:$: $lt_compiler_flag:'`
22273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22274 (eval "$lt_compile" 2>conftest.err)
22275 ac_status=$?
22276 cat conftest.err >&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 if (exit $ac_status) && test -s "$ac_outfile"; then
22279 # The compiler can only warn and ignore the option if not recognized
22280 # So say no if there are warnings other than the usual output.
22281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22284 lt_cv_prog_compiler_pic_works_CXX=yes
22287 $RM conftest*
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22291 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22293 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
22294 case $lt_prog_compiler_pic_CXX in
22295 "" | " "*) ;;
22296 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22297 esac
22298 else
22299 lt_prog_compiler_pic_CXX=
22300 lt_prog_compiler_can_build_shared_CXX=no
22308 # Check to make sure the static flag actually works.
22310 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22312 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22313 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
22314 $as_echo_n "(cached) " >&6
22315 else
22316 lt_cv_prog_compiler_static_works_CXX=no
22317 save_LDFLAGS="$LDFLAGS"
22318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22321 # The linker can only warn and ignore the option if not recognized
22322 # So say no if there are warnings
22323 if test -s conftest.err; then
22324 # Append any errors to the config.log.
22325 cat conftest.err 1>&5
22326 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22328 if diff conftest.exp conftest.er2 >/dev/null; then
22329 lt_cv_prog_compiler_static_works_CXX=yes
22331 else
22332 lt_cv_prog_compiler_static_works_CXX=yes
22335 $RM -r conftest*
22336 LDFLAGS="$save_LDFLAGS"
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22340 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22342 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22344 else
22345 lt_prog_compiler_static_CXX=
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22352 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22353 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22354 $as_echo_n "(cached) " >&6
22355 else
22356 lt_cv_prog_compiler_c_o_CXX=no
22357 $RM -r conftest 2>/dev/null
22358 mkdir conftest
22359 cd conftest
22360 mkdir out
22361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22363 lt_compiler_flag="-o out/conftest2.$ac_objext"
22364 # Insert the option either (1) after the last *FLAGS variable, or
22365 # (2) before a word containing "conftest.", or (3) at the end.
22366 # Note that $ac_compile itself does not contain backslashes and begins
22367 # with a dollar sign (not a hyphen), so the echo should work correctly.
22368 lt_compile=`echo "$ac_compile" | $SED \
22369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22371 -e 's:$: $lt_compiler_flag:'`
22372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22373 (eval "$lt_compile" 2>out/conftest.err)
22374 ac_status=$?
22375 cat out/conftest.err >&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22378 then
22379 # The compiler can only warn and ignore the option if not recognized
22380 # So say no if there are warnings
22381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22384 lt_cv_prog_compiler_c_o_CXX=yes
22387 chmod u+w . 2>&5
22388 $RM conftest*
22389 # SGI C++ compiler will create directory out/ii_files/ for
22390 # template instantiation
22391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22392 $RM out/* && rmdir out
22393 cd ..
22394 $RM -r conftest
22395 $RM conftest*
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22399 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22405 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22406 $as_echo_n "(cached) " >&6
22407 else
22408 lt_cv_prog_compiler_c_o_CXX=no
22409 $RM -r conftest 2>/dev/null
22410 mkdir conftest
22411 cd conftest
22412 mkdir out
22413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22415 lt_compiler_flag="-o out/conftest2.$ac_objext"
22416 # Insert the option either (1) after the last *FLAGS variable, or
22417 # (2) before a word containing "conftest.", or (3) at the end.
22418 # Note that $ac_compile itself does not contain backslashes and begins
22419 # with a dollar sign (not a hyphen), so the echo should work correctly.
22420 lt_compile=`echo "$ac_compile" | $SED \
22421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22423 -e 's:$: $lt_compiler_flag:'`
22424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22425 (eval "$lt_compile" 2>out/conftest.err)
22426 ac_status=$?
22427 cat out/conftest.err >&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22430 then
22431 # The compiler can only warn and ignore the option if not recognized
22432 # So say no if there are warnings
22433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22436 lt_cv_prog_compiler_c_o_CXX=yes
22439 chmod u+w . 2>&5
22440 $RM conftest*
22441 # SGI C++ compiler will create directory out/ii_files/ for
22442 # template instantiation
22443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22444 $RM out/* && rmdir out
22445 cd ..
22446 $RM -r conftest
22447 $RM conftest*
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22451 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22456 hard_links="nottested"
22457 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22458 # do not overwrite the value of need_locks provided by the user
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22460 $as_echo_n "checking if we can lock with hard links... " >&6; }
22461 hard_links=yes
22462 $RM conftest*
22463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22464 touch conftest.a
22465 ln conftest.a conftest.b 2>&5 || hard_links=no
22466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22468 $as_echo "$hard_links" >&6; }
22469 if test "$hard_links" = no; then
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22471 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22472 need_locks=warn
22474 else
22475 need_locks=no
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22481 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22484 case $host_os in
22485 aix[4-9]*)
22486 # If we're using GNU nm, then we don't want the "-C" option.
22487 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22488 # Also, AIX nm treats weak defined symbols like other global defined
22489 # symbols, whereas GNU nm marks them as "W".
22490 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22491 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'
22492 else
22493 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'
22496 pw32*)
22497 export_symbols_cmds_CXX="$ltdll_cmds"
22499 cygwin* | mingw* | cegcc*)
22500 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'
22503 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22505 esac
22506 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22509 $as_echo "$ld_shlibs_CXX" >&6; }
22510 test "$ld_shlibs_CXX" = no && can_build_shared=no
22512 with_gnu_ld_CXX=$with_gnu_ld
22520 # Do we need to explicitly link libc?
22522 case "x$archive_cmds_need_lc_CXX" in
22523 x|xyes)
22524 # Assume -lc should be added
22525 archive_cmds_need_lc_CXX=yes
22527 if test "$enable_shared" = yes && test "$GCC" = yes; then
22528 case $archive_cmds_CXX in
22529 *'~'*)
22530 # FIXME: we may have to deal with multi-command sequences.
22532 '$CC '*)
22533 # Test whether the compiler implicitly links with -lc since on some
22534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22535 # to ld, don't add -lc before -lgcc.
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22537 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22538 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22539 $as_echo_n "(cached) " >&6
22540 else
22541 $RM conftest*
22542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22545 (eval $ac_compile) 2>&5
22546 ac_status=$?
22547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22548 test $ac_status = 0; } 2>conftest.err; then
22549 soname=conftest
22550 lib=conftest
22551 libobjs=conftest.$ac_objext
22552 deplibs=
22553 wl=$lt_prog_compiler_wl_CXX
22554 pic_flag=$lt_prog_compiler_pic_CXX
22555 compiler_flags=-v
22556 linker_flags=-v
22557 verstring=
22558 output_objdir=.
22559 libname=conftest
22560 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22561 allow_undefined_flag_CXX=
22562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22563 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22564 ac_status=$?
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }
22567 then
22568 lt_cv_archive_cmds_need_lc_CXX=no
22569 else
22570 lt_cv_archive_cmds_need_lc_CXX=yes
22572 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22573 else
22574 cat conftest.err 1>&5
22576 $RM conftest*
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22580 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22581 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22583 esac
22586 esac
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22652 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22654 library_names_spec=
22655 libname_spec='lib$name'
22656 soname_spec=
22657 shrext_cmds=".so"
22658 postinstall_cmds=
22659 postuninstall_cmds=
22660 finish_cmds=
22661 finish_eval=
22662 shlibpath_var=
22663 shlibpath_overrides_runpath=unknown
22664 version_type=none
22665 dynamic_linker="$host_os ld.so"
22666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22667 need_lib_prefix=unknown
22668 hardcode_into_libs=no
22670 # when you set need_version to no, make sure it does not cause -set_version
22671 # flags to be left without arguments
22672 need_version=unknown
22674 case $host_os in
22675 aix3*)
22676 version_type=linux
22677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22678 shlibpath_var=LIBPATH
22680 # AIX 3 has no versioning support, so we append a major version to the name.
22681 soname_spec='${libname}${release}${shared_ext}$major'
22684 aix[4-9]*)
22685 version_type=linux
22686 need_lib_prefix=no
22687 need_version=no
22688 hardcode_into_libs=yes
22689 if test "$host_cpu" = ia64; then
22690 # AIX 5 supports IA64
22691 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22692 shlibpath_var=LD_LIBRARY_PATH
22693 else
22694 # With GCC up to 2.95.x, collect2 would create an import file
22695 # for dependence libraries. The import file would start with
22696 # the line `#! .'. This would cause the generated library to
22697 # depend on `.', always an invalid library. This was fixed in
22698 # development snapshots of GCC prior to 3.0.
22699 case $host_os in
22700 aix4 | aix4.[01] | aix4.[01].*)
22701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22702 echo ' yes '
22703 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22705 else
22706 can_build_shared=no
22709 esac
22710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22711 # soname into executable. Probably we can add versioning support to
22712 # collect2, so additional links can be useful in future.
22713 if test "$aix_use_runtimelinking" = yes; then
22714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22715 # instead of lib<name>.a to let people know that these are not
22716 # typical AIX shared libraries.
22717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22718 else
22719 # We preserve .a as extension for shared libraries through AIX4.2
22720 # and later when we are not doing run time linking.
22721 library_names_spec='${libname}${release}.a $libname.a'
22722 soname_spec='${libname}${release}${shared_ext}$major'
22724 shlibpath_var=LIBPATH
22728 amigaos*)
22729 case $host_cpu in
22730 powerpc)
22731 # Since July 2007 AmigaOS4 officially supports .so libraries.
22732 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22735 m68k)
22736 library_names_spec='$libname.ixlibrary $libname.a'
22737 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22738 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'
22740 esac
22743 beos*)
22744 library_names_spec='${libname}${shared_ext}'
22745 dynamic_linker="$host_os ld.so"
22746 shlibpath_var=LIBRARY_PATH
22749 bsdi[45]*)
22750 version_type=linux
22751 need_version=no
22752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22753 soname_spec='${libname}${release}${shared_ext}$major'
22754 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22755 shlibpath_var=LD_LIBRARY_PATH
22756 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22757 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22758 # the default ld.so.conf also contains /usr/contrib/lib and
22759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22760 # libtool to hard-code these into programs
22763 cygwin* | mingw* | pw32* | cegcc*)
22764 version_type=windows
22765 shrext_cmds=".dll"
22766 need_version=no
22767 need_lib_prefix=no
22769 case $GCC,$host_os in
22770 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22771 library_names_spec='$libname.dll.a'
22772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22773 postinstall_cmds='base_file=`basename \${file}`~
22774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22775 dldir=$destdir/`dirname \$dlpath`~
22776 test -d \$dldir || mkdir -p \$dldir~
22777 $install_prog $dir/$dlname \$dldir/$dlname~
22778 chmod a+x \$dldir/$dlname~
22779 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22780 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22783 dlpath=$dir/\$dldll~
22784 $RM \$dlpath'
22785 shlibpath_overrides_runpath=yes
22787 case $host_os in
22788 cygwin*)
22789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22790 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22793 mingw* | cegcc*)
22794 # MinGW DLLs use traditional 'lib' prefix
22795 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22797 pw32*)
22798 # pw32 DLLs use 'pw' prefix rather than 'lib'
22799 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22801 esac
22805 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22807 esac
22808 dynamic_linker='Win32 ld.exe'
22809 # FIXME: first we should search . and the directory the executable is in
22810 shlibpath_var=PATH
22813 darwin* | rhapsody*)
22814 dynamic_linker="$host_os dyld"
22815 version_type=darwin
22816 need_lib_prefix=no
22817 need_version=no
22818 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22819 soname_spec='${libname}${release}${major}$shared_ext'
22820 shlibpath_overrides_runpath=yes
22821 shlibpath_var=DYLD_LIBRARY_PATH
22822 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22824 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22827 dgux*)
22828 version_type=linux
22829 need_lib_prefix=no
22830 need_version=no
22831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22832 soname_spec='${libname}${release}${shared_ext}$major'
22833 shlibpath_var=LD_LIBRARY_PATH
22836 freebsd* | dragonfly*)
22837 # DragonFly does not have aout. When/if they implement a new
22838 # versioning mechanism, adjust this.
22839 if test -x /usr/bin/objformat; then
22840 objformat=`/usr/bin/objformat`
22841 else
22842 case $host_os in
22843 freebsd[23].*) objformat=aout ;;
22844 *) objformat=elf ;;
22845 esac
22847 version_type=freebsd-$objformat
22848 case $version_type in
22849 freebsd-elf*)
22850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22851 need_version=no
22852 need_lib_prefix=no
22854 freebsd-*)
22855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22856 need_version=yes
22858 esac
22859 shlibpath_var=LD_LIBRARY_PATH
22860 case $host_os in
22861 freebsd2.*)
22862 shlibpath_overrides_runpath=yes
22864 freebsd3.[01]* | freebsdelf3.[01]*)
22865 shlibpath_overrides_runpath=yes
22866 hardcode_into_libs=yes
22868 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22869 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22870 shlibpath_overrides_runpath=no
22871 hardcode_into_libs=yes
22873 *) # from 4.6 on, and DragonFly
22874 shlibpath_overrides_runpath=yes
22875 hardcode_into_libs=yes
22877 esac
22880 haiku*)
22881 version_type=linux
22882 need_lib_prefix=no
22883 need_version=no
22884 dynamic_linker="$host_os runtime_loader"
22885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22886 soname_spec='${libname}${release}${shared_ext}$major'
22887 shlibpath_var=LIBRARY_PATH
22888 shlibpath_overrides_runpath=yes
22889 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22890 hardcode_into_libs=yes
22893 hpux9* | hpux10* | hpux11*)
22894 # Give a soname corresponding to the major version so that dld.sl refuses to
22895 # link against other versions.
22896 version_type=sunos
22897 need_lib_prefix=no
22898 need_version=no
22899 case $host_cpu in
22900 ia64*)
22901 shrext_cmds='.so'
22902 hardcode_into_libs=yes
22903 dynamic_linker="$host_os dld.so"
22904 shlibpath_var=LD_LIBRARY_PATH
22905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22907 soname_spec='${libname}${release}${shared_ext}$major'
22908 if test "X$HPUX_IA64_MODE" = X32; then
22909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22910 else
22911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22915 hppa*64*)
22916 shrext_cmds='.sl'
22917 hardcode_into_libs=yes
22918 dynamic_linker="$host_os dld.sl"
22919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22922 soname_spec='${libname}${release}${shared_ext}$major'
22923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22927 shrext_cmds='.sl'
22928 dynamic_linker="$host_os dld.sl"
22929 shlibpath_var=SHLIB_PATH
22930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22932 soname_spec='${libname}${release}${shared_ext}$major'
22934 esac
22935 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22936 postinstall_cmds='chmod 555 $lib'
22937 # or fails outright, so override atomically:
22938 install_override_mode=555
22941 interix[3-9]*)
22942 version_type=linux
22943 need_lib_prefix=no
22944 need_version=no
22945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22946 soname_spec='${libname}${release}${shared_ext}$major'
22947 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22948 shlibpath_var=LD_LIBRARY_PATH
22949 shlibpath_overrides_runpath=no
22950 hardcode_into_libs=yes
22953 irix5* | irix6* | nonstopux*)
22954 case $host_os in
22955 nonstopux*) version_type=nonstopux ;;
22957 if test "$lt_cv_prog_gnu_ld" = yes; then
22958 version_type=linux
22959 else
22960 version_type=irix
22961 fi ;;
22962 esac
22963 need_lib_prefix=no
22964 need_version=no
22965 soname_spec='${libname}${release}${shared_ext}$major'
22966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22967 case $host_os in
22968 irix5* | nonstopux*)
22969 libsuff= shlibsuff=
22972 case $LD in # libtool.m4 will add one of these switches to LD
22973 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22974 libsuff= shlibsuff= libmagic=32-bit;;
22975 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22976 libsuff=32 shlibsuff=N32 libmagic=N32;;
22977 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22978 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22979 *) libsuff= shlibsuff= libmagic=never-match;;
22980 esac
22982 esac
22983 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22984 shlibpath_overrides_runpath=no
22985 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22986 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22987 hardcode_into_libs=yes
22990 # No shared lib support for Linux oldld, aout, or coff.
22991 linux*oldld* | linux*aout* | linux*coff*)
22992 dynamic_linker=no
22995 # This must be Linux ELF.
22997 # uclinux* changes (here and below) have been submitted to the libtool
22998 # project, but have not yet been accepted: they are GCC-local changes
22999 # for the time being. (See
23000 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
23001 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
23002 version_type=linux
23003 need_lib_prefix=no
23004 need_version=no
23005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23006 soname_spec='${libname}${release}${shared_ext}$major'
23007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23008 shlibpath_var=LD_LIBRARY_PATH
23009 shlibpath_overrides_runpath=no
23011 # Some binutils ld are patched to set DT_RUNPATH
23012 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
23013 $as_echo_n "(cached) " >&6
23014 else
23015 lt_cv_shlibpath_overrides_runpath=no
23016 save_LDFLAGS=$LDFLAGS
23017 save_libdir=$libdir
23018 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
23019 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
23020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23021 /* end confdefs.h. */
23024 main ()
23028 return 0;
23030 _ACEOF
23031 if ac_fn_cxx_try_link "$LINENO"; then :
23032 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
23033 lt_cv_shlibpath_overrides_runpath=yes
23036 rm -f core conftest.err conftest.$ac_objext \
23037 conftest$ac_exeext conftest.$ac_ext
23038 LDFLAGS=$save_LDFLAGS
23039 libdir=$save_libdir
23043 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
23045 # This implies no fast_install, which is unacceptable.
23046 # Some rework will be needed to allow for fast_install
23047 # before this can be enabled.
23048 hardcode_into_libs=yes
23050 # Append ld.so.conf contents to the search path
23051 if test -f /etc/ld.so.conf; then
23052 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' ' '`
23053 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23056 # We used to test for /lib/ld.so.1 and disable shared libraries on
23057 # powerpc, because MkLinux only supported shared libraries with the
23058 # GNU dynamic linker. Since this was broken with cross compilers,
23059 # most powerpc-linux boxes support dynamic linking these days and
23060 # people can always --disable-shared, the test was removed, and we
23061 # assume the GNU/Linux dynamic linker is in use.
23062 dynamic_linker='GNU/Linux ld.so'
23065 netbsd*)
23066 version_type=sunos
23067 need_lib_prefix=no
23068 need_version=no
23069 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23072 dynamic_linker='NetBSD (a.out) ld.so'
23073 else
23074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23075 soname_spec='${libname}${release}${shared_ext}$major'
23076 dynamic_linker='NetBSD ld.elf_so'
23078 shlibpath_var=LD_LIBRARY_PATH
23079 shlibpath_overrides_runpath=yes
23080 hardcode_into_libs=yes
23083 newsos6)
23084 version_type=linux
23085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23086 shlibpath_var=LD_LIBRARY_PATH
23087 shlibpath_overrides_runpath=yes
23090 *nto* | *qnx*)
23091 version_type=qnx
23092 need_lib_prefix=no
23093 need_version=no
23094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095 soname_spec='${libname}${release}${shared_ext}$major'
23096 shlibpath_var=LD_LIBRARY_PATH
23097 shlibpath_overrides_runpath=no
23098 hardcode_into_libs=yes
23099 dynamic_linker='ldqnx.so'
23102 openbsd*)
23103 version_type=sunos
23104 sys_lib_dlsearch_path_spec="/usr/lib"
23105 need_lib_prefix=no
23106 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23107 case $host_os in
23108 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23109 *) need_version=no ;;
23110 esac
23111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23113 shlibpath_var=LD_LIBRARY_PATH
23114 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23115 case $host_os in
23116 openbsd2.[89] | openbsd2.[89].*)
23117 shlibpath_overrides_runpath=no
23120 shlibpath_overrides_runpath=yes
23122 esac
23123 else
23124 shlibpath_overrides_runpath=yes
23128 os2*)
23129 libname_spec='$name'
23130 shrext_cmds=".dll"
23131 need_lib_prefix=no
23132 library_names_spec='$libname${shared_ext} $libname.a'
23133 dynamic_linker='OS/2 ld.exe'
23134 shlibpath_var=LIBPATH
23137 osf3* | osf4* | osf5*)
23138 version_type=osf
23139 need_lib_prefix=no
23140 need_version=no
23141 soname_spec='${libname}${release}${shared_ext}$major'
23142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23143 shlibpath_var=LD_LIBRARY_PATH
23144 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23145 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23148 rdos*)
23149 dynamic_linker=no
23152 solaris*)
23153 version_type=linux
23154 need_lib_prefix=no
23155 need_version=no
23156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23157 soname_spec='${libname}${release}${shared_ext}$major'
23158 shlibpath_var=LD_LIBRARY_PATH
23159 shlibpath_overrides_runpath=yes
23160 hardcode_into_libs=yes
23161 # ldd complains unless libraries are executable
23162 postinstall_cmds='chmod +x $lib'
23165 sunos4*)
23166 version_type=sunos
23167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23169 shlibpath_var=LD_LIBRARY_PATH
23170 shlibpath_overrides_runpath=yes
23171 if test "$with_gnu_ld" = yes; then
23172 need_lib_prefix=no
23174 need_version=yes
23177 sysv4 | sysv4.3*)
23178 version_type=linux
23179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23180 soname_spec='${libname}${release}${shared_ext}$major'
23181 shlibpath_var=LD_LIBRARY_PATH
23182 case $host_vendor in
23183 sni)
23184 shlibpath_overrides_runpath=no
23185 need_lib_prefix=no
23186 runpath_var=LD_RUN_PATH
23188 siemens)
23189 need_lib_prefix=no
23191 motorola)
23192 need_lib_prefix=no
23193 need_version=no
23194 shlibpath_overrides_runpath=no
23195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23197 esac
23200 sysv4*MP*)
23201 if test -d /usr/nec ;then
23202 version_type=linux
23203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23204 soname_spec='$libname${shared_ext}.$major'
23205 shlibpath_var=LD_LIBRARY_PATH
23209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23210 version_type=freebsd-elf
23211 need_lib_prefix=no
23212 need_version=no
23213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23214 soname_spec='${libname}${release}${shared_ext}$major'
23215 shlibpath_var=LD_LIBRARY_PATH
23216 shlibpath_overrides_runpath=yes
23217 hardcode_into_libs=yes
23218 if test "$with_gnu_ld" = yes; then
23219 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23220 else
23221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23222 case $host_os in
23223 sco3.2v5*)
23224 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23226 esac
23228 sys_lib_dlsearch_path_spec='/usr/lib'
23231 tpf*)
23232 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23233 version_type=linux
23234 need_lib_prefix=no
23235 need_version=no
23236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23237 shlibpath_var=LD_LIBRARY_PATH
23238 shlibpath_overrides_runpath=no
23239 hardcode_into_libs=yes
23242 uts4*)
23243 version_type=linux
23244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23245 soname_spec='${libname}${release}${shared_ext}$major'
23246 shlibpath_var=LD_LIBRARY_PATH
23249 # Shared libraries for VwWorks, >= 7 only at this stage
23250 # and (fpic) still incompatible with "large" code models
23251 # in a few configurations. Only for RTP mode in any case,
23252 # and upon explicit request at configure time.
23253 vxworks7*)
23254 dynamic_linker=no
23255 case ${with_multisubdir}-${enable_shared} in
23256 *large*)
23258 *mrtp*-yes)
23259 version_type=linux
23260 need_lib_prefix=no
23261 need_version=no
23262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23263 soname_spec='${libname}${release}${shared_ext}$major'
23264 dynamic_linker="$host_os module_loader"
23266 esac
23269 dynamic_linker=no
23271 esac
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23273 $as_echo "$dynamic_linker" >&6; }
23274 test "$dynamic_linker" = no && can_build_shared=no
23276 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23277 if test "$GCC" = yes; then
23278 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23281 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23282 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23284 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23285 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23326 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23327 hardcode_action_CXX=
23328 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23329 test -n "$runpath_var_CXX" ||
23330 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23332 # We can hardcode non-existent directories.
23333 if test "$hardcode_direct_CXX" != no &&
23334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23335 # have to relink, otherwise we might link with an installed library
23336 # when we should be linking with a yet-to-be-installed one
23337 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23338 test "$hardcode_minus_L_CXX" != no; then
23339 # Linking always hardcodes the temporary library directory.
23340 hardcode_action_CXX=relink
23341 else
23342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23343 hardcode_action_CXX=immediate
23345 else
23346 # We cannot hardcode anything, or else we can only hardcode existing
23347 # directories.
23348 hardcode_action_CXX=unsupported
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23351 $as_echo "$hardcode_action_CXX" >&6; }
23353 if test "$hardcode_action_CXX" = relink ||
23354 test "$inherit_rpath_CXX" = yes; then
23355 # Fast installation is not supported
23356 enable_fast_install=no
23357 elif test "$shlibpath_overrides_runpath" = yes ||
23358 test "$enable_shared" = no; then
23359 # Fast installation is not necessary
23360 enable_fast_install=needless
23369 fi # test -n "$compiler"
23371 CC=$lt_save_CC
23372 LDCXX=$LD
23373 LD=$lt_save_LD
23374 GCC=$lt_save_GCC
23375 with_gnu_ld=$lt_save_with_gnu_ld
23376 lt_cv_path_LDCXX=$lt_cv_path_LD
23377 lt_cv_path_LD=$lt_save_path_LD
23378 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23379 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23380 fi # test "$_lt_caught_CXX_error" != yes
23382 ac_ext=cpp
23383 ac_cpp='$CXXCPP $CPPFLAGS'
23384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23403 # Only expand once:
23409 if test x$enable_darwin_at_rpath = xyes; then
23410 ENABLE_DARWIN_AT_RPATH_TRUE=
23411 ENABLE_DARWIN_AT_RPATH_FALSE='#'
23412 else
23413 ENABLE_DARWIN_AT_RPATH_TRUE='#'
23414 ENABLE_DARWIN_AT_RPATH_FALSE=
23417 DARWIN_DO_EXTRA_RPATH=0
23419 # Check whether --with-darwin-extra-rpath was given.
23420 if test "${with_darwin_extra_rpath+set}" = set; then :
23421 withval=$with_darwin_extra_rpath; if test x"$withval" != x; then
23422 DARWIN_ADD_RPATH="$withval"
23423 DARWIN_DO_EXTRA_RPATH=1
23428 cat >>confdefs.h <<_ACEOF
23429 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
23430 _ACEOF
23433 cat >>confdefs.h <<_ACEOF
23434 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
23435 _ACEOF
23438 # Identify the assembler which will work hand-in-glove with the newly
23439 # built GCC, so that we can examine its features. This is the assembler
23440 # which will be driven by the driver program.
23442 # If build != host, and we aren't building gas in-tree, we identify a
23443 # build->target assembler and hope that it will have the same features
23444 # as the host->target assembler we'll be using.
23445 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23447 if ${gcc_cv_as+:} false; then :
23449 else
23451 if test -x "$DEFAULT_ASSEMBLER"; then
23452 gcc_cv_as="$DEFAULT_ASSEMBLER"
23453 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23454 && test -f ../gas/Makefile \
23455 && test x$build = x$host; then
23456 gcc_cv_as=../gas/as-new$build_exeext
23457 elif test -x as$build_exeext; then
23458 # Build using assembler in the current directory.
23459 gcc_cv_as=./as$build_exeext
23460 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23461 gcc_cv_as="$AS_FOR_TARGET"
23462 else
23463 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23464 set dummy $AS_FOR_TARGET; ac_word=$2
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23466 $as_echo_n "checking for $ac_word... " >&6; }
23467 if ${ac_cv_path_gcc_cv_as+:} false; then :
23468 $as_echo_n "(cached) " >&6
23469 else
23470 case $gcc_cv_as in
23471 [\\/]* | ?:[\\/]*)
23472 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23476 for as_dir in $PATH
23478 IFS=$as_save_IFS
23479 test -z "$as_dir" && as_dir=.
23480 for ac_exec_ext in '' $ac_executable_extensions; do
23481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23482 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23484 break 2
23486 done
23487 done
23488 IFS=$as_save_IFS
23491 esac
23493 gcc_cv_as=$ac_cv_path_gcc_cv_as
23494 if test -n "$gcc_cv_as"; then
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23496 $as_echo "$gcc_cv_as" >&6; }
23497 else
23498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23499 $as_echo "no" >&6; }
23506 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23508 case "$ORIGINAL_AS_FOR_TARGET" in
23509 ./as | ./as$build_exeext) ;;
23510 *) ac_config_files="$ac_config_files as:exec-tool.in"
23512 esac
23514 default_ld=
23515 # Check whether --enable-ld was given.
23516 if test "${enable_ld+set}" = set; then :
23517 enableval=$enable_ld; case "${enableval}" in
23519 default_ld=ld.gold
23521 esac
23525 install_gold_as_default=no
23526 # Check whether --enable-gold was given.
23527 if test "${enable_gold+set}" = set; then :
23528 enableval=$enable_gold; case "${enableval}" in
23529 default)
23530 install_gold_as_default=yes
23532 yes)
23533 if test x${default_ld} != x; then
23534 install_gold_as_default=yes
23540 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23542 esac
23546 # Identify the linker which will work hand-in-glove with the newly
23547 # built GCC, so that we can examine its features. This is the linker
23548 # which will be driven by the driver program.
23550 # If build != host, and we aren't building gas in-tree, we identify a
23551 # build->target linker and hope that it will have the same features
23552 # as the host->target linker we'll be using.
23553 gcc_cv_gld_major_version=
23554 gcc_cv_gld_minor_version=
23555 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23556 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23557 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23559 if ${gcc_cv_ld+:} false; then :
23561 else
23563 if test -x "$DEFAULT_LINKER"; then
23564 gcc_cv_ld="$DEFAULT_LINKER"
23565 elif test $install_gold_as_default = yes \
23566 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23567 && test -f ../gold/Makefile \
23568 && test x$build = x$host; then
23569 gcc_cv_ld=../gold/ld-new$build_exeext
23570 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23571 && test -f ../ld/Makefile \
23572 && test x$build = x$host; then
23573 gcc_cv_ld=../ld/ld-new$build_exeext
23574 elif test -x collect-ld$build_exeext; then
23575 # Build using linker in the current directory.
23576 gcc_cv_ld=./collect-ld$build_exeext
23577 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23578 gcc_cv_ld="$LD_FOR_TARGET"
23579 else
23580 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23581 set dummy $LD_FOR_TARGET; ac_word=$2
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23583 $as_echo_n "checking for $ac_word... " >&6; }
23584 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23585 $as_echo_n "(cached) " >&6
23586 else
23587 case $gcc_cv_ld in
23588 [\\/]* | ?:[\\/]*)
23589 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23593 for as_dir in $PATH
23595 IFS=$as_save_IFS
23596 test -z "$as_dir" && as_dir=.
23597 for ac_exec_ext in '' $ac_executable_extensions; do
23598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23599 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23601 break 2
23603 done
23604 done
23605 IFS=$as_save_IFS
23608 esac
23610 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23611 if test -n "$gcc_cv_ld"; then
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23613 $as_echo "$gcc_cv_ld" >&6; }
23614 else
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23616 $as_echo "no" >&6; }
23623 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23624 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23625 # if the PLUGIN_LD is set ld-new, just have it as ld
23626 # as that is the installed named.
23627 if test x$PLUGIN_LD_SUFFIX = xld-new \
23628 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23629 PLUGIN_LD_SUFFIX=ld
23632 # Check whether --with-plugin-ld was given.
23633 if test "${with_plugin_ld+set}" = set; then :
23634 withval=$with_plugin_ld; if test x"$withval" != x; then
23635 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23636 PLUGIN_LD_SUFFIX="$withval"
23642 cat >>confdefs.h <<_ACEOF
23643 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23644 _ACEOF
23647 # Check to see if we are using gold instead of ld
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23649 $as_echo_n "checking whether we are using gold... " >&6; }
23650 ld_is_gold=no
23651 if test x$gcc_cv_ld != x; then
23652 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23653 | grep "GNU gold" > /dev/null; then
23654 ld_is_gold=yes
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23658 $as_echo "$ld_is_gold" >&6; }
23660 # Check to see if we are using mold instead of ld
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23662 $as_echo_n "checking whether we are using mold... " >&6; }
23663 ld_is_mold=no
23664 if test x$gcc_cv_ld != x; then
23665 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23666 | grep "mold" > /dev/null; then
23667 ld_is_mold=yes
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23671 $as_echo "$ld_is_mold" >&6; }
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23675 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23676 # Check to see if default ld is not gold, but gold is
23677 # available and has support for split stack. If gcc was configured
23678 # with gold then no checking is done.
23680 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23682 # For platforms other than powerpc64*, enable as appropriate.
23684 gold_non_default=no
23685 ld_gold=`which ${gcc_cv_ld}.gold`
23686 # Make sure this gold has minimal split stack support
23687 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23688 ld_vers=`$ld_gold --version | sed 1q`
23689 gold_vers=`echo $ld_vers | sed -n \
23690 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23691 case $target in
23692 # check that the gold version contains the complete split stack support
23693 # on powerpc64 big and little endian
23694 powerpc64*-*-*)
23695 case "$gold_vers" in
23696 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23698 *) gold_non_default=no
23700 esac
23702 esac
23704 if test $gold_non_default = yes; then
23706 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23711 $as_echo "$gold_non_default" >&6; }
23713 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23715 case "$ORIGINAL_LD_FOR_TARGET" in
23716 ./collect-ld | ./collect-ld$build_exeext) ;;
23717 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23719 esac
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23722 $as_echo_n "checking what linker to use... " >&6; }
23723 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23724 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23725 # Single tree build which includes ld. We want to prefer it
23726 # over whatever linker top-level may have detected, since
23727 # we'll use what we're building after installation anyway.
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23729 $as_echo "newly built ld" >&6; }
23730 in_tree_ld=yes
23731 in_tree_ld_is_elf=no
23732 if (grep 'EMUL = .*elf' ../ld/Makefile \
23733 || grep 'EMUL = .*linux' ../ld/Makefile \
23734 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23735 in_tree_ld_is_elf=yes
23736 elif test "$ld_is_gold" = yes; then
23737 in_tree_ld_is_elf=yes
23739 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
23741 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23742 if test x$gcc_cv_gld_version != x; then
23743 break
23745 done
23746 case $gcc_cv_gld_version in
23747 VERSION=[0-9]*) ;;
23748 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23749 esac
23750 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23751 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23752 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23753 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23754 else
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23756 $as_echo "$gcc_cv_ld" >&6; }
23757 in_tree_ld=no
23758 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23759 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23760 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23766 # Figure out what nm we will be using.
23767 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23768 if ${gcc_cv_nm+:} false; then :
23770 else
23772 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23773 && test -f ../binutils/Makefile \
23774 && test x$build = x$host; then
23775 gcc_cv_nm=../binutils/nm-new$build_exeext
23776 elif test -x nm$build_exeext; then
23777 gcc_cv_nm=./nm$build_exeext
23778 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23779 gcc_cv_nm="$NM_FOR_TARGET"
23780 else
23781 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23782 set dummy $NM_FOR_TARGET; ac_word=$2
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23784 $as_echo_n "checking for $ac_word... " >&6; }
23785 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23786 $as_echo_n "(cached) " >&6
23787 else
23788 case $gcc_cv_nm in
23789 [\\/]* | ?:[\\/]*)
23790 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23794 for as_dir in $PATH
23796 IFS=$as_save_IFS
23797 test -z "$as_dir" && as_dir=.
23798 for ac_exec_ext in '' $ac_executable_extensions; do
23799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23800 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23802 break 2
23804 done
23805 done
23806 IFS=$as_save_IFS
23809 esac
23811 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23812 if test -n "$gcc_cv_nm"; then
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23814 $as_echo "$gcc_cv_nm" >&6; }
23815 else
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23817 $as_echo "no" >&6; }
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23825 $as_echo_n "checking what nm to use... " >&6; }
23826 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23827 # Single tree build which includes binutils.
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23829 $as_echo "newly built nm" >&6; }
23830 in_tree_nm=yes
23831 else
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23833 $as_echo "$gcc_cv_nm" >&6; }
23834 in_tree_nm=no
23837 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23839 case "$ORIGINAL_NM_FOR_TARGET" in
23840 ./nm | ./nm$build_exeext) ;;
23841 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23843 esac
23846 # Figure out what objdump we will be using.
23847 if ${gcc_cv_objdump+:} false; then :
23849 else
23851 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23852 && test -f ../binutils/Makefile \
23853 && test x$build = x$host; then
23854 # Single tree build which includes binutils.
23855 gcc_cv_objdump=../binutils/objdump$build_exeext
23856 elif test -x objdump$build_exeext; then
23857 gcc_cv_objdump=./objdump$build_exeext
23858 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23859 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23860 else
23861 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23862 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23864 $as_echo_n "checking for $ac_word... " >&6; }
23865 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23866 $as_echo_n "(cached) " >&6
23867 else
23868 case $gcc_cv_objdump in
23869 [\\/]* | ?:[\\/]*)
23870 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23874 for as_dir in $PATH
23876 IFS=$as_save_IFS
23877 test -z "$as_dir" && as_dir=.
23878 for ac_exec_ext in '' $ac_executable_extensions; do
23879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23880 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23882 break 2
23884 done
23885 done
23886 IFS=$as_save_IFS
23889 esac
23891 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23892 if test -n "$gcc_cv_objdump"; then
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23894 $as_echo "$gcc_cv_objdump" >&6; }
23895 else
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23897 $as_echo "no" >&6; }
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23905 $as_echo_n "checking what objdump to use... " >&6; }
23906 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23907 # Single tree build which includes binutils.
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23909 $as_echo "newly built objdump" >&6; }
23910 elif test x$gcc_cv_objdump = x; then
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23912 $as_echo "not found" >&6; }
23913 else
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23915 $as_echo "$gcc_cv_objdump" >&6; }
23918 # Figure out what readelf we will be using.
23919 if ${gcc_cv_readelf+:} false; then :
23921 else
23923 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23924 && test -f ../binutils/Makefile \
23925 && test x$build = x$host; then
23926 # Single tree build which includes binutils.
23927 gcc_cv_readelf=../binutils/readelf$build_exeext
23928 elif test -x readelf$build_exeext; then
23929 gcc_cv_readelf=./readelf$build_exeext
23930 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23931 gcc_cv_readelf="$READELF_FOR_TARGET"
23932 else
23933 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23934 set dummy $READELF_FOR_TARGET; ac_word=$2
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23936 $as_echo_n "checking for $ac_word... " >&6; }
23937 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23938 $as_echo_n "(cached) " >&6
23939 else
23940 case $gcc_cv_readelf in
23941 [\\/]* | ?:[\\/]*)
23942 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23946 for as_dir in $PATH
23948 IFS=$as_save_IFS
23949 test -z "$as_dir" && as_dir=.
23950 for ac_exec_ext in '' $ac_executable_extensions; do
23951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23952 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23954 break 2
23956 done
23957 done
23958 IFS=$as_save_IFS
23961 esac
23963 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23964 if test -n "$gcc_cv_readelf"; then
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23966 $as_echo "$gcc_cv_readelf" >&6; }
23967 else
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23969 $as_echo "no" >&6; }
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23977 $as_echo_n "checking what readelf to use... " >&6; }
23978 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23979 # Single tree build which includes binutils.
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23981 $as_echo "newly built readelf" >&6; }
23982 elif test x$gcc_cv_readelf = x; then
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23984 $as_echo "not found" >&6; }
23985 else
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23987 $as_echo "$gcc_cv_readelf" >&6; }
23990 # Figure out what otool we will be using.
23991 if ${gcc_cv_otool+:} false; then :
23993 else
23995 if test -x otool$build_exeext; then
23996 gcc_cv_otool=./otool$build_exeext
23997 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23998 gcc_cv_otool="$OTOOL_FOR_TARGET"
23999 else
24000 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
24001 set dummy $OTOOL_FOR_TARGET; ac_word=$2
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24003 $as_echo_n "checking for $ac_word... " >&6; }
24004 if ${ac_cv_path_gcc_cv_otool+:} false; then :
24005 $as_echo_n "(cached) " >&6
24006 else
24007 case $gcc_cv_otool in
24008 [\\/]* | ?:[\\/]*)
24009 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
24012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24013 for as_dir in $PATH
24015 IFS=$as_save_IFS
24016 test -z "$as_dir" && as_dir=.
24017 for ac_exec_ext in '' $ac_executable_extensions; do
24018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24019 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
24020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24021 break 2
24023 done
24024 done
24025 IFS=$as_save_IFS
24028 esac
24030 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
24031 if test -n "$gcc_cv_otool"; then
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
24033 $as_echo "$gcc_cv_otool" >&6; }
24034 else
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24036 $as_echo "no" >&6; }
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
24044 $as_echo_n "checking what otool to use... " >&6; }
24045 if test x$gcc_cv_otool = x; then
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24047 $as_echo "not found" >&6; }
24048 else
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
24050 $as_echo "$gcc_cv_otool" >&6; }
24053 # Figure out the dsymutil we will use.
24054 if ${gcc_cv_dsymutil+:} false; then :
24056 else
24058 if test -x "$DEFAULT_DSYMUTIL"; then
24059 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
24060 elif test -x dsymutil$build_exeext; then
24061 gcc_cv_dsymutil=./dsymutil$build_exeext
24062 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
24063 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
24064 elif ( set dummy $DSYMUTIL; test -x $2 ); then
24065 gcc_cv_dsymutil=$DSYMUTIL
24066 else
24067 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
24068 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24070 $as_echo_n "checking for $ac_word... " >&6; }
24071 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
24072 $as_echo_n "(cached) " >&6
24073 else
24074 case $gcc_cv_dsymutil in
24075 [\\/]* | ?:[\\/]*)
24076 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
24079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24080 for as_dir in $PATH
24082 IFS=$as_save_IFS
24083 test -z "$as_dir" && as_dir=.
24084 for ac_exec_ext in '' $ac_executable_extensions; do
24085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24086 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
24087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24088 break 2
24090 done
24091 done
24092 IFS=$as_save_IFS
24095 esac
24097 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
24098 if test -n "$gcc_cv_dsymutil"; then
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
24100 $as_echo "$gcc_cv_dsymutil" >&6; }
24101 else
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24103 $as_echo "no" >&6; }
24110 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
24112 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
24113 ./dsymutil | ./dsymutil$build_exeext) ;;
24114 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
24116 esac
24118 # Figure out what assembler alignment features are present.
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
24120 $as_echo_n "checking assembler flags... " >&6; }
24121 if ${gcc_cv_as_flags+:} false; then :
24122 $as_echo_n "(cached) " >&6
24123 else
24124 case "$target" in
24125 i[34567]86-*-linux*)
24126 gcc_cv_as_flags=--32
24128 x86_64-*-linux-gnux32)
24129 gcc_cv_as_flags=--x32
24131 x86_64-*-linux*)
24132 gcc_cv_as_flags=--64
24134 powerpc*-*-darwin*)
24135 gcc_cv_as_flags="-arch ppc"
24138 gcc_cv_as_flags=" "
24140 esac
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
24143 $as_echo "$gcc_cv_as_flags" >&6; }
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
24146 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
24147 if ${gcc_cv_as_balign_and_p2align+:} false; then :
24148 $as_echo_n "(cached) " >&6
24149 else
24150 gcc_cv_as_balign_and_p2align=no
24151 if test x$gcc_cv_as != x; then
24152 $as_echo '.balign 4
24153 .p2align 2' > conftest.s
24154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24156 (eval $ac_try) 2>&5
24157 ac_status=$?
24158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24159 test $ac_status = 0; }; }
24160 then
24161 gcc_cv_as_balign_and_p2align=yes
24162 else
24163 echo "configure: failed program was" >&5
24164 cat conftest.s >&5
24166 rm -f conftest.o conftest.s
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
24170 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
24171 if test $gcc_cv_as_balign_and_p2align = yes; then
24173 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
24179 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
24180 if ${gcc_cv_as_max_skip_p2align+:} false; then :
24181 $as_echo_n "(cached) " >&6
24182 else
24183 gcc_cv_as_max_skip_p2align=no
24184 if test x$gcc_cv_as != x; then
24185 $as_echo '.p2align 4,,7' > conftest.s
24186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24188 (eval $ac_try) 2>&5
24189 ac_status=$?
24190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24191 test $ac_status = 0; }; }
24192 then
24193 gcc_cv_as_max_skip_p2align=yes
24194 else
24195 echo "configure: failed program was" >&5
24196 cat conftest.s >&5
24198 rm -f conftest.o conftest.s
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
24202 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
24203 if test $gcc_cv_as_max_skip_p2align = yes; then
24205 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
24211 $as_echo_n "checking assembler for .literal16... " >&6; }
24212 if ${gcc_cv_as_literal16+:} false; then :
24213 $as_echo_n "(cached) " >&6
24214 else
24215 gcc_cv_as_literal16=no
24216 if test x$gcc_cv_as != x; then
24217 $as_echo '.literal16' > conftest.s
24218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24220 (eval $ac_try) 2>&5
24221 ac_status=$?
24222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24223 test $ac_status = 0; }; }
24224 then
24225 gcc_cv_as_literal16=yes
24226 else
24227 echo "configure: failed program was" >&5
24228 cat conftest.s >&5
24230 rm -f conftest.o conftest.s
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
24234 $as_echo "$gcc_cv_as_literal16" >&6; }
24235 if test $gcc_cv_as_literal16 = yes; then
24237 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24243 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24244 if ${gcc_cv_as_subsection_m1+:} false; then :
24245 $as_echo_n "(cached) " >&6
24246 else
24247 gcc_cv_as_subsection_m1=no
24248 if test x$gcc_cv_as != x; then
24249 $as_echo 'conftest_label1: .word 0
24250 .subsection -1
24251 conftest_label2: .word 0
24252 .previous' > conftest.s
24253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24255 (eval $ac_try) 2>&5
24256 ac_status=$?
24257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24258 test $ac_status = 0; }; }
24259 then
24260 if test x$gcc_cv_nm != x; then
24261 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
24262 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
24263 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
24264 then :
24265 else gcc_cv_as_subsection_m1=yes
24267 rm -f conftest.nm1 conftest.nm2
24269 else
24270 echo "configure: failed program was" >&5
24271 cat conftest.s >&5
24273 rm -f conftest.o conftest.s
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24277 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24278 if test $gcc_cv_as_subsection_m1 = yes; then
24280 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24286 $as_echo_n "checking assembler for .weak... " >&6; }
24287 if ${gcc_cv_as_weak+:} false; then :
24288 $as_echo_n "(cached) " >&6
24289 else
24290 gcc_cv_as_weak=no
24291 if test x$gcc_cv_as != x; then
24292 $as_echo ' .weak foobar' > conftest.s
24293 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24295 (eval $ac_try) 2>&5
24296 ac_status=$?
24297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24298 test $ac_status = 0; }; }
24299 then
24300 gcc_cv_as_weak=yes
24301 else
24302 echo "configure: failed program was" >&5
24303 cat conftest.s >&5
24305 rm -f conftest.o conftest.s
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24309 $as_echo "$gcc_cv_as_weak" >&6; }
24310 if test $gcc_cv_as_weak = yes; then
24312 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24318 $as_echo_n "checking assembler for .weakref... " >&6; }
24319 if ${gcc_cv_as_weakref+:} false; then :
24320 $as_echo_n "(cached) " >&6
24321 else
24322 gcc_cv_as_weakref=no
24323 if test x$gcc_cv_as != x; then
24324 $as_echo ' .weakref foobar, barfnot' > conftest.s
24325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24327 (eval $ac_try) 2>&5
24328 ac_status=$?
24329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24330 test $ac_status = 0; }; }
24331 then
24332 gcc_cv_as_weakref=yes
24333 else
24334 echo "configure: failed program was" >&5
24335 cat conftest.s >&5
24337 rm -f conftest.o conftest.s
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24341 $as_echo "$gcc_cv_as_weakref" >&6; }
24342 if test $gcc_cv_as_weakref = yes; then
24344 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24350 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24351 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24352 $as_echo_n "(cached) " >&6
24353 else
24354 gcc_cv_as_nsubspa_comdat=no
24355 if test x$gcc_cv_as != x; then
24356 $as_echo ' .SPACE $TEXT$
24357 .NSUBSPA $CODE$,COMDAT' > conftest.s
24358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24360 (eval $ac_try) 2>&5
24361 ac_status=$?
24362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363 test $ac_status = 0; }; }
24364 then
24365 gcc_cv_as_nsubspa_comdat=yes
24366 else
24367 echo "configure: failed program was" >&5
24368 cat conftest.s >&5
24370 rm -f conftest.o conftest.s
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24374 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24375 if test $gcc_cv_as_nsubspa_comdat = yes; then
24377 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24382 # .hidden needs to be supported in both the assembler and the linker,
24383 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24384 # This is irritatingly difficult to feature test for; we have to check the
24385 # date string after the version number. If we've got an in-tree
24386 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24387 # to be safe.
24388 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24389 case "${target}" in
24390 *-*-aix*)
24391 conftest_s=' .globl foobar,hidden'
24394 conftest_s=' .hidden foobar
24395 foobar:'
24397 esac
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24399 $as_echo_n "checking assembler for .hidden... " >&6; }
24400 if ${gcc_cv_as_hidden+:} false; then :
24401 $as_echo_n "(cached) " >&6
24402 else
24403 gcc_cv_as_hidden=no
24404 if test x$gcc_cv_as != x; then
24405 $as_echo "$conftest_s" > conftest.s
24406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24408 (eval $ac_try) 2>&5
24409 ac_status=$?
24410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24411 test $ac_status = 0; }; }
24412 then
24413 gcc_cv_as_hidden=yes
24414 else
24415 echo "configure: failed program was" >&5
24416 cat conftest.s >&5
24418 rm -f conftest.o conftest.s
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24422 $as_echo "$gcc_cv_as_hidden" >&6; }
24425 case "${target}" in
24426 *-*-darwin*)
24427 # Darwin as has some visibility support, though with a different syntax.
24428 gcc_cv_as_hidden=yes
24430 esac
24432 # gnu_indirect_function type is an extension proposed at
24433 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24434 # selection of function implementation
24435 # Check whether --enable-gnu-indirect-function was given.
24436 if test "${enable_gnu_indirect_function+set}" = set; then :
24437 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24438 yes | no) ;;
24439 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24440 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24441 esac
24442 else
24443 enable_gnu_indirect_function="$default_gnu_indirect_function"
24447 case "${target}" in
24448 riscv*-*-linux*)
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24450 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24451 cat > conftest.s <<EOF
24452 .text
24453 .type foo_resolver, @function
24454 foo_resolver:
24456 .size foo_resolver, .-foo_resolver
24458 .globl foo
24459 .type foo, %gnu_indirect_function
24460 .set foo, foo_resolver
24462 .globl bar
24463 .type bar, @function
24464 bar:
24465 call foo
24467 .size bar, .-bar
24469 if test x$gcc_cv_as != x \
24470 && test x$gcc_cv_ld != x \
24471 && test x$gcc_cv_readelf != x \
24472 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24473 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24474 && $gcc_cv_readelf --relocs --wide conftest \
24475 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24476 enable_gnu_indirect_function=yes
24478 rm -f conftest conftest.o conftest.s
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24480 $as_echo "$enable_gnu_indirect_function" >&6; }
24482 esac
24484 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24486 cat >>confdefs.h <<_ACEOF
24487 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24488 _ACEOF
24492 if test $in_tree_ld != yes ; then
24493 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24494 if echo "$ld_ver" | grep GNU > /dev/null; then
24495 if test x"$ld_is_gold" = xyes; then
24496 # GNU gold --version looks like this:
24498 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24500 # We extract the binutils version which is more familiar and specific
24501 # than the gold version.
24502 ld_vers=`echo $ld_ver | sed -n \
24503 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24504 else
24505 # GNU ld --version looks like this:
24507 # GNU ld (GNU Binutils) 2.21.51.20110225
24508 ld_vers=`echo $ld_ver | sed -n \
24509 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24511 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'`
24512 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24513 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24514 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24515 else
24516 case "${target}" in
24517 *-*-solaris2*)
24518 # Solaris 2 ld -V output looks like this for a regular version:
24520 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24522 # but test versions add stuff at the end:
24524 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24526 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24527 # numbers can be used in ld.so.1 feature checks even if a different
24528 # linker is configured.
24529 ld_ver=`$gcc_cv_ld -V 2>&1`
24530 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24531 ld_vers=`echo $ld_ver | sed -n \
24532 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24533 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24534 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24537 esac
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24542 $as_echo_n "checking linker for .hidden support... " >&6; }
24543 if ${gcc_cv_ld_hidden+:} false; then :
24544 $as_echo_n "(cached) " >&6
24545 else
24546 if test $in_tree_ld = yes ; then
24547 gcc_cv_ld_hidden=no
24548 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 \
24549 && test $in_tree_ld_is_elf = yes; then
24550 gcc_cv_ld_hidden=yes
24552 else
24553 gcc_cv_ld_hidden=yes
24554 if test x"$ld_is_gold" = xyes; then
24556 elif test x"$ld_is_mold" = xyes; then
24558 elif echo "$ld_ver" | grep GNU > /dev/null; then
24559 if test 0"$ld_date" -lt 20020404; then
24560 if test -n "$ld_date"; then
24561 # If there was date string, but was earlier than 2002-04-04, fail
24562 gcc_cv_ld_hidden=no
24563 elif test -z "$ld_vers"; then
24564 # If there was no date string nor ld version number, something is wrong
24565 gcc_cv_ld_hidden=no
24566 else
24567 test -z "$ld_vers_patch" && ld_vers_patch=0
24568 if test "$ld_vers_major" -lt 2; then
24569 gcc_cv_ld_hidden=no
24570 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24571 gcc_cv_ld_hidden="no"
24572 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24573 gcc_cv_ld_hidden=no
24577 else
24578 case "${target}" in
24579 *-*-aix[789]*)
24580 gcc_cv_ld_hidden=yes
24582 *-*-darwin*)
24583 # Darwin ld has some visibility support.
24584 gcc_cv_ld_hidden=yes
24586 hppa64*-*-hpux* | ia64*-*-hpux*)
24587 gcc_cv_ld_hidden=yes
24589 *-*-solaris2*)
24590 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24591 # .symbolic was only added in Solaris 9 12/02.
24592 gcc_cv_ld_hidden=yes
24595 gcc_cv_ld_hidden=no
24597 esac
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24602 $as_echo "$gcc_cv_ld_hidden" >&6; }
24603 libgcc_visibility=no
24606 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24607 libgcc_visibility=yes
24609 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24614 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24615 gcc_cv_ld_ro_rw_mix=unknown
24616 if test $in_tree_ld = yes ; then
24617 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 \
24618 && test $in_tree_ld_is_elf = yes; then
24619 gcc_cv_ld_ro_rw_mix=read-write
24621 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24622 echo '.section myfoosect, "a"' > conftest1.s
24623 echo '.section myfoosect, "aw"' > conftest2.s
24624 echo '.byte 1' >> conftest2.s
24625 echo '.section myfoosect, "a"' > conftest3.s
24626 echo '.byte 0' >> conftest3.s
24627 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24628 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24629 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
24630 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24631 conftest2.o conftest3.o > /dev/null 2>&1 \
24632 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
24633 conftest2.o conftest3.o > /dev/null 2>&1; then
24634 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24635 | sed -e '/myfoosect/!d' -e N`
24636 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24637 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24638 gcc_cv_ld_ro_rw_mix=read-only
24639 else
24640 gcc_cv_ld_ro_rw_mix=read-write
24645 rm -f conftest.* conftest[123].*
24647 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24649 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24653 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24655 # Check whether --enable-initfini-array was given.
24656 if test "${enable_initfini_array+set}" = set; then :
24657 enableval=$enable_initfini_array;
24658 else
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24661 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24662 if ${gcc_cv_initfini_array+:} false; then :
24663 $as_echo_n "(cached) " >&6
24664 else
24665 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24666 case "${target}" in
24667 ia64-*)
24668 if test "$cross_compiling" = yes; then :
24669 gcc_cv_initfini_array=no
24670 else
24671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24672 /* end confdefs.h. */
24674 #ifndef __ELF__
24675 #error Not an ELF OS
24676 #endif
24677 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24678 if it can be used. */
24679 static int x = -1;
24680 int main (void) { return x; }
24681 int foo (void) { x = 0; }
24682 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24684 _ACEOF
24685 if ac_fn_cxx_try_run "$LINENO"; then :
24686 gcc_cv_initfini_array=yes
24687 else
24688 gcc_cv_initfini_array=no
24690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24691 conftest.$ac_objext conftest.beam conftest.$ac_ext
24695 gcc_cv_initfini_array=no
24696 if test $in_tree_ld = yes ; then
24697 if test "$gcc_cv_gld_major_version" -eq 2 \
24698 -a "$gcc_cv_gld_minor_version" -ge 22 \
24699 -o "$gcc_cv_gld_major_version" -gt 2 \
24700 && test $in_tree_ld_is_elf = yes; then
24701 gcc_cv_initfini_array=yes
24703 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24704 case $target:$gas in
24705 *:yes)
24706 sh_flags='"a"'
24707 sh_type='%progbits'
24709 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24710 sh_flags='"a"'
24711 sh_type='@progbits'
24713 sparc*-*-solaris2*:no)
24714 sh_flags='#alloc'
24715 sh_type='#progbits'
24716 sh_quote='"'
24718 esac
24719 case "$target:$gnu_ld" in
24720 *:yes)
24721 cat > conftest.s <<EOF
24722 .section .dtors,$sh_flags,$sh_type
24723 .balign 4
24724 .byte 'A', 'A', 'A', 'A'
24725 .section .ctors,$sh_flags,$sh_type
24726 .balign 4
24727 .byte 'B', 'B', 'B', 'B'
24728 .section .fini_array.65530,$sh_flags,$sh_type
24729 .balign 4
24730 .byte 'C', 'C', 'C', 'C'
24731 .section .init_array.65530,$sh_flags,$sh_type
24732 .balign 4
24733 .byte 'D', 'D', 'D', 'D'
24734 .section .dtors.64528,$sh_flags,$sh_type
24735 .balign 4
24736 .byte 'E', 'E', 'E', 'E'
24737 .section .ctors.64528,$sh_flags,$sh_type
24738 .balign 4
24739 .byte 'F', 'F', 'F', 'F'
24740 .section .fini_array.01005,$sh_flags,$sh_type
24741 .balign 4
24742 .byte 'G', 'G', 'G', 'G'
24743 .section .init_array.01005,$sh_flags,$sh_type
24744 .balign 4
24745 .byte 'H', 'H', 'H', 'H'
24746 .text
24747 .globl _start
24748 _start:
24750 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24751 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24752 && $gcc_cv_objdump -s -j .init_array conftest \
24753 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24754 && $gcc_cv_objdump -s -j .fini_array conftest \
24755 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24756 gcc_cv_initfini_array=yes
24759 *-*-solaris2*:no)
24760 # When Solaris ld added constructor priority support, it was
24761 # decided to only handle .init_array.N/.fini_array.N since
24762 # there was no need for backwards compatibility with
24763 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24764 # sections with correct execution order resp. to
24765 # .init_array/.fini_array, while gld merges them into
24766 # .init_array/.fini_array.
24767 cat > conftest.s <<EOF
24768 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24769 .align 4
24770 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24771 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24772 .align 4
24773 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24774 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24775 .align 4
24776 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24777 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24778 .align 4
24779 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24780 .text
24781 .globl _start
24782 _start:
24784 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24785 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24786 && $gcc_cv_objdump -s -j .init_array conftest \
24787 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24788 && $gcc_cv_objdump -s -j .fini_array conftest \
24789 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24790 gcc_cv_initfini_array=yes
24793 esac
24794 rm -f conftest conftest.*
24796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24797 /* end confdefs.h. */
24799 #ifndef __ELF__
24800 # error Not an ELF OS
24801 #endif
24802 #include <stdlib.h>
24803 #if defined __GLIBC_PREREQ
24804 # if __GLIBC_PREREQ (2, 4)
24805 # else
24806 # error GLIBC 2.4 required
24807 # endif
24808 #else
24809 # if defined __sun__ && defined __svr4__
24810 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24811 # else
24812 # error The C library not known to support .init_array/.fini_array
24813 # endif
24814 #endif
24816 _ACEOF
24817 if ac_fn_cxx_try_cpp "$LINENO"; then :
24819 else
24820 gcc_cv_initfini_array=no
24822 rm -f conftest.err conftest.i conftest.$ac_ext;;
24823 esac
24824 else
24825 case "${target}" in
24826 aarch64*-linux-gnu*)
24827 # AArch64 postdates glibc support for .init_array/.fini_array,
24828 # so we don't need the preprocessor test above.
24829 gcc_cv_initfini_array=yes
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24834 $as_echo_n "checking cross compile... guessing... " >&6; }
24835 gcc_cv_initfini_array=no
24837 esac
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24841 $as_echo "$gcc_cv_initfini_array" >&6; }
24842 enable_initfini_array=$gcc_cv_initfini_array
24847 cat >>confdefs.h <<_ACEOF
24848 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24849 _ACEOF
24853 # Some assemblers (GNU as for LoongArch) generates relocations for
24854 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
24855 # probing leb128 support then.
24856 case $target in
24857 loongarch*-*-*)
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
24859 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
24860 if ${gcc_cv_as_mno_relax+:} false; then :
24861 $as_echo_n "(cached) " >&6
24862 else
24863 gcc_cv_as_mno_relax=no
24864 if test x$gcc_cv_as != x; then
24865 $as_echo '.text' > conftest.s
24866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24869 ac_status=$?
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; }
24872 then
24873 gcc_cv_as_mno_relax=yes
24874 else
24875 echo "configure: failed program was" >&5
24876 cat conftest.s >&5
24878 rm -f conftest.o conftest.s
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
24882 $as_echo "$gcc_cv_as_mno_relax" >&6; }
24883 if test $gcc_cv_as_mno_relax = yes; then
24884 check_leb128_asflags=-mno-relax
24889 check_leb128_asflags=
24891 esac
24893 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24894 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24895 # these directives, even when they appear to accept them.
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24897 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24898 if ${gcc_cv_as_leb128+:} false; then :
24899 $as_echo_n "(cached) " >&6
24900 else
24901 gcc_cv_as_leb128=no
24902 if test x$gcc_cv_as != x; then
24903 $as_echo ' .data
24904 .uleb128 L2 - L1
24906 .uleb128 1280
24907 .sleb128 -1010
24909 .uleb128 0x8000000000000000
24910 ' > conftest.s
24911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
24912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; }
24917 then
24919 if test "x$gcc_cv_objdump" != x; then
24920 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24921 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24922 gcc_cv_as_leb128=yes
24924 elif test "x$gcc_cv_otool" != x; then
24925 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24926 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24927 gcc_cv_as_leb128=yes
24929 else
24930 # play safe, assume the assembler is broken.
24934 else
24935 echo "configure: failed program was" >&5
24936 cat conftest.s >&5
24938 rm -f conftest.o conftest.s
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24942 $as_echo "$gcc_cv_as_leb128" >&6; }
24943 if test $gcc_cv_as_leb128 = yes; then
24945 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24948 if test $gcc_cv_as_leb128 != yes; then
24950 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24954 # Determine if an .eh_frame section is read-only.
24955 gcc_fn_eh_frame_ro () {
24956 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24957 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24958 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24961 # Check if we have assembler support for unwind directives.
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24963 $as_echo_n "checking assembler for cfi directives... " >&6; }
24964 if ${gcc_cv_as_cfi_directive+:} false; then :
24965 $as_echo_n "(cached) " >&6
24966 else
24967 gcc_cv_as_cfi_directive=no
24968 if test x$gcc_cv_as != x; then
24969 $as_echo ' .text
24970 .cfi_startproc
24971 .cfi_offset 0, 0
24972 .cfi_same_value 1
24973 .cfi_def_cfa 1, 2
24974 .cfi_escape 1, 2, 3, 4, 5
24975 .cfi_endproc' > conftest.s
24976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24978 (eval $ac_try) 2>&5
24979 ac_status=$?
24980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24981 test $ac_status = 0; }; }
24982 then
24983 case "$target" in
24984 *-*-solaris*)
24985 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24986 # read-only and read-write sections, we need to make sure that the
24987 # assembler used emits read-write .eh_frame sections.
24988 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24989 gcc_cv_as_cfi_directive=yes
24990 elif test "x$gcc_cv_objdump" = x; then
24991 # No objdump, err on the side of caution.
24992 gcc_cv_as_cfi_directive=no
24993 else
24994 if test x$gas = xyes; then
24995 as_32_opt="--32"
24996 as_64_opt="--64"
24997 else
24998 as_32_opt="-m32"
24999 as_64_opt="-m64"
25001 case "$target" in
25002 sparc*-*-solaris2.*)
25003 # On Solaris/SPARC, .eh_frame sections should always be read-write.
25004 if gcc_fn_eh_frame_ro $as_32_opt \
25005 || gcc_fn_eh_frame_ro $as_64_opt; then
25006 gcc_cv_as_cfi_directive=no
25007 else
25008 gcc_cv_as_cfi_directive=yes
25011 i?86-*-solaris2.* | x86_64-*-solaris2.*)
25012 # On Solaris/x86, make sure that GCC and assembler agree on using
25013 # read-only .eh_frame sections for 64-bit.
25014 if gcc_fn_eh_frame_ro $as_32_opt; then
25015 gcc_cv_as_cfi_directive=no
25016 elif gcc_fn_eh_frame_ro $as_64_opt; then
25017 gcc_cv_as_cfi_directive=yes
25018 else
25019 gcc_cv_as_cfi_directive=no
25022 esac
25025 *-*-*)
25026 gcc_cv_as_cfi_directive=yes
25028 esac
25029 else
25030 echo "configure: failed program was" >&5
25031 cat conftest.s >&5
25033 rm -f conftest.o conftest.s
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
25037 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
25040 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
25042 $as_echo_n "checking assembler for working cfi advance... " >&6; }
25043 if ${gcc_cv_as_cfi_advance_working+:} false; then :
25044 $as_echo_n "(cached) " >&6
25045 else
25046 gcc_cv_as_cfi_advance_working=no
25047 if test x$gcc_cv_as != x; then
25048 $as_echo ' .text
25049 .cfi_startproc
25050 .cfi_adjust_cfa_offset 64
25051 .skip 75040, 0
25052 .cfi_adjust_cfa_offset 128
25053 .cfi_endproc' > conftest.s
25054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25056 (eval $ac_try) 2>&5
25057 ac_status=$?
25058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25059 test $ac_status = 0; }; }
25060 then
25062 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
25063 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
25064 gcc_cv_as_cfi_advance_working=yes
25067 else
25068 echo "configure: failed program was" >&5
25069 cat conftest.s >&5
25071 rm -f conftest.o conftest.s
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
25075 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
25078 else
25079 # no objdump, err on the side of caution
25080 gcc_cv_as_cfi_advance_working=no
25084 cat >>confdefs.h <<_ACEOF
25085 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
25086 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
25087 _ACEOF
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
25092 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
25093 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
25094 $as_echo_n "(cached) " >&6
25095 else
25096 gcc_cv_as_cfi_personality_directive=no
25097 if test x$gcc_cv_as != x; then
25098 $as_echo ' .text
25099 .cfi_startproc
25100 .cfi_personality 0, symbol
25101 .cfi_endproc' > conftest.s
25102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25104 (eval $ac_try) 2>&5
25105 ac_status=$?
25106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25107 test $ac_status = 0; }; }
25108 then
25109 gcc_cv_as_cfi_personality_directive=yes
25110 else
25111 echo "configure: failed program was" >&5
25112 cat conftest.s >&5
25114 rm -f conftest.o conftest.s
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
25118 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
25122 cat >>confdefs.h <<_ACEOF
25123 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
25124 _ACEOF
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
25128 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
25129 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
25130 $as_echo_n "(cached) " >&6
25131 else
25132 gcc_cv_as_cfi_sections_directive=no
25133 if test x$gcc_cv_as != x; then
25134 $as_echo ' .text
25135 .cfi_sections .debug_frame, .eh_frame
25136 .cfi_startproc
25137 .cfi_endproc' > conftest.s
25138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25140 (eval $ac_try) 2>&5
25141 ac_status=$?
25142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25143 test $ac_status = 0; }; }
25144 then
25145 case $target_os in
25146 win32 | pe | cygwin* | mingw32*)
25147 # Need to check that we generated the correct relocation for the
25148 # .debug_frame section. This was fixed for binutils 2.21.
25149 gcc_cv_as_cfi_sections_directive=no
25150 if test "x$gcc_cv_objdump" != x; then
25151 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
25152 grep -i secrel > /dev/null; then
25153 gcc_cv_as_cfi_sections_directive=yes
25158 gcc_cv_as_cfi_sections_directive=yes
25160 esac
25161 else
25162 echo "configure: failed program was" >&5
25163 cat conftest.s >&5
25165 rm -f conftest.o conftest.s
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
25169 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
25174 cat >>confdefs.h <<_ACEOF
25175 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
25176 _ACEOF
25179 # GAS versions up to and including 2.11.0 may mis-optimize
25180 # .eh_frame data.
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
25182 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
25183 if ${gcc_cv_as_eh_frame+:} false; then :
25184 $as_echo_n "(cached) " >&6
25185 else
25186 gcc_cv_as_eh_frame=no
25187 if test x$gcc_cv_as != x; then
25188 $as_echo ' .text
25189 .LFB1:
25190 .4byte 0
25191 .L1:
25192 .4byte 0
25193 .LFE1:
25194 .section .eh_frame,"aw",@progbits
25195 __FRAME_BEGIN__:
25196 .4byte .LECIE1-.LSCIE1
25197 .LSCIE1:
25198 .4byte 0x0
25199 .byte 0x1
25200 .ascii "z\0"
25201 .byte 0x1
25202 .byte 0x78
25203 .byte 0x1a
25204 .byte 0x0
25205 .byte 0x4
25206 .4byte 1
25207 .p2align 1
25208 .LECIE1:
25209 .LSFDE1:
25210 .4byte .LEFDE1-.LASFDE1
25211 .LASFDE1:
25212 .4byte .LASFDE1-__FRAME_BEGIN__
25213 .4byte .LFB1
25214 .4byte .LFE1-.LFB1
25215 .byte 0x4
25216 .4byte .LFE1-.LFB1
25217 .byte 0x4
25218 .4byte .L1-.LFB1
25219 .LEFDE1:' > conftest.s
25220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25222 (eval $ac_try) 2>&5
25223 ac_status=$?
25224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25225 test $ac_status = 0; }; }
25226 then
25227 cat > conftest.lit <<EOF
25228 0000 10000000 00000000 017a0001 781a0004 .........z..x...
25229 0010 01000000 12000000 18000000 00000000 ................
25230 0020 08000000 04080000 0044 .........D
25232 cat > conftest.big <<EOF
25233 0000 00000010 00000000 017a0001 781a0004 .........z..x...
25234 0010 00000001 00000012 00000018 00000000 ................
25235 0020 00000008 04000000 0844 .........D
25237 # If the assembler didn't choke, and we can objdump,
25238 # and we got the correct data, then succeed.
25239 # The text in the here-document typically retains its unix-style line
25240 # endings, while the output of objdump will use host line endings.
25241 # Therefore, use diff -b for the comparisons.
25242 if test x$gcc_cv_objdump != x \
25243 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
25244 | tail -3 > conftest.got \
25245 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
25246 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
25247 then
25248 gcc_cv_as_eh_frame=yes
25249 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25251 (eval $ac_try) 2>&5
25252 ac_status=$?
25253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25254 test $ac_status = 0; }; }; then
25255 gcc_cv_as_eh_frame=buggy
25256 else
25257 # Uh oh, what do we do now?
25258 gcc_cv_as_eh_frame=no
25260 else
25261 echo "configure: failed program was" >&5
25262 cat conftest.s >&5
25264 rm -f conftest.o conftest.s
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
25268 $as_echo "$gcc_cv_as_eh_frame" >&6; }
25272 if test $gcc_cv_as_eh_frame = buggy; then
25274 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25278 # Test if the assembler supports the section flag 'e' or #exclude for
25279 # specifying an excluded section.
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25281 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25282 if ${gcc_cv_as_section_exclude_e+:} false; then :
25283 $as_echo_n "(cached) " >&6
25284 else
25285 gcc_cv_as_section_exclude_e=no
25286 if test x$gcc_cv_as != x; then
25287 $as_echo '.section foo1,"e"
25288 .byte 0,0,0,0' > conftest.s
25289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291 (eval $ac_try) 2>&5
25292 ac_status=$?
25293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294 test $ac_status = 0; }; }
25295 then
25296 gcc_cv_as_section_exclude_e=yes
25297 else
25298 echo "configure: failed program was" >&5
25299 cat conftest.s >&5
25301 rm -f conftest.o conftest.s
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25305 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25308 if test $gcc_cv_as_section_exclude_e = no; then
25309 case "${target}" in
25310 # Solaris as uses #exclude instead.
25311 *-*-solaris2*)
25312 case "${target}" in
25313 sparc*-*-solaris2*)
25314 conftest_s='.section "foo1", #exclude'
25316 i?86-*-solaris2* | x86_64-*-solaris2*)
25317 conftest_s='.section foo1, #exclude'
25319 esac
25321 esac
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25323 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25324 if ${gcc_cv_as_section_exclude_hash+:} false; then :
25325 $as_echo_n "(cached) " >&6
25326 else
25327 gcc_cv_as_section_exclude_hash=no
25328 if test x$gcc_cv_as != x; then
25329 $as_echo "$conftest_s
25330 .byte 0,0,0,0" > conftest.s
25331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25333 (eval $ac_try) 2>&5
25334 ac_status=$?
25335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25336 test $ac_status = 0; }; }
25337 then
25338 gcc_cv_as_section_exclude_hash=yes
25339 else
25340 echo "configure: failed program was" >&5
25341 cat conftest.s >&5
25343 rm -f conftest.o conftest.s
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25347 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25352 cat >>confdefs.h <<_ACEOF
25353 #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`
25354 _ACEOF
25357 # Test if the assembler supports the section flag 'R' for specifying
25358 # section with SHF_GNU_RETAIN.
25359 case "${target}" in
25360 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25361 # assembler supports the section flag 'R', it doesn't mean that
25362 # Solairs ld supports it.
25363 *-*-solaris2*)
25364 gcc_cv_as_shf_gnu_retain=no
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25368 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25369 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
25370 $as_echo_n "(cached) " >&6
25371 else
25372 gcc_cv_as_shf_gnu_retain=no
25373 if test x$gcc_cv_as != x; then
25374 $as_echo '.section .foo,"awR",%progbits
25375 .byte 0' > conftest.s
25376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25378 (eval $ac_try) 2>&5
25379 ac_status=$?
25380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25381 test $ac_status = 0; }; }
25382 then
25383 gcc_cv_as_shf_gnu_retain=yes
25384 else
25385 echo "configure: failed program was" >&5
25386 cat conftest.s >&5
25388 rm -f conftest.o conftest.s
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25392 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25396 esac
25398 cat >>confdefs.h <<_ACEOF
25399 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25400 _ACEOF
25403 # Test if the assembler supports the section flag 'o' for specifying
25404 # section with link-order.
25405 case "${target}" in
25406 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25407 # assembler supports the section flag 'o', it doesn't mean that
25408 # Solairs ld supports it.
25409 *-*-solaris2*)
25410 gcc_cv_as_section_link_order=no
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25414 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25415 if ${gcc_cv_as_section_link_order+:} false; then :
25416 $as_echo_n "(cached) " >&6
25417 else
25418 gcc_cv_as_section_link_order=no
25419 if test x$gcc_cv_as != x; then
25420 $as_echo '.section .foo,"a"
25421 .byte 0
25422 .section __patchable_function_entries,"awo",%progbits,.foo
25423 .byte 0' > conftest.s
25424 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25426 (eval $ac_try) 2>&5
25427 ac_status=$?
25428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25429 test $ac_status = 0; }; }
25430 then
25431 gcc_cv_as_section_link_order=yes
25432 else
25433 echo "configure: failed program was" >&5
25434 cat conftest.s >&5
25436 rm -f conftest.o conftest.s
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25440 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25444 esac
25446 cat >>confdefs.h <<_ACEOF
25447 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25448 _ACEOF
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25452 $as_echo_n "checking assembler for section merging support... " >&6; }
25453 if ${gcc_cv_as_shf_merge+:} false; then :
25454 $as_echo_n "(cached) " >&6
25455 else
25456 gcc_cv_as_shf_merge=no
25457 if test x$gcc_cv_as != x; then
25458 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25461 (eval $ac_try) 2>&5
25462 ac_status=$?
25463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25464 test $ac_status = 0; }; }
25465 then
25466 gcc_cv_as_shf_merge=yes
25467 else
25468 echo "configure: failed program was" >&5
25469 cat conftest.s >&5
25471 rm -f conftest.o conftest.s
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25475 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25478 if test $gcc_cv_as_shf_merge = no; then
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25480 $as_echo_n "checking assembler for section merging support... " >&6; }
25481 if ${gcc_cv_as_shf_merge+:} false; then :
25482 $as_echo_n "(cached) " >&6
25483 else
25484 gcc_cv_as_shf_merge=no
25485 if test x$gcc_cv_as != x; then
25486 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25489 (eval $ac_try) 2>&5
25490 ac_status=$?
25491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25492 test $ac_status = 0; }; }
25493 then
25494 gcc_cv_as_shf_merge=yes
25495 else
25496 echo "configure: failed program was" >&5
25497 cat conftest.s >&5
25499 rm -f conftest.o conftest.s
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25503 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25508 cat >>confdefs.h <<_ACEOF
25509 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25510 _ACEOF
25513 gcc_cv_ld_aligned_shf_merge=yes
25514 case "$target" in
25515 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25516 # alignment > 1.
25517 sparc*-*-solaris2.11*)
25518 if test x"$gnu_ld" = xno \
25519 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25520 gcc_cv_ld_aligned_shf_merge=no
25523 esac
25525 cat >>confdefs.h <<_ACEOF
25526 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25527 _ACEOF
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25531 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25532 if ${gcc_cv_as_comdat_group+:} false; then :
25533 $as_echo_n "(cached) " >&6
25534 else
25535 gcc_cv_as_comdat_group=no
25536 if test x$gcc_cv_as != x; then
25537 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25540 (eval $ac_try) 2>&5
25541 ac_status=$?
25542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25543 test $ac_status = 0; }; }
25544 then
25545 gcc_cv_as_comdat_group=yes
25546 else
25547 echo "configure: failed program was" >&5
25548 cat conftest.s >&5
25550 rm -f conftest.o conftest.s
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25554 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25557 if test $gcc_cv_as_comdat_group = yes; then
25558 gcc_cv_as_comdat_group_percent=no
25559 gcc_cv_as_comdat_group_group=no
25560 else
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25562 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25563 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25564 $as_echo_n "(cached) " >&6
25565 else
25566 gcc_cv_as_comdat_group_percent=no
25567 if test x$gcc_cv_as != x; then
25568 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25571 (eval $ac_try) 2>&5
25572 ac_status=$?
25573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25574 test $ac_status = 0; }; }
25575 then
25576 gcc_cv_as_comdat_group_percent=yes
25577 else
25578 echo "configure: failed program was" >&5
25579 cat conftest.s >&5
25581 rm -f conftest.o conftest.s
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25585 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25588 if test $gcc_cv_as_comdat_group_percent = yes; then
25589 gcc_cv_as_comdat_group_group=no
25590 else
25591 case "${target}" in
25592 # Sun as uses a completely different syntax.
25593 *-*-solaris2*)
25594 case "${target}" in
25595 sparc*-*-solaris2*)
25596 conftest_s='
25597 .group foo,".text%foo",#comdat
25598 .section ".text%foo", #alloc,#execinstr,#progbits
25599 .globl foo
25600 foo:
25603 i?86-*-solaris2* | x86_64-*-solaris2*)
25604 conftest_s='
25605 .group foo,.text%foo,#comdat
25606 .section .text%foo, "ax", @progbits
25607 .globl foo
25608 foo:
25611 esac
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25613 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25614 if ${gcc_cv_as_comdat_group_group+:} false; then :
25615 $as_echo_n "(cached) " >&6
25616 else
25617 gcc_cv_as_comdat_group_group=no
25618 if test x$gcc_cv_as != x; then
25619 $as_echo "$conftest_s" > conftest.s
25620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25622 (eval $ac_try) 2>&5
25623 ac_status=$?
25624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25625 test $ac_status = 0; }; }
25626 then
25627 gcc_cv_as_comdat_group_group=yes
25628 else
25629 echo "configure: failed program was" >&5
25630 cat conftest.s >&5
25632 rm -f conftest.o conftest.s
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25636 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25640 esac
25641 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25642 gcc_cv_as_comdat_group_group=no
25646 if test x"$ld_is_gold" = xyes; then
25647 comdat_group=yes
25648 elif test x"$ld_is_mold" = xyes; then
25649 comdat_group=yes
25650 elif test $in_tree_ld = yes ; then
25651 comdat_group=no
25652 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 \
25653 && test $in_tree_ld_is_elf = yes; then
25654 comdat_group=yes
25656 elif echo "$ld_ver" | grep GNU > /dev/null; then
25657 comdat_group=yes
25658 if test 0"$ld_date" -lt 20050308; then
25659 if test -n "$ld_date"; then
25660 # If there was date string, but was earlier than 2005-03-08, fail
25661 comdat_group=no
25662 elif test "$ld_vers_major" -lt 2; then
25663 comdat_group=no
25664 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25665 comdat_group=no
25668 else
25669 case "${target}" in
25670 *-*-solaris2.1[1-9]*)
25671 comdat_group=no
25672 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25673 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25674 # version 1.688.
25676 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25677 # least ld version 1.2267.
25678 if test "$ld_vers_major" -gt 1; then
25679 comdat_group=yes
25680 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25681 comdat_group=yes
25682 elif test "$ld_vers_minor" -ge 2267; then
25683 comdat_group=yes
25687 # Assume linkers other than GNU ld don't support COMDAT group.
25688 comdat_group=no
25690 esac
25692 # Allow overriding the automatic COMDAT group tests above.
25693 # Check whether --enable-comdat was given.
25694 if test "${enable_comdat+set}" = set; then :
25695 enableval=$enable_comdat; comdat_group="$enable_comdat"
25698 if test $comdat_group = no; then
25699 gcc_cv_as_comdat_group=no
25700 gcc_cv_as_comdat_group_percent=no
25701 gcc_cv_as_comdat_group_group=no
25704 cat >>confdefs.h <<_ACEOF
25705 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25706 || test $gcc_cv_as_comdat_group_percent = yes \
25707 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25708 _ACEOF
25711 # Restrict this test to Solaris/x86: other targets define this statically.
25712 case "${target}" in
25713 i?86-*-solaris2* | x86_64-*-solaris2*)
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25715 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25716 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25717 hidden_linkonce=yes
25718 else
25719 case "${target}" in
25720 # Full support for hidden thunks in linkonce sections only appeared in
25721 # Solaris 11/OpenSolaris.
25722 *-*-solaris2.1[1-9]*)
25723 hidden_linkonce=yes
25726 hidden_linkonce=no
25728 esac
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25731 $as_echo "$hidden_linkonce" >&6; }
25733 cat >>confdefs.h <<_ACEOF
25734 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25735 _ACEOF
25738 esac
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25741 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25742 if ${gcc_cv_as_is_stmt+:} false; then :
25743 $as_echo_n "(cached) " >&6
25744 else
25745 gcc_cv_as_is_stmt=no
25746 if test x$gcc_cv_as != x; then
25747 $as_echo ' .text
25748 .file 1 "conf.c"
25749 .loc 1 1 0 is_stmt 1' > 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 gcc_cv_as_is_stmt=yes
25758 else
25759 echo "configure: failed program was" >&5
25760 cat conftest.s >&5
25762 rm -f conftest.o conftest.s
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25766 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25767 if test $gcc_cv_as_is_stmt = yes; then
25769 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25775 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25776 if ${gcc_cv_as_discriminator+:} false; then :
25777 $as_echo_n "(cached) " >&6
25778 else
25779 gcc_cv_as_discriminator=no
25780 if test x$gcc_cv_as != x; then
25781 $as_echo ' .text
25782 .file 1 "conf.c"
25783 .loc 1 1 0 discriminator 1' > conftest.s
25784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25786 (eval $ac_try) 2>&5
25787 ac_status=$?
25788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789 test $ac_status = 0; }; }
25790 then
25791 gcc_cv_as_discriminator=yes
25792 else
25793 echo "configure: failed program was" >&5
25794 cat conftest.s >&5
25796 rm -f conftest.o conftest.s
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25800 $as_echo "$gcc_cv_as_discriminator" >&6; }
25801 if test $gcc_cv_as_discriminator = yes; then
25803 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25808 # Catch the newlib flag of the same name so we can gate GCC features on it.
25809 # Check whether --enable-newlib-nano-formatted-io was given.
25810 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25811 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25812 yes|no)
25815 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25817 esac
25821 # Thread-local storage - the check is heavily parameterized.
25822 conftest_s=
25823 tls_as_opt=
25824 case "$target" in
25825 alpha*-*-*)
25826 conftest_s='
25827 .section ".tdata","awT",@progbits
25828 foo: .long 25
25829 .text
25830 ldq $27,__tls_get_addr($29) !literal!1
25831 lda $16,foo($29) !tlsgd!1
25832 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25833 ldq $27,__tls_get_addr($29) !literal!2
25834 lda $16,foo($29) !tlsldm!2
25835 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25836 ldq $1,foo($29) !gotdtprel
25837 ldah $2,foo($29) !dtprelhi
25838 lda $3,foo($2) !dtprello
25839 lda $4,foo($29) !dtprel
25840 ldq $1,foo($29) !gottprel
25841 ldah $2,foo($29) !tprelhi
25842 lda $3,foo($2) !tprello
25843 lda $4,foo($29) !tprel'
25844 tls_as_opt=--fatal-warnings
25846 arc*-*-*)
25847 conftest_s='
25848 add_s r0,r0, @foo@tpoff'
25850 cris-*-*|crisv32-*-*)
25851 conftest_s='
25852 .section ".tdata","awT",@progbits
25853 x: .long 25
25854 .text
25855 move.d x:IE,$r10
25856 nop'
25857 tls_as_opt=--fatal-warnings
25859 frv*-*-*)
25860 conftest_s='
25861 .section ".tdata","awT",@progbits
25862 x: .long 25
25863 .text
25864 call #gettlsoff(x)'
25866 hppa*-*-linux*)
25867 conftest_s='
25868 t1: .reg %r20
25869 t2: .reg %r21
25870 gp: .reg %r19
25871 .section ".tdata","awT",@progbits
25872 foo: .long 25
25873 .text
25874 .align 4
25875 addil LT%foo-$tls_gdidx$,gp
25876 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25877 b __tls_get_addr
25879 addil LT%foo-$tls_ldidx$,gp
25880 b __tls_get_addr
25881 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25882 addil LR%foo-$tls_dtpoff$,%ret0
25883 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25884 mfctl %cr27,%t1
25885 addil LT%foo-$tls_ieoff$,gp
25886 ldw RT%foo-$tls_ieoff$(%r1),%t2
25887 add %t1,%t2,%t3
25888 mfctl %cr27,%t1
25889 addil LR%foo-$tls_leoff$,%t1
25890 ldo RR%foo-$tls_leoff$(%r1),%t2'
25891 tls_as_opt=--fatal-warnings
25893 arm*-*-*)
25894 conftest_s='
25895 .section ".tdata","awT",%progbits
25896 foo: .long 25
25897 .text
25898 .word foo(gottpoff)
25899 .word foo(tpoff)
25900 .word foo(tlsgd)
25901 .word foo(tlsldm)
25902 .word foo(tlsldo)'
25904 i[34567]86-*-* | x86_64-*-*)
25905 case "$target" in
25906 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25907 on_solaris=yes
25910 on_solaris=no
25912 esac
25913 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25914 conftest_s='
25915 .section .tdata,"awt",@progbits'
25916 tls_section_flag=t
25918 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25920 else
25921 conftest_s='
25922 .section ".tdata","awT",@progbits'
25923 tls_section_flag=T
25924 tls_as_opt="--fatal-warnings"
25926 case "$target" in
25927 i[34567]86-*-*)
25928 if test x$on_solaris = xyes; then
25929 case $gas_flag in
25930 yes) tls_as_opt="$tls_as_opt --32" ;;
25931 esac
25933 conftest_s="$conftest_s
25934 foo: .long 25
25935 .text
25936 movl %gs:0, %eax
25937 leal foo@tlsgd(,%ebx,1), %eax
25938 leal foo@tlsldm(%ebx), %eax
25939 leal foo@dtpoff(%eax), %edx
25940 movl foo@gottpoff(%ebx), %eax
25941 subl foo@gottpoff(%ebx), %eax
25942 addl foo@gotntpoff(%ebx), %eax
25943 movl foo@indntpoff, %eax
25944 movl \$foo@tpoff, %eax
25945 subl \$foo@tpoff, %eax
25946 leal foo@ntpoff(%ecx), %eax"
25948 x86_64-*-*)
25949 if test x$on_solaris = xyes; then
25950 case $gas_flag in
25951 yes) tls_as_opt="$tls_as_opt --64" ;;
25952 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25953 esac
25955 conftest_s="$conftest_s
25956 foo: .long 25
25957 .text
25958 movq %fs:0, %rax
25959 leaq foo@tlsgd(%rip), %rdi
25960 leaq foo@tlsld(%rip), %rdi
25961 leaq foo@dtpoff(%rax), %rdx
25962 movq foo@gottpoff(%rip), %rax
25963 movq \$foo@tpoff, %rax"
25965 esac
25967 ia64-*-*)
25968 conftest_s='
25969 .section ".tdata","awT",@progbits
25970 foo: data8 25
25971 .text
25972 addl r16 = @ltoff(@dtpmod(foo#)), gp
25973 addl r17 = @ltoff(@dtprel(foo#)), gp
25974 addl r18 = @ltoff(@tprel(foo#)), gp
25975 addl r19 = @dtprel(foo#), gp
25976 adds r21 = @dtprel(foo#), r13
25977 movl r23 = @dtprel(foo#)
25978 addl r20 = @tprel(foo#), gp
25979 adds r22 = @tprel(foo#), r13
25980 movl r24 = @tprel(foo#)'
25981 tls_as_opt=--fatal-warnings
25983 loongarch*-*-*)
25984 conftest_s='
25985 .section .tdata,"awT",@progbits
25986 x: .word 2
25987 .text
25988 la.tls.gd $a0,x
25989 bl __tls_get_addr'
25990 tls_first_major=0
25991 tls_first_minor=0
25992 tls_as_opt='--fatal-warnings'
25994 microblaze*-*-*)
25995 conftest_s='
25996 .section .tdata,"awT",@progbits
25998 .word 2
25999 .text
26000 addik r5,r20,x@TLSGD
26001 addik r5,r20,x@TLSLDM'
26002 tls_as_opt='--fatal-warnings'
26004 mips*-*-*)
26005 conftest_s='
26006 .section .tdata,"awT",@progbits
26008 .word 2
26009 .text
26010 addiu $4, $28, %tlsgd(x)
26011 addiu $4, $28, %tlsldm(x)
26012 lui $4, %dtprel_hi(x)
26013 addiu $4, $4, %dtprel_lo(x)
26014 lw $4, %gottprel(x)($28)
26015 lui $4, %tprel_hi(x)
26016 addiu $4, $4, %tprel_lo(x)'
26017 tls_as_opt='-32 --fatal-warnings'
26019 m68k-*-*)
26020 conftest_s='
26021 .section .tdata,"awT",@progbits
26023 .word 2
26024 .text
26025 foo:
26026 move.l x@TLSGD(%a5),%a0
26027 move.l x@TLSLDM(%a5),%a0
26028 move.l x@TLSLDO(%a5),%a0
26029 move.l x@TLSIE(%a5),%a0
26030 move.l x@TLSLE(%a5),%a0'
26031 tls_as_opt='--fatal-warnings'
26033 nios2-*-*)
26034 conftest_s='
26035 .section ".tdata","awT",@progbits'
26036 tls_as_opt="--fatal-warnings"
26038 aarch64*-*-*)
26039 conftest_s='
26040 .section ".tdata","awT",%progbits
26041 foo: .long 25
26042 .text
26043 adrp x0, :tlsgd:x
26044 add x0, x0, #:tlsgd_lo12:x
26045 bl __tls_get_addr
26046 nop'
26047 tls_as_opt='--fatal-warnings'
26049 or1k*-*-*)
26050 conftest_s='
26051 .section ".tdata","awT",@progbits
26052 foo: .long 25
26053 .text
26054 l.movhi r3, tpoffha(foo)
26055 l.add r3, r3, r10
26056 l.lwz r4, tpofflo(foo)(r3)'
26057 tls_as_opt=--fatal-warnings
26059 powerpc-ibm-aix*)
26060 conftest_s='
26061 .extern __get_tpointer
26062 .toc
26063 LC..1:
26064 .tc a[TC],a[TL]@le
26065 .csect .text[PR]
26066 .tlstest:
26067 lwz 9,LC..1(2)
26068 bla __get_tpointer
26069 lwzx 3,9,3
26070 .globl a
26071 .csect a[TL],4
26073 .space 4'
26075 powerpc64*-*-*)
26076 conftest_s='
26077 .section ".tdata","awT",@progbits
26078 .align 3
26079 ld0: .space 8
26080 ld1: .space 8
26081 x1: .space 8
26082 x2: .space 8
26083 x3: .space 8
26084 .text
26085 addi 3,2,ld0@got@tlsgd
26086 bl .__tls_get_addr
26088 addi 3,2,ld1@toc
26089 bl .__tls_get_addr
26091 addi 3,2,x1@got@tlsld
26092 bl .__tls_get_addr
26094 addi 9,3,x1@dtprel
26095 bl .__tls_get_addr
26097 addis 9,3,x2@dtprel@ha
26098 addi 9,9,x2@dtprel@l
26099 bl .__tls_get_addr
26101 ld 9,x3@got@dtprel(2)
26102 add 9,9,3
26103 bl .__tls_get_addr
26104 nop'
26105 tls_as_opt="-a64 --fatal-warnings"
26107 powerpc*-*-*)
26108 conftest_s='
26109 .section ".tdata","awT",@progbits
26110 .align 2
26111 ld0: .space 4
26112 ld1: .space 4
26113 x1: .space 4
26114 x2: .space 4
26115 x3: .space 4
26116 .text
26117 addi 3,31,ld0@got@tlsgd
26118 bl __tls_get_addr
26119 addi 3,31,x1@got@tlsld
26120 bl __tls_get_addr
26121 addi 9,3,x1@dtprel
26122 addis 9,3,x2@dtprel@ha
26123 addi 9,9,x2@dtprel@l
26124 lwz 9,x3@got@tprel(31)
26125 add 9,9,x@tls
26126 addi 9,2,x1@tprel
26127 addis 9,2,x2@tprel@ha
26128 addi 9,9,x2@tprel@l'
26129 tls_as_opt="-a32 --fatal-warnings"
26131 riscv*-*-*)
26132 conftest_s='
26133 .section .tdata,"awT",@progbits
26134 x: .word 2
26135 .text
26136 la.tls.gd a0,x
26137 call __tls_get_addr'
26138 tls_as_opt='--fatal-warnings'
26140 s390-*-*)
26141 conftest_s='
26142 .section ".tdata","awT",@progbits
26143 foo: .long 25
26144 .text
26145 .long foo@TLSGD
26146 .long foo@TLSLDM
26147 .long foo@DTPOFF
26148 .long foo@NTPOFF
26149 .long foo@GOTNTPOFF
26150 .long foo@INDNTPOFF
26151 l %r1,foo@GOTNTPOFF(%r12)
26152 l %r1,0(%r1):tls_load:foo
26153 bas %r14,0(%r1,%r13):tls_gdcall:foo
26154 bas %r14,0(%r1,%r13):tls_ldcall:foo'
26155 tls_as_opt="-m31 --fatal-warnings"
26157 s390x-*-*)
26158 conftest_s='
26159 .section ".tdata","awT",@progbits
26160 foo: .long 25
26161 .text
26162 .quad foo@TLSGD
26163 .quad foo@TLSLDM
26164 .quad foo@DTPOFF
26165 .quad foo@NTPOFF
26166 .quad foo@GOTNTPOFF
26167 lg %r1,foo@GOTNTPOFF(%r12)
26168 larl %r1,foo@INDNTPOFF
26169 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
26170 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
26171 tls_as_opt="-m64 -Aesame --fatal-warnings"
26173 sh-*-* | sh[123456789lbe]*-*-*)
26174 conftest_s='
26175 .section ".tdata","awT",@progbits
26176 foo: .long 25
26177 .text
26178 .long foo@TLSGD
26179 .long foo@TLSLDM
26180 .long foo@DTPOFF
26181 .long foo@GOTTPOFF
26182 .long foo@TPOFF'
26183 tls_as_opt=--fatal-warnings
26185 sparc*-*-*)
26186 case "$target" in
26187 sparc*-sun-solaris2.*)
26188 on_solaris=yes
26191 on_solaris=no
26193 esac
26194 if test x$on_solaris = xyes && test x$gas_flag = xno; then
26195 conftest_s='
26196 .section ".tdata",#alloc,#write,#tls'
26197 else
26198 conftest_s='
26199 .section ".tdata","awT",@progbits'
26200 tls_as_opt="-32 --fatal-warnings"
26202 conftest_s="$conftest_s
26203 foo: .long 25
26204 .text
26205 sethi %tgd_hi22(foo), %o0
26206 add %o0, %tgd_lo10(foo), %o1
26207 add %l7, %o1, %o0, %tgd_add(foo)
26208 call __tls_get_addr, %tgd_call(foo)
26209 sethi %tldm_hi22(foo), %l1
26210 add %l1, %tldm_lo10(foo), %l2
26211 add %l7, %l2, %o0, %tldm_add(foo)
26212 call __tls_get_addr, %tldm_call(foo)
26213 sethi %tldo_hix22(foo), %l3
26214 xor %l3, %tldo_lox10(foo), %l4
26215 add %o0, %l4, %l5, %tldo_add(foo)
26216 sethi %tie_hi22(foo), %o3
26217 add %o3, %tie_lo10(foo), %o3
26218 ld [%l7 + %o3], %o2, %tie_ld(foo)
26219 add %g7, %o2, %o4, %tie_add(foo)
26220 sethi %tle_hix22(foo), %l1
26221 xor %l1, %tle_lox10(foo), %o5
26222 ld [%g7 + %o5], %o1"
26224 xtensa*-*-*)
26225 conftest_s='
26226 .section ".tdata","awT",@progbits
26227 foo: .long 25
26228 .text
26229 movi a8, foo@TLSFUNC
26230 movi a10, foo@TLSARG
26231 callx8.tls a8, foo@TLSCALL'
26233 esac
26234 set_have_as_tls=no
26235 if test "x$enable_tls" = xno ; then
26236 : # TLS explicitly disabled.
26237 elif test "x$enable_tls" = xyes ; then
26238 set_have_as_tls=yes # TLS explicitly enabled.
26239 elif test -z "$conftest_s"; then
26240 : # If we don't have a check, assume no support.
26241 else
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
26243 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
26244 if ${gcc_cv_as_tls+:} false; then :
26245 $as_echo_n "(cached) " >&6
26246 else
26247 gcc_cv_as_tls=no
26248 if test x$gcc_cv_as != x; then
26249 $as_echo "$conftest_s" > conftest.s
26250 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
26251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26252 (eval $ac_try) 2>&5
26253 ac_status=$?
26254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26255 test $ac_status = 0; }; }
26256 then
26257 gcc_cv_as_tls=yes
26258 else
26259 echo "configure: failed program was" >&5
26260 cat conftest.s >&5
26262 rm -f conftest.o conftest.s
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
26266 $as_echo "$gcc_cv_as_tls" >&6; }
26267 if test $gcc_cv_as_tls = yes; then
26268 set_have_as_tls=yes
26272 if test $set_have_as_tls = yes ; then
26274 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26278 # Target-specific assembler checks.
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26281 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26282 gcc_cv_ld_static_dynamic=no
26283 gcc_cv_ld_static_option='-Bstatic'
26284 gcc_cv_ld_dynamic_option='-Bdynamic'
26285 if test $in_tree_ld = yes ; then
26286 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
26287 gcc_cv_ld_static_dynamic=yes
26289 elif test x$gcc_cv_ld != x; then
26290 # Check if linker supports -Bstatic/-Bdynamic option
26291 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
26292 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
26293 gcc_cv_ld_static_dynamic=yes
26294 else
26295 case "$target" in
26296 # AIX ld uses -b flags
26297 *-*-aix4.[23]* | *-*-aix[5-9]*)
26298 gcc_cv_ld_static_dynamic=yes
26299 gcc_cv_ld_static_option="-bstatic"
26300 gcc_cv_ld_dynamic_option="-bdynamic"
26302 # HP-UX ld uses -a flags to select between shared and archive.
26303 *-*-hpux*)
26304 if test x"$gnu_ld" = xno; then
26305 gcc_cv_ld_static_dynamic=yes
26306 gcc_cv_ld_static_option="-aarchive_shared"
26307 gcc_cv_ld_dynamic_option="-adefault"
26310 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26311 *-*-solaris2*)
26312 gcc_cv_ld_static_dynamic=yes
26314 esac
26317 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
26319 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26322 cat >>confdefs.h <<_ACEOF
26323 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26324 _ACEOF
26327 cat >>confdefs.h <<_ACEOF
26328 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26329 _ACEOF
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26333 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26336 $as_echo_n "checking linker --version-script option... " >&6; }
26337 gcc_cv_ld_version_script=no
26338 ld_version_script_option=''
26339 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26340 gcc_cv_ld_version_script=yes
26341 ld_version_script_option='--version-script'
26342 elif test x$gcc_cv_ld != x; then
26343 case "$target" in
26344 # Solaris 2 ld always supports -M. It also supports a subset of
26345 # --version-script since Solaris 11.4, but requires
26346 # -z gnu-version-script-compat to activate.
26347 *-*-solaris2*)
26348 gcc_cv_ld_version_script=yes
26349 ld_version_script_option='-M'
26351 esac
26353 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26355 $as_echo "$gcc_cv_ld_version_script" >&6; }
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26359 $as_echo_n "checking linker soname option... " >&6; }
26360 gcc_cv_ld_soname=no
26361 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26362 gcc_cv_ld_soname=yes
26363 ld_soname_option='-soname'
26364 elif test x$gcc_cv_ld != x; then
26365 case "$target" in
26366 *-*-darwin*)
26367 gcc_cv_ld_soname=yes
26368 ld_soname_option='-install_name'
26370 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26371 # ld compatiblity since some Solaris 10 update.
26372 *-*-solaris2*)
26373 gcc_cv_ld_soname=yes
26374 ld_soname_option='-h'
26376 esac
26378 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26380 $as_echo "$gcc_cv_ld_soname" >&6; }
26383 if test x"$demangler_in_ld" = xyes; then
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26385 $as_echo_n "checking linker --demangle support... " >&6; }
26386 gcc_cv_ld_demangle=no
26387 if test $in_tree_ld = yes; then
26388 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 \
26389 gcc_cv_ld_demangle=yes
26391 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26392 # Check if the GNU linker supports --demangle option
26393 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26394 gcc_cv_ld_demangle=yes
26397 if test x"$gcc_cv_ld_demangle" = xyes; then
26399 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26403 $as_echo "$gcc_cv_ld_demangle" >&6; }
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26407 $as_echo_n "checking linker plugin support... " >&6; }
26408 gcc_cv_lto_plugin=0
26409 if test -f liblto_plugin.la; then
26410 save_ld_ver="$ld_ver"
26411 save_ld_vers_major="$ld_vers_major"
26412 save_ld_vers_minor="$ld_vers_minor"
26413 save_ld_is_gold="$ld_is_gold"
26415 ld_is_gold=no
26417 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26418 ld_ver="GNU ld"
26419 # FIXME: ld_is_gold?
26420 ld_vers_major="$gcc_cv_gld_major_version"
26421 ld_vers_minor="$gcc_cv_gld_minor_version"
26422 else
26423 # Determine plugin linker version.
26424 # FIXME: Partial duplicate from above, generalize.
26425 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26426 if echo "$ld_ver" | grep GNU > /dev/null; then
26427 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26428 ld_is_gold=yes
26429 ld_vers=`echo $ld_ver | sed -n \
26430 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26431 else
26432 ld_vers=`echo $ld_ver | sed -n \
26433 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26435 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26436 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26440 # Determine plugin support.
26441 if echo "$ld_ver" | grep GNU > /dev/null; then
26442 # Require GNU ld or gold 2.21+ for plugin support by default.
26443 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26444 gcc_cv_lto_plugin=2
26445 elif test "$ld_is_mold" = yes; then
26446 gcc_cv_lto_plugin=2
26447 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26448 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26449 gcc_cv_lto_plugin=1
26453 ld_ver="$save_ld_ver"
26454 ld_vers_major="$save_ld_vers_major"
26455 ld_vers_minor="$save_ld_vers_minor"
26456 ld_is_gold="$save_ld_is_gold"
26459 cat >>confdefs.h <<_ACEOF
26460 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26461 _ACEOF
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26464 $as_echo "$gcc_cv_lto_plugin" >&6; }
26466 # Target OS-specific assembler checks.
26468 case "$target_os" in
26469 darwin*)
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26471 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26472 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26473 $as_echo_n "(cached) " >&6
26474 else
26475 gcc_cv_as_mmacosx_version_min=no
26476 if test x$gcc_cv_as != x; then
26477 $as_echo '.text' > conftest.s
26478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26480 (eval $ac_try) 2>&5
26481 ac_status=$?
26482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26483 test $ac_status = 0; }; }
26484 then
26485 gcc_cv_as_mmacosx_version_min=yes
26486 else
26487 echo "configure: failed program was" >&5
26488 cat conftest.s >&5
26490 rm -f conftest.o conftest.s
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26494 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26495 if test $gcc_cv_as_mmacosx_version_min = yes; then
26497 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26501 if test x$gcc_cv_as_mmacosx_version_min = "xyes"; then
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
26503 $as_echo_n "checking assembler for .build_version... " >&6; }
26504 if ${gcc_cv_as_darwin_build_version+:} false; then :
26505 $as_echo_n "(cached) " >&6
26506 else
26507 gcc_cv_as_darwin_build_version=no
26508 if test x$gcc_cv_as != x; then
26509 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
26510 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
26511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26515 test $ac_status = 0; }; }
26516 then
26517 gcc_cv_as_darwin_build_version=yes
26518 else
26519 echo "configure: failed program was" >&5
26520 cat conftest.s >&5
26522 rm -f conftest.o conftest.s
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
26526 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
26527 if test $gcc_cv_as_darwin_build_version = yes; then
26529 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
26535 esac
26537 # Target CPU-specific assembler checks.
26539 case "$target" in
26540 aarch64*-*-*)
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26542 $as_echo_n "checking assembler for -mabi option... " >&6; }
26543 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26544 $as_echo_n "(cached) " >&6
26545 else
26546 gcc_cv_as_aarch64_mabi=no
26547 if test x$gcc_cv_as != x; then
26548 $as_echo '.text' > conftest.s
26549 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26551 (eval $ac_try) 2>&5
26552 ac_status=$?
26553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26554 test $ac_status = 0; }; }
26555 then
26556 gcc_cv_as_aarch64_mabi=yes
26557 else
26558 echo "configure: failed program was" >&5
26559 cat conftest.s >&5
26561 rm -f conftest.o conftest.s
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26565 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26568 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26570 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26572 else
26573 if test x$with_abi = xilp32; then
26574 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26575 Upgrade the Assembler." "$LINENO" 5
26577 if test x"$with_multilib_list" = xdefault; then
26578 TM_MULTILIB_CONFIG=lp64
26579 else
26580 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26581 for aarch64_multilib in ${aarch64_multilibs}; do
26582 case ${aarch64_multilib} in
26583 ilp32)
26584 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26585 Upgrade the Assembler." "$LINENO" 5
26589 esac
26590 done
26593 # Check if we have binutils support for relocations types needed by -fpic
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26595 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26596 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26597 $as_echo_n "(cached) " >&6
26598 else
26599 gcc_cv_as_aarch64_picreloc=no
26600 if test x$gcc_cv_as != x; then
26601 $as_echo '
26602 .text
26603 ldr x0, [x2, #:gotpage_lo15:globalsym]
26604 ' > conftest.s
26605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26607 (eval $ac_try) 2>&5
26608 ac_status=$?
26609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26610 test $ac_status = 0; }; }
26611 then
26612 gcc_cv_as_aarch64_picreloc=yes
26613 else
26614 echo "configure: failed program was" >&5
26615 cat conftest.s >&5
26617 rm -f conftest.o conftest.s
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26621 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26622 if test $gcc_cv_as_aarch64_picreloc = yes; then
26624 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26628 # Enable Branch Target Identification Mechanism and Return Address
26629 # Signing by default.
26630 # Check whether --enable-standard-branch-protection was given.
26631 if test "${enable_standard_branch_protection+set}" = set; then :
26632 enableval=$enable_standard_branch_protection;
26633 case $enableval in
26634 yes)
26635 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26640 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26641 Valid choices are 'yes' and 'no'." "$LINENO" 5
26643 esac
26647 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26648 # Check whether --enable-fix-cortex-a53-835769 was given.
26649 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26650 enableval=$enable_fix_cortex_a53_835769;
26651 case $enableval in
26652 yes)
26653 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26658 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26659 Valid choices are 'yes' and 'no'." "$LINENO" 5
26662 esac
26666 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26667 # Check whether --enable-fix-cortex-a53-843419 was given.
26668 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26669 enableval=$enable_fix_cortex_a53_843419;
26670 case $enableval in
26671 yes)
26672 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26677 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26678 Valid choices are 'yes' and 'no'." "$LINENO" 5
26681 esac
26687 # All TARGET_ABI_OSF targets.
26688 alpha*-*-linux* | alpha*-*-*bsd*)
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26690 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26691 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26692 $as_echo_n "(cached) " >&6
26693 else
26694 gcc_cv_as_alpha_explicit_relocs=no
26695 if test x$gcc_cv_as != x; then
26696 $as_echo ' .set nomacro
26697 .text
26698 extbl $3, $2, $3 !lituse_bytoff!1
26699 ldq $2, a($29) !literal!1
26700 ldq $4, b($29) !literal!2
26701 ldq_u $3, 0($2) !lituse_base!1
26702 ldq $27, f($29) !literal!5
26703 jsr $26, ($27), f !lituse_jsr!5
26704 ldah $29, 0($26) !gpdisp!3
26705 lda $0, c($29) !gprel
26706 ldah $1, d($29) !gprelhigh
26707 lda $1, d($1) !gprellow
26708 lda $29, 0($29) !gpdisp!3' > conftest.s
26709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26711 (eval $ac_try) 2>&5
26712 ac_status=$?
26713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26714 test $ac_status = 0; }; }
26715 then
26716 gcc_cv_as_alpha_explicit_relocs=yes
26717 else
26718 echo "configure: failed program was" >&5
26719 cat conftest.s >&5
26721 rm -f conftest.o conftest.s
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26725 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26726 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26728 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26733 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26734 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26735 $as_echo_n "(cached) " >&6
26736 else
26737 gcc_cv_as_alpha_jsrdirect_relocs=no
26738 if test x$gcc_cv_as != x; then
26739 $as_echo ' .set nomacro
26740 .text
26741 ldq $27, a($29) !literal!1
26742 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26745 (eval $ac_try) 2>&5
26746 ac_status=$?
26747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26748 test $ac_status = 0; }; }
26749 then
26750 gcc_cv_as_alpha_jsrdirect_relocs=yes
26751 else
26752 echo "configure: failed program was" >&5
26753 cat conftest.s >&5
26755 rm -f conftest.o conftest.s
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26759 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26760 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26762 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26768 avr-*-*)
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26770 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26771 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26772 $as_echo_n "(cached) " >&6
26773 else
26774 gcc_cv_as_avr_mlink_relax=no
26775 if test x$gcc_cv_as != x; then
26776 $as_echo '.text' > conftest.s
26777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26782 test $ac_status = 0; }; }
26783 then
26784 gcc_cv_as_avr_mlink_relax=yes
26785 else
26786 echo "configure: failed program was" >&5
26787 cat conftest.s >&5
26789 rm -f conftest.o conftest.s
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26793 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26794 if test $gcc_cv_as_avr_mlink_relax = yes; then
26796 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26802 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26803 if ${gcc_cv_as_avr_mrmw+:} false; then :
26804 $as_echo_n "(cached) " >&6
26805 else
26806 gcc_cv_as_avr_mrmw=no
26807 if test x$gcc_cv_as != x; then
26808 $as_echo '.text' > conftest.s
26809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26811 (eval $ac_try) 2>&5
26812 ac_status=$?
26813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26814 test $ac_status = 0; }; }
26815 then
26816 gcc_cv_as_avr_mrmw=yes
26817 else
26818 echo "configure: failed program was" >&5
26819 cat conftest.s >&5
26821 rm -f conftest.o conftest.s
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26825 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26826 if test $gcc_cv_as_avr_mrmw = yes; then
26828 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26834 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26835 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26836 $as_echo_n "(cached) " >&6
26837 else
26838 gcc_cv_as_avr_mgccisr=no
26839 if test x$gcc_cv_as != x; then
26840 $as_echo '.text
26841 __gcc_isr 1
26842 __gcc_isr 2
26843 __gcc_isr 0,r24
26844 ' > conftest.s
26845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26850 test $ac_status = 0; }; }
26851 then
26852 gcc_cv_as_avr_mgccisr=yes
26853 else
26854 echo "configure: failed program was" >&5
26855 cat conftest.s >&5
26857 rm -f conftest.o conftest.s
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26861 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26862 if test $gcc_cv_as_avr_mgccisr = yes; then
26864 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26869 # Check how default linker description file implements .rodata for
26870 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26871 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26873 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26874 cat > conftest.s <<EOF
26875 .section .rodata,"a",@progbits
26876 .global xxvaryy
26877 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26878 xxvaryy:
26879 .word 1
26881 rm -f conftest.nm
26882 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26884 (eval $ac_try) 2>&5
26885 ac_status=$?
26886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26887 test $ac_status = 0; }; }
26888 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26890 (eval $ac_try) 2>&5
26891 ac_status=$?
26892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26893 test $ac_status = 0; }; }
26894 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26896 (eval $ac_try) 2>&5
26897 ac_status=$?
26898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26899 test $ac_status = 0; }; }
26900 if test -s conftest.nm
26901 then
26902 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26904 $as_echo "yes" >&6; }
26906 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26908 else
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26910 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26911 echo "$as_me: nm output was" >&5
26912 cat conftest.nm >&5
26913 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26914 { $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
26915 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26917 else
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26919 $as_echo "test failed" >&6; }
26920 echo "$as_me: failed program was" >&5
26921 cat conftest.s >&5
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26923 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26925 rm -f conftest.s conftest.o conftest.elf conftest.nm
26928 cris-*-*)
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26930 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26931 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26932 $as_echo_n "(cached) " >&6
26933 else
26934 gcc_cv_as_cris_no_mul_bug=no
26935 if test x$gcc_cv_as != x; then
26936 $as_echo '.text' > conftest.s
26937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26939 (eval $ac_try) 2>&5
26940 ac_status=$?
26941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26942 test $ac_status = 0; }; }
26943 then
26944 gcc_cv_as_cris_no_mul_bug=yes
26945 else
26946 echo "configure: failed program was" >&5
26947 cat conftest.s >&5
26949 rm -f conftest.o conftest.s
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26953 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26954 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26956 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26962 sparc*-*-*)
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26964 $as_echo_n "checking assembler for -relax option... " >&6; }
26965 if ${gcc_cv_as_sparc_relax+:} false; then :
26966 $as_echo_n "(cached) " >&6
26967 else
26968 gcc_cv_as_sparc_relax=no
26969 if test x$gcc_cv_as != x; then
26970 $as_echo '.text' > conftest.s
26971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26973 (eval $ac_try) 2>&5
26974 ac_status=$?
26975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26976 test $ac_status = 0; }; }
26977 then
26978 gcc_cv_as_sparc_relax=yes
26979 else
26980 echo "configure: failed program was" >&5
26981 cat conftest.s >&5
26983 rm -f conftest.o conftest.s
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26987 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26988 if test $gcc_cv_as_sparc_relax = yes; then
26990 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26996 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26997 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26998 $as_echo_n "(cached) " >&6
26999 else
27000 gcc_cv_as_sparc_gotdata_op=no
27001 if test x$gcc_cv_as != x; then
27002 $as_echo '.text
27003 .align 4
27004 foo:
27006 bar:
27007 sethi %gdop_hix22(foo), %g1
27008 xor %g1, %gdop_lox10(foo), %g1
27009 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
27010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
27011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27012 (eval $ac_try) 2>&5
27013 ac_status=$?
27014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27015 test $ac_status = 0; }; }
27016 then
27017 if test x$gcc_cv_ld != x \
27018 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
27019 if test x$gcc_cv_objdump != x; then
27020 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
27021 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
27022 gcc_cv_as_sparc_gotdata_op=no
27023 else
27024 gcc_cv_as_sparc_gotdata_op=yes
27028 rm -f conftest
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_sparc_gotdata_op" >&5
27037 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
27038 if test $gcc_cv_as_sparc_gotdata_op = yes; then
27040 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
27046 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
27047 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
27048 $as_echo_n "(cached) " >&6
27049 else
27050 gcc_cv_as_sparc_ua_pcrel=no
27051 if test x$gcc_cv_as != x; then
27052 $as_echo '.text
27053 foo:
27055 .data
27056 .align 4
27057 .byte 0
27058 .uaword %r_disp32(foo)' > conftest.s
27059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
27060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27061 (eval $ac_try) 2>&5
27062 ac_status=$?
27063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064 test $ac_status = 0; }; }
27065 then
27066 if test x$gcc_cv_ld != x \
27067 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
27068 gcc_cv_as_sparc_ua_pcrel=yes
27070 rm -f conftest
27071 else
27072 echo "configure: failed program was" >&5
27073 cat conftest.s >&5
27075 rm -f conftest.o conftest.s
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
27079 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
27080 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
27082 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
27086 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
27087 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
27088 $as_echo_n "(cached) " >&6
27089 else
27090 gcc_cv_as_sparc_ua_pcrel_hidden=no
27091 if test x$gcc_cv_as != x; then
27092 $as_echo '.data
27093 .align 4
27094 .byte 0x31
27095 .uaword %r_disp32(foo)
27096 .byte 0x32, 0x33, 0x34
27097 .global foo
27098 .hidden foo
27099 foo:
27100 .skip 4' > conftest.s
27101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
27102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27103 (eval $ac_try) 2>&5
27104 ac_status=$?
27105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27106 test $ac_status = 0; }; }
27107 then
27108 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27109 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
27110 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
27111 | grep ' 31000000 07323334' > /dev/null 2>&1; then
27112 if $gcc_cv_objdump -R conftest 2> /dev/null \
27113 | grep 'DISP32' > /dev/null 2>&1; then
27115 else
27116 gcc_cv_as_sparc_ua_pcrel_hidden=yes
27119 rm -f conftest
27120 else
27121 echo "configure: failed program was" >&5
27122 cat conftest.s >&5
27124 rm -f conftest.o conftest.s
27127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
27128 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
27129 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
27131 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
27137 # unaligned pcrel relocs
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
27140 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
27141 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
27142 $as_echo_n "(cached) " >&6
27143 else
27144 gcc_cv_as_sparc_offsetable_lo10=no
27145 if test x$gcc_cv_as != x; then
27146 $as_echo '.text
27147 or %g1, %lo(ab) + 12, %g1
27148 or %g1, %lo(ab + 12), %g1' > conftest.s
27149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
27150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27151 (eval $ac_try) 2>&5
27152 ac_status=$?
27153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27154 test $ac_status = 0; }; }
27155 then
27156 if test x$gcc_cv_objdump != x \
27157 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
27158 | grep ' 82106000 82106000' > /dev/null 2>&1; then
27159 gcc_cv_as_sparc_offsetable_lo10=yes
27161 else
27162 echo "configure: failed program was" >&5
27163 cat conftest.s >&5
27165 rm -f conftest.o conftest.s
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
27169 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
27170 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
27172 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
27178 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
27179 if ${gcc_cv_as_sparc_fmaf+:} false; then :
27180 $as_echo_n "(cached) " >&6
27181 else
27182 gcc_cv_as_sparc_fmaf=no
27183 if test x$gcc_cv_as != x; then
27184 $as_echo '.text
27185 .register %g2, #scratch
27186 .register %g3, #scratch
27187 .align 4
27188 fmaddd %f0, %f2, %f4, %f6
27189 addxccc %g1, %g2, %g3
27190 fsrl32 %f2, %f4, %f8
27191 fnaddd %f10, %f12, %f14' > conftest.s
27192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
27193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27194 (eval $ac_try) 2>&5
27195 ac_status=$?
27196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27197 test $ac_status = 0; }; }
27198 then
27199 gcc_cv_as_sparc_fmaf=yes
27200 else
27201 echo "configure: failed program was" >&5
27202 cat conftest.s >&5
27204 rm -f conftest.o conftest.s
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
27208 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
27209 if test $gcc_cv_as_sparc_fmaf = yes; then
27211 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
27217 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
27218 if ${gcc_cv_as_sparc_sparc4+:} false; then :
27219 $as_echo_n "(cached) " >&6
27220 else
27221 gcc_cv_as_sparc_sparc4=no
27222 if test x$gcc_cv_as != x; then
27223 $as_echo '.text
27224 .register %g2, #scratch
27225 .register %g3, #scratch
27226 .align 4
27227 cxbe %g2, %g3, 1f
27228 1: cwbneg %g2, %g3, 1f
27229 1: sha1
27231 aes_kexpand0 %f4, %f6, %f8
27232 des_round %f38, %f40, %f42, %f44
27233 camellia_f %f54, %f56, %f58, %f60
27234 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
27235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
27236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27237 (eval $ac_try) 2>&5
27238 ac_status=$?
27239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27240 test $ac_status = 0; }; }
27241 then
27242 gcc_cv_as_sparc_sparc4=yes
27243 else
27244 echo "configure: failed program was" >&5
27245 cat conftest.s >&5
27247 rm -f conftest.o conftest.s
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
27251 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
27252 if test $gcc_cv_as_sparc_sparc4 = yes; then
27254 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
27260 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
27261 if ${gcc_cv_as_sparc_sparc5+:} false; then :
27262 $as_echo_n "(cached) " >&6
27263 else
27264 gcc_cv_as_sparc_sparc5=no
27265 if test x$gcc_cv_as != x; then
27266 $as_echo '.text
27267 .register %g2, #scratch
27268 .register %g3, #scratch
27269 .align 4
27270 subxc %g1, %g2, %g3
27271 fpadd8 %f0, %f2, %f4' > conftest.s
27272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
27273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27274 (eval $ac_try) 2>&5
27275 ac_status=$?
27276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27277 test $ac_status = 0; }; }
27278 then
27279 gcc_cv_as_sparc_sparc5=yes
27280 else
27281 echo "configure: failed program was" >&5
27282 cat conftest.s >&5
27284 rm -f conftest.o conftest.s
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
27288 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
27289 if test $gcc_cv_as_sparc_sparc5 = yes; then
27291 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
27297 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
27298 if ${gcc_cv_as_sparc_sparc6+:} false; then :
27299 $as_echo_n "(cached) " >&6
27300 else
27301 gcc_cv_as_sparc_sparc6=no
27302 if test x$gcc_cv_as != x; then
27303 $as_echo '.text
27304 .register %g2, #scratch
27305 .register %g3, #scratch
27306 .align 4
27307 rd %entropy, %g1
27308 fpsll64x %f0, %f2, %f4' > conftest.s
27309 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27311 (eval $ac_try) 2>&5
27312 ac_status=$?
27313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27314 test $ac_status = 0; }; }
27315 then
27316 gcc_cv_as_sparc_sparc6=yes
27317 else
27318 echo "configure: failed program was" >&5
27319 cat conftest.s >&5
27321 rm -f conftest.o conftest.s
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27325 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27326 if test $gcc_cv_as_sparc_sparc6 = yes; then
27328 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27334 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27335 if ${gcc_cv_as_sparc_leon+:} false; then :
27336 $as_echo_n "(cached) " >&6
27337 else
27338 gcc_cv_as_sparc_leon=no
27339 if test x$gcc_cv_as != x; then
27340 $as_echo '.text
27341 .register %g2, #scratch
27342 .register %g3, #scratch
27343 .align 4
27344 smac %g2, %g3, %g1
27345 umac %g2, %g3, %g1
27346 casa [%g2] 0xb, %g3, %g1' > conftest.s
27347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27349 (eval $ac_try) 2>&5
27350 ac_status=$?
27351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27352 test $ac_status = 0; }; }
27353 then
27354 gcc_cv_as_sparc_leon=yes
27355 else
27356 echo "configure: failed program was" >&5
27357 cat conftest.s >&5
27359 rm -f conftest.o conftest.s
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27363 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27364 if test $gcc_cv_as_sparc_leon = yes; then
27366 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27372 i[34567]86-*-* | x86_64-*-*)
27373 case $target_os in
27374 cygwin*)
27375 # Full C++ conformance when using a shared libstdc++-v3 requires some
27376 # support from the Cygwin DLL, which in more recent versions exports
27377 # wrappers to aid in interposing and redirecting operators new, delete,
27378 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27379 # are configuring for a version of Cygwin that exports the wrappers.
27380 if test x$host = x$target && test x$host_cpu = xi686; then
27381 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27382 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
27383 gcc_ac_cygwin_dll_wrappers=yes
27384 else
27385 gcc_ac_cygwin_dll_wrappers=no
27388 else
27389 # Can't check presence of libc functions during cross-compile, so
27390 # we just have to assume we're building for an up-to-date target.
27391 gcc_ac_cygwin_dll_wrappers=yes
27394 cat >>confdefs.h <<_ACEOF
27395 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27396 _ACEOF
27398 esac
27399 case $target_os in
27400 cygwin* | pe | mingw32*)
27401 # Recent binutils allows the three-operand form of ".comm" on PE. This
27402 # definition is used unconditionally to initialise the default state of
27403 # the target option variable that governs usage of the feature.
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27405 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27406 if ${gcc_cv_as_comm_has_align+:} false; then :
27407 $as_echo_n "(cached) " >&6
27408 else
27409 gcc_cv_as_comm_has_align=no
27410 if test x$gcc_cv_as != x; then
27411 $as_echo '.comm foo,1,32' > conftest.s
27412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27414 (eval $ac_try) 2>&5
27415 ac_status=$?
27416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27417 test $ac_status = 0; }; }
27418 then
27419 gcc_cv_as_comm_has_align=yes
27420 else
27421 echo "configure: failed program was" >&5
27422 cat conftest.s >&5
27424 rm -f conftest.o conftest.s
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27428 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27432 cat >>confdefs.h <<_ACEOF
27433 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27434 _ACEOF
27436 # Used for DWARF 2 in PE
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27438 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27439 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27440 $as_echo_n "(cached) " >&6
27441 else
27442 gcc_cv_as_ix86_pe_secrel32=no
27443 if test x$gcc_cv_as != x; then
27444 $as_echo '.text
27445 foo: nop
27446 .data
27447 .secrel32 foo' > conftest.s
27448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27450 (eval $ac_try) 2>&5
27451 ac_status=$?
27452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27453 test $ac_status = 0; }; }
27454 then
27455 if test x$gcc_cv_ld != x \
27456 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27457 gcc_cv_as_ix86_pe_secrel32=yes
27459 rm -f conftest
27460 else
27461 echo "configure: failed program was" >&5
27462 cat conftest.s >&5
27464 rm -f conftest.o conftest.s
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27468 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27469 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27471 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27475 # Test if the assembler supports the extended form of the .section
27476 # directive that specifies section alignment. LTO support uses this,
27477 # but normally only after installation, so we warn but don't fail the
27478 # configure if LTO is enabled but the assembler does not support it.
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27480 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27481 if ${gcc_cv_as_section_has_align+:} false; then :
27482 $as_echo_n "(cached) " >&6
27483 else
27484 gcc_cv_as_section_has_align=no
27485 if test x$gcc_cv_as != x; then
27486 $as_echo '.section lto_test,"dr0"' > conftest.s
27487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27489 (eval $ac_try) 2>&5
27490 ac_status=$?
27491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27492 test $ac_status = 0; }; }
27493 then
27494 gcc_cv_as_section_has_align=yes
27495 else
27496 echo "configure: failed program was" >&5
27497 cat conftest.s >&5
27499 rm -f conftest.o conftest.s
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27503 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27506 if test x$gcc_cv_as_section_has_align != xyes; then
27507 case ",$enable_languages," in
27508 *,lto,*)
27509 { $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
27510 $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;}
27512 esac
27515 esac
27516 case $target_os in
27517 darwin2* | darwin19*)
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27519 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27520 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27521 $as_echo_n "(cached) " >&6
27522 else
27523 gcc_cv_as_mllvm_x86_pad_for_align=no
27524 if test x$gcc_cv_as != x; then
27525 $as_echo '.text' > conftest.s
27526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27528 (eval $ac_try) 2>&5
27529 ac_status=$?
27530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27531 test $ac_status = 0; }; }
27532 then
27533 gcc_cv_as_mllvm_x86_pad_for_align=yes
27534 else
27535 echo "configure: failed program was" >&5
27536 cat conftest.s >&5
27538 rm -f conftest.o conftest.s
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27542 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27543 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27545 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27550 esac
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27553 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27554 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27555 $as_echo_n "(cached) " >&6
27556 else
27557 gcc_cv_as_ix86_xbrace_comment=no
27558 if test x$gcc_cv_as != x; then
27559 $as_echo '.text' > conftest.s
27560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27562 (eval $ac_try) 2>&5
27563 ac_status=$?
27564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27565 test $ac_status = 0; }; }
27566 then
27567 gcc_cv_as_ix86_xbrace_comment=yes
27568 else
27569 echo "configure: failed program was" >&5
27570 cat conftest.s >&5
27572 rm -f conftest.o conftest.s
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27576 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27577 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27579 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27585 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27586 if ${gcc_cv_as_ix86_filds+:} false; then :
27587 $as_echo_n "(cached) " >&6
27588 else
27589 gcc_cv_as_ix86_filds=no
27590 if test x$gcc_cv_as != x; then
27591 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27592 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27594 (eval $ac_try) 2>&5
27595 ac_status=$?
27596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27597 test $ac_status = 0; }; }
27598 then
27599 gcc_cv_as_ix86_filds=yes
27600 else
27601 echo "configure: failed program was" >&5
27602 cat conftest.s >&5
27604 rm -f conftest.o conftest.s
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27608 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27609 if test $gcc_cv_as_ix86_filds = yes; then
27611 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27617 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27618 if ${gcc_cv_as_ix86_fildq+:} false; then :
27619 $as_echo_n "(cached) " >&6
27620 else
27621 gcc_cv_as_ix86_fildq=no
27622 if test x$gcc_cv_as != x; then
27623 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27626 (eval $ac_try) 2>&5
27627 ac_status=$?
27628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27629 test $ac_status = 0; }; }
27630 then
27631 gcc_cv_as_ix86_fildq=yes
27632 else
27633 echo "configure: failed program was" >&5
27634 cat conftest.s >&5
27636 rm -f conftest.o conftest.s
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27640 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27641 if test $gcc_cv_as_ix86_fildq = yes; then
27643 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27649 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27650 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27651 $as_echo_n "(cached) " >&6
27652 else
27653 gcc_cv_as_ix86_cmov_sun_syntax=no
27654 if test x$gcc_cv_as != x; then
27655 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27656 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27658 (eval $ac_try) 2>&5
27659 ac_status=$?
27660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27661 test $ac_status = 0; }; }
27662 then
27663 gcc_cv_as_ix86_cmov_sun_syntax=yes
27664 else
27665 echo "configure: failed program was" >&5
27666 cat conftest.s >&5
27668 rm -f conftest.o conftest.s
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27672 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27673 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27675 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27681 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27682 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27683 $as_echo_n "(cached) " >&6
27684 else
27685 gcc_cv_as_ix86_ffreep=no
27686 if test x$gcc_cv_as != x; then
27687 $as_echo 'ffreep %st(1)' > conftest.s
27688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27690 (eval $ac_try) 2>&5
27691 ac_status=$?
27692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27693 test $ac_status = 0; }; }
27694 then
27695 gcc_cv_as_ix86_ffreep=yes
27696 else
27697 echo "configure: failed program was" >&5
27698 cat conftest.s >&5
27700 rm -f conftest.o conftest.s
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27704 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27705 if test $gcc_cv_as_ix86_ffreep = yes; then
27707 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27713 $as_echo_n "checking assembler for .quad directive... " >&6; }
27714 if ${gcc_cv_as_ix86_quad+:} false; then :
27715 $as_echo_n "(cached) " >&6
27716 else
27717 gcc_cv_as_ix86_quad=no
27718 if test x$gcc_cv_as != x; then
27719 $as_echo '.quad 0' > conftest.s
27720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27722 (eval $ac_try) 2>&5
27723 ac_status=$?
27724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27725 test $ac_status = 0; }; }
27726 then
27727 gcc_cv_as_ix86_quad=yes
27728 else
27729 echo "configure: failed program was" >&5
27730 cat conftest.s >&5
27732 rm -f conftest.o conftest.s
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27736 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27737 if test $gcc_cv_as_ix86_quad = yes; then
27739 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27745 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27746 if ${gcc_cv_as_ix86_sahf+:} false; then :
27747 $as_echo_n "(cached) " >&6
27748 else
27749 gcc_cv_as_ix86_sahf=no
27750 if test x$gcc_cv_as != x; then
27751 $as_echo '.code64
27752 sahf' > conftest.s
27753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27755 (eval $ac_try) 2>&5
27756 ac_status=$?
27757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27758 test $ac_status = 0; }; }
27759 then
27760 gcc_cv_as_ix86_sahf=yes
27761 else
27762 echo "configure: failed program was" >&5
27763 cat conftest.s >&5
27765 rm -f conftest.o conftest.s
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27769 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27770 if test $gcc_cv_as_ix86_sahf = yes; then
27772 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27778 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27779 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27780 $as_echo_n "(cached) " >&6
27781 else
27782 gcc_cv_as_ix86_interunit_movq=no
27783 if test x$gcc_cv_as != x; then
27784 $as_echo '.code64
27785 movq %mm0, %rax
27786 movq %rax, %xmm0' > conftest.s
27787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27789 (eval $ac_try) 2>&5
27790 ac_status=$?
27791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27792 test $ac_status = 0; }; }
27793 then
27794 gcc_cv_as_ix86_interunit_movq=yes
27795 else
27796 echo "configure: failed program was" >&5
27797 cat conftest.s >&5
27799 rm -f conftest.o conftest.s
27802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27803 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27807 cat >>confdefs.h <<_ACEOF
27808 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27809 _ACEOF
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27813 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27814 if ${gcc_cv_as_ix86_hle+:} false; then :
27815 $as_echo_n "(cached) " >&6
27816 else
27817 gcc_cv_as_ix86_hle=no
27818 if test x$gcc_cv_as != x; then
27819 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27822 (eval $ac_try) 2>&5
27823 ac_status=$?
27824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27825 test $ac_status = 0; }; }
27826 then
27827 gcc_cv_as_ix86_hle=yes
27828 else
27829 echo "configure: failed program was" >&5
27830 cat conftest.s >&5
27832 rm -f conftest.o conftest.s
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27836 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27837 if test $gcc_cv_as_ix86_hle = yes; then
27839 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27845 $as_echo_n "checking assembler for swap suffix... " >&6; }
27846 if ${gcc_cv_as_ix86_swap+:} false; then :
27847 $as_echo_n "(cached) " >&6
27848 else
27849 gcc_cv_as_ix86_swap=no
27850 if test x$gcc_cv_as != x; then
27851 $as_echo 'movl.s %esp, %ebp' > conftest.s
27852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27854 (eval $ac_try) 2>&5
27855 ac_status=$?
27856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27857 test $ac_status = 0; }; }
27858 then
27859 gcc_cv_as_ix86_swap=yes
27860 else
27861 echo "configure: failed program was" >&5
27862 cat conftest.s >&5
27864 rm -f conftest.o conftest.s
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27868 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27869 if test $gcc_cv_as_ix86_swap = yes; then
27871 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27877 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27878 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27879 $as_echo_n "(cached) " >&6
27880 else
27881 gcc_cv_as_ix86_diff_sect_delta=no
27882 if test x$gcc_cv_as != x; then
27883 $as_echo '.section .rodata
27884 .L1:
27885 .long .L2-.L1
27886 .long .L3-.L1
27887 .text
27888 .L3: nop
27889 .L2: nop' > conftest.s
27890 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27892 (eval $ac_try) 2>&5
27893 ac_status=$?
27894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27895 test $ac_status = 0; }; }
27896 then
27897 gcc_cv_as_ix86_diff_sect_delta=yes
27898 else
27899 echo "configure: failed program was" >&5
27900 cat conftest.s >&5
27902 rm -f conftest.o conftest.s
27905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27906 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27907 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27909 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27915 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27916 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27917 $as_echo_n "(cached) " >&6
27918 else
27919 gcc_cv_as_ix86_rep_lock_prefix=no
27920 if test x$gcc_cv_as != x; then
27921 $as_echo 'rep movsl
27922 rep ret
27923 rep nop
27924 rep bsf %ecx, %eax
27925 rep bsr %ecx, %eax
27926 lock addl %edi, (%eax,%esi)
27927 lock orl $0, (%esp)' > conftest.s
27928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27930 (eval $ac_try) 2>&5
27931 ac_status=$?
27932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27933 test $ac_status = 0; }; }
27934 then
27935 gcc_cv_as_ix86_rep_lock_prefix=yes
27936 else
27937 echo "configure: failed program was" >&5
27938 cat conftest.s >&5
27940 rm -f conftest.o conftest.s
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27944 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27945 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27947 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27953 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27954 if ${gcc_cv_as_ix86_ud2+:} false; then :
27955 $as_echo_n "(cached) " >&6
27956 else
27957 gcc_cv_as_ix86_ud2=no
27958 if test x$gcc_cv_as != x; then
27959 $as_echo 'ud2' > conftest.s
27960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27962 (eval $ac_try) 2>&5
27963 ac_status=$?
27964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27965 test $ac_status = 0; }; }
27966 then
27967 gcc_cv_as_ix86_ud2=yes
27968 else
27969 echo "configure: failed program was" >&5
27970 cat conftest.s >&5
27972 rm -f conftest.o conftest.s
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27976 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27977 if test $gcc_cv_as_ix86_ud2 = yes; then
27979 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27984 # Enforce 32-bit output with gas and gld.
27985 if test x$gas = xyes; then
27986 as_ix86_gas_32_opt="--32"
27988 if echo "$ld_ver" | grep GNU > /dev/null; then
27989 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27990 ld_ix86_gld_32_opt="-melf_i386_sol2"
27991 else
27992 ld_ix86_gld_32_opt="-melf_i386"
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27997 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27998 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27999 $as_echo_n "(cached) " >&6
28000 else
28001 gcc_cv_as_ix86_tlsgdplt=no
28002 if test x$gcc_cv_as != x; then
28003 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
28004 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28006 (eval $ac_try) 2>&5
28007 ac_status=$?
28008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28009 test $ac_status = 0; }; }
28010 then
28011 if test x$gcc_cv_ld != x \
28012 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
28013 gcc_cv_as_ix86_tlsgdplt=yes
28015 rm -f conftest
28016 else
28017 echo "configure: failed program was" >&5
28018 cat conftest.s >&5
28020 rm -f conftest.o conftest.s
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
28024 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
28025 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
28027 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
28032 conftest_s='
28033 .section .tdata,"aw'$tls_section_flag'",@progbits
28034 tls_ld:
28035 .section .text,"ax",@progbits
28036 call tls_ld@tlsldmplt'
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
28039 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
28040 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
28041 $as_echo_n "(cached) " >&6
28042 else
28043 gcc_cv_as_ix86_tlsldmplt=no
28044 if test x$gcc_cv_as != x; then
28045 $as_echo "$conftest_s" > conftest.s
28046 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28048 (eval $ac_try) 2>&5
28049 ac_status=$?
28050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28051 test $ac_status = 0; }; }
28052 then
28053 if test x$gcc_cv_ld != x \
28054 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
28055 gcc_cv_as_ix86_tlsldmplt=yes
28057 rm -f conftest
28058 else
28059 echo "configure: failed program was" >&5
28060 cat conftest.s >&5
28062 rm -f conftest.o conftest.s
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
28066 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
28070 cat >>confdefs.h <<_ACEOF
28071 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
28072 _ACEOF
28075 conftest_s='
28076 .section .text,"ax",@progbits
28077 .globl _start
28078 .type _start, @function
28079 _start:
28080 leal value@tlsldm(%ebx), %eax
28081 call ___tls_get_addr@plt
28083 .section .tdata,"aw'$tls_section_flag'",@progbits
28084 .type value, @object
28085 value:'
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
28087 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
28088 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
28089 $as_echo_n "(cached) " >&6
28090 else
28091 gcc_cv_as_ix86_tlsldm=no
28092 if test x$gcc_cv_as != x; then
28093 $as_echo "$conftest_s" > conftest.s
28094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28096 (eval $ac_try) 2>&5
28097 ac_status=$?
28098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28099 test $ac_status = 0; }; }
28100 then
28101 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
28102 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
28103 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
28104 || dis conftest 2>/dev/null | grep nop > /dev/null; then
28105 gcc_cv_as_ix86_tlsldm=yes
28108 rm -f conftest
28109 else
28110 echo "configure: failed program was" >&5
28111 cat conftest.s >&5
28113 rm -f conftest.o conftest.s
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
28117 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
28121 cat >>confdefs.h <<_ACEOF
28122 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
28123 _ACEOF
28126 conftest_s='
28127 .data
28128 bar:
28129 .byte 1
28130 .text
28131 .global _start
28132 _start:
28133 cmpl $0, bar@GOT
28134 jmp *_start@GOT'
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
28136 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
28137 if ${gcc_cv_as_ix86_got32x+:} false; then :
28138 $as_echo_n "(cached) " >&6
28139 else
28140 gcc_cv_as_ix86_got32x=no
28141 if test x$gcc_cv_as != x; then
28142 $as_echo "$conftest_s" > conftest.s
28143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28145 (eval $ac_try) 2>&5
28146 ac_status=$?
28147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28148 test $ac_status = 0; }; }
28149 then
28150 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
28151 && test x$gcc_cv_readelf != x \
28152 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
28153 | grep R_386_GOT32X > /dev/null 2>&1 \
28154 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
28155 if $gcc_cv_objdump -dw conftest 2>&1 \
28156 | grep 0xffffff > /dev/null 2>&1; then
28157 gcc_cv_as_ix86_got32x=no
28158 else
28159 gcc_cv_as_ix86_got32x=yes
28162 rm -f conftest
28163 else
28164 echo "configure: failed program was" >&5
28165 cat conftest.s >&5
28167 rm -f conftest.o conftest.s
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
28171 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
28175 cat >>confdefs.h <<_ACEOF
28176 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
28177 _ACEOF
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
28181 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
28182 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
28183 $as_echo_n "(cached) " >&6
28184 else
28185 gcc_cv_as_ix86_gotoff_in_data=no
28186 if test x$gcc_cv_as != x; then
28187 $as_echo ' .text
28188 .L0:
28190 .data
28191 .long .L0@GOTOFF' > conftest.s
28192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28194 (eval $ac_try) 2>&5
28195 ac_status=$?
28196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28197 test $ac_status = 0; }; }
28198 then
28199 gcc_cv_as_ix86_gotoff_in_data=yes
28200 else
28201 echo "configure: failed program was" >&5
28202 cat conftest.s >&5
28204 rm -f conftest.o conftest.s
28207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
28208 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
28212 cat >>confdefs.h <<_ACEOF
28213 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
28214 _ACEOF
28217 conftest_s='
28218 .section .text,"ax",@progbits
28219 .globl _start
28220 .type _start, @function
28221 _start:
28222 leal ld@tlsldm(%ecx), %eax
28223 call *___tls_get_addr@GOT(%ecx)
28224 leal gd@tlsgd(%ecx), %eax
28225 call *___tls_get_addr@GOT(%ecx)
28227 .section .tdata,"aw'$tls_section_flag'",@progbits
28228 .type ld, @object
28230 .byte 0
28231 .globl gd
28232 .type gd, @object
28234 .byte 0'
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
28236 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
28237 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
28238 $as_echo_n "(cached) " >&6
28239 else
28240 gcc_cv_as_ix86_tls_get_addr_via_got=no
28241 if test x$gcc_cv_as != x; then
28242 $as_echo "$conftest_s" > conftest.s
28243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28245 (eval $ac_try) 2>&5
28246 ac_status=$?
28247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28248 test $ac_status = 0; }; }
28249 then
28250 if test x$gcc_cv_ld != x \
28251 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
28252 gcc_cv_as_ix86_tls_get_addr_via_got=yes
28254 rm -f conftest
28255 else
28256 echo "configure: failed program was" >&5
28257 cat conftest.s >&5
28259 rm -f conftest.o conftest.s
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
28263 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
28267 cat >>confdefs.h <<_ACEOF
28268 #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`
28269 _ACEOF
28273 ia64*-*-*)
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
28275 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
28276 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
28277 $as_echo_n "(cached) " >&6
28278 else
28279 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
28280 if test x$gcc_cv_as != x; then
28281 $as_echo ' .text
28282 addl r15 = @ltoffx(x#), gp
28284 ld8.mov r16 = [r15], x#
28285 ' > conftest.s
28286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28288 (eval $ac_try) 2>&5
28289 ac_status=$?
28290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28291 test $ac_status = 0; }; }
28292 then
28293 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
28294 else
28295 echo "configure: failed program was" >&5
28296 cat conftest.s >&5
28298 rm -f conftest.o conftest.s
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
28302 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
28303 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
28305 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28312 powerpc*-*-*)
28314 case $target in
28315 *-*-darwin*)
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28317 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28318 if ${gcc_cv_as_machine_directive+:} false; then :
28319 $as_echo_n "(cached) " >&6
28320 else
28321 gcc_cv_as_machine_directive=no
28322 if test x$gcc_cv_as != x; then
28323 $as_echo ' .machine ppc7400' > conftest.s
28324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28326 (eval $ac_try) 2>&5
28327 ac_status=$?
28328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28329 test $ac_status = 0; }; }
28330 then
28331 gcc_cv_as_machine_directive=yes
28332 else
28333 echo "configure: failed program was" >&5
28334 cat conftest.s >&5
28336 rm -f conftest.o conftest.s
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28340 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28343 if test x$gcc_cv_as_machine_directive != xyes; then
28344 echo "*** This target requires an assembler supporting \".machine\"" >&2
28345 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
28346 test x$build = x$target && exit 1
28349 esac
28351 case $target in
28352 *-*-aix*) conftest_s=' .machine "pwr5"
28353 .csect .text[PR]
28354 mfcr 3,128';;
28355 *-*-darwin*) conftest_s=' .text
28356 mfcr r3,128';;
28357 *) conftest_s=' .machine power4
28358 .text
28359 mfcr 3,128';;
28360 esac
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28363 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28364 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
28365 $as_echo_n "(cached) " >&6
28366 else
28367 gcc_cv_as_powerpc_mfcrf=no
28368 if test x$gcc_cv_as != x; then
28369 $as_echo "$conftest_s" > conftest.s
28370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28372 (eval $ac_try) 2>&5
28373 ac_status=$?
28374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28375 test $ac_status = 0; }; }
28376 then
28377 gcc_cv_as_powerpc_mfcrf=yes
28378 else
28379 echo "configure: failed program was" >&5
28380 cat conftest.s >&5
28382 rm -f conftest.o conftest.s
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28386 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28387 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28389 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28394 case $target in
28395 *-*-aix*) conftest_s=' .csect .text[PR]
28396 LCF..0:
28397 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28398 *-*-darwin*)
28399 conftest_s=' .text
28400 LCF0:
28401 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28402 *) conftest_s=' .text
28403 .LCF0:
28404 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28405 esac
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28408 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28409 if ${gcc_cv_as_powerpc_rel16+:} false; then :
28410 $as_echo_n "(cached) " >&6
28411 else
28412 gcc_cv_as_powerpc_rel16=no
28413 if test x$gcc_cv_as != x; then
28414 $as_echo "$conftest_s" > conftest.s
28415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; }
28421 then
28422 gcc_cv_as_powerpc_rel16=yes
28423 else
28424 echo "configure: failed program was" >&5
28425 cat conftest.s >&5
28427 rm -f conftest.o conftest.s
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28431 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28432 if test $gcc_cv_as_powerpc_rel16 = yes; then
28434 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28439 case $target in
28440 *-*-aix*) conftest_s=' .machine "pwr7"
28441 .csect .text[PR]
28442 lxvd2x 1,2,3';;
28443 *) conftest_s=' .machine power7
28444 .text
28445 lxvd2x 1,2,3';;
28446 esac
28448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28449 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28450 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28451 $as_echo_n "(cached) " >&6
28452 else
28453 gcc_cv_as_powerpc_vsx=no
28454 if test x$gcc_cv_as != x; then
28455 $as_echo "$conftest_s" > conftest.s
28456 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28458 (eval $ac_try) 2>&5
28459 ac_status=$?
28460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28461 test $ac_status = 0; }; }
28462 then
28463 gcc_cv_as_powerpc_vsx=yes
28464 else
28465 echo "configure: failed program was" >&5
28466 cat conftest.s >&5
28468 rm -f conftest.o conftest.s
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28472 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28473 if test $gcc_cv_as_powerpc_vsx = yes; then
28475 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28481 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28482 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28483 $as_echo_n "(cached) " >&6
28484 else
28485 gcc_cv_as_powerpc_gnu_attribute=no
28486 if test x$gcc_cv_as != x; then
28487 $as_echo '.gnu_attribute 4,1' > conftest.s
28488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28490 (eval $ac_try) 2>&5
28491 ac_status=$?
28492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28493 test $ac_status = 0; }; }
28494 then
28495 gcc_cv_as_powerpc_gnu_attribute=yes
28496 else
28497 echo "configure: failed program was" >&5
28498 cat conftest.s >&5
28500 rm -f conftest.o conftest.s
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28504 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28505 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28507 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28513 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28514 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28515 $as_echo_n "(cached) " >&6
28516 else
28517 gcc_cv_as_powerpc_entry_markers=no
28518 if test x$gcc_cv_as != x; then
28519 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28522 (eval $ac_try) 2>&5
28523 ac_status=$?
28524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28525 test $ac_status = 0; }; }
28526 then
28527 gcc_cv_as_powerpc_entry_markers=yes
28528 else
28529 echo "configure: failed program was" >&5
28530 cat conftest.s >&5
28532 rm -f conftest.o conftest.s
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28536 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28537 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28539 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28545 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28546 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28547 $as_echo_n "(cached) " >&6
28548 else
28549 gcc_cv_as_powerpc_pltseq_markers=no
28550 if test x$gcc_cv_as != x; then
28551 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28554 (eval $ac_try) 2>&5
28555 ac_status=$?
28556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28557 test $ac_status = 0; }; }
28558 then
28559 gcc_cv_as_powerpc_pltseq_markers=yes
28560 else
28561 echo "configure: failed program was" >&5
28562 cat conftest.s >&5
28564 rm -f conftest.o conftest.s
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28568 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28569 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28571 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28576 case $target in
28577 *-*-aix*)
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28579 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28580 if ${gcc_cv_as_aix_ref+:} false; then :
28581 $as_echo_n "(cached) " >&6
28582 else
28583 gcc_cv_as_aix_ref=no
28584 if test x$gcc_cv_as != x; then
28585 $as_echo ' .csect stuff[rw]
28586 stuff:
28587 .long 1
28588 .extern sym
28589 .ref sym
28590 ' > conftest.s
28591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28593 (eval $ac_try) 2>&5
28594 ac_status=$?
28595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28596 test $ac_status = 0; }; }
28597 then
28598 gcc_cv_as_aix_ref=yes
28599 else
28600 echo "configure: failed program was" >&5
28601 cat conftest.s >&5
28603 rm -f conftest.o conftest.s
28606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28607 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28608 if test $gcc_cv_as_aix_ref = yes; then
28610 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28616 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28617 if ${gcc_cv_as_aix_dwloc+:} false; then :
28618 $as_echo_n "(cached) " >&6
28619 else
28620 gcc_cv_as_aix_dwloc=no
28621 if test x$gcc_cv_as != x; then
28622 $as_echo ' .dwsect 0xA0000
28623 Lframe..0:
28624 .vbyte 4,Lframe..0
28625 ' > conftest.s
28626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28628 (eval $ac_try) 2>&5
28629 ac_status=$?
28630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28631 test $ac_status = 0; }; }
28632 then
28633 gcc_cv_as_aix_dwloc=yes
28634 else
28635 echo "configure: failed program was" >&5
28636 cat conftest.s >&5
28638 rm -f conftest.o conftest.s
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28642 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28643 if test $gcc_cv_as_aix_dwloc = yes; then
28645 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28650 esac
28653 mips*-*-*)
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28655 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28656 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28657 $as_echo_n "(cached) " >&6
28658 else
28659 gcc_cv_as_mips_explicit_relocs=no
28660 if test x$gcc_cv_as != x; then
28661 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28664 (eval $ac_try) 2>&5
28665 ac_status=$?
28666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28667 test $ac_status = 0; }; }
28668 then
28669 gcc_cv_as_mips_explicit_relocs=yes
28670 else
28671 echo "configure: failed program was" >&5
28672 cat conftest.s >&5
28674 rm -f conftest.o conftest.s
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28678 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28679 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28680 if test x$target_cpu_default = x
28681 then target_cpu_default=MASK_EXPLICIT_RELOCS
28682 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28688 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28689 if ${gcc_cv_as_mips_no_shared+:} false; then :
28690 $as_echo_n "(cached) " >&6
28691 else
28692 gcc_cv_as_mips_no_shared=no
28693 if test x$gcc_cv_as != x; then
28694 $as_echo 'nop' > conftest.s
28695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28697 (eval $ac_try) 2>&5
28698 ac_status=$?
28699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28700 test $ac_status = 0; }; }
28701 then
28702 gcc_cv_as_mips_no_shared=yes
28703 else
28704 echo "configure: failed program was" >&5
28705 cat conftest.s >&5
28707 rm -f conftest.o conftest.s
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28711 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28712 if test $gcc_cv_as_mips_no_shared = yes; then
28714 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28720 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28721 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28722 $as_echo_n "(cached) " >&6
28723 else
28724 gcc_cv_as_mips_gnu_attribute=no
28725 if test x$gcc_cv_as != x; then
28726 $as_echo '.gnu_attribute 4,1' > conftest.s
28727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28729 (eval $ac_try) 2>&5
28730 ac_status=$?
28731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28732 test $ac_status = 0; }; }
28733 then
28734 gcc_cv_as_mips_gnu_attribute=yes
28735 else
28736 echo "configure: failed program was" >&5
28737 cat conftest.s >&5
28739 rm -f conftest.o conftest.s
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28743 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28744 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28746 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28752 $as_echo_n "checking assembler for .module support... " >&6; }
28753 if ${gcc_cv_as_mips_dot_module+:} false; then :
28754 $as_echo_n "(cached) " >&6
28755 else
28756 gcc_cv_as_mips_dot_module=no
28757 if test x$gcc_cv_as != x; then
28758 $as_echo '.module mips2
28759 .module fp=xx' > conftest.s
28760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28762 (eval $ac_try) 2>&5
28763 ac_status=$?
28764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28765 test $ac_status = 0; }; }
28766 then
28767 gcc_cv_as_mips_dot_module=yes
28768 else
28769 echo "configure: failed program was" >&5
28770 cat conftest.s >&5
28772 rm -f conftest.o conftest.s
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28776 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28777 if test $gcc_cv_as_mips_dot_module = yes; then
28779 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28783 if test x$gcc_cv_as_mips_dot_module = xno \
28784 && test x$with_fp_32 != x; then
28785 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28789 $as_echo_n "checking assembler for .micromips support... " >&6; }
28790 if ${gcc_cv_as_micromips_support+:} false; then :
28791 $as_echo_n "(cached) " >&6
28792 else
28793 gcc_cv_as_micromips_support=no
28794 if test x$gcc_cv_as != x; then
28795 $as_echo '.set micromips' > conftest.s
28796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28798 (eval $ac_try) 2>&5
28799 ac_status=$?
28800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28801 test $ac_status = 0; }; }
28802 then
28803 gcc_cv_as_micromips_support=yes
28804 else
28805 echo "configure: failed program was" >&5
28806 cat conftest.s >&5
28808 rm -f conftest.o conftest.s
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28812 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28813 if test $gcc_cv_as_micromips_support = yes; then
28815 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28821 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28822 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28823 $as_echo_n "(cached) " >&6
28824 else
28825 gcc_cv_as_mips_dtprelword=no
28826 if test x$gcc_cv_as != x; then
28827 $as_echo '.section .tdata,"awT",@progbits
28829 .word 2
28830 .text
28831 .dtprelword x+0x8000' > conftest.s
28832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28834 (eval $ac_try) 2>&5
28835 ac_status=$?
28836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28837 test $ac_status = 0; }; }
28838 then
28839 gcc_cv_as_mips_dtprelword=yes
28840 else
28841 echo "configure: failed program was" >&5
28842 cat conftest.s >&5
28844 rm -f conftest.o conftest.s
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28848 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28849 if test $gcc_cv_as_mips_dtprelword = yes; then
28851 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28857 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28858 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28859 $as_echo_n "(cached) " >&6
28860 else
28861 gcc_cv_as_mips_dspr1_mult=no
28862 if test x$gcc_cv_as != x; then
28863 $as_echo ' .set mips32r2
28864 .set nodspr2
28865 .set dsp
28866 madd $ac3,$4,$5
28867 maddu $ac3,$4,$5
28868 msub $ac3,$4,$5
28869 msubu $ac3,$4,$5
28870 mult $ac3,$4,$5
28871 multu $ac3,$4,$5' > conftest.s
28872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28874 (eval $ac_try) 2>&5
28875 ac_status=$?
28876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28877 test $ac_status = 0; }; }
28878 then
28879 gcc_cv_as_mips_dspr1_mult=yes
28880 else
28881 echo "configure: failed program was" >&5
28882 cat conftest.s >&5
28884 rm -f conftest.o conftest.s
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28888 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28889 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28891 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28897 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28898 gcc_cv_as_ld_jalr_reloc=no
28899 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28900 if test $in_tree_ld = yes ; then
28901 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 \
28902 && test $in_tree_ld_is_elf = yes; then
28903 gcc_cv_as_ld_jalr_reloc=yes
28905 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28906 echo ' .ent x' > conftest.s
28907 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28908 echo ' lw $25,%call16(y)($28)' >> conftest.s
28909 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28910 echo '1: jalr $25' >> conftest.s
28911 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28912 echo '1: jalr $25' >> conftest.s
28913 echo ' .end x' >> conftest.s
28914 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28915 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28916 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28917 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28918 gcc_cv_as_ld_jalr_reloc=yes
28921 rm -f conftest.*
28924 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28925 if test x$target_cpu_default = x; then
28926 target_cpu_default=MASK_RELAX_PIC_CALLS
28927 else
28928 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28932 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28935 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28936 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28937 $as_echo_n "(cached) " >&6
28938 else
28939 gcc_cv_ld_mips_personality_relaxation=no
28940 if test $in_tree_ld = yes ; then
28941 if test "$gcc_cv_gld_major_version" -eq 2 \
28942 -a "$gcc_cv_gld_minor_version" -ge 21 \
28943 -o "$gcc_cv_gld_major_version" -gt 2; then
28944 gcc_cv_ld_mips_personality_relaxation=yes
28946 elif test x$gcc_cv_as != x \
28947 -a x$gcc_cv_ld != x \
28948 -a x$gcc_cv_readelf != x ; then
28949 cat > conftest.s <<EOF
28950 .cfi_startproc
28951 .cfi_personality 0x80,indirect_ptr
28952 .ent test
28953 test:
28955 .end test
28956 .cfi_endproc
28958 .section .data,"aw",@progbits
28959 indirect_ptr:
28960 .dc.a personality
28962 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28963 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28964 if $gcc_cv_readelf -d conftest 2>&1 \
28965 | grep TEXTREL > /dev/null 2>&1; then
28967 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28968 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28970 else
28971 gcc_cv_ld_mips_personality_relaxation=yes
28975 rm -f conftest.s conftest.o conftest
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28978 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28979 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28981 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28986 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28987 if ${gcc_cv_as_mips_nan+:} false; then :
28988 $as_echo_n "(cached) " >&6
28989 else
28990 gcc_cv_as_mips_nan=no
28991 if test x$gcc_cv_as != x; then
28992 $as_echo '' > conftest.s
28993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28995 (eval $ac_try) 2>&5
28996 ac_status=$?
28997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28998 test $ac_status = 0; }; }
28999 then
29000 gcc_cv_as_mips_nan=yes
29001 else
29002 echo "configure: failed program was" >&5
29003 cat conftest.s >&5
29005 rm -f conftest.o conftest.s
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
29009 $as_echo "$gcc_cv_as_mips_nan" >&6; }
29010 if test $gcc_cv_as_mips_nan = yes; then
29012 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
29016 if test x$gcc_cv_as_mips_nan = xno \
29017 && test x$with_nan != x; then
29018 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
29021 msp430-*-*)
29022 # Earlier GAS versions generically support .gnu_attribute, but the
29023 # msp430 assembler will not do anything with it.
29024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29025 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29026 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
29027 $as_echo_n "(cached) " >&6
29028 else
29029 gcc_cv_as_msp430_gnu_attribute=no
29030 if test x$gcc_cv_as != x; then
29031 $as_echo '.gnu_attribute 4,1' > conftest.s
29032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29034 (eval $ac_try) 2>&5
29035 ac_status=$?
29036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29037 test $ac_status = 0; }; }
29038 then
29039 gcc_cv_as_msp430_gnu_attribute=yes
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_msp430_gnu_attribute" >&5
29048 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
29049 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
29051 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
29056 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
29057 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
29058 $as_echo_n "(cached) " >&6
29059 else
29060 gcc_cv_as_msp430_mspabi_attribute=no
29061 if test x$gcc_cv_as != x; then
29062 $as_echo '.mspabi_attribute 4,2' > conftest.s
29063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29065 (eval $ac_try) 2>&5
29066 ac_status=$?
29067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29068 test $ac_status = 0; }; }
29069 then
29070 gcc_cv_as_msp430_mspabi_attribute=yes
29071 else
29072 echo "configure: failed program was" >&5
29073 cat conftest.s >&5
29075 rm -f conftest.o conftest.s
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
29079 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
29080 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
29082 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
29086 if test x$enable_newlib_nano_formatted_io = xyes; then
29088 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
29092 nios2-*-*)
29093 # Versions 2.33 and earlier lacked support for the %gotoff relocation
29094 # syntax that is documented in the ABI specification.
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
29096 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
29097 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
29098 $as_echo_n "(cached) " >&6
29099 else
29100 gcc_cv_as_nios2_gotoff_relocation=no
29101 if test x$gcc_cv_as != x; then
29102 $as_echo ' .extern foo
29103 .data
29104 .long %gotoff(foo)' > conftest.s
29105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29107 (eval $ac_try) 2>&5
29108 ac_status=$?
29109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29110 test $ac_status = 0; }; }
29111 then
29112 gcc_cv_as_nios2_gotoff_relocation=yes
29113 else
29114 echo "configure: failed program was" >&5
29115 cat conftest.s >&5
29117 rm -f conftest.o conftest.s
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
29121 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
29122 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
29124 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
29129 riscv*-*-*)
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
29131 $as_echo_n "checking assembler for .attribute support... " >&6; }
29132 if ${gcc_cv_as_riscv_attribute+:} false; then :
29133 $as_echo_n "(cached) " >&6
29134 else
29135 gcc_cv_as_riscv_attribute=no
29136 if test x$gcc_cv_as != x; then
29137 $as_echo '.attribute stack_align,4' > conftest.s
29138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29140 (eval $ac_try) 2>&5
29141 ac_status=$?
29142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29143 test $ac_status = 0; }; }
29144 then
29145 gcc_cv_as_riscv_attribute=yes
29146 else
29147 echo "configure: failed program was" >&5
29148 cat conftest.s >&5
29150 rm -f conftest.o conftest.s
29153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
29154 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
29155 if test $gcc_cv_as_riscv_attribute = yes; then
29157 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
29162 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
29163 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
29164 $as_echo_n "(cached) " >&6
29165 else
29166 gcc_cv_as_riscv_isa_spec=no
29167 if test x$gcc_cv_as != x; then
29168 $as_echo '' > conftest.s
29169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
29170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29171 (eval $ac_try) 2>&5
29172 ac_status=$?
29173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29174 test $ac_status = 0; }; }
29175 then
29176 gcc_cv_as_riscv_isa_spec=yes
29177 else
29178 echo "configure: failed program was" >&5
29179 cat conftest.s >&5
29181 rm -f conftest.o conftest.s
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
29185 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
29186 if test $gcc_cv_as_riscv_isa_spec = yes; then
29188 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
29193 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
29194 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
29195 $as_echo_n "(cached) " >&6
29196 else
29197 gcc_cv_as_riscv_march_zifencei=no
29198 if test x$gcc_cv_as != x; then
29199 $as_echo '' > conftest.s
29200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
29201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29202 (eval $ac_try) 2>&5
29203 ac_status=$?
29204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29205 test $ac_status = 0; }; }
29206 then
29207 gcc_cv_as_riscv_march_zifencei=yes
29208 else
29209 echo "configure: failed program was" >&5
29210 cat conftest.s >&5
29212 rm -f conftest.o conftest.s
29215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
29216 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
29217 if test $gcc_cv_as_riscv_march_zifencei = yes; then
29219 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
29224 loongarch*-*-*)
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
29226 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
29227 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
29228 $as_echo_n "(cached) " >&6
29229 else
29230 gcc_cv_as_loongarch_dtprelword=no
29231 if test x$gcc_cv_as != x; then
29232 $as_echo '' > conftest.s
29233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
29234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29235 (eval $ac_try) 2>&5
29236 ac_status=$?
29237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29238 test $ac_status = 0; }; }
29239 then
29240 .section .tdata,"awT",@progbits
29242 .word 2
29243 .text
29244 .dtprelword x+0x8000
29245 else
29246 echo "configure: failed program was" >&5
29247 cat conftest.s >&5
29249 rm -f conftest.o conftest.s
29252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
29253 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
29255 if test $gcc_cv_as_loongarch_dtprelword != yes; then
29257 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
29260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
29261 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
29262 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
29263 $as_echo_n "(cached) " >&6
29264 else
29265 gcc_cv_as_loongarch_explicit_relocs=no
29266 if test x$gcc_cv_as != x; then
29267 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > 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_loongarch_explicit_relocs=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_loongarch_explicit_relocs" >&5
29284 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
29285 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
29287 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
29292 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
29293 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
29294 $as_echo_n "(cached) " >&6
29295 else
29296 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
29297 if test x$gcc_cv_as != x; then
29298 $as_echo '.cfi_startproc
29299 .cfi_personality 0x9b,a
29300 .cfi_lsda 0x1b,b
29301 .cfi_endproc' > conftest.s
29302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29304 (eval $ac_try) 2>&5
29305 ac_status=$?
29306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29307 test $ac_status = 0; }; }
29308 then
29309 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
29310 else
29311 echo "configure: failed program was" >&5
29312 cat conftest.s >&5
29314 rm -f conftest.o conftest.s
29317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29318 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29319 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29321 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
29326 $as_echo_n "checking assembler for -mrelax option... " >&6; }
29327 if ${gcc_cv_as_loongarch_relax+:} false; then :
29328 $as_echo_n "(cached) " >&6
29329 else
29330 gcc_cv_as_loongarch_relax=no
29331 if test x$gcc_cv_as != x; then
29332 $as_echo '.text' > conftest.s
29333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -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_loongarch_relax=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_loongarch_relax" >&5
29349 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
29350 if test $gcc_cv_as_loongarch_relax = yes; then
29352 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
29357 s390*-*-*)
29358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29359 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29360 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
29361 $as_echo_n "(cached) " >&6
29362 else
29363 gcc_cv_as_s390_gnu_attribute=no
29364 if test x$gcc_cv_as != x; then
29365 $as_echo '.gnu_attribute 8,1' > conftest.s
29366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29368 (eval $ac_try) 2>&5
29369 ac_status=$?
29370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29371 test $ac_status = 0; }; }
29372 then
29373 gcc_cv_as_s390_gnu_attribute=yes
29374 else
29375 echo "configure: failed program was" >&5
29376 cat conftest.s >&5
29378 rm -f conftest.o conftest.s
29381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29382 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29383 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29385 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29390 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29391 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
29392 $as_echo_n "(cached) " >&6
29393 else
29394 gcc_cv_as_s390_machine_machinemode=no
29395 if test x$gcc_cv_as != x; then
29396 $as_echo ' .machinemode push
29397 .machinemode pop
29398 .machine push
29399 .machine pop' > 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_s390_machine_machinemode=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_s390_machine_machinemode" >&5
29416 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29417 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29419 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29424 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29425 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
29426 $as_echo_n "(cached) " >&6
29427 else
29428 gcc_cv_as_s390_architecture_modifiers=no
29429 if test x$gcc_cv_as != x; then
29430 $as_echo ' .machine z13+vx ' > conftest.s
29431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29433 (eval $ac_try) 2>&5
29434 ac_status=$?
29435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29436 test $ac_status = 0; }; }
29437 then
29438 gcc_cv_as_s390_architecture_modifiers=yes
29439 else
29440 echo "configure: failed program was" >&5
29441 cat conftest.s >&5
29443 rm -f conftest.o conftest.s
29446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29447 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29448 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29450 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29455 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29456 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29457 $as_echo_n "(cached) " >&6
29458 else
29459 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29460 if test x$gcc_cv_as != x; then
29461 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29464 (eval $ac_try) 2>&5
29465 ac_status=$?
29466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29467 test $ac_status = 0; }; }
29468 then
29469 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29470 else
29471 echo "configure: failed program was" >&5
29472 cat conftest.s >&5
29474 rm -f conftest.o conftest.s
29477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29478 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29479 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29481 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29486 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29487 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29488 $as_echo_n "(cached) " >&6
29489 else
29490 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29491 if test x$gcc_cv_as != x; then
29492 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29495 (eval $ac_try) 2>&5
29496 ac_status=$?
29497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29498 test $ac_status = 0; }; }
29499 then
29500 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29501 else
29502 echo "configure: failed program was" >&5
29503 cat conftest.s >&5
29505 rm -f conftest.o conftest.s
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29509 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29510 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29512 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29518 esac
29520 # Mips, LoongArch and HP-UX need the GNU assembler.
29521 # Linux on IA64 might be able to use the Intel assembler.
29523 case "$target" in
29524 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29525 if test x$gas_flag = xyes \
29526 || test x"$host" != x"$build" \
29527 || test ! -x "$gcc_cv_as" \
29528 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29530 else
29531 echo "*** This configuration requires the GNU assembler" >&2
29532 exit 1
29535 esac
29537 # AMD GCN needs the LLVM assembler and linker.
29538 # Test that LLVM is at least 13.0.1.
29539 case "$target" in
29540 amdgcn-* | gcn-*)
29541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29542 $as_echo_n "checking llvm assembler version... " >&6; }
29543 gcc_cv_as_version="unknown"
29544 if test x$gcc_cv_as != x; then
29545 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29546 case "$gcc_cv_as_version" in
29547 13.0.[1-9]*) ;; # 13.0.1+
29548 13.[1-9]*) ;; # 13.1+
29549 1[4-9]*) ;; # 14..19
29550 [2-9][0-9]*) ;; # 20..99
29551 [1-9][0-9][0-9]*) ;; # 100+
29552 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29553 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29554 esac
29556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29557 $as_echo "$gcc_cv_as_version, ok" >&6; }
29559 esac
29561 case "$target" in
29562 arm*)
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29564 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29565 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29566 $as_echo_n "(cached) " >&6
29567 else
29568 gcc_cv_as_arm_option_extensions=no
29569 if test x$gcc_cv_as != x; then
29570 $as_echo '.text
29571 .thumb
29572 .syntax unified
29573 vmov.f32 s0, s1' > conftest.s
29574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29576 (eval $ac_try) 2>&5
29577 ac_status=$?
29578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29579 test $ac_status = 0; }; }
29580 then
29581 gcc_cv_as_arm_option_extensions=yes
29582 else
29583 echo "configure: failed program was" >&5
29584 cat conftest.s >&5
29586 rm -f conftest.o conftest.s
29589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29590 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29591 if test $gcc_cv_as_arm_option_extensions = yes; then
29593 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29597 esac
29599 # ??? Not all targets support dwarf2 debug_line, even within a version
29600 # of gas. Moreover, we need to emit a valid instruction to trigger any
29601 # info to the output file. So, as supported targets are added to gas 2.11,
29602 # add some instruction here to (also) show we expect this might work.
29603 # ??? Once 2.11 is released, probably need to add first known working
29604 # version to the per-target configury.
29605 case "$cpu_type" in
29606 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29607 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29608 | visium | xstormy16 | xtensa)
29609 insn="nop"
29611 ia64 | s390)
29612 insn="nop 0"
29614 mmix)
29615 insn="swym 0"
29617 esac
29618 if test x"$insn" != x; then
29619 conftest_s="\
29620 .file 1 \"conftest.s\"
29621 .loc 1 3 0
29622 $insn"
29623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29624 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29625 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29626 $as_echo_n "(cached) " >&6
29627 else
29628 gcc_cv_as_dwarf2_debug_line=no
29629 if test x$gcc_cv_as != x; then
29630 $as_echo "$conftest_s" > conftest.s
29631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29633 (eval $ac_try) 2>&5
29634 ac_status=$?
29635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29636 test $ac_status = 0; }; }
29637 then
29638 if test x$gcc_cv_objdump != x \
29639 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29640 | grep debug_line > /dev/null 2>&1; then
29641 gcc_cv_as_dwarf2_debug_line=yes
29642 elif test x$gcc_cv_otool != x \
29643 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29644 | grep debug_line > /dev/null 2>&1; then
29645 gcc_cv_as_dwarf2_debug_line=yes
29647 else
29648 echo "configure: failed program was" >&5
29649 cat conftest.s >&5
29651 rm -f conftest.o conftest.s
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29655 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29659 # The .debug_line file table must be in the exact order that
29660 # we specified the files, since these indices are also used
29661 # by DW_AT_decl_file. Approximate this test by testing if
29662 # the assembler bitches if the same index is assigned twice.
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29664 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29665 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29666 $as_echo_n "(cached) " >&6
29667 else
29668 gcc_cv_as_dwarf2_file_buggy=no
29669 if test x$gcc_cv_as != x; then
29670 $as_echo ' .file 1 "foo.s"
29671 .file 1 "bar.s"' > conftest.s
29672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29674 (eval $ac_try) 2>&5
29675 ac_status=$?
29676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29677 test $ac_status = 0; }; }
29678 then
29679 gcc_cv_as_dwarf2_file_buggy=yes
29680 else
29681 echo "configure: failed program was" >&5
29682 cat conftest.s >&5
29684 rm -f conftest.o conftest.s
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29688 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29692 if test $gcc_cv_as_dwarf2_debug_line = yes \
29693 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29695 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29698 if test $gcc_cv_as_leb128 = yes; then
29699 conftest_s="\
29700 .file 1 \"conftest.s\"
29701 .loc 1 3 0 view .LVU1
29702 $insn
29703 .data
29704 .uleb128 .LVU1
29705 .uleb128 .LVU1
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29708 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29709 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29710 $as_echo_n "(cached) " >&6
29711 else
29712 gcc_cv_as_dwarf2_debug_view=no
29713 if test x$gcc_cv_as != x; then
29714 $as_echo "$conftest_s" > conftest.s
29715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29717 (eval $ac_try) 2>&5
29718 ac_status=$?
29719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29720 test $ac_status = 0; }; }
29721 then
29722 gcc_cv_as_dwarf2_debug_view=yes
29723 else
29724 echo "configure: failed program was" >&5
29725 cat conftest.s >&5
29727 rm -f conftest.o conftest.s
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29731 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29732 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29734 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29742 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29743 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29744 $as_echo_n "(cached) " >&6
29745 else
29746 gcc_cv_as_gdwarf2_flag=no
29747 if test x$gcc_cv_as != x; then
29748 $as_echo "$insn" > conftest.s
29749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29751 (eval $ac_try) 2>&5
29752 ac_status=$?
29753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29754 test $ac_status = 0; }; }
29755 then
29756 gcc_cv_as_gdwarf2_flag=yes
29757 else
29758 echo "configure: failed program was" >&5
29759 cat conftest.s >&5
29761 rm -f conftest.o conftest.s
29764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29765 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29766 if test $gcc_cv_as_gdwarf2_flag = yes; then
29768 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29774 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29775 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29776 $as_echo_n "(cached) " >&6
29777 else
29778 gcc_cv_as_gdwarf_5_flag=no
29779 if test x$gcc_cv_as != x; then
29780 $as_echo "$insn" > conftest.s
29781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29783 (eval $ac_try) 2>&5
29784 ac_status=$?
29785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29786 test $ac_status = 0; }; }
29787 then
29788 if test x$gcc_cv_objdump != x \
29789 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29790 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29791 gcc_cv_as_gdwarf_5_flag=yes;
29793 else
29794 echo "configure: failed program was" >&5
29795 cat conftest.s >&5
29797 rm -f conftest.o conftest.s
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29801 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29802 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29804 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29809 case $target_os in
29810 win32 | pe | cygwin* | mingw32*)
29811 section_flags=\"dr\"
29812 function_type=".def foo; .scl 2; .type 32; .endef"
29813 function_size="";;
29815 section_flags=\"\",%progbits
29816 function_type=".type foo, %function"
29817 function_size=".size foo, .-foo";;
29818 esac
29819 dwarf4_debug_info_size=0x46
29820 dwarf4_high_pc_form=7
29821 dwarf4_debug_aranges_size=0x2c
29822 dwarf4_line_sz=9
29823 for dwarf4_addr_size in 8 4; do
29824 conftest_s="\
29825 .file \"a.c\"
29826 .text
29827 .Ltext0:
29828 .p2align 4
29829 .globl foo
29830 $function_type
29831 foo:
29832 .LFB0:
29833 .LM1:
29834 $insn
29835 .LM2:
29836 .LFE0:
29837 $function_size
29838 .Letext0:
29839 .section .debug_info,$section_flags
29840 .Ldebug_info0:
29841 .4byte $dwarf4_debug_info_size
29842 .2byte 0x4
29843 .4byte .Ldebug_abbrev0
29844 .byte 0x$dwarf4_addr_size
29845 .byte 0x1
29846 .ascii \"GNU C17\\0\"
29847 .byte 0xc
29848 .ascii \"a.c\\0\"
29849 .ascii \"/\\0\"
29850 .${dwarf4_addr_size}byte .Ltext0
29851 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29852 .4byte .Ldebug_line0
29853 .byte 0x2
29854 .ascii \"foo\\0\"
29855 .byte 0x1
29856 .byte 0x2
29857 .byte 0x1
29858 .${dwarf4_addr_size}byte .LFB0
29859 .${dwarf4_addr_size}byte .LFE0-.LFB0
29860 .byte 0x1
29861 .byte 0x9c
29862 .byte 0
29863 .section .debug_abbrev,$section_flags
29864 .Ldebug_abbrev0:
29865 .byte 0x1
29866 .byte 0x11
29867 .byte 0x1
29868 .byte 0x25
29869 .byte 0x8
29870 .byte 0x13
29871 .byte 0xb
29872 .byte 0x3
29873 .byte 0x8
29874 .byte 0x1b
29875 .byte 0x8
29876 .byte 0x11
29877 .byte 0x1
29878 .byte 0x12
29879 .byte 0x$dwarf4_high_pc_form
29880 .byte 0x10
29881 .byte 0x17
29882 .byte 0
29883 .byte 0
29884 .byte 0x2
29885 .byte 0x2e
29886 .byte 0
29887 .byte 0x3f
29888 .byte 0x19
29889 .byte 0x3
29890 .byte 0x8
29891 .byte 0x3a
29892 .byte 0xb
29893 .byte 0x3b
29894 .byte 0xb
29895 .byte 0x39
29896 .byte 0xb
29897 .byte 0x11
29898 .byte 0x1
29899 .byte 0x12
29900 .byte 0x$dwarf4_high_pc_form
29901 .byte 0x40
29902 .byte 0x18
29903 .byte 0
29904 .byte 0
29905 .byte 0
29906 .section .debug_aranges,$section_flags
29907 .4byte $dwarf4_debug_aranges_size
29908 .2byte 0x2
29909 .4byte .Ldebug_info0
29910 .byte 0x8
29911 .byte 0
29912 .2byte 0
29913 .2byte 0
29914 .${dwarf4_addr_size}byte .Ltext0
29915 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29916 .${dwarf4_addr_size}byte 0
29917 .${dwarf4_addr_size}byte 0
29918 .section .debug_line,$section_flags
29919 .Ldebug_line0:
29920 .4byte .LELT0-.LSLT0
29921 .LSLT0:
29922 .2byte 0x4
29923 .4byte .LELTP0-.LASLTP0
29924 .LASLTP0:
29925 .byte 0x1
29926 .byte 0x1
29927 .byte 0x1
29928 .byte 0xf6
29929 .byte 0xf2
29930 .byte 0xd
29931 .byte 0
29932 .byte 0x1
29933 .byte 0x1
29934 .byte 0x1
29935 .byte 0x1
29936 .byte 0
29937 .byte 0
29938 .byte 0
29939 .byte 0x1
29940 .byte 0
29941 .byte 0
29942 .byte 0x1
29943 .byte 0
29944 .ascii \"a.c\\0\"
29945 .byte 0
29946 .byte 0
29947 .byte 0
29948 .byte 0
29949 .LELTP0:
29950 .byte 0
29951 .byte 0x$dwarf4_line_sz
29952 .byte 0x2
29953 .${dwarf4_addr_size}byte .LM1
29954 .byte 0x18
29955 .byte 0x5
29956 .byte 0x1
29957 .byte 0
29958 .byte 0x$dwarf4_line_sz
29959 .byte 0x2
29960 .${dwarf4_addr_size}byte .LM2
29961 .byte 0x1
29962 .byte 0x5
29963 .byte 0x1
29964 .byte 0
29965 .byte 0x$dwarf4_line_sz
29966 .byte 0x2
29967 .${dwarf4_addr_size}byte .Letext0
29968 .byte 0
29969 .byte 0x1
29970 .byte 0x1
29971 .LELT0:
29972 .section .debug_str,$section_flags
29973 .ident \"GCC\"
29975 dwarf4_success=no
29976 if test $dwarf4_addr_size = 4; then
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29978 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29979 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29980 $as_echo_n "(cached) " >&6
29981 else
29982 gcc_cv_as_debug_line_32_flag=no
29983 if test x$gcc_cv_as != x; then
29984 $as_echo "$conftest_s" > conftest.s
29985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29987 (eval $ac_try) 2>&5
29988 ac_status=$?
29989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29990 test $ac_status = 0; }; }
29991 then
29992 gcc_cv_as_debug_line_32_flag=yes
29993 else
29994 echo "configure: failed program was" >&5
29995 cat conftest.s >&5
29997 rm -f conftest.o conftest.s
30000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
30001 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
30002 if test $gcc_cv_as_debug_line_32_flag = yes; then
30003 dwarf4_success=yes
30006 else
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
30008 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
30009 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
30010 $as_echo_n "(cached) " >&6
30011 else
30012 gcc_cv_as_debug_line_64_flag=no
30013 if test x$gcc_cv_as != x; then
30014 $as_echo "$conftest_s" > conftest.s
30015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30017 (eval $ac_try) 2>&5
30018 ac_status=$?
30019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30020 test $ac_status = 0; }; }
30021 then
30022 gcc_cv_as_debug_line_64_flag=yes
30023 else
30024 echo "configure: failed program was" >&5
30025 cat conftest.s >&5
30027 rm -f conftest.o conftest.s
30030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
30031 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
30032 if test $gcc_cv_as_debug_line_64_flag = yes; then
30033 dwarf4_success=yes
30037 if test $dwarf4_success = yes; then
30038 dwarf4_success=no
30039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
30040 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
30041 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
30042 $as_echo_n "(cached) " >&6
30043 else
30044 gcc_cv_as_dwarf_4_debug_line_flag=no
30045 if test x$gcc_cv_as != x; then
30046 $as_echo "$conftest_s" > conftest.s
30047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
30048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30049 (eval $ac_try) 2>&5
30050 ac_status=$?
30051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30052 test $ac_status = 0; }; }
30053 then
30054 gcc_cv_as_dwarf_4_debug_line_flag=yes
30055 else
30056 echo "configure: failed program was" >&5
30057 cat conftest.s >&5
30059 rm -f conftest.o conftest.s
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
30063 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
30064 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
30065 dwarf4_success=yes
30068 break
30070 dwarf4_debug_info_size=0x36
30071 dwarf4_high_pc_form=6
30072 dwarf4_debug_aranges_size=0x1c
30073 dwarf4_line_sz=5
30074 done
30076 if test $dwarf4_success = yes; then
30077 conftest_s="\
30078 .file \"foo.c\"
30079 .text
30080 bar:
30081 #APP
30082 # 82 \"xxx.h\" 1
30083 $insn
30084 # 0 \"\" 2
30085 #NO_APP
30086 $insn
30087 foo:
30088 .file 1 \"foo.c\"
30089 $insn
30090 .file 2 \"foo.h\"
30093 dwarf4_success=no
30094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
30095 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
30096 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
30097 $as_echo_n "(cached) " >&6
30098 else
30099 gcc_cv_as_dwarf_4_app_flag=no
30100 if test x$gcc_cv_as != x; then
30101 $as_echo "$conftest_s" > conftest.s
30102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
30103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30104 (eval $ac_try) 2>&5
30105 ac_status=$?
30106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30107 test $ac_status = 0; }; }
30108 then
30109 gcc_cv_as_dwarf_4_app_flag=yes
30110 else
30111 echo "configure: failed program was" >&5
30112 cat conftest.s >&5
30114 rm -f conftest.o conftest.s
30117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
30118 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
30119 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
30120 dwarf4_success=yes
30125 if test $dwarf4_success = yes; then
30126 conftest_s="\
30127 .text
30128 .globl foo
30129 $function_type
30130 foo:
30131 $insn
30132 $function_size
30133 .file 1 \"foo.c\"
30135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
30136 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
30137 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
30138 $as_echo_n "(cached) " >&6
30139 else
30140 gcc_cv_as_working_gdwarf_n_flag=no
30141 if test x$gcc_cv_as != x; then
30142 $as_echo "$conftest_s" > conftest.s
30143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
30144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30145 (eval $ac_try) 2>&5
30146 ac_status=$?
30147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30148 test $ac_status = 0; }; }
30149 then
30150 if test x$gcc_cv_objdump != x \
30151 && $gcc_cv_objdump -W conftest.o 2>&1 \
30152 | grep conftest.s > /dev/null 2>&1; then
30153 gcc_cv_as_working_gdwarf_n_flag=no
30154 else
30155 gcc_cv_as_working_gdwarf_n_flag=yes
30157 else
30158 echo "configure: failed program was" >&5
30159 cat conftest.s >&5
30161 rm -f conftest.o conftest.s
30164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
30165 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
30168 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
30170 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
30176 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
30177 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
30178 $as_echo_n "(cached) " >&6
30179 else
30180 gcc_cv_as_debug_prefix_map_flag=no
30181 if test x$gcc_cv_as != x; then
30182 $as_echo "$insn" > conftest.s
30183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
30184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30185 (eval $ac_try) 2>&5
30186 ac_status=$?
30187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30188 test $ac_status = 0; }; }
30189 then
30190 gcc_cv_as_debug_prefix_map_flag=yes
30191 else
30192 echo "configure: failed program was" >&5
30193 cat conftest.s >&5
30195 rm -f conftest.o conftest.s
30198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
30199 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
30200 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
30202 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
30209 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
30210 if ${gcc_cv_as_compress_debug+:} false; then :
30211 $as_echo_n "(cached) " >&6
30212 else
30213 gcc_cv_as_compress_debug=no
30214 if test x$gcc_cv_as != x; then
30215 $as_echo '' > conftest.s
30216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30218 (eval $ac_try) 2>&5
30219 ac_status=$?
30220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30221 test $ac_status = 0; }; }
30222 then
30223 # gas compiled without zlib cannot compress debug sections and warns
30224 # about it, but still exits successfully. So check for this, too.
30225 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
30226 then
30227 gcc_cv_as_compress_debug=0
30228 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
30229 then
30230 gcc_cv_as_compress_debug=1
30231 gcc_cv_as_compress_debug_option="--compress-debug-sections"
30232 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
30233 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
30234 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
30235 then
30236 gcc_cv_as_compress_debug=2
30238 else
30239 gcc_cv_as_compress_debug=0
30241 else
30242 echo "configure: failed program was" >&5
30243 cat conftest.s >&5
30245 rm -f conftest.o conftest.s
30248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
30249 $as_echo "$gcc_cv_as_compress_debug" >&6; }
30253 cat >>confdefs.h <<_ACEOF
30254 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
30255 _ACEOF
30258 cat >>confdefs.h <<_ACEOF
30259 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
30260 _ACEOF
30263 cat >>confdefs.h <<_ACEOF
30264 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
30265 _ACEOF
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
30269 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
30270 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
30271 $as_echo_n "(cached) " >&6
30272 else
30273 gcc_cv_as_lcomm_with_alignment=no
30274 if test x$gcc_cv_as != x; then
30275 $as_echo '.lcomm bar,4,16' > conftest.s
30276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30278 (eval $ac_try) 2>&5
30279 ac_status=$?
30280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30281 test $ac_status = 0; }; }
30282 then
30283 gcc_cv_as_lcomm_with_alignment=yes
30284 else
30285 echo "configure: failed program was" >&5
30286 cat conftest.s >&5
30288 rm -f conftest.o conftest.s
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
30292 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
30293 if test $gcc_cv_as_lcomm_with_alignment = yes; then
30295 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
30300 if test x$with_sysroot = x && test x$host = x$target \
30301 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
30302 && test "$prefix" != "NONE"; then
30304 cat >>confdefs.h <<_ACEOF
30305 #define PREFIX_INCLUDE_DIR "$prefix/include"
30306 _ACEOF
30310 # Determine the version of glibc, if any, used on the target.
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
30312 $as_echo_n "checking for target glibc version... " >&6; }
30314 # Check whether --with-glibc-version was given.
30315 if test "${with_glibc_version+set}" = set; then :
30316 withval=$with_glibc_version;
30317 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30318 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30319 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30320 else
30321 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
30323 else
30325 glibc_version_major=0
30326 glibc_version_minor=0
30327 if test -f $target_header_dir/features.h \
30328 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30329 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30330 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30331 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30336 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30338 cat >>confdefs.h <<_ACEOF
30339 #define TARGET_GLIBC_MAJOR $glibc_version_major
30340 _ACEOF
30343 cat >>confdefs.h <<_ACEOF
30344 #define TARGET_GLIBC_MINOR $glibc_version_minor
30345 _ACEOF
30348 # Check whether --enable-gnu-unique-object was given.
30349 if test "${enable_gnu_unique_object+set}" = set; then :
30350 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30351 yes | no) ;;
30352 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30353 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30354 esac
30355 else
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30357 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30358 if ${gcc_cv_as_gnu_unique_object+:} false; then :
30359 $as_echo_n "(cached) " >&6
30360 else
30361 gcc_cv_as_gnu_unique_object=no
30362 if test x$gcc_cv_as != x; then
30363 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30364 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30366 (eval $ac_try) 2>&5
30367 ac_status=$?
30368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30369 test $ac_status = 0; }; }
30370 then
30371 gcc_cv_as_gnu_unique_object=yes
30372 else
30373 echo "configure: failed program was" >&5
30374 cat conftest.s >&5
30376 rm -f conftest.o conftest.s
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30380 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30381 if test $gcc_cv_as_gnu_unique_object = yes; then
30382 # We need to unquote above to to use the definition from config.gcc.
30383 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30385 if test $glibc_version_major -gt 2 \
30386 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30387 enable_gnu_unique_object=yes
30394 if test x$enable_gnu_unique_object = xyes; then
30396 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30401 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30402 if ${gcc_cv_as_line_zero+:} false; then :
30403 $as_echo_n "(cached) " >&6
30404 else
30405 gcc_cv_as_line_zero=no
30406 if test "x$gcc_cv_as" != x; then
30407 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30408 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30410 (eval $ac_try) 2>&5
30411 ac_status=$?
30412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30413 test $ac_status = 0; }; } &&
30414 test "x`cat conftest.out`" = x
30415 then
30416 gcc_cv_as_line_zero=yes
30417 else
30418 echo "configure: failed program was" >&5
30419 cat conftest.s >&5
30420 echo "configure: error output was" >&5
30421 cat conftest.out >&5
30423 rm -f conftest.o conftest.s conftest.out
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30427 $as_echo "$gcc_cv_as_line_zero" >&6; }
30428 if test "x$gcc_cv_as_line_zero" = xyes; then
30430 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30435 $as_echo_n "checking support for thin archives... " >&6; }
30436 thin_archive_support=no
30437 echo 'int main (void) { return 0; }' > conftest.c
30438 if ($AR --version | sed 1q | grep "GNU ar" \
30439 && $CC $CFLAGS -c conftest.c \
30440 && $AR rcT conftest.a conftest.o \
30441 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
30442 thin_archive_support=yes
30444 rm -f conftest.c conftest.o conftest.a conftest
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30446 $as_echo "$thin_archive_support" >&6; }
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30450 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30451 gcc_cv_ld_eh_frame_hdr=no
30452 if test $in_tree_ld = yes ; then
30453 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 \
30454 && test $in_tree_ld_is_elf = yes; then
30455 gcc_cv_ld_eh_frame_hdr=yes
30457 elif test x$gcc_cv_ld != x; then
30458 if echo "$ld_ver" | grep GNU > /dev/null; then
30459 # Check if linker supports --eh-frame-hdr option
30460 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30461 gcc_cv_ld_eh_frame_hdr=yes
30463 else
30464 case "$target" in
30465 *-*-solaris2*)
30466 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30467 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30468 gcc_cv_ld_eh_frame_hdr=yes
30471 esac
30475 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30477 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30481 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30484 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30485 gcc_cv_ld_eh_frame_ciev3=no
30486 if test $in_tree_ld = yes ; then
30487 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 \
30488 && test $in_tree_ld_is_elf = yes; then
30489 gcc_cv_ld_eh_frame_ciev3=yes
30491 elif test x$gcc_cv_ld != x; then
30492 if echo "$ld_ver" | grep GNU > /dev/null; then
30493 gcc_cv_ld_eh_frame_ciev3=yes
30494 if test 0"$ld_date" -lt 20040513; then
30495 if test -n "$ld_date"; then
30496 # If there was date string, but was earlier than 2004-05-13, fail
30497 gcc_cv_ld_eh_frame_ciev3=no
30498 elif test "$ld_vers_major" -lt 2; then
30499 gcc_cv_ld_eh_frame_ciev3=no
30500 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30501 gcc_cv_ld_eh_frame_ciev3=no
30504 else
30505 case "$target" in
30506 *-*-solaris2*)
30507 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30508 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30509 gcc_cv_ld_eh_frame_ciev3=yes
30512 esac
30516 cat >>confdefs.h <<_ACEOF
30517 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30518 _ACEOF
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30521 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30524 $as_echo_n "checking linker position independent executable support... " >&6; }
30525 gcc_cv_ld_pie=no
30526 if test $in_tree_ld = yes ; then
30527 case "$target" in
30528 # Full PIE support on Solaris was only introduced in gld 2.26.
30529 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30530 *) gcc_gld_pie_min_version=15 ;;
30531 esac
30532 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 \
30533 && test $in_tree_ld_is_elf = yes; then
30534 gcc_cv_ld_pie=yes
30536 elif test x$gcc_cv_ld != x; then
30537 # Check if linker supports -pie option
30538 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30539 gcc_cv_ld_pie=yes
30540 case "$target" in
30541 *-*-solaris2*)
30542 if echo "$ld_ver" | grep GNU > /dev/null \
30543 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30544 gcc_cv_ld_pie=no
30547 esac
30548 else
30549 case "$target" in
30550 *-*-solaris2.1[1-9]*)
30551 # Solaris 11.3 added PIE support.
30552 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30553 gcc_cv_ld_pie=yes
30556 esac
30559 if test x"$gcc_cv_ld_pie" = xyes; then
30561 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30565 $as_echo "$gcc_cv_ld_pie" >&6; }
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30568 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30569 gcc_cv_ld_pie_copyreloc=no
30570 if test $gcc_cv_ld_pie = yes ; then
30571 if test $in_tree_ld = yes ; then
30572 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
30573 gcc_cv_ld_pie_copyreloc=yes
30575 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30576 # Check if linker supports -pie option with copy reloc
30577 case "$target" in
30578 i?86-*-linux* | x86_64-*-linux*)
30579 cat > conftest1.s <<EOF
30580 .globl a_glob
30581 .data
30582 .type a_glob, @object
30583 .size a_glob, 4
30584 a_glob:
30585 .long 2
30587 cat > conftest2.s <<EOF
30588 .text
30589 .globl main
30590 .type main, @function
30591 main:
30592 movl %eax, a_glob(%rip)
30593 .size main, .-main
30594 .globl ptr
30595 .section .data.rel,"aw",@progbits
30596 .type ptr, @object
30597 ptr:
30598 .quad a_glob
30600 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30601 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30602 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30603 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30604 gcc_cv_ld_pie_copyreloc=yes
30606 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30608 esac
30612 cat >>confdefs.h <<_ACEOF
30613 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30614 _ACEOF
30616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30617 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30620 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30621 gcc_cv_ld_eh_gc_sections=no
30622 if test $in_tree_ld = yes ; then
30623 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 \
30624 && test $in_tree_ld_is_elf = yes; then
30625 gcc_cv_ld_eh_gc_sections=yes
30627 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30628 cat > conftest.s <<EOF
30629 .section .text
30630 .globl _start
30631 .type _start, @function
30632 _start:
30633 .long foo
30634 .size _start, .-_start
30635 .section .text.foo,"ax",@progbits
30636 .type foo, @function
30637 foo:
30638 .long 0
30639 .size foo, .-foo
30640 .section .gcc_except_table.foo,"a",@progbits
30641 .L0:
30642 .long 0
30643 .section .eh_frame,"a",@progbits
30644 .long .L0
30646 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30647 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30648 | grep "gc-sections option ignored" > /dev/null; then
30649 gcc_cv_ld_eh_gc_sections=no
30650 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30651 | grep gcc_except_table > /dev/null; then
30652 gcc_cv_ld_eh_gc_sections=yes
30653 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30654 if test x$gcc_cv_as_comdat_group != xyes; then
30655 gcc_cv_ld_eh_gc_sections=no
30656 cat > conftest.s <<EOF
30657 .section .text
30658 .globl _start
30659 .type _start, @function
30660 _start:
30661 .long foo
30662 .size _start, .-_start
30663 .section .gnu.linkonce.t.foo,"ax",@progbits
30664 .type foo, @function
30665 foo:
30666 .long 0
30667 .size foo, .-foo
30668 .section .gcc_except_table.foo,"a",@progbits
30669 .L0:
30670 .long 0
30671 .section .eh_frame,"a",@progbits
30672 .long .L0
30674 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30675 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30676 | grep "gc-sections option ignored" > /dev/null; then
30677 gcc_cv_ld_eh_gc_sections=no
30678 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30679 | grep gcc_except_table > /dev/null; then
30680 gcc_cv_ld_eh_gc_sections=yes
30686 rm -f conftest.s conftest.o conftest
30688 case "$target" in
30689 hppa*-*-linux*)
30690 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30691 gcc_cv_ld_eh_gc_sections=no
30693 esac
30694 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30696 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30700 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30703 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30704 gcc_cv_ld_eh_gc_sections_bug=no
30705 if test $in_tree_ld = yes ; then
30706 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 \
30707 && test $in_tree_ld_is_elf = yes; then
30708 gcc_cv_ld_eh_gc_sections_bug=yes
30710 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
30711 gcc_cv_ld_eh_gc_sections_bug=yes
30712 cat > conftest.s <<EOF
30713 .section .text
30714 .globl _start
30715 .type _start, @function
30716 _start:
30717 .long foo
30718 .size _start, .-_start
30719 .section .text.startup.foo,"ax",@progbits
30720 .type foo, @function
30721 foo:
30722 .long 0
30723 .size foo, .-foo
30724 .section .gcc_except_table.foo,"a",@progbits
30725 .L0:
30726 .long 0
30727 .section .eh_frame,"a",@progbits
30728 .long .L0
30730 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30731 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30732 | grep "gc-sections option ignored" > /dev/null; then
30734 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30735 | grep gcc_except_table > /dev/null; then
30736 gcc_cv_ld_eh_gc_sections_bug=no
30739 rm -f conftest.s conftest.o conftest
30741 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30743 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30747 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30750 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30751 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30752 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30753 gcc_cv_ld_compress_debug=1
30754 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30755 # Detect zstd debug section compression support
30756 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30757 gcc_cv_ld_compress_debug=2
30759 else
30760 case "${target}" in
30761 *-*-solaris2*)
30762 # Introduced in Solaris 11.2.
30763 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30764 gcc_cv_ld_compress_debug=1
30765 gcc_cv_ld_compress_debug_option="-z compress-sections"
30766 else
30767 gcc_cv_ld_compress_debug=0
30771 # Assume linkers other than GNU ld don't support compessed debug
30772 # sections.
30773 gcc_cv_ld_compress_debug=0
30775 esac
30778 cat >>confdefs.h <<_ACEOF
30779 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30780 _ACEOF
30783 cat >>confdefs.h <<_ACEOF
30784 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30785 _ACEOF
30787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30788 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30790 if test x"$ld64_flag" = x"yes"; then
30792 # Set defaults for possibly untestable items.
30793 gcc_cv_ld64_export_dynamic=0
30794 gcc_cv_ld64_platform_version=0
30795 gcc_cv_ld64_demangle=0
30797 if test "$build" = "$host"; then
30798 darwin_try_test=1
30799 else
30800 darwin_try_test=0
30803 # On Darwin, because of FAT library support, it is often possible to execute
30804 # exes from compatible archs even when the host differs from the build system.
30805 case "$build","$host" in
30806 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30807 darwin_try_test=1;;
30808 *) ;;
30809 esac
30811 # If the configurer specified a minimum ld64 version to be supported, then use
30812 # that to determine feature support.
30813 if test x"${gcc_cv_ld64_version}" != x; then
30814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30815 $as_echo_n "checking ld64 specified version... " >&6; }
30816 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30818 $as_echo "$gcc_cv_ld64_major" >&6; }
30819 if test "$gcc_cv_ld64_major" -ge 97; then
30820 gcc_cv_ld64_demangle=1
30822 if test "$gcc_cv_ld64_major" -ge 236; then
30823 gcc_cv_ld64_export_dynamic=1
30825 if test "$gcc_cv_ld64_major" -ge 512; then
30826 gcc_cv_ld64_platform_version=1
30828 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30829 # If the version was not specified, try to find it.
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30831 $as_echo_n "checking linker version... " >&6; }
30832 if test x"${gcc_cv_ld64_version}" = x; then
30833 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
30834 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30837 $as_echo "$gcc_cv_ld64_version" >&6; }
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
30840 $as_echo_n "checking linker for -demangle support... " >&6; }
30841 gcc_cv_ld64_demangle=1
30842 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30843 gcc_cv_ld64_demangle=0
30845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
30846 $as_echo "$gcc_cv_ld64_demangle" >&6; }
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30849 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30850 gcc_cv_ld64_export_dynamic=1
30851 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30852 gcc_cv_ld64_export_dynamic=0
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30855 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30858 $as_echo_n "checking linker for -platform_version support... " >&6; }
30859 gcc_cv_ld64_platform_version=1
30860 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30861 gcc_cv_ld64_platform_version=0
30863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30864 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30867 if test x"${gcc_cv_ld64_version}" != x; then
30869 cat >>confdefs.h <<_ACEOF
30870 #define LD64_VERSION "${gcc_cv_ld64_version}"
30871 _ACEOF
30876 cat >>confdefs.h <<_ACEOF
30877 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
30878 _ACEOF
30882 cat >>confdefs.h <<_ACEOF
30883 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30884 _ACEOF
30888 cat >>confdefs.h <<_ACEOF
30889 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30890 _ACEOF
30894 if test x"$dsymutil_flag" = x"yes"; then
30896 # If the user specified a dsymutil path, then we will already have the
30897 # version string, otherwise, pick it up.
30898 if test x"$gcc_cv_dsymutil" = x; then
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30900 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30901 dsymutil_vers="tool unspecified"
30902 elif test x"$dsymutil_vers" = x; then
30903 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30906 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30908 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30909 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30910 dsymutil_kind=DWARFUTILS
30911 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30912 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30913 dsymutil_kind=CLANG
30914 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30915 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30916 dsymutil_kind=LLVM
30917 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30918 else
30919 dsymutil_kind=DET_UNKNOWN
30920 dsymutil_vers="0.0"
30922 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30923 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30924 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30925 if test x"${dsymutil_minor}" = x; then
30926 dsymutil_minor=0
30928 if test x"${dsymutil_tiny}" = x; then
30929 dsymutil_tiny=0
30932 cat >>confdefs.h <<_ACEOF
30933 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30934 _ACEOF
30936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30937 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30940 case $target_os in
30941 win32 | pe | cygwin* | mingw32*)
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30943 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30944 gcc_cv_ld_broken_pe_dwarf5=yes
30945 if test $in_tree_ld = yes ; then
30946 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30947 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30948 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30949 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30950 gcc_cv_ld_broken_pe_dwarf5=no
30952 else
30953 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30954 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30955 gcc_cv_ld_broken_pe_dwarf5=no
30958 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30960 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30964 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30967 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30968 gcc_cv_ld_disable_dynamicbase=no
30969 if test $in_tree_ld = yes; then
30970 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 \
30971 gcc_cv_ld_disable_dynamicbase=yes
30973 else
30974 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30975 gcc_cv_ld_disable_dynamicbase=yes
30978 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30980 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30984 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30986 esac
30988 # --------
30989 # UNSORTED
30990 # --------
30992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30993 $as_echo_n "checking linker --as-needed support... " >&6; }
30994 if ${gcc_cv_ld_as_needed+:} false; then :
30995 $as_echo_n "(cached) " >&6
30996 else
30997 gcc_cv_ld_as_needed=no
30998 gcc_cv_ld_as_needed_option='--as-needed'
30999 gcc_cv_ld_no_as_needed_option='--no-as-needed'
31000 if test $in_tree_ld = yes ; then
31001 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 \
31002 && test $in_tree_ld_is_elf = yes; then
31003 gcc_cv_ld_as_needed=yes
31004 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
31005 gcc_cv_ld_as_needed_option='--push-state --as-needed'
31006 gcc_cv_ld_no_as_needed_option='--pop-state'
31009 elif test x$gcc_cv_ld != x; then
31010 # Check if linker supports --as-needed and --no-as-needed options
31011 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
31012 gcc_cv_ld_as_needed=yes
31013 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
31014 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
31015 && echo "$ld_ver" | grep GNU > /dev/null \
31016 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
31017 # Use these options only when both ld.bfd and ld.gold support
31018 # --push-state/--pop-state, which unfortunately wasn't added
31019 # at the same time.
31020 gcc_cv_ld_as_needed_option='--push-state --as-needed'
31021 gcc_cv_ld_no_as_needed_option='--pop-state'
31024 case "$target:$gnu_ld" in
31025 *-*-solaris2*:no)
31026 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
31027 # forms.
31028 gcc_cv_ld_as_needed=yes
31029 gcc_cv_ld_as_needed_option="-z ignore"
31030 gcc_cv_ld_no_as_needed_option="-z record"
31032 esac
31034 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
31035 # dl_iterate_phdr, i.e. since Solaris 11.
31036 case "$target" in
31037 *-*-solaris2.1[1-9]*)
31038 case "$target" in
31039 i?86-*-* | x86_64-*-*)
31040 if echo "$ld_ver" | grep GNU > /dev/null; then
31041 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
31042 gcc_cv_ld_as_needed=no
31045 esac
31047 *-*-solaris2*)
31048 gcc_cv_ld_as_needed=no
31050 esac
31053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
31054 $as_echo "$gcc_cv_ld_as_needed" >&6; }
31055 if test x"$gcc_cv_ld_as_needed" = xyes; then
31057 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
31060 cat >>confdefs.h <<_ACEOF
31061 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
31062 _ACEOF
31065 cat >>confdefs.h <<_ACEOF
31066 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
31067 _ACEOF
31071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
31072 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
31073 saved_LDFLAGS="$LDFLAGS"
31074 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
31075 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
31076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31077 /* end confdefs.h. */
31078 int main(void) {return 0;}
31079 _ACEOF
31080 if ac_fn_cxx_try_link "$LINENO"; then :
31081 gcc_cv_ld_clearcap=yes; break
31082 else
31083 gcc_cv_ld_clearcap=no
31085 rm -f core conftest.err conftest.$ac_objext \
31086 conftest$ac_exeext conftest.$ac_ext
31087 done
31088 LDFLAGS="$saved_LDFLAGS"
31089 if test "x$gcc_cv_ld_clearcap" = xyes; then
31091 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
31093 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
31097 $as_echo "$gcc_cv_ld_clearcap" >&6; }
31099 case "$target" in
31100 powerpc*-*-*)
31101 case "$target" in
31102 *le-*-linux*)
31103 emul_name="-melf32lppc"
31106 emul_name="-melf32ppc"
31108 esac
31109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
31110 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
31111 if ${gcc_cv_ld_ppc_attr+:} false; then :
31112 $as_echo_n "(cached) " >&6
31113 else
31114 gcc_cv_ld_ppc_attr=no
31115 if test x"$ld_is_gold" = xyes; then
31116 gcc_cv_ld_ppc_attr=yes
31117 elif test $in_tree_ld = yes ; then
31118 if test "$gcc_cv_gld_major_version" -eq 2 \
31119 -a "$gcc_cv_gld_minor_version" -ge 28 \
31120 -o "$gcc_cv_gld_major_version" -gt 2; then
31121 gcc_cv_ld_ppc_attr=yes
31123 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
31124 # check that merging the long double .gnu_attribute doesn't warn
31125 cat > conftest1.s <<EOF
31126 .gnu_attribute 4,1
31128 cat > conftest2.s <<EOF
31129 .gnu_attribute 4,9
31131 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
31132 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
31133 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
31134 && test ! -s conftest.err; then
31135 gcc_cv_ld_ppc_attr=yes
31137 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
31142 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
31143 if test x$gcc_cv_ld_ppc_attr = xyes; then
31145 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
31149 esac
31151 case "$target:$tm_file" in
31152 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
31153 case "$target" in
31154 *le-*-linux*)
31155 emul_name="-melf64lppc"
31157 *-*-linux*)
31158 emul_name="-melf64ppc"
31160 *le-*-freebsd*)
31161 emul_name="-melf64lppc_fbsd"
31163 *-*-freebsd*)
31164 emul_name="-melf64ppc_fbsd"
31166 esac
31167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
31168 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
31169 if ${gcc_cv_ld_no_dot_syms+:} false; then :
31170 $as_echo_n "(cached) " >&6
31171 else
31172 gcc_cv_ld_no_dot_syms=no
31173 if test x"$ld_is_gold" = xyes; then
31174 gcc_cv_ld_no_dot_syms=yes
31175 elif test $in_tree_ld = yes ; then
31176 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
31177 gcc_cv_ld_no_dot_syms=yes
31179 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
31180 cat > conftest1.s <<EOF
31181 .text
31182 bl .foo
31184 cat > conftest2.s <<EOF
31185 .section ".opd","aw"
31186 .align 3
31187 .globl foo
31188 .type foo,@function
31189 foo:
31190 .quad .LEfoo,.TOC.@tocbase,0
31191 .text
31192 .LEfoo:
31194 .size foo,.-.LEfoo
31196 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
31197 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
31198 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
31199 gcc_cv_ld_no_dot_syms=yes
31201 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
31205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
31206 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
31207 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
31209 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31214 $as_echo_n "checking linker large toc support... " >&6; }
31215 if ${gcc_cv_ld_large_toc+:} false; then :
31216 $as_echo_n "(cached) " >&6
31217 else
31218 gcc_cv_ld_large_toc=no
31219 if test x"$ld_is_gold" = xyes; then
31220 gcc_cv_ld_large_toc=yes
31221 elif test $in_tree_ld = yes ; then
31222 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
31223 gcc_cv_ld_large_toc=yes
31225 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
31226 cat > conftest.s <<EOF
31227 .section ".tbss","awT",@nobits
31228 .align 3
31229 ie0: .space 8
31230 .global _start
31231 .text
31232 _start:
31233 addis 9,13,ie0@got@tprel@ha
31234 ld 9,ie0@got@tprel@l(9)
31236 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
31237 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
31238 gcc_cv_ld_large_toc=yes
31240 rm -f conftest conftest.o conftest.s
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31245 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31246 if test x"$gcc_cv_ld_large_toc" = xyes; then
31248 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
31253 $as_echo_n "checking linker toc pointer alignment... " >&6; }
31254 if ${gcc_cv_ld_toc_align+:} false; then :
31255 $as_echo_n "(cached) " >&6
31256 else
31257 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
31258 cat > conftest.s <<EOF
31259 .global _start
31260 .text
31261 _start:
31262 addis 9,2,x@got@ha
31263 .section .data.rel.ro,"aw",@progbits
31264 .p2align 16
31265 .space 32768
31266 x: .quad .TOC.
31268 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
31269 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
31270 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)) }'`
31272 rm -f conftest conftest.o conftest.s
31276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
31277 $as_echo "$gcc_cv_ld_toc_align" >&6; }
31278 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
31280 cat >>confdefs.h <<_ACEOF
31281 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
31282 _ACEOF
31286 esac
31288 case "$target" in
31289 *-*-aix*)
31290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31291 $as_echo_n "checking linker large toc support... " >&6; }
31292 if ${gcc_cv_ld_large_toc+:} false; then :
31293 $as_echo_n "(cached) " >&6
31294 else
31295 gcc_cv_ld_large_toc=no
31296 if test x$gcc_cv_as != x ; then
31297 cat > conftest.s <<EOF
31298 .toc
31299 LC..1:
31300 .tc a[TC],a[RW]
31301 .extern a[RW]
31302 .csect .text[PR]
31303 .largetoctest:
31304 addis 9,LC..1@u(2)
31305 ld 3,LC..1@l(9)
31307 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
31308 gcc_cv_ld_large_toc=yes
31310 rm -f conftest conftest.o conftest.s
31314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31315 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31316 if test x"$gcc_cv_ld_large_toc" = xyes; then
31318 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31322 esac
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
31325 $as_echo_n "checking linker --build-id support... " >&6; }
31326 if ${gcc_cv_ld_buildid+:} false; then :
31327 $as_echo_n "(cached) " >&6
31328 else
31329 gcc_cv_ld_buildid=no
31330 if test $in_tree_ld = yes ; then
31331 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31332 "$gcc_cv_gld_minor_version" -ge 18 -o \
31333 "$gcc_cv_gld_major_version" -gt 2 \
31334 && test $in_tree_ld_is_elf = yes; then
31335 gcc_cv_ld_buildid=yes
31337 elif test x$gcc_cv_ld != x; then
31338 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
31339 gcc_cv_ld_buildid=yes
31343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31344 $as_echo "$gcc_cv_ld_buildid" >&6; }
31345 if test x"$gcc_cv_ld_buildid" = xyes; then
31347 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31351 # Check whether --enable-linker-build-id was given.
31352 if test "${enable_linker_build_id+set}" = set; then :
31353 enableval=$enable_linker_build_id;
31354 else
31355 enable_linker_build_id=no
31359 if test x"$enable_linker_build_id" = xyes; then
31360 if test x"$gcc_cv_ld_buildid" = xyes; then
31362 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31364 else
31365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31366 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31370 # In binutils 2.21, GNU ld gained support for new emulations fully
31371 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31373 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31374 if ${gcc_cv_ld_sol2_emulation+:} false; then :
31375 $as_echo_n "(cached) " >&6
31376 else
31377 gcc_cv_ld_sol2_emulation=no
31378 if test $in_tree_ld = yes ; then
31379 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31380 "$gcc_cv_gld_minor_version" -ge 21 -o \
31381 "$gcc_cv_gld_major_version" -gt 2 \
31382 && test $in_tree_ld_is_elf = yes; then
31383 gcc_cv_ld_sol2_emulation=yes
31385 elif test x$gcc_cv_ld != x; then
31386 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
31387 grep _sol2 > /dev/null; then
31388 gcc_cv_ld_sol2_emulation=yes
31392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31393 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31394 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
31396 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31401 $as_echo_n "checking linker --sysroot support... " >&6; }
31402 if ${gcc_cv_ld_sysroot+:} false; then :
31403 $as_echo_n "(cached) " >&6
31404 else
31405 gcc_cv_ld_sysroot=no
31406 if test $in_tree_ld = yes ; then
31407 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
31408 gcc_cv_ld_sysroot=yes
31410 elif test x$gcc_cv_ld != x; then
31411 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
31412 gcc_cv_ld_sysroot=yes
31416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31417 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31418 if test x"$gcc_cv_ld_sysroot" = xyes; then
31420 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31424 case $target in
31425 *-*-solaris2*)
31426 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31428 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31429 if ${gcc_cv_solaris_crts+:} false; then :
31430 $as_echo_n "(cached) " >&6
31431 else
31432 gcc_cv_solaris_crts=no
31433 if test x$host != x$target; then
31434 if test "x$with_sysroot" = xyes; then
31435 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
31436 else
31437 target_sysroot="${with_sysroot}"
31440 target_libdir="$target_sysroot/usr/lib"
31441 # At the time they were added, gcrt1.o became a symlink for backwards
31442 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31443 case $target in
31444 i?86-*-solaris2* | x86_64-*-solaris2*)
31445 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
31447 sparc*-*-solaris2*)
31448 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
31450 esac
31452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31453 $as_echo "$gcc_cv_solaris_crts" >&6; }
31455 esac
31456 if test x$gcc_cv_solaris_crts = xyes; then
31458 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31462 # Check whether --enable-libssp was given.
31463 if test "${enable_libssp+set}" = set; then :
31464 enableval=$enable_libssp; case "${enableval}" in
31465 yes|no)
31468 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
31470 esac
31474 # Test for stack protector support in target C library.
31475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31476 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31477 if ${gcc_cv_libc_provides_ssp+:} false; then :
31478 $as_echo_n "(cached) " >&6
31479 else
31480 gcc_cv_libc_provides_ssp=no
31481 if test "x$enable_libssp" = "xno"; then
31482 gcc_cv_libc_provides_ssp=yes
31483 elif test "x$enable_libssp" = "xyes"; then
31484 gcc_cv_libc_provides_ssp=no
31485 else
31486 case "$target" in
31487 *-*-musl*)
31488 # All versions of musl provide stack protector
31489 gcc_cv_libc_provides_ssp=yes;;
31490 *-*-linux* | *-*-kfreebsd*-gnu)
31491 # glibc 2.4 and later provides __stack_chk_fail and
31492 # either __stack_chk_guard, or TLS access to stack guard canary.
31494 if test $glibc_version_major -gt 2 \
31495 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31496 gcc_cv_libc_provides_ssp=yes
31497 else
31499 if test -f $target_header_dir/features.h \
31500 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31501 $target_header_dir/features.h > /dev/null; then
31502 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31503 $target_header_dir/features.h > /dev/null && \
31504 test -f $target_header_dir/bits/uClibc_config.h && \
31505 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31506 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31507 gcc_cv_libc_provides_ssp=yes
31509 # all versions of Bionic support stack protector
31510 elif test -f $target_header_dir/sys/cdefs.h \
31511 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31512 $target_header_dir/sys/cdefs.h > /dev/null; then
31513 gcc_cv_libc_provides_ssp=yes
31517 *-*-gnu*)
31518 # Avoid complicated tests (see
31519 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31520 # simply assert that glibc does provide this, which is true for all
31521 # realistically usable GNU/Hurd configurations.
31522 # All supported versions of musl provide it as well
31523 gcc_cv_libc_provides_ssp=yes;;
31524 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31525 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31526 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31527 gcc_cv_libc_provides_ssp=yes
31528 else
31529 echo "no __stack_chk_fail on this target"
31533 *) gcc_cv_libc_provides_ssp=no ;;
31534 esac
31537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31538 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31540 if test x$gcc_cv_libc_provides_ssp = xyes; then
31542 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31546 # Check whether --enable-default-ssp was given.
31547 # Check whether --enable-default-ssp was given.
31548 if test "${enable_default_ssp+set}" = set; then :
31549 enableval=$enable_default_ssp;
31550 if test x$gcc_cv_libc_provides_ssp = xyes; then
31551 case "$target" in
31552 ia64*-*-*) enable_default_ssp=no ;;
31553 *) enable_default_ssp=$enableval ;;
31554 esac
31555 else
31556 enable_default_ssp=no
31558 else
31559 enable_default_ssp=no
31562 if test x$enable_default_ssp = xyes ; then
31564 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31569 # Test for <sys/sdt.h> on the target.
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31572 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31573 if ${gcc_cv_sys_sdt_h+:} false; then :
31574 $as_echo_n "(cached) " >&6
31575 else
31577 gcc_cv_sys_sdt_h=no
31578 if test -f $target_header_dir/sys/sdt.h; then
31579 gcc_cv_sys_sdt_h=yes
31583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31584 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31585 if test x$gcc_cv_sys_sdt_h = xyes; then :
31588 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31593 # Check if TFmode long double should be used by default or not.
31594 # Some glibc targets used DFmode long double, but with glibc 2.4
31595 # and later they can use TFmode.
31596 case "$target" in
31597 powerpc*-*-linux* | \
31598 sparc*-*-linux* | \
31599 s390*-*-linux* | \
31600 alpha*-*-linux*)
31602 # Check whether --with-long-double-128 was given.
31603 if test "${with_long_double_128+set}" = set; then :
31604 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31605 else
31607 case "$target" in
31608 s390*-*-linux-musl*)
31609 gcc_cv_target_ldbl128=yes
31611 powerpc*-*-linux-musl*)
31612 gcc_cv_target_ldbl128=no
31616 if test $glibc_version_major -gt 2 \
31617 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31618 gcc_cv_target_ldbl128=yes
31619 else
31621 gcc_cv_target_ldbl128=no
31622 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31623 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31624 && gcc_cv_target_ldbl128=yes
31629 esac
31634 esac
31635 if test x$gcc_cv_target_ldbl128 = xyes; then
31637 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31641 # Check if TFmode long double target should use the IBM extended double or IEEE
31642 # 128-bit floating point formats if long doubles are 128-bits long. The long
31643 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31644 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31645 # libgcc.
31647 # Check whether --with-long-double-format was given.
31648 if test "${with_long_double_format+set}" = set; then :
31649 withval=$with_long_double_format;
31650 case "$target:$with_long_double_format" in
31651 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31654 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31655 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31656 case "$with_cpu" in
31657 power7 | power8 | power9 | power1*)
31661 as_fn_error $? "Configuration option --with-long-double-format is only \
31662 supported if the default cpu is power7 or newer" "$LINENO" 5
31663 with_long_double_format=""
31665 esac
31667 powerpc64*-*-linux*:*)
31668 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31669 with_long_double_format=""
31672 as_fn_error $? "Configure option --with-long-double-format is only supported \
31673 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31674 with_long_double_format=""
31676 esac
31680 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31681 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31682 gcc_cv_libc_provides_hwcap_in_tcb=no
31683 case "$target" in
31684 powerpc*-*-linux*)
31686 if test $glibc_version_major -gt 2 \
31687 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31688 gcc_cv_libc_provides_hwcap_in_tcb=yes
31691 esac
31692 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31694 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31698 # Check if the target LIBC handles PT_GNU_STACK.
31699 gcc_cv_libc_gnustack=unknown
31700 case "$target" in
31701 mips*-*-linux-musl*)
31702 gcc_cv_libc_gnustack=yes
31704 mips*-*-linux*)
31706 if test $glibc_version_major -gt 2 \
31707 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31708 gcc_cv_libc_gnustack=yes
31711 esac
31712 if test x$gcc_cv_libc_gnustack = xyes; then
31714 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31719 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31720 gcc_cv_target_dl_iterate_phdr=unknown
31721 case "$target" in
31722 *-*-solaris2*)
31723 # <link.h> needs both a dl_iterate_phdr declaration and support for
31724 # compilation with largefile support.
31725 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31726 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31727 gcc_cv_target_dl_iterate_phdr=yes
31728 else
31729 gcc_cv_target_dl_iterate_phdr=no
31732 *-*-dragonfly* | *-*-freebsd*)
31733 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31734 gcc_cv_target_dl_iterate_phdr=yes
31735 else
31736 gcc_cv_target_dl_iterate_phdr=no
31739 *-linux-musl*)
31740 gcc_cv_target_dl_iterate_phdr=yes
31742 esac
31744 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31746 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31750 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31752 # We no longer support different GC mechanisms. Emit an error if
31753 # the user configures with --with-gc.
31755 # Check whether --with-gc was given.
31756 if test "${with_gc+set}" = set; then :
31757 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31761 # Libraries to use on the host. This will normally be set by the top
31762 # level Makefile. Here we simply capture the value for our Makefile.
31763 if test -z "${HOST_LIBS+set}"; then
31764 HOST_LIBS=
31768 # Use the system's zlib library.
31770 # Use the system's zlib library.
31771 zlibdir="-L\$(top_builddir)/../zlib"
31772 zlibinc="-I\$(top_srcdir)/../zlib"
31774 # Check whether --with-system-zlib was given.
31775 if test "${with_system_zlib+set}" = set; then :
31776 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31777 zlibdir=
31778 zlibinc=
31788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31789 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31790 # Check whether --enable-maintainer-mode was given.
31791 if test "${enable_maintainer_mode+set}" = set; then :
31792 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31793 else
31794 maintainer_mode=no
31798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31799 $as_echo "$maintainer_mode" >&6; }
31801 if test "$maintainer_mode" = "yes"; then
31802 MAINT=''
31803 else
31804 MAINT='#'
31807 if test -z "$CTAGS"; then
31808 CTAGS=ctags
31811 if test -z "$ETAGS"; then
31812 ETAGS=etags
31815 if test -z "$CSCOPE"; then
31816 CSCOPE=cscope
31821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31822 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31823 # Check whether --enable-link-mutex was given.
31824 if test "${enable_link_mutex+set}" = set; then :
31825 enableval=$enable_link_mutex; do_link_mutex=$enableval
31826 else
31827 do_link_mutex=no
31830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31831 $as_echo "$do_link_mutex" >&6; }
31833 if test "$do_link_mutex" = "yes"; then
31834 DO_LINK_MUTEX=true
31835 { $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
31836 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31837 else
31838 DO_LINK_MUTEX=false
31843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31844 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31845 # Check whether --enable-link-serialization was given.
31846 if test "${enable_link_serialization+set}" = set; then :
31847 enableval=$enable_link_serialization; do_link_serialization=$enableval
31848 else
31849 do_link_serialization=no
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31853 $as_echo "$do_link_serialization" >&6; }
31855 case "$do_link_serialization" in
31856 yes)
31857 DO_LINK_SERIALIZATION=1;;
31858 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31859 DO_LINK_SERIALIZATION=$do_link_serialization;;
31861 DO_LINK_SERIALIZATION=;;
31863 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31864 esac
31867 # --------------
31868 # Language hooks
31869 # --------------
31871 # Make empty files to contain the specs and options for each language.
31872 # Then add #include lines to for a compiler that has specs and/or options.
31874 subdirs=
31875 lang_opt_files=
31876 lang_specs_files=
31877 lang_tree_files=
31878 # These (without "all_") are set in each config-lang.in.
31879 # `language' must be a single word so is spelled singularly.
31880 all_languages=
31881 all_compilers=
31882 all_outputs='Makefile'
31883 # List of language configure and makefile fragments.
31884 all_lang_configurefrags=
31885 all_lang_makefrags=
31886 # Additional files for gengtype
31887 all_gtfiles="$target_gtfiles"
31889 # These are the languages that are set in --enable-languages,
31890 # and are available in the GCC tree.
31891 all_selected_languages=
31893 # Add the language fragments.
31894 # Languages are added via two mechanisms. Some information must be
31895 # recorded in makefile variables, these are defined in config-lang.in.
31896 # We accumulate them and plug them into the main Makefile.
31897 # The other mechanism is a set of hooks for each of the main targets
31898 # like `clean', `install', etc.
31900 language_hooks="Make-hooks"
31902 for lang in ${srcdir}/*/config-lang.in
31904 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31906 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31907 if test "x$lang_alias" = x
31908 then
31909 echo "$lang doesn't set \$language." 1>&2
31910 exit 1
31912 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31913 subdirs="$subdirs $subdir"
31915 # $gcc_subdir is where the gcc integration files are to be found
31916 # for a language, both for internal compiler purposes (compiler
31917 # sources implementing front-end to GCC tree converters), and for
31918 # build infrastructure purposes (Make-lang.in, etc.)
31920 # This will be <subdir> (relative to $srcdir) if a line like
31921 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31922 # is found in <langdir>/config-lang.in, and will remain <langdir>
31923 # otherwise.
31925 # Except for the language alias (fetched above), the regular
31926 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31927 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31928 # only this and the language alias.
31930 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31931 if [ "$gcc_subdir" = "" ]; then
31932 gcc_subdir="$subdir"
31935 case ",$enable_languages," in
31936 *,$lang_alias,*)
31937 all_selected_languages="$all_selected_languages $lang_alias"
31938 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31939 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31942 esac
31944 language=
31945 boot_language=
31946 compilers=
31947 outputs=
31948 gtfiles=
31949 subdir_requires=
31950 . ${srcdir}/$gcc_subdir/config-lang.in
31951 if test "x$language" = x
31952 then
31953 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31954 exit 1
31957 ok=:
31958 case ",$enable_languages," in
31959 *,$lang_alias,*) ;;
31961 for i in $subdir_requires; do
31962 test -f "${srcdir}/$i/config-lang.in" && continue
31963 ok=false
31964 break
31965 done
31967 esac
31968 $ok || continue
31970 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31971 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31972 # Put c/Make-lang.in fragment first to match serialization languages order.
31973 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31974 else
31975 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31977 if test -f $srcdir/$gcc_subdir/lang.opt; then
31978 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31979 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31981 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31982 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31984 all_languages="$all_languages $language"
31985 all_compilers="$all_compilers $compilers"
31986 all_outputs="$all_outputs $outputs"
31987 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31988 case ",$enable_languages," in
31989 *,lto,*)
31991 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31993 enable_lto=yes
31996 *) ;;
31997 esac
31998 done
32000 check_languages=
32001 for language in $all_selected_languages
32003 check_languages="$check_languages check-$language"
32004 done
32006 selftest_languages=
32007 for language in $all_selected_languages
32009 selftest_languages="$selftest_languages selftest-$language"
32010 done
32012 # We link each language in with a set of hooks, reached indirectly via
32013 # lang.${target}. Only do so for selected languages.
32015 rm -f Make-hooks
32016 touch Make-hooks
32017 target_list="all.cross start.encap rest.encap tags \
32018 install-common install-man install-info install-dvi install-pdf \
32019 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
32020 mostlyclean clean distclean maintainer-clean install-plugin"
32022 for t in $target_list
32025 for lang in $all_selected_languages
32027 x="$x $lang.$t"
32028 done
32029 echo "lang.$t: $x" >> Make-hooks
32030 done
32032 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
32033 echo "SERIAL_LIST =" >> Make-hooks
32034 echo else >> Make-hooks
32035 lang_cnt=0
32036 lang_list=
32037 prev=c
32038 serialization_languages=c
32039 for lang in $all_selected_languages
32041 test $lang = c && continue
32042 if test $lang = lto; then
32043 serialization_languages="$serialization_languages lto1 lto2"
32044 else
32045 serialization_languages="$serialization_languages $lang"
32047 done
32048 for lang in $serialization_languages
32050 test $lang = c && continue
32051 lang_cnt=`expr $lang_cnt + 1`
32052 lang_list=" $prev$lang_list"
32053 prev=${lang}
32054 done
32055 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
32056 echo endif >> Make-hooks
32057 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
32058 echo "INDEX.c = 0" >> Make-hooks
32059 lang_idx=1
32060 for lang in $serialization_languages
32062 test $lang = c && continue
32063 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
32064 echo "INDEX.$lang = $lang_idx" >> Make-hooks
32065 lang_cnt=`expr $lang_cnt - 1`
32066 lang_idx=`expr $lang_idx + 1`
32067 done
32069 # --------
32070 # Option include files
32071 # --------
32073 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
32074 option_includes="option-includes.mk"
32077 # --------
32078 # UNSORTED
32079 # --------
32081 # Create .gdbinit.
32083 echo "dir ." > .gdbinit
32084 echo "dir ${srcdir}" >> .gdbinit
32085 if test x$gdb_needs_out_file_path = xyes
32086 then
32087 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
32089 if test "x$subdirs" != x; then
32090 for s in $subdirs
32092 echo "dir ${srcdir}/$s" >> .gdbinit
32093 done
32095 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
32096 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
32098 # Put a breakpoint on __asan_report_error to help with debugging buffer
32099 # overflow.
32100 case "$CFLAGS" in
32101 *-fsanitize=address*)
32102 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
32104 esac
32106 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
32110 # Find a directory in which to install a shared libgcc.
32112 # Check whether --enable-version-specific-runtime-libs was given.
32113 if test "${enable_version_specific_runtime_libs+set}" = set; then :
32114 enableval=$enable_version_specific_runtime_libs;
32118 # Substitute configuration variables
32191 # Echo link setup.
32192 if test x${build} = x${host} ; then
32193 if test x${host} = x${target} ; then
32194 echo "Links are now set up to build a native compiler for ${target}." 1>&2
32195 else
32196 echo "Links are now set up to build a cross-compiler" 1>&2
32197 echo " from ${host} to ${target}." 1>&2
32199 else
32200 if test x${host} = x${target} ; then
32201 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
32202 echo " for ${target}." 1>&2
32203 else
32204 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
32205 echo " from ${host} to ${target}." 1>&2
32214 if test "x${ISLLIBS}" != "x" ; then
32216 $as_echo "#define HAVE_isl 1" >>confdefs.h
32220 # Check for plugin support
32221 # Check whether --enable-plugin was given.
32222 if test "${enable_plugin+set}" = set; then :
32223 enableval=$enable_plugin; enable_plugin=$enableval
32224 else
32225 enable_plugin=yes; default_plugin=yes
32229 pluginlibs=
32230 plugin_check=yes
32232 case "${host}" in
32233 *-*-mingw*)
32234 # Since plugin support under MinGW is not as straightforward as on
32235 # other platforms (e.g., we have to link import library, etc), we
32236 # only enable it if explicitly requested.
32237 if test x"$default_plugin" = x"yes"; then
32238 enable_plugin=no
32239 elif test x"$enable_plugin" = x"yes"; then
32240 # Use make's target variable to derive import library name.
32241 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
32242 plugin_check=no
32245 *-*-darwin*)
32246 if test x$build = x$host; then
32247 export_sym_check="nm${exeext} -g"
32248 elif test x$host = x$target; then
32249 export_sym_check="$gcc_cv_nm -g"
32250 else
32251 export_sym_check=
32255 if test x$build = x$host; then
32256 export_sym_check="$ac_cv_prog_OBJDUMP -T"
32257 elif test x$host = x$target; then
32258 export_sym_check="$gcc_cv_objdump -T"
32259 else
32260 export_sym_check="$ac_cv_prog_OBJDUMP -T"
32263 esac
32265 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
32267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
32268 $as_echo_n "checking for exported symbols... " >&6; }
32269 if test "x$export_sym_check" != x; then
32270 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
32271 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
32272 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
32273 : # No need to use a flag
32274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32275 $as_echo "yes" >&6; }
32276 else
32277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32278 $as_echo "yes" >&6; }
32279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
32280 $as_echo_n "checking for -rdynamic... " >&6; }
32281 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
32282 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
32283 plugin_rdynamic=yes
32284 pluginlibs="-rdynamic"
32285 else
32286 plugin_rdynamic=no
32287 enable_plugin=no
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
32290 $as_echo "$plugin_rdynamic" >&6; }
32292 else
32293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
32294 $as_echo "unable to check" >&6; }
32297 # Check -ldl
32298 saved_LIBS="$LIBS"
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
32300 $as_echo_n "checking for library containing dlopen... " >&6; }
32301 if ${ac_cv_search_dlopen+:} false; then :
32302 $as_echo_n "(cached) " >&6
32303 else
32304 ac_func_search_save_LIBS=$LIBS
32305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32306 /* end confdefs.h. */
32308 /* Override any GCC internal prototype to avoid an error.
32309 Use char because int might match the return type of a GCC
32310 builtin and then its argument prototype would still apply. */
32311 #ifdef __cplusplus
32312 extern "C"
32313 #endif
32314 char dlopen ();
32316 main ()
32318 return dlopen ();
32320 return 0;
32322 _ACEOF
32323 for ac_lib in '' dl; do
32324 if test -z "$ac_lib"; then
32325 ac_res="none required"
32326 else
32327 ac_res=-l$ac_lib
32328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32330 if ac_fn_cxx_try_link "$LINENO"; then :
32331 ac_cv_search_dlopen=$ac_res
32333 rm -f core conftest.err conftest.$ac_objext \
32334 conftest$ac_exeext
32335 if ${ac_cv_search_dlopen+:} false; then :
32336 break
32338 done
32339 if ${ac_cv_search_dlopen+:} false; then :
32341 else
32342 ac_cv_search_dlopen=no
32344 rm conftest.$ac_ext
32345 LIBS=$ac_func_search_save_LIBS
32347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32348 $as_echo "$ac_cv_search_dlopen" >&6; }
32349 ac_res=$ac_cv_search_dlopen
32350 if test "$ac_res" != no; then :
32351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32355 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
32356 pluginlibs="$pluginlibs -ldl"
32358 LIBS="$saved_LIBS"
32360 # Check that we can build shared objects with -fPIC -shared
32361 saved_LDFLAGS="$LDFLAGS"
32362 saved_CFLAGS="$CFLAGS"
32363 saved_CXXFLAGS="$CXXFLAGS"
32364 case "${host}" in
32365 *-*-darwin*)
32366 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32367 CFLAGS="$CFLAGS -fPIC"
32368 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32369 CXXFLAGS="$CXXFLAGS -fPIC"
32370 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
32373 CFLAGS="$CFLAGS -fPIC"
32374 CXXFLAGS="$CXXFLAGS -fPIC"
32375 LDFLAGS="$LDFLAGS -fPIC -shared"
32377 esac
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32379 $as_echo_n "checking for -fPIC -shared... " >&6; }
32380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32381 /* end confdefs.h. */
32382 extern int X;
32384 main ()
32386 return X == 0;
32388 return 0;
32390 _ACEOF
32391 if ac_fn_cxx_try_link "$LINENO"; then :
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32393 $as_echo "yes" >&6; }; have_pic_shared=yes
32394 else
32395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32396 $as_echo "no" >&6; }; have_pic_shared=no
32398 rm -f core conftest.err conftest.$ac_objext \
32399 conftest$ac_exeext conftest.$ac_ext
32400 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
32401 pluginlibs=
32402 enable_plugin=no
32404 LDFLAGS="$saved_LDFLAGS"
32405 CFLAGS="$saved_CFLAGS"
32406 CXXFLAGS="$saved_CXXFLAGS"
32408 # If plugin support had been requested but not available, fail.
32409 if test x"$enable_plugin" = x"no" ; then
32410 if test x"$default_plugin" != x"yes"; then
32411 as_fn_error $? "
32412 Building GCC with plugin support requires a host that supports
32413 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32420 if test x"$enable_plugin" = x"yes"; then
32422 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32427 # Enable --enable-host-shared
32428 # Check whether --enable-host-shared was given.
32429 if test "${enable_host_shared+set}" = set; then :
32430 enableval=$enable_host_shared;
32435 # Enable --enable-host-pie
32436 # Check whether --enable-host-pie was given.
32437 if test "${enable_host_pie+set}" = set; then :
32438 enableval=$enable_host_pie;
32443 # Enable --enable-host-bind-now
32444 # Check whether --enable-host-bind-now was given.
32445 if test "${enable_host_bind_now+set}" = set; then :
32446 enableval=$enable_host_bind_now;
32451 # Check whether --enable-libquadmath-support was given.
32452 if test "${enable_libquadmath_support+set}" = set; then :
32453 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
32454 else
32455 ENABLE_LIBQUADMATH_SUPPORT=yes
32458 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32460 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32465 # Specify what hash style to use by default.
32467 # Check whether --with-linker-hash-style was given.
32468 if test "${with_linker_hash_style+set}" = set; then :
32469 withval=$with_linker_hash_style; case x"$withval" in
32470 xsysv)
32471 LINKER_HASH_STYLE=sysv
32473 xgnu)
32474 LINKER_HASH_STYLE=gnu
32476 xboth)
32477 LINKER_HASH_STYLE=both
32480 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32482 esac
32483 else
32484 LINKER_HASH_STYLE=''
32487 if test x"${LINKER_HASH_STYLE}" != x; then
32489 cat >>confdefs.h <<_ACEOF
32490 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32491 _ACEOF
32495 # Specify what should be the default of -fdiagnostics-color option.
32497 # Check whether --with-diagnostics-color was given.
32498 if test "${with_diagnostics_color+set}" = set; then :
32499 withval=$with_diagnostics_color; case x"$withval" in
32500 xnever)
32501 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32503 xauto)
32504 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32506 xauto-if-env)
32507 DIAGNOSTICS_COLOR_DEFAULT=-1
32509 xalways)
32510 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32513 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32515 esac
32516 else
32517 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32521 cat >>confdefs.h <<_ACEOF
32522 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32523 _ACEOF
32526 # Specify what should be the default of -fdiagnostics-urls option.
32528 # Check whether --with-diagnostics-urls was given.
32529 if test "${with_diagnostics_urls+set}" = set; then :
32530 withval=$with_diagnostics_urls; case x"$withval" in
32531 xnever)
32532 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32534 xauto)
32535 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32537 xauto-if-env)
32538 DIAGNOSTICS_URLS_DEFAULT=-1
32540 xalways)
32541 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32544 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32546 esac
32547 else
32548 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32552 cat >>confdefs.h <<_ACEOF
32553 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32554 _ACEOF
32557 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32558 # of jit/jit-playback.cc.
32559 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32560 echo "gcc_driver_version: ${gcc_driver_version}"
32561 cat > gcc-driver-name.h <<EOF
32562 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32565 # Check whether --enable-default-pie was given.
32566 # Check whether --enable-default-pie was given.
32567 if test "${enable_default_pie+set}" = set; then :
32568 enableval=$enable_default_pie; enable_default_pie=$enableval
32569 else
32570 enable_default_pie=no
32573 if test x$enable_default_pie = xyes ; then
32575 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32580 # Check if -fno-PIE works.
32581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32582 $as_echo_n "checking for -fno-PIE option... " >&6; }
32583 if ${gcc_cv_c_no_fpie+:} false; then :
32584 $as_echo_n "(cached) " >&6
32585 else
32586 saved_CXXFLAGS="$CXXFLAGS"
32587 CXXFLAGS="$CXXFLAGS -fno-PIE"
32588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32589 /* end confdefs.h. */
32590 int main(void) {return 0;}
32591 _ACEOF
32592 if ac_fn_cxx_try_compile "$LINENO"; then :
32593 gcc_cv_c_no_fpie=yes
32594 else
32595 gcc_cv_c_no_fpie=no
32597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32598 CXXFLAGS="$saved_CXXFLAGS"
32600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32601 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32603 # Check if -no-pie works.
32604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32605 $as_echo_n "checking for -no-pie option... " >&6; }
32606 if ${gcc_cv_no_pie+:} false; then :
32607 $as_echo_n "(cached) " >&6
32608 else
32609 saved_LDFLAGS="$LDFLAGS"
32610 LDFLAGS="$LDFLAGS -no-pie"
32611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32612 /* end confdefs.h. */
32613 int main(void) {return 0;}
32614 _ACEOF
32615 if ac_fn_cxx_try_link "$LINENO"; then :
32616 gcc_cv_no_pie=yes
32617 else
32618 gcc_cv_no_pie=no
32620 rm -f core conftest.err conftest.$ac_objext \
32621 conftest$ac_exeext conftest.$ac_ext
32622 LDFLAGS="$saved_LDFLAGS"
32624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32625 $as_echo "$gcc_cv_no_pie" >&6; }
32627 if test x$enable_host_shared = xyes; then
32628 PICFLAG=-fPIC
32629 elif test x$enable_host_pie = xyes; then
32630 PICFLAG=-fPIE
32631 elif test x$gcc_cv_c_no_fpie = xyes; then
32632 PICFLAG=-fno-PIE
32633 else
32634 PICFLAG=
32639 if test x$enable_host_pie = xyes; then
32640 LD_PICFLAG=-pie
32641 elif test x$gcc_cv_no_pie = xyes; then
32642 LD_PICFLAG=-no-pie
32643 else
32644 LD_PICFLAG=
32647 if test x$enable_host_bind_now = xyes; then
32648 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
32653 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32654 # Check whether --enable-cet was given.
32655 if test "${enable_cet+set}" = set; then :
32656 enableval=$enable_cet;
32657 case "$enableval" in
32658 yes|no|auto) ;;
32659 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32660 esac
32662 else
32663 enable_cet=auto
32667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32668 $as_echo_n "checking for CET support... " >&6; }
32670 case "$host" in
32671 i[34567]86-*-linux* | x86_64-*-linux*)
32672 may_have_cet=yes
32673 cet_save_CFLAGS="$CFLAGS"
32674 CFLAGS="$CFLAGS -fcf-protection"
32675 case "$enable_cet" in
32676 auto)
32677 # Check if target supports multi-byte NOPs
32678 # and if compiler and assembler support CET.
32679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32680 /* end confdefs.h. */
32683 main ()
32686 #if !defined(__SSE2__)
32687 #error target does not support multi-byte NOPs
32688 #else
32689 asm ("setssbsy");
32690 #endif
32693 return 0;
32695 _ACEOF
32696 if ac_fn_cxx_try_compile "$LINENO"; then :
32697 enable_cet=yes
32698 else
32699 enable_cet=no
32701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32703 yes)
32704 # Check if compiler and assembler support CET.
32705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32706 /* end confdefs.h. */
32709 main ()
32711 asm ("setssbsy");
32713 return 0;
32715 _ACEOF
32716 if ac_fn_cxx_try_compile "$LINENO"; then :
32717 support_cet=yes
32718 else
32719 support_cet=no
32721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32722 if test $support_cet = "no"; then
32723 if test x$enable_bootstrap != xno \
32724 && test -z "${with_build_subdir}" \
32725 && (test ! -f ../stage_current \
32726 || test `cat ../stage_current` != "stage1"); then
32727 # Require CET support only for the final GCC build.
32728 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32729 else
32730 # Don't enable CET without CET support for non-bootstrap
32731 # build, in stage1 nor for build support.
32732 enable_cet=no
32736 esac
32737 CFLAGS="$cet_save_CFLAGS"
32740 may_have_cet=no
32741 enable_cet=no
32743 esac
32745 cet_save_CFLAGS="$CFLAGS"
32746 CFLAGS="$CFLAGS -fcf-protection=none"
32747 cet_save_LDFLAGS="$LDFLAGS"
32748 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32749 if test x$may_have_cet = xyes; then
32750 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32752 /* end confdefs.h. */
32755 main ()
32757 return 0;
32759 return 0;
32761 _ACEOF
32762 if ac_fn_cxx_try_link "$LINENO"; then :
32763 may_have_cet=yes
32764 else
32765 may_have_cet=no
32767 rm -f core conftest.err conftest.$ac_objext \
32768 conftest$ac_exeext conftest.$ac_ext
32771 if test x$may_have_cet = xyes; then
32772 if test x$cross_compiling = xno; then
32773 if test "$cross_compiling" = yes; then :
32774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32776 as_fn_error $? "cannot run test program while cross compiling
32777 See \`config.log' for more details" "$LINENO" 5; }
32778 else
32779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32780 /* end confdefs.h. */
32783 main ()
32785 asm ("endbr32");
32786 return 0;
32789 _ACEOF
32790 if ac_fn_cxx_try_run "$LINENO"; then :
32791 have_multi_byte_nop=yes
32792 else
32793 have_multi_byte_nop=no
32795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32796 conftest.$ac_objext conftest.beam conftest.$ac_ext
32799 have_cet=no
32800 if test x$have_multi_byte_nop = xyes; then
32801 if test "$cross_compiling" = yes; then :
32802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32804 as_fn_error $? "cannot run test program while cross compiling
32805 See \`config.log' for more details" "$LINENO" 5; }
32806 else
32807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32808 /* end confdefs.h. */
32810 static void
32811 foo (void)
32815 static void
32816 __attribute__ ((noinline, noclone))
32817 xxx (void (*f) (void))
32819 f ();
32822 static void
32823 __attribute__ ((noinline, noclone))
32824 bar (void)
32826 xxx (foo);
32830 main ()
32832 bar ();
32833 return 0;
32836 _ACEOF
32837 if ac_fn_cxx_try_run "$LINENO"; then :
32838 have_cet=no
32839 else
32840 have_cet=yes
32842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32843 conftest.$ac_objext conftest.beam conftest.$ac_ext
32847 if test x$enable_cet = xno -a x$have_cet = xyes; then
32848 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32851 else
32852 # Enable CET in cross compiler if possible so that it will run on both
32853 # CET and non-CET hosts.
32854 have_cet=yes
32856 if test x$enable_cet = xyes; then
32857 CET_HOST_FLAGS="-fcf-protection"
32858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32859 $as_echo "yes" >&6; }
32860 else
32861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32862 $as_echo "no" >&6; }
32864 CFLAGS="$cet_save_CFLAGS"
32865 LDFLAGS="$cet_save_LDFLAGS"
32867 case x$enable_languages in
32868 *jit*)
32871 CET_HOST_FLAGS=
32873 esac
32876 # Check linker supports '-z bndplt'
32877 ld_bndplt_support=no
32878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32879 $as_echo_n "checking linker -z bndplt option... " >&6; }
32880 if test x"$ld_is_gold" = xno; then
32881 if test $in_tree_ld = yes ; then
32882 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
32883 ld_bndplt_support=yes
32885 elif test x$gcc_cv_ld != x; then
32886 # Check if linker supports -a bndplt option
32887 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32888 ld_bndplt_support=yes
32892 if test x"$ld_bndplt_support" = xyes; then
32894 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32898 $as_echo "$ld_bndplt_support" >&6; }
32900 # Check linker supports '--push-state'/'--pop-state'
32901 ld_pushpopstate_support=no
32902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32903 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32904 if test x"$ld_is_gold" = xno; then
32905 if test $in_tree_ld = yes ; then
32906 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
32907 ld_pushpopstate_support=yes
32909 elif test x$gcc_cv_ld != x; then
32910 # Check if linker supports --push-state/--pop-state options
32911 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32912 ld_pushpopstate_support=yes
32916 if test x"$ld_pushpopstate_support" = xyes; then
32918 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32922 $as_echo "$ld_pushpopstate_support" >&6; }
32924 # On s390, float_t has historically been statically defined as double for no
32925 # good reason. To comply with the C standard in the light of this definition,
32926 # gcc has evaluated float expressions in double precision when in
32927 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32928 # a smooth transition towards the new model used by most architectures, where
32929 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32930 # float_t from that, this behavior can be configured with
32931 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32932 # the old model. When omitted, native builds and cross compiles that have target
32933 # libc headers will detect whether libc clamps float_t to double and in that
32934 # case maintain the old model. Otherwise, they will default to the new model.
32935 # Check whether --enable-s390-excess-float-precision was given.
32936 if test "${enable_s390_excess_float_precision+set}" = set; then :
32937 enableval=$enable_s390_excess_float_precision;
32938 else
32939 enable_s390_excess_float_precision=auto
32943 case $target in
32944 s390*-linux*)
32945 if test x"$enable_s390_excess_float_precision" = xauto; then
32946 # Can we autodetect the behavior of the target libc?
32947 if test "$target" = "$host" -a "$host" = "$build"; then
32948 enable_s390_excess_float_precision=autodetect
32949 elif test "x$with_headers" != xno; then
32950 # cross build. are target headers available?
32951 # carefully coerce the build-system compiler to use target headers
32952 saved_CXXFLAGS="$CXXFLAGS"
32953 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32954 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32955 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32957 /* end confdefs.h. */
32959 #include <math.h>
32961 _ACEOF
32962 if ac_fn_cxx_try_compile "$LINENO"; then :
32963 enable_s390_excess_float_precision=autodetect
32965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32966 CXXFLAGS="$saved_CXXFLAGS"
32969 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32970 saved_CXXFLAGS="$CXXFLAGS"
32971 if ! test "$target" = "$host" -a "$host" = "$build"; then
32972 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32973 unset CROSS_TEST_CXXFLAGS
32975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32976 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32977 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32978 $as_echo_n "(cached) " >&6
32979 else
32981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32982 /* end confdefs.h. */
32984 #define __FLT_EVAL_METHOD__ 0
32985 #include <math.h>
32986 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32988 _ACEOF
32989 if ac_fn_cxx_try_compile "$LINENO"; then :
32990 gcc_cv_float_t_clamped_to_double=yes
32991 else
32992 gcc_cv_float_t_clamped_to_double=no
32994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32997 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32998 CXXFLAGS="$saved_CXXFLAGS"
32999 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
33000 else
33001 # no way to detect behavior of target libc, default to new model
33002 enable_s390_excess_float_precision=no
33007 if test x"$enable_s390_excess_float_precision" = xyes; then
33009 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
33013 esac
33015 # Configure the subdirectories
33016 # AC_CONFIG_SUBDIRS($subdirs)
33018 # Create the Makefile
33019 # and configure language subdirectories
33020 ac_config_files="$ac_config_files $all_outputs"
33023 ac_config_commands="$ac_config_commands default"
33025 cat >confcache <<\_ACEOF
33026 # This file is a shell script that caches the results of configure
33027 # tests run on this system so they can be shared between configure
33028 # scripts and configure runs, see configure's option --config-cache.
33029 # It is not useful on other systems. If it contains results you don't
33030 # want to keep, you may remove or edit it.
33032 # config.status only pays attention to the cache file if you give it
33033 # the --recheck option to rerun configure.
33035 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33036 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33037 # following values.
33039 _ACEOF
33041 # The following way of writing the cache mishandles newlines in values,
33042 # but we know of no workaround that is simple, portable, and efficient.
33043 # So, we kill variables containing newlines.
33044 # Ultrix sh set writes to stderr and can't be redirected directly,
33045 # and sets the high bit in the cache file unless we assign to the vars.
33047 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33048 eval ac_val=\$$ac_var
33049 case $ac_val in #(
33050 *${as_nl}*)
33051 case $ac_var in #(
33052 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33053 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33054 esac
33055 case $ac_var in #(
33056 _ | IFS | as_nl) ;; #(
33057 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33058 *) { eval $ac_var=; unset $ac_var;} ;;
33059 esac ;;
33060 esac
33061 done
33063 (set) 2>&1 |
33064 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33065 *${as_nl}ac_space=\ *)
33066 # `set' does not quote correctly, so add quotes: double-quote
33067 # substitution turns \\\\ into \\, and sed turns \\ into \.
33068 sed -n \
33069 "s/'/'\\\\''/g;
33070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33071 ;; #(
33073 # `set' quotes correctly as required by POSIX, so do not add quotes.
33074 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33076 esac |
33077 sort
33079 sed '
33080 /^ac_cv_env_/b end
33081 t clear
33082 :clear
33083 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33084 t end
33085 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33086 :end' >>confcache
33087 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33088 if test -w "$cache_file"; then
33089 if test "x$cache_file" != "x/dev/null"; then
33090 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33091 $as_echo "$as_me: updating cache $cache_file" >&6;}
33092 if test ! -f "$cache_file" || test -h "$cache_file"; then
33093 cat confcache >"$cache_file"
33094 else
33095 case $cache_file in #(
33096 */* | ?:*)
33097 mv -f confcache "$cache_file"$$ &&
33098 mv -f "$cache_file"$$ "$cache_file" ;; #(
33100 mv -f confcache "$cache_file" ;;
33101 esac
33104 else
33105 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33106 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33109 rm -f confcache
33111 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33112 # Let make expand exec_prefix.
33113 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33115 DEFS=-DHAVE_CONFIG_H
33117 ac_libobjs=
33118 ac_ltlibobjs=
33120 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33121 # 1. Remove the extension, and $U if already installed.
33122 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33123 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33124 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33125 # will be set to the directory where LIBOBJS objects are built.
33126 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33127 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33128 done
33129 LIBOBJS=$ac_libobjs
33131 LTLIBOBJS=$ac_ltlibobjs
33135 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
33136 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
33137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33140 : "${CONFIG_STATUS=./config.status}"
33141 ac_write_fail=0
33142 ac_clean_files_save=$ac_clean_files
33143 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33145 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33146 as_write_fail=0
33147 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33148 #! $SHELL
33149 # Generated by $as_me.
33150 # Run this file to recreate the current configuration.
33151 # Compiler output produced by configure, useful for debugging
33152 # configure, is in config.log if it exists.
33154 debug=false
33155 ac_cs_recheck=false
33156 ac_cs_silent=false
33158 SHELL=\${CONFIG_SHELL-$SHELL}
33159 export SHELL
33160 _ASEOF
33161 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33162 ## -------------------- ##
33163 ## M4sh Initialization. ##
33164 ## -------------------- ##
33166 # Be more Bourne compatible
33167 DUALCASE=1; export DUALCASE # for MKS sh
33168 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33169 emulate sh
33170 NULLCMD=:
33171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33172 # is contrary to our usage. Disable this feature.
33173 alias -g '${1+"$@"}'='"$@"'
33174 setopt NO_GLOB_SUBST
33175 else
33176 case `(set -o) 2>/dev/null` in #(
33177 *posix*) :
33178 set -o posix ;; #(
33179 *) :
33181 esac
33185 as_nl='
33187 export as_nl
33188 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33189 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33190 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33192 # Prefer a ksh shell builtin over an external printf program on Solaris,
33193 # but without wasting forks for bash or zsh.
33194 if test -z "$BASH_VERSION$ZSH_VERSION" \
33195 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33196 as_echo='print -r --'
33197 as_echo_n='print -rn --'
33198 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33199 as_echo='printf %s\n'
33200 as_echo_n='printf %s'
33201 else
33202 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33203 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33204 as_echo_n='/usr/ucb/echo -n'
33205 else
33206 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33207 as_echo_n_body='eval
33208 arg=$1;
33209 case $arg in #(
33210 *"$as_nl"*)
33211 expr "X$arg" : "X\\(.*\\)$as_nl";
33212 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33213 esac;
33214 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33216 export as_echo_n_body
33217 as_echo_n='sh -c $as_echo_n_body as_echo'
33219 export as_echo_body
33220 as_echo='sh -c $as_echo_body as_echo'
33223 # The user is always right.
33224 if test "${PATH_SEPARATOR+set}" != set; then
33225 PATH_SEPARATOR=:
33226 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33227 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33228 PATH_SEPARATOR=';'
33233 # IFS
33234 # We need space, tab and new line, in precisely that order. Quoting is
33235 # there to prevent editors from complaining about space-tab.
33236 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33237 # splitting by setting IFS to empty value.)
33238 IFS=" "" $as_nl"
33240 # Find who we are. Look in the path if we contain no directory separator.
33241 as_myself=
33242 case $0 in #((
33243 *[\\/]* ) as_myself=$0 ;;
33244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33245 for as_dir in $PATH
33247 IFS=$as_save_IFS
33248 test -z "$as_dir" && as_dir=.
33249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33250 done
33251 IFS=$as_save_IFS
33254 esac
33255 # We did not find ourselves, most probably we were run as `sh COMMAND'
33256 # in which case we are not to be found in the path.
33257 if test "x$as_myself" = x; then
33258 as_myself=$0
33260 if test ! -f "$as_myself"; then
33261 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33262 exit 1
33265 # Unset variables that we do not need and which cause bugs (e.g. in
33266 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33267 # suppresses any "Segmentation fault" message there. '((' could
33268 # trigger a bug in pdksh 5.2.14.
33269 for as_var in BASH_ENV ENV MAIL MAILPATH
33270 do eval test x\${$as_var+set} = xset \
33271 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33272 done
33273 PS1='$ '
33274 PS2='> '
33275 PS4='+ '
33277 # NLS nuisances.
33278 LC_ALL=C
33279 export LC_ALL
33280 LANGUAGE=C
33281 export LANGUAGE
33283 # CDPATH.
33284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33287 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33288 # ----------------------------------------
33289 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33290 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33291 # script with STATUS, using 1 if that was 0.
33292 as_fn_error ()
33294 as_status=$1; test $as_status -eq 0 && as_status=1
33295 if test "$4"; then
33296 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33297 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33299 $as_echo "$as_me: error: $2" >&2
33300 as_fn_exit $as_status
33301 } # as_fn_error
33304 # as_fn_set_status STATUS
33305 # -----------------------
33306 # Set $? to STATUS, without forking.
33307 as_fn_set_status ()
33309 return $1
33310 } # as_fn_set_status
33312 # as_fn_exit STATUS
33313 # -----------------
33314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33315 as_fn_exit ()
33317 set +e
33318 as_fn_set_status $1
33319 exit $1
33320 } # as_fn_exit
33322 # as_fn_unset VAR
33323 # ---------------
33324 # Portably unset VAR.
33325 as_fn_unset ()
33327 { eval $1=; unset $1;}
33329 as_unset=as_fn_unset
33330 # as_fn_append VAR VALUE
33331 # ----------------------
33332 # Append the text in VALUE to the end of the definition contained in VAR. Take
33333 # advantage of any shell optimizations that allow amortized linear growth over
33334 # repeated appends, instead of the typical quadratic growth present in naive
33335 # implementations.
33336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33337 eval 'as_fn_append ()
33339 eval $1+=\$2
33341 else
33342 as_fn_append ()
33344 eval $1=\$$1\$2
33346 fi # as_fn_append
33348 # as_fn_arith ARG...
33349 # ------------------
33350 # Perform arithmetic evaluation on the ARGs, and store the result in the
33351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33352 # must be portable across $(()) and expr.
33353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33354 eval 'as_fn_arith ()
33356 as_val=$(( $* ))
33358 else
33359 as_fn_arith ()
33361 as_val=`expr "$@" || test $? -eq 1`
33363 fi # as_fn_arith
33366 if expr a : '\(a\)' >/dev/null 2>&1 &&
33367 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33368 as_expr=expr
33369 else
33370 as_expr=false
33373 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33374 as_basename=basename
33375 else
33376 as_basename=false
33379 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33380 as_dirname=dirname
33381 else
33382 as_dirname=false
33385 as_me=`$as_basename -- "$0" ||
33386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33387 X"$0" : 'X\(//\)$' \| \
33388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33389 $as_echo X/"$0" |
33390 sed '/^.*\/\([^/][^/]*\)\/*$/{
33391 s//\1/
33394 /^X\/\(\/\/\)$/{
33395 s//\1/
33398 /^X\/\(\/\).*/{
33399 s//\1/
33402 s/.*/./; q'`
33404 # Avoid depending upon Character Ranges.
33405 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33406 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33407 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33408 as_cr_digits='0123456789'
33409 as_cr_alnum=$as_cr_Letters$as_cr_digits
33411 ECHO_C= ECHO_N= ECHO_T=
33412 case `echo -n x` in #(((((
33413 -n*)
33414 case `echo 'xy\c'` in
33415 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33416 xy) ECHO_C='\c';;
33417 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33418 ECHO_T=' ';;
33419 esac;;
33421 ECHO_N='-n';;
33422 esac
33424 rm -f conf$$ conf$$.exe conf$$.file
33425 if test -d conf$$.dir; then
33426 rm -f conf$$.dir/conf$$.file
33427 else
33428 rm -f conf$$.dir
33429 mkdir conf$$.dir 2>/dev/null
33431 if (echo >conf$$.file) 2>/dev/null; then
33432 if ln -s conf$$.file conf$$ 2>/dev/null; then
33433 as_ln_s='ln -s'
33434 # ... but there are two gotchas:
33435 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33436 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33437 # In both cases, we have to default to `cp -pR'.
33438 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33439 as_ln_s='cp -pR'
33440 elif ln conf$$.file conf$$ 2>/dev/null; then
33441 as_ln_s=ln
33442 else
33443 as_ln_s='cp -pR'
33445 else
33446 as_ln_s='cp -pR'
33448 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33449 rmdir conf$$.dir 2>/dev/null
33452 # as_fn_mkdir_p
33453 # -------------
33454 # Create "$as_dir" as a directory, including parents if necessary.
33455 as_fn_mkdir_p ()
33458 case $as_dir in #(
33459 -*) as_dir=./$as_dir;;
33460 esac
33461 test -d "$as_dir" || eval $as_mkdir_p || {
33462 as_dirs=
33463 while :; do
33464 case $as_dir in #(
33465 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33466 *) as_qdir=$as_dir;;
33467 esac
33468 as_dirs="'$as_qdir' $as_dirs"
33469 as_dir=`$as_dirname -- "$as_dir" ||
33470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33471 X"$as_dir" : 'X\(//\)[^/]' \| \
33472 X"$as_dir" : 'X\(//\)$' \| \
33473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33474 $as_echo X"$as_dir" |
33475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33476 s//\1/
33479 /^X\(\/\/\)[^/].*/{
33480 s//\1/
33483 /^X\(\/\/\)$/{
33484 s//\1/
33487 /^X\(\/\).*/{
33488 s//\1/
33491 s/.*/./; q'`
33492 test -d "$as_dir" && break
33493 done
33494 test -z "$as_dirs" || eval "mkdir $as_dirs"
33495 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33498 } # as_fn_mkdir_p
33499 if mkdir -p . 2>/dev/null; then
33500 as_mkdir_p='mkdir -p "$as_dir"'
33501 else
33502 test -d ./-p && rmdir ./-p
33503 as_mkdir_p=false
33507 # as_fn_executable_p FILE
33508 # -----------------------
33509 # Test if FILE is an executable regular file.
33510 as_fn_executable_p ()
33512 test -f "$1" && test -x "$1"
33513 } # as_fn_executable_p
33514 as_test_x='test -x'
33515 as_executable_p=as_fn_executable_p
33517 # Sed expression to map a string onto a valid CPP name.
33518 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33520 # Sed expression to map a string onto a valid variable name.
33521 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33524 exec 6>&1
33525 ## ----------------------------------- ##
33526 ## Main body of $CONFIG_STATUS script. ##
33527 ## ----------------------------------- ##
33528 _ASEOF
33529 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33532 # Save the log message, to keep $0 and so on meaningful, and to
33533 # report actual input values of CONFIG_FILES etc. instead of their
33534 # values after options handling.
33535 ac_log="
33536 This file was extended by $as_me, which was
33537 generated by GNU Autoconf 2.69. Invocation command line was
33539 CONFIG_FILES = $CONFIG_FILES
33540 CONFIG_HEADERS = $CONFIG_HEADERS
33541 CONFIG_LINKS = $CONFIG_LINKS
33542 CONFIG_COMMANDS = $CONFIG_COMMANDS
33543 $ $0 $@
33545 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33548 _ACEOF
33550 case $ac_config_files in *"
33551 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33552 esac
33554 case $ac_config_headers in *"
33555 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33556 esac
33559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33560 # Files that config.status was made for.
33561 config_files="$ac_config_files"
33562 config_headers="$ac_config_headers"
33563 config_links="$ac_config_links"
33564 config_commands="$ac_config_commands"
33566 _ACEOF
33568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33569 ac_cs_usage="\
33570 \`$as_me' instantiates files and other configuration actions
33571 from templates according to the current configuration. Unless the files
33572 and actions are specified as TAGs, all are instantiated by default.
33574 Usage: $0 [OPTION]... [TAG]...
33576 -h, --help print this help, then exit
33577 -V, --version print version number and configuration settings, then exit
33578 --config print configuration, then exit
33579 -q, --quiet, --silent
33580 do not print progress messages
33581 -d, --debug don't remove temporary files
33582 --recheck update $as_me by reconfiguring in the same conditions
33583 --file=FILE[:TEMPLATE]
33584 instantiate the configuration file FILE
33585 --header=FILE[:TEMPLATE]
33586 instantiate the configuration header FILE
33588 Configuration files:
33589 $config_files
33591 Configuration headers:
33592 $config_headers
33594 Configuration links:
33595 $config_links
33597 Configuration commands:
33598 $config_commands
33600 Report bugs to the package provider."
33602 _ACEOF
33603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33604 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33605 ac_cs_version="\\
33606 config.status
33607 configured by $0, generated by GNU Autoconf 2.69,
33608 with options \\"\$ac_cs_config\\"
33610 Copyright (C) 2012 Free Software Foundation, Inc.
33611 This config.status script is free software; the Free Software Foundation
33612 gives unlimited permission to copy, distribute and modify it."
33614 ac_pwd='$ac_pwd'
33615 srcdir='$srcdir'
33616 AWK='$AWK'
33617 test -n "\$AWK" || AWK=awk
33618 _ACEOF
33620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33621 # The default lists apply if the user does not specify any file.
33622 ac_need_defaults=:
33623 while test $# != 0
33625 case $1 in
33626 --*=?*)
33627 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33628 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33629 ac_shift=:
33631 --*=)
33632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33633 ac_optarg=
33634 ac_shift=:
33637 ac_option=$1
33638 ac_optarg=$2
33639 ac_shift=shift
33641 esac
33643 case $ac_option in
33644 # Handling of the options.
33645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33646 ac_cs_recheck=: ;;
33647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33648 $as_echo "$ac_cs_version"; exit ;;
33649 --config | --confi | --conf | --con | --co | --c )
33650 $as_echo "$ac_cs_config"; exit ;;
33651 --debug | --debu | --deb | --de | --d | -d )
33652 debug=: ;;
33653 --file | --fil | --fi | --f )
33654 $ac_shift
33655 case $ac_optarg in
33656 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33657 '') as_fn_error $? "missing file argument" ;;
33658 esac
33659 as_fn_append CONFIG_FILES " '$ac_optarg'"
33660 ac_need_defaults=false;;
33661 --header | --heade | --head | --hea )
33662 $ac_shift
33663 case $ac_optarg in
33664 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33665 esac
33666 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33667 ac_need_defaults=false;;
33668 --he | --h)
33669 # Conflict between --help and --header
33670 as_fn_error $? "ambiguous option: \`$1'
33671 Try \`$0 --help' for more information.";;
33672 --help | --hel | -h )
33673 $as_echo "$ac_cs_usage"; exit ;;
33674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33675 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33676 ac_cs_silent=: ;;
33678 # This is an error.
33679 -*) as_fn_error $? "unrecognized option: \`$1'
33680 Try \`$0 --help' for more information." ;;
33682 *) as_fn_append ac_config_targets " $1"
33683 ac_need_defaults=false ;;
33685 esac
33686 shift
33687 done
33689 ac_configure_extra_args=
33691 if $ac_cs_silent; then
33692 exec 6>/dev/null
33693 ac_configure_extra_args="$ac_configure_extra_args --silent"
33696 _ACEOF
33697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33698 if \$ac_cs_recheck; then
33699 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33700 shift
33701 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33702 CONFIG_SHELL='$SHELL'
33703 export CONFIG_SHELL
33704 exec "\$@"
33707 _ACEOF
33708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33709 exec 5>>config.log
33711 echo
33712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33713 ## Running $as_me. ##
33714 _ASBOX
33715 $as_echo "$ac_log"
33716 } >&5
33718 _ACEOF
33719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33721 # INIT-COMMANDS
33723 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33724 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33725 subdirs='$subdirs'
33727 _ACEOF
33729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33731 # Handling of arguments.
33732 for ac_config_target in $ac_config_targets
33734 case $ac_config_target in
33735 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33736 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33737 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33738 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33739 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33740 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33741 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33742 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33743 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33744 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33746 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33747 esac
33748 done
33751 # If the user did not use the arguments to specify the items to instantiate,
33752 # then the envvar interface is used. Set only those that are not.
33753 # We use the long form for the default assignment because of an extremely
33754 # bizarre bug on SunOS 4.1.3.
33755 if $ac_need_defaults; then
33756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33758 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33759 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33762 # Have a temporary directory for convenience. Make it in the build tree
33763 # simply because there is no reason against having it here, and in addition,
33764 # creating and moving files from /tmp can sometimes cause problems.
33765 # Hook for its removal unless debugging.
33766 # Note that there is a small window in which the directory will not be cleaned:
33767 # after its creation but before its name has been assigned to `$tmp'.
33768 $debug ||
33770 tmp= ac_tmp=
33771 trap 'exit_status=$?
33772 : "${ac_tmp:=$tmp}"
33773 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33775 trap 'as_fn_exit 1' 1 2 13 15
33777 # Create a (secure) tmp directory for tmp files.
33780 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33781 test -d "$tmp"
33782 } ||
33784 tmp=./conf$$-$RANDOM
33785 (umask 077 && mkdir "$tmp")
33786 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33787 ac_tmp=$tmp
33789 # Set up the scripts for CONFIG_FILES section.
33790 # No need to generate them if there are no CONFIG_FILES.
33791 # This happens for instance with `./config.status config.h'.
33792 if test -n "$CONFIG_FILES"; then
33794 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33795 ac_cs_awk_getline=:
33796 ac_cs_awk_pipe_init=
33797 ac_cs_awk_read_file='
33798 while ((getline aline < (F[key])) > 0)
33799 print(aline)
33800 close(F[key])'
33801 ac_cs_awk_pipe_fini=
33802 else
33803 ac_cs_awk_getline=false
33804 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33805 ac_cs_awk_read_file='
33806 print "|#_!!_#|"
33807 print "cat " F[key] " &&"
33808 '$ac_cs_awk_pipe_init
33809 # The final `:' finishes the AND list.
33810 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33812 ac_cr=`echo X | tr X '\015'`
33813 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33814 # But we know of no other shell where ac_cr would be empty at this
33815 # point, so we can use a bashism as a fallback.
33816 if test "x$ac_cr" = x; then
33817 eval ac_cr=\$\'\\r\'
33819 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33820 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33821 ac_cs_awk_cr='\\r'
33822 else
33823 ac_cs_awk_cr=$ac_cr
33826 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33827 _ACEOF
33829 # Create commands to substitute file output variables.
33831 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33832 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33833 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33834 echo "_ACAWK" &&
33835 echo "_ACEOF"
33836 } >conf$$files.sh &&
33837 . ./conf$$files.sh ||
33838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33839 rm -f conf$$files.sh
33842 echo "cat >conf$$subs.awk <<_ACEOF" &&
33843 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33844 echo "_ACEOF"
33845 } >conf$$subs.sh ||
33846 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33847 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33848 ac_delim='%!_!# '
33849 for ac_last_try in false false false false false :; do
33850 . ./conf$$subs.sh ||
33851 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33853 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33854 if test $ac_delim_n = $ac_delim_num; then
33855 break
33856 elif $ac_last_try; then
33857 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33858 else
33859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33861 done
33862 rm -f conf$$subs.sh
33864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33865 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33866 _ACEOF
33867 sed -n '
33869 s/^/S["/; s/!.*/"]=/
33872 s/^[^!]*!//
33873 :repl
33874 t repl
33875 s/'"$ac_delim"'$//
33876 t delim
33879 s/\(.\{148\}\)..*/\1/
33880 t more1
33881 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33884 b repl
33885 :more1
33886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33889 s/.\{148\}//
33890 t nl
33891 :delim
33893 s/\(.\{148\}\)..*/\1/
33894 t more2
33895 s/["\\]/\\&/g; s/^/"/; s/$/"/
33898 :more2
33899 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33902 s/.\{148\}//
33903 t delim
33904 ' <conf$$subs.awk | sed '
33905 /^[^""]/{
33907 s/\n//
33909 ' >>$CONFIG_STATUS || ac_write_fail=1
33910 rm -f conf$$subs.awk
33911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33912 _ACAWK
33913 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33914 for (key in S) S_is_set[key] = 1
33915 FS = "\a"
33916 \$ac_cs_awk_pipe_init
33919 line = $ 0
33920 nfields = split(line, field, "@")
33921 substed = 0
33922 len = length(field[1])
33923 for (i = 2; i < nfields; i++) {
33924 key = field[i]
33925 keylen = length(key)
33926 if (S_is_set[key]) {
33927 value = S[key]
33928 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33929 len += length(value) + length(field[++i])
33930 substed = 1
33931 } else
33932 len += 1 + keylen
33934 if (nfields == 3 && !substed) {
33935 key = field[2]
33936 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33937 \$ac_cs_awk_read_file
33938 next
33941 print line
33943 \$ac_cs_awk_pipe_fini
33944 _ACAWK
33945 _ACEOF
33946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33947 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33948 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33949 else
33951 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33952 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33953 _ACEOF
33955 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33956 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33957 # trailing colons and then remove the whole line if VPATH becomes empty
33958 # (actually we leave an empty line to preserve line numbers).
33959 if test "x$srcdir" = x.; then
33960 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33962 s///
33963 s/^/:/
33964 s/[ ]*$/:/
33965 s/:\$(srcdir):/:/g
33966 s/:\${srcdir}:/:/g
33967 s/:@srcdir@:/:/g
33968 s/^:*//
33969 s/:*$//
33971 s/\(=[ ]*\).*/\1/
33973 s/\n//
33974 s/^[^=]*=[ ]*$//
33978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33979 fi # test -n "$CONFIG_FILES"
33981 # Set up the scripts for CONFIG_HEADERS section.
33982 # No need to generate them if there are no CONFIG_HEADERS.
33983 # This happens for instance with `./config.status Makefile'.
33984 if test -n "$CONFIG_HEADERS"; then
33985 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33986 BEGIN {
33987 _ACEOF
33989 # Transform confdefs.h into an awk script `defines.awk', embedded as
33990 # here-document in config.status, that substitutes the proper values into
33991 # config.h.in to produce config.h.
33993 # Create a delimiter string that does not exist in confdefs.h, to ease
33994 # handling of long lines.
33995 ac_delim='%!_!# '
33996 for ac_last_try in false false :; do
33997 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33998 if test -z "$ac_tt"; then
33999 break
34000 elif $ac_last_try; then
34001 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34002 else
34003 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34005 done
34007 # For the awk script, D is an array of macro values keyed by name,
34008 # likewise P contains macro parameters if any. Preserve backslash
34009 # newline sequences.
34011 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34012 sed -n '
34013 s/.\{148\}/&'"$ac_delim"'/g
34014 t rset
34015 :rset
34016 s/^[ ]*#[ ]*define[ ][ ]*/ /
34017 t def
34019 :def
34020 s/\\$//
34021 t bsnl
34022 s/["\\]/\\&/g
34023 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34024 D["\1"]=" \3"/p
34025 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34027 :bsnl
34028 s/["\\]/\\&/g
34029 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34030 D["\1"]=" \3\\\\\\n"\\/p
34031 t cont
34032 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34033 t cont
34035 :cont
34037 s/.\{148\}/&'"$ac_delim"'/g
34038 t clear
34039 :clear
34040 s/\\$//
34041 t bsnlc
34042 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34044 :bsnlc
34045 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34046 b cont
34047 ' <confdefs.h | sed '
34048 s/'"$ac_delim"'/"\\\
34049 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34052 for (key in D) D_is_set[key] = 1
34053 FS = "\a"
34055 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34056 line = \$ 0
34057 split(line, arg, " ")
34058 if (arg[1] == "#") {
34059 defundef = arg[2]
34060 mac1 = arg[3]
34061 } else {
34062 defundef = substr(arg[1], 2)
34063 mac1 = arg[2]
34065 split(mac1, mac2, "(") #)
34066 macro = mac2[1]
34067 prefix = substr(line, 1, index(line, defundef) - 1)
34068 if (D_is_set[macro]) {
34069 # Preserve the white space surrounding the "#".
34070 print prefix "define", macro P[macro] D[macro]
34071 next
34072 } else {
34073 # Replace #undef with comments. This is necessary, for example,
34074 # in the case of _POSIX_SOURCE, which is predefined and required
34075 # on some systems where configure will not decide to define it.
34076 if (defundef == "undef") {
34077 print "/*", prefix defundef, macro, "*/"
34078 next
34082 { print }
34083 _ACAWK
34084 _ACEOF
34085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34086 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34087 fi # test -n "$CONFIG_HEADERS"
34090 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
34091 shift
34092 for ac_tag
34094 case $ac_tag in
34095 :[FHLC]) ac_mode=$ac_tag; continue;;
34096 esac
34097 case $ac_mode$ac_tag in
34098 :[FHL]*:*);;
34099 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34100 :[FH]-) ac_tag=-:-;;
34101 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34102 esac
34103 ac_save_IFS=$IFS
34104 IFS=:
34105 set x $ac_tag
34106 IFS=$ac_save_IFS
34107 shift
34108 ac_file=$1
34109 shift
34111 case $ac_mode in
34112 :L) ac_source=$1;;
34113 :[FH])
34114 ac_file_inputs=
34115 for ac_f
34117 case $ac_f in
34118 -) ac_f="$ac_tmp/stdin";;
34119 *) # Look for the file first in the build tree, then in the source tree
34120 # (if the path is not absolute). The absolute path cannot be DOS-style,
34121 # because $ac_f cannot contain `:'.
34122 test -f "$ac_f" ||
34123 case $ac_f in
34124 [\\/$]*) false;;
34125 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34126 esac ||
34127 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34128 esac
34129 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34130 as_fn_append ac_file_inputs " '$ac_f'"
34131 done
34133 # Let's still pretend it is `configure' which instantiates (i.e., don't
34134 # use $as_me), people would be surprised to read:
34135 # /* config.h. Generated by config.status. */
34136 configure_input='Generated from '`
34137 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34138 `' by configure.'
34139 if test x"$ac_file" != x-; then
34140 configure_input="$ac_file. $configure_input"
34141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34142 $as_echo "$as_me: creating $ac_file" >&6;}
34144 # Neutralize special characters interpreted by sed in replacement strings.
34145 case $configure_input in #(
34146 *\&* | *\|* | *\\* )
34147 ac_sed_conf_input=`$as_echo "$configure_input" |
34148 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34149 *) ac_sed_conf_input=$configure_input;;
34150 esac
34152 case $ac_tag in
34153 *:-:* | *:-) cat >"$ac_tmp/stdin" \
34154 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34155 esac
34157 esac
34159 ac_dir=`$as_dirname -- "$ac_file" ||
34160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34161 X"$ac_file" : 'X\(//\)[^/]' \| \
34162 X"$ac_file" : 'X\(//\)$' \| \
34163 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34164 $as_echo X"$ac_file" |
34165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34166 s//\1/
34169 /^X\(\/\/\)[^/].*/{
34170 s//\1/
34173 /^X\(\/\/\)$/{
34174 s//\1/
34177 /^X\(\/\).*/{
34178 s//\1/
34181 s/.*/./; q'`
34182 as_dir="$ac_dir"; as_fn_mkdir_p
34183 ac_builddir=.
34185 case "$ac_dir" in
34186 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34188 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34189 # A ".." for each directory in $ac_dir_suffix.
34190 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34191 case $ac_top_builddir_sub in
34192 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34193 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34194 esac ;;
34195 esac
34196 ac_abs_top_builddir=$ac_pwd
34197 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34198 # for backward compatibility:
34199 ac_top_builddir=$ac_top_build_prefix
34201 case $srcdir in
34202 .) # We are building in place.
34203 ac_srcdir=.
34204 ac_top_srcdir=$ac_top_builddir_sub
34205 ac_abs_top_srcdir=$ac_pwd ;;
34206 [\\/]* | ?:[\\/]* ) # Absolute name.
34207 ac_srcdir=$srcdir$ac_dir_suffix;
34208 ac_top_srcdir=$srcdir
34209 ac_abs_top_srcdir=$srcdir ;;
34210 *) # Relative name.
34211 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34212 ac_top_srcdir=$ac_top_build_prefix$srcdir
34213 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34214 esac
34215 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34218 case $ac_mode in
34221 # CONFIG_FILE
34224 _ACEOF
34226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34227 # If the template does not know about datarootdir, expand it.
34228 # FIXME: This hack should be removed a few years after 2.60.
34229 ac_datarootdir_hack=; ac_datarootdir_seen=
34230 ac_sed_dataroot='
34231 /datarootdir/ {
34235 /@datadir@/p
34236 /@docdir@/p
34237 /@infodir@/p
34238 /@localedir@/p
34239 /@mandir@/p'
34240 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34241 *datarootdir*) ac_datarootdir_seen=yes;;
34242 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34244 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34245 _ACEOF
34246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34247 ac_datarootdir_hack='
34248 s&@datadir@&$datadir&g
34249 s&@docdir@&$docdir&g
34250 s&@infodir@&$infodir&g
34251 s&@localedir@&$localedir&g
34252 s&@mandir@&$mandir&g
34253 s&\\\${datarootdir}&$datarootdir&g' ;;
34254 esac
34255 _ACEOF
34257 # Neutralize VPATH when `$srcdir' = `.'.
34258 # Shell code in configure.ac might set extrasub.
34259 # FIXME: do we really want to maintain this feature?
34260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34261 ac_sed_extra="$ac_vpsub
34262 $extrasub
34263 _ACEOF
34264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34267 s|@configure_input@|$ac_sed_conf_input|;t t
34268 s&@top_builddir@&$ac_top_builddir_sub&;t t
34269 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34270 s&@srcdir@&$ac_srcdir&;t t
34271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34272 s&@top_srcdir@&$ac_top_srcdir&;t t
34273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34274 s&@builddir@&$ac_builddir&;t t
34275 s&@abs_builddir@&$ac_abs_builddir&;t t
34276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34277 $ac_datarootdir_hack
34279 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
34280 if $ac_cs_awk_getline; then
34281 $AWK -f "$ac_tmp/subs.awk"
34282 else
34283 $AWK -f "$ac_tmp/subs.awk" | $SHELL
34284 fi \
34285 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34287 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34288 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34289 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34290 "$ac_tmp/out"`; test -z "$ac_out"; } &&
34291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34292 which seems to be undefined. Please make sure it is defined" >&5
34293 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34294 which seems to be undefined. Please make sure it is defined" >&2;}
34296 rm -f "$ac_tmp/stdin"
34297 case $ac_file in
34298 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34299 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34300 esac \
34301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34305 # CONFIG_HEADER
34307 if test x"$ac_file" != x-; then
34309 $as_echo "/* $configure_input */" \
34310 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34311 } >"$ac_tmp/config.h" \
34312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34313 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34314 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34315 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34316 else
34317 rm -f "$ac_file"
34318 mv "$ac_tmp/config.h" "$ac_file" \
34319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34321 else
34322 $as_echo "/* $configure_input */" \
34323 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34324 || as_fn_error $? "could not create -" "$LINENO" 5
34329 # CONFIG_LINK
34332 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
34334 else
34335 # Prefer the file from the source tree if names are identical.
34336 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
34337 ac_source=$srcdir/$ac_source
34340 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
34341 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34343 if test ! -r "$ac_source"; then
34344 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
34346 rm -f "$ac_file"
34348 # Try a relative symlink, then a hard link, then a copy.
34349 case $ac_source in
34350 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34351 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34352 esac
34353 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34354 ln "$ac_source" "$ac_file" 2>/dev/null ||
34355 cp -p "$ac_source" "$ac_file" ||
34356 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
34359 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34360 $as_echo "$as_me: executing $ac_file commands" >&6;}
34362 esac
34365 case $ac_file$ac_mode in
34366 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34367 "gccdepdir":C)
34368 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34369 for lang in $subdirs c-family common analyzer text-art rtl-ssa
34371 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34372 done ;;
34373 "as":F) chmod +x as ;;
34374 "collect-ld":F) chmod +x collect-ld ;;
34375 "nm":F) chmod +x nm ;;
34376 "dsymutil":F) chmod +x dsymutil ;;
34377 "default":C)
34378 case ${CONFIG_HEADERS} in
34379 *auto-host.h:config.in*)
34380 echo > cstamp-h ;;
34381 esac
34382 # Make sure all the subdirs exist.
34383 for d in $subdirs doc build common c-family
34385 test -d $d || mkdir $d
34386 done
34389 esac
34390 done # for ac_tag
34393 as_fn_exit 0
34394 _ACEOF
34395 ac_clean_files=$ac_clean_files_save
34397 test $ac_write_fail = 0 ||
34398 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34401 # configure is writing to config.log, and then calls config.status.
34402 # config.status does its own redirection, appending to config.log.
34403 # Unfortunately, on DOS this fails, as config.log is still kept open
34404 # by configure, so config.status won't be able to write to it; its
34405 # output is simply discarded. So we exec the FD to /dev/null,
34406 # effectively closing config.log, so it can be properly (re)opened and
34407 # appended to by config.status. When coming back to configure, we
34408 # need to make the FD available again.
34409 if test "$no_create" != yes; then
34410 ac_cs_success=:
34411 ac_config_status_args=
34412 test "$silent" = yes &&
34413 ac_config_status_args="$ac_config_status_args --quiet"
34414 exec 5>/dev/null
34415 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34416 exec 5>>config.log
34417 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34418 # would make configure fail if this is the last instruction.
34419 $ac_cs_success || as_fn_exit 1
34421 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34423 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}