Update baseline symbols for hppa-linux.
[official-gcc.git] / gcc / configure
blob307a3e05bb3495256f72f7e5abfcfadab6e18225
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_fast_install
748 objdir
749 OTOOL64
750 OTOOL
751 LIPO
752 NMEDIT
753 DSYMUTIL
754 STRIP
755 OBJDUMP
756 ac_ct_DUMPBIN
757 DUMPBIN
759 FGREP
761 LIBTOOL
762 collect2
763 STMP_FIXINC
764 BUILD_LDFLAGS
765 BUILD_CXXFLAGS
766 BUILD_CFLAGS
767 CXX_FOR_BUILD
768 CC_FOR_BUILD
769 inhibit_libc
770 BUILD_SYSTEM_HEADER_DIR
771 SYSTEM_HEADER_DIR
773 CROSS
774 CATOBJEXT
775 GENCAT
776 INSTOBJEXT
777 DATADIRNAME
778 CATALOGS
779 POSUB
780 GMSGFMT
781 XGETTEXT
782 INCINTL
783 LIBINTL_DEP
784 LIBINTL
785 USE_NLS
786 get_gcc_base_ver
787 HAVE_AUTO_BUILD
788 extra_opt_files
789 extra_modes_file
790 NATIVE_SYSTEM_HEADER_DIR
791 objext
792 manext
793 LIBICONV_DEP
794 LTLIBICONV
795 LIBICONV
796 ZSTD_LDFLAGS
797 ZSTD_CPPFLAGS
798 ZSTD_LIB
799 ZSTD_INCLUDE
800 DL_LIB
801 LDEXP_LIB
802 NETLIBS
803 EXTRA_GCC_LIBS
804 GNAT_LIBEXC
805 COLLECT2_LIBS
806 CXXDEPMODE
807 DEPDIR
808 am__leading_dot
809 doc_build_sys
812 HAVE_PYTHON
813 PYTHON
814 BISON
815 FLEX
816 GENERATED_MANPAGES
817 MAKEINFO_TOC_INLINE_FLAG
818 BUILD_INFO
819 MAKEINFO
820 have_mktemp_command
821 make_compare_target
822 INSTALL_DATA
823 INSTALL_PROGRAM
824 INSTALL
825 ranlib_flags
826 RANLIB
828 LN_S
830 SET_MAKE
831 omp_device_property_deps
832 omp_device_properties
833 accel_dir_suffix
834 real_target_noncanonical
835 enable_as_accelerator
836 gnat_install_lib
837 REPORT_BUGS_TEXI
838 REPORT_BUGS_TO
839 PKGVERSION
840 CONFIGURE_SPECS
841 enable_gcov
842 enable_shared
843 enable_fixed_point
844 enable_decimal_float
845 DEFAULT_MATCHPD_PARTITIONS
846 with_float
847 with_cpu
848 enable_multiarch
849 enable_multilib
850 coverage_flags
851 valgrind_command
852 valgrind_path_defines
853 valgrind_path
854 TREECHECKING
855 nocommon_flag
856 noexception_flags
857 warn_cxxflags
858 warn_cflags
859 c_strict_warn
860 strict_warn
861 c_loose_warn
862 loose_warn
863 aliasing_flags
865 EGREP
866 GREP
867 CXXCPP
868 PICFLAG_FOR_TARGET
869 GDCFLAGS
871 GNATMAKE
872 GNATBIND
873 ac_ct_CXX
874 CXXFLAGS
876 OBJEXT
877 EXEEXT
878 ac_ct_CC
879 CPPFLAGS
880 LDFLAGS
881 CFLAGS
883 GENINSRC
884 CROSS_SYSTEM_HEADER_DIR
885 TARGET_SYSTEM_ROOT_DEFINE
886 TARGET_SYSTEM_ROOT
887 SYSROOT_CFLAGS_FOR_TARGET
888 target_subdir
889 host_subdir
890 build_subdir
891 build_libsubdir
892 target_noncanonical
893 host_noncanonical
894 target_os
895 target_vendor
896 target_cpu
897 target
898 host_os
899 host_vendor
900 host_cpu
901 host
902 build_os
903 build_vendor
904 build_cpu
905 build
906 target_alias
907 host_alias
908 build_alias
909 LIBS
910 ECHO_T
911 ECHO_N
912 ECHO_C
913 DEFS
914 mandir
915 localedir
916 libdir
917 psdir
918 pdfdir
919 dvidir
920 htmldir
921 infodir
922 docdir
923 oldincludedir
924 includedir
925 localstatedir
926 sharedstatedir
927 sysconfdir
928 datadir
929 datarootdir
930 libexecdir
931 sbindir
932 bindir
933 program_transform_name
934 prefix
935 exec_prefix
936 PACKAGE_URL
937 PACKAGE_BUGREPORT
938 PACKAGE_STRING
939 PACKAGE_VERSION
940 PACKAGE_TARNAME
941 PACKAGE_NAME
942 PATH_SEPARATOR
943 SHELL'
944 ac_subst_files='option_includes
945 language_hooks'
946 ac_user_opts='
947 enable_option_checking
948 with_build_libsubdir
949 with_local_prefix
950 with_native_system_header_dir
951 with_build_sysroot
952 with_sysroot
953 with_gxx_include_dir
954 with_gxx_libcxx_include_dir
955 with_cpp_install_dir
956 enable_generated_files_in_srcdir
957 with_gnu_ld
958 with_ld
959 with_demangler_in_ld
960 with_dsymutil
961 with_gnu_as
962 with_as
963 enable_largefile
964 enable_build_format_warnings
965 enable_werror_always
966 enable_checking
967 enable_coverage
968 enable_gather_detailed_mem_stats
969 enable_valgrind_annotations
970 enable_multilib
971 enable_multiarch
972 with_stack_clash_protection_guard_size
973 with_matchpd_partitions
974 enable___cxa_atexit
975 enable_decimal_float
976 enable_fixed_point
977 enable_threads
978 enable_tls
979 enable_vtable_verify
980 enable_analyzer
981 enable_objc_gc
982 with_dwarf2
983 enable_shared
984 enable_gcov
985 with_specs
986 with_pkgversion
987 with_bugurl
988 with_documentation_root_url
989 with_changes_root_url
990 enable_languages
991 with_multilib_list
992 with_multilib_generator
993 with_zstd
994 with_zstd_include
995 with_zstd_lib
996 enable_rpath
997 with_libiconv_prefix
998 with_libiconv_type
999 enable_sjlj_exceptions
1000 with_gcc_major_version_only
1001 enable_secureplt
1002 enable_mingw_wildcard
1003 enable_large_address_aware
1004 enable_leading_mingw64_underscores
1005 enable_cld
1006 enable_frame_pointer
1007 enable_win32_registry
1008 enable_static
1009 with_pic
1010 enable_fast_install
1011 enable_libtool_lock
1012 enable_ld
1013 enable_gold
1014 with_plugin_ld
1015 enable_gnu_indirect_function
1016 enable_initfini_array
1017 enable_comdat
1018 enable_newlib_nano_formatted_io
1019 enable_standard_branch_protection
1020 enable_fix_cortex_a53_835769
1021 enable_fix_cortex_a53_843419
1022 with_glibc_version
1023 enable_gnu_unique_object
1024 enable_linker_build_id
1025 enable_libssp
1026 enable_default_ssp
1027 with_long_double_128
1028 with_long_double_format
1029 with_gc
1030 with_system_zlib
1031 enable_maintainer_mode
1032 enable_link_mutex
1033 enable_link_serialization
1034 enable_version_specific_runtime_libs
1035 enable_plugin
1036 enable_host_shared
1037 enable_host_pie
1038 enable_host_bind_now
1039 enable_libquadmath_support
1040 with_linker_hash_style
1041 with_diagnostics_color
1042 with_diagnostics_urls
1043 enable_default_pie
1044 enable_cet
1045 enable_s390_excess_float_precision
1047 ac_precious_vars='build_alias
1048 host_alias
1049 target_alias
1051 CFLAGS
1052 LDFLAGS
1053 LIBS
1054 CPPFLAGS
1056 CXXFLAGS
1058 CXXCPP
1060 GMPLIBS
1061 GMPINC
1062 ISLLIBS
1063 ISLINC'
1066 # Initialize some variables set by options.
1067 ac_init_help=
1068 ac_init_version=false
1069 ac_unrecognized_opts=
1070 ac_unrecognized_sep=
1071 # The variables have the same names as the options, with
1072 # dashes changed to underlines.
1073 cache_file=/dev/null
1074 exec_prefix=NONE
1075 no_create=
1076 no_recursion=
1077 prefix=NONE
1078 program_prefix=NONE
1079 program_suffix=NONE
1080 program_transform_name=s,x,x,
1081 silent=
1082 site=
1083 srcdir=
1084 verbose=
1085 x_includes=NONE
1086 x_libraries=NONE
1088 # Installation directory options.
1089 # These are left unexpanded so users can "make install exec_prefix=/foo"
1090 # and all the variables that are supposed to be based on exec_prefix
1091 # by default will actually change.
1092 # Use braces instead of parens because sh, perl, etc. also accept them.
1093 # (The list follows the same order as the GNU Coding Standards.)
1094 bindir='${exec_prefix}/bin'
1095 sbindir='${exec_prefix}/sbin'
1096 libexecdir='${exec_prefix}/libexec'
1097 datarootdir='${prefix}/share'
1098 datadir='${datarootdir}'
1099 sysconfdir='${prefix}/etc'
1100 sharedstatedir='${prefix}/com'
1101 localstatedir='${prefix}/var'
1102 includedir='${prefix}/include'
1103 oldincludedir='/usr/include'
1104 docdir='${datarootdir}/doc/${PACKAGE}'
1105 infodir='${datarootdir}/info'
1106 htmldir='${docdir}'
1107 dvidir='${docdir}'
1108 pdfdir='${docdir}'
1109 psdir='${docdir}'
1110 libdir='${exec_prefix}/lib'
1111 localedir='${datarootdir}/locale'
1112 mandir='${datarootdir}/man'
1114 ac_prev=
1115 ac_dashdash=
1116 for ac_option
1118 # If the previous option needs an argument, assign it.
1119 if test -n "$ac_prev"; then
1120 eval $ac_prev=\$ac_option
1121 ac_prev=
1122 continue
1125 case $ac_option in
1126 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1127 *=) ac_optarg= ;;
1128 *) ac_optarg=yes ;;
1129 esac
1131 # Accept the important Cygnus configure options, so we can diagnose typos.
1133 case $ac_dashdash$ac_option in
1135 ac_dashdash=yes ;;
1137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1138 ac_prev=bindir ;;
1139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1140 bindir=$ac_optarg ;;
1142 -build | --build | --buil | --bui | --bu)
1143 ac_prev=build_alias ;;
1144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1145 build_alias=$ac_optarg ;;
1147 -cache-file | --cache-file | --cache-fil | --cache-fi \
1148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1149 ac_prev=cache_file ;;
1150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1152 cache_file=$ac_optarg ;;
1154 --config-cache | -C)
1155 cache_file=config.cache ;;
1157 -datadir | --datadir | --datadi | --datad)
1158 ac_prev=datadir ;;
1159 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1160 datadir=$ac_optarg ;;
1162 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1163 | --dataroo | --dataro | --datar)
1164 ac_prev=datarootdir ;;
1165 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1166 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1167 datarootdir=$ac_optarg ;;
1169 -disable-* | --disable-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid feature name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "enable_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval enable_$ac_useropt=no ;;
1185 -docdir | --docdir | --docdi | --doc | --do)
1186 ac_prev=docdir ;;
1187 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1188 docdir=$ac_optarg ;;
1190 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1191 ac_prev=dvidir ;;
1192 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1193 dvidir=$ac_optarg ;;
1195 -enable-* | --enable-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid feature name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "enable_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval enable_$ac_useropt=\$ac_optarg ;;
1211 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1212 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1213 | --exec | --exe | --ex)
1214 ac_prev=exec_prefix ;;
1215 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1216 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1217 | --exec=* | --exe=* | --ex=*)
1218 exec_prefix=$ac_optarg ;;
1220 -gas | --gas | --ga | --g)
1221 # Obsolete; use --with-gas.
1222 with_gas=yes ;;
1224 -help | --help | --hel | --he | -h)
1225 ac_init_help=long ;;
1226 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1227 ac_init_help=recursive ;;
1228 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1229 ac_init_help=short ;;
1231 -host | --host | --hos | --ho)
1232 ac_prev=host_alias ;;
1233 -host=* | --host=* | --hos=* | --ho=*)
1234 host_alias=$ac_optarg ;;
1236 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1237 ac_prev=htmldir ;;
1238 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1239 | --ht=*)
1240 htmldir=$ac_optarg ;;
1242 -includedir | --includedir | --includedi | --included | --include \
1243 | --includ | --inclu | --incl | --inc)
1244 ac_prev=includedir ;;
1245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1246 | --includ=* | --inclu=* | --incl=* | --inc=*)
1247 includedir=$ac_optarg ;;
1249 -infodir | --infodir | --infodi | --infod | --info | --inf)
1250 ac_prev=infodir ;;
1251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1252 infodir=$ac_optarg ;;
1254 -libdir | --libdir | --libdi | --libd)
1255 ac_prev=libdir ;;
1256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1257 libdir=$ac_optarg ;;
1259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1260 | --libexe | --libex | --libe)
1261 ac_prev=libexecdir ;;
1262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1263 | --libexe=* | --libex=* | --libe=*)
1264 libexecdir=$ac_optarg ;;
1266 -localedir | --localedir | --localedi | --localed | --locale)
1267 ac_prev=localedir ;;
1268 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1269 localedir=$ac_optarg ;;
1271 -localstatedir | --localstatedir | --localstatedi | --localstated \
1272 | --localstate | --localstat | --localsta | --localst | --locals)
1273 ac_prev=localstatedir ;;
1274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1275 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1276 localstatedir=$ac_optarg ;;
1278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1279 ac_prev=mandir ;;
1280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1281 mandir=$ac_optarg ;;
1283 -nfp | --nfp | --nf)
1284 # Obsolete; use --without-fp.
1285 with_fp=no ;;
1287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1288 | --no-cr | --no-c | -n)
1289 no_create=yes ;;
1291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1293 no_recursion=yes ;;
1295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1297 | --oldin | --oldi | --old | --ol | --o)
1298 ac_prev=oldincludedir ;;
1299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1302 oldincludedir=$ac_optarg ;;
1304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1305 ac_prev=prefix ;;
1306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1307 prefix=$ac_optarg ;;
1309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1310 | --program-pre | --program-pr | --program-p)
1311 ac_prev=program_prefix ;;
1312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1314 program_prefix=$ac_optarg ;;
1316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1317 | --program-suf | --program-su | --program-s)
1318 ac_prev=program_suffix ;;
1319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1321 program_suffix=$ac_optarg ;;
1323 -program-transform-name | --program-transform-name \
1324 | --program-transform-nam | --program-transform-na \
1325 | --program-transform-n | --program-transform- \
1326 | --program-transform | --program-transfor \
1327 | --program-transfo | --program-transf \
1328 | --program-trans | --program-tran \
1329 | --progr-tra | --program-tr | --program-t)
1330 ac_prev=program_transform_name ;;
1331 -program-transform-name=* | --program-transform-name=* \
1332 | --program-transform-nam=* | --program-transform-na=* \
1333 | --program-transform-n=* | --program-transform-=* \
1334 | --program-transform=* | --program-transfor=* \
1335 | --program-transfo=* | --program-transf=* \
1336 | --program-trans=* | --program-tran=* \
1337 | --progr-tra=* | --program-tr=* | --program-t=*)
1338 program_transform_name=$ac_optarg ;;
1340 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1341 ac_prev=pdfdir ;;
1342 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1343 pdfdir=$ac_optarg ;;
1345 -psdir | --psdir | --psdi | --psd | --ps)
1346 ac_prev=psdir ;;
1347 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1348 psdir=$ac_optarg ;;
1350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1351 | -silent | --silent | --silen | --sile | --sil)
1352 silent=yes ;;
1354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1355 ac_prev=sbindir ;;
1356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1357 | --sbi=* | --sb=*)
1358 sbindir=$ac_optarg ;;
1360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1362 | --sharedst | --shareds | --shared | --share | --shar \
1363 | --sha | --sh)
1364 ac_prev=sharedstatedir ;;
1365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1368 | --sha=* | --sh=*)
1369 sharedstatedir=$ac_optarg ;;
1371 -site | --site | --sit)
1372 ac_prev=site ;;
1373 -site=* | --site=* | --sit=*)
1374 site=$ac_optarg ;;
1376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1377 ac_prev=srcdir ;;
1378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1379 srcdir=$ac_optarg ;;
1381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1382 | --syscon | --sysco | --sysc | --sys | --sy)
1383 ac_prev=sysconfdir ;;
1384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1386 sysconfdir=$ac_optarg ;;
1388 -target | --target | --targe | --targ | --tar | --ta | --t)
1389 ac_prev=target_alias ;;
1390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1391 target_alias=$ac_optarg ;;
1393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1394 verbose=yes ;;
1396 -version | --version | --versio | --versi | --vers | -V)
1397 ac_init_version=: ;;
1399 -with-* | --with-*)
1400 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1403 as_fn_error $? "invalid package name: $ac_useropt"
1404 ac_useropt_orig=$ac_useropt
1405 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1406 case $ac_user_opts in
1408 "with_$ac_useropt"
1409 "*) ;;
1410 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1411 ac_unrecognized_sep=', ';;
1412 esac
1413 eval with_$ac_useropt=\$ac_optarg ;;
1415 -without-* | --without-*)
1416 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419 as_fn_error $? "invalid package name: $ac_useropt"
1420 ac_useropt_orig=$ac_useropt
1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1424 "with_$ac_useropt"
1425 "*) ;;
1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1427 ac_unrecognized_sep=', ';;
1428 esac
1429 eval with_$ac_useropt=no ;;
1431 --x)
1432 # Obsolete; use --with-x.
1433 with_x=yes ;;
1435 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1436 | --x-incl | --x-inc | --x-in | --x-i)
1437 ac_prev=x_includes ;;
1438 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1439 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1440 x_includes=$ac_optarg ;;
1442 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1443 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1444 ac_prev=x_libraries ;;
1445 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1446 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1447 x_libraries=$ac_optarg ;;
1449 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1450 Try \`$0 --help' for more information"
1453 *=*)
1454 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1455 # Reject names that are not valid shell variable names.
1456 case $ac_envvar in #(
1457 '' | [0-9]* | *[!_$as_cr_alnum]* )
1458 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1459 esac
1460 eval $ac_envvar=\$ac_optarg
1461 export $ac_envvar ;;
1464 # FIXME: should be removed in autoconf 3.0.
1465 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1466 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1467 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1468 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1471 esac
1472 done
1474 if test -n "$ac_prev"; then
1475 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1476 as_fn_error $? "missing argument to $ac_option"
1479 if test -n "$ac_unrecognized_opts"; then
1480 case $enable_option_checking in
1481 no) ;;
1482 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1483 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1484 esac
1487 # Check all directory arguments for consistency.
1488 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1489 datadir sysconfdir sharedstatedir localstatedir includedir \
1490 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1491 libdir localedir mandir
1493 eval ac_val=\$$ac_var
1494 # Remove trailing slashes.
1495 case $ac_val in
1496 */ )
1497 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1498 eval $ac_var=\$ac_val;;
1499 esac
1500 # Be sure to have absolute directory names.
1501 case $ac_val in
1502 [\\/$]* | ?:[\\/]* ) continue;;
1503 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1504 esac
1505 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1506 done
1508 # There might be people who depend on the old broken behavior: `$host'
1509 # used to hold the argument of --host etc.
1510 # FIXME: To remove some day.
1511 build=$build_alias
1512 host=$host_alias
1513 target=$target_alias
1515 # FIXME: To remove some day.
1516 if test "x$host_alias" != x; then
1517 if test "x$build_alias" = x; then
1518 cross_compiling=maybe
1519 elif test "x$build_alias" != "x$host_alias"; then
1520 cross_compiling=yes
1524 ac_tool_prefix=
1525 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1527 test "$silent" = yes && exec 6>/dev/null
1530 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1531 ac_ls_di=`ls -di .` &&
1532 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1533 as_fn_error $? "working directory cannot be determined"
1534 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1535 as_fn_error $? "pwd does not report name of working directory"
1538 # Find the source files, if location was not specified.
1539 if test -z "$srcdir"; then
1540 ac_srcdir_defaulted=yes
1541 # Try the directory containing this script, then the parent directory.
1542 ac_confdir=`$as_dirname -- "$as_myself" ||
1543 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1544 X"$as_myself" : 'X\(//\)[^/]' \| \
1545 X"$as_myself" : 'X\(//\)$' \| \
1546 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1547 $as_echo X"$as_myself" |
1548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1549 s//\1/
1552 /^X\(\/\/\)[^/].*/{
1553 s//\1/
1556 /^X\(\/\/\)$/{
1557 s//\1/
1560 /^X\(\/\).*/{
1561 s//\1/
1564 s/.*/./; q'`
1565 srcdir=$ac_confdir
1566 if test ! -r "$srcdir/$ac_unique_file"; then
1567 srcdir=..
1569 else
1570 ac_srcdir_defaulted=no
1572 if test ! -r "$srcdir/$ac_unique_file"; then
1573 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1574 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1576 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1577 ac_abs_confdir=`(
1578 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1579 pwd)`
1580 # When building in place, set srcdir=.
1581 if test "$ac_abs_confdir" = "$ac_pwd"; then
1582 srcdir=.
1584 # Remove unnecessary trailing slashes from srcdir.
1585 # Double slashes in file names in object file debugging info
1586 # mess up M-x gdb in Emacs.
1587 case $srcdir in
1588 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1589 esac
1590 for ac_var in $ac_precious_vars; do
1591 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1592 eval ac_env_${ac_var}_value=\$${ac_var}
1593 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1594 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1595 done
1598 # Report the --help message.
1600 if test "$ac_init_help" = "long"; then
1601 # Omit some internal or obsolete options to make the list less imposing.
1602 # This message is too long to be a string in the A/UX 3.1 sh.
1603 cat <<_ACEOF
1604 \`configure' configures this package to adapt to many kinds of systems.
1606 Usage: $0 [OPTION]... [VAR=VALUE]...
1608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1609 VAR=VALUE. See below for descriptions of some of the useful variables.
1611 Defaults for the options are specified in brackets.
1613 Configuration:
1614 -h, --help display this help and exit
1615 --help=short display options specific to this package
1616 --help=recursive display the short help of all the included packages
1617 -V, --version display version information and exit
1618 -q, --quiet, --silent do not print \`checking ...' messages
1619 --cache-file=FILE cache test results in FILE [disabled]
1620 -C, --config-cache alias for \`--cache-file=config.cache'
1621 -n, --no-create do not create output files
1622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1624 Installation directories:
1625 --prefix=PREFIX install architecture-independent files in PREFIX
1626 [$ac_default_prefix]
1627 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1628 [PREFIX]
1630 By default, \`make install' will install all the files in
1631 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1632 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1633 for instance \`--prefix=\$HOME'.
1635 For better control, use the options below.
1637 Fine tuning of the installation directories:
1638 --bindir=DIR user executables [EPREFIX/bin]
1639 --sbindir=DIR system admin executables [EPREFIX/sbin]
1640 --libexecdir=DIR program executables [EPREFIX/libexec]
1641 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1642 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1643 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1644 --libdir=DIR object code libraries [EPREFIX/lib]
1645 --includedir=DIR C header files [PREFIX/include]
1646 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1647 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1648 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1649 --infodir=DIR info documentation [DATAROOTDIR/info]
1650 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1651 --mandir=DIR man documentation [DATAROOTDIR/man]
1652 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1653 --htmldir=DIR html documentation [DOCDIR]
1654 --dvidir=DIR dvi documentation [DOCDIR]
1655 --pdfdir=DIR pdf documentation [DOCDIR]
1656 --psdir=DIR ps documentation [DOCDIR]
1657 _ACEOF
1659 cat <<\_ACEOF
1661 Program names:
1662 --program-prefix=PREFIX prepend PREFIX to installed program names
1663 --program-suffix=SUFFIX append SUFFIX to installed program names
1664 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1666 System types:
1667 --build=BUILD configure for building on BUILD [guessed]
1668 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1669 --target=TARGET configure for building compilers for TARGET [HOST]
1670 _ACEOF
1673 if test -n "$ac_init_help"; then
1675 cat <<\_ACEOF
1677 Optional Features:
1678 --disable-option-checking ignore unrecognized --enable/--with options
1679 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1680 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1681 --enable-generated-files-in-srcdir
1682 put copies of generated files in source dir intended
1683 for creating source tarballs for users without
1684 texinfo bison or flex
1685 --disable-largefile omit support for large files
1686 --disable-build-format-warnings
1687 don't use -Wformat while building GCC
1688 --enable-werror-always enable -Werror despite compiler version
1689 --enable-checking[=LIST]
1690 enable expensive run-time checks. With LIST, enable
1691 only specific categories of checks. Categories are:
1692 yes,no,all,none,release. Flags are:
1693 assert,df,extra,fold,gc,gcac,gimple,misc,
1694 rtlflag,rtl,runtime,tree,valgrind,types
1695 --enable-coverage[=LEVEL]
1696 enable compiler's code coverage collection. Use to
1697 measure compiler performance and locate unused parts
1698 of the compiler. With LEVEL, specify optimization.
1699 Values are opt, noopt, default is noopt
1700 --enable-gather-detailed-mem-stats
1701 enable detailed memory allocation stats gathering
1702 --enable-valgrind-annotations
1703 enable valgrind runtime interaction
1704 --enable-multilib enable library support for multiple ABIs
1705 --enable-multiarch enable support for multiarch paths
1706 --enable-__cxa_atexit enable __cxa_atexit for C++
1707 --enable-decimal-float={no,yes,bid,dpd}
1708 enable decimal float extension to C. Selecting 'bid'
1709 or 'dpd' choses which decimal floating point format
1710 to use
1711 --enable-fixed-point enable fixed-point arithmetic extension to C
1712 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1713 package
1714 --enable-tls enable or disable generation of tls code overriding
1715 the assembler check for tls support
1716 --enable-vtable-verify enable vtable verification feature
1717 --disable-analyzer disable -fanalyzer static analyzer
1718 --enable-objc-gc enable the use of Boehm's garbage collector with the
1719 GNU Objective-C runtime
1720 --disable-shared don't provide a shared libgcc
1721 --disable-gcov don't provide libgcov and related host tools
1722 --enable-languages=LIST specify which front-ends to build
1723 --disable-rpath do not hardcode runtime library paths
1724 --enable-sjlj-exceptions
1725 arrange to use setjmp/longjmp exception handling
1726 --enable-secureplt enable -msecure-plt by default for PowerPC
1727 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1728 Default to platform configuration
1729 --enable-large-address-aware
1730 Link mingw executables with --large-address-aware
1731 --enable-leading-mingw64-underscores
1732 enable leading underscores on 64 bit mingw targets
1733 --enable-cld enable -mcld by default for 32bit x86
1734 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1735 --disable-win32-registry
1736 disable lookup of installation paths in the Registry
1737 on Windows hosts
1738 --enable-win32-registry enable registry lookup (default)
1739 --enable-win32-registry=KEY
1740 use KEY instead of GCC version as the last portion
1741 of the registry key
1742 --enable-shared[=PKGS] build shared libraries [default=yes]
1743 --enable-static[=PKGS] build static libraries [default=yes]
1744 --enable-fast-install[=PKGS]
1745 optimize for fast installation [default=yes]
1746 --disable-libtool-lock avoid locking (might break parallel builds)
1747 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1748 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1749 --enable-gnu-indirect-function
1750 enable the use of the @gnu_indirect_function to
1751 glibc systems
1752 --enable-initfini-array use .init_array/.fini_array sections
1753 --enable-comdat enable COMDAT group support
1754 --enable-newlib-nano-formatted-io
1755 Use nano version formatted IO
1757 --enable-standard-branch-protection
1758 enable Branch Target Identification Mechanism and
1759 Return Address Signing by default for AArch64
1760 --disable-standard-branch-protection
1761 disable Branch Target Identification Mechanism and
1762 Return Address Signing by default for AArch64
1765 --enable-fix-cortex-a53-835769
1766 enable workaround for AArch64 Cortex-A53 erratum
1767 835769 by default
1768 --disable-fix-cortex-a53-835769
1769 disable workaround for AArch64 Cortex-A53 erratum
1770 835769 by default
1773 --enable-fix-cortex-a53-843419
1774 enable workaround for AArch64 Cortex-A53 erratum
1775 843419 by default
1776 --disable-fix-cortex-a53-843419
1777 disable workaround for AArch64 Cortex-A53 erratum
1778 843419 by default
1780 --enable-gnu-unique-object
1781 enable the use of the @gnu_unique_object ELF
1782 extension on glibc systems
1783 --enable-linker-build-id
1784 compiler will always pass --build-id to linker
1785 --enable-libssp enable linking against libssp
1786 --enable-default-ssp enable Stack Smashing Protection as default
1787 --enable-maintainer-mode
1788 enable make rules and dependencies not useful (and
1789 sometimes confusing) to the casual installer
1790 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1791 thrashing on the build machine
1792 --enable-link-serialization
1793 avoid linking multiple GCC front-ends at once using
1794 make dependencies to avoid thrashing on the build
1795 machine
1796 --enable-version-specific-runtime-libs
1797 specify that runtime libraries should be installed
1798 in a compiler-specific directory
1799 --enable-plugin enable plugin support
1800 --enable-host-shared build host code as shared libraries
1801 --enable-host-pie build host code as PIE
1802 --enable-host-bind-now link host code as BIND_NOW
1803 --disable-libquadmath-support
1804 disable libquadmath support for Fortran
1805 --enable-default-pie enable Position Independent Executable as default
1806 --enable-cet enable Intel CET in host libraries [default=auto]
1807 --enable-s390-excess-float-precision
1808 on s390 targets, evaluate float with double
1809 precision when in standards-conforming mode
1811 Optional Packages:
1812 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1813 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1814 --with-build-libsubdir=DIR Directory where to find libraries for build system
1815 --with-local-prefix=DIR specifies directory to put local include
1816 --with-native-system-header-dir=dir
1817 use dir as the directory to look for standard
1818 system header files in. Defaults to /usr/include.
1819 --with-build-sysroot=sysroot
1820 use sysroot as the system root during the build
1821 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1822 --with-gxx-include-dir=DIR
1823 specifies directory to put g++ header files
1824 --with-gxx-libcxx-include-dir=DIR
1825 specifies directory to find libc++ header files
1826 --with-cpp-install-dir=DIR
1827 install the user visible C preprocessor in DIR
1828 (relative to PREFIX) as well as PREFIX/bin
1829 --with-gnu-ld arrange to work with GNU ld
1830 --with-ld arrange to use the specified ld (full pathname)
1831 --with-demangler-in-ld try to use demangler in GNU ld
1832 --with-dsymutil arrange to use the specified dsymutil (full
1833 pathname)
1834 --with-gnu-as arrange to work with GNU as
1835 --with-as arrange to use the specified as (full pathname)
1836 --with-stack-clash-protection-guard-size=size
1837 Set the default stack clash protection guard size
1838 for specific targets as a power of two in bytes.
1839 --with-matchpd-partitions=num
1840 Set the number of partitions to make for gimple and
1841 generic when splitting match.pd. [default=10]
1842 --with-dwarf2 force the default debug format to be DWARF 2 (or
1843 later)
1844 --with-specs=SPECS add SPECS to driver command-line processing
1845 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1846 --with-bugurl=URL Direct users to URL to report a bug
1847 --with-documentation-root-url=URL
1848 Root for documentation URLs
1849 --with-changes-root-url=URL
1850 Root for GCC changes URLs
1851 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1852 SH and x86-64 only)
1853 --with-multilib-generator
1854 Multi-libs configuration string (RISC-V only)
1855 --with-zstd=PATH specify prefix directory for installed zstd library.
1856 Equivalent to --with-zstd-include=PATH/include plus
1857 --with-zstd-lib=PATH/lib
1858 --with-zstd-include=PATH
1859 specify directory for installed zstd include files
1860 --with-zstd-lib=PATH specify directory for the installed zstd library
1861 --with-gnu-ld assume the C compiler uses GNU ld default=no
1862 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1863 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1864 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1865 --with-gcc-major-version-only
1866 use only GCC major number in filesystem paths
1867 --with-pic try to use only PIC/non-PIC objects [default=use
1868 both]
1869 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1870 --with-plugin-ld=[ARG] specify the plugin linker
1871 --with-glibc-version=M.N
1872 assume GCC used with glibc version M.N or later
1873 --with-long-double-128 use 128-bit long double by default
1874 --with-long-double-format={ieee,ibm}
1875 Specify whether PowerPC long double uses IEEE or IBM format
1877 --with-gc={page,zone} this option is not supported anymore. It used to
1878 choose the garbage collection mechanism to use with
1879 the compiler
1880 --with-system-zlib use installed libz
1881 --with-linker-hash-style={sysv,gnu,both}
1882 specify the linker hash style
1883 --with-diagnostics-color={never,auto,auto-if-env,always}
1884 specify the default of -fdiagnostics-color option
1885 auto-if-env stands for -fdiagnostics-color=auto if
1886 GCC_COLOR environment variable is present and
1887 -fdiagnostics-color=never otherwise
1888 --with-diagnostics-urls={never,auto,auto-if-env,always}
1889 specify the default of -fdiagnostics-urls option
1890 auto-if-env stands for -fdiagnostics-urls=auto if
1891 GCC_URLS or TERM_URLS environment variable is
1892 present and -fdiagnostics-urls=never otherwise
1894 Some influential environment variables:
1895 CC C compiler command
1896 CFLAGS C compiler flags
1897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1898 nonstandard directory <lib dir>
1899 LIBS libraries to pass to the linker, e.g. -l<library>
1900 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1901 you have headers in a nonstandard directory <include dir>
1902 CXX C++ compiler command
1903 CXXFLAGS C++ compiler flags
1904 CXXCPP C++ preprocessor
1905 CPP C preprocessor
1906 GMPLIBS How to link GMP
1907 GMPINC How to find GMP include files
1908 ISLLIBS How to link isl
1909 ISLINC How to find isl include files
1911 Use these variables to override the choices made by `configure' or to help
1912 it to find libraries and programs with nonstandard names/locations.
1914 Report bugs to the package provider.
1915 _ACEOF
1916 ac_status=$?
1919 if test "$ac_init_help" = "recursive"; then
1920 # If there are subdirs, report their specific --help.
1921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1922 test -d "$ac_dir" ||
1923 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1924 continue
1925 ac_builddir=.
1927 case "$ac_dir" in
1928 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1930 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1931 # A ".." for each directory in $ac_dir_suffix.
1932 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1933 case $ac_top_builddir_sub in
1934 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1935 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1936 esac ;;
1937 esac
1938 ac_abs_top_builddir=$ac_pwd
1939 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1940 # for backward compatibility:
1941 ac_top_builddir=$ac_top_build_prefix
1943 case $srcdir in
1944 .) # We are building in place.
1945 ac_srcdir=.
1946 ac_top_srcdir=$ac_top_builddir_sub
1947 ac_abs_top_srcdir=$ac_pwd ;;
1948 [\\/]* | ?:[\\/]* ) # Absolute name.
1949 ac_srcdir=$srcdir$ac_dir_suffix;
1950 ac_top_srcdir=$srcdir
1951 ac_abs_top_srcdir=$srcdir ;;
1952 *) # Relative name.
1953 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1954 ac_top_srcdir=$ac_top_build_prefix$srcdir
1955 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1956 esac
1957 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1959 cd "$ac_dir" || { ac_status=$?; continue; }
1960 # Check for guested configure.
1961 if test -f "$ac_srcdir/configure.gnu"; then
1962 echo &&
1963 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1964 elif test -f "$ac_srcdir/configure"; then
1965 echo &&
1966 $SHELL "$ac_srcdir/configure" --help=recursive
1967 else
1968 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1969 fi || ac_status=$?
1970 cd "$ac_pwd" || { ac_status=$?; break; }
1971 done
1974 test -n "$ac_init_help" && exit $ac_status
1975 if $ac_init_version; then
1976 cat <<\_ACEOF
1977 configure
1978 generated by GNU Autoconf 2.69
1980 Copyright (C) 2012 Free Software Foundation, Inc.
1981 This configure script is free software; the Free Software Foundation
1982 gives unlimited permission to copy, distribute and modify it.
1983 _ACEOF
1984 exit
1987 ## ------------------------ ##
1988 ## Autoconf initialization. ##
1989 ## ------------------------ ##
1991 # ac_fn_c_try_compile LINENO
1992 # --------------------------
1993 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1994 ac_fn_c_try_compile ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 rm -f conftest.$ac_objext
1998 if { { ac_try="$ac_compile"
1999 case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_compile") 2>conftest.err
2006 ac_status=$?
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && {
2014 test -z "$ac_c_werror_flag" ||
2015 test ! -s conftest.err
2016 } && test -s conftest.$ac_objext; then :
2017 ac_retval=0
2018 else
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2022 ac_retval=1
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 as_fn_set_status $ac_retval
2027 } # ac_fn_c_try_compile
2029 # ac_fn_cxx_try_compile LINENO
2030 # ----------------------------
2031 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2032 ac_fn_cxx_try_compile ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 rm -f conftest.$ac_objext
2036 if { { ac_try="$ac_compile"
2037 case "(($ac_try" in
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2040 esac
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_compile") 2>conftest.err
2044 ac_status=$?
2045 if test -s conftest.err; then
2046 grep -v '^ *+' conftest.err >conftest.er1
2047 cat conftest.er1 >&5
2048 mv -f conftest.er1 conftest.err
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && {
2052 test -z "$ac_cxx_werror_flag" ||
2053 test ! -s conftest.err
2054 } && test -s conftest.$ac_objext; then :
2055 ac_retval=0
2056 else
2057 $as_echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2060 ac_retval=1
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 as_fn_set_status $ac_retval
2065 } # ac_fn_cxx_try_compile
2067 # ac_fn_cxx_try_cpp LINENO
2068 # ------------------------
2069 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2070 ac_fn_cxx_try_cpp ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 if { { ac_try="$ac_cpp conftest.$ac_ext"
2074 case "(($ac_try" in
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2077 esac
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2081 ac_status=$?
2082 if test -s conftest.err; then
2083 grep -v '^ *+' conftest.err >conftest.er1
2084 cat conftest.er1 >&5
2085 mv -f conftest.er1 conftest.err
2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088 test $ac_status = 0; } > conftest.i && {
2089 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2090 test ! -s conftest.err
2091 }; then :
2092 ac_retval=0
2093 else
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2097 ac_retval=1
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2102 } # ac_fn_cxx_try_cpp
2104 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2105 # ---------------------------------------------------------
2106 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2107 # the include files in INCLUDES and setting the cache variable VAR
2108 # accordingly.
2109 ac_fn_cxx_check_header_mongrel ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 if eval \${$3+:} false; then :
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114 $as_echo_n "checking for $2... " >&6; }
2115 if eval \${$3+:} false; then :
2116 $as_echo_n "(cached) " >&6
2118 eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 else
2122 # Is the header compilable?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2124 $as_echo_n "checking $2 usability... " >&6; }
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2128 #include <$2>
2129 _ACEOF
2130 if ac_fn_cxx_try_compile "$LINENO"; then :
2131 ac_header_compiler=yes
2132 else
2133 ac_header_compiler=no
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2137 $as_echo "$ac_header_compiler" >&6; }
2139 # Is the header present?
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2141 $as_echo_n "checking $2 presence... " >&6; }
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 #include <$2>
2145 _ACEOF
2146 if ac_fn_cxx_try_cpp "$LINENO"; then :
2147 ac_header_preproc=yes
2148 else
2149 ac_header_preproc=no
2151 rm -f conftest.err conftest.i conftest.$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2153 $as_echo "$ac_header_preproc" >&6; }
2155 # So? What about this header?
2156 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2157 yes:no: )
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2159 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2161 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2163 no:yes:* )
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2165 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2167 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2169 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2171 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2173 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2175 esac
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if eval \${$3+:} false; then :
2179 $as_echo_n "(cached) " >&6
2180 else
2181 eval "$3=\$ac_header_compiler"
2183 eval ac_res=\$$3
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189 } # ac_fn_cxx_check_header_mongrel
2191 # ac_fn_cxx_try_run LINENO
2192 # ------------------------
2193 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2194 # that executables *can* be run.
2195 ac_fn_cxx_try_run ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 if { { ac_try="$ac_link"
2199 case "(($ac_try" in
2200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201 *) ac_try_echo=$ac_try;;
2202 esac
2203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2204 $as_echo "$ac_try_echo"; } >&5
2205 (eval "$ac_link") 2>&5
2206 ac_status=$?
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
2216 ac_status=$?
2217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218 test $ac_status = 0; }; }; then :
2219 ac_retval=0
2220 else
2221 $as_echo "$as_me: program exited with status $ac_status" >&5
2222 $as_echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2225 ac_retval=$ac_status
2227 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 as_fn_set_status $ac_retval
2231 } # ac_fn_cxx_try_run
2233 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2234 # ---------------------------------------------------------
2235 # Tests whether HEADER exists and can be compiled using the include files in
2236 # INCLUDES, setting the cache variable VAR accordingly.
2237 ac_fn_cxx_check_header_compile ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval \${$3+:} false; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2248 #include <$2>
2249 _ACEOF
2250 if ac_fn_cxx_try_compile "$LINENO"; then :
2251 eval "$3=yes"
2252 else
2253 eval "$3=no"
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262 } # ac_fn_cxx_check_header_compile
2264 # ac_fn_c_try_cpp LINENO
2265 # ----------------------
2266 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2267 ac_fn_c_try_cpp ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 if { { ac_try="$ac_cpp conftest.$ac_ext"
2271 case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274 esac
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2278 ac_status=$?
2279 if test -s conftest.err; then
2280 grep -v '^ *+' conftest.err >conftest.er1
2281 cat conftest.er1 >&5
2282 mv -f conftest.er1 conftest.err
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } > conftest.i && {
2286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2287 test ! -s conftest.err
2288 }; then :
2289 ac_retval=0
2290 else
2291 $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2294 ac_retval=1
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 as_fn_set_status $ac_retval
2299 } # ac_fn_c_try_cpp
2301 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2302 # ----------------------------------------------
2303 # Tries to find the compile-time value of EXPR in a program that includes
2304 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2305 # computed
2306 ac_fn_cxx_compute_int ()
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 if test "$cross_compiling" = yes; then
2310 # Depending upon the size, compute the lo and hi bounds.
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2315 main ()
2317 static int test_array [1 - 2 * !(($2) >= 0)];
2318 test_array [0] = 0;
2319 return test_array [0];
2322 return 0;
2324 _ACEOF
2325 if ac_fn_cxx_try_compile "$LINENO"; then :
2326 ac_lo=0 ac_mid=0
2327 while :; do
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2332 main ()
2334 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2335 test_array [0] = 0;
2336 return test_array [0];
2339 return 0;
2341 _ACEOF
2342 if ac_fn_cxx_try_compile "$LINENO"; then :
2343 ac_hi=$ac_mid; break
2344 else
2345 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2346 if test $ac_lo -le $ac_mid; then
2347 ac_lo= ac_hi=
2348 break
2350 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 done
2354 else
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2359 main ()
2361 static int test_array [1 - 2 * !(($2) < 0)];
2362 test_array [0] = 0;
2363 return test_array [0];
2366 return 0;
2368 _ACEOF
2369 if ac_fn_cxx_try_compile "$LINENO"; then :
2370 ac_hi=-1 ac_mid=-1
2371 while :; do
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2376 main ()
2378 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2379 test_array [0] = 0;
2380 return test_array [0];
2383 return 0;
2385 _ACEOF
2386 if ac_fn_cxx_try_compile "$LINENO"; then :
2387 ac_lo=$ac_mid; break
2388 else
2389 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2390 if test $ac_mid -le $ac_hi; then
2391 ac_lo= ac_hi=
2392 break
2394 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 done
2398 else
2399 ac_lo= ac_hi=
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 # Binary search between lo and hi bounds.
2405 while test "x$ac_lo" != "x$ac_hi"; do
2406 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2411 main ()
2413 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2414 test_array [0] = 0;
2415 return test_array [0];
2418 return 0;
2420 _ACEOF
2421 if ac_fn_cxx_try_compile "$LINENO"; then :
2422 ac_hi=$ac_mid
2423 else
2424 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 done
2428 case $ac_lo in #((
2429 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2430 '') ac_retval=1 ;;
2431 esac
2432 else
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2436 static long int longval () { return $2; }
2437 static unsigned long int ulongval () { return $2; }
2438 #include <stdio.h>
2439 #include <stdlib.h>
2441 main ()
2444 FILE *f = fopen ("conftest.val", "w");
2445 if (! f)
2446 return 1;
2447 if (($2) < 0)
2449 long int i = longval ();
2450 if (i != ($2))
2451 return 1;
2452 fprintf (f, "%ld", i);
2454 else
2456 unsigned long int i = ulongval ();
2457 if (i != ($2))
2458 return 1;
2459 fprintf (f, "%lu", i);
2461 /* Do not output a trailing newline, as this causes \r\n confusion
2462 on some platforms. */
2463 return ferror (f) || fclose (f) != 0;
2466 return 0;
2468 _ACEOF
2469 if ac_fn_cxx_try_run "$LINENO"; then :
2470 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2471 else
2472 ac_retval=1
2474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2475 conftest.$ac_objext conftest.beam conftest.$ac_ext
2476 rm -f conftest.val
2479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2480 as_fn_set_status $ac_retval
2482 } # ac_fn_cxx_compute_int
2484 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2485 # ---------------------------------------------
2486 # Tests whether TYPE exists after having included INCLUDES, setting cache
2487 # variable VAR accordingly.
2488 ac_fn_cxx_check_type ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2492 $as_echo_n "checking for $2... " >&6; }
2493 if eval \${$3+:} false; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 eval "$3=no"
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2501 main ()
2503 if (sizeof ($2))
2504 return 0;
2506 return 0;
2508 _ACEOF
2509 if ac_fn_cxx_try_compile "$LINENO"; then :
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2514 main ()
2516 if (sizeof (($2)))
2517 return 0;
2519 return 0;
2521 _ACEOF
2522 if ac_fn_cxx_try_compile "$LINENO"; then :
2524 else
2525 eval "$3=yes"
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2531 eval ac_res=\$$3
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2533 $as_echo "$ac_res" >&6; }
2534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2536 } # ac_fn_cxx_check_type
2538 # ac_fn_c_find_intX_t LINENO BITS VAR
2539 # -----------------------------------
2540 # Finds a signed integer type with width BITS, setting cache variable VAR
2541 # accordingly.
2542 ac_fn_c_find_intX_t ()
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2546 $as_echo_n "checking for int$2_t... " >&6; }
2547 if eval \${$3+:} false; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 eval "$3=no"
2551 # Order is important - never check a type that is potentially smaller
2552 # than half of the expected target width.
2553 for ac_type in int$2_t 'int' 'long int' \
2554 'long long int' 'short int' 'signed char'; do
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 $ac_includes_default
2558 enum { N = $2 / 2 - 1 };
2560 main ()
2562 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2563 test_array [0] = 0;
2564 return test_array [0];
2567 return 0;
2569 _ACEOF
2570 if ac_fn_cxx_try_compile "$LINENO"; then :
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2573 $ac_includes_default
2574 enum { N = $2 / 2 - 1 };
2576 main ()
2578 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2579 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2580 test_array [0] = 0;
2581 return test_array [0];
2584 return 0;
2586 _ACEOF
2587 if ac_fn_cxx_try_compile "$LINENO"; then :
2589 else
2590 case $ac_type in #(
2591 int$2_t) :
2592 eval "$3=yes" ;; #(
2593 *) :
2594 eval "$3=\$ac_type" ;;
2595 esac
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 if eval test \"x\$"$3"\" = x"no"; then :
2602 else
2603 break
2605 done
2607 eval ac_res=\$$3
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609 $as_echo "$ac_res" >&6; }
2610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2612 } # ac_fn_c_find_intX_t
2614 # ac_fn_cxx_try_link LINENO
2615 # -------------------------
2616 # Try to link conftest.$ac_ext, and return whether this succeeded.
2617 ac_fn_cxx_try_link ()
2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620 rm -f conftest.$ac_objext conftest$ac_exeext
2621 if { { ac_try="$ac_link"
2622 case "(($ac_try" in
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2625 esac
2626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627 $as_echo "$ac_try_echo"; } >&5
2628 (eval "$ac_link") 2>conftest.err
2629 ac_status=$?
2630 if test -s conftest.err; then
2631 grep -v '^ *+' conftest.err >conftest.er1
2632 cat conftest.er1 >&5
2633 mv -f conftest.er1 conftest.err
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636 test $ac_status = 0; } && {
2637 test -z "$ac_cxx_werror_flag" ||
2638 test ! -s conftest.err
2639 } && test -s conftest$ac_exeext && {
2640 test "$cross_compiling" = yes ||
2641 test -x conftest$ac_exeext
2642 }; then :
2643 ac_retval=0
2644 else
2645 $as_echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2648 ac_retval=1
2650 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2651 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2652 # interfere with the next link command; also delete a directory that is
2653 # left behind by Apple's compiler. We do this before executing the actions.
2654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656 as_fn_set_status $ac_retval
2658 } # ac_fn_cxx_try_link
2660 # ac_fn_c_find_uintX_t LINENO BITS VAR
2661 # ------------------------------------
2662 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2663 # accordingly.
2664 ac_fn_c_find_uintX_t ()
2666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2668 $as_echo_n "checking for uint$2_t... " >&6; }
2669 if eval \${$3+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 eval "$3=no"
2673 # Order is important - never check a type that is potentially smaller
2674 # than half of the expected target width.
2675 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2676 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2679 $ac_includes_default
2681 main ()
2683 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2684 test_array [0] = 0;
2685 return test_array [0];
2688 return 0;
2690 _ACEOF
2691 if ac_fn_cxx_try_compile "$LINENO"; then :
2692 case $ac_type in #(
2693 uint$2_t) :
2694 eval "$3=yes" ;; #(
2695 *) :
2696 eval "$3=\$ac_type" ;;
2697 esac
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 if eval test \"x\$"$3"\" = x"no"; then :
2702 else
2703 break
2705 done
2707 eval ac_res=\$$3
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2709 $as_echo "$ac_res" >&6; }
2710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2712 } # ac_fn_c_find_uintX_t
2714 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2715 # ------------------------------------------------
2716 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2717 ac_fn_cxx_check_header_preproc ()
2719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2721 $as_echo_n "checking for $2... " >&6; }
2722 if eval \${$3+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h. */
2727 #include <$2>
2728 _ACEOF
2729 if ac_fn_cxx_try_cpp "$LINENO"; then :
2730 eval "$3=yes"
2731 else
2732 eval "$3=no"
2734 rm -f conftest.err conftest.i conftest.$ac_ext
2736 eval ac_res=\$$3
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2738 $as_echo "$ac_res" >&6; }
2739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2741 } # ac_fn_cxx_check_header_preproc
2743 # ac_fn_cxx_check_func LINENO FUNC VAR
2744 # ------------------------------------
2745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2746 ac_fn_cxx_check_func ()
2748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2750 $as_echo_n "checking for $2... " >&6; }
2751 if eval \${$3+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2755 /* end confdefs.h. */
2756 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2758 #define $2 innocuous_$2
2760 /* System header to define __stub macros and hopefully few prototypes,
2761 which can conflict with char $2 (); below.
2762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2763 <limits.h> exists even on freestanding compilers. */
2765 #ifdef __STDC__
2766 # include <limits.h>
2767 #else
2768 # include <assert.h>
2769 #endif
2771 #undef $2
2773 /* Override any GCC internal prototype to avoid an error.
2774 Use char because int might match the return type of a GCC
2775 builtin and then its argument prototype would still apply. */
2776 #ifdef __cplusplus
2777 extern "C"
2778 #endif
2779 char $2 ();
2780 /* The GNU C library defines this for functions which it implements
2781 to always fail with ENOSYS. Some functions are actually named
2782 something starting with __ and the normal name is an alias. */
2783 #if defined __stub_$2 || defined __stub___$2
2784 choke me
2785 #endif
2788 main ()
2790 return $2 ();
2792 return 0;
2794 _ACEOF
2795 if ac_fn_cxx_try_link "$LINENO"; then :
2796 eval "$3=yes"
2797 else
2798 eval "$3=no"
2800 rm -f core conftest.err conftest.$ac_objext \
2801 conftest$ac_exeext conftest.$ac_ext
2803 eval ac_res=\$$3
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805 $as_echo "$ac_res" >&6; }
2806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2808 } # ac_fn_cxx_check_func
2810 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2811 # -----------------------------------------------
2812 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2813 # accordingly.
2814 ac_fn_cxx_check_decl ()
2816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2817 as_decl_name=`echo $2|sed 's/ *(.*//'`
2818 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2820 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2821 if eval \${$3+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2828 main ()
2830 #ifndef $as_decl_name
2831 #ifdef __cplusplus
2832 (void) $as_decl_use;
2833 #else
2834 (void) $as_decl_name;
2835 #endif
2836 #endif
2839 return 0;
2841 _ACEOF
2842 if ac_fn_cxx_try_compile "$LINENO"; then :
2843 eval "$3=yes"
2844 else
2845 eval "$3=no"
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 eval ac_res=\$$3
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2851 $as_echo "$ac_res" >&6; }
2852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2854 } # ac_fn_cxx_check_decl
2856 # ac_fn_c_try_link LINENO
2857 # -----------------------
2858 # Try to link conftest.$ac_ext, and return whether this succeeded.
2859 ac_fn_c_try_link ()
2861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2862 rm -f conftest.$ac_objext conftest$ac_exeext
2863 if { { ac_try="$ac_link"
2864 case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2867 esac
2868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2869 $as_echo "$ac_try_echo"; } >&5
2870 (eval "$ac_link") 2>conftest.err
2871 ac_status=$?
2872 if test -s conftest.err; then
2873 grep -v '^ *+' conftest.err >conftest.er1
2874 cat conftest.er1 >&5
2875 mv -f conftest.er1 conftest.err
2877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878 test $ac_status = 0; } && {
2879 test -z "$ac_c_werror_flag" ||
2880 test ! -s conftest.err
2881 } && test -s conftest$ac_exeext && {
2882 test "$cross_compiling" = yes ||
2883 test -x conftest$ac_exeext
2884 }; then :
2885 ac_retval=0
2886 else
2887 $as_echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2890 ac_retval=1
2892 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2893 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2894 # interfere with the next link command; also delete a directory that is
2895 # left behind by Apple's compiler. We do this before executing the actions.
2896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2898 as_fn_set_status $ac_retval
2900 } # ac_fn_c_try_link
2902 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2903 # ----------------------------------------------
2904 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2905 ac_fn_c_check_header_preproc ()
2907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2909 $as_echo_n "checking for $2... " >&6; }
2910 if eval \${$3+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h. */
2915 #include <$2>
2916 _ACEOF
2917 if ac_fn_c_try_cpp "$LINENO"; then :
2918 eval "$3=yes"
2919 else
2920 eval "$3=no"
2922 rm -f conftest.err conftest.i conftest.$ac_ext
2924 eval ac_res=\$$3
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2926 $as_echo "$ac_res" >&6; }
2927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2929 } # ac_fn_c_check_header_preproc
2931 # ac_fn_c_check_func LINENO FUNC VAR
2932 # ----------------------------------
2933 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2934 ac_fn_c_check_func ()
2936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2938 $as_echo_n "checking for $2... " >&6; }
2939 if eval \${$3+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h. */
2944 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2946 #define $2 innocuous_$2
2948 /* System header to define __stub macros and hopefully few prototypes,
2949 which can conflict with char $2 (); below.
2950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2951 <limits.h> exists even on freestanding compilers. */
2953 #ifdef __STDC__
2954 # include <limits.h>
2955 #else
2956 # include <assert.h>
2957 #endif
2959 #undef $2
2961 /* Override any GCC internal prototype to avoid an error.
2962 Use char because int might match the return type of a GCC
2963 builtin and then its argument prototype would still apply. */
2964 #ifdef __cplusplus
2965 extern "C"
2966 #endif
2967 char $2 ();
2968 /* The GNU C library defines this for functions which it implements
2969 to always fail with ENOSYS. Some functions are actually named
2970 something starting with __ and the normal name is an alias. */
2971 #if defined __stub_$2 || defined __stub___$2
2972 choke me
2973 #endif
2976 main ()
2978 return $2 ();
2980 return 0;
2982 _ACEOF
2983 if ac_fn_c_try_link "$LINENO"; then :
2984 eval "$3=yes"
2985 else
2986 eval "$3=no"
2988 rm -f core conftest.err conftest.$ac_objext \
2989 conftest$ac_exeext conftest.$ac_ext
2991 eval ac_res=\$$3
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2993 $as_echo "$ac_res" >&6; }
2994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2996 } # ac_fn_c_check_func
2997 cat >config.log <<_ACEOF
2998 This file contains any messages produced by compilers while
2999 running configure, to aid debugging if configure makes a mistake.
3001 It was created by $as_me, which was
3002 generated by GNU Autoconf 2.69. Invocation command line was
3004 $ $0 $@
3006 _ACEOF
3007 exec 5>>config.log
3009 cat <<_ASUNAME
3010 ## --------- ##
3011 ## Platform. ##
3012 ## --------- ##
3014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3026 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3031 _ASUNAME
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 $as_echo "PATH: $as_dir"
3039 done
3040 IFS=$as_save_IFS
3042 } >&5
3044 cat >&5 <<_ACEOF
3047 ## ----------- ##
3048 ## Core tests. ##
3049 ## ----------- ##
3051 _ACEOF
3054 # Keep a trace of the command line.
3055 # Strip out --no-create and --no-recursion so they do not pile up.
3056 # Strip out --silent because we don't want to record it for future runs.
3057 # Also quote any args containing shell meta-characters.
3058 # Make two passes to allow for proper duplicate-argument suppression.
3059 ac_configure_args=
3060 ac_configure_args0=
3061 ac_configure_args1=
3062 ac_must_keep_next=false
3063 for ac_pass in 1 2
3065 for ac_arg
3067 case $ac_arg in
3068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3070 | -silent | --silent | --silen | --sile | --sil)
3071 continue ;;
3072 *\'*)
3073 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3074 esac
3075 case $ac_pass in
3076 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3078 as_fn_append ac_configure_args1 " '$ac_arg'"
3079 if test $ac_must_keep_next = true; then
3080 ac_must_keep_next=false # Got value, back to normal.
3081 else
3082 case $ac_arg in
3083 *=* | --config-cache | -C | -disable-* | --disable-* \
3084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3086 | -with-* | --with-* | -without-* | --without-* | --x)
3087 case "$ac_configure_args0 " in
3088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3089 esac
3091 -* ) ac_must_keep_next=true ;;
3092 esac
3094 as_fn_append ac_configure_args " '$ac_arg'"
3096 esac
3097 done
3098 done
3099 { ac_configure_args0=; unset ac_configure_args0;}
3100 { ac_configure_args1=; unset ac_configure_args1;}
3102 # When interrupted or exit'd, cleanup temporary files, and complete
3103 # config.log. We remove comments because anyway the quotes in there
3104 # would cause problems or look ugly.
3105 # WARNING: Use '\'' to represent an apostrophe within the trap.
3106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3107 trap 'exit_status=$?
3108 # Save into config.log some information that might help in debugging.
3110 echo
3112 $as_echo "## ---------------- ##
3113 ## Cache variables. ##
3114 ## ---------------- ##"
3115 echo
3116 # The following way of writing the cache mishandles newlines in values,
3118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3119 eval ac_val=\$$ac_var
3120 case $ac_val in #(
3121 *${as_nl}*)
3122 case $ac_var in #(
3123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3125 esac
3126 case $ac_var in #(
3127 _ | IFS | as_nl) ;; #(
3128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3129 *) { eval $ac_var=; unset $ac_var;} ;;
3130 esac ;;
3131 esac
3132 done
3133 (set) 2>&1 |
3134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3135 *${as_nl}ac_space=\ *)
3136 sed -n \
3137 "s/'\''/'\''\\\\'\'''\''/g;
3138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3139 ;; #(
3141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3143 esac |
3144 sort
3146 echo
3148 $as_echo "## ----------------- ##
3149 ## Output variables. ##
3150 ## ----------------- ##"
3151 echo
3152 for ac_var in $ac_subst_vars
3154 eval ac_val=\$$ac_var
3155 case $ac_val in
3156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3157 esac
3158 $as_echo "$ac_var='\''$ac_val'\''"
3159 done | sort
3160 echo
3162 if test -n "$ac_subst_files"; then
3163 $as_echo "## ------------------- ##
3164 ## File substitutions. ##
3165 ## ------------------- ##"
3166 echo
3167 for ac_var in $ac_subst_files
3169 eval ac_val=\$$ac_var
3170 case $ac_val in
3171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3172 esac
3173 $as_echo "$ac_var='\''$ac_val'\''"
3174 done | sort
3175 echo
3178 if test -s confdefs.h; then
3179 $as_echo "## ----------- ##
3180 ## confdefs.h. ##
3181 ## ----------- ##"
3182 echo
3183 cat confdefs.h
3184 echo
3186 test "$ac_signal" != 0 &&
3187 $as_echo "$as_me: caught signal $ac_signal"
3188 $as_echo "$as_me: exit $exit_status"
3189 } >&5
3190 rm -f core *.core core.conftest.* &&
3191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3192 exit $exit_status
3194 for ac_signal in 1 2 13 15; do
3195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3196 done
3197 ac_signal=0
3199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3200 rm -f -r conftest* confdefs.h
3202 $as_echo "/* confdefs.h */" > confdefs.h
3204 # Predefined preprocessor variables.
3206 cat >>confdefs.h <<_ACEOF
3207 #define PACKAGE_NAME "$PACKAGE_NAME"
3208 _ACEOF
3210 cat >>confdefs.h <<_ACEOF
3211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3212 _ACEOF
3214 cat >>confdefs.h <<_ACEOF
3215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3216 _ACEOF
3218 cat >>confdefs.h <<_ACEOF
3219 #define PACKAGE_STRING "$PACKAGE_STRING"
3220 _ACEOF
3222 cat >>confdefs.h <<_ACEOF
3223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3224 _ACEOF
3226 cat >>confdefs.h <<_ACEOF
3227 #define PACKAGE_URL "$PACKAGE_URL"
3228 _ACEOF
3231 # Let the site file select an alternate cache file if it wants to.
3232 # Prefer an explicitly selected file to automatically selected ones.
3233 ac_site_file1=NONE
3234 ac_site_file2=NONE
3235 if test -n "$CONFIG_SITE"; then
3236 # We do not want a PATH search for config.site.
3237 case $CONFIG_SITE in #((
3238 -*) ac_site_file1=./$CONFIG_SITE;;
3239 */*) ac_site_file1=$CONFIG_SITE;;
3240 *) ac_site_file1=./$CONFIG_SITE;;
3241 esac
3242 elif test "x$prefix" != xNONE; then
3243 ac_site_file1=$prefix/share/config.site
3244 ac_site_file2=$prefix/etc/config.site
3245 else
3246 ac_site_file1=$ac_default_prefix/share/config.site
3247 ac_site_file2=$ac_default_prefix/etc/config.site
3249 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3251 test "x$ac_site_file" = xNONE && continue
3252 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3254 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3255 sed 's/^/| /' "$ac_site_file" >&5
3256 . "$ac_site_file" \
3257 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error $? "failed to load site script $ac_site_file
3260 See \`config.log' for more details" "$LINENO" 5; }
3262 done
3264 if test -r "$cache_file"; then
3265 # Some versions of bash will fail to source /dev/null (special files
3266 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3269 $as_echo "$as_me: loading cache $cache_file" >&6;}
3270 case $cache_file in
3271 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3272 *) . "./$cache_file";;
3273 esac
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3277 $as_echo "$as_me: creating cache $cache_file" >&6;}
3278 >$cache_file
3281 # Check that the precious variables saved in the cache have kept the same
3282 # value.
3283 ac_cache_corrupted=false
3284 for ac_var in $ac_precious_vars; do
3285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3286 eval ac_new_set=\$ac_env_${ac_var}_set
3287 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3288 eval ac_new_val=\$ac_env_${ac_var}_value
3289 case $ac_old_set,$ac_new_set in
3290 set,)
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3292 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3293 ac_cache_corrupted=: ;;
3294 ,set)
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3296 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3297 ac_cache_corrupted=: ;;
3298 ,);;
3300 if test "x$ac_old_val" != "x$ac_new_val"; then
3301 # differences in whitespace do not lead to failure.
3302 ac_old_val_w=`echo x $ac_old_val`
3303 ac_new_val_w=`echo x $ac_new_val`
3304 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3306 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3307 ac_cache_corrupted=:
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3310 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3311 eval $ac_var=\$ac_old_val
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3314 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3316 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3317 fi;;
3318 esac
3319 # Pass precious variables to config.status.
3320 if test "$ac_new_set" = set; then
3321 case $ac_new_val in
3322 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3323 *) ac_arg=$ac_var=$ac_new_val ;;
3324 esac
3325 case " $ac_configure_args " in
3326 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3327 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3328 esac
3330 done
3331 if $ac_cache_corrupted; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3335 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3336 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3338 ## -------------------- ##
3339 ## Main body of script. ##
3340 ## -------------------- ##
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3357 gcc_version=`cat $srcdir/BASE-VER`
3359 # Determine the host, build, and target systems
3360 ac_aux_dir=
3361 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3362 if test -f "$ac_dir/install-sh"; then
3363 ac_aux_dir=$ac_dir
3364 ac_install_sh="$ac_aux_dir/install-sh -c"
3365 break
3366 elif test -f "$ac_dir/install.sh"; then
3367 ac_aux_dir=$ac_dir
3368 ac_install_sh="$ac_aux_dir/install.sh -c"
3369 break
3370 elif test -f "$ac_dir/shtool"; then
3371 ac_aux_dir=$ac_dir
3372 ac_install_sh="$ac_aux_dir/shtool install -c"
3373 break
3375 done
3376 if test -z "$ac_aux_dir"; then
3377 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3380 # These three variables are undocumented and unsupported,
3381 # and are intended to be withdrawn in a future Autoconf release.
3382 # They can cause serious problems if a builder's source tree is in a directory
3383 # whose full name contains unusual characters.
3384 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3385 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3386 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3389 # Make sure we can run config.sub.
3390 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3391 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3394 $as_echo_n "checking build system type... " >&6; }
3395 if ${ac_cv_build+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 ac_build_alias=$build_alias
3399 test "x$ac_build_alias" = x &&
3400 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3401 test "x$ac_build_alias" = x &&
3402 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3403 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3408 $as_echo "$ac_cv_build" >&6; }
3409 case $ac_cv_build in
3410 *-*-*) ;;
3411 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3412 esac
3413 build=$ac_cv_build
3414 ac_save_IFS=$IFS; IFS='-'
3415 set x $ac_cv_build
3416 shift
3417 build_cpu=$1
3418 build_vendor=$2
3419 shift; shift
3420 # Remember, the first character of IFS is used to create $*,
3421 # except with old shells:
3422 build_os=$*
3423 IFS=$ac_save_IFS
3424 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3428 $as_echo_n "checking host system type... " >&6; }
3429 if ${ac_cv_host+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 if test "x$host_alias" = x; then
3433 ac_cv_host=$ac_cv_build
3434 else
3435 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3436 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3441 $as_echo "$ac_cv_host" >&6; }
3442 case $ac_cv_host in
3443 *-*-*) ;;
3444 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3445 esac
3446 host=$ac_cv_host
3447 ac_save_IFS=$IFS; IFS='-'
3448 set x $ac_cv_host
3449 shift
3450 host_cpu=$1
3451 host_vendor=$2
3452 shift; shift
3453 # Remember, the first character of IFS is used to create $*,
3454 # except with old shells:
3455 host_os=$*
3456 IFS=$ac_save_IFS
3457 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3461 $as_echo_n "checking target system type... " >&6; }
3462 if ${ac_cv_target+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 if test "x$target_alias" = x; then
3466 ac_cv_target=$ac_cv_host
3467 else
3468 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3469 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3474 $as_echo "$ac_cv_target" >&6; }
3475 case $ac_cv_target in
3476 *-*-*) ;;
3477 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3478 esac
3479 target=$ac_cv_target
3480 ac_save_IFS=$IFS; IFS='-'
3481 set x $ac_cv_target
3482 shift
3483 target_cpu=$1
3484 target_vendor=$2
3485 shift; shift
3486 # Remember, the first character of IFS is used to create $*,
3487 # except with old shells:
3488 target_os=$*
3489 IFS=$ac_save_IFS
3490 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3493 # The aliases save the names the user supplied, while $host etc.
3494 # will get canonicalized.
3495 test -n "$target_alias" &&
3496 test "$program_prefix$program_suffix$program_transform_name" = \
3497 NONENONEs,x,x, &&
3498 program_prefix=${target_alias}-
3500 # Determine the noncanonical host name, for Ada.
3501 case ${build_alias} in
3502 "") build_noncanonical=${build} ;;
3503 *) build_noncanonical=${build_alias} ;;
3504 esac
3506 case ${host_alias} in
3507 "") host_noncanonical=${build_noncanonical} ;;
3508 *) host_noncanonical=${host_alias} ;;
3509 esac
3514 # Determine the noncanonical target name, for directory use.
3515 case ${target_alias} in
3516 "") target_noncanonical=${host_noncanonical} ;;
3517 *) target_noncanonical=${target_alias} ;;
3518 esac
3523 # Used for constructing correct paths for offload compilers.
3524 real_target_noncanonical=${target_noncanonical}
3525 accel_dir_suffix=
3527 # Determine the target- and build-specific subdirectories
3529 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3530 # have matching libraries, they should use host libraries: Makefile.tpl
3531 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3532 # However, they still use the build modules, because the corresponding
3533 # host modules (e.g. bison) are only built for the host when bootstrap
3534 # finishes. So:
3535 # - build_subdir is where we find build modules, and never changes.
3536 # - build_libsubdir is where we find build libraries, and can be overridden.
3538 # Prefix 'build-' so this never conflicts with target_subdir.
3539 build_subdir="build-${build_noncanonical}"
3541 # Check whether --with-build-libsubdir was given.
3542 if test "${with_build_libsubdir+set}" = set; then :
3543 withval=$with_build_libsubdir; build_libsubdir="$withval"
3544 else
3545 build_libsubdir="$build_subdir"
3548 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3549 if ( test $srcdir = . && test -d gcc ) \
3550 || test -d $srcdir/../host-${host_noncanonical}; then
3551 host_subdir="host-${host_noncanonical}"
3552 else
3553 host_subdir=.
3555 # No prefix.
3556 target_subdir=${target_noncanonical}
3559 # Set program_transform_name
3560 test "$program_prefix" != NONE &&
3561 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3562 # Use a double $ so make ignores it.
3563 test "$program_suffix" != NONE &&
3564 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3565 # Double any \ or $.
3566 # By default was `s,x,x', remove it if useless.
3567 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3568 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3571 # Check for bogus environment variables.
3572 # Test if LIBRARY_PATH contains the notation for the current directory
3573 # since this would lead to problems installing/building glibc.
3574 # LIBRARY_PATH contains the current directory if one of the following
3575 # is true:
3576 # - one of the terminals (":" and ";") is the first or last sign
3577 # - two terminals occur directly after each other
3578 # - the path contains an element with a dot in it
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3580 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3581 case ${LIBRARY_PATH} in
3582 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3583 library_path_setting="contains current directory"
3586 library_path_setting="ok"
3588 esac
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3590 $as_echo "$library_path_setting" >&6; }
3591 if test "$library_path_setting" != "ok"; then
3592 as_fn_error $? "
3593 *** LIBRARY_PATH shouldn't contain the current directory when
3594 *** building gcc. Please change the environment variable
3595 *** and run configure again." "$LINENO" 5
3598 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3599 # since this would lead to problems installing/building glibc.
3600 # GCC_EXEC_PREFIX contains the current directory if one of the following
3601 # is true:
3602 # - one of the terminals (":" and ";") is the first or last sign
3603 # - two terminals occur directly after each other
3604 # - the path contains an element with a dot in it
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3606 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3607 case ${GCC_EXEC_PREFIX} in
3608 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3609 gcc_exec_prefix_setting="contains current directory"
3612 gcc_exec_prefix_setting="ok"
3614 esac
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3616 $as_echo "$gcc_exec_prefix_setting" >&6; }
3617 if test "$gcc_exec_prefix_setting" != "ok"; then
3618 as_fn_error $? "
3619 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3620 *** building gcc. Please change the environment variable
3621 *** and run configure again." "$LINENO" 5
3624 # -----------
3625 # Directories
3626 # -----------
3628 # Specify the local prefix
3629 local_prefix=
3631 # Check whether --with-local-prefix was given.
3632 if test "${with_local_prefix+set}" = set; then :
3633 withval=$with_local_prefix; case "${withval}" in
3634 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3635 no) ;;
3636 *) local_prefix=$with_local_prefix ;;
3637 esac
3641 # Default local prefix if it is empty
3642 if test x$local_prefix = x; then
3643 local_prefix=/usr/local
3647 # Check whether --with-native-system-header-dir was given.
3648 if test "${with_native_system_header_dir+set}" = set; then :
3649 withval=$with_native_system_header_dir;
3650 case ${with_native_system_header_dir} in
3651 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3652 /* | [A-Za-z]:[\\/]*) ;;
3653 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3654 esac
3655 configured_native_system_header_dir="${withval}"
3657 else
3658 configured_native_system_header_dir=
3663 # Check whether --with-build-sysroot was given.
3664 if test "${with_build_sysroot+set}" = set; then :
3665 withval=$with_build_sysroot; if test x"$withval" != x ; then
3666 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3668 else
3669 SYSROOT_CFLAGS_FOR_TARGET=
3674 if test "x$prefix" = xNONE; then
3675 test_prefix=/usr/local
3676 else
3677 test_prefix=$prefix
3679 if test "x$exec_prefix" = xNONE; then
3680 test_exec_prefix=$test_prefix
3681 else
3682 test_exec_prefix=$exec_prefix
3686 # Check whether --with-sysroot was given.
3687 if test "${with_sysroot+set}" = set; then :
3688 withval=$with_sysroot;
3689 case ${with_sysroot} in
3690 /) ;;
3691 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3692 esac
3693 case ${with_sysroot} in
3694 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3695 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3696 esac
3698 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3699 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3701 case ${TARGET_SYSTEM_ROOT} in
3702 "${test_prefix}"|"${test_prefix}/"*|\
3703 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3704 '${prefix}'|'${prefix}/'*|\
3705 '${exec_prefix}'|'${exec_prefix}/'*)
3706 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3707 TARGET_SYSTEM_ROOT_DEFINE="$t"
3709 esac
3711 else
3713 TARGET_SYSTEM_ROOT=
3714 TARGET_SYSTEM_ROOT_DEFINE=
3715 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3723 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3724 # passed in by the toplevel make and thus we'd get different behavior
3725 # depending on where we built the sources.
3726 gcc_gxx_include_dir=
3727 # Specify the g++ header file directory
3729 # Check whether --with-gxx-include-dir was given.
3730 if test "${with_gxx_include_dir+set}" = set; then :
3731 withval=$with_gxx_include_dir; case "${withval}" in
3732 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3733 no) ;;
3734 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3735 esac
3739 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3740 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3741 # relative to the sysroot.
3742 gcc_gxx_include_dir_add_sysroot=0
3744 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3745 if test x${gcc_gxx_include_dir} = x; then
3746 if test x${enable_version_specific_runtime_libs} = xyes; then
3747 gcc_gxx_include_dir='${libsubdir}/include/c++'
3748 else
3749 libstdcxx_incdir='include/c++/$(version)'
3750 if test x$host != x$target; then
3751 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3753 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3755 elif test "${with_sysroot+set}" = set; then
3756 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3757 if test "${gcc_gxx_without_sysroot}"; then
3758 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3759 gcc_gxx_include_dir_add_sysroot=1
3763 # Configuration for an alternate set of C++ headers.
3764 gcc_gxx_libcxx_include_dir=
3765 # Specify the alternate g++ header file directory
3767 # Check whether --with-gxx-libcxx-include-dir was given.
3768 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3769 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3770 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3771 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3772 esac
3776 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3777 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3778 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3779 # based on the platform (to be available on platform versions where it is the
3780 # default for the system tools). We also use a default path within the compiler
3781 # install tree.
3782 # Otherwise, we use the path provided and enable the stdlib option.
3783 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3784 # check to see if the latter starts with the former and, upon success, compute
3785 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3786 gcc_gxx_libcxx_include_dir_add_sysroot=0
3787 gcc_enable_stdlib_opt=0
3788 if test x${gcc_gxx_libcxx_include_dir} != x; then
3789 if test x${gcc_gxx_libcxx_include_dir} = xno; then
3790 # set defaults for the dir, but the option is disabled anyway.
3791 gcc_gxx_libcxx_include_dir=
3792 else
3793 gcc_enable_stdlib_opt=1
3795 else
3796 case $target in
3797 *-darwin1[1-9]* | *-darwin2*)
3798 # Default this on for Darwin versions which default to libcxx,
3799 # and embed the path in the compiler install so that we get a
3800 # self-contained toolchain.
3801 gcc_enable_stdlib_opt=1
3803 *) ;;
3804 esac
3807 cat >>confdefs.h <<_ACEOF
3808 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3809 _ACEOF
3812 # Sysroot behaviour as for gxx-include-dir
3813 if test x${gcc_gxx_libcxx_include_dir} = x; then
3814 # default path,embedded in the compiler tree.
3815 libcxx_incdir='include/c++/v1'
3816 if test x${enable_version_specific_runtime_libs} = xyes; then
3817 gcc_gxx_libcxx_include_dir='${libsubdir}/$libcxx_incdir'
3818 else
3819 if test x$host != x$target; then
3820 libcxx_incdir="$target_alias/$libcxx_incdir"
3822 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3824 elif test "${with_sysroot+set}" = set; then
3825 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3826 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3827 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3828 gcc_gxx_libcxx_include_dir_add_sysroot=1
3833 # Check whether --with-cpp_install_dir was given.
3834 if test "${with_cpp_install_dir+set}" = set; then :
3835 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3836 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3837 elif test x$withval != xno; then
3838 cpp_install_dir=$withval
3843 # We would like to our source tree to be readonly. However when releases or
3844 # pre-releases are generated, the flex/bison generated files as well as the
3845 # various formats of manuals need to be included along with the rest of the
3846 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3847 # just that.
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3850 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3851 # Check whether --enable-generated-files-in-srcdir was given.
3852 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3853 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3854 else
3855 generated_files_in_srcdir=no
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3860 $as_echo "$generated_files_in_srcdir" >&6; }
3862 if test "$generated_files_in_srcdir" = "yes"; then
3863 GENINSRC=''
3864 else
3865 GENINSRC='#'
3869 # -------------------
3870 # Find default linker
3871 # -------------------
3873 # With GNU ld
3875 # Check whether --with-gnu-ld was given.
3876 if test "${with_gnu_ld+set}" = set; then :
3877 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3878 else
3879 gnu_ld_flag=no
3883 case $target in
3884 *darwin*)
3885 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3886 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3889 ld64_flag=no
3890 dsymutil_flag=no
3892 esac
3894 # With pre-defined ld
3896 # Check whether --with-ld was given.
3897 if test "${with_ld+set}" = set; then :
3898 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3901 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3902 if test ! -x "$DEFAULT_LINKER"; then
3903 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3904 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3905 gnu_ld_flag=yes
3906 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3907 ld64_flag=yes
3910 cat >>confdefs.h <<_ACEOF
3911 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3912 _ACEOF
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3917 $as_echo_n "checking whether a default linker was specified... " >&6; }
3918 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3919 if test x"$gnu_ld_flag" = x"no"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3921 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3924 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3926 else
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3931 # With demangler in GNU ld
3933 # Check whether --with-demangler-in-ld was given.
3934 if test "${with_demangler_in_ld+set}" = set; then :
3935 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3936 else
3937 demangler_in_ld=yes
3941 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3943 # Check whether --with-dsymutil was given.
3944 if test "${with_dsymutil+set}" = set; then :
3945 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3949 dsymutil_vers=
3950 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3951 if test ! -x "$DEFAULT_DSYMUTIL"; then
3952 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3953 else
3954 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3955 dsymutil_flag=yes
3959 cat >>confdefs.h <<_ACEOF
3960 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3961 _ACEOF
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3966 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3967 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3969 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3970 else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3975 # ----------------------
3976 # Find default assembler
3977 # ----------------------
3979 # With GNU as
3981 # Check whether --with-gnu-as was given.
3982 if test "${with_gnu_as+set}" = set; then :
3983 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3984 else
3985 gas_flag=no
3990 # Check whether --with-as was given.
3991 if test "${with_as+set}" = set; then :
3992 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3995 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3996 if test ! -x "$DEFAULT_ASSEMBLER"; then
3997 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3998 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3999 gas_flag=yes
4002 cat >>confdefs.h <<_ACEOF
4003 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4004 _ACEOF
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4009 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4010 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4011 if test x"$gas_flag" = x"no"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4013 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4016 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4018 else
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4023 # ---------------
4024 # Find C compiler
4025 # ---------------
4027 # If a non-executable a.out is present (e.g. created by GNU as above even if
4028 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4029 # file, even when creating an executable, so an execution test fails.
4030 # Remove possible default executable files to avoid this.
4032 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4033 # Autoconf includes it.
4034 rm -f a.out a.exe b.out
4036 # Find the native compiler
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 if test -n "$ac_tool_prefix"; then
4043 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4044 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if ${ac_cv_prog_CC+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 if test -n "$CC"; then
4051 ac_cv_prog_CC="$CC" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4064 done
4065 done
4066 IFS=$as_save_IFS
4070 CC=$ac_cv_prog_CC
4071 if test -n "$CC"; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4073 $as_echo "$CC" >&6; }
4074 else
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4081 if test -z "$ac_cv_prog_CC"; then
4082 ac_ct_CC=$CC
4083 # Extract the first word of "gcc", so it can be a program name with args.
4084 set dummy gcc; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -n "$ac_ct_CC"; then
4091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_ac_ct_CC="gcc"
4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4104 done
4105 done
4106 IFS=$as_save_IFS
4110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4111 if test -n "$ac_ct_CC"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4113 $as_echo "$ac_ct_CC" >&6; }
4114 else
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4119 if test "x$ac_ct_CC" = x; then
4120 CC=""
4121 else
4122 case $cross_compiling:$ac_tool_warned in
4123 yes:)
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4126 ac_tool_warned=yes ;;
4127 esac
4128 CC=$ac_ct_CC
4130 else
4131 CC="$ac_cv_prog_CC"
4134 if test -z "$CC"; then
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4137 set dummy ${ac_tool_prefix}cc; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if ${ac_cv_prog_CC+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if test -n "$CC"; then
4144 ac_cv_prog_CC="$CC" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_CC="${ac_tool_prefix}cc"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4157 done
4158 done
4159 IFS=$as_save_IFS
4163 CC=$ac_cv_prog_CC
4164 if test -n "$CC"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4166 $as_echo "$CC" >&6; }
4167 else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4175 if test -z "$CC"; then
4176 # Extract the first word of "cc", so it can be a program name with args.
4177 set dummy cc; ac_word=$2
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 $as_echo_n "checking for $ac_word... " >&6; }
4180 if ${ac_cv_prog_CC+:} false; then :
4181 $as_echo_n "(cached) " >&6
4182 else
4183 if test -n "$CC"; then
4184 ac_cv_prog_CC="$CC" # Let the user override the test.
4185 else
4186 ac_prog_rejected=no
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4195 ac_prog_rejected=yes
4196 continue
4198 ac_cv_prog_CC="cc"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4202 done
4203 done
4204 IFS=$as_save_IFS
4206 if test $ac_prog_rejected = yes; then
4207 # We found a bogon in the path, so make sure we never use it.
4208 set dummy $ac_cv_prog_CC
4209 shift
4210 if test $# != 0; then
4211 # We chose a different compiler from the bogus one.
4212 # However, it has the same basename, so the bogon will be chosen
4213 # first if we set CC to just the basename; use the full file name.
4214 shift
4215 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4220 CC=$ac_cv_prog_CC
4221 if test -n "$CC"; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4223 $as_echo "$CC" >&6; }
4224 else
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4231 if test -z "$CC"; then
4232 if test -n "$ac_tool_prefix"; then
4233 for ac_prog in cl.exe
4235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if ${ac_cv_prog_CC+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 if test -n "$CC"; then
4243 ac_cv_prog_CC="$CC" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4256 done
4257 done
4258 IFS=$as_save_IFS
4262 CC=$ac_cv_prog_CC
4263 if test -n "$CC"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4265 $as_echo "$CC" >&6; }
4266 else
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4272 test -n "$CC" && break
4273 done
4275 if test -z "$CC"; then
4276 ac_ct_CC=$CC
4277 for ac_prog in cl.exe
4279 # Extract the first word of "$ac_prog", so it can be a program name with args.
4280 set dummy $ac_prog; ac_word=$2
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4282 $as_echo_n "checking for $ac_word... " >&6; }
4283 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 if test -n "$ac_ct_CC"; then
4287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4288 else
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4296 ac_cv_prog_ac_ct_CC="$ac_prog"
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4300 done
4301 done
4302 IFS=$as_save_IFS
4306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4307 if test -n "$ac_ct_CC"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4309 $as_echo "$ac_ct_CC" >&6; }
4310 else
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4316 test -n "$ac_ct_CC" && break
4317 done
4319 if test "x$ac_ct_CC" = x; then
4320 CC=""
4321 else
4322 case $cross_compiling:$ac_tool_warned in
4323 yes:)
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4326 ac_tool_warned=yes ;;
4327 esac
4328 CC=$ac_ct_CC
4335 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337 as_fn_error $? "no acceptable C compiler found in \$PATH
4338 See \`config.log' for more details" "$LINENO" 5; }
4340 # Provide some information about the compiler.
4341 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4342 set X $ac_compile
4343 ac_compiler=$2
4344 for ac_option in --version -v -V -qversion; do
4345 { { ac_try="$ac_compiler $ac_option >&5"
4346 case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4351 $as_echo "$ac_try_echo"; } >&5
4352 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4353 ac_status=$?
4354 if test -s conftest.err; then
4355 sed '10a\
4356 ... rest of stderr output deleted ...
4357 10q' conftest.err >conftest.er1
4358 cat conftest.er1 >&5
4360 rm -f conftest.er1 conftest.err
4361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4362 test $ac_status = 0; }
4363 done
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4369 main ()
4373 return 0;
4375 _ACEOF
4376 ac_clean_files_save=$ac_clean_files
4377 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4378 # Try to create an executable without -o first, disregard a.out.
4379 # It will help us diagnose broken compilers, and finding out an intuition
4380 # of exeext.
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4382 $as_echo_n "checking whether the C compiler works... " >&6; }
4383 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4385 # The possible output files:
4386 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4388 ac_rmfiles=
4389 for ac_file in $ac_files
4391 case $ac_file in
4392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4393 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4394 esac
4395 done
4396 rm -f $ac_rmfiles
4398 if { { ac_try="$ac_link_default"
4399 case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 $as_echo "$ac_try_echo"; } >&5
4405 (eval "$ac_link_default") 2>&5
4406 ac_status=$?
4407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408 test $ac_status = 0; }; then :
4409 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4410 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4411 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4412 # so that the user can short-circuit this test for compilers unknown to
4413 # Autoconf.
4414 for ac_file in $ac_files ''
4416 test -f "$ac_file" || continue
4417 case $ac_file in
4418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4420 [ab].out )
4421 # We found the default executable, but exeext='' is most
4422 # certainly right.
4423 break;;
4424 *.* )
4425 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4426 then :; else
4427 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4429 # We set ac_cv_exeext here because the later test for it is not
4430 # safe: cross compilers may not add the suffix if given an `-o'
4431 # argument, so we may need to know it at that point already.
4432 # Even if this section looks crufty: it has the advantage of
4433 # actually working.
4434 break;;
4436 break;;
4437 esac
4438 done
4439 test "$ac_cv_exeext" = no && ac_cv_exeext=
4441 else
4442 ac_file=''
4444 if test -z "$ac_file"; then :
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4447 $as_echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4452 as_fn_error 77 "C compiler cannot create executables
4453 See \`config.log' for more details" "$LINENO" 5; }
4454 else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4456 $as_echo "yes" >&6; }
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4459 $as_echo_n "checking for C compiler default output file name... " >&6; }
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4461 $as_echo "$ac_file" >&6; }
4462 ac_exeext=$ac_cv_exeext
4464 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4465 ac_clean_files=$ac_clean_files_save
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4467 $as_echo_n "checking for suffix of executables... " >&6; }
4468 if { { ac_try="$ac_link"
4469 case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4474 $as_echo "$ac_try_echo"; } >&5
4475 (eval "$ac_link") 2>&5
4476 ac_status=$?
4477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4478 test $ac_status = 0; }; then :
4479 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4480 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4481 # work properly (i.e., refer to `conftest.exe'), while it won't with
4482 # `rm'.
4483 for ac_file in conftest.exe conftest conftest.*; do
4484 test -f "$ac_file" || continue
4485 case $ac_file in
4486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4487 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4488 break;;
4489 * ) break;;
4490 esac
4491 done
4492 else
4493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4496 See \`config.log' for more details" "$LINENO" 5; }
4498 rm -f conftest conftest$ac_cv_exeext
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4500 $as_echo "$ac_cv_exeext" >&6; }
4502 rm -f conftest.$ac_ext
4503 EXEEXT=$ac_cv_exeext
4504 ac_exeext=$EXEEXT
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #include <stdio.h>
4509 main ()
4511 FILE *f = fopen ("conftest.out", "w");
4512 return ferror (f) || fclose (f) != 0;
4515 return 0;
4517 _ACEOF
4518 ac_clean_files="$ac_clean_files conftest.out"
4519 # Check that the compiler produces executables we can run. If not, either
4520 # the compiler is broken, or we cross compile.
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4522 $as_echo_n "checking whether we are cross compiling... " >&6; }
4523 if test "$cross_compiling" != yes; then
4524 { { ac_try="$ac_link"
4525 case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528 esac
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_link") 2>&5
4532 ac_status=$?
4533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534 test $ac_status = 0; }
4535 if { ac_try='./conftest$ac_cv_exeext'
4536 { { case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539 esac
4540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541 $as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_try") 2>&5
4543 ac_status=$?
4544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545 test $ac_status = 0; }; }; then
4546 cross_compiling=no
4547 else
4548 if test "$cross_compiling" = maybe; then
4549 cross_compiling=yes
4550 else
4551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553 as_fn_error $? "cannot run C compiled programs.
4554 If you meant to cross compile, use \`--host'.
4555 See \`config.log' for more details" "$LINENO" 5; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4560 $as_echo "$cross_compiling" >&6; }
4562 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4563 ac_clean_files=$ac_clean_files_save
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4565 $as_echo_n "checking for suffix of object files... " >&6; }
4566 if ${ac_cv_objext+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4573 main ()
4577 return 0;
4579 _ACEOF
4580 rm -f conftest.o conftest.obj
4581 if { { ac_try="$ac_compile"
4582 case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585 esac
4586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4587 $as_echo "$ac_try_echo"; } >&5
4588 (eval "$ac_compile") 2>&5
4589 ac_status=$?
4590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4591 test $ac_status = 0; }; then :
4592 for ac_file in conftest.o conftest.obj conftest.*; do
4593 test -f "$ac_file" || continue;
4594 case $ac_file in
4595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4597 break;;
4598 esac
4599 done
4600 else
4601 $as_echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4606 as_fn_error $? "cannot compute suffix of object files: cannot compile
4607 See \`config.log' for more details" "$LINENO" 5; }
4609 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4612 $as_echo "$ac_cv_objext" >&6; }
4613 OBJEXT=$ac_cv_objext
4614 ac_objext=$OBJEXT
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4616 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4617 if ${ac_cv_c_compiler_gnu+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4624 main ()
4626 #ifndef __GNUC__
4627 choke me
4628 #endif
4631 return 0;
4633 _ACEOF
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635 ac_compiler_gnu=yes
4636 else
4637 ac_compiler_gnu=no
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4644 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4645 if test $ac_compiler_gnu = yes; then
4646 GCC=yes
4647 else
4648 GCC=
4650 ac_test_CFLAGS=${CFLAGS+set}
4651 ac_save_CFLAGS=$CFLAGS
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4653 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4654 if ${ac_cv_prog_cc_g+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 ac_save_c_werror_flag=$ac_c_werror_flag
4658 ac_c_werror_flag=yes
4659 ac_cv_prog_cc_g=no
4660 CFLAGS="-g"
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4665 main ()
4669 return 0;
4671 _ACEOF
4672 if ac_fn_c_try_compile "$LINENO"; then :
4673 ac_cv_prog_cc_g=yes
4674 else
4675 CFLAGS=""
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4680 main ()
4684 return 0;
4686 _ACEOF
4687 if ac_fn_c_try_compile "$LINENO"; then :
4689 else
4690 ac_c_werror_flag=$ac_save_c_werror_flag
4691 CFLAGS="-g"
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4696 main ()
4700 return 0;
4702 _ACEOF
4703 if ac_fn_c_try_compile "$LINENO"; then :
4704 ac_cv_prog_cc_g=yes
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 ac_c_werror_flag=$ac_save_c_werror_flag
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4714 $as_echo "$ac_cv_prog_cc_g" >&6; }
4715 if test "$ac_test_CFLAGS" = set; then
4716 CFLAGS=$ac_save_CFLAGS
4717 elif test $ac_cv_prog_cc_g = yes; then
4718 if test "$GCC" = yes; then
4719 CFLAGS="-g -O2"
4720 else
4721 CFLAGS="-g"
4723 else
4724 if test "$GCC" = yes; then
4725 CFLAGS="-O2"
4726 else
4727 CFLAGS=
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4731 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4732 if ${ac_cv_prog_cc_c89+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 ac_cv_prog_cc_c89=no
4736 ac_save_CC=$CC
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739 #include <stdarg.h>
4740 #include <stdio.h>
4741 struct stat;
4742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4743 struct buf { int x; };
4744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4745 static char *e (p, i)
4746 char **p;
4747 int i;
4749 return p[i];
4751 static char *f (char * (*g) (char **, int), char **p, ...)
4753 char *s;
4754 va_list v;
4755 va_start (v,p);
4756 s = g (p, va_arg (v,int));
4757 va_end (v);
4758 return s;
4761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4762 function prototypes and stuff, but not '\xHH' hex character constants.
4763 These don't provoke an error unfortunately, instead are silently treated
4764 as 'x'. The following induces an error, until -std is added to get
4765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4766 array size at least. It's necessary to write '\x00'==0 to get something
4767 that's true only with -std. */
4768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4771 inside strings and character constants. */
4772 #define FOO(x) 'x'
4773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4775 int test (int i, double x);
4776 struct s1 {int (*f) (int a);};
4777 struct s2 {int (*f) (double a);};
4778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4779 int argc;
4780 char **argv;
4782 main ()
4784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4786 return 0;
4788 _ACEOF
4789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4792 CC="$ac_save_CC $ac_arg"
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794 ac_cv_prog_cc_c89=$ac_arg
4796 rm -f core conftest.err conftest.$ac_objext
4797 test "x$ac_cv_prog_cc_c89" != "xno" && break
4798 done
4799 rm -f conftest.$ac_ext
4800 CC=$ac_save_CC
4803 # AC_CACHE_VAL
4804 case "x$ac_cv_prog_cc_c89" in
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4807 $as_echo "none needed" >&6; } ;;
4808 xno)
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4810 $as_echo "unsupported" >&6; } ;;
4812 CC="$CC $ac_cv_prog_cc_c89"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4814 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4815 esac
4816 if test "x$ac_cv_prog_cc_c89" != xno; then :
4820 ac_ext=c
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826 ac_ext=cpp
4827 ac_cpp='$CXXCPP $CPPFLAGS'
4828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4831 if test -z "$CXX"; then
4832 if test -n "$CCC"; then
4833 CXX=$CCC
4834 else
4835 if test -n "$ac_tool_prefix"; then
4836 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_prog_CXX+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -n "$CXX"; then
4846 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4855 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4859 done
4860 done
4861 IFS=$as_save_IFS
4865 CXX=$ac_cv_prog_CXX
4866 if test -n "$CXX"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4868 $as_echo "$CXX" >&6; }
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4875 test -n "$CXX" && break
4876 done
4878 if test -z "$CXX"; then
4879 ac_ct_CXX=$CXX
4880 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4882 # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy $ac_prog; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$ac_ct_CXX"; then
4890 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_ac_ct_CXX="$ac_prog"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4905 IFS=$as_save_IFS
4909 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4910 if test -n "$ac_ct_CXX"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4912 $as_echo "$ac_ct_CXX" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4919 test -n "$ac_ct_CXX" && break
4920 done
4922 if test "x$ac_ct_CXX" = x; then
4923 CXX="g++"
4924 else
4925 case $cross_compiling:$ac_tool_warned in
4926 yes:)
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4929 ac_tool_warned=yes ;;
4930 esac
4931 CXX=$ac_ct_CXX
4937 # Provide some information about the compiler.
4938 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4939 set X $ac_compile
4940 ac_compiler=$2
4941 for ac_option in --version -v -V -qversion; do
4942 { { ac_try="$ac_compiler $ac_option >&5"
4943 case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946 esac
4947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4948 $as_echo "$ac_try_echo"; } >&5
4949 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4950 ac_status=$?
4951 if test -s conftest.err; then
4952 sed '10a\
4953 ... rest of stderr output deleted ...
4954 10q' conftest.err >conftest.er1
4955 cat conftest.er1 >&5
4957 rm -f conftest.er1 conftest.err
4958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4959 test $ac_status = 0; }
4960 done
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4963 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4964 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4971 main ()
4973 #ifndef __GNUC__
4974 choke me
4975 #endif
4978 return 0;
4980 _ACEOF
4981 if ac_fn_cxx_try_compile "$LINENO"; then :
4982 ac_compiler_gnu=yes
4983 else
4984 ac_compiler_gnu=no
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4991 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4992 if test $ac_compiler_gnu = yes; then
4993 GXX=yes
4994 else
4995 GXX=
4997 ac_test_CXXFLAGS=${CXXFLAGS+set}
4998 ac_save_CXXFLAGS=$CXXFLAGS
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5000 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5001 if ${ac_cv_prog_cxx_g+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5005 ac_cxx_werror_flag=yes
5006 ac_cv_prog_cxx_g=no
5007 CXXFLAGS="-g"
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5012 main ()
5016 return 0;
5018 _ACEOF
5019 if ac_fn_cxx_try_compile "$LINENO"; then :
5020 ac_cv_prog_cxx_g=yes
5021 else
5022 CXXFLAGS=""
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5027 main ()
5031 return 0;
5033 _ACEOF
5034 if ac_fn_cxx_try_compile "$LINENO"; then :
5036 else
5037 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5038 CXXFLAGS="-g"
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5043 main ()
5047 return 0;
5049 _ACEOF
5050 if ac_fn_cxx_try_compile "$LINENO"; then :
5051 ac_cv_prog_cxx_g=yes
5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5061 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5062 if test "$ac_test_CXXFLAGS" = set; then
5063 CXXFLAGS=$ac_save_CXXFLAGS
5064 elif test $ac_cv_prog_cxx_g = yes; then
5065 if test "$GXX" = yes; then
5066 CXXFLAGS="-g -O2"
5067 else
5068 CXXFLAGS="-g"
5070 else
5071 if test "$GXX" = yes; then
5072 CXXFLAGS="-O2"
5073 else
5074 CXXFLAGS=
5077 ac_ext=c
5078 ac_cpp='$CPP $CPPFLAGS'
5079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086 if test -n "$ac_tool_prefix"; then
5087 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5088 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_GNATBIND+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$GNATBIND"; then
5095 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5108 done
5109 done
5110 IFS=$as_save_IFS
5114 GNATBIND=$ac_cv_prog_GNATBIND
5115 if test -n "$GNATBIND"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5117 $as_echo "$GNATBIND" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5125 if test -z "$ac_cv_prog_GNATBIND"; then
5126 ac_ct_GNATBIND=$GNATBIND
5127 # Extract the first word of "gnatbind", so it can be a program name with args.
5128 set dummy gnatbind; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$ac_ct_GNATBIND"; then
5135 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5150 IFS=$as_save_IFS
5154 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5155 if test -n "$ac_ct_GNATBIND"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5157 $as_echo "$ac_ct_GNATBIND" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5163 if test "x$ac_ct_GNATBIND" = x; then
5164 GNATBIND="no"
5165 else
5166 case $cross_compiling:$ac_tool_warned in
5167 yes:)
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170 ac_tool_warned=yes ;;
5171 esac
5172 GNATBIND=$ac_ct_GNATBIND
5174 else
5175 GNATBIND="$ac_cv_prog_GNATBIND"
5178 if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5180 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_GNATMAKE+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test -n "$GNATMAKE"; then
5187 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5202 IFS=$as_save_IFS
5206 GNATMAKE=$ac_cv_prog_GNATMAKE
5207 if test -n "$GNATMAKE"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5209 $as_echo "$GNATMAKE" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5217 if test -z "$ac_cv_prog_GNATMAKE"; then
5218 ac_ct_GNATMAKE=$GNATMAKE
5219 # Extract the first word of "gnatmake", so it can be a program name with args.
5220 set dummy gnatmake; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 if test -n "$ac_ct_GNATMAKE"; then
5227 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5240 done
5241 done
5242 IFS=$as_save_IFS
5246 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5247 if test -n "$ac_ct_GNATMAKE"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5249 $as_echo "$ac_ct_GNATMAKE" >&6; }
5250 else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5255 if test "x$ac_ct_GNATMAKE" = x; then
5256 GNATMAKE="no"
5257 else
5258 case $cross_compiling:$ac_tool_warned in
5259 yes:)
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262 ac_tool_warned=yes ;;
5263 esac
5264 GNATMAKE=$ac_ct_GNATMAKE
5266 else
5267 GNATMAKE="$ac_cv_prog_GNATMAKE"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5271 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5272 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 cat >conftest.adb <<EOF
5276 pragma Warnings (Off);
5277 with System.CRTL;
5278 pragma Warnings (On);
5279 use type System.CRTL.int64;
5280 procedure conftest is begin null; end conftest;
5282 acx_cv_cc_gcc_supports_ada=no
5283 # There is a bug in old released versions of GCC which causes the
5284 # driver to exit successfully when the appropriate language module
5285 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5286 # Therefore we must check for the error message as well as an
5287 # unsuccessful exit.
5288 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5289 # given a .adb file, but produce no object file. So we must check
5290 # if an object file was really produced to guard against this.
5291 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5292 if test x"$errors" = x && test -f conftest.$ac_objext; then
5293 acx_cv_cc_gcc_supports_ada=yes
5295 rm -f conftest.*
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5298 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5300 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5301 have_gnat=yes
5302 else
5303 have_gnat=no
5308 if test -n "$ac_tool_prefix"; then
5309 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5310 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if ${ac_cv_prog_GDC+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if test -n "$GDC"; then
5317 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5330 done
5331 done
5332 IFS=$as_save_IFS
5336 GDC=$ac_cv_prog_GDC
5337 if test -n "$GDC"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5339 $as_echo "$GDC" >&6; }
5340 else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5347 if test -z "$ac_cv_prog_GDC"; then
5348 ac_ct_GDC=$GDC
5349 # Extract the first word of "gdc", so it can be a program name with args.
5350 set dummy gdc; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$ac_ct_GDC"; then
5357 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_ac_ct_GDC="gdc"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5376 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5377 if test -n "$ac_ct_GDC"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5379 $as_echo "$ac_ct_GDC" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5385 if test "x$ac_ct_GDC" = x; then
5386 GDC="no"
5387 else
5388 case $cross_compiling:$ac_tool_warned in
5389 yes:)
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5392 ac_tool_warned=yes ;;
5393 esac
5394 GDC=$ac_ct_GDC
5396 else
5397 GDC="$ac_cv_prog_GDC"
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5401 $as_echo_n "checking whether the D compiler works... " >&6; }
5402 if ${acx_cv_d_compiler_works+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 cat >conftest.d <<EOF
5406 module conftest; int main() { return 0; }
5408 acx_cv_d_compiler_works=no
5409 if test "x$GDC" != xno; then
5410 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5411 if test x"$errors" = x && test -f conftest.$ac_objext; then
5412 acx_cv_d_compiler_works=yes
5414 rm -f conftest.*
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5418 $as_echo "$acx_cv_d_compiler_works" >&6; }
5419 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5420 have_gdc=yes
5421 else
5422 have_gdc=no
5426 # Do configure tests with the C++ compiler, since that's what we build with.
5427 ac_ext=cpp
5428 ac_cpp='$CXXCPP $CPPFLAGS'
5429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5434 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5435 # optimizations to be activated explicitly by the toplevel.
5436 case "$CC" in
5437 */prev-gcc/xgcc*) ;;
5438 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5439 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5440 esac
5445 # Determine PICFLAG for target gnatlib.
5450 case "${target}" in
5451 # PIC is the default on some targets or must not be used.
5452 *-*-darwin*)
5453 # For darwin, common symbols are not allowed in MH_DYLIB files
5454 case "${CFLAGS}" in
5455 # If we are using a compiler supporting mdynamic-no-pic
5456 # and the option has been tested as safe to add, then cancel
5457 # it here, since the code generated is incompatible with shared
5458 # libs.
5459 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5460 *) PICFLAG_FOR_TARGET=-fno-common ;;
5461 esac
5463 alpha*-dec-osf5*)
5464 # PIC is the default.
5466 hppa*64*-*-hpux*)
5467 # PIC is the default for 64-bit PA HP-UX.
5469 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5471 i[34567]86-*-mingw* | x86_64-*-mingw*)
5473 i[34567]86-*-interix[3-9]*)
5474 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5475 # Instead, we relocate shared libraries at runtime.
5477 i[34567]86-*-nto-qnx*)
5478 # QNX uses GNU C++, but need to define -shared option too, otherwise
5479 # it will coredump.
5480 PICFLAG_FOR_TARGET='-fPIC -shared'
5482 i[34567]86-pc-msdosdjgpp*)
5483 # DJGPP does not support shared libraries at all.
5485 ia64*-*-hpux*)
5486 # On IA64 HP-UX, PIC is the default but the pic flag
5487 # sets the default TLS model and affects inlining.
5488 PICFLAG_FOR_TARGET=-fPIC
5490 loongarch*-*-*)
5491 PICFLAG_FOR_TARGET=-fpic
5493 mips-sgi-irix6*)
5494 # PIC is the default.
5496 rs6000-ibm-aix* | powerpc-ibm-aix*)
5497 # All AIX code is PIC.
5500 # Some targets support both -fPIC and -fpic, but prefer the latter.
5501 # FIXME: Why?
5502 i[34567]86-*-* | x86_64-*-*)
5503 PICFLAG_FOR_TARGET=-fpic
5505 # FIXME: Override -fPIC default in libgcc only?
5506 sh-*-linux* | sh[2346lbe]*-*-linux*)
5507 PICFLAG_FOR_TARGET=-fpic
5509 sh*-*-netbsd*)
5510 PICFLAG_FOR_TARGET=-fpic
5512 # Default to -fPIC unless specified otherwise.
5514 PICFLAG_FOR_TARGET=-fPIC
5516 esac
5518 # If the user explicitly uses -fpic/-fPIC, keep that.
5519 case "${CFLAGS_FOR_TARGET}" in
5520 *-fpic*)
5521 PICFLAG_FOR_TARGET=-fpic
5523 *-fPIC*)
5524 PICFLAG_FOR_TARGET=-fPIC
5526 esac
5530 # -------------------------
5531 # Check C compiler features
5532 # -------------------------
5535 ac_ext=cpp
5536 ac_cpp='$CXXCPP $CPPFLAGS'
5537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5541 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5542 if test -z "$CXXCPP"; then
5543 if ${ac_cv_prog_CXXCPP+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 # Double quotes because CXXCPP needs to be expanded
5547 for CXXCPP in "$CXX -E" "/lib/cpp"
5549 ac_preproc_ok=false
5550 for ac_cxx_preproc_warn_flag in '' yes
5552 # Use a header file that comes with gcc, so configuring glibc
5553 # with a fresh cross-compiler works.
5554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5555 # <limits.h> exists even on freestanding compilers.
5556 # On the NeXT, cc -E runs the code through the compiler's parser,
5557 # not just through cpp. "Syntax error" is here to catch this case.
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5560 #ifdef __STDC__
5561 # include <limits.h>
5562 #else
5563 # include <assert.h>
5564 #endif
5565 Syntax error
5566 _ACEOF
5567 if ac_fn_cxx_try_cpp "$LINENO"; then :
5569 else
5570 # Broken: fails on valid input.
5571 continue
5573 rm -f conftest.err conftest.i conftest.$ac_ext
5575 # OK, works on sane cases. Now check whether nonexistent headers
5576 # can be detected and how.
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #include <ac_nonexistent.h>
5580 _ACEOF
5581 if ac_fn_cxx_try_cpp "$LINENO"; then :
5582 # Broken: success on invalid input.
5583 continue
5584 else
5585 # Passes both tests.
5586 ac_preproc_ok=:
5587 break
5589 rm -f conftest.err conftest.i conftest.$ac_ext
5591 done
5592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593 rm -f conftest.i conftest.err conftest.$ac_ext
5594 if $ac_preproc_ok; then :
5595 break
5598 done
5599 ac_cv_prog_CXXCPP=$CXXCPP
5602 CXXCPP=$ac_cv_prog_CXXCPP
5603 else
5604 ac_cv_prog_CXXCPP=$CXXCPP
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5607 $as_echo "$CXXCPP" >&6; }
5608 ac_preproc_ok=false
5609 for ac_cxx_preproc_warn_flag in '' yes
5611 # Use a header file that comes with gcc, so configuring glibc
5612 # with a fresh cross-compiler works.
5613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5614 # <limits.h> exists even on freestanding compilers.
5615 # On the NeXT, cc -E runs the code through the compiler's parser,
5616 # not just through cpp. "Syntax error" is here to catch this case.
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #ifdef __STDC__
5620 # include <limits.h>
5621 #else
5622 # include <assert.h>
5623 #endif
5624 Syntax error
5625 _ACEOF
5626 if ac_fn_cxx_try_cpp "$LINENO"; then :
5628 else
5629 # Broken: fails on valid input.
5630 continue
5632 rm -f conftest.err conftest.i conftest.$ac_ext
5634 # OK, works on sane cases. Now check whether nonexistent headers
5635 # can be detected and how.
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <ac_nonexistent.h>
5639 _ACEOF
5640 if ac_fn_cxx_try_cpp "$LINENO"; then :
5641 # Broken: success on invalid input.
5642 continue
5643 else
5644 # Passes both tests.
5645 ac_preproc_ok=:
5646 break
5648 rm -f conftest.err conftest.i conftest.$ac_ext
5650 done
5651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5652 rm -f conftest.i conftest.err conftest.$ac_ext
5653 if $ac_preproc_ok; then :
5655 else
5656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5658 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5659 See \`config.log' for more details" "$LINENO" 5; }
5662 ac_ext=cpp
5663 ac_cpp='$CXXCPP $CPPFLAGS'
5664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5670 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5671 if ${ac_cv_path_GREP+:} false; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674 if test -z "$GREP"; then
5675 ac_path_GREP_found=false
5676 # Loop through the user's path and test for each of PROGNAME-LIST
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_prog in grep ggrep; do
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5685 as_fn_executable_p "$ac_path_GREP" || continue
5686 # Check for GNU ac_path_GREP and select it if it is found.
5687 # Check for GNU $ac_path_GREP
5688 case `"$ac_path_GREP" --version 2>&1` in
5689 *GNU*)
5690 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5692 ac_count=0
5693 $as_echo_n 0123456789 >"conftest.in"
5694 while :
5696 cat "conftest.in" "conftest.in" >"conftest.tmp"
5697 mv "conftest.tmp" "conftest.in"
5698 cp "conftest.in" "conftest.nl"
5699 $as_echo 'GREP' >> "conftest.nl"
5700 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5702 as_fn_arith $ac_count + 1 && ac_count=$as_val
5703 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5704 # Best one so far, save it but keep looking for a better one
5705 ac_cv_path_GREP="$ac_path_GREP"
5706 ac_path_GREP_max=$ac_count
5708 # 10*(2^10) chars as input seems more than enough
5709 test $ac_count -gt 10 && break
5710 done
5711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5712 esac
5714 $ac_path_GREP_found && break 3
5715 done
5716 done
5717 done
5718 IFS=$as_save_IFS
5719 if test -z "$ac_cv_path_GREP"; then
5720 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5722 else
5723 ac_cv_path_GREP=$GREP
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5728 $as_echo "$ac_cv_path_GREP" >&6; }
5729 GREP="$ac_cv_path_GREP"
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5733 $as_echo_n "checking for egrep... " >&6; }
5734 if ${ac_cv_path_EGREP+:} false; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5738 then ac_cv_path_EGREP="$GREP -E"
5739 else
5740 if test -z "$EGREP"; then
5741 ac_path_EGREP_found=false
5742 # Loop through the user's path and test for each of PROGNAME-LIST
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_prog in egrep; do
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5751 as_fn_executable_p "$ac_path_EGREP" || continue
5752 # Check for GNU ac_path_EGREP and select it if it is found.
5753 # Check for GNU $ac_path_EGREP
5754 case `"$ac_path_EGREP" --version 2>&1` in
5755 *GNU*)
5756 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5758 ac_count=0
5759 $as_echo_n 0123456789 >"conftest.in"
5760 while :
5762 cat "conftest.in" "conftest.in" >"conftest.tmp"
5763 mv "conftest.tmp" "conftest.in"
5764 cp "conftest.in" "conftest.nl"
5765 $as_echo 'EGREP' >> "conftest.nl"
5766 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5767 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5768 as_fn_arith $ac_count + 1 && ac_count=$as_val
5769 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5770 # Best one so far, save it but keep looking for a better one
5771 ac_cv_path_EGREP="$ac_path_EGREP"
5772 ac_path_EGREP_max=$ac_count
5774 # 10*(2^10) chars as input seems more than enough
5775 test $ac_count -gt 10 && break
5776 done
5777 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5778 esac
5780 $ac_path_EGREP_found && break 3
5781 done
5782 done
5783 done
5784 IFS=$as_save_IFS
5785 if test -z "$ac_cv_path_EGREP"; then
5786 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5788 else
5789 ac_cv_path_EGREP=$EGREP
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5795 $as_echo "$ac_cv_path_EGREP" >&6; }
5796 EGREP="$ac_cv_path_EGREP"
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5800 $as_echo_n "checking for ANSI C header files... " >&6; }
5801 if ${ac_cv_header_stdc+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 #include <stdlib.h>
5807 #include <stdarg.h>
5808 #include <string.h>
5809 #include <float.h>
5812 main ()
5816 return 0;
5818 _ACEOF
5819 if ac_fn_cxx_try_compile "$LINENO"; then :
5820 ac_cv_header_stdc=yes
5821 else
5822 ac_cv_header_stdc=no
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 if test $ac_cv_header_stdc = yes; then
5827 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #include <string.h>
5832 _ACEOF
5833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5834 $EGREP "memchr" >/dev/null 2>&1; then :
5836 else
5837 ac_cv_header_stdc=no
5839 rm -f conftest*
5843 if test $ac_cv_header_stdc = yes; then
5844 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847 #include <stdlib.h>
5849 _ACEOF
5850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5851 $EGREP "free" >/dev/null 2>&1; then :
5853 else
5854 ac_cv_header_stdc=no
5856 rm -f conftest*
5860 if test $ac_cv_header_stdc = yes; then
5861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5862 if test "$cross_compiling" = yes; then :
5864 else
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 #include <ctype.h>
5868 #include <stdlib.h>
5869 #if ((' ' & 0x0FF) == 0x020)
5870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5872 #else
5873 # define ISLOWER(c) \
5874 (('a' <= (c) && (c) <= 'i') \
5875 || ('j' <= (c) && (c) <= 'r') \
5876 || ('s' <= (c) && (c) <= 'z'))
5877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5878 #endif
5880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5882 main ()
5884 int i;
5885 for (i = 0; i < 256; i++)
5886 if (XOR (islower (i), ISLOWER (i))
5887 || toupper (i) != TOUPPER (i))
5888 return 2;
5889 return 0;
5891 _ACEOF
5892 if ac_fn_cxx_try_run "$LINENO"; then :
5894 else
5895 ac_cv_header_stdc=no
5897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5898 conftest.$ac_objext conftest.beam conftest.$ac_ext
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5904 $as_echo "$ac_cv_header_stdc" >&6; }
5905 if test $ac_cv_header_stdc = yes; then
5907 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5911 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5912 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5913 inttypes.h stdint.h unistd.h
5914 do :
5915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5918 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5919 cat >>confdefs.h <<_ACEOF
5920 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5921 _ACEOF
5925 done
5929 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5930 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5931 MINIX=yes
5932 else
5933 MINIX=
5937 if test "$MINIX" = yes; then
5939 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5942 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5945 $as_echo "#define _MINIX 1" >>confdefs.h
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5951 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5952 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5958 # define __EXTENSIONS__ 1
5959 $ac_includes_default
5961 main ()
5965 return 0;
5967 _ACEOF
5968 if ac_fn_cxx_try_compile "$LINENO"; then :
5969 ac_cv_safe_to_define___extensions__=yes
5970 else
5971 ac_cv_safe_to_define___extensions__=no
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5976 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5977 test $ac_cv_safe_to_define___extensions__ = yes &&
5978 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5980 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5982 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5984 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5986 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5990 ac_ext=c
5991 ac_cpp='$CPP $CPPFLAGS'
5992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5996 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5997 # On Suns, sometimes $CPP names a directory.
5998 if test -n "$CPP" && test -d "$CPP"; then
5999 CPP=
6001 if test -z "$CPP"; then
6002 if ${ac_cv_prog_CPP+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 # Double quotes because CPP needs to be expanded
6006 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6008 ac_preproc_ok=false
6009 for ac_c_preproc_warn_flag in '' yes
6011 # Use a header file that comes with gcc, so configuring glibc
6012 # with a fresh cross-compiler works.
6013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6014 # <limits.h> exists even on freestanding compilers.
6015 # On the NeXT, cc -E runs the code through the compiler's parser,
6016 # not just through cpp. "Syntax error" is here to catch this case.
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 #ifdef __STDC__
6020 # include <limits.h>
6021 #else
6022 # include <assert.h>
6023 #endif
6024 Syntax error
6025 _ACEOF
6026 if ac_fn_c_try_cpp "$LINENO"; then :
6028 else
6029 # Broken: fails on valid input.
6030 continue
6032 rm -f conftest.err conftest.i conftest.$ac_ext
6034 # OK, works on sane cases. Now check whether nonexistent headers
6035 # can be detected and how.
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #include <ac_nonexistent.h>
6039 _ACEOF
6040 if ac_fn_c_try_cpp "$LINENO"; then :
6041 # Broken: success on invalid input.
6042 continue
6043 else
6044 # Passes both tests.
6045 ac_preproc_ok=:
6046 break
6048 rm -f conftest.err conftest.i conftest.$ac_ext
6050 done
6051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6052 rm -f conftest.i conftest.err conftest.$ac_ext
6053 if $ac_preproc_ok; then :
6054 break
6057 done
6058 ac_cv_prog_CPP=$CPP
6061 CPP=$ac_cv_prog_CPP
6062 else
6063 ac_cv_prog_CPP=$CPP
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6066 $as_echo "$CPP" >&6; }
6067 ac_preproc_ok=false
6068 for ac_c_preproc_warn_flag in '' yes
6070 # Use a header file that comes with gcc, so configuring glibc
6071 # with a fresh cross-compiler works.
6072 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6073 # <limits.h> exists even on freestanding compilers.
6074 # On the NeXT, cc -E runs the code through the compiler's parser,
6075 # not just through cpp. "Syntax error" is here to catch this case.
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6078 #ifdef __STDC__
6079 # include <limits.h>
6080 #else
6081 # include <assert.h>
6082 #endif
6083 Syntax error
6084 _ACEOF
6085 if ac_fn_c_try_cpp "$LINENO"; then :
6087 else
6088 # Broken: fails on valid input.
6089 continue
6091 rm -f conftest.err conftest.i conftest.$ac_ext
6093 # OK, works on sane cases. Now check whether nonexistent headers
6094 # can be detected and how.
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6097 #include <ac_nonexistent.h>
6098 _ACEOF
6099 if ac_fn_c_try_cpp "$LINENO"; then :
6100 # Broken: success on invalid input.
6101 continue
6102 else
6103 # Passes both tests.
6104 ac_preproc_ok=:
6105 break
6107 rm -f conftest.err conftest.i conftest.$ac_ext
6109 done
6110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6111 rm -f conftest.i conftest.err conftest.$ac_ext
6112 if $ac_preproc_ok; then :
6114 else
6115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6117 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6118 See \`config.log' for more details" "$LINENO" 5; }
6121 ac_ext=cpp
6122 ac_cpp='$CXXCPP $CPPFLAGS'
6123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6128 $as_echo_n "checking for inline... " >&6; }
6129 if ${ac_cv_c_inline+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 ac_cv_c_inline=no
6133 for ac_kw in inline __inline__ __inline; do
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 #ifndef __cplusplus
6137 typedef int foo_t;
6138 static $ac_kw foo_t static_foo () {return 0; }
6139 $ac_kw foo_t foo () {return 0; }
6140 #endif
6142 _ACEOF
6143 if ac_fn_cxx_try_compile "$LINENO"; then :
6144 ac_cv_c_inline=$ac_kw
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 test "$ac_cv_c_inline" != no && break
6148 done
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6152 $as_echo "$ac_cv_c_inline" >&6; }
6154 case $ac_cv_c_inline in
6155 inline | yes) ;;
6157 case $ac_cv_c_inline in
6158 no) ac_val=;;
6159 *) ac_val=$ac_cv_c_inline;;
6160 esac
6161 cat >>confdefs.h <<_ACEOF
6162 #ifndef __cplusplus
6163 #define inline $ac_val
6164 #endif
6165 _ACEOF
6167 esac
6170 # Check whether --enable-largefile was given.
6171 if test "${enable_largefile+set}" = set; then :
6172 enableval=$enable_largefile;
6175 if test "$enable_largefile" != no; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6178 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6179 if ${ac_cv_sys_largefile_CC+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181 else
6182 ac_cv_sys_largefile_CC=no
6183 if test "$GCC" != yes; then
6184 ac_save_CC=$CC
6185 while :; do
6186 # IRIX 6.2 and later do not support large files by default,
6187 # so use the C compiler's -n32 option if that helps.
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 #include <sys/types.h>
6191 /* Check that off_t can represent 2**63 - 1 correctly.
6192 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6193 since some C++ compilers masquerading as C compilers
6194 incorrectly reject 9223372036854775807. */
6195 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6196 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6197 && LARGE_OFF_T % 2147483647 == 1)
6198 ? 1 : -1];
6200 main ()
6204 return 0;
6206 _ACEOF
6207 if ac_fn_cxx_try_compile "$LINENO"; then :
6208 break
6210 rm -f core conftest.err conftest.$ac_objext
6211 CC="$CC -n32"
6212 if ac_fn_cxx_try_compile "$LINENO"; then :
6213 ac_cv_sys_largefile_CC=' -n32'; break
6215 rm -f core conftest.err conftest.$ac_objext
6216 break
6217 done
6218 CC=$ac_save_CC
6219 rm -f conftest.$ac_ext
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6223 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6224 if test "$ac_cv_sys_largefile_CC" != no; then
6225 CC=$CC$ac_cv_sys_largefile_CC
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6229 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6230 if ${ac_cv_sys_file_offset_bits+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 while :; do
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 #include <sys/types.h>
6237 /* Check that off_t can represent 2**63 - 1 correctly.
6238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6239 since some C++ compilers masquerading as C compilers
6240 incorrectly reject 9223372036854775807. */
6241 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6243 && LARGE_OFF_T % 2147483647 == 1)
6244 ? 1 : -1];
6246 main ()
6250 return 0;
6252 _ACEOF
6253 if ac_fn_cxx_try_compile "$LINENO"; then :
6254 ac_cv_sys_file_offset_bits=no; break
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6259 #define _FILE_OFFSET_BITS 64
6260 #include <sys/types.h>
6261 /* Check that off_t can represent 2**63 - 1 correctly.
6262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6263 since some C++ compilers masquerading as C compilers
6264 incorrectly reject 9223372036854775807. */
6265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6267 && LARGE_OFF_T % 2147483647 == 1)
6268 ? 1 : -1];
6270 main ()
6274 return 0;
6276 _ACEOF
6277 if ac_fn_cxx_try_compile "$LINENO"; then :
6278 ac_cv_sys_file_offset_bits=64; break
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 ac_cv_sys_file_offset_bits=unknown
6282 break
6283 done
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6286 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6287 case $ac_cv_sys_file_offset_bits in #(
6288 no | unknown) ;;
6290 cat >>confdefs.h <<_ACEOF
6291 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6292 _ACEOF
6294 esac
6295 rm -rf conftest*
6296 if test $ac_cv_sys_file_offset_bits = unknown; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6298 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6299 if ${ac_cv_sys_large_files+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 while :; do
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 #include <sys/types.h>
6306 /* Check that off_t can represent 2**63 - 1 correctly.
6307 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6308 since some C++ compilers masquerading as C compilers
6309 incorrectly reject 9223372036854775807. */
6310 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6312 && LARGE_OFF_T % 2147483647 == 1)
6313 ? 1 : -1];
6315 main ()
6319 return 0;
6321 _ACEOF
6322 if ac_fn_cxx_try_compile "$LINENO"; then :
6323 ac_cv_sys_large_files=no; break
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 #define _LARGE_FILES 1
6329 #include <sys/types.h>
6330 /* Check that off_t can represent 2**63 - 1 correctly.
6331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6332 since some C++ compilers masquerading as C compilers
6333 incorrectly reject 9223372036854775807. */
6334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6336 && LARGE_OFF_T % 2147483647 == 1)
6337 ? 1 : -1];
6339 main ()
6343 return 0;
6345 _ACEOF
6346 if ac_fn_cxx_try_compile "$LINENO"; then :
6347 ac_cv_sys_large_files=1; break
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 ac_cv_sys_large_files=unknown
6351 break
6352 done
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6355 $as_echo "$ac_cv_sys_large_files" >&6; }
6356 case $ac_cv_sys_large_files in #(
6357 no | unknown) ;;
6359 cat >>confdefs.h <<_ACEOF
6360 #define _LARGE_FILES $ac_cv_sys_large_files
6361 _ACEOF
6363 esac
6364 rm -rf conftest*
6370 # The cast to long int works around a bug in the HP C Compiler
6371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6373 # This bug is HP SR number 8606223364.
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6375 $as_echo_n "checking size of ino_t... " >&6; }
6376 if ${ac_cv_sizeof_ino_t+:} false; then :
6377 $as_echo_n "(cached) " >&6
6378 else
6379 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6381 else
6382 if test "$ac_cv_type_ino_t" = yes; then
6383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6385 as_fn_error 77 "cannot compute sizeof (ino_t)
6386 See \`config.log' for more details" "$LINENO" 5; }
6387 else
6388 ac_cv_sizeof_ino_t=0
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6394 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6398 cat >>confdefs.h <<_ACEOF
6399 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6400 _ACEOF
6403 # The cast to long int works around a bug in the HP C Compiler
6404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6406 # This bug is HP SR number 8606223364.
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6408 $as_echo_n "checking size of dev_t... " >&6; }
6409 if ${ac_cv_sizeof_dev_t+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6414 else
6415 if test "$ac_cv_type_dev_t" = yes; then
6416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6418 as_fn_error 77 "cannot compute sizeof (dev_t)
6419 See \`config.log' for more details" "$LINENO" 5; }
6420 else
6421 ac_cv_sizeof_dev_t=0
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6427 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6431 cat >>confdefs.h <<_ACEOF
6432 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6433 _ACEOF
6437 # Select the right stat being able to handle 64bit inodes, if needed.
6438 if test "$enable_largefile" != no; then
6439 case "$host, $build" in
6440 *-*-aix*,*|*,*-*-aix*)
6441 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6443 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6445 fi;;
6446 esac
6450 # sizeof(char) is 1 by definition.
6451 # The cast to long int works around a bug in the HP C Compiler
6452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6454 # This bug is HP SR number 8606223364.
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6456 $as_echo_n "checking size of void *... " >&6; }
6457 if ${ac_cv_sizeof_void_p+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6462 else
6463 if test "$ac_cv_type_void_p" = yes; then
6464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6466 as_fn_error 77 "cannot compute sizeof (void *)
6467 See \`config.log' for more details" "$LINENO" 5; }
6468 else
6469 ac_cv_sizeof_void_p=0
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6475 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6479 cat >>confdefs.h <<_ACEOF
6480 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6481 _ACEOF
6484 # The cast to long int works around a bug in the HP C Compiler
6485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6487 # This bug is HP SR number 8606223364.
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6489 $as_echo_n "checking size of short... " >&6; }
6490 if ${ac_cv_sizeof_short+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6495 else
6496 if test "$ac_cv_type_short" = yes; then
6497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6499 as_fn_error 77 "cannot compute sizeof (short)
6500 See \`config.log' for more details" "$LINENO" 5; }
6501 else
6502 ac_cv_sizeof_short=0
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6508 $as_echo "$ac_cv_sizeof_short" >&6; }
6512 cat >>confdefs.h <<_ACEOF
6513 #define SIZEOF_SHORT $ac_cv_sizeof_short
6514 _ACEOF
6517 # The cast to long int works around a bug in the HP C Compiler
6518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6520 # This bug is HP SR number 8606223364.
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6522 $as_echo_n "checking size of int... " >&6; }
6523 if ${ac_cv_sizeof_int+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6528 else
6529 if test "$ac_cv_type_int" = yes; then
6530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6532 as_fn_error 77 "cannot compute sizeof (int)
6533 See \`config.log' for more details" "$LINENO" 5; }
6534 else
6535 ac_cv_sizeof_int=0
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6541 $as_echo "$ac_cv_sizeof_int" >&6; }
6545 cat >>confdefs.h <<_ACEOF
6546 #define SIZEOF_INT $ac_cv_sizeof_int
6547 _ACEOF
6550 # The cast to long int works around a bug in the HP C Compiler
6551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6553 # This bug is HP SR number 8606223364.
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6555 $as_echo_n "checking size of long... " >&6; }
6556 if ${ac_cv_sizeof_long+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6561 else
6562 if test "$ac_cv_type_long" = yes; then
6563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6565 as_fn_error 77 "cannot compute sizeof (long)
6566 See \`config.log' for more details" "$LINENO" 5; }
6567 else
6568 ac_cv_sizeof_long=0
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6574 $as_echo "$ac_cv_sizeof_long" >&6; }
6578 cat >>confdefs.h <<_ACEOF
6579 #define SIZEOF_LONG $ac_cv_sizeof_long
6580 _ACEOF
6583 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6584 if test "x$ac_cv_type_long_long" = xyes; then :
6586 cat >>confdefs.h <<_ACEOF
6587 #define HAVE_LONG_LONG 1
6588 _ACEOF
6590 # The cast to long int works around a bug in the HP C Compiler
6591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6593 # This bug is HP SR number 8606223364.
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6595 $as_echo_n "checking size of long long... " >&6; }
6596 if ${ac_cv_sizeof_long_long+:} false; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6601 else
6602 if test "$ac_cv_type_long_long" = yes; then
6603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6605 as_fn_error 77 "cannot compute sizeof (long long)
6606 See \`config.log' for more details" "$LINENO" 5; }
6607 else
6608 ac_cv_sizeof_long_long=0
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6614 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6618 cat >>confdefs.h <<_ACEOF
6619 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6620 _ACEOF
6625 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6626 case $ac_cv_c_int8_t in #(
6627 no|yes) ;; #(
6630 cat >>confdefs.h <<_ACEOF
6631 #define int8_t $ac_cv_c_int8_t
6632 _ACEOF
6634 esac
6636 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6637 case $ac_cv_c_int16_t in #(
6638 no|yes) ;; #(
6641 cat >>confdefs.h <<_ACEOF
6642 #define int16_t $ac_cv_c_int16_t
6643 _ACEOF
6645 esac
6647 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6648 case $ac_cv_c_int32_t in #(
6649 no|yes) ;; #(
6652 cat >>confdefs.h <<_ACEOF
6653 #define int32_t $ac_cv_c_int32_t
6654 _ACEOF
6656 esac
6658 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6659 case $ac_cv_c_int64_t in #(
6660 no|yes) ;; #(
6663 cat >>confdefs.h <<_ACEOF
6664 #define int64_t $ac_cv_c_int64_t
6665 _ACEOF
6667 esac
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6671 $as_echo_n "checking for unsigned long long int... " >&6; }
6672 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 ac_cv_type_unsigned_long_long_int=yes
6676 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6680 /* For now, do not test the preprocessor; as of 2007 there are too many
6681 implementations with broken preprocessors. Perhaps this can
6682 be revisited in 2012. In the meantime, code should not expect
6683 #if to work with literals wider than 32 bits. */
6684 /* Test literals. */
6685 long long int ll = 9223372036854775807ll;
6686 long long int nll = -9223372036854775807LL;
6687 unsigned long long int ull = 18446744073709551615ULL;
6688 /* Test constant expressions. */
6689 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6690 ? 1 : -1)];
6691 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6692 ? 1 : -1)];
6693 int i = 63;
6695 main ()
6697 /* Test availability of runtime routines for shift and division. */
6698 long long int llmax = 9223372036854775807ll;
6699 unsigned long long int ullmax = 18446744073709551615ull;
6700 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6701 | (llmax / ll) | (llmax % ll)
6702 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6703 | (ullmax / ull) | (ullmax % ull));
6705 return 0;
6708 _ACEOF
6709 if ac_fn_cxx_try_link "$LINENO"; then :
6711 else
6712 ac_cv_type_unsigned_long_long_int=no
6714 rm -f core conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6719 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6720 if test $ac_cv_type_unsigned_long_long_int = yes; then
6722 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6729 $as_echo_n "checking for long long int... " >&6; }
6730 if ${ac_cv_type_long_long_int+:} false; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 ac_cv_type_long_long_int=yes
6734 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6735 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6736 if test $ac_cv_type_long_long_int = yes; then
6737 if test "$cross_compiling" = yes; then :
6739 else
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 #include <limits.h>
6743 #ifndef LLONG_MAX
6744 # define HALF \
6745 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6746 # define LLONG_MAX (HALF - 1 + HALF)
6747 #endif
6749 main ()
6751 long long int n = 1;
6752 int i;
6753 for (i = 0; ; i++)
6755 long long int m = n << i;
6756 if (m >> i != n)
6757 return 1;
6758 if (LLONG_MAX / 2 < m)
6759 break;
6761 return 0;
6763 return 0;
6765 _ACEOF
6766 if ac_fn_cxx_try_run "$LINENO"; then :
6768 else
6769 ac_cv_type_long_long_int=no
6771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6772 conftest.$ac_objext conftest.beam conftest.$ac_ext
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6779 $as_echo "$ac_cv_type_long_long_int" >&6; }
6780 if test $ac_cv_type_long_long_int = yes; then
6782 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6788 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6789 if test "x$ac_cv_type_intmax_t" = xyes; then :
6791 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6793 else
6794 test $ac_cv_type_long_long_int = yes \
6795 && ac_type='long long int' \
6796 || ac_type='long int'
6798 cat >>confdefs.h <<_ACEOF
6799 #define intmax_t $ac_type
6800 _ACEOF
6806 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6807 if test "x$ac_cv_type_intptr_t" = xyes; then :
6809 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6811 else
6812 for ac_type in 'int' 'long int' 'long long int'; do
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 $ac_includes_default
6817 main ()
6819 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6820 test_array [0] = 0;
6821 return test_array [0];
6824 return 0;
6826 _ACEOF
6827 if ac_fn_cxx_try_compile "$LINENO"; then :
6829 cat >>confdefs.h <<_ACEOF
6830 #define intptr_t $ac_type
6831 _ACEOF
6833 ac_type=
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 test -z "$ac_type" && break
6837 done
6841 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6842 case $ac_cv_c_uint8_t in #(
6843 no|yes) ;; #(
6846 $as_echo "#define _UINT8_T 1" >>confdefs.h
6849 cat >>confdefs.h <<_ACEOF
6850 #define uint8_t $ac_cv_c_uint8_t
6851 _ACEOF
6853 esac
6855 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6856 case $ac_cv_c_uint16_t in #(
6857 no|yes) ;; #(
6861 cat >>confdefs.h <<_ACEOF
6862 #define uint16_t $ac_cv_c_uint16_t
6863 _ACEOF
6865 esac
6867 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6868 case $ac_cv_c_uint32_t in #(
6869 no|yes) ;; #(
6872 $as_echo "#define _UINT32_T 1" >>confdefs.h
6875 cat >>confdefs.h <<_ACEOF
6876 #define uint32_t $ac_cv_c_uint32_t
6877 _ACEOF
6879 esac
6881 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6882 case $ac_cv_c_uint64_t in #(
6883 no|yes) ;; #(
6886 $as_echo "#define _UINT64_T 1" >>confdefs.h
6889 cat >>confdefs.h <<_ACEOF
6890 #define uint64_t $ac_cv_c_uint64_t
6891 _ACEOF
6893 esac
6897 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6898 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6900 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6902 else
6903 test $ac_cv_type_unsigned_long_long_int = yes \
6904 && ac_type='unsigned long long int' \
6905 || ac_type='unsigned long int'
6907 cat >>confdefs.h <<_ACEOF
6908 #define uintmax_t $ac_type
6909 _ACEOF
6915 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6916 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6918 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6920 else
6921 for ac_type in 'unsigned int' 'unsigned long int' \
6922 'unsigned long long int'; do
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6925 $ac_includes_default
6927 main ()
6929 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6930 test_array [0] = 0;
6931 return test_array [0];
6934 return 0;
6936 _ACEOF
6937 if ac_fn_cxx_try_compile "$LINENO"; then :
6939 cat >>confdefs.h <<_ACEOF
6940 #define uintptr_t $ac_type
6941 _ACEOF
6943 ac_type=
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946 test -z "$ac_type" && break
6947 done
6963 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6964 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6967 # check what underlying integer type int64_t uses
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6969 $as_echo_n "checking for int64_t underlying type... " >&6; }
6970 if ${ac_cv_int64_t_type+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6977 #ifdef HAVE_STDINT_H
6978 #include <stdint.h>
6979 #endif
6980 template <typename T> struct X { };
6981 template <>
6982 struct X<long> { typedef long t; };
6985 main ()
6987 X<int64_t>::t x;
6989 return 0;
6991 _ACEOF
6992 if ac_fn_cxx_try_compile "$LINENO"; then :
6993 ac_cv_int64_t_type=long
6994 else
6995 ac_cv_int64_t_type="long long"
6997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7000 $as_echo "$ac_cv_int64_t_type" >&6; }
7001 if test "$ac_cv_int64_t_type" = "long"; then
7003 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7005 else
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7009 #ifdef HAVE_STDINT_H
7010 #include <stdint.h>
7011 #endif
7012 template <typename T> struct X { };
7013 template <>
7014 struct X<long long> { typedef long long t; };
7017 main ()
7019 X<int64_t>::t x;
7021 return 0;
7023 _ACEOF
7024 if ac_fn_cxx_try_compile "$LINENO"; then :
7026 else
7027 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7033 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7034 if ${ac_cv_std_swap_in_utility+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7041 #include <utility>
7044 main ()
7046 int a, b; std::swap(a,b);
7048 return 0;
7050 _ACEOF
7051 if ac_fn_cxx_try_compile "$LINENO"; then :
7052 ac_cv_std_swap_in_utility=yes
7053 else
7054 ac_cv_std_swap_in_utility=no
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7059 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7060 if test $ac_cv_std_swap_in_utility = yes; then
7062 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7066 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7067 # If the host compiler is affected by the bug, and we build with optimization
7068 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7069 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7070 # Since there is no reliable feature check for the presence of this bug,
7071 # we simply use a GCC version number check. (This should never trigger for
7072 # stages 2 or 3 of a native bootstrap.)
7073 aliasing_flags=
7074 if test "$GCC" = yes; then
7075 saved_CXXFLAGS="$CXXFLAGS"
7077 # The following test compilation will succeed if and only if $CXX accepts
7078 # -fno-strict-aliasing *and* is older than GCC 4.3.
7079 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7081 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7085 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7086 #error compiler not affected by placement new aliasing bug
7087 #endif
7089 _ACEOF
7090 if ac_fn_cxx_try_compile "$LINENO"; then :
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7092 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 CXXFLAGS="$saved_CXXFLAGS"
7105 # ---------------------
7106 # Warnings and checking
7107 # ---------------------
7109 # Check $CC warning features (if it's GCC).
7110 # We want to use -pedantic, but we don't want warnings about
7111 # * 'long long'
7112 # * variadic macros
7113 # * overlong strings
7114 # * C++11 narrowing conversions in { }
7115 # So, we only use -pedantic if we can disable those warnings.
7117 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7118 # Check whether --enable-build-format-warnings was given.
7119 if test "${enable_build_format_warnings+set}" = set; then :
7120 enableval=$enable_build_format_warnings;
7121 else
7122 enable_build_format_warnings=yes
7125 if test $enable_build_format_warnings = no; then :
7126 wf_opt=-Wno-format
7127 else
7128 wf_opt=
7130 ac_ext=cpp
7131 ac_cpp='$CXXCPP $CPPFLAGS'
7132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7136 loose_warn=
7137 save_CXXFLAGS="$CXXFLAGS"
7138 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7139 # Do the check with the no- prefix removed since gcc silently
7140 # accepts any -Wno-* option on purpose
7141 case $real_option in
7142 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7143 *) option=$real_option ;;
7144 esac
7145 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7148 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7149 if eval \${$as_acx_Woption+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 CXXFLAGS="$option"
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7157 main ()
7161 return 0;
7163 _ACEOF
7164 if ac_fn_cxx_try_compile "$LINENO"; then :
7165 eval "$as_acx_Woption=yes"
7166 else
7167 eval "$as_acx_Woption=no"
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 eval ac_res=\$$as_acx_Woption
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7174 $as_echo "$ac_res" >&6; }
7175 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7176 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7178 done
7179 CXXFLAGS="$save_CXXFLAGS"
7180 ac_ext=cpp
7181 ac_cpp='$CXXCPP $CPPFLAGS'
7182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7188 ac_ext=c
7189 ac_cpp='$CPP $CPPFLAGS'
7190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7194 c_loose_warn=
7195 save_CFLAGS="$CFLAGS"
7196 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7197 # Do the check with the no- prefix removed since gcc silently
7198 # accepts any -Wno-* option on purpose
7199 case $real_option in
7200 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7201 *) option=$real_option ;;
7202 esac
7203 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7206 $as_echo_n "checking whether $CC supports $option... " >&6; }
7207 if eval \${$as_acx_Woption+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 CFLAGS="$option"
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7215 main ()
7219 return 0;
7221 _ACEOF
7222 if ac_fn_c_try_compile "$LINENO"; then :
7223 eval "$as_acx_Woption=yes"
7224 else
7225 eval "$as_acx_Woption=no"
7227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 eval ac_res=\$$as_acx_Woption
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7232 $as_echo "$ac_res" >&6; }
7233 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7234 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7236 done
7237 CFLAGS="$save_CFLAGS"
7238 ac_ext=cpp
7239 ac_cpp='$CXXCPP $CPPFLAGS'
7240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7245 ac_ext=cpp
7246 ac_cpp='$CXXCPP $CPPFLAGS'
7247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7251 strict_warn=
7252 save_CXXFLAGS="$CXXFLAGS"
7253 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7254 # Do the check with the no- prefix removed since gcc silently
7255 # accepts any -Wno-* option on purpose
7256 case $real_option in
7257 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7258 *) option=$real_option ;;
7259 esac
7260 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7263 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7264 if eval \${$as_acx_Woption+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 CXXFLAGS="$option"
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7272 main ()
7276 return 0;
7278 _ACEOF
7279 if ac_fn_cxx_try_compile "$LINENO"; then :
7280 eval "$as_acx_Woption=yes"
7281 else
7282 eval "$as_acx_Woption=no"
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 eval ac_res=\$$as_acx_Woption
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7289 $as_echo "$ac_res" >&6; }
7290 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7291 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7293 done
7294 CXXFLAGS="$save_CXXFLAGS"
7295 ac_ext=cpp
7296 ac_cpp='$CXXCPP $CPPFLAGS'
7297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7302 ac_ext=c
7303 ac_cpp='$CPP $CPPFLAGS'
7304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7308 c_strict_warn=
7309 save_CFLAGS="$CFLAGS"
7310 for real_option in -Wold-style-definition -Wc++-compat; do
7311 # Do the check with the no- prefix removed since gcc silently
7312 # accepts any -Wno-* option on purpose
7313 case $real_option in
7314 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7315 *) option=$real_option ;;
7316 esac
7317 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7320 $as_echo_n "checking whether $CC supports $option... " >&6; }
7321 if eval \${$as_acx_Woption+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 CFLAGS="$option"
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7329 main ()
7333 return 0;
7335 _ACEOF
7336 if ac_fn_c_try_compile "$LINENO"; then :
7337 eval "$as_acx_Woption=yes"
7338 else
7339 eval "$as_acx_Woption=no"
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 eval ac_res=\$$as_acx_Woption
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7346 $as_echo "$ac_res" >&6; }
7347 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7348 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7350 done
7351 CFLAGS="$save_CFLAGS"
7352 ac_ext=cpp
7353 ac_cpp='$CXXCPP $CPPFLAGS'
7354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7359 ac_ext=cpp
7360 ac_cpp='$CXXCPP $CPPFLAGS'
7361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7365 # Do the check with the no- prefix removed from the warning options
7366 # since gcc silently accepts any -Wno-* option on purpose
7367 if test "$GXX" = yes; then :
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7369 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7370 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 save_CXXFLAGS="$CXXFLAGS"
7374 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7379 main ()
7383 return 0;
7385 _ACEOF
7386 if ac_fn_cxx_try_compile "$LINENO"; then :
7387 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7388 else
7389 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 CXXFLAGS="$save_CXXFLAGS"
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7395 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7396 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7397 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7401 ac_ext=cpp
7402 ac_cpp='$CXXCPP $CPPFLAGS'
7403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7408 ac_ext=cpp
7409 ac_cpp='$CXXCPP $CPPFLAGS'
7410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7414 # Check whether --enable-werror-always was given.
7415 if test "${enable_werror_always+set}" = set; then :
7416 enableval=$enable_werror_always;
7417 else
7418 enable_werror_always=no
7421 if test $enable_werror_always = yes; then :
7422 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7425 ac_ext=cpp
7426 ac_cpp='$CXXCPP $CPPFLAGS'
7427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7433 # The above macros do nothing if the compiler is not GCC. However, the
7434 # Makefile has more goo to add other flags, so these variables are used
7435 # to enable warnings only for GCC.
7436 warn_cflags=
7437 warn_cxxflags=
7438 if test "x$GCC" = "xyes"; then
7439 warn_cflags='$(GCC_WARN_CFLAGS)'
7440 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7445 # Disable exceptions and RTTI if building with g++
7446 ac_ext=c
7447 ac_cpp='$CPP $CPPFLAGS'
7448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7452 noexception_flags=
7453 save_CFLAGS="$CFLAGS"
7454 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7455 # Do the check with the no- prefix removed since gcc silently
7456 # accepts any -Wno-* option on purpose
7457 case $real_option in
7458 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7459 *) option=$real_option ;;
7460 esac
7461 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7464 $as_echo_n "checking whether $CC supports $option... " >&6; }
7465 if eval \${$as_acx_Woption+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 CFLAGS="$option"
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7473 main ()
7477 return 0;
7479 _ACEOF
7480 if ac_fn_c_try_compile "$LINENO"; then :
7481 eval "$as_acx_Woption=yes"
7482 else
7483 eval "$as_acx_Woption=no"
7485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488 eval ac_res=\$$as_acx_Woption
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7490 $as_echo "$ac_res" >&6; }
7491 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7492 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7494 done
7495 CFLAGS="$save_CFLAGS"
7496 ac_ext=cpp
7497 ac_cpp='$CXXCPP $CPPFLAGS'
7498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7504 # Enable expensive internal checks
7505 is_release=
7506 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7507 is_release=yes
7510 # Check whether --enable-checking was given.
7511 if test "${enable_checking+set}" = set; then :
7512 enableval=$enable_checking; ac_checking_flags="${enableval}"
7513 else
7515 # Determine the default checks.
7516 if test x$is_release = x ; then
7517 ac_checking_flags=yes,extra
7518 else
7519 ac_checking_flags=release
7523 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7524 for check in release $ac_checking_flags
7526 case $check in
7527 # these set all the flags to specific states
7528 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7529 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7530 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7531 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7532 ac_tree_checking=1 ; ac_valgrind_checking= ;
7533 ac_types_checking=1 ;;
7534 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7535 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7536 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7537 ac_rtlflag_checking= ; ac_runtime_checking= ;
7538 ac_tree_checking= ; ac_valgrind_checking= ;
7539 ac_types_checking= ;;
7540 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7541 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7542 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7543 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7544 ac_tree_checking=1 ; ac_valgrind_checking= ;
7545 ac_types_checking=1 ;;
7546 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7547 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7548 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7549 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7550 ac_tree_checking= ; ac_valgrind_checking= ;
7551 ac_types_checking= ;;
7552 # these enable particular checks
7553 assert) ac_assert_checking=1 ;;
7554 df) ac_df_checking=1 ;;
7555 extra) ac_extra_checking=1 ;;
7556 fold) ac_fold_checking=1 ;;
7557 gc) ac_gc_checking=1 ;;
7558 gcac) ac_gc_always_collect=1 ;;
7559 gimple) ac_gimple_checking=1 ;;
7560 misc) ac_checking=1 ;;
7561 rtl) ac_rtl_checking=1 ;;
7562 rtlflag) ac_rtlflag_checking=1 ;;
7563 runtime) ac_runtime_checking=1 ;;
7564 tree) ac_tree_checking=1 ;;
7565 types) ac_types_checking=1 ;;
7566 valgrind) ac_valgrind_checking=1 ;;
7567 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7568 esac
7569 done
7570 IFS="$ac_save_IFS"
7572 nocommon_flag=""
7573 if test x$ac_checking != x ; then
7575 $as_echo "#define CHECKING_P 1" >>confdefs.h
7577 nocommon_flag=-fno-common
7578 else
7579 $as_echo "#define CHECKING_P 0" >>confdefs.h
7583 if test x$ac_extra_checking != x ; then
7585 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7587 else
7588 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7591 if test x$ac_df_checking != x ; then
7593 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7596 if test x$ac_assert_checking != x ; then
7598 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7601 if test x$ac_gimple_checking != x ; then
7603 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7607 if test x$ac_runtime_checking != x ; then
7609 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7612 if test x$ac_tree_checking != x ; then
7614 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7616 TREECHECKING=yes
7618 if test x$ac_types_checking != x ; then
7620 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7624 if test x$ac_rtl_checking != x ; then
7626 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7629 if test x$ac_rtlflag_checking != x ; then
7631 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7634 if test x$ac_gc_checking != x ; then
7636 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7639 if test x$ac_gc_always_collect != x ; then
7641 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7644 if test x$ac_fold_checking != x ; then
7646 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7649 valgrind_path_defines=
7650 valgrind_command=
7652 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7653 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7654 have_valgrind_h=yes
7655 else
7656 have_valgrind_h=no
7661 # It is certainly possible that there's valgrind but no valgrind.h.
7662 # GCC relies on making annotations so we must have both.
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7664 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667 #include <valgrind/memcheck.h>
7668 #ifndef VALGRIND_DISCARD
7669 #error VALGRIND_DISCARD not defined
7670 #endif
7671 _ACEOF
7672 if ac_fn_cxx_try_cpp "$LINENO"; then :
7673 gcc_cv_header_valgrind_memcheck_h=yes
7674 else
7675 gcc_cv_header_valgrind_memcheck_h=no
7677 rm -f conftest.err conftest.i conftest.$ac_ext
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7679 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7681 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684 #include <memcheck.h>
7685 #ifndef VALGRIND_DISCARD
7686 #error VALGRIND_DISCARD not defined
7687 #endif
7688 _ACEOF
7689 if ac_fn_cxx_try_cpp "$LINENO"; then :
7690 gcc_cv_header_memcheck_h=yes
7691 else
7692 gcc_cv_header_memcheck_h=no
7694 rm -f conftest.err conftest.i conftest.$ac_ext
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7696 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7697 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7699 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7702 if test $gcc_cv_header_memcheck_h = yes; then
7704 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7708 if test x$ac_valgrind_checking != x ; then
7710 # Prepare PATH_SEPARATOR.
7711 # The user is always right.
7712 if test "${PATH_SEPARATOR+set}" != set; then
7713 echo "#! /bin/sh" >conf$$.sh
7714 echo "exit 0" >>conf$$.sh
7715 chmod +x conf$$.sh
7716 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7717 PATH_SEPARATOR=';'
7718 else
7719 PATH_SEPARATOR=:
7721 rm -f conf$$.sh
7724 # Find out how to test for executable files. Don't use a zero-byte file,
7725 # as systems may use methods other than mode bits to determine executability.
7726 cat >conf$$.file <<_ASEOF
7727 #! /bin/sh
7728 exit 0
7729 _ASEOF
7730 chmod +x conf$$.file
7731 if test -x conf$$.file >/dev/null 2>&1; then
7732 ac_executable_p="test -x"
7733 else
7734 ac_executable_p="test -f"
7736 rm -f conf$$.file
7738 # Extract the first word of "valgrind", so it can be a program name with args.
7739 set dummy valgrind; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if ${ac_cv_path_valgrind_path+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 case "$valgrind_path" in
7746 [\\/]* | ?:[\\/]*)
7747 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7750 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7751 for ac_dir in $PATH; do
7752 IFS="$ac_save_IFS"
7753 test -z "$ac_dir" && ac_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7756 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7757 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7758 break 2
7761 done
7762 done
7763 IFS="$ac_save_IFS"
7765 esac
7767 valgrind_path="$ac_cv_path_valgrind_path"
7768 if test -n "$valgrind_path"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7770 $as_echo "$valgrind_path" >&6; }
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7776 if test "x$valgrind_path" = "x" \
7777 || (test $have_valgrind_h = no \
7778 && test $gcc_cv_header_memcheck_h = no \
7779 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7780 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7782 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7783 valgrind_command="$valgrind_path -q"
7785 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7791 # Enable code coverage collection
7792 # Check whether --enable-coverage was given.
7793 if test "${enable_coverage+set}" = set; then :
7794 enableval=$enable_coverage; case "${enableval}" in
7795 yes|noopt)
7796 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7798 opt)
7799 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7802 # a.k.a. --disable-coverage
7803 coverage_flags=""
7806 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7808 esac
7809 else
7810 coverage_flags=""
7815 # Check whether --enable-gather-detailed-mem-stats was given.
7816 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7817 enableval=$enable_gather_detailed_mem_stats;
7818 else
7819 enable_gather_detailed_mem_stats=no
7822 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7824 cat >>confdefs.h <<_ACEOF
7825 #define GATHER_STATISTICS $gather_stats
7826 _ACEOF
7829 # Check whether --enable-valgrind-annotations was given.
7830 if test "${enable_valgrind_annotations+set}" = set; then :
7831 enableval=$enable_valgrind_annotations;
7832 else
7833 enable_valgrind_annotations=no
7836 if test x$enable_valgrind_annotations != xno \
7837 || test x$ac_valgrind_checking != x; then
7838 if (test $have_valgrind_h = no \
7839 && test $gcc_cv_header_memcheck_h = no \
7840 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7841 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7844 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7848 # -------------------------------
7849 # Miscenalleous configure options
7850 # -------------------------------
7852 # Determine whether or not multilibs are enabled.
7853 # Check whether --enable-multilib was given.
7854 if test "${enable_multilib+set}" = set; then :
7855 enableval=$enable_multilib;
7856 else
7857 enable_multilib=yes
7862 # Determine whether or not multiarch is enabled.
7863 # Check whether --enable-multiarch was given.
7864 if test "${enable_multiarch+set}" = set; then :
7865 enableval=$enable_multiarch; case "${enableval}" in
7866 yes|no|auto) enable_multiarch=$enableval;;
7867 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7868 esac
7869 else
7870 enable_multiarch=auto
7873 if test x${enable_multiarch} = xauto; then
7874 if test x${with_native_system_header_dir} != x; then
7875 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7876 enable_multiarch=no
7878 if test x$host != x$target && test "x$with_sysroot" = x; then
7879 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7880 enable_multiarch=no
7883 if test x${enable_multiarch} = xyes; then
7885 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7889 $as_echo_n "checking for multiarch configuration... " >&6; }
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7892 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7894 # needed for setting the multiarch name for soft-float/hard-float ABIs
7898 # default stack clash protection guard size as power of twos in bytes.
7899 # Please keep these in sync with params.def.
7900 stk_clash_min=12
7901 stk_clash_max=30
7903 # Keep the default value when the option is not used to 0, this allows us to
7904 # distinguish between the cases where the user specifially set a value via
7905 # configure and when the normal default value is used.
7907 # Check whether --with-stack-clash-protection-guard-size was given.
7908 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7909 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7910 else
7911 DEFAULT_STK_CLASH_GUARD_SIZE=0
7914 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7915 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7916 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7917 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
7921 cat >>confdefs.h <<_ACEOF
7922 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7923 _ACEOF
7926 # Specify the number of splits of match.pd to generate.
7928 # Check whether --with-matchpd-partitions was given.
7929 if test "${with_matchpd_partitions+set}" = set; then :
7930 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7931 else
7932 DEFAULT_MATCHPD_PARTITIONS=10
7935 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7936 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7941 # Enable __cxa_atexit for C++.
7942 # Check whether --enable-__cxa_atexit was given.
7943 if test "${enable___cxa_atexit+set}" = set; then :
7944 enableval=$enable___cxa_atexit;
7948 # Enable C extension for decimal float if target supports it.
7950 # Check whether --enable-decimal-float was given.
7951 if test "${enable_decimal_float+set}" = set; then :
7952 enableval=$enable_decimal_float;
7953 case $enable_decimal_float in
7954 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7955 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7956 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7957 esac
7959 else
7961 case $target in
7962 aarch64* | \
7963 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7964 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7965 i?86*-*-mingw* | x86_64*-*-mingw* | \
7966 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7967 enable_decimal_float=yes
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7971 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7972 enable_decimal_float=no
7974 esac
7979 # x86's use BID format instead of DPD
7980 case x$enable_decimal_float in
7981 xyes)
7982 case $target in
7983 aarch64* | i?86*-*-* | x86_64*-*-*)
7984 enable_decimal_float=bid
7987 enable_decimal_float=dpd
7989 esac
7990 default_decimal_float=$enable_decimal_float
7992 xno)
7993 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7994 # dependency on libdecnumber.
7995 default_decimal_float=dpd
7997 esac
8002 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8004 cat >>confdefs.h <<_ACEOF
8005 #define ENABLE_DECIMAL_FLOAT $dfp
8006 _ACEOF
8009 # Use default_decimal_float for dependency.
8010 enable_decimal_float=$default_decimal_float
8012 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8014 cat >>confdefs.h <<_ACEOF
8015 #define ENABLE_DECIMAL_BID_FORMAT $bid
8016 _ACEOF
8019 # Enable C extension for fixed-point arithmetic.
8020 # Check whether --enable-fixed-point was given.
8021 if test "${enable_fixed_point+set}" = set; then :
8022 enableval=$enable_fixed_point;
8023 else
8025 case $target in
8026 arm*)
8027 enable_fixed_point=yes
8030 mips*-*-*)
8031 enable_fixed_point=yes
8033 loongarch*-*-*)
8034 enable_fixed_point=yes
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8038 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8039 enable_fixed_point=no
8041 esac
8047 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8049 cat >>confdefs.h <<_ACEOF
8050 #define ENABLE_FIXED_POINT $fixedpoint
8051 _ACEOF
8054 # Enable threads
8055 # Pass with no value to take the default
8056 # Pass with a value to specify a thread package
8057 # Check whether --enable-threads was given.
8058 if test "${enable_threads+set}" = set; then :
8059 enableval=$enable_threads;
8060 else
8061 enable_threads=''
8065 # Check whether --enable-tls was given.
8066 if test "${enable_tls+set}" = set; then :
8067 enableval=$enable_tls;
8068 case $enable_tls in
8069 yes | no) ;;
8070 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8071 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8072 esac
8074 else
8075 enable_tls=''
8079 # Check whether --enable-vtable-verify was given.
8080 if test "${enable_vtable_verify+set}" = set; then :
8081 enableval=$enable_vtable_verify;
8082 else
8083 enable_vtable_verify=no
8086 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8088 cat >>confdefs.h <<_ACEOF
8089 #define ENABLE_VTABLE_VERIFY $vtable_verify
8090 _ACEOF
8093 # Check whether --enable-analyzer was given.
8094 if test "${enable_analyzer+set}" = set; then :
8095 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8096 analyzer=0
8097 else
8098 analyzer=1
8100 else
8101 analyzer=1
8105 cat >>confdefs.h <<_ACEOF
8106 #define ENABLE_ANALYZER $analyzer
8107 _ACEOF
8110 # Check whether --enable-objc-gc was given.
8111 if test "${enable_objc_gc+set}" = set; then :
8112 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8113 objc_boehm_gc=''
8114 else
8115 objc_boehm_gc=1
8117 else
8118 objc_boehm_gc=''
8123 # Check whether --with-dwarf2 was given.
8124 if test "${with_dwarf2+set}" = set; then :
8125 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8126 else
8127 dwarf2=no
8131 # Check whether --enable-shared was given.
8132 if test "${enable_shared+set}" = set; then :
8133 enableval=$enable_shared;
8134 case $enable_shared in
8135 yes | no) ;;
8137 enable_shared=no
8138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8139 for pkg in $enableval; do
8140 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8141 enable_shared=yes
8143 done
8144 IFS="$ac_save_ifs"
8146 esac
8148 else
8149 enable_shared=yes
8154 # Check whether --enable-gcov was given.
8155 if test "${enable_gcov+set}" = set; then :
8156 enableval=$enable_gcov;
8157 else
8158 case $target in
8159 bpf-*-*)
8160 enable_gcov=no
8163 enable_gcov=yes
8165 esac
8172 # Check whether --with-specs was given.
8173 if test "${with_specs+set}" = set; then :
8174 withval=$with_specs; CONFIGURE_SPECS=$withval
8175 else
8176 CONFIGURE_SPECS=
8184 # Check whether --with-pkgversion was given.
8185 if test "${with_pkgversion+set}" = set; then :
8186 withval=$with_pkgversion; case "$withval" in
8187 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8188 no) PKGVERSION= ;;
8189 *) PKGVERSION="($withval) " ;;
8190 esac
8191 else
8192 PKGVERSION="(GCC) "
8200 # Check whether --with-bugurl was given.
8201 if test "${with_bugurl+set}" = set; then :
8202 withval=$with_bugurl; case "$withval" in
8203 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8204 no) BUGURL=
8206 *) BUGURL="$withval"
8208 esac
8209 else
8210 BUGURL="https://gcc.gnu.org/bugs/"
8214 case ${BUGURL} in
8216 REPORT_BUGS_TO=
8217 REPORT_BUGS_TEXI=
8220 REPORT_BUGS_TO="<$BUGURL>"
8221 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8223 esac;
8228 # Allow overriding the default URL for documentation
8230 # Check whether --with-documentation-root-url was given.
8231 if test "${with_documentation_root_url+set}" = set; then :
8232 withval=$with_documentation_root_url; case "$withval" in
8233 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8234 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8235 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8236 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8237 esac
8238 else
8239 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8244 cat >>confdefs.h <<_ACEOF
8245 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8246 _ACEOF
8249 # Allow overriding the default URL for GCC changes
8251 # Check whether --with-changes-root-url was given.
8252 if test "${with_changes_root_url+set}" = set; then :
8253 withval=$with_changes_root_url; case "$withval" in
8254 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8255 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8256 */) CHANGES_ROOT_URL="$withval" ;;
8257 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8258 esac
8259 else
8260 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8265 cat >>confdefs.h <<_ACEOF
8266 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8267 _ACEOF
8270 # Sanity check enable_languages in case someone does not run the toplevel
8271 # configure # script.
8272 # Check whether --enable-languages was given.
8273 if test "${enable_languages+set}" = set; then :
8274 enableval=$enable_languages; case ,${enable_languages}, in
8275 ,,|,yes,)
8276 # go safe -- we cannot be much sure without the toplevel
8277 # configure's
8278 # analysis of which target libs are present and usable
8279 enable_languages=c
8281 *,all,*)
8282 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8284 *,c,*)
8287 enable_languages=c,${enable_languages}
8289 esac
8290 else
8291 enable_languages=c
8295 # If top-level libada has been disabled, then wire in install-gnatlib
8296 # invocation with `make install', so that one can build and install
8297 # the library manually with `make -C gcc all gnatlib gnattools install'.
8298 if test x"$enable_libada" = xno; then
8299 gnat_install_lib=gnat-install-lib
8300 else
8301 gnat_install_lib=
8305 if test x"$enable_as_accelerator_for" != x; then
8307 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8309 enable_as_accelerator=yes
8310 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8311 program_transform_name=`echo $program_transform_name | sed $sedscript`
8312 accel_dir_suffix=/accel/${target_noncanonical}
8313 real_target_noncanonical=${enable_as_accelerator_for}
8319 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8320 tgt=`echo $tgt | sed 's/=.*//'`
8322 enable_offloading=1
8323 case "$tgt" in
8324 amdgcn*)
8325 omp_device_property=omp-device-properties-gcn
8326 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8328 nvptx*)
8329 omp_device_property=omp-device-properties-nvptx
8330 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8333 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8335 esac
8336 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8337 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8339 if test x"$offload_targets" = x; then
8340 offload_targets=$tgt
8341 else
8342 offload_targets="$offload_targets,$tgt"
8344 done
8349 cat >>confdefs.h <<_ACEOF
8350 #define OFFLOAD_TARGETS "$offload_targets"
8351 _ACEOF
8353 if test x"$enable_offloading" != x; then
8355 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8357 else
8359 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8363 if test "x$enable_offload_defaulted" = xyes; then
8365 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8370 # Check whether --with-multilib-list was given.
8371 if test "${with_multilib_list+set}" = set; then :
8372 withval=$with_multilib_list; :
8373 else
8374 with_multilib_list=default
8379 # Check whether --with-multilib-generator was given.
8380 if test "${with_multilib_generator+set}" = set; then :
8381 withval=$with_multilib_generator; :
8382 else
8383 with_multilib_generator=default
8387 # -------------------------
8388 # Checks for other programs
8389 # -------------------------
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8392 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8393 set x ${MAKE-make}
8394 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8395 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 cat >conftest.make <<\_ACEOF
8399 SHELL = /bin/sh
8400 all:
8401 @echo '@@@%%%=$(MAKE)=@@@%%%'
8402 _ACEOF
8403 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8404 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8405 *@@@%%%=?*=@@@%%%*)
8406 eval ac_cv_prog_make_${ac_make}_set=yes;;
8408 eval ac_cv_prog_make_${ac_make}_set=no;;
8409 esac
8410 rm -f conftest.make
8412 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8414 $as_echo "yes" >&6; }
8415 SET_MAKE=
8416 else
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 SET_MAKE="MAKE=${MAKE-make}"
8423 # Find some useful tools
8424 for ac_prog in gawk mawk nawk awk
8426 # Extract the first word of "$ac_prog", so it can be a program name with args.
8427 set dummy $ac_prog; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if ${ac_cv_prog_AWK+:} false; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 if test -n "$AWK"; then
8434 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8443 ac_cv_prog_AWK="$ac_prog"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8447 done
8448 done
8449 IFS=$as_save_IFS
8453 AWK=$ac_cv_prog_AWK
8454 if test -n "$AWK"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8456 $as_echo "$AWK" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8463 test -n "$AWK" && break
8464 done
8466 # We need awk to create options.cc and options.h.
8467 # Bail out if it's missing.
8468 case ${AWK} in
8469 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8470 esac
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8473 $as_echo_n "checking whether ln -s works... " >&6; }
8474 if ${gcc_cv_prog_LN_S+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 rm -f conftestdata_t
8478 echo >conftestdata_f
8479 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8480 then
8481 gcc_cv_prog_LN_S="ln -s"
8482 else
8483 if ln conftestdata_f conftestdata_t 2>/dev/null
8484 then
8485 gcc_cv_prog_LN_S=ln
8486 else
8487 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8488 then
8489 gcc_cv_prog_LN_S="cp -p"
8490 else
8491 gcc_cv_prog_LN_S=cp
8495 rm -f conftestdata_f conftestdata_t
8498 LN_S="$gcc_cv_prog_LN_S"
8499 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8501 $as_echo "yes" >&6; }
8502 else
8503 if test "$gcc_cv_prog_LN_S" = "ln"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8505 $as_echo "no, using ln" >&6; }
8506 else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8508 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8513 $as_echo_n "checking whether ln works... " >&6; }
8514 if ${acx_cv_prog_LN+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 rm -f conftestdata_t
8518 echo >conftestdata_f
8519 if ln conftestdata_f conftestdata_t 2>/dev/null
8520 then
8521 acx_cv_prog_LN=ln
8522 else
8523 acx_cv_prog_LN=no
8525 rm -f conftestdata_f conftestdata_t
8528 if test $acx_cv_prog_LN = no; then
8529 LN="$LN_S"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8531 $as_echo "no, using $LN" >&6; }
8532 else
8533 LN="$acx_cv_prog_LN"
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8535 $as_echo "yes" >&6; }
8538 if test -n "$ac_tool_prefix"; then
8539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8540 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if ${ac_cv_prog_RANLIB+:} false; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 if test -n "$RANLIB"; then
8547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8548 else
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8552 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2
8560 done
8561 done
8562 IFS=$as_save_IFS
8566 RANLIB=$ac_cv_prog_RANLIB
8567 if test -n "$RANLIB"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8569 $as_echo "$RANLIB" >&6; }
8570 else
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8577 if test -z "$ac_cv_prog_RANLIB"; then
8578 ac_ct_RANLIB=$RANLIB
8579 # Extract the first word of "ranlib", so it can be a program name with args.
8580 set dummy ranlib; ac_word=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 if test -n "$ac_ct_RANLIB"; then
8587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8588 else
8589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 for as_dir in $PATH
8592 IFS=$as_save_IFS
8593 test -z "$as_dir" && as_dir=.
8594 for ac_exec_ext in '' $ac_executable_extensions; do
8595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8596 ac_cv_prog_ac_ct_RANLIB="ranlib"
8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8598 break 2
8600 done
8601 done
8602 IFS=$as_save_IFS
8606 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8607 if test -n "$ac_ct_RANLIB"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8609 $as_echo "$ac_ct_RANLIB" >&6; }
8610 else
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8615 if test "x$ac_ct_RANLIB" = x; then
8616 RANLIB=":"
8617 else
8618 case $cross_compiling:$ac_tool_warned in
8619 yes:)
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8622 ac_tool_warned=yes ;;
8623 esac
8624 RANLIB=$ac_ct_RANLIB
8626 else
8627 RANLIB="$ac_cv_prog_RANLIB"
8630 ranlib_flags=""
8633 # Find a good install program. We prefer a C program (faster),
8634 # so one script is as good as another. But avoid the broken or
8635 # incompatible versions:
8636 # SysV /etc/install, /usr/sbin/install
8637 # SunOS /usr/etc/install
8638 # IRIX /sbin/install
8639 # AIX /bin/install
8640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8642 # ./install, which can be erroneously created by make from ./install.sh.
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8644 $as_echo_n "checking for a BSD compatible install... " >&6; }
8645 if test -z "$INSTALL"; then
8646 if ${ac_cv_path_install+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8650 for ac_dir in $PATH; do
8651 # Account for people who put trailing slashes in PATH elements.
8652 case "$ac_dir/" in
8653 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8655 # OSF1 and SCO ODT 3.0 have their own names for install.
8656 for ac_prog in ginstall scoinst install; do
8657 if test -f $ac_dir/$ac_prog; then
8658 if test $ac_prog = install &&
8659 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8660 # AIX install. It has an incompatible calling convention.
8661 # OSF/1 installbsd also uses dspmsg, but is usable.
8663 else
8664 ac_cv_path_install="$ac_dir/$ac_prog -c"
8665 break 2
8668 done
8670 esac
8671 done
8672 IFS="$ac_save_IFS"
8675 if test "${ac_cv_path_install+set}" = set; then
8676 INSTALL="$ac_cv_path_install"
8677 else
8678 # As a last resort, use the slow shell script. We don't cache a
8679 # path for INSTALL within a source directory, because that will
8680 # break other packages using the cache if that directory is
8681 # removed, or if the path is relative.
8682 INSTALL="$ac_install_sh"
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8686 $as_echo "$INSTALL" >&6; }
8688 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8689 # It thinks the first close brace ends the variable substitution.
8690 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8695 # See if cmp has --ignore-initial.
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8697 $as_echo_n "checking for cmp's capabilities... " >&6; }
8698 if ${gcc_cv_prog_cmp_skip+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 echo abfoo >t1
8702 echo cdfoo >t2
8703 gcc_cv_prog_cmp_skip=slowcompare
8704 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8705 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8707 else
8708 gcc_cv_prog_cmp_skip=gnucompare
8711 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8712 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8713 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8715 else
8716 gcc_cv_prog_cmp_skip=fastcompare
8720 rm t1 t2
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8724 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8725 make_compare_target=$gcc_cv_prog_cmp_skip
8729 # See if we have the mktemp command.
8730 # Extract the first word of "mktemp", so it can be a program name with args.
8731 set dummy mktemp; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 if test -n "$have_mktemp_command"; then
8738 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747 ac_cv_prog_have_mktemp_command="yes"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 break 2
8751 done
8752 done
8753 IFS=$as_save_IFS
8755 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8758 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8759 if test -n "$have_mktemp_command"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8761 $as_echo "$have_mktemp_command" >&6; }
8762 else
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8769 # See if makeinfo has been installed and is modern enough
8770 # that we can use it.
8772 # Extract the first word of "makeinfo", so it can be a program name with args.
8773 set dummy makeinfo; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if ${ac_cv_prog_MAKEINFO+:} false; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 if test -n "$MAKEINFO"; then
8780 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8781 else
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in $PATH
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8789 ac_cv_prog_MAKEINFO="makeinfo"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8793 done
8794 done
8795 IFS=$as_save_IFS
8799 MAKEINFO=$ac_cv_prog_MAKEINFO
8800 if test -n "$MAKEINFO"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8802 $as_echo "$MAKEINFO" >&6; }
8803 else
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8809 if test -n "$MAKEINFO"; then
8810 # Found it, now check the version.
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8812 $as_echo_n "checking for modern makeinfo... " >&6; }
8813 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8817 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8819 case $ac_prog_version in
8820 '') gcc_cv_prog_makeinfo_modern=no;;
8821 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8822 *) gcc_cv_prog_makeinfo_modern=no;;
8823 esac
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8827 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8828 else
8829 gcc_cv_prog_makeinfo_modern=no
8831 if test $gcc_cv_prog_makeinfo_modern = no; then
8832 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8835 if test $gcc_cv_prog_makeinfo_modern = no; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8837 *** Makeinfo is missing or too old.
8838 *** Info documentation will not be built." >&5
8839 $as_echo "$as_me: WARNING:
8840 *** Makeinfo is missing or too old.
8841 *** Info documentation will not be built." >&2;}
8842 BUILD_INFO=
8843 else
8844 BUILD_INFO=info
8848 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8849 # If it does, we want to pass it to makeinfo in order to restore the old
8850 # behavior of @{summary,}contents placement.
8851 MAKEINFO_TOC_INLINE_FLAG=
8852 if test x"$MAKEINFO" != x; then :
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8855 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8856 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8860 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8861 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8862 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8863 gcc_cv_texi_add_toc_inline_flags=no
8864 else
8865 gcc_cv_texi_add_toc_inline_flags=yes
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8870 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8871 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8872 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8878 # Is pod2man recent enough to regenerate manpages?
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8880 $as_echo_n "checking for recent Pod::Man... " >&6; }
8881 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8883 $as_echo "yes" >&6; }
8884 GENERATED_MANPAGES=generated-manpages
8885 else
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8888 GENERATED_MANPAGES=
8892 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8894 # How about lex?
8895 for ac_prog in flex
8897 # Extract the first word of "$ac_prog", so it can be a program name with args.
8898 set dummy $ac_prog; ac_word=$2
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8900 $as_echo_n "checking for $ac_word... " >&6; }
8901 if ${ac_cv_prog_FLEX+:} false; then :
8902 $as_echo_n "(cached) " >&6
8903 else
8904 if test -n "$FLEX"; then
8905 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8906 else
8907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908 for as_dir in $PATH
8910 IFS=$as_save_IFS
8911 test -z "$as_dir" && as_dir=.
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8914 ac_cv_prog_FLEX="$ac_prog"
8915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8916 break 2
8918 done
8919 done
8920 IFS=$as_save_IFS
8924 FLEX=$ac_cv_prog_FLEX
8925 if test -n "$FLEX"; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8927 $as_echo "$FLEX" >&6; }
8928 else
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8934 test -n "$FLEX" && break
8935 done
8936 test -n "$FLEX" || FLEX="$MISSING flex"
8939 # Bison?
8940 for ac_prog in bison
8942 # Extract the first word of "$ac_prog", so it can be a program name with args.
8943 set dummy $ac_prog; ac_word=$2
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945 $as_echo_n "checking for $ac_word... " >&6; }
8946 if ${ac_cv_prog_BISON+:} false; then :
8947 $as_echo_n "(cached) " >&6
8948 else
8949 if test -n "$BISON"; then
8950 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8951 else
8952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 for as_dir in $PATH
8955 IFS=$as_save_IFS
8956 test -z "$as_dir" && as_dir=.
8957 for ac_exec_ext in '' $ac_executable_extensions; do
8958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8959 ac_cv_prog_BISON="$ac_prog"
8960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8961 break 2
8963 done
8964 done
8965 IFS=$as_save_IFS
8969 BISON=$ac_cv_prog_BISON
8970 if test -n "$BISON"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8972 $as_echo "$BISON" >&6; }
8973 else
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8979 test -n "$BISON" && break
8980 done
8981 test -n "$BISON" || BISON="$MISSING bison"
8984 # Python3?
8986 # Extract the first word of "python3", so it can be a program name with args.
8987 set dummy python3; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if ${ac_cv_prog_PYTHON+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 if test -n "$PYTHON"; then
8994 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
8995 else
8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 for as_dir in $PATH
8999 IFS=$as_save_IFS
9000 test -z "$as_dir" && as_dir=.
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9003 ac_cv_prog_PYTHON="python3"
9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 break 2
9007 done
9008 done
9009 IFS=$as_save_IFS
9013 PYTHON=$ac_cv_prog_PYTHON
9014 if test -n "$PYTHON"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9016 $as_echo "$PYTHON" >&6; }
9017 else
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9023 if test -n "$PYTHON"; then
9024 # Found it, now check the version.
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9026 $as_echo_n "checking for modern python3... " >&6; }
9027 if ${gcc_cv_prog_python3_modern+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 ac_prog_version=`eval $PYTHON --version 2>&1 |
9031 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9033 case $ac_prog_version in
9034 '') gcc_cv_prog_python3_modern=no;;
9035 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9036 *) gcc_cv_prog_python3_modern=no;;
9037 esac
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9041 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9042 else
9043 gcc_cv_prog_python3_modern=no
9045 if test $gcc_cv_prog_python3_modern = no; then
9046 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9049 if test $gcc_cv_prog_python3_modern = no; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9051 *** Python3 is missing.
9052 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9053 $as_echo "$as_me: WARNING:
9054 *** Python3 is missing.
9055 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9056 HAVE_PYTHON=no
9057 else
9058 HAVE_PYTHON=yes
9062 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9063 # check for build == host before using them.
9065 # NM
9066 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9067 && test -d ../binutils ; then
9068 NM='${objdir}/../binutils/nm-new'
9069 else
9070 # Extract the first word of "nm", so it can be a program name with args.
9071 set dummy nm; ac_word=$2
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073 $as_echo_n "checking for $ac_word... " >&6; }
9074 if ${ac_cv_prog_NM+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 if test -n "$NM"; then
9078 ac_cv_prog_NM="$NM" # Let the user override the test.
9079 else
9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in $PATH
9083 IFS=$as_save_IFS
9084 test -z "$as_dir" && as_dir=.
9085 for ac_exec_ext in '' $ac_executable_extensions; do
9086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9087 ac_cv_prog_NM="nm"
9088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089 break 2
9091 done
9092 done
9093 IFS=$as_save_IFS
9095 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9098 NM=$ac_cv_prog_NM
9099 if test -n "$NM"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9101 $as_echo "$NM" >&6; }
9102 else
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9110 # AR
9111 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9112 && test -d ../binutils ; then
9113 AR='${objdir}/../binutils/ar'
9114 else
9115 # Extract the first word of "ar", so it can be a program name with args.
9116 set dummy ar; ac_word=$2
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9118 $as_echo_n "checking for $ac_word... " >&6; }
9119 if ${ac_cv_prog_AR+:} false; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 if test -n "$AR"; then
9123 ac_cv_prog_AR="$AR" # Let the user override the test.
9124 else
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 for as_dir in $PATH
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9132 ac_cv_prog_AR="ar"
9133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9136 done
9137 done
9138 IFS=$as_save_IFS
9140 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9143 AR=$ac_cv_prog_AR
9144 if test -n "$AR"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9146 $as_echo "$AR" >&6; }
9147 else
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9155 # The jit documentation looks better if built with sphinx, but can be
9156 # built with texinfo if sphinx is not available.
9157 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9158 # Extract the first word of "sphinx-build", so it can be a program name with args.
9159 set dummy sphinx-build; ac_word=$2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if ${ac_cv_prog_doc_build_sys+:} false; then :
9163 $as_echo_n "(cached) " >&6
9164 else
9165 if test -n "$doc_build_sys"; then
9166 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9167 else
9168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169 for as_dir in $PATH
9171 IFS=$as_save_IFS
9172 test -z "$as_dir" && as_dir=.
9173 for ac_exec_ext in '' $ac_executable_extensions; do
9174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9175 ac_cv_prog_doc_build_sys="sphinx"
9176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9177 break 2
9179 done
9180 done
9181 IFS=$as_save_IFS
9183 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9186 doc_build_sys=$ac_cv_prog_doc_build_sys
9187 if test -n "$doc_build_sys"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9189 $as_echo "$doc_build_sys" >&6; }
9190 else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9197 # --------------------
9198 # Checks for C headers
9199 # --------------------
9201 # Need to reject headers which give warnings, so that the -Werror bootstrap
9202 # works later. *sigh* This needs to come before all header checks.
9204 ac_c_preproc_warn_flag=yes
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9207 $as_echo_n "checking for ANSI C header files... " >&6; }
9208 if ${ac_cv_header_stdc+:} false; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213 #include <stdlib.h>
9214 #include <stdarg.h>
9215 #include <string.h>
9216 #include <float.h>
9219 main ()
9223 return 0;
9225 _ACEOF
9226 if ac_fn_cxx_try_compile "$LINENO"; then :
9227 ac_cv_header_stdc=yes
9228 else
9229 ac_cv_header_stdc=no
9231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9233 if test $ac_cv_header_stdc = yes; then
9234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237 #include <string.h>
9239 _ACEOF
9240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9241 $EGREP "memchr" >/dev/null 2>&1; then :
9243 else
9244 ac_cv_header_stdc=no
9246 rm -f conftest*
9250 if test $ac_cv_header_stdc = yes; then
9251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254 #include <stdlib.h>
9256 _ACEOF
9257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9258 $EGREP "free" >/dev/null 2>&1; then :
9260 else
9261 ac_cv_header_stdc=no
9263 rm -f conftest*
9267 if test $ac_cv_header_stdc = yes; then
9268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9269 if test "$cross_compiling" = yes; then :
9271 else
9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9274 #include <ctype.h>
9275 #include <stdlib.h>
9276 #if ((' ' & 0x0FF) == 0x020)
9277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9279 #else
9280 # define ISLOWER(c) \
9281 (('a' <= (c) && (c) <= 'i') \
9282 || ('j' <= (c) && (c) <= 'r') \
9283 || ('s' <= (c) && (c) <= 'z'))
9284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9285 #endif
9287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9289 main ()
9291 int i;
9292 for (i = 0; i < 256; i++)
9293 if (XOR (islower (i), ISLOWER (i))
9294 || toupper (i) != TOUPPER (i))
9295 return 2;
9296 return 0;
9298 _ACEOF
9299 if ac_fn_cxx_try_run "$LINENO"; then :
9301 else
9302 ac_cv_header_stdc=no
9304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9305 conftest.$ac_objext conftest.beam conftest.$ac_ext
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9311 $as_echo "$ac_cv_header_stdc" >&6; }
9312 if test $ac_cv_header_stdc = yes; then
9314 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9319 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9320 if ${ac_cv_header_time+:} false; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 #include <sys/types.h>
9326 #include <sys/time.h>
9327 #include <time.h>
9330 main ()
9332 if ((struct tm *) 0)
9333 return 0;
9335 return 0;
9337 _ACEOF
9338 if ac_fn_cxx_try_compile "$LINENO"; then :
9339 ac_cv_header_time=yes
9340 else
9341 ac_cv_header_time=no
9343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9346 $as_echo "$ac_cv_header_time" >&6; }
9347 if test $ac_cv_header_time = yes; then
9349 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9354 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9355 if ${gcc_cv_header_string+:} false; then :
9356 $as_echo_n "(cached) " >&6
9357 else
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 #include <string.h>
9361 #include <strings.h>
9363 main ()
9367 return 0;
9369 _ACEOF
9370 if ac_fn_cxx_try_compile "$LINENO"; then :
9371 gcc_cv_header_string=yes
9372 else
9373 gcc_cv_header_string=no
9375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9378 $as_echo "$gcc_cv_header_string" >&6; }
9379 if test $gcc_cv_header_string = yes; then
9381 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9386 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9387 if ${ac_cv_header_sys_wait_h+:} false; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9392 #include <sys/types.h>
9393 #include <sys/wait.h>
9394 #ifndef WEXITSTATUS
9395 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9396 #endif
9397 #ifndef WIFEXITED
9398 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9399 #endif
9402 main ()
9404 int s;
9405 wait (&s);
9406 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9408 return 0;
9410 _ACEOF
9411 if ac_fn_cxx_try_compile "$LINENO"; then :
9412 ac_cv_header_sys_wait_h=yes
9413 else
9414 ac_cv_header_sys_wait_h=no
9416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9419 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9420 if test $ac_cv_header_sys_wait_h = yes; then
9422 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9427 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9428 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9429 $as_echo_n "(cached) " >&6
9430 else
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9433 #include <sys/types.h>
9434 #include <termios.h>
9435 #ifdef TIOCGWINSZ
9437 #endif
9439 _ACEOF
9440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9441 $EGREP "yes" >/dev/null 2>&1; then :
9442 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9443 else
9444 ac_cv_sys_tiocgwinsz_in_termios_h=no
9446 rm -f conftest*
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9450 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9452 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9454 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9455 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9456 $as_echo_n "(cached) " >&6
9457 else
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 #include <sys/types.h>
9461 #include <sys/ioctl.h>
9462 #ifdef TIOCGWINSZ
9464 #endif
9466 _ACEOF
9467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9468 $EGREP "yes" >/dev/null 2>&1; then :
9469 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9470 else
9471 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9473 rm -f conftest*
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9477 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9479 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9481 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9486 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9487 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9488 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9489 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9490 do :
9491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9492 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9493 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9494 cat >>confdefs.h <<_ACEOF
9495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9496 _ACEOF
9499 done
9502 # Check for thread headers.
9503 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9504 if test "x$ac_cv_header_thread_h" = xyes; then :
9505 have_thread_h=yes
9506 else
9507 have_thread_h=
9510 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9511 if test "x$ac_cv_header_pthread_h" = xyes; then :
9512 have_pthread_h=yes
9513 else
9514 have_pthread_h=
9518 # These tests can't be done till we know if we have limits.h.
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9520 $as_echo_n "checking for CHAR_BIT... " >&6; }
9521 if ${gcc_cv_decl_char_bit+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526 #ifdef HAVE_LIMITS_H
9527 #include <limits.h>
9528 #endif
9529 #ifdef CHAR_BIT
9530 found
9531 #endif
9532 _ACEOF
9533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9534 $EGREP "found" >/dev/null 2>&1; then :
9535 gcc_cv_decl_char_bit=yes
9536 else
9537 gcc_cv_decl_char_bit=no
9539 rm -f conftest*
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9544 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9545 if test $gcc_cv_decl_char_bit = no; then
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9547 $as_echo_n "checking number of bits in a byte... " >&6; }
9548 if ${gcc_cv_c_nbby+:} false; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9552 gcc_cv_c_nbby=
9553 while test $i -lt 65; do
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9558 main ()
9560 switch(0) {
9561 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9562 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9565 return 0;
9567 _ACEOF
9568 if ac_fn_cxx_try_compile "$LINENO"; then :
9569 gcc_cv_c_nbby=$i; break
9571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9572 i=`expr $i + 1`
9573 done
9574 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9578 $as_echo "$gcc_cv_c_nbby" >&6; }
9579 if test $gcc_cv_c_nbby = failed; then
9580 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9581 else
9583 cat >>confdefs.h <<_ACEOF
9584 #define CHAR_BIT $gcc_cv_c_nbby
9585 _ACEOF
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9590 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9591 if ${ac_cv_c_bigendian+:} false; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 ac_cv_c_bigendian=unknown
9595 # See if we're dealing with a universal compiler.
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598 #ifndef __APPLE_CC__
9599 not a universal capable compiler
9600 #endif
9601 typedef int dummy;
9603 _ACEOF
9604 if ac_fn_cxx_try_compile "$LINENO"; then :
9606 # Check for potential -arch flags. It is not universal unless
9607 # there are at least two -arch flags with different values.
9608 ac_arch=
9609 ac_prev=
9610 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9611 if test -n "$ac_prev"; then
9612 case $ac_word in
9613 i?86 | x86_64 | ppc | ppc64)
9614 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9615 ac_arch=$ac_word
9616 else
9617 ac_cv_c_bigendian=universal
9618 break
9621 esac
9622 ac_prev=
9623 elif test "x$ac_word" = "x-arch"; then
9624 ac_prev=arch
9626 done
9628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9629 if test $ac_cv_c_bigendian = unknown; then
9630 # See if sys/param.h defines the BYTE_ORDER macro.
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633 #include <sys/types.h>
9634 #include <sys/param.h>
9637 main ()
9639 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9640 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9641 && LITTLE_ENDIAN)
9642 bogus endian macros
9643 #endif
9646 return 0;
9648 _ACEOF
9649 if ac_fn_cxx_try_compile "$LINENO"; then :
9650 # It does; now see whether it defined to BIG_ENDIAN or not.
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #include <sys/types.h>
9654 #include <sys/param.h>
9657 main ()
9659 #if BYTE_ORDER != BIG_ENDIAN
9660 not big endian
9661 #endif
9664 return 0;
9666 _ACEOF
9667 if ac_fn_cxx_try_compile "$LINENO"; then :
9668 ac_cv_c_bigendian=yes
9669 else
9670 ac_cv_c_bigendian=no
9672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676 if test $ac_cv_c_bigendian = unknown; then
9677 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 #include <limits.h>
9683 main ()
9685 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9686 bogus endian macros
9687 #endif
9690 return 0;
9692 _ACEOF
9693 if ac_fn_cxx_try_compile "$LINENO"; then :
9694 # It does; now see whether it defined to _BIG_ENDIAN or not.
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9697 #include <limits.h>
9700 main ()
9702 #ifndef _BIG_ENDIAN
9703 not big endian
9704 #endif
9707 return 0;
9709 _ACEOF
9710 if ac_fn_cxx_try_compile "$LINENO"; then :
9711 ac_cv_c_bigendian=yes
9712 else
9713 ac_cv_c_bigendian=no
9715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9719 if test $ac_cv_c_bigendian = unknown; then
9720 # Compile a test program.
9721 if test "$cross_compiling" = yes; then :
9722 # Try to guess by grepping values from an object file.
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9725 short int ascii_mm[] =
9726 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9727 short int ascii_ii[] =
9728 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9729 int use_ascii (int i) {
9730 return ascii_mm[i] + ascii_ii[i];
9732 short int ebcdic_ii[] =
9733 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9734 short int ebcdic_mm[] =
9735 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9736 int use_ebcdic (int i) {
9737 return ebcdic_mm[i] + ebcdic_ii[i];
9739 extern int foo;
9742 main ()
9744 return use_ascii (foo) == use_ebcdic (foo);
9746 return 0;
9748 _ACEOF
9749 if ac_fn_cxx_try_compile "$LINENO"; then :
9750 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9751 ac_cv_c_bigendian=yes
9753 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9754 if test "$ac_cv_c_bigendian" = unknown; then
9755 ac_cv_c_bigendian=no
9756 else
9757 # finding both strings is unlikely to happen, but who knows?
9758 ac_cv_c_bigendian=unknown
9762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9763 else
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9766 $ac_includes_default
9768 main ()
9771 /* Are we little or big endian? From Harbison&Steele. */
9772 union
9774 long int l;
9775 char c[sizeof (long int)];
9776 } u;
9777 u.l = 1;
9778 return u.c[sizeof (long int) - 1] == 1;
9781 return 0;
9783 _ACEOF
9784 if ac_fn_cxx_try_run "$LINENO"; then :
9785 ac_cv_c_bigendian=no
9786 else
9787 ac_cv_c_bigendian=yes
9789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9790 conftest.$ac_objext conftest.beam conftest.$ac_ext
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9796 $as_echo "$ac_cv_c_bigendian" >&6; }
9797 case $ac_cv_c_bigendian in #(
9798 yes)
9799 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9800 ;; #(
9802 ;; #(
9803 universal)
9805 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9807 ;; #(
9809 as_fn_error $? "unknown endianness
9810 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9811 esac
9814 # ----------------------
9815 # Checks for C++ headers
9816 # ----------------------
9818 ac_ext=cpp
9819 ac_cpp='$CXXCPP $CPPFLAGS'
9820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9824 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9825 if test -z "$CXXCPP"; then
9826 if ${ac_cv_prog_CXXCPP+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 # Double quotes because CXXCPP needs to be expanded
9830 for CXXCPP in "$CXX -E" "/lib/cpp"
9832 ac_preproc_ok=false
9833 for ac_cxx_preproc_warn_flag in '' yes
9835 # Use a header file that comes with gcc, so configuring glibc
9836 # with a fresh cross-compiler works.
9837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9838 # <limits.h> exists even on freestanding compilers.
9839 # On the NeXT, cc -E runs the code through the compiler's parser,
9840 # not just through cpp. "Syntax error" is here to catch this case.
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9843 #ifdef __STDC__
9844 # include <limits.h>
9845 #else
9846 # include <assert.h>
9847 #endif
9848 Syntax error
9849 _ACEOF
9850 if ac_fn_cxx_try_cpp "$LINENO"; then :
9852 else
9853 # Broken: fails on valid input.
9854 continue
9856 rm -f conftest.err conftest.i conftest.$ac_ext
9858 # OK, works on sane cases. Now check whether nonexistent headers
9859 # can be detected and how.
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9862 #include <ac_nonexistent.h>
9863 _ACEOF
9864 if ac_fn_cxx_try_cpp "$LINENO"; then :
9865 # Broken: success on invalid input.
9866 continue
9867 else
9868 # Passes both tests.
9869 ac_preproc_ok=:
9870 break
9872 rm -f conftest.err conftest.i conftest.$ac_ext
9874 done
9875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9876 rm -f conftest.i conftest.err conftest.$ac_ext
9877 if $ac_preproc_ok; then :
9878 break
9881 done
9882 ac_cv_prog_CXXCPP=$CXXCPP
9885 CXXCPP=$ac_cv_prog_CXXCPP
9886 else
9887 ac_cv_prog_CXXCPP=$CXXCPP
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9890 $as_echo "$CXXCPP" >&6; }
9891 ac_preproc_ok=false
9892 for ac_cxx_preproc_warn_flag in '' yes
9894 # Use a header file that comes with gcc, so configuring glibc
9895 # with a fresh cross-compiler works.
9896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9897 # <limits.h> exists even on freestanding compilers.
9898 # On the NeXT, cc -E runs the code through the compiler's parser,
9899 # not just through cpp. "Syntax error" is here to catch this case.
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 #ifdef __STDC__
9903 # include <limits.h>
9904 #else
9905 # include <assert.h>
9906 #endif
9907 Syntax error
9908 _ACEOF
9909 if ac_fn_cxx_try_cpp "$LINENO"; then :
9911 else
9912 # Broken: fails on valid input.
9913 continue
9915 rm -f conftest.err conftest.i conftest.$ac_ext
9917 # OK, works on sane cases. Now check whether nonexistent headers
9918 # can be detected and how.
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9921 #include <ac_nonexistent.h>
9922 _ACEOF
9923 if ac_fn_cxx_try_cpp "$LINENO"; then :
9924 # Broken: success on invalid input.
9925 continue
9926 else
9927 # Passes both tests.
9928 ac_preproc_ok=:
9929 break
9931 rm -f conftest.err conftest.i conftest.$ac_ext
9933 done
9934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9935 rm -f conftest.i conftest.err conftest.$ac_ext
9936 if $ac_preproc_ok; then :
9938 else
9939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9942 See \`config.log' for more details" >&5
9943 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9944 See \`config.log' for more details" >&2;}; }
9947 ac_ext=cpp
9948 ac_cpp='$CXXCPP $CPPFLAGS'
9949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9954 for ac_header in unordered_map
9955 do :
9956 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9957 if test "x$ac_cv_header_unordered_map" = xyes; then :
9958 cat >>confdefs.h <<_ACEOF
9959 #define HAVE_UNORDERED_MAP 1
9960 _ACEOF
9963 done
9965 for ac_header in tr1/unordered_map
9966 do :
9967 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9968 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9969 cat >>confdefs.h <<_ACEOF
9970 #define HAVE_TR1_UNORDERED_MAP 1
9971 _ACEOF
9974 done
9976 for ac_header in ext/hash_map
9977 do :
9978 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9979 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9980 cat >>confdefs.h <<_ACEOF
9981 #define HAVE_EXT_HASH_MAP 1
9982 _ACEOF
9985 done
9988 # --------
9989 # Dependency checking.
9990 # --------
9992 rm -rf .tst 2>/dev/null
9993 mkdir .tst 2>/dev/null
9994 if test -d .tst; then
9995 am__leading_dot=.
9996 else
9997 am__leading_dot=_
9999 rmdir .tst 2>/dev/null
10001 DEPDIR="${am__leading_dot}deps"
10003 ac_config_commands="$ac_config_commands depdir"
10006 ac_config_commands="$ac_config_commands gccdepdir"
10009 depcc="$CXX" am_compiler_list=
10011 am_depcomp=$ac_aux_dir/depcomp
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10013 $as_echo_n "checking dependency style of $depcc... " >&6; }
10014 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
10015 $as_echo_n "(cached) " >&6
10016 else
10017 if test -f "$am_depcomp"; then
10018 # We make a subdir and do the tests there. Otherwise we can end up
10019 # making bogus files that we don't know about and never remove. For
10020 # instance it was reported that on HP-UX the gcc test will end up
10021 # making a dummy file named `D' -- because `-MD' means `put the output
10022 # in D'.
10023 mkdir conftest.dir
10024 # Copy depcomp to subdir because otherwise we won't find it if we're
10025 # using a relative directory.
10026 cp "$am_depcomp" conftest.dir
10027 cd conftest.dir
10028 # We will build objects and dependencies in a subdirectory because
10029 # it helps to detect inapplicable dependency modes. For instance
10030 # both Tru64's cc and ICC support -MD to output dependencies as a
10031 # side effect of compilation, but ICC will put the dependencies in
10032 # the current directory while Tru64 will put them in the object
10033 # directory.
10034 mkdir sub
10036 am_cv_CXX_dependencies_compiler_type=none
10037 if test "$am_compiler_list" = ""; then
10038 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10040 for depmode in $am_compiler_list; do
10041 if test $depmode = none; then break; fi
10043 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10044 # Setup a source with many dependencies, because some compilers
10045 # like to wrap large dependency lists on column 80 (with \), and
10046 # we should not choose a depcomp mode which is confused by this.
10048 # We need to recreate these files for each test, as the compiler may
10049 # overwrite some of them when testing with obscure command lines.
10050 # This happens at least with the AIX C compiler.
10051 : > sub/conftest.c
10052 for i in 1 2 3 4 5 6; do
10053 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10054 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10055 # Solaris 8's {/usr,}/bin/sh.
10056 touch sub/conftst$i.h
10057 done
10058 echo "include sub/conftest.Po" > confmf
10060 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10061 # mode. It turns out that the SunPro C++ compiler does not properly
10062 # handle `-M -o', and we need to detect this.
10063 depcmd="depmode=$depmode \
10064 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10065 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10066 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10067 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10068 if env $depcmd > conftest.err 2>&1 &&
10069 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10070 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10071 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10072 # icc doesn't choke on unknown options, it will just issue warnings
10073 # or remarks (even with -Werror). So we grep stderr for any message
10074 # that says an option was ignored or not supported.
10075 # When given -MP, icc 7.0 and 7.1 complain thusly:
10076 # icc: Command line warning: ignoring option '-M'; no argument required
10077 # The diagnosis changed in icc 8.0:
10078 # icc: Command line remark: option '-MP' not supported
10079 if (grep 'ignoring option' conftest.err ||
10080 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10081 am_cv_CXX_dependencies_compiler_type=$depmode
10082 $as_echo "$as_me:$LINENO: success" >&5
10083 break
10086 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10087 sed -e 's/^/| /' < conftest.err >&5
10088 done
10090 cd ..
10091 rm -rf conftest.dir
10092 else
10093 am_cv_CXX_dependencies_compiler_type=none
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10098 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10099 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10100 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10101 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10106 # --------
10107 # UNSORTED
10108 # --------
10111 # These libraries may be used by collect2.
10112 # We may need a special search path to get them linked.
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10114 $as_echo_n "checking for collect2 libraries... " >&6; }
10115 if ${gcc_cv_collect2_libs+:} false; then :
10116 $as_echo_n "(cached) " >&6
10117 else
10118 save_LIBS="$LIBS"
10119 for libs in '' -lld -lmld \
10120 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10121 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10123 LIBS="$libs"
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10127 /* Override any GCC internal prototype to avoid an error.
10128 Use char because int might match the return type of a GCC
10129 builtin and then its argument prototype would still apply. */
10130 #ifdef __cplusplus
10131 extern "C"
10132 #endif
10133 char ldopen ();
10135 main ()
10137 return ldopen ();
10139 return 0;
10141 _ACEOF
10142 if ac_fn_cxx_try_link "$LINENO"; then :
10143 gcc_cv_collect2_libs="$libs"; break
10145 rm -f core conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
10147 done
10148 LIBS="$save_LIBS"
10149 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10152 $as_echo "$gcc_cv_collect2_libs" >&6; }
10153 case $gcc_cv_collect2_libs in
10154 "none required") ;;
10155 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10156 esac
10159 # When building Ada code on Alpha, we need exc_resume which is usually in
10160 # -lexc. So test for it.
10161 save_LIBS="$LIBS"
10162 LIBS=
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10164 $as_echo_n "checking for library containing exc_resume... " >&6; }
10165 if ${ac_cv_search_exc_resume+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 ac_func_search_save_LIBS=$LIBS
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10172 /* Override any GCC internal prototype to avoid an error.
10173 Use char because int might match the return type of a GCC
10174 builtin and then its argument prototype would still apply. */
10175 #ifdef __cplusplus
10176 extern "C"
10177 #endif
10178 char exc_resume ();
10180 main ()
10182 return exc_resume ();
10184 return 0;
10186 _ACEOF
10187 for ac_lib in '' exc; do
10188 if test -z "$ac_lib"; then
10189 ac_res="none required"
10190 else
10191 ac_res=-l$ac_lib
10192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10194 if ac_fn_cxx_try_link "$LINENO"; then :
10195 ac_cv_search_exc_resume=$ac_res
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext
10199 if ${ac_cv_search_exc_resume+:} false; then :
10200 break
10202 done
10203 if ${ac_cv_search_exc_resume+:} false; then :
10205 else
10206 ac_cv_search_exc_resume=no
10208 rm conftest.$ac_ext
10209 LIBS=$ac_func_search_save_LIBS
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10212 $as_echo "$ac_cv_search_exc_resume" >&6; }
10213 ac_res=$ac_cv_search_exc_resume
10214 if test "$ac_res" != no; then :
10215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10219 GNAT_LIBEXC="$LIBS"
10220 LIBS="$save_LIBS"
10223 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10224 save_LIBS="$LIBS"
10225 LIBS=
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10227 $as_echo_n "checking for library containing kstat_open... " >&6; }
10228 if ${ac_cv_search_kstat_open+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 ac_func_search_save_LIBS=$LIBS
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10235 /* Override any GCC internal prototype to avoid an error.
10236 Use char because int might match the return type of a GCC
10237 builtin and then its argument prototype would still apply. */
10238 #ifdef __cplusplus
10239 extern "C"
10240 #endif
10241 char kstat_open ();
10243 main ()
10245 return kstat_open ();
10247 return 0;
10249 _ACEOF
10250 for ac_lib in '' kstat; do
10251 if test -z "$ac_lib"; then
10252 ac_res="none required"
10253 else
10254 ac_res=-l$ac_lib
10255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10257 if ac_fn_cxx_try_link "$LINENO"; then :
10258 ac_cv_search_kstat_open=$ac_res
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext
10262 if ${ac_cv_search_kstat_open+:} false; then :
10263 break
10265 done
10266 if ${ac_cv_search_kstat_open+:} false; then :
10268 else
10269 ac_cv_search_kstat_open=no
10271 rm conftest.$ac_ext
10272 LIBS=$ac_func_search_save_LIBS
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10275 $as_echo "$ac_cv_search_kstat_open" >&6; }
10276 ac_res=$ac_cv_search_kstat_open
10277 if test "$ac_res" != no; then :
10278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10282 EXTRA_GCC_LIBS="$LIBS"
10283 LIBS="$save_LIBS"
10286 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10287 # C++ needs those for libcody.
10288 save_LIBS="$LIBS"
10289 LIBS=
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10292 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10293 if ${ac_cv_search_gethostbyname+:} false; then :
10294 $as_echo_n "(cached) " >&6
10295 else
10296 ac_func_search_save_LIBS=$LIBS
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10300 /* Override any GCC internal prototype to avoid an error.
10301 Use char because int might match the return type of a GCC
10302 builtin and then its argument prototype would still apply. */
10303 #ifdef __cplusplus
10304 extern "C"
10305 #endif
10306 char gethostbyname ();
10308 main ()
10310 return gethostbyname ();
10312 return 0;
10314 _ACEOF
10315 for ac_lib in '' nsl; do
10316 if test -z "$ac_lib"; then
10317 ac_res="none required"
10318 else
10319 ac_res=-l$ac_lib
10320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10322 if ac_fn_cxx_try_link "$LINENO"; then :
10323 ac_cv_search_gethostbyname=$ac_res
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext
10327 if ${ac_cv_search_gethostbyname+:} false; then :
10328 break
10330 done
10331 if ${ac_cv_search_gethostbyname+:} false; then :
10333 else
10334 ac_cv_search_gethostbyname=no
10336 rm conftest.$ac_ext
10337 LIBS=$ac_func_search_save_LIBS
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10340 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10341 ac_res=$ac_cv_search_gethostbyname
10342 if test "$ac_res" != no; then :
10343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10348 $as_echo_n "checking for library containing socket... " >&6; }
10349 if ${ac_cv_search_socket+:} false; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 ac_func_search_save_LIBS=$LIBS
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10356 /* Override any GCC internal prototype to avoid an error.
10357 Use char because int might match the return type of a GCC
10358 builtin and then its argument prototype would still apply. */
10359 #ifdef __cplusplus
10360 extern "C"
10361 #endif
10362 char socket ();
10364 main ()
10366 return socket ();
10368 return 0;
10370 _ACEOF
10371 for ac_lib in '' socket; do
10372 if test -z "$ac_lib"; then
10373 ac_res="none required"
10374 else
10375 ac_res=-l$ac_lib
10376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10378 if ac_fn_cxx_try_link "$LINENO"; then :
10379 ac_cv_search_socket=$ac_res
10381 rm -f core conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext
10383 if ${ac_cv_search_socket+:} false; then :
10384 break
10386 done
10387 if ${ac_cv_search_socket+:} false; then :
10389 else
10390 ac_cv_search_socket=no
10392 rm conftest.$ac_ext
10393 LIBS=$ac_func_search_save_LIBS
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10396 $as_echo "$ac_cv_search_socket" >&6; }
10397 ac_res=$ac_cv_search_socket
10398 if test "$ac_res" != no; then :
10399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10401 else
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10404 $as_echo_n "checking for socket in -lsocket... " >&6; }
10405 if ${ac_cv_lib_socket_socket+:} false; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 ac_check_lib_save_LIBS=$LIBS
10409 LIBS="-lsocket -lnsl $LIBS"
10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10416 #ifdef __cplusplus
10417 extern "C"
10418 #endif
10419 char socket ();
10421 main ()
10423 return socket ();
10425 return 0;
10427 _ACEOF
10428 if ac_fn_cxx_try_link "$LINENO"; then :
10429 ac_cv_lib_socket_socket=yes
10430 else
10431 ac_cv_lib_socket_socket=no
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 LIBS=$ac_check_lib_save_LIBS
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10438 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10439 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10440 LIBS="-lsocket -lnsl $LIBS"
10446 NETLIBS="$LIBS"
10447 LIBS="$save_LIBS"
10450 # Some systems put ldexp and frexp in libm instead of libc; assume
10451 # they're both in the same place. jcf-dump needs them.
10452 save_LIBS="$LIBS"
10453 LIBS=
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10455 $as_echo_n "checking for library containing ldexp... " >&6; }
10456 if ${ac_cv_search_ldexp+:} false; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 ac_func_search_save_LIBS=$LIBS
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10463 /* Override any GCC internal prototype to avoid an error.
10464 Use char because int might match the return type of a GCC
10465 builtin and then its argument prototype would still apply. */
10466 #ifdef __cplusplus
10467 extern "C"
10468 #endif
10469 char ldexp ();
10471 main ()
10473 return ldexp ();
10475 return 0;
10477 _ACEOF
10478 for ac_lib in '' m; do
10479 if test -z "$ac_lib"; then
10480 ac_res="none required"
10481 else
10482 ac_res=-l$ac_lib
10483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10485 if ac_fn_cxx_try_link "$LINENO"; then :
10486 ac_cv_search_ldexp=$ac_res
10488 rm -f core conftest.err conftest.$ac_objext \
10489 conftest$ac_exeext
10490 if ${ac_cv_search_ldexp+:} false; then :
10491 break
10493 done
10494 if ${ac_cv_search_ldexp+:} false; then :
10496 else
10497 ac_cv_search_ldexp=no
10499 rm conftest.$ac_ext
10500 LIBS=$ac_func_search_save_LIBS
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10503 $as_echo "$ac_cv_search_ldexp" >&6; }
10504 ac_res=$ac_cv_search_ldexp
10505 if test "$ac_res" != no; then :
10506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10510 LDEXP_LIB="$LIBS"
10511 LIBS="$save_LIBS"
10514 # Some systems need dlopen
10515 save_LIBS="$LIBS"
10516 LIBS=
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10518 $as_echo_n "checking for library containing dlopen... " >&6; }
10519 if ${ac_cv_search_dlopen+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 ac_func_search_save_LIBS=$LIBS
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10526 /* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
10528 builtin and then its argument prototype would still apply. */
10529 #ifdef __cplusplus
10530 extern "C"
10531 #endif
10532 char dlopen ();
10534 main ()
10536 return dlopen ();
10538 return 0;
10540 _ACEOF
10541 for ac_lib in '' dl; do
10542 if test -z "$ac_lib"; then
10543 ac_res="none required"
10544 else
10545 ac_res=-l$ac_lib
10546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10548 if ac_fn_cxx_try_link "$LINENO"; then :
10549 ac_cv_search_dlopen=$ac_res
10551 rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext
10553 if ${ac_cv_search_dlopen+:} false; then :
10554 break
10556 done
10557 if ${ac_cv_search_dlopen+:} false; then :
10559 else
10560 ac_cv_search_dlopen=no
10562 rm conftest.$ac_ext
10563 LIBS=$ac_func_search_save_LIBS
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10566 $as_echo "$ac_cv_search_dlopen" >&6; }
10567 ac_res=$ac_cv_search_dlopen
10568 if test "$ac_res" != no; then :
10569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10573 DL_LIB="$LIBS"
10574 LIBS="$save_LIBS"
10577 # Use <inttypes.h> only if it exists,
10578 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10579 # PRId64
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10581 $as_echo_n "checking for inttypes.h... " >&6; }
10582 if ${gcc_cv_header_inttypes_h+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10587 #define __STDC_FORMAT_MACROS
10588 #include <sys/types.h>
10589 #include <inttypes.h>
10591 main ()
10593 intmax_t i = -1;
10594 #ifndef PRId64
10595 choke me
10596 #endif
10598 return 0;
10600 _ACEOF
10601 if ac_fn_cxx_try_compile "$LINENO"; then :
10602 gcc_cv_header_inttypes_h=yes
10603 else
10604 gcc_cv_header_inttypes_h=no
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10610 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10611 if test $gcc_cv_header_inttypes_h = yes; then
10613 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10617 # Look for the ZSTD package.
10618 ZSTD_INCLUDE=
10619 ZSTD_LIB=
10622 ZSTD_CPPFLAGS=
10623 ZSTD_LDFLAGS=
10627 # Check whether --with-zstd was given.
10628 if test "${with_zstd+set}" = set; then :
10629 withval=$with_zstd;
10633 # Check whether --with-zstd-include was given.
10634 if test "${with_zstd_include+set}" = set; then :
10635 withval=$with_zstd_include;
10639 # Check whether --with-zstd-lib was given.
10640 if test "${with_zstd_lib+set}" = set; then :
10641 withval=$with_zstd_lib;
10644 case "x$with_zstd" in
10645 x) ;;
10646 xno)
10647 ZSTD_INCLUDE=
10648 ZSTD_LIB=
10650 *) ZSTD_INCLUDE=$with_zstd/include
10651 ZSTD_LIB=$with_zstd/lib
10653 esac
10655 if test "x$with_zstd" != xno; then
10656 if test "x$with_zstd_include" != x; then
10657 ZSTD_INCLUDE=$with_zstd_include
10659 if test "x$with_zstd_lib" != x; then
10660 ZSTD_LIB=$with_zstd_lib
10662 if test "x$ZSTD_INCLUDE" != x \
10663 && test "x$ZSTD_INCLUDE" != xno; then
10664 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10666 if test "x$ZSTD_LIB" != x \
10667 && test "x$ZSTD_LIB" != xno; then
10668 ZSTD_LDFLAGS=-L$ZSTD_LIB
10671 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10672 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10674 # LTO can use zstd compression algorithm
10675 save_LIBS="$LIBS"
10676 LIBS=
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10678 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10679 if ${ac_cv_search_ZSTD_compress+:} false; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 ac_func_search_save_LIBS=$LIBS
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10689 #ifdef __cplusplus
10690 extern "C"
10691 #endif
10692 char ZSTD_compress ();
10694 main ()
10696 return ZSTD_compress ();
10698 return 0;
10700 _ACEOF
10701 for ac_lib in '' zstd; do
10702 if test -z "$ac_lib"; then
10703 ac_res="none required"
10704 else
10705 ac_res=-l$ac_lib
10706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10708 if ac_fn_cxx_try_link "$LINENO"; then :
10709 ac_cv_search_ZSTD_compress=$ac_res
10711 rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext
10713 if ${ac_cv_search_ZSTD_compress+:} false; then :
10714 break
10716 done
10717 if ${ac_cv_search_ZSTD_compress+:} false; then :
10719 else
10720 ac_cv_search_ZSTD_compress=no
10722 rm conftest.$ac_ext
10723 LIBS=$ac_func_search_save_LIBS
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10726 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10727 ac_res=$ac_cv_search_ZSTD_compress
10728 if test "$ac_res" != no; then :
10729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10731 else
10732 gcc_cv_header_zstd_h=no
10735 ZSTD_LIB="$LIBS"
10736 LIBS="$save_LIBS"
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10740 $as_echo_n "checking for zstd.h... " >&6; }
10741 if ${gcc_cv_header_zstd_h+:} false; then :
10742 $as_echo_n "(cached) " >&6
10743 else
10744 # We require version 1.3.0 or later. This is the first version that has
10745 # ZSTD_getFrameContentSize.
10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h. */
10748 #include <zstd.h>
10749 #if ZSTD_VERSION_NUMBER < 10300
10750 #error "need zstd 1.3.0 or better"
10751 #endif
10753 main ()
10757 return 0;
10759 _ACEOF
10760 if ac_fn_cxx_try_compile "$LINENO"; then :
10761 gcc_cv_header_zstd_h=yes
10762 else
10763 gcc_cv_header_zstd_h=no
10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10769 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10770 if test $gcc_cv_header_zstd_h = yes; then
10772 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10774 elif test "x$with_zstd" != x; then
10775 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10781 for ac_func in times clock kill getrlimit setrlimit atoq \
10782 popen sysconf strsignal getrusage nl_langinfo \
10783 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10784 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
10785 do :
10786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10787 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10788 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10789 cat >>confdefs.h <<_ACEOF
10790 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10791 _ACEOF
10794 done
10797 if test x$ac_cv_func_mbstowcs = xyes; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10799 $as_echo_n "checking whether mbstowcs works... " >&6; }
10800 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10801 $as_echo_n "(cached) " >&6
10802 else
10803 if test "$cross_compiling" = yes; then :
10804 gcc_cv_func_mbstowcs_works=yes
10805 else
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10808 #include <stdlib.h>
10809 int main()
10811 mbstowcs(0, "", 0);
10812 return 0;
10814 _ACEOF
10815 if ac_fn_cxx_try_run "$LINENO"; then :
10816 gcc_cv_func_mbstowcs_works=yes
10817 else
10818 gcc_cv_func_mbstowcs_works=no
10820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10821 conftest.$ac_objext conftest.beam conftest.$ac_ext
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10826 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10827 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10829 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10834 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10835 if test "x$ac_cv_type_ssize_t" = xyes; then :
10837 else
10839 cat >>confdefs.h <<_ACEOF
10840 #define ssize_t int
10841 _ACEOF
10845 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10846 if test "x$ac_cv_type_caddr_t" = xyes; then :
10848 else
10850 cat >>confdefs.h <<_ACEOF
10851 #define caddr_t char *
10852 _ACEOF
10856 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10858 if test "x$ac_cv_type_sighander_t" = xyes; then :
10860 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10866 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10867 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10868 gcc_header_sys_mman_h=yes
10869 else
10870 gcc_header_sys_mman_h=no
10873 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10874 if test "x$ac_cv_func_mmap" = xyes; then :
10875 gcc_func_mmap=yes
10876 else
10877 gcc_func_mmap=no
10880 if test "$gcc_header_sys_mman_h" != yes \
10881 || test "$gcc_func_mmap" != yes; then
10882 gcc_cv_func_mmap_file=no
10883 gcc_cv_func_mmap_dev_zero=no
10884 gcc_cv_func_mmap_anon=no
10885 else
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10887 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10888 if ${gcc_cv_func_mmap_file+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 # Add a system to this blacklist if
10892 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10893 # memory area containing the same data that you'd get if you applied
10894 # read() to the same fd. The only system known to have a problem here
10895 # is VMS, where text files have record structure.
10896 case "$host_os" in
10897 *vms* | ultrix*)
10898 gcc_cv_func_mmap_file=no ;;
10900 gcc_cv_func_mmap_file=yes;;
10901 esac
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10904 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10906 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10907 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 # Add a system to this blacklist if it has mmap() but /dev/zero
10911 # does not exist, or if mmapping /dev/zero does not give anonymous
10912 # zeroed pages with both the following properties:
10913 # 1. If you map N consecutive pages in with one call, and then
10914 # unmap any subset of those pages, the pages that were not
10915 # explicitly unmapped remain accessible.
10916 # 2. If you map two adjacent blocks of memory and then unmap them
10917 # both at once, they must both go away.
10918 # Systems known to be in this category are Windows (all variants),
10919 # VMS, and Darwin.
10920 case "$host_os" in
10921 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10922 gcc_cv_func_mmap_dev_zero=no ;;
10924 gcc_cv_func_mmap_dev_zero=yes;;
10925 esac
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10928 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10930 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10932 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10933 if ${gcc_cv_decl_map_anon+:} false; then :
10934 $as_echo_n "(cached) " >&6
10935 else
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10938 #include <sys/types.h>
10939 #include <sys/mman.h>
10940 #include <unistd.h>
10942 #ifndef MAP_ANONYMOUS
10943 #define MAP_ANONYMOUS MAP_ANON
10944 #endif
10947 main ()
10949 int n = MAP_ANONYMOUS;
10951 return 0;
10953 _ACEOF
10954 if ac_fn_cxx_try_compile "$LINENO"; then :
10955 gcc_cv_decl_map_anon=yes
10956 else
10957 gcc_cv_decl_map_anon=no
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10962 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10964 if test $gcc_cv_decl_map_anon = no; then
10965 gcc_cv_func_mmap_anon=no
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10968 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10969 if ${gcc_cv_func_mmap_anon+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10973 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10974 # doesn't give anonymous zeroed pages with the same properties listed
10975 # above for use of /dev/zero.
10976 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10977 case "$host_os" in
10978 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10979 gcc_cv_func_mmap_anon=no ;;
10981 gcc_cv_func_mmap_anon=yes;;
10982 esac
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10985 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10989 if test $gcc_cv_func_mmap_file = yes; then
10991 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10994 if test $gcc_cv_func_mmap_dev_zero = yes; then
10996 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10999 if test $gcc_cv_func_mmap_anon = yes; then
11001 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11006 case "${host}" in
11007 *-*-*vms*)
11008 # Under VMS, vfork works very differently than on Unix. The standard test
11009 # won't work, and it isn't easily adaptable. It makes more sense to
11010 # just force it.
11011 ac_cv_func_vfork_works=yes
11013 esac
11014 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11015 if test "x$ac_cv_type_pid_t" = xyes; then :
11017 else
11019 cat >>confdefs.h <<_ACEOF
11020 #define pid_t int
11021 _ACEOF
11025 for ac_header in vfork.h
11026 do :
11027 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11028 if test "x$ac_cv_header_vfork_h" = xyes; then :
11029 cat >>confdefs.h <<_ACEOF
11030 #define HAVE_VFORK_H 1
11031 _ACEOF
11034 done
11036 for ac_func in fork vfork
11037 do :
11038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11039 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11040 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11041 cat >>confdefs.h <<_ACEOF
11042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11043 _ACEOF
11046 done
11048 if test "x$ac_cv_func_fork" = xyes; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11050 $as_echo_n "checking for working fork... " >&6; }
11051 if ${ac_cv_func_fork_works+:} false; then :
11052 $as_echo_n "(cached) " >&6
11053 else
11054 if test "$cross_compiling" = yes; then :
11055 ac_cv_func_fork_works=cross
11056 else
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11059 $ac_includes_default
11061 main ()
11064 /* By Ruediger Kuhlmann. */
11065 return fork () < 0;
11068 return 0;
11070 _ACEOF
11071 if ac_fn_cxx_try_run "$LINENO"; then :
11072 ac_cv_func_fork_works=yes
11073 else
11074 ac_cv_func_fork_works=no
11076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11077 conftest.$ac_objext conftest.beam conftest.$ac_ext
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11082 $as_echo "$ac_cv_func_fork_works" >&6; }
11084 else
11085 ac_cv_func_fork_works=$ac_cv_func_fork
11087 if test "x$ac_cv_func_fork_works" = xcross; then
11088 case $host in
11089 *-*-amigaos* | *-*-msdosdjgpp*)
11090 # Override, as these systems have only a dummy fork() stub
11091 ac_cv_func_fork_works=no
11094 ac_cv_func_fork_works=yes
11096 esac
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11098 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11100 ac_cv_func_vfork_works=$ac_cv_func_vfork
11101 if test "x$ac_cv_func_vfork" = xyes; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11103 $as_echo_n "checking for working vfork... " >&6; }
11104 if ${ac_cv_func_vfork_works+:} false; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 if test "$cross_compiling" = yes; then :
11108 ac_cv_func_vfork_works=cross
11109 else
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11112 /* Thanks to Paul Eggert for this test. */
11113 $ac_includes_default
11114 #include <sys/wait.h>
11115 #ifdef HAVE_VFORK_H
11116 # include <vfork.h>
11117 #endif
11118 /* On some sparc systems, changes by the child to local and incoming
11119 argument registers are propagated back to the parent. The compiler
11120 is told about this with #include <vfork.h>, but some compilers
11121 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11122 static variable whose address is put into a register that is
11123 clobbered by the vfork. */
11124 static void
11125 #ifdef __cplusplus
11126 sparc_address_test (int arg)
11127 # else
11128 sparc_address_test (arg) int arg;
11129 #endif
11131 static pid_t child;
11132 if (!child) {
11133 child = vfork ();
11134 if (child < 0) {
11135 perror ("vfork");
11136 _exit(2);
11138 if (!child) {
11139 arg = getpid();
11140 write(-1, "", 0);
11141 _exit (arg);
11147 main ()
11149 pid_t parent = getpid ();
11150 pid_t child;
11152 sparc_address_test (0);
11154 child = vfork ();
11156 if (child == 0) {
11157 /* Here is another test for sparc vfork register problems. This
11158 test uses lots of local variables, at least as many local
11159 variables as main has allocated so far including compiler
11160 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11161 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11162 reuse the register of parent for one of the local variables,
11163 since it will think that parent can't possibly be used any more
11164 in this routine. Assigning to the local variable will thus
11165 munge parent in the parent process. */
11166 pid_t
11167 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11168 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11169 /* Convince the compiler that p..p7 are live; otherwise, it might
11170 use the same hardware register for all 8 local variables. */
11171 if (p != p1 || p != p2 || p != p3 || p != p4
11172 || p != p5 || p != p6 || p != p7)
11173 _exit(1);
11175 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11176 from child file descriptors. If the child closes a descriptor
11177 before it execs or exits, this munges the parent's descriptor
11178 as well. Test for this by closing stdout in the child. */
11179 _exit(close(fileno(stdout)) != 0);
11180 } else {
11181 int status;
11182 struct stat st;
11184 while (wait(&status) != child)
11186 return (
11187 /* Was there some problem with vforking? */
11188 child < 0
11190 /* Did the child fail? (This shouldn't happen.) */
11191 || status
11193 /* Did the vfork/compiler bug occur? */
11194 || parent != getpid()
11196 /* Did the file descriptor bug occur? */
11197 || fstat(fileno(stdout), &st) != 0
11201 _ACEOF
11202 if ac_fn_cxx_try_run "$LINENO"; then :
11203 ac_cv_func_vfork_works=yes
11204 else
11205 ac_cv_func_vfork_works=no
11207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11208 conftest.$ac_objext conftest.beam conftest.$ac_ext
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11213 $as_echo "$ac_cv_func_vfork_works" >&6; }
11216 if test "x$ac_cv_func_fork_works" = xcross; then
11217 ac_cv_func_vfork_works=$ac_cv_func_vfork
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11219 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11222 if test "x$ac_cv_func_vfork_works" = xyes; then
11224 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11226 else
11228 $as_echo "#define vfork fork" >>confdefs.h
11231 if test "x$ac_cv_func_fork_works" = xyes; then
11233 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11239 if test "X$prefix" = "XNONE"; then
11240 acl_final_prefix="$ac_default_prefix"
11241 else
11242 acl_final_prefix="$prefix"
11244 if test "X$exec_prefix" = "XNONE"; then
11245 acl_final_exec_prefix='${prefix}'
11246 else
11247 acl_final_exec_prefix="$exec_prefix"
11249 acl_save_prefix="$prefix"
11250 prefix="$acl_final_prefix"
11251 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11252 prefix="$acl_save_prefix"
11255 # Check whether --with-gnu-ld was given.
11256 if test "${with_gnu_ld+set}" = set; then :
11257 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11258 else
11259 with_gnu_ld=no
11262 # Prepare PATH_SEPARATOR.
11263 # The user is always right.
11264 if test "${PATH_SEPARATOR+set}" != set; then
11265 echo "#! /bin/sh" >conf$$.sh
11266 echo "exit 0" >>conf$$.sh
11267 chmod +x conf$$.sh
11268 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11269 PATH_SEPARATOR=';'
11270 else
11271 PATH_SEPARATOR=:
11273 rm -f conf$$.sh
11275 ac_prog=ld
11276 if test "$GCC" = yes; then
11277 # Check if gcc -print-prog-name=ld gives a path.
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11279 $as_echo_n "checking for ld used by GCC... " >&6; }
11280 case $host in
11281 *-*-mingw*)
11282 # gcc leaves a trailing carriage return which upsets mingw
11283 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11285 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11286 esac
11287 case $ac_prog in
11288 # Accept absolute paths.
11289 [\\/]* | [A-Za-z]:[\\/]*)
11290 re_direlt='/[^/][^/]*/\.\./'
11291 # Canonicalize the path of ld
11292 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11293 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11294 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11295 done
11296 test -z "$LD" && LD="$ac_prog"
11299 # If it fails, then pretend we aren't using GCC.
11300 ac_prog=ld
11303 # If it is relative, then search for the first ld in PATH.
11304 with_gnu_ld=unknown
11306 esac
11307 elif test "$with_gnu_ld" = yes; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11309 $as_echo_n "checking for GNU ld... " >&6; }
11310 else
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11312 $as_echo_n "checking for non-GNU ld... " >&6; }
11314 if ${acl_cv_path_LD+:} false; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 if test -z "$LD"; then
11318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11319 for ac_dir in $PATH; do
11320 test -z "$ac_dir" && ac_dir=.
11321 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11322 acl_cv_path_LD="$ac_dir/$ac_prog"
11323 # Check to see if the program is GNU ld. I'd rather use --version,
11324 # but apparently some GNU ld's only accept -v.
11325 # Break only if it was the GNU/non-GNU ld that we prefer.
11326 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11327 test "$with_gnu_ld" != no && break
11328 else
11329 test "$with_gnu_ld" != yes && break
11332 done
11333 IFS="$ac_save_ifs"
11334 else
11335 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11339 LD="$acl_cv_path_LD"
11340 if test -n "$LD"; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11342 $as_echo "$LD" >&6; }
11343 else
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 $as_echo "no" >&6; }
11347 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11349 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11350 if ${acl_cv_prog_gnu_ld+:} false; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11354 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11355 acl_cv_prog_gnu_ld=yes
11356 else
11357 acl_cv_prog_gnu_ld=no
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11361 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11362 with_gnu_ld=$acl_cv_prog_gnu_ld
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11367 $as_echo_n "checking for shared library run path origin... " >&6; }
11368 if ${acl_cv_rpath+:} false; then :
11369 $as_echo_n "(cached) " >&6
11370 else
11372 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11373 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11374 . ./conftest.sh
11375 rm -f ./conftest.sh
11376 acl_cv_rpath=done
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11380 $as_echo "$acl_cv_rpath" >&6; }
11381 wl="$acl_cv_wl"
11382 libext="$acl_cv_libext"
11383 shlibext="$acl_cv_shlibext"
11384 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11385 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11386 hardcode_direct="$acl_cv_hardcode_direct"
11387 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11388 # Check whether --enable-rpath was given.
11389 if test "${enable_rpath+set}" = set; then :
11390 enableval=$enable_rpath; :
11391 else
11392 enable_rpath=yes
11402 use_additional=yes
11404 acl_save_prefix="$prefix"
11405 prefix="$acl_final_prefix"
11406 acl_save_exec_prefix="$exec_prefix"
11407 exec_prefix="$acl_final_exec_prefix"
11409 eval additional_includedir=\"$includedir\"
11410 eval additional_libdir=\"$libdir\"
11412 exec_prefix="$acl_save_exec_prefix"
11413 prefix="$acl_save_prefix"
11416 # Check whether --with-libiconv-prefix was given.
11417 if test "${with_libiconv_prefix+set}" = set; then :
11418 withval=$with_libiconv_prefix;
11419 if test "X$withval" = "Xno"; then
11420 use_additional=no
11421 else
11422 if test "X$withval" = "X"; then
11424 acl_save_prefix="$prefix"
11425 prefix="$acl_final_prefix"
11426 acl_save_exec_prefix="$exec_prefix"
11427 exec_prefix="$acl_final_exec_prefix"
11429 eval additional_includedir=\"$includedir\"
11430 eval additional_libdir=\"$libdir\"
11432 exec_prefix="$acl_save_exec_prefix"
11433 prefix="$acl_save_prefix"
11435 else
11436 additional_includedir="$withval/include"
11437 additional_libdir="$withval/lib"
11444 # Check whether --with-libiconv-type was given.
11445 if test "${with_libiconv_type+set}" = set; then :
11446 withval=$with_libiconv_type; with_libiconv_type=$withval
11447 else
11448 with_libiconv_type=auto
11451 lib_type=`eval echo \$with_libiconv_type`
11453 LIBICONV=
11454 LTLIBICONV=
11455 INCICONV=
11456 rpathdirs=
11457 ltrpathdirs=
11458 names_already_handled=
11459 names_next_round='iconv '
11460 while test -n "$names_next_round"; do
11461 names_this_round="$names_next_round"
11462 names_next_round=
11463 for name in $names_this_round; do
11464 already_handled=
11465 for n in $names_already_handled; do
11466 if test "$n" = "$name"; then
11467 already_handled=yes
11468 break
11470 done
11471 if test -z "$already_handled"; then
11472 names_already_handled="$names_already_handled $name"
11473 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11474 eval value=\"\$HAVE_LIB$uppername\"
11475 if test -n "$value"; then
11476 if test "$value" = yes; then
11477 eval value=\"\$LIB$uppername\"
11478 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11479 eval value=\"\$LTLIB$uppername\"
11480 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11481 else
11484 else
11485 found_dir=
11486 found_la=
11487 found_so=
11488 found_a=
11489 if test $use_additional = yes; then
11490 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11491 found_dir="$additional_libdir"
11492 found_so="$additional_libdir/lib$name.$shlibext"
11493 if test -f "$additional_libdir/lib$name.la"; then
11494 found_la="$additional_libdir/lib$name.la"
11496 elif test x$lib_type != xshared; then
11497 if test -f "$additional_libdir/lib$name.$libext"; then
11498 found_dir="$additional_libdir"
11499 found_a="$additional_libdir/lib$name.$libext"
11500 if test -f "$additional_libdir/lib$name.la"; then
11501 found_la="$additional_libdir/lib$name.la"
11506 if test "X$found_dir" = "X"; then
11507 for x in $LDFLAGS $LTLIBICONV; do
11509 acl_save_prefix="$prefix"
11510 prefix="$acl_final_prefix"
11511 acl_save_exec_prefix="$exec_prefix"
11512 exec_prefix="$acl_final_exec_prefix"
11513 eval x=\"$x\"
11514 exec_prefix="$acl_save_exec_prefix"
11515 prefix="$acl_save_prefix"
11517 case "$x" in
11518 -L*)
11519 dir=`echo "X$x" | sed -e 's/^X-L//'`
11520 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11521 found_dir="$dir"
11522 found_so="$dir/lib$name.$shlibext"
11523 if test -f "$dir/lib$name.la"; then
11524 found_la="$dir/lib$name.la"
11526 elif test x$lib_type != xshared; then
11527 if test -f "$dir/lib$name.$libext"; then
11528 found_dir="$dir"
11529 found_a="$dir/lib$name.$libext"
11530 if test -f "$dir/lib$name.la"; then
11531 found_la="$dir/lib$name.la"
11536 esac
11537 if test "X$found_dir" != "X"; then
11538 break
11540 done
11542 if test "X$found_dir" != "X"; then
11543 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11544 if test "X$found_so" != "X"; then
11545 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11547 else
11548 haveit=
11549 for x in $ltrpathdirs; do
11550 if test "X$x" = "X$found_dir"; then
11551 haveit=yes
11552 break
11554 done
11555 if test -z "$haveit"; then
11556 ltrpathdirs="$ltrpathdirs $found_dir"
11558 if test "$hardcode_direct" = yes; then
11559 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11560 else
11561 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11562 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11563 haveit=
11564 for x in $rpathdirs; do
11565 if test "X$x" = "X$found_dir"; then
11566 haveit=yes
11567 break
11569 done
11570 if test -z "$haveit"; then
11571 rpathdirs="$rpathdirs $found_dir"
11573 else
11574 haveit=
11575 for x in $LDFLAGS $LIBICONV; do
11577 acl_save_prefix="$prefix"
11578 prefix="$acl_final_prefix"
11579 acl_save_exec_prefix="$exec_prefix"
11580 exec_prefix="$acl_final_exec_prefix"
11581 eval x=\"$x\"
11582 exec_prefix="$acl_save_exec_prefix"
11583 prefix="$acl_save_prefix"
11585 if test "X$x" = "X-L$found_dir"; then
11586 haveit=yes
11587 break
11589 done
11590 if test -z "$haveit"; then
11591 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11593 if test "$hardcode_minus_L" != no; then
11594 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11595 else
11596 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11601 else
11602 if test "X$found_a" != "X"; then
11603 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11604 else
11605 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11608 additional_includedir=
11609 case "$found_dir" in
11610 */lib | */lib/)
11611 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11612 additional_includedir="$basedir/include"
11614 esac
11615 if test "X$additional_includedir" != "X"; then
11616 if test "X$additional_includedir" != "X/usr/include"; then
11617 haveit=
11618 if test "X$additional_includedir" = "X/usr/local/include"; then
11619 if test -n "$GCC"; then
11620 case $host_os in
11621 linux*) haveit=yes;;
11622 esac
11625 if test -z "$haveit"; then
11626 for x in $CPPFLAGS $INCICONV; do
11628 acl_save_prefix="$prefix"
11629 prefix="$acl_final_prefix"
11630 acl_save_exec_prefix="$exec_prefix"
11631 exec_prefix="$acl_final_exec_prefix"
11632 eval x=\"$x\"
11633 exec_prefix="$acl_save_exec_prefix"
11634 prefix="$acl_save_prefix"
11636 if test "X$x" = "X-I$additional_includedir"; then
11637 haveit=yes
11638 break
11640 done
11641 if test -z "$haveit"; then
11642 if test -d "$additional_includedir"; then
11643 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11649 if test -n "$found_la"; then
11650 save_libdir="$libdir"
11651 case "$found_la" in
11652 */* | *\\*) . "$found_la" ;;
11653 *) . "./$found_la" ;;
11654 esac
11655 libdir="$save_libdir"
11656 for dep in $dependency_libs; do
11657 case "$dep" in
11658 -L*)
11659 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11660 if test "X$additional_libdir" != "X/usr/lib"; then
11661 haveit=
11662 if test "X$additional_libdir" = "X/usr/local/lib"; then
11663 if test -n "$GCC"; then
11664 case $host_os in
11665 linux*) haveit=yes;;
11666 esac
11669 if test -z "$haveit"; then
11670 haveit=
11671 for x in $LDFLAGS $LIBICONV; do
11673 acl_save_prefix="$prefix"
11674 prefix="$acl_final_prefix"
11675 acl_save_exec_prefix="$exec_prefix"
11676 exec_prefix="$acl_final_exec_prefix"
11677 eval x=\"$x\"
11678 exec_prefix="$acl_save_exec_prefix"
11679 prefix="$acl_save_prefix"
11681 if test "X$x" = "X-L$additional_libdir"; then
11682 haveit=yes
11683 break
11685 done
11686 if test -z "$haveit"; then
11687 if test -d "$additional_libdir"; then
11688 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11691 haveit=
11692 for x in $LDFLAGS $LTLIBICONV; do
11694 acl_save_prefix="$prefix"
11695 prefix="$acl_final_prefix"
11696 acl_save_exec_prefix="$exec_prefix"
11697 exec_prefix="$acl_final_exec_prefix"
11698 eval x=\"$x\"
11699 exec_prefix="$acl_save_exec_prefix"
11700 prefix="$acl_save_prefix"
11702 if test "X$x" = "X-L$additional_libdir"; then
11703 haveit=yes
11704 break
11706 done
11707 if test -z "$haveit"; then
11708 if test -d "$additional_libdir"; then
11709 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11715 -R*)
11716 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11717 if test "$enable_rpath" != no; then
11718 haveit=
11719 for x in $rpathdirs; do
11720 if test "X$x" = "X$dir"; then
11721 haveit=yes
11722 break
11724 done
11725 if test -z "$haveit"; then
11726 rpathdirs="$rpathdirs $dir"
11728 haveit=
11729 for x in $ltrpathdirs; do
11730 if test "X$x" = "X$dir"; then
11731 haveit=yes
11732 break
11734 done
11735 if test -z "$haveit"; then
11736 ltrpathdirs="$ltrpathdirs $dir"
11740 -l*)
11741 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11743 *.la)
11744 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11747 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11748 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11750 esac
11751 done
11753 else
11754 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11755 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11756 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11757 else
11758 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11759 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11764 done
11765 done
11766 if test "X$rpathdirs" != "X"; then
11767 if test -n "$hardcode_libdir_separator"; then
11768 alldirs=
11769 for found_dir in $rpathdirs; do
11770 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11771 done
11772 acl_save_libdir="$libdir"
11773 libdir="$alldirs"
11774 eval flag=\"$hardcode_libdir_flag_spec\"
11775 libdir="$acl_save_libdir"
11776 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11777 else
11778 for found_dir in $rpathdirs; do
11779 acl_save_libdir="$libdir"
11780 libdir="$found_dir"
11781 eval flag=\"$hardcode_libdir_flag_spec\"
11782 libdir="$acl_save_libdir"
11783 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11784 done
11787 if test "X$ltrpathdirs" != "X"; then
11788 for found_dir in $ltrpathdirs; do
11789 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11790 done
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11800 $as_echo_n "checking for iconv... " >&6; }
11801 if ${am_cv_func_iconv+:} false; then :
11802 $as_echo_n "(cached) " >&6
11803 else
11805 am_cv_func_iconv="no, consider installing GNU libiconv"
11806 am_cv_lib_iconv=no
11807 am_save_CPPFLAGS="$CPPFLAGS"
11808 CPPFLAGS="$CPPFLAGS $INCICONV"
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 #include <stdlib.h>
11812 #include <iconv.h>
11814 main ()
11816 iconv_t cd = iconv_open("","");
11817 iconv(cd,NULL,NULL,NULL,NULL);
11818 iconv_close(cd);
11820 return 0;
11822 _ACEOF
11823 if ac_fn_cxx_try_link "$LINENO"; then :
11824 am_cv_func_iconv=yes
11826 rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828 CPPFLAGS="$am_save_CPPFLAGS"
11830 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11831 for _libs in .libs _libs; do
11832 am_save_CPPFLAGS="$CPPFLAGS"
11833 am_save_LIBS="$LIBS"
11834 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11835 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11838 #include <stdlib.h>
11839 #include <iconv.h>
11841 main ()
11843 iconv_t cd = iconv_open("","");
11844 iconv(cd,NULL,NULL,NULL,NULL);
11845 iconv_close(cd);
11847 return 0;
11849 _ACEOF
11850 if ac_fn_cxx_try_link "$LINENO"; then :
11851 INCICONV="-I../libiconv/include"
11852 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11853 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11854 am_cv_lib_iconv=yes
11855 am_cv_func_iconv=yes
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859 CPPFLAGS="$am_save_CPPFLAGS"
11860 LIBS="$am_save_LIBS"
11861 if test "$am_cv_func_iconv" = "yes"; then
11862 break
11864 done
11867 if test "$am_cv_func_iconv" != yes; then
11868 am_save_CPPFLAGS="$CPPFLAGS"
11869 am_save_LIBS="$LIBS"
11870 CPPFLAGS="$CPPFLAGS $INCICONV"
11871 LIBS="$LIBS $LIBICONV"
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11874 #include <stdlib.h>
11875 #include <iconv.h>
11877 main ()
11879 iconv_t cd = iconv_open("","");
11880 iconv(cd,NULL,NULL,NULL,NULL);
11881 iconv_close(cd);
11883 return 0;
11885 _ACEOF
11886 if ac_fn_cxx_try_link "$LINENO"; then :
11887 am_cv_lib_iconv=yes
11888 am_cv_func_iconv=yes
11890 rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11892 CPPFLAGS="$am_save_CPPFLAGS"
11893 LIBS="$am_save_LIBS"
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11898 $as_echo "$am_cv_func_iconv" >&6; }
11899 if test "$am_cv_func_iconv" = yes; then
11901 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11904 if test "$am_cv_lib_iconv" = yes; then
11906 for element in $INCICONV; do
11907 haveit=
11908 for x in $CPPFLAGS; do
11910 acl_save_prefix="$prefix"
11911 prefix="$acl_final_prefix"
11912 acl_save_exec_prefix="$exec_prefix"
11913 exec_prefix="$acl_final_exec_prefix"
11914 eval x=\"$x\"
11915 exec_prefix="$acl_save_exec_prefix"
11916 prefix="$acl_save_prefix"
11918 if test "X$x" = "X$element"; then
11919 haveit=yes
11920 break
11922 done
11923 if test -z "$haveit"; then
11924 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11926 done
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11929 $as_echo_n "checking how to link with libiconv... " >&6; }
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11931 $as_echo "$LIBICONV" >&6; }
11932 else
11933 LIBICONV=
11934 LTLIBICONV=
11939 if test "$am_cv_func_iconv" = yes; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11941 $as_echo_n "checking for iconv declaration... " >&6; }
11942 if ${am_cv_proto_iconv+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11949 #include <stdlib.h>
11950 #include <iconv.h>
11951 extern
11952 #ifdef __cplusplus
11954 #endif
11955 #if defined(__STDC__) || defined(__cplusplus)
11956 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11957 #else
11958 size_t iconv();
11959 #endif
11962 main ()
11966 return 0;
11968 _ACEOF
11969 if ac_fn_cxx_try_compile "$LINENO"; then :
11970 am_cv_proto_iconv_arg1=""
11971 else
11972 am_cv_proto_iconv_arg1="const"
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975 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);"
11978 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11980 }$am_cv_proto_iconv" >&5
11981 $as_echo "${ac_t:-
11982 }$am_cv_proto_iconv" >&6; }
11984 cat >>confdefs.h <<_ACEOF
11985 #define ICONV_CONST $am_cv_proto_iconv_arg1
11986 _ACEOF
11991 # Until we have in-tree GNU iconv:
11992 LIBICONV_DEP=
11993 if test -f "$LTLIBICONV"; then
11994 LIBICONV_DEP=$LTLIBICONV
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12000 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12001 if ${am_cv_val_LC_MESSAGES+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12006 #include <locale.h>
12008 main ()
12010 return LC_MESSAGES
12012 return 0;
12014 _ACEOF
12015 if ac_fn_cxx_try_link "$LINENO"; then :
12016 am_cv_val_LC_MESSAGES=yes
12017 else
12018 am_cv_val_LC_MESSAGES=no
12020 rm -f core conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12024 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12025 if test $am_cv_val_LC_MESSAGES = yes; then
12027 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12034 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12035 if ${am_cv_langinfo_codeset+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040 #include <langinfo.h>
12042 main ()
12044 char* cs = nl_langinfo(CODESET);
12046 return 0;
12048 _ACEOF
12049 if ac_fn_cxx_try_link "$LINENO"; then :
12050 am_cv_langinfo_codeset=yes
12051 else
12052 am_cv_langinfo_codeset=no
12054 rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12059 $as_echo "$am_cv_langinfo_codeset" >&6; }
12060 if test $am_cv_langinfo_codeset = yes; then
12062 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12067 # We will need to find libiberty.h and ansidecl.h
12068 saved_CFLAGS="$CFLAGS"
12069 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12070 saved_CXXFLAGS="$CXXFLAGS"
12071 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12073 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12074 # normal autoconf function for these. But force definition of
12075 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12076 # basename handling in libiberty.h.
12077 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12078 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12079 #undef HAVE_DECL_BASENAME
12080 #define HAVE_DECL_BASENAME 1
12081 #include \"ansidecl.h\"
12082 #include \"system.h\"
12084 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12085 ac_have_decl=1
12086 else
12087 ac_have_decl=0
12090 cat >>confdefs.h <<_ACEOF
12091 #define HAVE_DECL_BASENAME $ac_have_decl
12092 _ACEOF
12093 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12094 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12095 #undef HAVE_DECL_BASENAME
12096 #define HAVE_DECL_BASENAME 1
12097 #include \"ansidecl.h\"
12098 #include \"system.h\"
12100 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12101 ac_have_decl=1
12102 else
12103 ac_have_decl=0
12106 cat >>confdefs.h <<_ACEOF
12107 #define HAVE_DECL_STRSTR $ac_have_decl
12108 _ACEOF
12111 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12112 madvise stpcpy strnlen strsignal strverscmp \
12113 strtol strtoul strtoll strtoull setenv unsetenv \
12114 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12115 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
12117 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12119 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12120 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 #undef $ac_tr_decl
12126 #define $ac_tr_decl 1
12128 #include "ansidecl.h"
12129 #include "system.h"
12132 main ()
12134 #ifndef $ac_func
12135 char *(*pfn) = (char *(*)) $ac_func ;
12136 #endif
12138 return 0;
12140 _ACEOF
12141 if ac_fn_cxx_try_compile "$LINENO"; then :
12142 eval "gcc_cv_have_decl_$ac_func=yes"
12143 else
12144 eval "gcc_cv_have_decl_$ac_func=no"
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12151 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12152 #define $ac_tr_decl 1
12153 _ACEOF
12155 else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12158 #define $ac_tr_decl 0
12159 _ACEOF
12163 done
12166 for ac_func in getrlimit setrlimit getrusage
12168 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12170 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12171 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176 #undef $ac_tr_decl
12177 #define $ac_tr_decl 1
12179 #include "ansidecl.h"
12180 #include "system.h"
12181 #ifdef HAVE_SYS_RESOURCE_H
12182 #include <sys/resource.h>
12183 #endif
12187 main ()
12189 #ifndef $ac_func
12190 char *(*pfn) = (char *(*)) $ac_func ;
12191 #endif
12193 return 0;
12195 _ACEOF
12196 if ac_fn_cxx_try_compile "$LINENO"; then :
12197 eval "gcc_cv_have_decl_$ac_func=yes"
12198 else
12199 eval "gcc_cv_have_decl_$ac_func=no"
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12206 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12207 #define $ac_tr_decl 1
12208 _ACEOF
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12213 #define $ac_tr_decl 0
12214 _ACEOF
12218 done
12221 for ac_func in mallinfo mallinfo2
12223 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12225 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12226 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12231 #undef $ac_tr_decl
12232 #define $ac_tr_decl 1
12234 #include "ansidecl.h"
12235 #include "system.h"
12236 #ifdef HAVE_MALLOC_H
12237 #include <malloc.h>
12238 #endif
12242 main ()
12244 #ifndef $ac_func
12245 char *(*pfn) = (char *(*)) $ac_func ;
12246 #endif
12248 return 0;
12250 _ACEOF
12251 if ac_fn_cxx_try_compile "$LINENO"; then :
12252 eval "gcc_cv_have_decl_$ac_func=yes"
12253 else
12254 eval "gcc_cv_have_decl_$ac_func=no"
12256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12261 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12262 #define $ac_tr_decl 1
12263 _ACEOF
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12268 #define $ac_tr_decl 0
12269 _ACEOF
12273 done
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 #include "ansidecl.h"
12280 #include "system.h"
12281 #ifdef HAVE_SYS_RESOURCE_H
12282 #include <sys/resource.h>
12283 #endif
12286 main ()
12288 rlim_t l = 0;
12290 return 0;
12292 _ACEOF
12293 if ac_fn_cxx_try_compile "$LINENO"; then :
12295 else
12297 $as_echo "#define rlim_t long" >>confdefs.h
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12302 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12303 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12304 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12305 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12306 for ac_func in ldgetname
12308 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12310 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12311 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12316 #undef $ac_tr_decl
12317 #define $ac_tr_decl 1
12319 #include "ansidecl.h"
12320 #include "system.h"
12321 #ifdef HAVE_LDFCN_H
12322 #undef FREAD
12323 #undef FWRITE
12324 #include <ldfcn.h>
12325 #endif
12329 main ()
12331 #ifndef $ac_func
12332 char *(*pfn) = (char *(*)) $ac_func ;
12333 #endif
12335 return 0;
12337 _ACEOF
12338 if ac_fn_cxx_try_compile "$LINENO"; then :
12339 eval "gcc_cv_have_decl_$ac_func=yes"
12340 else
12341 eval "gcc_cv_have_decl_$ac_func=no"
12343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12349 #define $ac_tr_decl 1
12350 _ACEOF
12352 else
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12355 #define $ac_tr_decl 0
12356 _ACEOF
12360 done
12363 for ac_func in times
12365 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12367 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12368 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373 #undef $ac_tr_decl
12374 #define $ac_tr_decl 1
12376 #include "ansidecl.h"
12377 #include "system.h"
12378 #ifdef HAVE_SYS_TIMES_H
12379 #include <sys/times.h>
12380 #endif
12384 main ()
12386 #ifndef $ac_func
12387 char *(*pfn) = (char *(*)) $ac_func ;
12388 #endif
12390 return 0;
12392 _ACEOF
12393 if ac_fn_cxx_try_compile "$LINENO"; then :
12394 eval "gcc_cv_have_decl_$ac_func=yes"
12395 else
12396 eval "gcc_cv_have_decl_$ac_func=no"
12398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12404 #define $ac_tr_decl 1
12405 _ACEOF
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12410 #define $ac_tr_decl 0
12411 _ACEOF
12415 done
12418 for ac_func in sigaltstack
12420 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12422 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12423 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12424 $as_echo_n "(cached) " >&6
12425 else
12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12428 #undef $ac_tr_decl
12429 #define $ac_tr_decl 1
12431 #include "ansidecl.h"
12432 #include "system.h"
12433 #include <signal.h>
12437 main ()
12439 #ifndef $ac_func
12440 char *(*pfn) = (char *(*)) $ac_func ;
12441 #endif
12443 return 0;
12445 _ACEOF
12446 if ac_fn_cxx_try_compile "$LINENO"; then :
12447 eval "gcc_cv_have_decl_$ac_func=yes"
12448 else
12449 eval "gcc_cv_have_decl_$ac_func=no"
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12456 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12457 #define $ac_tr_decl 1
12458 _ACEOF
12460 else
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12463 #define $ac_tr_decl 0
12464 _ACEOF
12468 done
12471 # More time-related stuff.
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12473 $as_echo_n "checking for struct tms... " >&6; }
12474 if ${ac_cv_struct_tms+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12481 #include "ansidecl.h"
12482 #include "system.h"
12483 #ifdef HAVE_SYS_TIMES_H
12484 #include <sys/times.h>
12485 #endif
12488 main ()
12490 struct tms tms;
12492 return 0;
12494 _ACEOF
12495 if ac_fn_cxx_try_compile "$LINENO"; then :
12496 ac_cv_struct_tms=yes
12497 else
12498 ac_cv_struct_tms=no
12500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12503 $as_echo "$ac_cv_struct_tms" >&6; }
12504 if test $ac_cv_struct_tms = yes; then
12506 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12510 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12511 # revisit after autoconf 2.50.
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12513 $as_echo_n "checking for clock_t... " >&6; }
12514 if ${gcc_cv_type_clock_t+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12521 #include "ansidecl.h"
12522 #include "system.h"
12525 main ()
12527 clock_t x;
12529 return 0;
12531 _ACEOF
12532 if ac_fn_cxx_try_compile "$LINENO"; then :
12533 gcc_cv_type_clock_t=yes
12534 else
12535 gcc_cv_type_clock_t=no
12537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12540 $as_echo "$gcc_cv_type_clock_t" >&6; }
12541 if test $gcc_cv_type_clock_t = yes; then
12543 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12547 # Check if F_SETLKW is supported by fcntl.
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12549 $as_echo_n "checking for F_SETLKW... " >&6; }
12550 if ${ac_cv_f_setlkw+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12557 #include <fcntl.h>
12559 main ()
12562 struct flock fl;
12563 fl.l_whence = 0;
12564 fl.l_start = 0;
12565 fl.l_len = 0;
12566 fl.l_pid = 0;
12567 return fcntl (1, F_SETLKW, &fl);
12569 return 0;
12571 _ACEOF
12572 if ac_fn_cxx_try_compile "$LINENO"; then :
12573 ac_cv_f_setlkw=yes
12574 else
12575 ac_cv_f_setlkw=no
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12580 $as_echo "$ac_cv_f_setlkw" >&6; }
12581 if test $ac_cv_f_setlkw = yes; then
12583 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12587 # Check if O_CLOEXEC is defined by fcntl
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12589 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12590 if ${ac_cv_o_cloexec+:} false; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12597 #include <fcntl.h>
12599 main ()
12602 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12604 return 0;
12606 _ACEOF
12607 if ac_fn_cxx_try_compile "$LINENO"; then :
12608 ac_cv_o_cloexec=yes
12609 else
12610 ac_cv_o_cloexec=no
12612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12615 $as_echo "$ac_cv_o_cloexec" >&6; }
12616 if test $ac_cv_o_cloexec = yes; then
12618 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12622 # Check if O_NONBLOCK is defined by fcntl
12623 for ac_header in fcntl.h
12624 do :
12625 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12626 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12627 cat >>confdefs.h <<_ACEOF
12628 #define HAVE_FCNTL_H 1
12629 _ACEOF
12632 done
12634 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12636 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12640 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12642 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12647 # C++ Modules would like some networking features to provide the mapping
12648 # server. You can still use modules without them though.
12649 # The following network-related checks could probably do with some
12650 # Windows and other non-linux defenses and checking.
12652 # Local socket connectivity wants AF_UNIX networking
12653 # Check for AF_UNIX networking
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12655 $as_echo_n "checking for AF_UNIX... " >&6; }
12656 if ${ac_cv_af_unix+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12663 #include <sys/types.h>
12664 #include <sys/socket.h>
12665 #include <sys/un.h>
12666 #include <netinet/in.h>
12668 main ()
12671 sockaddr_un un;
12672 un.sun_family = AF_UNSPEC;
12673 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12674 connect (fd, (sockaddr *)&un, sizeof (un));
12676 return 0;
12678 _ACEOF
12679 if ac_fn_cxx_try_compile "$LINENO"; then :
12680 ac_cv_af_unix=yes
12681 else
12682 ac_cv_af_unix=no
12684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12687 $as_echo "$ac_cv_af_unix" >&6; }
12688 if test $ac_cv_af_unix = yes; then
12690 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12694 # Remote socket connectivity wants AF_INET6 networking
12695 # Check for AF_INET6 networking
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12697 $as_echo_n "checking for AF_INET6... " >&6; }
12698 if ${ac_cv_af_inet6+:} false; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12705 #include <sys/types.h>
12706 #include <sys/socket.h>
12707 #include <netinet/in.h>
12708 #include <netdb.h>
12710 main ()
12713 sockaddr_in6 in6;
12714 in6.sin6_family = AF_UNSPEC;
12715 struct addrinfo *addrs = 0;
12716 struct addrinfo hints;
12717 hints.ai_flags = 0;
12718 hints.ai_family = AF_INET6;
12719 hints.ai_socktype = SOCK_STREAM;
12720 hints.ai_protocol = 0;
12721 hints.ai_canonname = 0;
12722 hints.ai_addr = 0;
12723 hints.ai_next = 0;
12724 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12725 const char *str = gai_strerror (e);
12726 freeaddrinfo (addrs);
12727 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12728 connect (fd, (sockaddr *)&in6, sizeof (in6));
12730 return 0;
12732 _ACEOF
12733 if ac_fn_cxx_try_compile "$LINENO"; then :
12734 ac_cv_af_inet6=yes
12735 else
12736 ac_cv_af_inet6=no
12738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12741 $as_echo "$ac_cv_af_inet6" >&6; }
12742 if test $ac_cv_af_inet6 = yes; then
12744 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12748 # Check if _LK_LOCK is supported by _locking
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12750 $as_echo_n "checking for _LK_LOCK... " >&6; }
12751 if ${ac_cv_lk_lock+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12758 #include <io.h>
12759 #include <sys/locking.h>
12761 main ()
12764 int fd;
12765 return _locking (fd, _LK_LOCK, 0);
12767 return 0;
12769 _ACEOF
12770 if ac_fn_cxx_try_compile "$LINENO"; then :
12771 ac_cv_lk_lock=yes
12772 else
12773 ac_cv_lk_lock=no
12775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12778 $as_echo "$ac_cv_lk_lock" >&6; }
12779 if test $ac_cv_lk_lock = yes; then
12781 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12785 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12786 CFLAGS="$saved_CFLAGS"
12787 CXXFLAGS="$saved_CXXFLAGS"
12789 # mkdir takes a single argument on some systems.
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12791 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12792 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12793 $as_echo_n "(cached) " >&6
12794 else
12795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12798 #include <sys/types.h>
12799 #ifdef HAVE_SYS_STAT_H
12800 # include <sys/stat.h>
12801 #endif
12802 #ifdef HAVE_UNISTD_H
12803 # include <unistd.h>
12804 #endif
12805 #ifdef HAVE_DIRECT_H
12806 # include <direct.h>
12807 #endif
12809 main ()
12811 mkdir ("foo", 0);
12813 return 0;
12815 _ACEOF
12816 if ac_fn_cxx_try_compile "$LINENO"; then :
12817 gcc_cv_mkdir_takes_one_arg=no
12818 else
12819 gcc_cv_mkdir_takes_one_arg=yes
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12824 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12825 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12827 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12832 # File extensions
12833 manext='.1'
12834 objext='.o'
12838 # With Setjmp/Longjmp based exception handling.
12839 # Check whether --enable-sjlj-exceptions was given.
12840 if test "${enable_sjlj_exceptions+set}" = set; then :
12841 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12842 else
12843 case $target in
12844 lm32*-*-*)
12845 force_sjlj_exceptions=yes
12846 enableval=yes
12849 force_sjlj_exceptions=no
12851 esac
12854 if test $force_sjlj_exceptions = yes; then
12855 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12857 cat >>confdefs.h <<_ACEOF
12858 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12859 _ACEOF
12863 # --------------------------------------------------------
12864 # Build, host, and target specific configuration fragments
12865 # --------------------------------------------------------
12867 # Collect build-machine-specific information.
12868 . ${srcdir}/config.build || exit 1
12870 # Collect host-machine-specific information.
12871 . ${srcdir}/config.host || exit 1
12873 target_gtfiles=
12875 # Collect target-machine-specific information.
12876 . ${srcdir}/config.gcc || exit 1
12878 extra_objs="${host_extra_objs} ${extra_objs}"
12879 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12881 # Default the target-machine variables that were not explicitly set.
12882 if test x"$tm_file" = x
12883 then tm_file=$cpu_type/$cpu_type.h; fi
12885 if test x"$extra_headers" = x
12886 then extra_headers=; fi
12888 if test x$md_file = x
12889 then md_file=$cpu_type/$cpu_type.md; fi
12891 if test x$out_file = x
12892 then out_file=$cpu_type/$cpu_type.cc; fi
12894 if test x"$tmake_file" = x
12895 then tmake_file=$cpu_type/t-$cpu_type
12898 # Support --enable-initfini-array.
12899 if test x$enable_initfini_array != xno; then
12900 tm_file="${tm_file} initfini-array.h"
12903 if test x"$dwarf2" = xyes
12904 then tm_file="$tm_file tm-dwarf2.h"
12907 # Say what files are being used for the output code and MD file.
12908 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12909 echo "Using \`$srcdir/config/$md_file' as machine description file."
12911 # If any of the xm_file variables contain nonexistent files, warn
12912 # about them and drop them.
12915 for x in $build_xm_file; do
12916 if test -f $srcdir/config/$x
12917 then bx="$bx $x"
12918 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12919 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12921 done
12922 build_xm_file="$bx"
12925 for x in $host_xm_file; do
12926 if test -f $srcdir/config/$x
12927 then hx="$hx $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 host_xm_file="$hx"
12935 for x in $xm_file; do
12936 if test -f $srcdir/config/$x
12937 then tx="$tx $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 xm_file="$tx"
12944 count=a
12945 for f in $tm_file; do
12946 count=${count}x
12947 done
12948 if test $count = ax; then
12949 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12950 else
12951 echo "Using the following target machine macro files:"
12952 for f in $tm_file; do
12953 echo " $srcdir/config/$f"
12954 done
12957 if test x$use_long_long_for_widest_fast_int = xyes; then
12959 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12963 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12965 cat >>confdefs.h <<_ACEOF
12966 #define HAVE_GNU_LD $gnu_ld_bool
12967 _ACEOF
12970 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12972 cat >>confdefs.h <<_ACEOF
12973 #define HAVE_GNU_AS $gnu_as_bool
12974 _ACEOF
12977 count=a
12978 for f in $host_xm_file; do
12979 count=${count}x
12980 done
12981 if test $count = a; then
12983 elif test $count = ax; then
12984 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12985 else
12986 echo "Using the following host machine macro files:"
12987 for f in $host_xm_file; do
12988 echo " $srcdir/config/$f"
12989 done
12991 echo "Using ${out_host_hook_obj} for host machine hooks."
12993 if test "$host_xm_file" != "$build_xm_file"; then
12994 count=a
12995 for f in $build_xm_file; do
12996 count=${count}x
12997 done
12998 if test $count = a; then
13000 elif test $count = ax; then
13001 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13002 else
13003 echo "Using the following build machine macro files:"
13004 for f in $build_xm_file; do
13005 echo " $srcdir/config/$f"
13006 done
13010 if test -n "$configured_native_system_header_dir"; then
13011 native_system_header_dir=$configured_native_system_header_dir
13013 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
13016 case ${host} in
13017 powerpc*-*-darwin*)
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13019 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13020 if ${gcc_cv_mcontext_underscores+:} false; then :
13021 $as_echo_n "(cached) " >&6
13022 else
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13026 #include <sys/cdefs.h>
13027 #include <sys/signal.h>
13028 #include <ucontext.h>
13029 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13031 _ACEOF
13032 if ac_fn_cxx_try_compile "$LINENO"; then :
13033 gcc_cv_mcontext_underscores=no
13034 else
13035 gcc_cv_mcontext_underscores=yes
13037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13040 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13041 if test $gcc_cv_mcontext_underscores = yes; then
13043 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13047 esac
13049 # ---------
13050 # Threading
13051 # ---------
13053 # Check if a valid thread package
13054 case ${enable_threads} in
13055 "" | no)
13056 # No threads
13057 target_thread_file='single'
13059 yes)
13060 # default
13061 target_thread_file='single'
13063 aix | dce | lynx | mipssde | posix | rtems | \
13064 single | tpf | vxworks | win32 | mcf)
13065 target_thread_file=${enable_threads}
13068 echo "${enable_threads} is an unknown thread package" 1>&2
13069 exit 1
13071 esac
13073 if test x${thread_file} = x; then
13074 # No thread file set by target-specific clauses in config.gcc,
13075 # so use file chosen by default logic above
13076 thread_file=${target_thread_file}
13079 # --------
13080 # UNSORTED
13081 # --------
13083 use_cxa_atexit=no
13084 if test x$enable___cxa_atexit = xyes || \
13085 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13086 if test x$host = x$target; then
13087 case $host in
13088 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13089 # keyed to flag_use_cxa_atexit
13090 *-*-mingw32*)
13091 use_cxa_atexit=yes
13093 powerpc-ibm-aix*)
13094 use_cxa_atexit=yes
13097 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13098 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13099 use_cxa_atexit=yes
13100 else
13101 echo "__cxa_atexit can't be enabled on this target"
13105 esac
13106 else
13107 # We can't check for __cxa_atexit when building a cross, so assume
13108 # it is available
13109 use_cxa_atexit=yes
13111 if test x$use_cxa_atexit = xyes; then
13113 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13118 # Look for a file containing extra machine modes.
13119 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13120 extra_modes_file='$(srcdir)'/config/${extra_modes}
13123 cat >>confdefs.h <<_ACEOF
13124 #define EXTRA_MODES_FILE "config/$extra_modes"
13125 _ACEOF
13129 # Convert extra_options into a form suitable for Makefile use.
13130 extra_opt_files=
13131 all_opt_files=
13132 for f in $extra_options; do
13133 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13134 all_opt_files="$all_opt_files $srcdir/config/$f"
13135 done
13138 # auto-host.h is the file containing items generated by autoconf and is
13139 # the first file included by config.h.
13140 # If host=build, it is correct to have bconfig include auto-host.h
13141 # as well. If host!=build, we are in error and need to do more
13142 # work to find out the build config parameters.
13143 if test x$host = x$build
13144 then
13145 build_auto=auto-host.h
13146 HAVE_AUTO_BUILD='# '
13147 else
13148 # We create a subdir, then run autoconf in the subdir.
13149 # To prevent recursion we set host and build for the new
13150 # invocation of configure to the build for this invocation
13151 # of configure.
13152 tempdir=build.$$
13153 rm -rf $tempdir
13154 mkdir $tempdir
13155 cd $tempdir
13156 case ${srcdir} in
13157 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13158 *) realsrcdir=../${srcdir};;
13159 esac
13160 # Clearing GMPINC is necessary to prevent host headers being
13161 # used by the build compiler. Defining GENERATOR_FILE stops
13162 # system.h from including gmp.h.
13163 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13164 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13165 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13166 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13167 ${realsrcdir}/configure \
13168 --enable-languages=${enable_languages-all} \
13169 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13170 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13171 --target=$target_alias --host=$build_alias \
13172 --build=$build_alias || exit # retaining $tempdir
13174 # We just finished tests for the build machine, so rename
13175 # the file auto-build.h in the gcc directory.
13176 mv auto-host.h ../auto-build.h
13177 cd ..
13178 rm -rf $tempdir
13179 build_auto=auto-build.h
13180 HAVE_AUTO_BUILD=
13185 tm_file="${tm_file} defaults.h"
13186 tm_p_file="${tm_p_file} tm-preds.h"
13187 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13188 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13189 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13190 # put this back in temporarily.
13191 xm_file="auto-host.h ansidecl.h ${xm_file}"
13193 # --------
13194 # UNSORTED
13195 # --------
13197 # Compile in configure arguments.
13198 if test -f configargs.h ; then
13199 # Being re-configured.
13200 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13201 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13202 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13203 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13205 else
13206 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13209 # Double all backslashes and backslash all quotes to turn
13210 # gcc_config_arguments into a C string.
13211 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13212 $gcc_config_arguments
13214 gcc_config_arguments_str=`cat conftest.out`
13215 rm -f conftest.out
13217 cat > configargs.h <<EOF
13218 /* Generated automatically. */
13219 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13220 static const char thread_model[] = "$thread_file";
13222 static const struct {
13223 const char *name, *value;
13224 } configure_default_options[] = $configure_default_options;
13227 gcc_BASEVER=`cat $srcdir/BASE-VER`
13228 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13229 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13230 if test -f $srcdir/REVISION ; then
13231 gcc_REVISION=`cat $srcdir/REVISION`
13232 else
13233 gcc_REVISION=""
13235 cat > plugin-version.h <<EOF
13236 #include "configargs.h"
13238 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13239 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13240 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13241 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13243 static char basever[] = "$gcc_BASEVER";
13244 static char datestamp[] = "$gcc_DATESTAMP";
13245 static char devphase[] = "$gcc_DEVPHASE";
13246 static char revision[] = "$gcc_REVISION";
13248 /* FIXME plugins: We should make the version information more precise.
13249 One way to do is to add a checksum. */
13251 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13252 devphase, revision,
13253 configuration_arguments};
13256 # Determine what GCC version number to use in filesystem paths.
13258 get_gcc_base_ver="cat"
13260 # Check whether --with-gcc-major-version-only was given.
13261 if test "${with_gcc_major_version_only+set}" = set; then :
13262 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13263 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13271 # Internationalization
13272 # If we haven't got the data from the intl directory,
13273 # assume NLS is disabled.
13274 USE_NLS=no
13275 LIBINTL=
13276 LIBINTL_DEP=
13277 INCINTL=
13278 XGETTEXT=
13279 GMSGFMT=
13280 POSUB=
13282 if test -f ../intl/config.intl; then
13283 . ../intl/config.intl
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13286 $as_echo_n "checking whether NLS is requested... " >&6; }
13287 if test x"$USE_NLS" != xyes; then
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 $as_echo "no" >&6; }
13290 else
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13292 $as_echo "yes" >&6; }
13294 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13298 $as_echo_n "checking for catalogs to be installed... " >&6; }
13299 # Look for .po and .gmo files in the source directory.
13300 CATALOGS=
13301 XLINGUAS=
13302 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13303 # If there aren't any .gmo files the shell will give us the
13304 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13305 # weeded out.
13306 case "$cat" in *\**)
13307 continue;;
13308 esac
13309 # The quadruple backslash is collapsed to a double backslash
13310 # by the backticks, then collapsed again by the double quotes,
13311 # leaving us with one backslash in the sed expression (right
13312 # before the dot that mustn't act as a wildcard).
13313 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13314 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13315 # The user is allowed to set LINGUAS to a list of languages to
13316 # install catalogs for. If it's empty that means "all of them."
13317 if test "x$LINGUAS" = x; then
13318 CATALOGS="$CATALOGS $cat"
13319 XLINGUAS="$XLINGUAS $lang"
13320 else
13321 case "$LINGUAS" in *$lang*)
13322 CATALOGS="$CATALOGS $cat"
13323 XLINGUAS="$XLINGUAS $lang"
13325 esac
13327 done
13328 LINGUAS="$XLINGUAS"
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13330 $as_echo "$LINGUAS" >&6; }
13333 DATADIRNAME=share
13335 INSTOBJEXT=.mo
13337 GENCAT=gencat
13339 CATOBJEXT=.gmo
13343 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13344 # -liconv on the link line twice.
13345 case "$LIBINTL" in *$LIBICONV*)
13346 LIBICONV= ;;
13347 esac
13349 # Check whether --enable-secureplt was given.
13350 if test "${enable_secureplt+set}" = set; then :
13351 enableval=$enable_secureplt;
13355 # Check whether --enable-mingw-wildcard was given.
13356 if test "${enable_mingw_wildcard+set}" = set; then :
13357 enableval=$enable_mingw_wildcard;
13358 else
13359 enable_mingw_wildcard=platform
13362 if test x"$enable_mingw_wildcard" != xplatform ; then :
13364 cat >>confdefs.h <<_ACEOF
13365 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13366 _ACEOF
13370 # Check whether --enable-large-address-aware was given.
13371 if test "${enable_large_address_aware+set}" = set; then :
13372 enableval=$enable_large_address_aware;
13375 if test x"$enable_large_address_aware" = xyes; then :
13377 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13381 # Check whether --enable-leading-mingw64-underscores was given.
13382 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13383 enableval=$enable_leading_mingw64_underscores;
13386 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13388 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13392 # Check whether --enable-cld was given.
13393 if test "${enable_cld+set}" = set; then :
13394 enableval=$enable_cld;
13395 else
13396 enable_cld=no
13400 # Check whether --enable-frame-pointer was given.
13401 if test "${enable_frame_pointer+set}" = set; then :
13402 enableval=$enable_frame_pointer;
13403 else
13405 case $target_os in
13406 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13407 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13408 enable_frame_pointer=no
13411 enable_frame_pointer=yes
13413 esac
13418 case $target in
13419 i[34567]86-*-* | x86_64-*-*)
13420 if test "x$enable_cld" = xyes; then
13421 tm_defines="${tm_defines} USE_IX86_CLD=1"
13423 if test "x$enable_frame_pointer" = xyes; then
13424 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13427 esac
13429 # Windows32 Registry support for specifying GCC installation paths.
13430 # Check whether --enable-win32-registry was given.
13431 if test "${enable_win32_registry+set}" = set; then :
13432 enableval=$enable_win32_registry;
13436 case $host_os in
13437 win32 | pe | cygwin* | mingw32*)
13438 if test "x$enable_win32_registry" != xno; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13440 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13441 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444 ac_func_search_save_LIBS=$LIBS
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13448 /* Override any GCC internal prototype to avoid an error.
13449 Use char because int might match the return type of a GCC
13450 builtin and then its argument prototype would still apply. */
13451 #ifdef __cplusplus
13452 extern "C"
13453 #endif
13454 char RegOpenKeyExA ();
13456 main ()
13458 return RegOpenKeyExA ();
13460 return 0;
13462 _ACEOF
13463 for ac_lib in '' advapi32; do
13464 if test -z "$ac_lib"; then
13465 ac_res="none required"
13466 else
13467 ac_res=-l$ac_lib
13468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13470 if ac_fn_cxx_try_link "$LINENO"; then :
13471 ac_cv_search_RegOpenKeyExA=$ac_res
13473 rm -f core conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext
13475 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13476 break
13478 done
13479 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13481 else
13482 ac_cv_search_RegOpenKeyExA=no
13484 rm conftest.$ac_ext
13485 LIBS=$ac_func_search_save_LIBS
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13488 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13489 ac_res=$ac_cv_search_RegOpenKeyExA
13490 if test "$ac_res" != no; then :
13491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13493 else
13494 enable_win32_registry=no
13499 if test "x$enable_win32_registry" != xno; then
13501 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13504 if test "x$enable_win32_registry" != xyes \
13505 && test "x$enable_win32_registry" != x; then
13507 cat >>confdefs.h <<_ACEOF
13508 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13509 _ACEOF
13514 esac
13516 # Get an absolute path to the GCC top-level source directory
13517 holddir=`${PWDCMD-pwd}`
13518 cd $srcdir
13519 topdir=`${PWDCMD-pwd}`
13520 cd $holddir
13522 # Conditionalize the makefile for this host machine.
13523 xmake_file=
13524 for f in ${host_xmake_file}
13526 if test -f ${srcdir}/config/$f
13527 then
13528 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13530 done
13532 # Conditionalize the makefile for this target machine.
13533 tmake_file_=
13534 for f in ${tmake_file}
13536 if test -f ${srcdir}/config/$f
13537 then
13538 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13540 done
13541 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13543 out_object_file=`basename $out_file .cc`.o
13544 common_out_object_file=`basename $common_out_file .cc`.o
13546 tm_file_list="options.h"
13547 tm_include_list="options.h insn-constants.h"
13548 for f in $tm_file; do
13549 case $f in
13550 ./* )
13551 f=`echo $f | sed 's/^..//'`
13552 tm_file_list="${tm_file_list} $f"
13553 tm_include_list="${tm_include_list} $f"
13555 defaults.h )
13556 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13557 tm_include_list="${tm_include_list} $f"
13560 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13561 tm_include_list="${tm_include_list} config/$f"
13563 esac
13564 done
13566 tm_p_file_list=
13567 tm_p_include_list=
13568 for f in $tm_p_file; do
13569 case $f in
13570 tm-preds.h )
13571 tm_p_file_list="${tm_p_file_list} $f"
13572 tm_p_include_list="${tm_p_include_list} $f"
13575 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13576 tm_p_include_list="${tm_p_include_list} config/$f"
13577 esac
13578 done
13580 tm_d_file_list=
13581 tm_d_include_list=
13582 for f in $tm_d_file; do
13583 case $f in
13585 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13586 tm_d_include_list="${tm_d_include_list} config/$f"
13588 esac
13589 done
13591 tm_rust_file_list=
13592 tm_rust_include_list=
13593 for f in $tm_rust_file; do
13594 case $f in
13596 tm_rust_file_list="${tm_rust_file_list} \$(srcdir)/config/$f"
13597 tm_rust_include_list="${tm_rust_include_list} config/$f"
13599 esac
13600 done
13602 xm_file_list=
13603 xm_include_list=
13604 for f in $xm_file; do
13605 case $f in
13606 ansidecl.h )
13607 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13608 xm_include_list="${xm_include_list} $f"
13610 auto-host.h )
13611 xm_file_list="${xm_file_list} $f"
13612 xm_include_list="${xm_include_list} $f"
13615 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13616 xm_include_list="${xm_include_list} config/$f"
13618 esac
13619 done
13621 host_xm_file_list=
13622 host_xm_include_list=
13623 for f in $host_xm_file; do
13624 case $f in
13625 ansidecl.h )
13626 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13627 host_xm_include_list="${host_xm_include_list} $f"
13629 auto-host.h )
13630 host_xm_file_list="${host_xm_file_list} $f"
13631 host_xm_include_list="${host_xm_include_list} $f"
13634 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13635 host_xm_include_list="${host_xm_include_list} config/$f"
13637 esac
13638 done
13640 build_xm_file_list=
13641 for f in $build_xm_file; do
13642 case $f in
13643 ansidecl.h )
13644 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13645 build_xm_include_list="${build_xm_include_list} $f"
13647 auto-build.h | auto-host.h )
13648 build_xm_file_list="${build_xm_file_list} $f"
13649 build_xm_include_list="${build_xm_include_list} $f"
13652 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13653 build_xm_include_list="${build_xm_include_list} config/$f"
13655 esac
13656 done
13658 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13659 # cross-compiler which does not use the native headers and libraries.
13660 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13661 CROSS=
13662 ALL=all.internal
13663 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13664 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13666 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13667 test x$build != x$host || test "x$with_build_sysroot" != x; then
13668 if test "x$with_build_sysroot" != x; then
13669 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13670 else
13671 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13674 if test x$host != x$target
13675 then
13676 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13677 ALL=all.cross
13678 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13679 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13680 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13683 if test "x$with_build_sysroot" != "x"; then
13684 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13685 elif test "x$with_sysroot" = x; then
13686 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13687 elif test "x$with_sysroot" = xyes; then
13688 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13689 else
13690 target_header_dir="${with_sysroot}${native_system_header_dir}"
13692 else
13693 target_header_dir=${native_system_header_dir}
13696 # If this is a cross-compiler that does not
13697 # have its own set of headers then define
13698 # inhibit_libc
13700 # If this is using newlib, without having the headers available now,
13701 # then define inhibit_libc in LIBGCC2_CFLAGS.
13702 # This prevents libgcc2 from containing any code which requires libc
13703 # support.
13704 : ${inhibit_libc=false}
13705 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13706 test x$with_newlib = xyes ; } &&
13707 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13708 inhibit_libc=true
13712 # When building gcc with a cross-compiler, we need to adjust things so
13713 # that the generator programs are still built with the native compiler.
13714 # Also, we cannot run fixincludes.
13716 # These are the normal (build=host) settings:
13717 CC_FOR_BUILD='$(CC)'
13718 CXX_FOR_BUILD='$(CXX)'
13719 BUILD_CFLAGS='$(ALL_CFLAGS)'
13720 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13721 BUILD_LDFLAGS='$(LDFLAGS)'
13722 STMP_FIXINC=stmp-fixinc
13724 # And these apply if build != host, or we are generating coverage data
13725 if test x$build != x$host || test "x$coverage_flags" != x
13726 then
13727 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13728 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13729 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13733 if test x$enable_fixincludes = xno;
13734 then
13735 STMP_FIXINC=''
13738 # Expand extra_headers to include complete path.
13739 # This substitutes for lots of t-* files.
13740 extra_headers_list=
13741 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13742 for file in ${extra_headers} ; do
13743 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13744 done
13746 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13747 if test x"$use_gcc_tgmath" = xyes
13748 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13751 # Define collect2 in Makefile.
13752 case $host_can_use_collect2 in
13753 no) collect2= ;;
13754 *) collect2='collect2$(exeext)' ;;
13755 esac
13758 # Add a definition of USE_COLLECT2 if system wants one.
13759 case $use_collect2 in
13760 no) use_collect2= ;;
13761 "") ;;
13763 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13764 xm_defines="${xm_defines} USE_COLLECT2"
13765 case $host_can_use_collect2 in
13767 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13769 esac
13771 esac
13774 cat >>confdefs.h <<_ACEOF
13775 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13776 _ACEOF
13779 # ---------------------------
13780 # Assembler & linker features
13781 # ---------------------------
13783 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13784 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13785 # However when ld-new is first executed from the build tree, libtool will
13786 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13787 # to the build tree. While doing this we need to use the previous-stage
13788 # linker, or we have an infinite loop. The presence of a shell script as
13789 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13790 # the gcc/collect-ld script. So we need to know how libtool works, or
13791 # exec-tool will fail.
13794 case `pwd` in
13795 *\ * | *\ *)
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13797 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13798 esac
13802 macro_version='2.2.7a'
13803 macro_revision='1.3134'
13817 ltmain="$ac_aux_dir/ltmain.sh"
13819 # Backslashify metacharacters that are still active within
13820 # double-quoted strings.
13821 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13823 # Same as above, but do not quote variable references.
13824 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13826 # Sed substitution to delay expansion of an escaped shell variable in a
13827 # double_quote_subst'ed string.
13828 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13830 # Sed substitution to delay expansion of an escaped single quote.
13831 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13833 # Sed substitution to avoid accidental globbing in evaled expressions
13834 no_glob_subst='s/\*/\\\*/g'
13836 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13837 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13838 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13841 $as_echo_n "checking how to print strings... " >&6; }
13842 # Test print first, because it will be a builtin if present.
13843 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13844 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13845 ECHO='print -r --'
13846 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13847 ECHO='printf %s\n'
13848 else
13849 # Use this function as a fallback that always works.
13850 func_fallback_echo ()
13852 eval 'cat <<_LTECHO_EOF
13854 _LTECHO_EOF'
13856 ECHO='func_fallback_echo'
13859 # func_echo_all arg...
13860 # Invoke $ECHO with all args, space-separated.
13861 func_echo_all ()
13863 $ECHO ""
13866 case "$ECHO" in
13867 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13868 $as_echo "printf" >&6; } ;;
13869 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13870 $as_echo "print -r" >&6; } ;;
13871 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13872 $as_echo "cat" >&6; } ;;
13873 esac
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13889 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13890 if ${ac_cv_path_SED+:} false; then :
13891 $as_echo_n "(cached) " >&6
13892 else
13893 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13894 for ac_i in 1 2 3 4 5 6 7; do
13895 ac_script="$ac_script$as_nl$ac_script"
13896 done
13897 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13898 { ac_script=; unset ac_script;}
13899 if test -z "$SED"; then
13900 ac_path_SED_found=false
13901 # Loop through the user's path and test for each of PROGNAME-LIST
13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13905 IFS=$as_save_IFS
13906 test -z "$as_dir" && as_dir=.
13907 for ac_prog in sed gsed; do
13908 for ac_exec_ext in '' $ac_executable_extensions; do
13909 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13910 as_fn_executable_p "$ac_path_SED" || continue
13911 # Check for GNU ac_path_SED and select it if it is found.
13912 # Check for GNU $ac_path_SED
13913 case `"$ac_path_SED" --version 2>&1` in
13914 *GNU*)
13915 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13917 ac_count=0
13918 $as_echo_n 0123456789 >"conftest.in"
13919 while :
13921 cat "conftest.in" "conftest.in" >"conftest.tmp"
13922 mv "conftest.tmp" "conftest.in"
13923 cp "conftest.in" "conftest.nl"
13924 $as_echo '' >> "conftest.nl"
13925 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13927 as_fn_arith $ac_count + 1 && ac_count=$as_val
13928 if test $ac_count -gt ${ac_path_SED_max-0}; then
13929 # Best one so far, save it but keep looking for a better one
13930 ac_cv_path_SED="$ac_path_SED"
13931 ac_path_SED_max=$ac_count
13933 # 10*(2^10) chars as input seems more than enough
13934 test $ac_count -gt 10 && break
13935 done
13936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13937 esac
13939 $ac_path_SED_found && break 3
13940 done
13941 done
13942 done
13943 IFS=$as_save_IFS
13944 if test -z "$ac_cv_path_SED"; then
13945 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13947 else
13948 ac_cv_path_SED=$SED
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13953 $as_echo "$ac_cv_path_SED" >&6; }
13954 SED="$ac_cv_path_SED"
13955 rm -f conftest.sed
13957 test -z "$SED" && SED=sed
13958 Xsed="$SED -e 1s/^X//"
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13971 $as_echo_n "checking for fgrep... " >&6; }
13972 if ${ac_cv_path_FGREP+:} false; then :
13973 $as_echo_n "(cached) " >&6
13974 else
13975 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13976 then ac_cv_path_FGREP="$GREP -F"
13977 else
13978 if test -z "$FGREP"; then
13979 ac_path_FGREP_found=false
13980 # Loop through the user's path and test for each of PROGNAME-LIST
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13984 IFS=$as_save_IFS
13985 test -z "$as_dir" && as_dir=.
13986 for ac_prog in fgrep; do
13987 for ac_exec_ext in '' $ac_executable_extensions; do
13988 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13989 as_fn_executable_p "$ac_path_FGREP" || continue
13990 # Check for GNU ac_path_FGREP and select it if it is found.
13991 # Check for GNU $ac_path_FGREP
13992 case `"$ac_path_FGREP" --version 2>&1` in
13993 *GNU*)
13994 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13996 ac_count=0
13997 $as_echo_n 0123456789 >"conftest.in"
13998 while :
14000 cat "conftest.in" "conftest.in" >"conftest.tmp"
14001 mv "conftest.tmp" "conftest.in"
14002 cp "conftest.in" "conftest.nl"
14003 $as_echo 'FGREP' >> "conftest.nl"
14004 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14006 as_fn_arith $ac_count + 1 && ac_count=$as_val
14007 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14008 # Best one so far, save it but keep looking for a better one
14009 ac_cv_path_FGREP="$ac_path_FGREP"
14010 ac_path_FGREP_max=$ac_count
14012 # 10*(2^10) chars as input seems more than enough
14013 test $ac_count -gt 10 && break
14014 done
14015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14016 esac
14018 $ac_path_FGREP_found && break 3
14019 done
14020 done
14021 done
14022 IFS=$as_save_IFS
14023 if test -z "$ac_cv_path_FGREP"; then
14024 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14026 else
14027 ac_cv_path_FGREP=$FGREP
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14033 $as_echo "$ac_cv_path_FGREP" >&6; }
14034 FGREP="$ac_cv_path_FGREP"
14037 test -z "$GREP" && GREP=grep
14057 # Check whether --with-gnu-ld was given.
14058 if test "${with_gnu_ld+set}" = set; then :
14059 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14060 else
14061 with_gnu_ld=no
14064 ac_prog=ld
14065 if test "$GCC" = yes; then
14066 # Check if gcc -print-prog-name=ld gives a path.
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14068 $as_echo_n "checking for ld used by $CC... " >&6; }
14069 case $host in
14070 *-*-mingw*)
14071 # gcc leaves a trailing carriage return which upsets mingw
14072 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14074 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14075 esac
14076 case $ac_prog in
14077 # Accept absolute paths.
14078 [\\/]* | ?:[\\/]*)
14079 re_direlt='/[^/][^/]*/\.\./'
14080 # Canonicalize the pathname of ld
14081 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14082 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14083 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14084 done
14085 test -z "$LD" && LD="$ac_prog"
14088 # If it fails, then pretend we aren't using GCC.
14089 ac_prog=ld
14092 # If it is relative, then search for the first ld in PATH.
14093 with_gnu_ld=unknown
14095 esac
14096 elif test "$with_gnu_ld" = yes; then
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14098 $as_echo_n "checking for GNU ld... " >&6; }
14099 else
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14101 $as_echo_n "checking for non-GNU ld... " >&6; }
14103 if ${lt_cv_path_LD+:} false; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 if test -z "$LD"; then
14107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14108 for ac_dir in $PATH; do
14109 IFS="$lt_save_ifs"
14110 test -z "$ac_dir" && ac_dir=.
14111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14112 lt_cv_path_LD="$ac_dir/$ac_prog"
14113 # Check to see if the program is GNU ld. I'd rather use --version,
14114 # but apparently some variants of GNU ld only accept -v.
14115 # Break only if it was the GNU/non-GNU ld that we prefer.
14116 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14117 *GNU* | *'with BFD'*)
14118 test "$with_gnu_ld" != no && break
14121 test "$with_gnu_ld" != yes && break
14123 esac
14125 done
14126 IFS="$lt_save_ifs"
14127 else
14128 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14132 LD="$lt_cv_path_LD"
14133 if test -n "$LD"; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14135 $as_echo "$LD" >&6; }
14136 else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14140 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14142 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14143 if ${lt_cv_prog_gnu_ld+:} false; then :
14144 $as_echo_n "(cached) " >&6
14145 else
14146 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14147 case `$LD -v 2>&1 </dev/null` in
14148 *GNU* | *'with BFD'*)
14149 lt_cv_prog_gnu_ld=yes
14152 lt_cv_prog_gnu_ld=no
14154 esac
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14157 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14158 with_gnu_ld=$lt_cv_prog_gnu_ld
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14169 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14170 if ${lt_cv_path_NM+:} false; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 if test -n "$NM"; then
14174 # Let the user override the nm to test.
14175 lt_nm_to_check="$NM"
14176 else
14177 lt_nm_to_check="${ac_tool_prefix}nm"
14178 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14179 lt_nm_to_check="$lt_nm_to_check nm"
14182 for lt_tmp_nm in "$lt_nm_to_check"; do
14183 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14184 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14185 IFS="$lt_save_ifs"
14186 test -z "$ac_dir" && ac_dir=.
14187 # Strip out any user-provided options from the nm to test twice,
14188 # the first time to test to see if nm (rather than its options) has
14189 # an explicit path, the second time to yield a file which can be
14190 # nm'ed itself.
14191 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
14192 case "$tmp_nm_path" in
14193 */*|*\\*) tmp_nm="$lt_tmp_nm";;
14194 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
14195 esac
14196 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
14197 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
14198 # Check to see if the nm accepts a BSD-compat flag.
14199 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14200 # nm: unknown option "B" ignored
14201 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14202 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
14203 break
14206 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14207 *$tmp_nm*)
14208 lt_cv_path_NM="$tmp_nm -p"
14209 break
14212 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14213 continue # so that we can try to find one that supports BSD flags
14215 esac
14217 esac
14219 done
14220 IFS="$lt_save_ifs"
14221 done
14222 : ${lt_cv_path_NM=no}
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14225 $as_echo "$lt_cv_path_NM" >&6; }
14226 if test "$lt_cv_path_NM" != "no"; then
14227 NM="$lt_cv_path_NM"
14228 else
14229 # Didn't find any BSD compatible name lister, look for dumpbin.
14230 if test -n "$DUMPBIN"; then :
14231 # Let the user override the test.
14232 else
14233 if test -n "$ac_tool_prefix"; then
14234 for ac_prog in dumpbin "link -dump"
14236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14239 $as_echo_n "checking for $ac_word... " >&6; }
14240 if ${ac_cv_prog_DUMPBIN+:} false; then :
14241 $as_echo_n "(cached) " >&6
14242 else
14243 if test -n "$DUMPBIN"; then
14244 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14245 else
14246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14247 for as_dir in $PATH
14249 IFS=$as_save_IFS
14250 test -z "$as_dir" && as_dir=.
14251 for ac_exec_ext in '' $ac_executable_extensions; do
14252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14253 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14255 break 2
14257 done
14258 done
14259 IFS=$as_save_IFS
14263 DUMPBIN=$ac_cv_prog_DUMPBIN
14264 if test -n "$DUMPBIN"; then
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14266 $as_echo "$DUMPBIN" >&6; }
14267 else
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14269 $as_echo "no" >&6; }
14273 test -n "$DUMPBIN" && break
14274 done
14276 if test -z "$DUMPBIN"; then
14277 ac_ct_DUMPBIN=$DUMPBIN
14278 for ac_prog in dumpbin "link -dump"
14280 # Extract the first word of "$ac_prog", so it can be a program name with args.
14281 set dummy $ac_prog; ac_word=$2
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14283 $as_echo_n "checking for $ac_word... " >&6; }
14284 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 if test -n "$ac_ct_DUMPBIN"; then
14288 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14289 else
14290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14291 for as_dir in $PATH
14293 IFS=$as_save_IFS
14294 test -z "$as_dir" && as_dir=.
14295 for ac_exec_ext in '' $ac_executable_extensions; do
14296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14297 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14299 break 2
14301 done
14302 done
14303 IFS=$as_save_IFS
14307 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14308 if test -n "$ac_ct_DUMPBIN"; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14310 $as_echo "$ac_ct_DUMPBIN" >&6; }
14311 else
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14317 test -n "$ac_ct_DUMPBIN" && break
14318 done
14320 if test "x$ac_ct_DUMPBIN" = x; then
14321 DUMPBIN=":"
14322 else
14323 case $cross_compiling:$ac_tool_warned in
14324 yes:)
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14327 ac_tool_warned=yes ;;
14328 esac
14329 DUMPBIN=$ac_ct_DUMPBIN
14333 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14334 *COFF*)
14335 DUMPBIN="$DUMPBIN -symbols"
14338 DUMPBIN=:
14340 esac
14343 if test "$DUMPBIN" != ":"; then
14344 NM="$DUMPBIN"
14347 test -z "$NM" && NM=nm
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14355 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14356 if ${lt_cv_nm_interface+:} false; then :
14357 $as_echo_n "(cached) " >&6
14358 else
14359 lt_cv_nm_interface="BSD nm"
14360 echo "int some_variable = 0;" > conftest.$ac_ext
14361 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14362 (eval "$ac_compile" 2>conftest.err)
14363 cat conftest.err >&5
14364 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14365 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14366 cat conftest.err >&5
14367 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14368 cat conftest.out >&5
14369 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14370 lt_cv_nm_interface="MS dumpbin"
14372 rm -f conftest*
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14375 $as_echo "$lt_cv_nm_interface" >&6; }
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14378 $as_echo_n "checking whether ln -s works... " >&6; }
14379 LN_S=$as_ln_s
14380 if test "$LN_S" = "ln -s"; then
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14382 $as_echo "yes" >&6; }
14383 else
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14385 $as_echo "no, using $LN_S" >&6; }
14388 # find the maximum length of command line arguments
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14390 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14391 if ${lt_cv_sys_max_cmd_len+:} false; then :
14392 $as_echo_n "(cached) " >&6
14393 else
14395 teststring="ABCD"
14397 case $build_os in
14398 msdosdjgpp*)
14399 # On DJGPP, this test can blow up pretty badly due to problems in libc
14400 # (any single argument exceeding 2000 bytes causes a buffer overrun
14401 # during glob expansion). Even if it were fixed, the result of this
14402 # check would be larger than it should be.
14403 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14406 gnu*)
14407 # Under GNU Hurd, this test is not required because there is
14408 # no limit to the length of command line arguments.
14409 # Libtool will interpret -1 as no limit whatsoever
14410 lt_cv_sys_max_cmd_len=-1;
14413 cygwin* | mingw* | cegcc*)
14414 # On Win9x/ME, this test blows up -- it succeeds, but takes
14415 # about 5 minutes as the teststring grows exponentially.
14416 # Worse, since 9x/ME are not pre-emptively multitasking,
14417 # you end up with a "frozen" computer, even though with patience
14418 # the test eventually succeeds (with a max line length of 256k).
14419 # Instead, let's just punt: use the minimum linelength reported by
14420 # all of the supported platforms: 8192 (on NT/2K/XP).
14421 lt_cv_sys_max_cmd_len=8192;
14424 mint*)
14425 # On MiNT this can take a long time and run out of memory.
14426 lt_cv_sys_max_cmd_len=8192;
14429 amigaos*)
14430 # On AmigaOS with pdksh, this test takes hours, literally.
14431 # So we just punt and use a minimum line length of 8192.
14432 lt_cv_sys_max_cmd_len=8192;
14435 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14436 # This has been around since 386BSD, at least. Likely further.
14437 if test -x /sbin/sysctl; then
14438 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14439 elif test -x /usr/sbin/sysctl; then
14440 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14441 else
14442 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14444 # And add a safety zone
14445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14449 interix*)
14450 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14451 lt_cv_sys_max_cmd_len=196608
14454 osf*)
14455 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14456 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14457 # nice to cause kernel panics so lets avoid the loop below.
14458 # First set a reasonable default.
14459 lt_cv_sys_max_cmd_len=16384
14461 if test -x /sbin/sysconfig; then
14462 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14463 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14464 esac
14467 sco3.2v5*)
14468 lt_cv_sys_max_cmd_len=102400
14470 sysv5* | sco5v6* | sysv4.2uw2*)
14471 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14472 if test -n "$kargmax"; then
14473 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14474 else
14475 lt_cv_sys_max_cmd_len=32768
14479 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14480 if test -n "$lt_cv_sys_max_cmd_len"; then
14481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14483 else
14484 # Make teststring a little bigger before we do anything with it.
14485 # a 1K string should be a reasonable start.
14486 for i in 1 2 3 4 5 6 7 8 ; do
14487 teststring=$teststring$teststring
14488 done
14489 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14490 # If test is not a shell built-in, we'll probably end up computing a
14491 # maximum length that is only half of the actual maximum length, but
14492 # we can't tell.
14493 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14494 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14495 test $i != 17 # 1/2 MB should be enough
14497 i=`expr $i + 1`
14498 teststring=$teststring$teststring
14499 done
14500 # Only check the string length outside the loop.
14501 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14502 teststring=
14503 # Add a significant safety factor because C++ compilers can tack on
14504 # massive amounts of additional arguments before passing them to the
14505 # linker. It appears as though 1/2 is a usable value.
14506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14509 esac
14513 if test -n $lt_cv_sys_max_cmd_len ; then
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14515 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14516 else
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14518 $as_echo "none" >&6; }
14520 max_cmd_len=$lt_cv_sys_max_cmd_len
14527 : ${CP="cp -f"}
14528 : ${MV="mv -f"}
14529 : ${RM="rm -f"}
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14532 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14533 # Try some XSI features
14534 xsi_shell=no
14535 ( _lt_dummy="a/b/c"
14536 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14537 = c,a/b,, \
14538 && eval 'test $(( 1 + 1 )) -eq 2 \
14539 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14540 && xsi_shell=yes
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14542 $as_echo "$xsi_shell" >&6; }
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14546 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14547 lt_shell_append=no
14548 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14549 >/dev/null 2>&1 \
14550 && lt_shell_append=yes
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14552 $as_echo "$lt_shell_append" >&6; }
14555 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14556 lt_unset=unset
14557 else
14558 lt_unset=false
14565 # test EBCDIC or ASCII
14566 case `echo X|tr X '\101'` in
14567 A) # ASCII based system
14568 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14569 lt_SP2NL='tr \040 \012'
14570 lt_NL2SP='tr \015\012 \040\040'
14572 *) # EBCDIC based system
14573 lt_SP2NL='tr \100 \n'
14574 lt_NL2SP='tr \r\n \100\100'
14576 esac
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14587 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14588 if ${lt_cv_ld_reload_flag+:} false; then :
14589 $as_echo_n "(cached) " >&6
14590 else
14591 lt_cv_ld_reload_flag='-r'
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14594 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14595 reload_flag=$lt_cv_ld_reload_flag
14596 case $reload_flag in
14597 "" | " "*) ;;
14598 *) reload_flag=" $reload_flag" ;;
14599 esac
14600 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14601 case $host_os in
14602 darwin*)
14603 if test "$GCC" = yes; then
14604 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14605 else
14606 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14609 esac
14619 if test -n "$ac_tool_prefix"; then
14620 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14621 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14623 $as_echo_n "checking for $ac_word... " >&6; }
14624 if ${ac_cv_prog_OBJDUMP+:} false; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 if test -n "$OBJDUMP"; then
14628 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14629 else
14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14633 IFS=$as_save_IFS
14634 test -z "$as_dir" && as_dir=.
14635 for ac_exec_ext in '' $ac_executable_extensions; do
14636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14637 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14639 break 2
14641 done
14642 done
14643 IFS=$as_save_IFS
14647 OBJDUMP=$ac_cv_prog_OBJDUMP
14648 if test -n "$OBJDUMP"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14650 $as_echo "$OBJDUMP" >&6; }
14651 else
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 $as_echo "no" >&6; }
14658 if test -z "$ac_cv_prog_OBJDUMP"; then
14659 ac_ct_OBJDUMP=$OBJDUMP
14660 # Extract the first word of "objdump", so it can be a program name with args.
14661 set dummy objdump; ac_word=$2
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14663 $as_echo_n "checking for $ac_word... " >&6; }
14664 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 if test -n "$ac_ct_OBJDUMP"; then
14668 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14669 else
14670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14671 for as_dir in $PATH
14673 IFS=$as_save_IFS
14674 test -z "$as_dir" && as_dir=.
14675 for ac_exec_ext in '' $ac_executable_extensions; do
14676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14677 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14679 break 2
14681 done
14682 done
14683 IFS=$as_save_IFS
14687 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14688 if test -n "$ac_ct_OBJDUMP"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14690 $as_echo "$ac_ct_OBJDUMP" >&6; }
14691 else
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 $as_echo "no" >&6; }
14696 if test "x$ac_ct_OBJDUMP" = x; then
14697 OBJDUMP="false"
14698 else
14699 case $cross_compiling:$ac_tool_warned in
14700 yes:)
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14703 ac_tool_warned=yes ;;
14704 esac
14705 OBJDUMP=$ac_ct_OBJDUMP
14707 else
14708 OBJDUMP="$ac_cv_prog_OBJDUMP"
14711 test -z "$OBJDUMP" && OBJDUMP=objdump
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14722 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14723 if ${lt_cv_deplibs_check_method+:} false; then :
14724 $as_echo_n "(cached) " >&6
14725 else
14726 lt_cv_file_magic_cmd='$MAGIC_CMD'
14727 lt_cv_file_magic_test_file=
14728 lt_cv_deplibs_check_method='unknown'
14729 # Need to set the preceding variable on all platforms that support
14730 # interlibrary dependencies.
14731 # 'none' -- dependencies not supported.
14732 # `unknown' -- same as none, but documents that we really don't know.
14733 # 'pass_all' -- all dependencies passed with no checks.
14734 # 'test_compile' -- check by making test program.
14735 # 'file_magic [[regex]]' -- check by looking for files in library path
14736 # which responds to the $file_magic_cmd with a given extended regex.
14737 # If you have `file' or equivalent on your system and you're not sure
14738 # whether `pass_all' will *always* work, you probably want this one.
14740 case $host_os in
14741 aix[4-9]*)
14742 lt_cv_deplibs_check_method=pass_all
14745 beos*)
14746 lt_cv_deplibs_check_method=pass_all
14749 bsdi[45]*)
14750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14751 lt_cv_file_magic_cmd='/usr/bin/file -L'
14752 lt_cv_file_magic_test_file=/shlib/libc.so
14755 cygwin*)
14756 # func_win32_libid is a shell function defined in ltmain.sh
14757 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14758 lt_cv_file_magic_cmd='func_win32_libid'
14761 mingw* | pw32*)
14762 # Base MSYS/MinGW do not provide the 'file' command needed by
14763 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14764 # unless we find 'file', for example because we are cross-compiling.
14765 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14766 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14768 lt_cv_file_magic_cmd='func_win32_libid'
14769 else
14770 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14771 lt_cv_file_magic_cmd='$OBJDUMP -f'
14775 cegcc*)
14776 # use the weaker test based on 'objdump'. See mingw*.
14777 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14778 lt_cv_file_magic_cmd='$OBJDUMP -f'
14781 darwin* | rhapsody*)
14782 lt_cv_deplibs_check_method=pass_all
14785 freebsd* | dragonfly*)
14786 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14787 case $host_cpu in
14788 i*86 )
14789 # Not sure whether the presence of OpenBSD here was a mistake.
14790 # Let's accept both of them until this is cleared up.
14791 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14792 lt_cv_file_magic_cmd=/usr/bin/file
14793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14795 esac
14796 else
14797 lt_cv_deplibs_check_method=pass_all
14801 gnu*)
14802 lt_cv_deplibs_check_method=pass_all
14805 haiku*)
14806 lt_cv_deplibs_check_method=pass_all
14809 hpux10.20* | hpux11*)
14810 lt_cv_file_magic_cmd=/usr/bin/file
14811 case $host_cpu in
14812 ia64*)
14813 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14814 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14816 hppa*64*)
14817 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]'
14818 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14821 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14822 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14824 esac
14827 interix[3-9]*)
14828 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14832 irix5* | irix6* | nonstopux*)
14833 case $LD in
14834 *-32|*"-32 ") libmagic=32-bit;;
14835 *-n32|*"-n32 ") libmagic=N32;;
14836 *-64|*"-64 ") libmagic=64-bit;;
14837 *) libmagic=never-match;;
14838 esac
14839 lt_cv_deplibs_check_method=pass_all
14842 # This must be Linux ELF.
14843 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14844 lt_cv_deplibs_check_method=pass_all
14847 netbsd*)
14848 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14850 else
14851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14855 newos6*)
14856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14857 lt_cv_file_magic_cmd=/usr/bin/file
14858 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14861 *nto* | *qnx*)
14862 lt_cv_deplibs_check_method=pass_all
14865 openbsd*)
14866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14868 else
14869 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14873 osf3* | osf4* | osf5*)
14874 lt_cv_deplibs_check_method=pass_all
14877 rdos*)
14878 lt_cv_deplibs_check_method=pass_all
14881 solaris*)
14882 lt_cv_deplibs_check_method=pass_all
14885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14886 lt_cv_deplibs_check_method=pass_all
14889 sysv4 | sysv4.3*)
14890 case $host_vendor in
14891 motorola)
14892 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]'
14893 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14895 ncr)
14896 lt_cv_deplibs_check_method=pass_all
14898 sequent)
14899 lt_cv_file_magic_cmd='/bin/file'
14900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14902 sni)
14903 lt_cv_file_magic_cmd='/bin/file'
14904 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14905 lt_cv_file_magic_test_file=/lib/libc.so
14907 siemens)
14908 lt_cv_deplibs_check_method=pass_all
14911 lt_cv_deplibs_check_method=pass_all
14913 esac
14916 tpf*)
14917 lt_cv_deplibs_check_method=pass_all
14919 vxworks*)
14920 # Assume VxWorks cross toolchains are built on Linux, possibly
14921 # as canadian for Windows hosts.
14922 lt_cv_deplibs_check_method=pass_all
14924 esac
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14928 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14929 file_magic_cmd=$lt_cv_file_magic_cmd
14930 deplibs_check_method=$lt_cv_deplibs_check_method
14931 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14944 plugin_option=
14945 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
14946 for plugin in $plugin_names; do
14947 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14948 if test x$plugin_so = x$plugin; then
14949 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14951 if test x$plugin_so != x$plugin; then
14952 plugin_option="--plugin $plugin_so"
14953 break
14955 done
14957 if test -n "$ac_tool_prefix"; then
14958 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14959 set dummy ${ac_tool_prefix}ar; ac_word=$2
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14961 $as_echo_n "checking for $ac_word... " >&6; }
14962 if ${ac_cv_prog_AR+:} false; then :
14963 $as_echo_n "(cached) " >&6
14964 else
14965 if test -n "$AR"; then
14966 ac_cv_prog_AR="$AR" # Let the user override the test.
14967 else
14968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14969 for as_dir in $PATH
14971 IFS=$as_save_IFS
14972 test -z "$as_dir" && as_dir=.
14973 for ac_exec_ext in '' $ac_executable_extensions; do
14974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14975 ac_cv_prog_AR="${ac_tool_prefix}ar"
14976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14977 break 2
14979 done
14980 done
14981 IFS=$as_save_IFS
14985 AR=$ac_cv_prog_AR
14986 if test -n "$AR"; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14988 $as_echo "$AR" >&6; }
14989 else
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14991 $as_echo "no" >&6; }
14996 if test -z "$ac_cv_prog_AR"; then
14997 ac_ct_AR=$AR
14998 # Extract the first word of "ar", so it can be a program name with args.
14999 set dummy ar; ac_word=$2
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15001 $as_echo_n "checking for $ac_word... " >&6; }
15002 if ${ac_cv_prog_ac_ct_AR+:} false; then :
15003 $as_echo_n "(cached) " >&6
15004 else
15005 if test -n "$ac_ct_AR"; then
15006 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15007 else
15008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15009 for as_dir in $PATH
15011 IFS=$as_save_IFS
15012 test -z "$as_dir" && as_dir=.
15013 for ac_exec_ext in '' $ac_executable_extensions; do
15014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15015 ac_cv_prog_ac_ct_AR="ar"
15016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15017 break 2
15019 done
15020 done
15021 IFS=$as_save_IFS
15025 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15026 if test -n "$ac_ct_AR"; then
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15028 $as_echo "$ac_ct_AR" >&6; }
15029 else
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15031 $as_echo "no" >&6; }
15034 if test "x$ac_ct_AR" = x; then
15035 AR="false"
15036 else
15037 case $cross_compiling:$ac_tool_warned in
15038 yes:)
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15041 ac_tool_warned=yes ;;
15042 esac
15043 AR=$ac_ct_AR
15045 else
15046 AR="$ac_cv_prog_AR"
15049 test -z "$AR" && AR=ar
15050 if test -n "$plugin_option"; then
15051 if $AR --help 2>&1 | grep -q "\--plugin"; then
15052 touch conftest.c
15053 $AR $plugin_option rc conftest.a conftest.c
15054 if test "$?" != 0; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
15056 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
15057 else
15058 AR="$AR $plugin_option"
15060 rm -f conftest.*
15063 test -z "$AR_FLAGS" && AR_FLAGS=cru
15075 if test -n "$ac_tool_prefix"; then
15076 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15077 set dummy ${ac_tool_prefix}strip; ac_word=$2
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15079 $as_echo_n "checking for $ac_word... " >&6; }
15080 if ${ac_cv_prog_STRIP+:} false; then :
15081 $as_echo_n "(cached) " >&6
15082 else
15083 if test -n "$STRIP"; then
15084 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15085 else
15086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15089 IFS=$as_save_IFS
15090 test -z "$as_dir" && as_dir=.
15091 for ac_exec_ext in '' $ac_executable_extensions; do
15092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15095 break 2
15097 done
15098 done
15099 IFS=$as_save_IFS
15103 STRIP=$ac_cv_prog_STRIP
15104 if test -n "$STRIP"; then
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15106 $as_echo "$STRIP" >&6; }
15107 else
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15109 $as_echo "no" >&6; }
15114 if test -z "$ac_cv_prog_STRIP"; then
15115 ac_ct_STRIP=$STRIP
15116 # Extract the first word of "strip", so it can be a program name with args.
15117 set dummy strip; ac_word=$2
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15119 $as_echo_n "checking for $ac_word... " >&6; }
15120 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15121 $as_echo_n "(cached) " >&6
15122 else
15123 if test -n "$ac_ct_STRIP"; then
15124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15125 else
15126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15127 for as_dir in $PATH
15129 IFS=$as_save_IFS
15130 test -z "$as_dir" && as_dir=.
15131 for ac_exec_ext in '' $ac_executable_extensions; do
15132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15133 ac_cv_prog_ac_ct_STRIP="strip"
15134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15135 break 2
15137 done
15138 done
15139 IFS=$as_save_IFS
15143 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15144 if test -n "$ac_ct_STRIP"; then
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15146 $as_echo "$ac_ct_STRIP" >&6; }
15147 else
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15149 $as_echo "no" >&6; }
15152 if test "x$ac_ct_STRIP" = x; then
15153 STRIP=":"
15154 else
15155 case $cross_compiling:$ac_tool_warned in
15156 yes:)
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15159 ac_tool_warned=yes ;;
15160 esac
15161 STRIP=$ac_ct_STRIP
15163 else
15164 STRIP="$ac_cv_prog_STRIP"
15167 test -z "$STRIP" && STRIP=:
15174 if test -n "$ac_tool_prefix"; then
15175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15176 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15178 $as_echo_n "checking for $ac_word... " >&6; }
15179 if ${ac_cv_prog_RANLIB+:} false; then :
15180 $as_echo_n "(cached) " >&6
15181 else
15182 if test -n "$RANLIB"; then
15183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15184 else
15185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15186 for as_dir in $PATH
15188 IFS=$as_save_IFS
15189 test -z "$as_dir" && as_dir=.
15190 for ac_exec_ext in '' $ac_executable_extensions; do
15191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15194 break 2
15196 done
15197 done
15198 IFS=$as_save_IFS
15202 RANLIB=$ac_cv_prog_RANLIB
15203 if test -n "$RANLIB"; then
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15205 $as_echo "$RANLIB" >&6; }
15206 else
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208 $as_echo "no" >&6; }
15213 if test -z "$ac_cv_prog_RANLIB"; then
15214 ac_ct_RANLIB=$RANLIB
15215 # Extract the first word of "ranlib", so it can be a program name with args.
15216 set dummy ranlib; ac_word=$2
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15218 $as_echo_n "checking for $ac_word... " >&6; }
15219 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15220 $as_echo_n "(cached) " >&6
15221 else
15222 if test -n "$ac_ct_RANLIB"; then
15223 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15224 else
15225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15226 for as_dir in $PATH
15228 IFS=$as_save_IFS
15229 test -z "$as_dir" && as_dir=.
15230 for ac_exec_ext in '' $ac_executable_extensions; do
15231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15232 ac_cv_prog_ac_ct_RANLIB="ranlib"
15233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15234 break 2
15236 done
15237 done
15238 IFS=$as_save_IFS
15242 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15243 if test -n "$ac_ct_RANLIB"; then
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15245 $as_echo "$ac_ct_RANLIB" >&6; }
15246 else
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15248 $as_echo "no" >&6; }
15251 if test "x$ac_ct_RANLIB" = x; then
15252 RANLIB=":"
15253 else
15254 case $cross_compiling:$ac_tool_warned in
15255 yes:)
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15258 ac_tool_warned=yes ;;
15259 esac
15260 RANLIB=$ac_ct_RANLIB
15262 else
15263 RANLIB="$ac_cv_prog_RANLIB"
15266 test -z "$RANLIB" && RANLIB=:
15267 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
15268 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
15269 RANLIB="$RANLIB $plugin_option"
15278 # Determine commands to create old-style static archives.
15279 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15280 old_postinstall_cmds='chmod 644 $oldlib'
15281 old_postuninstall_cmds=
15283 if test -n "$RANLIB"; then
15284 case $host_os in
15285 openbsd*)
15286 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15289 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15291 esac
15292 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15295 case $host_os in
15296 darwin*)
15297 lock_old_archive_extraction=yes ;;
15299 lock_old_archive_extraction=no ;;
15300 esac
15340 # If no C compiler was specified, use CC.
15341 LTCC=${LTCC-"$CC"}
15343 # If no C compiler flags were specified, use CFLAGS.
15344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15346 # Allow CC to be a program name with arguments.
15347 compiler=$CC
15350 # Check for command to grab the raw symbol name followed by C symbol from nm.
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15352 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15353 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15357 # These are sane defaults that work on at least a few old systems.
15358 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15360 # Character class describing NM global symbol codes.
15361 symcode='[BCDEGRST]'
15363 # Regexp to match symbols that can be accessed directly from C.
15364 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15366 # Define system-specific variables.
15367 case $host_os in
15368 aix*)
15369 symcode='[BCDT]'
15371 cygwin* | mingw* | pw32* | cegcc*)
15372 symcode='[ABCDGISTW]'
15374 hpux*)
15375 if test "$host_cpu" = ia64; then
15376 symcode='[ABCDEGRST]'
15379 irix* | nonstopux*)
15380 symcode='[BCDEGRST]'
15382 osf*)
15383 symcode='[BCDEGQRST]'
15385 solaris*)
15386 symcode='[BCDRT]'
15388 sco3.2v5*)
15389 symcode='[DT]'
15391 sysv4.2uw2*)
15392 symcode='[DT]'
15394 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15395 symcode='[ABDT]'
15397 sysv4)
15398 symcode='[DFNSTU]'
15400 esac
15402 # If we're using GNU nm, then use its standard symbol codes.
15403 case `$NM -V 2>&1` in
15404 *GNU* | *'with BFD'*)
15405 symcode='[ABCDGIRSTW]' ;;
15406 esac
15408 # Transform an extracted symbol line into a proper C declaration.
15409 # Some systems (esp. on ia64) link data and code symbols differently,
15410 # so use this general approach.
15411 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15413 # Transform an extracted symbol line into symbol name and symbol address
15414 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15415 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'"
15417 # Handle CRLF in mingw tool chain
15418 opt_cr=
15419 case $build_os in
15420 mingw*)
15421 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15423 esac
15425 # Try without a prefix underscore, then with it.
15426 for ac_symprfx in "" "_"; do
15428 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15429 symxfrm="\\1 $ac_symprfx\\2 \\2"
15431 # Write the raw and C identifiers.
15432 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15433 # Fake it for dumpbin and say T for any non-static function
15434 # and D for any global variable.
15435 # Also find C++ and __fastcall symbols from MSVC++,
15436 # which start with @ or ?.
15437 lt_cv_sys_global_symbol_pipe="$AWK '"\
15438 " {last_section=section; section=\$ 3};"\
15439 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15440 " \$ 0!~/External *\|/{next};"\
15441 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15442 " {if(hide[section]) next};"\
15443 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15444 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15445 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15446 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15447 " ' prfx=^$ac_symprfx"
15448 else
15449 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15452 # Check to see that the pipe works correctly.
15453 pipe_works=no
15455 rm -f conftest*
15456 cat > conftest.$ac_ext <<_LT_EOF
15457 #ifdef __cplusplus
15458 extern "C" {
15459 #endif
15460 char nm_test_var;
15461 void nm_test_func(void);
15462 void nm_test_func(void){}
15463 #ifdef __cplusplus
15465 #endif
15466 int main(){nm_test_var='a';nm_test_func();return(0);}
15467 _LT_EOF
15469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15470 (eval $ac_compile) 2>&5
15471 ac_status=$?
15472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15473 test $ac_status = 0; }; then
15474 # Now try to grab the symbols.
15475 nlist=conftest.nm
15476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15477 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15478 ac_status=$?
15479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15480 test $ac_status = 0; } && test -s "$nlist"; then
15481 # Try sorting and uniquifying the output.
15482 if sort "$nlist" | uniq > "$nlist"T; then
15483 mv -f "$nlist"T "$nlist"
15484 else
15485 rm -f "$nlist"T
15488 # Make sure that we snagged all the symbols we need.
15489 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15490 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15491 cat <<_LT_EOF > conftest.$ac_ext
15492 #ifdef __cplusplus
15493 extern "C" {
15494 #endif
15496 _LT_EOF
15497 # Now generate the symbol file.
15498 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15500 cat <<_LT_EOF >> conftest.$ac_ext
15502 /* The mapping between symbol names and symbols. */
15503 const struct {
15504 const char *name;
15505 void *address;
15507 lt__PROGRAM__LTX_preloaded_symbols[] =
15509 { "@PROGRAM@", (void *) 0 },
15510 _LT_EOF
15511 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15512 cat <<\_LT_EOF >> conftest.$ac_ext
15513 {0, (void *) 0}
15516 /* This works around a problem in FreeBSD linker */
15517 #ifdef FREEBSD_WORKAROUND
15518 static const void *lt_preloaded_setup() {
15519 return lt__PROGRAM__LTX_preloaded_symbols;
15521 #endif
15523 #ifdef __cplusplus
15525 #endif
15526 _LT_EOF
15527 # Now try linking the two files.
15528 mv conftest.$ac_objext conftstm.$ac_objext
15529 lt_save_LIBS="$LIBS"
15530 lt_save_CFLAGS="$CFLAGS"
15531 LIBS="conftstm.$ac_objext"
15532 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15534 (eval $ac_link) 2>&5
15535 ac_status=$?
15536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15537 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15538 pipe_works=yes
15540 LIBS="$lt_save_LIBS"
15541 CFLAGS="$lt_save_CFLAGS"
15542 else
15543 echo "cannot find nm_test_func in $nlist" >&5
15545 else
15546 echo "cannot find nm_test_var in $nlist" >&5
15548 else
15549 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15551 else
15552 echo "$progname: failed program was:" >&5
15553 cat conftest.$ac_ext >&5
15555 rm -rf conftest* conftst*
15557 # Do not use the global_symbol_pipe unless it works.
15558 if test "$pipe_works" = yes; then
15559 break
15560 else
15561 lt_cv_sys_global_symbol_pipe=
15563 done
15567 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15568 lt_cv_sys_global_symbol_to_cdecl=
15570 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15572 $as_echo "failed" >&6; }
15573 else
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15575 $as_echo "ok" >&6; }
15599 # Check whether --enable-libtool-lock was given.
15600 if test "${enable_libtool_lock+set}" = set; then :
15601 enableval=$enable_libtool_lock;
15604 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15606 # Some flags need to be propagated to the compiler or linker for good
15607 # libtool support.
15608 case $host in
15609 ia64-*-hpux*)
15610 # Find out which ABI we are using.
15611 echo 'int i;' > conftest.$ac_ext
15612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15613 (eval $ac_compile) 2>&5
15614 ac_status=$?
15615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15616 test $ac_status = 0; }; then
15617 case `/usr/bin/file conftest.$ac_objext` in
15618 *ELF-32*)
15619 HPUX_IA64_MODE="32"
15621 *ELF-64*)
15622 HPUX_IA64_MODE="64"
15624 esac
15626 rm -rf conftest*
15628 *-*-irix6*)
15629 # Find out which ABI we are using.
15630 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15632 (eval $ac_compile) 2>&5
15633 ac_status=$?
15634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15635 test $ac_status = 0; }; then
15636 if test "$lt_cv_prog_gnu_ld" = yes; then
15637 case `/usr/bin/file conftest.$ac_objext` in
15638 *32-bit*)
15639 LD="${LD-ld} -melf32bsmip"
15641 *N32*)
15642 LD="${LD-ld} -melf32bmipn32"
15644 *64-bit*)
15645 LD="${LD-ld} -melf64bmip"
15647 esac
15648 else
15649 case `/usr/bin/file conftest.$ac_objext` in
15650 *32-bit*)
15651 LD="${LD-ld} -32"
15653 *N32*)
15654 LD="${LD-ld} -n32"
15656 *64-bit*)
15657 LD="${LD-ld} -64"
15659 esac
15662 rm -rf conftest*
15665 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15666 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15667 # Find out which ABI we are using.
15668 echo 'int i;' > conftest.$ac_ext
15669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15670 (eval $ac_compile) 2>&5
15671 ac_status=$?
15672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15673 test $ac_status = 0; }; then
15674 case `/usr/bin/file conftest.o` in
15675 *32-bit*)
15676 case $host in
15677 x86_64-*kfreebsd*-gnu)
15678 LD="${LD-ld} -m elf_i386_fbsd"
15680 x86_64-*linux*)
15681 case `/usr/bin/file conftest.o` in
15682 *x86-64*)
15683 LD="${LD-ld} -m elf32_x86_64"
15686 LD="${LD-ld} -m elf_i386"
15688 esac
15690 powerpc64le-*linux*)
15691 LD="${LD-ld} -m elf32lppclinux"
15693 powerpc64-*linux*)
15694 LD="${LD-ld} -m elf32ppclinux"
15696 s390x-*linux*)
15697 LD="${LD-ld} -m elf_s390"
15699 sparc64-*linux*)
15700 LD="${LD-ld} -m elf32_sparc"
15702 esac
15704 *64-bit*)
15705 case $host in
15706 x86_64-*kfreebsd*-gnu)
15707 LD="${LD-ld} -m elf_x86_64_fbsd"
15709 x86_64-*linux*)
15710 LD="${LD-ld} -m elf_x86_64"
15712 powerpcle-*linux*)
15713 LD="${LD-ld} -m elf64lppc"
15715 powerpc-*linux*)
15716 LD="${LD-ld} -m elf64ppc"
15718 s390*-*linux*|s390*-*tpf*)
15719 LD="${LD-ld} -m elf64_s390"
15721 sparc*-*linux*)
15722 LD="${LD-ld} -m elf64_sparc"
15724 esac
15726 esac
15728 rm -rf conftest*
15731 *-*-sco3.2v5*)
15732 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15733 SAVE_CFLAGS="$CFLAGS"
15734 CFLAGS="$CFLAGS -belf"
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15736 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15737 if ${lt_cv_cc_needs_belf+:} false; then :
15738 $as_echo_n "(cached) " >&6
15739 else
15740 ac_ext=c
15741 ac_cpp='$CPP $CPPFLAGS'
15742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747 /* end confdefs.h. */
15750 main ()
15754 return 0;
15756 _ACEOF
15757 if ac_fn_c_try_link "$LINENO"; then :
15758 lt_cv_cc_needs_belf=yes
15759 else
15760 lt_cv_cc_needs_belf=no
15762 rm -f core conftest.err conftest.$ac_objext \
15763 conftest$ac_exeext conftest.$ac_ext
15764 ac_ext=c
15765 ac_cpp='$CPP $CPPFLAGS'
15766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15772 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15773 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15774 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15775 CFLAGS="$SAVE_CFLAGS"
15778 sparc*-*solaris*)
15779 # Find out which ABI we are using.
15780 echo 'int i;' > conftest.$ac_ext
15781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15782 (eval $ac_compile) 2>&5
15783 ac_status=$?
15784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15785 test $ac_status = 0; }; then
15786 case `/usr/bin/file conftest.o` in
15787 *64-bit*)
15788 case $lt_cv_prog_gnu_ld in
15789 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15791 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15792 LD="${LD-ld} -64"
15795 esac
15797 esac
15799 rm -rf conftest*
15801 esac
15803 need_locks="$enable_libtool_lock"
15806 case $host_os in
15807 rhapsody* | darwin*)
15808 if test -n "$ac_tool_prefix"; then
15809 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15810 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15812 $as_echo_n "checking for $ac_word... " >&6; }
15813 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15814 $as_echo_n "(cached) " >&6
15815 else
15816 if test -n "$DSYMUTIL"; then
15817 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15818 else
15819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15820 for as_dir in $PATH
15822 IFS=$as_save_IFS
15823 test -z "$as_dir" && as_dir=.
15824 for ac_exec_ext in '' $ac_executable_extensions; do
15825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15826 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15828 break 2
15830 done
15831 done
15832 IFS=$as_save_IFS
15836 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15837 if test -n "$DSYMUTIL"; then
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15839 $as_echo "$DSYMUTIL" >&6; }
15840 else
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15842 $as_echo "no" >&6; }
15847 if test -z "$ac_cv_prog_DSYMUTIL"; then
15848 ac_ct_DSYMUTIL=$DSYMUTIL
15849 # Extract the first word of "dsymutil", so it can be a program name with args.
15850 set dummy dsymutil; ac_word=$2
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15852 $as_echo_n "checking for $ac_word... " >&6; }
15853 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15854 $as_echo_n "(cached) " >&6
15855 else
15856 if test -n "$ac_ct_DSYMUTIL"; then
15857 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15858 else
15859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15860 for as_dir in $PATH
15862 IFS=$as_save_IFS
15863 test -z "$as_dir" && as_dir=.
15864 for ac_exec_ext in '' $ac_executable_extensions; do
15865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15866 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15868 break 2
15870 done
15871 done
15872 IFS=$as_save_IFS
15876 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15877 if test -n "$ac_ct_DSYMUTIL"; then
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15879 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15880 else
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15882 $as_echo "no" >&6; }
15885 if test "x$ac_ct_DSYMUTIL" = x; then
15886 DSYMUTIL=":"
15887 else
15888 case $cross_compiling:$ac_tool_warned in
15889 yes:)
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15892 ac_tool_warned=yes ;;
15893 esac
15894 DSYMUTIL=$ac_ct_DSYMUTIL
15896 else
15897 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15900 if test -n "$ac_tool_prefix"; then
15901 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15902 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15904 $as_echo_n "checking for $ac_word... " >&6; }
15905 if ${ac_cv_prog_NMEDIT+:} false; then :
15906 $as_echo_n "(cached) " >&6
15907 else
15908 if test -n "$NMEDIT"; then
15909 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15910 else
15911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15912 for as_dir in $PATH
15914 IFS=$as_save_IFS
15915 test -z "$as_dir" && as_dir=.
15916 for ac_exec_ext in '' $ac_executable_extensions; do
15917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15918 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15920 break 2
15922 done
15923 done
15924 IFS=$as_save_IFS
15928 NMEDIT=$ac_cv_prog_NMEDIT
15929 if test -n "$NMEDIT"; then
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15931 $as_echo "$NMEDIT" >&6; }
15932 else
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15934 $as_echo "no" >&6; }
15939 if test -z "$ac_cv_prog_NMEDIT"; then
15940 ac_ct_NMEDIT=$NMEDIT
15941 # Extract the first word of "nmedit", so it can be a program name with args.
15942 set dummy nmedit; ac_word=$2
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15944 $as_echo_n "checking for $ac_word... " >&6; }
15945 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15946 $as_echo_n "(cached) " >&6
15947 else
15948 if test -n "$ac_ct_NMEDIT"; then
15949 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15950 else
15951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15954 IFS=$as_save_IFS
15955 test -z "$as_dir" && as_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15958 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15960 break 2
15962 done
15963 done
15964 IFS=$as_save_IFS
15968 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15969 if test -n "$ac_ct_NMEDIT"; then
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15971 $as_echo "$ac_ct_NMEDIT" >&6; }
15972 else
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15974 $as_echo "no" >&6; }
15977 if test "x$ac_ct_NMEDIT" = x; then
15978 NMEDIT=":"
15979 else
15980 case $cross_compiling:$ac_tool_warned in
15981 yes:)
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15984 ac_tool_warned=yes ;;
15985 esac
15986 NMEDIT=$ac_ct_NMEDIT
15988 else
15989 NMEDIT="$ac_cv_prog_NMEDIT"
15992 if test -n "$ac_tool_prefix"; then
15993 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15994 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15996 $as_echo_n "checking for $ac_word... " >&6; }
15997 if ${ac_cv_prog_LIPO+:} false; then :
15998 $as_echo_n "(cached) " >&6
15999 else
16000 if test -n "$LIPO"; then
16001 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16002 else
16003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16004 for as_dir in $PATH
16006 IFS=$as_save_IFS
16007 test -z "$as_dir" && as_dir=.
16008 for ac_exec_ext in '' $ac_executable_extensions; do
16009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16010 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
16011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16012 break 2
16014 done
16015 done
16016 IFS=$as_save_IFS
16020 LIPO=$ac_cv_prog_LIPO
16021 if test -n "$LIPO"; then
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
16023 $as_echo "$LIPO" >&6; }
16024 else
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16026 $as_echo "no" >&6; }
16031 if test -z "$ac_cv_prog_LIPO"; then
16032 ac_ct_LIPO=$LIPO
16033 # Extract the first word of "lipo", so it can be a program name with args.
16034 set dummy lipo; ac_word=$2
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16036 $as_echo_n "checking for $ac_word... " >&6; }
16037 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16038 $as_echo_n "(cached) " >&6
16039 else
16040 if test -n "$ac_ct_LIPO"; then
16041 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16042 else
16043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16044 for as_dir in $PATH
16046 IFS=$as_save_IFS
16047 test -z "$as_dir" && as_dir=.
16048 for ac_exec_ext in '' $ac_executable_extensions; do
16049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16050 ac_cv_prog_ac_ct_LIPO="lipo"
16051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16052 break 2
16054 done
16055 done
16056 IFS=$as_save_IFS
16060 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16061 if test -n "$ac_ct_LIPO"; then
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
16063 $as_echo "$ac_ct_LIPO" >&6; }
16064 else
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16066 $as_echo "no" >&6; }
16069 if test "x$ac_ct_LIPO" = x; then
16070 LIPO=":"
16071 else
16072 case $cross_compiling:$ac_tool_warned in
16073 yes:)
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16076 ac_tool_warned=yes ;;
16077 esac
16078 LIPO=$ac_ct_LIPO
16080 else
16081 LIPO="$ac_cv_prog_LIPO"
16084 if test -n "$ac_tool_prefix"; then
16085 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16086 set dummy ${ac_tool_prefix}otool; ac_word=$2
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16088 $as_echo_n "checking for $ac_word... " >&6; }
16089 if ${ac_cv_prog_OTOOL+:} false; then :
16090 $as_echo_n "(cached) " >&6
16091 else
16092 if test -n "$OTOOL"; then
16093 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16094 else
16095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16096 for as_dir in $PATH
16098 IFS=$as_save_IFS
16099 test -z "$as_dir" && as_dir=.
16100 for ac_exec_ext in '' $ac_executable_extensions; do
16101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16102 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16104 break 2
16106 done
16107 done
16108 IFS=$as_save_IFS
16112 OTOOL=$ac_cv_prog_OTOOL
16113 if test -n "$OTOOL"; then
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
16115 $as_echo "$OTOOL" >&6; }
16116 else
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16118 $as_echo "no" >&6; }
16123 if test -z "$ac_cv_prog_OTOOL"; then
16124 ac_ct_OTOOL=$OTOOL
16125 # Extract the first word of "otool", so it can be a program name with args.
16126 set dummy otool; ac_word=$2
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16128 $as_echo_n "checking for $ac_word... " >&6; }
16129 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16130 $as_echo_n "(cached) " >&6
16131 else
16132 if test -n "$ac_ct_OTOOL"; then
16133 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16134 else
16135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16136 for as_dir in $PATH
16138 IFS=$as_save_IFS
16139 test -z "$as_dir" && as_dir=.
16140 for ac_exec_ext in '' $ac_executable_extensions; do
16141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16142 ac_cv_prog_ac_ct_OTOOL="otool"
16143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16144 break 2
16146 done
16147 done
16148 IFS=$as_save_IFS
16152 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16153 if test -n "$ac_ct_OTOOL"; then
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16155 $as_echo "$ac_ct_OTOOL" >&6; }
16156 else
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16158 $as_echo "no" >&6; }
16161 if test "x$ac_ct_OTOOL" = x; then
16162 OTOOL=":"
16163 else
16164 case $cross_compiling:$ac_tool_warned in
16165 yes:)
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16168 ac_tool_warned=yes ;;
16169 esac
16170 OTOOL=$ac_ct_OTOOL
16172 else
16173 OTOOL="$ac_cv_prog_OTOOL"
16176 if test -n "$ac_tool_prefix"; then
16177 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16178 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16180 $as_echo_n "checking for $ac_word... " >&6; }
16181 if ${ac_cv_prog_OTOOL64+:} false; then :
16182 $as_echo_n "(cached) " >&6
16183 else
16184 if test -n "$OTOOL64"; then
16185 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16186 else
16187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16188 for as_dir in $PATH
16190 IFS=$as_save_IFS
16191 test -z "$as_dir" && as_dir=.
16192 for ac_exec_ext in '' $ac_executable_extensions; do
16193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16194 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16196 break 2
16198 done
16199 done
16200 IFS=$as_save_IFS
16204 OTOOL64=$ac_cv_prog_OTOOL64
16205 if test -n "$OTOOL64"; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16207 $as_echo "$OTOOL64" >&6; }
16208 else
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210 $as_echo "no" >&6; }
16215 if test -z "$ac_cv_prog_OTOOL64"; then
16216 ac_ct_OTOOL64=$OTOOL64
16217 # Extract the first word of "otool64", so it can be a program name with args.
16218 set dummy otool64; ac_word=$2
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16220 $as_echo_n "checking for $ac_word... " >&6; }
16221 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16222 $as_echo_n "(cached) " >&6
16223 else
16224 if test -n "$ac_ct_OTOOL64"; then
16225 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16226 else
16227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16228 for as_dir in $PATH
16230 IFS=$as_save_IFS
16231 test -z "$as_dir" && as_dir=.
16232 for ac_exec_ext in '' $ac_executable_extensions; do
16233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16234 ac_cv_prog_ac_ct_OTOOL64="otool64"
16235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16236 break 2
16238 done
16239 done
16240 IFS=$as_save_IFS
16244 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16245 if test -n "$ac_ct_OTOOL64"; then
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16247 $as_echo "$ac_ct_OTOOL64" >&6; }
16248 else
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16250 $as_echo "no" >&6; }
16253 if test "x$ac_ct_OTOOL64" = x; then
16254 OTOOL64=":"
16255 else
16256 case $cross_compiling:$ac_tool_warned in
16257 yes:)
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16260 ac_tool_warned=yes ;;
16261 esac
16262 OTOOL64=$ac_ct_OTOOL64
16264 else
16265 OTOOL64="$ac_cv_prog_OTOOL64"
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16295 $as_echo_n "checking for -single_module linker flag... " >&6; }
16296 if ${lt_cv_apple_cc_single_mod+:} false; then :
16297 $as_echo_n "(cached) " >&6
16298 else
16299 lt_cv_apple_cc_single_mod=no
16300 if test -z "${LT_MULTI_MODULE}"; then
16301 # By default we will add the -single_module flag. You can override
16302 # by either setting the environment variable LT_MULTI_MODULE
16303 # non-empty at configure time, or by adding -multi_module to the
16304 # link flags.
16305 rm -rf libconftest.dylib*
16306 echo "int foo(void){return 1;}" > conftest.c
16307 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16308 -dynamiclib -Wl,-single_module conftest.c" >&5
16309 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16310 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16311 _lt_result=$?
16312 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16313 lt_cv_apple_cc_single_mod=yes
16314 else
16315 cat conftest.err >&5
16317 rm -rf libconftest.dylib*
16318 rm -f conftest.*
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16322 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16324 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16325 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16326 $as_echo_n "(cached) " >&6
16327 else
16328 lt_cv_ld_exported_symbols_list=no
16329 save_LDFLAGS=$LDFLAGS
16330 echo "_main" > conftest.sym
16331 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16336 main ()
16340 return 0;
16342 _ACEOF
16343 if ac_fn_c_try_link "$LINENO"; then :
16344 lt_cv_ld_exported_symbols_list=yes
16345 else
16346 lt_cv_ld_exported_symbols_list=no
16348 rm -f core conftest.err conftest.$ac_objext \
16349 conftest$ac_exeext conftest.$ac_ext
16350 LDFLAGS="$save_LDFLAGS"
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16354 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16356 $as_echo_n "checking for -force_load linker flag... " >&6; }
16357 if ${lt_cv_ld_force_load+:} false; then :
16358 $as_echo_n "(cached) " >&6
16359 else
16360 lt_cv_ld_force_load=no
16361 cat > conftest.c << _LT_EOF
16362 int forced_loaded() { return 2;}
16363 _LT_EOF
16364 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16365 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16366 echo "$AR cru libconftest.a conftest.o" >&5
16367 $AR cru libconftest.a conftest.o 2>&5
16368 cat > conftest.c << _LT_EOF
16369 int main() { return 0;}
16370 _LT_EOF
16371 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16372 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16373 _lt_result=$?
16374 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16375 lt_cv_ld_force_load=yes
16376 else
16377 cat conftest.err >&5
16379 rm -f conftest.err libconftest.a conftest conftest.c
16380 rm -rf conftest.dSYM
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16384 $as_echo "$lt_cv_ld_force_load" >&6; }
16385 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16386 # build without first building modern cctools / linker.
16387 case $host_cpu-$host_os in
16388 *-rhapsody* | *-darwin1.[012])
16389 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16390 *-darwin1.*)
16391 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16392 *-darwin*)
16393 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16394 # deployment target is forced to an earlier version.
16395 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16396 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16398 10.[012][,.]*)
16399 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16403 esac
16405 esac
16406 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16407 _lt_dar_single_mod='$single_module'
16409 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16410 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16411 else
16412 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16414 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16415 _lt_dsymutil='~$DSYMUTIL $lib || :'
16416 else
16417 _lt_dsymutil=
16420 esac
16423 for ac_header in dlfcn.h
16424 do :
16425 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16426 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16427 cat >>confdefs.h <<_ACEOF
16428 #define HAVE_DLFCN_H 1
16429 _ACEOF
16432 done
16438 # Set options
16442 enable_dlopen=no
16445 enable_win32_dll=no
16448 # Check whether --enable-shared was given.
16449 if test "${enable_shared+set}" = set; then :
16450 enableval=$enable_shared; p=${PACKAGE-default}
16451 case $enableval in
16452 yes) enable_shared=yes ;;
16453 no) enable_shared=no ;;
16455 enable_shared=no
16456 # Look at the argument we got. We use all the common list separators.
16457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16458 for pkg in $enableval; do
16459 IFS="$lt_save_ifs"
16460 if test "X$pkg" = "X$p"; then
16461 enable_shared=yes
16463 done
16464 IFS="$lt_save_ifs"
16466 esac
16467 else
16468 enable_shared=yes
16479 # Check whether --enable-static was given.
16480 if test "${enable_static+set}" = set; then :
16481 enableval=$enable_static; p=${PACKAGE-default}
16482 case $enableval in
16483 yes) enable_static=yes ;;
16484 no) enable_static=no ;;
16486 enable_static=no
16487 # Look at the argument we got. We use all the common list separators.
16488 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16489 for pkg in $enableval; do
16490 IFS="$lt_save_ifs"
16491 if test "X$pkg" = "X$p"; then
16492 enable_static=yes
16494 done
16495 IFS="$lt_save_ifs"
16497 esac
16498 else
16499 enable_static=yes
16511 # Check whether --with-pic was given.
16512 if test "${with_pic+set}" = set; then :
16513 withval=$with_pic; pic_mode="$withval"
16514 else
16515 pic_mode=default
16519 test -z "$pic_mode" && pic_mode=default
16527 # Check whether --enable-fast-install was given.
16528 if test "${enable_fast_install+set}" = set; then :
16529 enableval=$enable_fast_install; p=${PACKAGE-default}
16530 case $enableval in
16531 yes) enable_fast_install=yes ;;
16532 no) enable_fast_install=no ;;
16534 enable_fast_install=no
16535 # Look at the argument we got. We use all the common list separators.
16536 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16537 for pkg in $enableval; do
16538 IFS="$lt_save_ifs"
16539 if test "X$pkg" = "X$p"; then
16540 enable_fast_install=yes
16542 done
16543 IFS="$lt_save_ifs"
16545 esac
16546 else
16547 enable_fast_install=yes
16560 # This can be used to rebuild libtool when needed
16561 LIBTOOL_DEPS="$ltmain"
16563 # Always use our own libtool.
16564 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16591 test -z "$LN_S" && LN_S="ln -s"
16606 if test -n "${ZSH_VERSION+set}" ; then
16607 setopt NO_GLOB_SUBST
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16611 $as_echo_n "checking for objdir... " >&6; }
16612 if ${lt_cv_objdir+:} false; then :
16613 $as_echo_n "(cached) " >&6
16614 else
16615 rm -f .libs 2>/dev/null
16616 mkdir .libs 2>/dev/null
16617 if test -d .libs; then
16618 lt_cv_objdir=.libs
16619 else
16620 # MS-DOS does not allow filenames that begin with a dot.
16621 lt_cv_objdir=_libs
16623 rmdir .libs 2>/dev/null
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16626 $as_echo "$lt_cv_objdir" >&6; }
16627 objdir=$lt_cv_objdir
16633 cat >>confdefs.h <<_ACEOF
16634 #define LT_OBJDIR "$lt_cv_objdir/"
16635 _ACEOF
16640 case $host_os in
16641 aix3*)
16642 # AIX sometimes has problems with the GCC collect2 program. For some
16643 # reason, if we set the COLLECT_NAMES environment variable, the problems
16644 # vanish in a puff of smoke.
16645 if test "X${COLLECT_NAMES+set}" != Xset; then
16646 COLLECT_NAMES=
16647 export COLLECT_NAMES
16650 esac
16652 # Global variables:
16653 ofile=libtool
16654 can_build_shared=yes
16656 # All known linkers require a `.a' archive for static linking (except MSVC,
16657 # which needs '.lib').
16658 libext=a
16660 with_gnu_ld="$lt_cv_prog_gnu_ld"
16662 old_CC="$CC"
16663 old_CFLAGS="$CFLAGS"
16665 # Set sane defaults for various variables
16666 test -z "$CC" && CC=cc
16667 test -z "$LTCC" && LTCC=$CC
16668 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16669 test -z "$LD" && LD=ld
16670 test -z "$ac_objext" && ac_objext=o
16672 for cc_temp in $compiler""; do
16673 case $cc_temp in
16674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16676 \-*) ;;
16677 *) break;;
16678 esac
16679 done
16680 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16683 # Only perform the check for file, if the check method requires it
16684 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16685 case $deplibs_check_method in
16686 file_magic*)
16687 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16689 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16690 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16691 $as_echo_n "(cached) " >&6
16692 else
16693 case $MAGIC_CMD in
16694 [\\/*] | ?:[\\/]*)
16695 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16698 lt_save_MAGIC_CMD="$MAGIC_CMD"
16699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16700 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16701 for ac_dir in $ac_dummy; do
16702 IFS="$lt_save_ifs"
16703 test -z "$ac_dir" && ac_dir=.
16704 if test -f $ac_dir/${ac_tool_prefix}file; then
16705 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16706 if test -n "$file_magic_test_file"; then
16707 case $deplibs_check_method in
16708 "file_magic "*)
16709 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16710 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16711 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16712 $EGREP "$file_magic_regex" > /dev/null; then
16714 else
16715 cat <<_LT_EOF 1>&2
16717 *** Warning: the command libtool uses to detect shared libraries,
16718 *** $file_magic_cmd, produces output that libtool cannot recognize.
16719 *** The result is that libtool may fail to recognize shared libraries
16720 *** as such. This will affect the creation of libtool libraries that
16721 *** depend on shared libraries, but programs linked with such libtool
16722 *** libraries will work regardless of this problem. Nevertheless, you
16723 *** may want to report the problem to your system manager and/or to
16724 *** bug-libtool@gnu.org
16726 _LT_EOF
16727 fi ;;
16728 esac
16730 break
16732 done
16733 IFS="$lt_save_ifs"
16734 MAGIC_CMD="$lt_save_MAGIC_CMD"
16736 esac
16739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16740 if test -n "$MAGIC_CMD"; then
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16742 $as_echo "$MAGIC_CMD" >&6; }
16743 else
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16745 $as_echo "no" >&6; }
16752 if test -z "$lt_cv_path_MAGIC_CMD"; then
16753 if test -n "$ac_tool_prefix"; then
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16755 $as_echo_n "checking for file... " >&6; }
16756 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16757 $as_echo_n "(cached) " >&6
16758 else
16759 case $MAGIC_CMD in
16760 [\\/*] | ?:[\\/]*)
16761 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16764 lt_save_MAGIC_CMD="$MAGIC_CMD"
16765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16766 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16767 for ac_dir in $ac_dummy; do
16768 IFS="$lt_save_ifs"
16769 test -z "$ac_dir" && ac_dir=.
16770 if test -f $ac_dir/file; then
16771 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16772 if test -n "$file_magic_test_file"; then
16773 case $deplibs_check_method in
16774 "file_magic "*)
16775 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16777 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16778 $EGREP "$file_magic_regex" > /dev/null; then
16780 else
16781 cat <<_LT_EOF 1>&2
16783 *** Warning: the command libtool uses to detect shared libraries,
16784 *** $file_magic_cmd, produces output that libtool cannot recognize.
16785 *** The result is that libtool may fail to recognize shared libraries
16786 *** as such. This will affect the creation of libtool libraries that
16787 *** depend on shared libraries, but programs linked with such libtool
16788 *** libraries will work regardless of this problem. Nevertheless, you
16789 *** may want to report the problem to your system manager and/or to
16790 *** bug-libtool@gnu.org
16792 _LT_EOF
16793 fi ;;
16794 esac
16796 break
16798 done
16799 IFS="$lt_save_ifs"
16800 MAGIC_CMD="$lt_save_MAGIC_CMD"
16802 esac
16805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16806 if test -n "$MAGIC_CMD"; then
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16808 $as_echo "$MAGIC_CMD" >&6; }
16809 else
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16811 $as_echo "no" >&6; }
16815 else
16816 MAGIC_CMD=:
16822 esac
16824 # Use C for the default configuration in the libtool script
16826 lt_save_CC="$CC"
16827 ac_ext=c
16828 ac_cpp='$CPP $CPPFLAGS'
16829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16834 # Source file extension for C test sources.
16835 ac_ext=c
16837 # Object file extension for compiled C test sources.
16838 objext=o
16839 objext=$objext
16841 # Code to be used in simple compile tests
16842 lt_simple_compile_test_code="int some_variable = 0;"
16844 # Code to be used in simple link tests
16845 lt_simple_link_test_code='int main(){return(0);}'
16853 # If no C compiler was specified, use CC.
16854 LTCC=${LTCC-"$CC"}
16856 # If no C compiler flags were specified, use CFLAGS.
16857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16859 # Allow CC to be a program name with arguments.
16860 compiler=$CC
16862 # Save the default compiler, since it gets overwritten when the other
16863 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16864 compiler_DEFAULT=$CC
16866 # save warnings/boilerplate of simple test code
16867 ac_outfile=conftest.$ac_objext
16868 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16870 _lt_compiler_boilerplate=`cat conftest.err`
16871 $RM conftest*
16873 ac_outfile=conftest.$ac_objext
16874 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16875 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16876 _lt_linker_boilerplate=`cat conftest.err`
16877 $RM -r conftest*
16880 ## CAVEAT EMPTOR:
16881 ## There is no encapsulation within the following macros, do not change
16882 ## the running order or otherwise move them around unless you know exactly
16883 ## what you are doing...
16884 if test -n "$compiler"; then
16886 lt_prog_compiler_no_builtin_flag=
16888 if test "$GCC" = yes; then
16889 case $cc_basename in
16890 nvcc*)
16891 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16893 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16894 esac
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16897 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16898 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16899 $as_echo_n "(cached) " >&6
16900 else
16901 lt_cv_prog_compiler_rtti_exceptions=no
16902 ac_outfile=conftest.$ac_objext
16903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16904 lt_compiler_flag="-fno-rtti -fno-exceptions"
16905 # Insert the option either (1) after the last *FLAGS variable, or
16906 # (2) before a word containing "conftest.", or (3) at the end.
16907 # Note that $ac_compile itself does not contain backslashes and begins
16908 # with a dollar sign (not a hyphen), so the echo should work correctly.
16909 # The option is referenced via a variable to avoid confusing sed.
16910 lt_compile=`echo "$ac_compile" | $SED \
16911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16913 -e 's:$: $lt_compiler_flag:'`
16914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16915 (eval "$lt_compile" 2>conftest.err)
16916 ac_status=$?
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 if (exit $ac_status) && test -s "$ac_outfile"; then
16920 # The compiler can only warn and ignore the option if not recognized
16921 # So say no if there are warnings other than the usual output.
16922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16925 lt_cv_prog_compiler_rtti_exceptions=yes
16928 $RM conftest*
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16932 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16934 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16935 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16936 else
16947 lt_prog_compiler_wl=
16948 lt_prog_compiler_pic=
16949 lt_prog_compiler_static=
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16952 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16954 if test "$GCC" = yes; then
16955 lt_prog_compiler_wl='-Wl,'
16956 lt_prog_compiler_static='-static'
16958 case $host_os in
16959 aix*)
16960 # All AIX code is PIC.
16961 if test "$host_cpu" = ia64; then
16962 # AIX 5 now supports IA64 processor
16963 lt_prog_compiler_static='-Bstatic'
16965 lt_prog_compiler_pic='-fPIC'
16968 amigaos*)
16969 case $host_cpu in
16970 powerpc)
16971 # see comment about AmigaOS4 .so support
16972 lt_prog_compiler_pic='-fPIC'
16974 m68k)
16975 # FIXME: we need at least 68020 code to build shared libraries, but
16976 # adding the `-m68020' flag to GCC prevents building anything better,
16977 # like `-m68040'.
16978 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16980 esac
16983 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16984 # PIC is the default for these OSes.
16987 mingw* | cygwin* | pw32* | os2* | cegcc*)
16988 # This hack is so that the source file can tell whether it is being
16989 # built for inclusion in a dll (and should export symbols for example).
16990 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16991 # (--disable-auto-import) libraries
16992 lt_prog_compiler_pic='-DDLL_EXPORT'
16995 darwin* | rhapsody*)
16996 # PIC is the default on this platform
16997 # Common symbols not allowed in MH_DYLIB files
16998 lt_prog_compiler_pic='-fno-common'
17001 haiku*)
17002 # PIC is the default for Haiku.
17003 # The "-static" flag exists, but is broken.
17004 lt_prog_compiler_static=
17007 hpux*)
17008 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17009 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17010 # sets the default TLS model and affects inlining.
17011 case $host_cpu in
17012 hppa*64*)
17013 # +Z the default
17016 lt_prog_compiler_pic='-fPIC'
17018 esac
17021 interix[3-9]*)
17022 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17023 # Instead, we relocate shared libraries at runtime.
17026 msdosdjgpp*)
17027 # Just because we use GCC doesn't mean we suddenly get shared libraries
17028 # on systems that don't support them.
17029 lt_prog_compiler_can_build_shared=no
17030 enable_shared=no
17033 *nto* | *qnx*)
17034 # QNX uses GNU C++, but need to define -shared option too, otherwise
17035 # it will coredump.
17036 lt_prog_compiler_pic='-fPIC -shared'
17039 sysv4*MP*)
17040 if test -d /usr/nec; then
17041 lt_prog_compiler_pic=-Kconform_pic
17046 lt_prog_compiler_pic='-fPIC'
17048 esac
17050 case $cc_basename in
17051 nvcc*) # Cuda Compiler Driver 2.2
17052 lt_prog_compiler_wl='-Xlinker '
17053 lt_prog_compiler_pic='-Xcompiler -fPIC'
17055 esac
17056 else
17057 # PORTME Check for flag to pass linker flags through the system compiler.
17058 case $host_os in
17059 aix*)
17060 lt_prog_compiler_wl='-Wl,'
17061 if test "$host_cpu" = ia64; then
17062 # AIX 5 now supports IA64 processor
17063 lt_prog_compiler_static='-Bstatic'
17064 else
17065 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17069 mingw* | cygwin* | pw32* | os2* | cegcc*)
17070 # This hack is so that the source file can tell whether it is being
17071 # built for inclusion in a dll (and should export symbols for example).
17072 lt_prog_compiler_pic='-DDLL_EXPORT'
17075 hpux9* | hpux10* | hpux11*)
17076 lt_prog_compiler_wl='-Wl,'
17077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17078 # not for PA HP-UX.
17079 case $host_cpu in
17080 hppa*64*|ia64*)
17081 # +Z the default
17084 lt_prog_compiler_pic='+Z'
17086 esac
17087 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17088 lt_prog_compiler_static='${wl}-a ${wl}archive'
17091 irix5* | irix6* | nonstopux*)
17092 lt_prog_compiler_wl='-Wl,'
17093 # PIC (with -KPIC) is the default.
17094 lt_prog_compiler_static='-non_shared'
17097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17098 case $cc_basename in
17099 # old Intel for x86_64 which still supported -KPIC.
17100 ecc*)
17101 lt_prog_compiler_wl='-Wl,'
17102 lt_prog_compiler_pic='-KPIC'
17103 lt_prog_compiler_static='-static'
17105 # icc used to be incompatible with GCC.
17106 # ICC 10 doesn't accept -KPIC any more.
17107 icc* | ifort*)
17108 lt_prog_compiler_wl='-Wl,'
17109 lt_prog_compiler_pic='-fPIC'
17110 lt_prog_compiler_static='-static'
17112 # Lahey Fortran 8.1.
17113 lf95*)
17114 lt_prog_compiler_wl='-Wl,'
17115 lt_prog_compiler_pic='--shared'
17116 lt_prog_compiler_static='--static'
17118 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17119 # Portland Group compilers (*not* the Pentium gcc compiler,
17120 # which looks to be a dead project)
17121 lt_prog_compiler_wl='-Wl,'
17122 lt_prog_compiler_pic='-fpic'
17123 lt_prog_compiler_static='-Bstatic'
17125 ccc*)
17126 lt_prog_compiler_wl='-Wl,'
17127 # All Alpha code is PIC.
17128 lt_prog_compiler_static='-non_shared'
17130 xl* | bgxl* | bgf* | mpixl*)
17131 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17132 lt_prog_compiler_wl='-Wl,'
17133 lt_prog_compiler_pic='-qpic'
17134 lt_prog_compiler_static='-qstaticlink'
17137 case `$CC -V 2>&1 | sed 5q` in
17138 *Sun\ F* | *Sun*Fortran*)
17139 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17140 lt_prog_compiler_pic='-KPIC'
17141 lt_prog_compiler_static='-Bstatic'
17142 lt_prog_compiler_wl=''
17144 *Sun\ C*)
17145 # Sun C 5.9
17146 lt_prog_compiler_pic='-KPIC'
17147 lt_prog_compiler_static='-Bstatic'
17148 lt_prog_compiler_wl='-Wl,'
17150 esac
17152 esac
17155 newsos6)
17156 lt_prog_compiler_pic='-KPIC'
17157 lt_prog_compiler_static='-Bstatic'
17160 *nto* | *qnx*)
17161 # QNX uses GNU C++, but need to define -shared option too, otherwise
17162 # it will coredump.
17163 lt_prog_compiler_pic='-fPIC -shared'
17166 osf3* | osf4* | osf5*)
17167 lt_prog_compiler_wl='-Wl,'
17168 # All OSF/1 code is PIC.
17169 lt_prog_compiler_static='-non_shared'
17172 rdos*)
17173 lt_prog_compiler_static='-non_shared'
17176 solaris*)
17177 lt_prog_compiler_pic='-KPIC'
17178 lt_prog_compiler_static='-Bstatic'
17179 case $cc_basename in
17180 f77* | f90* | f95*)
17181 lt_prog_compiler_wl='-Qoption ld ';;
17183 lt_prog_compiler_wl='-Wl,';;
17184 esac
17187 sunos4*)
17188 lt_prog_compiler_wl='-Qoption ld '
17189 lt_prog_compiler_pic='-PIC'
17190 lt_prog_compiler_static='-Bstatic'
17193 sysv4 | sysv4.2uw2* | sysv4.3*)
17194 lt_prog_compiler_wl='-Wl,'
17195 lt_prog_compiler_pic='-KPIC'
17196 lt_prog_compiler_static='-Bstatic'
17199 sysv4*MP*)
17200 if test -d /usr/nec ;then
17201 lt_prog_compiler_pic='-Kconform_pic'
17202 lt_prog_compiler_static='-Bstatic'
17206 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17207 lt_prog_compiler_wl='-Wl,'
17208 lt_prog_compiler_pic='-KPIC'
17209 lt_prog_compiler_static='-Bstatic'
17212 unicos*)
17213 lt_prog_compiler_wl='-Wl,'
17214 lt_prog_compiler_can_build_shared=no
17217 uts4*)
17218 lt_prog_compiler_pic='-pic'
17219 lt_prog_compiler_static='-Bstatic'
17223 lt_prog_compiler_can_build_shared=no
17225 esac
17228 case $host_os in
17229 # For platforms which do not support PIC, -DPIC is meaningless:
17230 *djgpp*)
17231 lt_prog_compiler_pic=
17234 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17236 esac
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17238 $as_echo "$lt_prog_compiler_pic" >&6; }
17246 # Check to make sure the PIC flag actually works.
17248 if test -n "$lt_prog_compiler_pic"; then
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17250 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17251 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17252 $as_echo_n "(cached) " >&6
17253 else
17254 lt_cv_prog_compiler_pic_works=no
17255 ac_outfile=conftest.$ac_objext
17256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17257 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17258 # Insert the option either (1) after the last *FLAGS variable, or
17259 # (2) before a word containing "conftest.", or (3) at the end.
17260 # Note that $ac_compile itself does not contain backslashes and begins
17261 # with a dollar sign (not a hyphen), so the echo should work correctly.
17262 # The option is referenced via a variable to avoid confusing sed.
17263 lt_compile=`echo "$ac_compile" | $SED \
17264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17266 -e 's:$: $lt_compiler_flag:'`
17267 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17268 (eval "$lt_compile" 2>conftest.err)
17269 ac_status=$?
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 if (exit $ac_status) && test -s "$ac_outfile"; then
17273 # The compiler can only warn and ignore the option if not recognized
17274 # So say no if there are warnings other than the usual output.
17275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17278 lt_cv_prog_compiler_pic_works=yes
17281 $RM conftest*
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17285 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17287 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17288 case $lt_prog_compiler_pic in
17289 "" | " "*) ;;
17290 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17291 esac
17292 else
17293 lt_prog_compiler_pic=
17294 lt_prog_compiler_can_build_shared=no
17305 # Check to make sure the static flag actually works.
17307 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17309 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17310 if ${lt_cv_prog_compiler_static_works+:} false; then :
17311 $as_echo_n "(cached) " >&6
17312 else
17313 lt_cv_prog_compiler_static_works=no
17314 save_LDFLAGS="$LDFLAGS"
17315 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17316 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17317 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17318 # The linker can only warn and ignore the option if not recognized
17319 # So say no if there are warnings
17320 if test -s conftest.err; then
17321 # Append any errors to the config.log.
17322 cat conftest.err 1>&5
17323 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17325 if diff conftest.exp conftest.er2 >/dev/null; then
17326 lt_cv_prog_compiler_static_works=yes
17328 else
17329 lt_cv_prog_compiler_static_works=yes
17332 $RM -r conftest*
17333 LDFLAGS="$save_LDFLAGS"
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17337 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17339 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17341 else
17342 lt_prog_compiler_static=
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17352 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17353 if ${lt_cv_prog_compiler_c_o+:} false; then :
17354 $as_echo_n "(cached) " >&6
17355 else
17356 lt_cv_prog_compiler_c_o=no
17357 $RM -r conftest 2>/dev/null
17358 mkdir conftest
17359 cd conftest
17360 mkdir out
17361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17363 lt_compiler_flag="-o out/conftest2.$ac_objext"
17364 # Insert the option either (1) after the last *FLAGS variable, or
17365 # (2) before a word containing "conftest.", or (3) at the end.
17366 # Note that $ac_compile itself does not contain backslashes and begins
17367 # with a dollar sign (not a hyphen), so the echo should work correctly.
17368 lt_compile=`echo "$ac_compile" | $SED \
17369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17371 -e 's:$: $lt_compiler_flag:'`
17372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17373 (eval "$lt_compile" 2>out/conftest.err)
17374 ac_status=$?
17375 cat out/conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17378 then
17379 # The compiler can only warn and ignore the option if not recognized
17380 # So say no if there are warnings
17381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17384 lt_cv_prog_compiler_c_o=yes
17387 chmod u+w . 2>&5
17388 $RM conftest*
17389 # SGI C++ compiler will create directory out/ii_files/ for
17390 # template instantiation
17391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17392 $RM out/* && rmdir out
17393 cd ..
17394 $RM -r conftest
17395 $RM conftest*
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17399 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17407 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17408 if ${lt_cv_prog_compiler_c_o+:} false; then :
17409 $as_echo_n "(cached) " >&6
17410 else
17411 lt_cv_prog_compiler_c_o=no
17412 $RM -r conftest 2>/dev/null
17413 mkdir conftest
17414 cd conftest
17415 mkdir out
17416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17418 lt_compiler_flag="-o out/conftest2.$ac_objext"
17419 # Insert the option either (1) after the last *FLAGS variable, or
17420 # (2) before a word containing "conftest.", or (3) at the end.
17421 # Note that $ac_compile itself does not contain backslashes and begins
17422 # with a dollar sign (not a hyphen), so the echo should work correctly.
17423 lt_compile=`echo "$ac_compile" | $SED \
17424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17426 -e 's:$: $lt_compiler_flag:'`
17427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17428 (eval "$lt_compile" 2>out/conftest.err)
17429 ac_status=$?
17430 cat out/conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17433 then
17434 # The compiler can only warn and ignore the option if not recognized
17435 # So say no if there are warnings
17436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17437 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17438 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17439 lt_cv_prog_compiler_c_o=yes
17442 chmod u+w . 2>&5
17443 $RM conftest*
17444 # SGI C++ compiler will create directory out/ii_files/ for
17445 # template instantiation
17446 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17447 $RM out/* && rmdir out
17448 cd ..
17449 $RM -r conftest
17450 $RM conftest*
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17454 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17459 hard_links="nottested"
17460 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17461 # do not overwrite the value of need_locks provided by the user
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17463 $as_echo_n "checking if we can lock with hard links... " >&6; }
17464 hard_links=yes
17465 $RM conftest*
17466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17467 touch conftest.a
17468 ln conftest.a conftest.b 2>&5 || hard_links=no
17469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17471 $as_echo "$hard_links" >&6; }
17472 if test "$hard_links" = no; then
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17474 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17475 need_locks=warn
17477 else
17478 need_locks=no
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17487 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17489 runpath_var=
17490 allow_undefined_flag=
17491 always_export_symbols=no
17492 archive_cmds=
17493 archive_expsym_cmds=
17494 compiler_needs_object=no
17495 enable_shared_with_static_runtimes=no
17496 export_dynamic_flag_spec=
17497 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17498 hardcode_automatic=no
17499 hardcode_direct=no
17500 hardcode_direct_absolute=no
17501 hardcode_libdir_flag_spec=
17502 hardcode_libdir_flag_spec_ld=
17503 hardcode_libdir_separator=
17504 hardcode_minus_L=no
17505 hardcode_shlibpath_var=unsupported
17506 inherit_rpath=no
17507 link_all_deplibs=unknown
17508 module_cmds=
17509 module_expsym_cmds=
17510 old_archive_from_new_cmds=
17511 old_archive_from_expsyms_cmds=
17512 thread_safe_flag_spec=
17513 whole_archive_flag_spec=
17514 # include_expsyms should be a list of space-separated symbols to be *always*
17515 # included in the symbol list
17516 include_expsyms=
17517 # exclude_expsyms can be an extended regexp of symbols to exclude
17518 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17519 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17520 # as well as any symbol that contains `d'.
17521 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17522 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17523 # platforms (ab)use it in PIC code, but their linkers get confused if
17524 # the symbol is explicitly referenced. Since portable code cannot
17525 # rely on this symbol name, it's probably fine to never include it in
17526 # preloaded symbol tables.
17527 # Exclude shared library initialization/finalization symbols.
17528 extract_expsyms_cmds=
17530 case $host_os in
17531 cygwin* | mingw* | pw32* | cegcc*)
17532 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17533 # When not using gcc, we currently assume that we are using
17534 # Microsoft Visual C++.
17535 if test "$GCC" != yes; then
17536 with_gnu_ld=no
17539 interix*)
17540 # we just hope/assume this is gcc and not c89 (= MSVC++)
17541 with_gnu_ld=yes
17543 openbsd*)
17544 with_gnu_ld=no
17546 esac
17548 ld_shlibs=yes
17550 # On some targets, GNU ld is compatible enough with the native linker
17551 # that we're better off using the native interface for both.
17552 lt_use_gnu_ld_interface=no
17553 if test "$with_gnu_ld" = yes; then
17554 case $host_os in
17555 aix*)
17556 # The AIX port of GNU ld has always aspired to compatibility
17557 # with the native linker. However, as the warning in the GNU ld
17558 # block says, versions before 2.19.5* couldn't really create working
17559 # shared libraries, regardless of the interface used.
17560 case `$LD -v 2>&1` in
17561 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17562 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17563 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17565 lt_use_gnu_ld_interface=yes
17567 esac
17570 lt_use_gnu_ld_interface=yes
17572 esac
17575 if test "$lt_use_gnu_ld_interface" = yes; then
17576 # If archive_cmds runs LD, not CC, wlarc should be empty
17577 wlarc='${wl}'
17579 # Set some defaults for GNU ld with shared library support. These
17580 # are reset later if shared libraries are not supported. Putting them
17581 # here allows them to be overridden if necessary.
17582 runpath_var=LD_RUN_PATH
17583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17584 export_dynamic_flag_spec='${wl}--export-dynamic'
17585 # ancient GNU ld didn't support --whole-archive et. al.
17586 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17587 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17588 else
17589 whole_archive_flag_spec=
17591 supports_anon_versioning=no
17592 case `$LD -v 2>&1` in
17593 *GNU\ gold*) supports_anon_versioning=yes ;;
17594 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17595 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17596 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17597 *\ 2.11.*) ;; # other 2.11 versions
17598 *) supports_anon_versioning=yes ;;
17599 esac
17601 # See if GNU ld supports shared libraries.
17602 case $host_os in
17603 aix[3-9]*)
17604 # On AIX/PPC, the GNU linker is very broken
17605 if test "$host_cpu" != ia64; then
17606 ld_shlibs=no
17607 cat <<_LT_EOF 1>&2
17609 *** Warning: the GNU linker, at least up to release 2.19, is reported
17610 *** to be unable to reliably create shared libraries on AIX.
17611 *** Therefore, libtool is disabling shared libraries support. If you
17612 *** really care for shared libraries, you may want to install binutils
17613 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17614 *** You will then need to restart the configuration process.
17616 _LT_EOF
17620 amigaos*)
17621 case $host_cpu in
17622 powerpc)
17623 # see comment about AmigaOS4 .so support
17624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17625 archive_expsym_cmds=''
17627 m68k)
17628 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)'
17629 hardcode_libdir_flag_spec='-L$libdir'
17630 hardcode_minus_L=yes
17632 esac
17635 beos*)
17636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17637 allow_undefined_flag=unsupported
17638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17639 # support --undefined. This deserves some investigation. FIXME
17640 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17641 else
17642 ld_shlibs=no
17646 cygwin* | mingw* | pw32* | cegcc*)
17647 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17648 # as there is no search path for DLLs.
17649 hardcode_libdir_flag_spec='-L$libdir'
17650 export_dynamic_flag_spec='${wl}--export-all-symbols'
17651 allow_undefined_flag=unsupported
17652 always_export_symbols=no
17653 enable_shared_with_static_runtimes=yes
17654 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17656 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17658 # If the export-symbols file already is a .def file (1st line
17659 # is EXPORTS), use it as is; otherwise, prepend...
17660 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17661 cp $export_symbols $output_objdir/$soname.def;
17662 else
17663 echo EXPORTS > $output_objdir/$soname.def;
17664 cat $export_symbols >> $output_objdir/$soname.def;
17666 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17667 else
17668 ld_shlibs=no
17672 haiku*)
17673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17674 link_all_deplibs=yes
17677 interix[3-9]*)
17678 hardcode_direct=no
17679 hardcode_shlibpath_var=no
17680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17681 export_dynamic_flag_spec='${wl}-E'
17682 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17683 # Instead, shared libraries are loaded at an image base (0x10000000 by
17684 # default) and relocated if they conflict, which is a slow very memory
17685 # consuming and fragmenting process. To avoid this, we pick a random,
17686 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17687 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17688 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17689 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'
17692 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17693 tmp_diet=no
17694 if test "$host_os" = linux-dietlibc; then
17695 case $cc_basename in
17696 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17697 esac
17699 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17700 && test "$tmp_diet" = no
17701 then
17702 tmp_addflag=' $pic_flag'
17703 tmp_sharedflag='-shared'
17704 case $cc_basename,$host_cpu in
17705 pgcc*) # Portland Group C compiler
17706 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'
17707 tmp_addflag=' $pic_flag'
17709 pgf77* | pgf90* | pgf95* | pgfortran*)
17710 # Portland Group f77 and f90 compilers
17711 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'
17712 tmp_addflag=' $pic_flag -Mnomain' ;;
17713 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17714 tmp_addflag=' -i_dynamic' ;;
17715 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17716 tmp_addflag=' -i_dynamic -nofor_main' ;;
17717 ifc* | ifort*) # Intel Fortran compiler
17718 tmp_addflag=' -nofor_main' ;;
17719 lf95*) # Lahey Fortran 8.1
17720 whole_archive_flag_spec=
17721 tmp_sharedflag='--shared' ;;
17722 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17723 tmp_sharedflag='-qmkshrobj'
17724 tmp_addflag= ;;
17725 nvcc*) # Cuda Compiler Driver 2.2
17726 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'
17727 compiler_needs_object=yes
17729 esac
17730 case `$CC -V 2>&1 | sed 5q` in
17731 *Sun\ C*) # Sun C 5.9
17732 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'
17733 compiler_needs_object=yes
17734 tmp_sharedflag='-G' ;;
17735 *Sun\ F*) # Sun Fortran 8.3
17736 tmp_sharedflag='-G' ;;
17737 esac
17738 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17740 if test "x$supports_anon_versioning" = xyes; then
17741 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17742 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17743 echo "local: *; };" >> $output_objdir/$libname.ver~
17744 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17747 case $cc_basename in
17748 xlf* | bgf* | bgxlf* | mpixlf*)
17749 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17750 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17751 hardcode_libdir_flag_spec=
17752 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17753 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17754 if test "x$supports_anon_versioning" = xyes; then
17755 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17757 echo "local: *; };" >> $output_objdir/$libname.ver~
17758 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17761 esac
17762 else
17763 ld_shlibs=no
17767 netbsd*)
17768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17769 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17770 wlarc=
17771 else
17772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17777 solaris*)
17778 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17779 ld_shlibs=no
17780 cat <<_LT_EOF 1>&2
17782 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17783 *** create shared libraries on Solaris systems. Therefore, libtool
17784 *** is disabling shared libraries support. We urge you to upgrade GNU
17785 *** binutils to release 2.9.1 or newer. Another option is to modify
17786 *** your PATH or compiler configuration so that the native linker is
17787 *** used, and then restart.
17789 _LT_EOF
17790 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17793 else
17794 ld_shlibs=no
17798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17799 case `$LD -v 2>&1` in
17800 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17801 ld_shlibs=no
17802 cat <<_LT_EOF 1>&2
17804 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17805 *** reliably create shared libraries on SCO systems. Therefore, libtool
17806 *** is disabling shared libraries support. We urge you to upgrade GNU
17807 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17808 *** your PATH or compiler configuration so that the native linker is
17809 *** used, and then restart.
17811 _LT_EOF
17814 # For security reasons, it is highly recommended that you always
17815 # use absolute paths for naming shared libraries, and exclude the
17816 # DT_RUNPATH tag from executables and libraries. But doing so
17817 # requires that you compile everything twice, which is a pain.
17818 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17822 else
17823 ld_shlibs=no
17826 esac
17829 sunos4*)
17830 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17831 wlarc=
17832 hardcode_direct=yes
17833 hardcode_shlibpath_var=no
17837 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17840 else
17841 ld_shlibs=no
17844 esac
17846 if test "$ld_shlibs" = no; then
17847 runpath_var=
17848 hardcode_libdir_flag_spec=
17849 export_dynamic_flag_spec=
17850 whole_archive_flag_spec=
17852 else
17853 # PORTME fill in a description of your system's linker (not GNU ld)
17854 case $host_os in
17855 aix3*)
17856 allow_undefined_flag=unsupported
17857 always_export_symbols=yes
17858 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'
17859 # Note: this linker hardcodes the directories in LIBPATH if there
17860 # are no directories specified by -L.
17861 hardcode_minus_L=yes
17862 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17863 # Neither direct hardcoding nor static linking is supported with a
17864 # broken collect2.
17865 hardcode_direct=unsupported
17869 aix[4-9]*)
17870 if test "$host_cpu" = ia64; then
17871 # On IA64, the linker does run time linking by default, so we don't
17872 # have to do anything special.
17873 aix_use_runtimelinking=no
17874 exp_sym_flag='-Bexport'
17875 no_entry_flag=""
17876 else
17877 # If we're using GNU nm, then we don't want the "-C" option.
17878 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17879 # Also, AIX nm treats weak defined symbols like other global
17880 # defined symbols, whereas GNU nm marks them as "W".
17881 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17882 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'
17883 else
17884 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'
17886 aix_use_runtimelinking=no
17888 # Test if we are trying to use run time linking or normal
17889 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17890 # need to do runtime linking.
17891 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17892 for ld_flag in $LDFLAGS; do
17893 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17894 aix_use_runtimelinking=yes
17895 break
17897 done
17899 esac
17901 exp_sym_flag='-bexport'
17902 no_entry_flag='-bnoentry'
17905 # When large executables or shared objects are built, AIX ld can
17906 # have problems creating the table of contents. If linking a library
17907 # or program results in "error TOC overflow" add -mminimal-toc to
17908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17911 archive_cmds=''
17912 hardcode_direct=yes
17913 hardcode_direct_absolute=yes
17914 hardcode_libdir_separator=':'
17915 link_all_deplibs=yes
17916 file_list_spec='${wl}-f,'
17918 if test "$GCC" = yes; then
17919 case $host_os in aix4.[012]|aix4.[012].*)
17920 # We only want to do this on AIX 4.2 and lower, the check
17921 # below for broken collect2 doesn't work under 4.3+
17922 collect2name=`${CC} -print-prog-name=collect2`
17923 if test -f "$collect2name" &&
17924 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17925 then
17926 # We have reworked collect2
17928 else
17929 # We have old collect2
17930 hardcode_direct=unsupported
17931 # It fails to find uninstalled libraries when the uninstalled
17932 # path is not listed in the libpath. Setting hardcode_minus_L
17933 # to unsupported forces relinking
17934 hardcode_minus_L=yes
17935 hardcode_libdir_flag_spec='-L$libdir'
17936 hardcode_libdir_separator=
17939 esac
17940 shared_flag='-shared'
17941 if test "$aix_use_runtimelinking" = yes; then
17942 shared_flag="$shared_flag "'${wl}-G'
17944 else
17945 # not using gcc
17946 if test "$host_cpu" = ia64; then
17947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17948 # chokes on -Wl,-G. The following line is correct:
17949 shared_flag='-G'
17950 else
17951 if test "$aix_use_runtimelinking" = yes; then
17952 shared_flag='${wl}-G'
17953 else
17954 shared_flag='${wl}-bM:SRE'
17959 export_dynamic_flag_spec='${wl}-bexpall'
17960 # It seems that -bexpall does not export symbols beginning with
17961 # underscore (_), so it is better to generate a list of symbols to export.
17962 always_export_symbols=yes
17963 if test "$aix_use_runtimelinking" = yes; then
17964 # Warning - without using the other runtime loading flags (-brtl),
17965 # -berok will link without error, but may produce a broken library.
17966 allow_undefined_flag='-berok'
17967 # Determine the default libpath from the value encoded in an
17968 # empty executable.
17969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17970 /* end confdefs.h. */
17973 main ()
17977 return 0;
17979 _ACEOF
17980 if ac_fn_c_try_link "$LINENO"; then :
17982 lt_aix_libpath_sed='
17983 /Import File Strings/,/^$/ {
17984 /^0/ {
17985 s/^0 *\(.*\)$/\1/
17989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17990 # Check for a 64-bit object if we didn't find anything.
17991 if test -z "$aix_libpath"; then
17992 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17995 rm -f core conftest.err conftest.$ac_objext \
17996 conftest$ac_exeext conftest.$ac_ext
17997 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17999 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18000 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"
18001 else
18002 if test "$host_cpu" = ia64; then
18003 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18004 allow_undefined_flag="-z nodefs"
18005 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"
18006 else
18007 # Determine the default libpath from the value encoded in an
18008 # empty executable.
18009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18010 /* end confdefs.h. */
18013 main ()
18017 return 0;
18019 _ACEOF
18020 if ac_fn_c_try_link "$LINENO"; then :
18022 lt_aix_libpath_sed='
18023 /Import File Strings/,/^$/ {
18024 /^0/ {
18025 s/^0 *\(.*\)$/\1/
18029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18030 # Check for a 64-bit object if we didn't find anything.
18031 if test -z "$aix_libpath"; then
18032 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18035 rm -f core conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
18037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18039 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18040 # Warning - without using the other run time loading flags,
18041 # -berok will link without error, but may produce a broken library.
18042 no_undefined_flag=' ${wl}-bernotok'
18043 allow_undefined_flag=' ${wl}-berok'
18044 if test "$with_gnu_ld" = yes; then
18045 # We only use this code for GNU lds that support --whole-archive.
18046 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18047 else
18048 # Exported symbols can be pulled into shared objects from archives
18049 whole_archive_flag_spec='$convenience'
18051 archive_cmds_need_lc=yes
18052 # This is similar to how AIX traditionally builds its shared libraries.
18053 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'
18058 amigaos*)
18059 case $host_cpu in
18060 powerpc)
18061 # see comment about AmigaOS4 .so support
18062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18063 archive_expsym_cmds=''
18065 m68k)
18066 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)'
18067 hardcode_libdir_flag_spec='-L$libdir'
18068 hardcode_minus_L=yes
18070 esac
18073 bsdi[45]*)
18074 export_dynamic_flag_spec=-rdynamic
18077 cygwin* | mingw* | pw32* | cegcc*)
18078 # When not using gcc, we currently assume that we are using
18079 # Microsoft Visual C++.
18080 # hardcode_libdir_flag_spec is actually meaningless, as there is
18081 # no search path for DLLs.
18082 hardcode_libdir_flag_spec=' '
18083 allow_undefined_flag=unsupported
18084 # Tell ltmain to make .lib files, not .a files.
18085 libext=lib
18086 # Tell ltmain to make .dll files, not .so files.
18087 shrext_cmds=".dll"
18088 # FIXME: Setting linknames here is a bad hack.
18089 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18090 # The linker will automatically build a .lib file if we build a DLL.
18091 old_archive_from_new_cmds='true'
18092 # FIXME: Should let the user specify the lib program.
18093 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18094 fix_srcfile_path='`cygpath -w "$srcfile"`'
18095 enable_shared_with_static_runtimes=yes
18098 darwin* | rhapsody*)
18101 archive_cmds_need_lc=no
18102 hardcode_direct=no
18103 hardcode_automatic=yes
18104 hardcode_shlibpath_var=unsupported
18105 if test "$lt_cv_ld_force_load" = "yes"; then
18106 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\"`'
18107 else
18108 whole_archive_flag_spec=''
18110 link_all_deplibs=yes
18111 allow_undefined_flag="$_lt_dar_allow_undefined"
18112 case $cc_basename in
18113 ifort*) _lt_dar_can_shared=yes ;;
18114 *) _lt_dar_can_shared=$GCC ;;
18115 esac
18116 if test "$_lt_dar_can_shared" = "yes"; then
18117 output_verbose_link_cmd=func_echo_all
18118 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18119 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18120 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18121 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}"
18123 else
18124 ld_shlibs=no
18129 dgux*)
18130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18131 hardcode_libdir_flag_spec='-L$libdir'
18132 hardcode_shlibpath_var=no
18135 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18136 # support. Future versions do this automatically, but an explicit c++rt0.o
18137 # does not break anything, and helps significantly (at the cost of a little
18138 # extra space).
18139 freebsd2.2*)
18140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18141 hardcode_libdir_flag_spec='-R$libdir'
18142 hardcode_direct=yes
18143 hardcode_shlibpath_var=no
18146 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18147 freebsd2.*)
18148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18149 hardcode_direct=yes
18150 hardcode_minus_L=yes
18151 hardcode_shlibpath_var=no
18154 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18155 freebsd* | dragonfly*)
18156 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18157 hardcode_libdir_flag_spec='-R$libdir'
18158 hardcode_direct=yes
18159 hardcode_shlibpath_var=no
18162 hpux9*)
18163 if test "$GCC" = yes; then
18164 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'
18165 else
18166 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'
18168 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18169 hardcode_libdir_separator=:
18170 hardcode_direct=yes
18172 # hardcode_minus_L: Not really in the search PATH,
18173 # but as the default location of the library.
18174 hardcode_minus_L=yes
18175 export_dynamic_flag_spec='${wl}-E'
18178 hpux10*)
18179 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18180 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18181 else
18182 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18184 if test "$with_gnu_ld" = no; then
18185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18186 hardcode_libdir_flag_spec_ld='+b $libdir'
18187 hardcode_libdir_separator=:
18188 hardcode_direct=yes
18189 hardcode_direct_absolute=yes
18190 export_dynamic_flag_spec='${wl}-E'
18191 # hardcode_minus_L: Not really in the search PATH,
18192 # but as the default location of the library.
18193 hardcode_minus_L=yes
18197 hpux11*)
18198 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18199 case $host_cpu in
18200 hppa*64*)
18201 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18203 ia64*)
18204 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18207 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18209 esac
18210 else
18211 case $host_cpu in
18212 hppa*64*)
18213 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18215 ia64*)
18216 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18220 # Older versions of the 11.00 compiler do not understand -b yet
18221 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18223 $as_echo_n "checking if $CC understands -b... " >&6; }
18224 if ${lt_cv_prog_compiler__b+:} false; then :
18225 $as_echo_n "(cached) " >&6
18226 else
18227 lt_cv_prog_compiler__b=no
18228 save_LDFLAGS="$LDFLAGS"
18229 LDFLAGS="$LDFLAGS -b"
18230 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18231 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18232 # The linker can only warn and ignore the option if not recognized
18233 # So say no if there are warnings
18234 if test -s conftest.err; then
18235 # Append any errors to the config.log.
18236 cat conftest.err 1>&5
18237 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18239 if diff conftest.exp conftest.er2 >/dev/null; then
18240 lt_cv_prog_compiler__b=yes
18242 else
18243 lt_cv_prog_compiler__b=yes
18246 $RM -r conftest*
18247 LDFLAGS="$save_LDFLAGS"
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18251 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18253 if test x"$lt_cv_prog_compiler__b" = xyes; then
18254 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18255 else
18256 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18260 esac
18262 if test "$with_gnu_ld" = no; then
18263 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18264 hardcode_libdir_separator=:
18266 case $host_cpu in
18267 hppa*64*|ia64*)
18268 hardcode_direct=no
18269 hardcode_shlibpath_var=no
18272 hardcode_direct=yes
18273 hardcode_direct_absolute=yes
18274 export_dynamic_flag_spec='${wl}-E'
18276 # hardcode_minus_L: Not really in the search PATH,
18277 # but as the default location of the library.
18278 hardcode_minus_L=yes
18280 esac
18284 irix5* | irix6* | nonstopux*)
18285 if test "$GCC" = yes; then
18286 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'
18287 # Try to use the -exported_symbol ld option, if it does not
18288 # work, assume that -exports_file does not work either and
18289 # implicitly export all symbols.
18290 save_LDFLAGS="$LDFLAGS"
18291 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18294 int foo(void) {}
18295 _ACEOF
18296 if ac_fn_c_try_link "$LINENO"; then :
18297 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'
18300 rm -f core conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext conftest.$ac_ext
18302 LDFLAGS="$save_LDFLAGS"
18303 else
18304 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'
18305 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'
18307 archive_cmds_need_lc='no'
18308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18309 hardcode_libdir_separator=:
18310 inherit_rpath=yes
18311 link_all_deplibs=yes
18314 netbsd*)
18315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18317 else
18318 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18320 hardcode_libdir_flag_spec='-R$libdir'
18321 hardcode_direct=yes
18322 hardcode_shlibpath_var=no
18325 newsos6)
18326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18327 hardcode_direct=yes
18328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18329 hardcode_libdir_separator=:
18330 hardcode_shlibpath_var=no
18333 *nto* | *qnx*)
18336 openbsd*)
18337 if test -f /usr/libexec/ld.so; then
18338 hardcode_direct=yes
18339 hardcode_shlibpath_var=no
18340 hardcode_direct_absolute=yes
18341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18343 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18345 export_dynamic_flag_spec='${wl}-E'
18346 else
18347 case $host_os in
18348 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18350 hardcode_libdir_flag_spec='-R$libdir'
18353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18356 esac
18358 else
18359 ld_shlibs=no
18363 os2*)
18364 hardcode_libdir_flag_spec='-L$libdir'
18365 hardcode_minus_L=yes
18366 allow_undefined_flag=unsupported
18367 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'
18368 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18371 osf3*)
18372 if test "$GCC" = yes; then
18373 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18374 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'
18375 else
18376 allow_undefined_flag=' -expect_unresolved \*'
18377 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'
18379 archive_cmds_need_lc='no'
18380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18381 hardcode_libdir_separator=:
18384 osf4* | osf5*) # as osf3* with the addition of -msym flag
18385 if test "$GCC" = yes; then
18386 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18387 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'
18388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18389 else
18390 allow_undefined_flag=' -expect_unresolved \*'
18391 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'
18392 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~
18393 $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'
18395 # Both c and cxx compiler support -rpath directly
18396 hardcode_libdir_flag_spec='-rpath $libdir'
18398 archive_cmds_need_lc='no'
18399 hardcode_libdir_separator=:
18402 solaris*)
18403 no_undefined_flag=' -z defs'
18404 if test "$GCC" = yes; then
18405 wlarc='${wl}'
18406 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18408 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18409 else
18410 case `$CC -V 2>&1` in
18411 *"Compilers 5.0"*)
18412 wlarc=''
18413 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18418 wlarc='${wl}'
18419 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18421 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18423 esac
18425 hardcode_libdir_flag_spec='-R$libdir'
18426 hardcode_shlibpath_var=no
18427 case $host_os in
18428 solaris2.[0-5] | solaris2.[0-5].*) ;;
18430 # The compiler driver will combine and reorder linker options,
18431 # but understands `-z linker_flag'. GCC discards it without `$wl',
18432 # but is careful enough not to reorder.
18433 # Supported since Solaris 2.6 (maybe 2.5.1?)
18434 if test "$GCC" = yes; then
18435 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18436 else
18437 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18440 esac
18441 link_all_deplibs=yes
18444 sunos4*)
18445 if test "x$host_vendor" = xsequent; then
18446 # Use $CC to link under sequent, because it throws in some extra .o
18447 # files that make .init and .fini sections work.
18448 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18449 else
18450 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18452 hardcode_libdir_flag_spec='-L$libdir'
18453 hardcode_direct=yes
18454 hardcode_minus_L=yes
18455 hardcode_shlibpath_var=no
18458 sysv4)
18459 case $host_vendor in
18460 sni)
18461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18462 hardcode_direct=yes # is this really true???
18464 siemens)
18465 ## LD is ld it makes a PLAMLIB
18466 ## CC just makes a GrossModule.
18467 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18468 reload_cmds='$CC -r -o $output$reload_objs'
18469 hardcode_direct=no
18471 motorola)
18472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18473 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18475 esac
18476 runpath_var='LD_RUN_PATH'
18477 hardcode_shlibpath_var=no
18480 sysv4.3*)
18481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18482 hardcode_shlibpath_var=no
18483 export_dynamic_flag_spec='-Bexport'
18486 sysv4*MP*)
18487 if test -d /usr/nec; then
18488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18489 hardcode_shlibpath_var=no
18490 runpath_var=LD_RUN_PATH
18491 hardcode_runpath_var=yes
18492 ld_shlibs=yes
18496 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18497 no_undefined_flag='${wl}-z,text'
18498 archive_cmds_need_lc=no
18499 hardcode_shlibpath_var=no
18500 runpath_var='LD_RUN_PATH'
18502 if test "$GCC" = yes; then
18503 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18504 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18505 else
18506 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18507 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18511 sysv5* | sco3.2v5* | sco5v6*)
18512 # Note: We can NOT use -z defs as we might desire, because we do not
18513 # link with -lc, and that would cause any symbols used from libc to
18514 # always be unresolved, which means just about no library would
18515 # ever link correctly. If we're not using GNU ld we use -z text
18516 # though, which does catch some bad symbols but isn't as heavy-handed
18517 # as -z defs.
18518 no_undefined_flag='${wl}-z,text'
18519 allow_undefined_flag='${wl}-z,nodefs'
18520 archive_cmds_need_lc=no
18521 hardcode_shlibpath_var=no
18522 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18523 hardcode_libdir_separator=':'
18524 link_all_deplibs=yes
18525 export_dynamic_flag_spec='${wl}-Bexport'
18526 runpath_var='LD_RUN_PATH'
18528 if test "$GCC" = yes; then
18529 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18530 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18531 else
18532 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18533 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18537 uts4*)
18538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18539 hardcode_libdir_flag_spec='-L$libdir'
18540 hardcode_shlibpath_var=no
18544 ld_shlibs=no
18546 esac
18548 if test x$host_vendor = xsni; then
18549 case $host in
18550 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18551 export_dynamic_flag_spec='${wl}-Blargedynsym'
18553 esac
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18558 $as_echo "$ld_shlibs" >&6; }
18559 test "$ld_shlibs" = no && can_build_shared=no
18561 with_gnu_ld=$with_gnu_ld
18578 # Do we need to explicitly link libc?
18580 case "x$archive_cmds_need_lc" in
18581 x|xyes)
18582 # Assume -lc should be added
18583 archive_cmds_need_lc=yes
18585 if test "$enable_shared" = yes && test "$GCC" = yes; then
18586 case $archive_cmds in
18587 *'~'*)
18588 # FIXME: we may have to deal with multi-command sequences.
18590 '$CC '*)
18591 # Test whether the compiler implicitly links with -lc since on some
18592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18593 # to ld, don't add -lc before -lgcc.
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18595 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18596 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18597 $as_echo_n "(cached) " >&6
18598 else
18599 $RM conftest*
18600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18603 (eval $ac_compile) 2>&5
18604 ac_status=$?
18605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18606 test $ac_status = 0; } 2>conftest.err; then
18607 soname=conftest
18608 lib=conftest
18609 libobjs=conftest.$ac_objext
18610 deplibs=
18611 wl=$lt_prog_compiler_wl
18612 pic_flag=$lt_prog_compiler_pic
18613 compiler_flags=-v
18614 linker_flags=-v
18615 verstring=
18616 output_objdir=.
18617 libname=conftest
18618 lt_save_allow_undefined_flag=$allow_undefined_flag
18619 allow_undefined_flag=
18620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18621 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18622 ac_status=$?
18623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18624 test $ac_status = 0; }
18625 then
18626 lt_cv_archive_cmds_need_lc=no
18627 else
18628 lt_cv_archive_cmds_need_lc=yes
18630 allow_undefined_flag=$lt_save_allow_undefined_flag
18631 else
18632 cat conftest.err 1>&5
18634 $RM conftest*
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18638 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18639 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18641 esac
18644 esac
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18803 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18805 if test "$GCC" = yes; then
18806 case $host_os in
18807 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18808 *) lt_awk_arg="/^libraries:/" ;;
18809 esac
18810 case $host_os in
18811 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18812 *) lt_sed_strip_eq="s,=/,/,g" ;;
18813 esac
18814 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18815 case $lt_search_path_spec in
18816 *\;*)
18817 # if the path contains ";" then we assume it to be the separator
18818 # otherwise default to the standard path separator (i.e. ":") - it is
18819 # assumed that no part of a normal pathname contains ";" but that should
18820 # okay in the real world where ";" in dirpaths is itself problematic.
18821 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18824 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18826 esac
18827 # Ok, now we have the path, separated by spaces, we can step through it
18828 # and add multilib dir if necessary.
18829 lt_tmp_lt_search_path_spec=
18830 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18831 for lt_sys_path in $lt_search_path_spec; do
18832 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18833 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18834 else
18835 test -d "$lt_sys_path" && \
18836 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18838 done
18839 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18840 BEGIN {RS=" "; FS="/|\n";} {
18841 lt_foo="";
18842 lt_count=0;
18843 for (lt_i = NF; lt_i > 0; lt_i--) {
18844 if ($lt_i != "" && $lt_i != ".") {
18845 if ($lt_i == "..") {
18846 lt_count++;
18847 } else {
18848 if (lt_count == 0) {
18849 lt_foo="/" $lt_i lt_foo;
18850 } else {
18851 lt_count--;
18856 if (lt_foo != "") { lt_freq[lt_foo]++; }
18857 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18859 # AWK program above erroneously prepends '/' to C:/dos/paths
18860 # for these hosts.
18861 case $host_os in
18862 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18863 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18864 esac
18865 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18866 else
18867 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18869 library_names_spec=
18870 libname_spec='lib$name'
18871 soname_spec=
18872 shrext_cmds=".so"
18873 postinstall_cmds=
18874 postuninstall_cmds=
18875 finish_cmds=
18876 finish_eval=
18877 shlibpath_var=
18878 shlibpath_overrides_runpath=unknown
18879 version_type=none
18880 dynamic_linker="$host_os ld.so"
18881 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18882 need_lib_prefix=unknown
18883 hardcode_into_libs=no
18885 # when you set need_version to no, make sure it does not cause -set_version
18886 # flags to be left without arguments
18887 need_version=unknown
18889 case $host_os in
18890 aix3*)
18891 version_type=linux
18892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18893 shlibpath_var=LIBPATH
18895 # AIX 3 has no versioning support, so we append a major version to the name.
18896 soname_spec='${libname}${release}${shared_ext}$major'
18899 aix[4-9]*)
18900 version_type=linux
18901 need_lib_prefix=no
18902 need_version=no
18903 hardcode_into_libs=yes
18904 if test "$host_cpu" = ia64; then
18905 # AIX 5 supports IA64
18906 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18907 shlibpath_var=LD_LIBRARY_PATH
18908 else
18909 # With GCC up to 2.95.x, collect2 would create an import file
18910 # for dependence libraries. The import file would start with
18911 # the line `#! .'. This would cause the generated library to
18912 # depend on `.', always an invalid library. This was fixed in
18913 # development snapshots of GCC prior to 3.0.
18914 case $host_os in
18915 aix4 | aix4.[01] | aix4.[01].*)
18916 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18917 echo ' yes '
18918 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18920 else
18921 can_build_shared=no
18924 esac
18925 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18926 # soname into executable. Probably we can add versioning support to
18927 # collect2, so additional links can be useful in future.
18928 if test "$aix_use_runtimelinking" = yes; then
18929 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18930 # instead of lib<name>.a to let people know that these are not
18931 # typical AIX shared libraries.
18932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18933 else
18934 # We preserve .a as extension for shared libraries through AIX4.2
18935 # and later when we are not doing run time linking.
18936 library_names_spec='${libname}${release}.a $libname.a'
18937 soname_spec='${libname}${release}${shared_ext}$major'
18939 shlibpath_var=LIBPATH
18943 amigaos*)
18944 case $host_cpu in
18945 powerpc)
18946 # Since July 2007 AmigaOS4 officially supports .so libraries.
18947 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950 m68k)
18951 library_names_spec='$libname.ixlibrary $libname.a'
18952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18953 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'
18955 esac
18958 beos*)
18959 library_names_spec='${libname}${shared_ext}'
18960 dynamic_linker="$host_os ld.so"
18961 shlibpath_var=LIBRARY_PATH
18964 bsdi[45]*)
18965 version_type=linux
18966 need_version=no
18967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18968 soname_spec='${libname}${release}${shared_ext}$major'
18969 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18970 shlibpath_var=LD_LIBRARY_PATH
18971 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18972 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18973 # the default ld.so.conf also contains /usr/contrib/lib and
18974 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18975 # libtool to hard-code these into programs
18978 cygwin* | mingw* | pw32* | cegcc*)
18979 version_type=windows
18980 shrext_cmds=".dll"
18981 need_version=no
18982 need_lib_prefix=no
18984 case $GCC,$host_os in
18985 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18986 library_names_spec='$libname.dll.a'
18987 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18988 postinstall_cmds='base_file=`basename \${file}`~
18989 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18990 dldir=$destdir/`dirname \$dlpath`~
18991 test -d \$dldir || mkdir -p \$dldir~
18992 $install_prog $dir/$dlname \$dldir/$dlname~
18993 chmod a+x \$dldir/$dlname~
18994 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18995 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18997 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18998 dlpath=$dir/\$dldll~
18999 $RM \$dlpath'
19000 shlibpath_overrides_runpath=yes
19002 case $host_os in
19003 cygwin*)
19004 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19005 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19007 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
19009 mingw* | cegcc*)
19010 # MinGW DLLs use traditional 'lib' prefix
19011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19013 pw32*)
19014 # pw32 DLLs use 'pw' prefix rather than 'lib'
19015 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19017 esac
19021 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19023 esac
19024 dynamic_linker='Win32 ld.exe'
19025 # FIXME: first we should search . and the directory the executable is in
19026 shlibpath_var=PATH
19029 darwin* | rhapsody*)
19030 dynamic_linker="$host_os dyld"
19031 version_type=darwin
19032 need_lib_prefix=no
19033 need_version=no
19034 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19035 soname_spec='${libname}${release}${major}$shared_ext'
19036 shlibpath_overrides_runpath=yes
19037 shlibpath_var=DYLD_LIBRARY_PATH
19038 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19040 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19041 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19044 dgux*)
19045 version_type=linux
19046 need_lib_prefix=no
19047 need_version=no
19048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19049 soname_spec='${libname}${release}${shared_ext}$major'
19050 shlibpath_var=LD_LIBRARY_PATH
19053 freebsd* | dragonfly*)
19054 # DragonFly does not have aout. When/if they implement a new
19055 # versioning mechanism, adjust this.
19056 if test -x /usr/bin/objformat; then
19057 objformat=`/usr/bin/objformat`
19058 else
19059 case $host_os in
19060 freebsd[23].*) objformat=aout ;;
19061 *) objformat=elf ;;
19062 esac
19064 version_type=freebsd-$objformat
19065 case $version_type in
19066 freebsd-elf*)
19067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19068 need_version=no
19069 need_lib_prefix=no
19071 freebsd-*)
19072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19073 need_version=yes
19075 esac
19076 shlibpath_var=LD_LIBRARY_PATH
19077 case $host_os in
19078 freebsd2.*)
19079 shlibpath_overrides_runpath=yes
19081 freebsd3.[01]* | freebsdelf3.[01]*)
19082 shlibpath_overrides_runpath=yes
19083 hardcode_into_libs=yes
19085 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19086 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19087 shlibpath_overrides_runpath=no
19088 hardcode_into_libs=yes
19090 *) # from 4.6 on, and DragonFly
19091 shlibpath_overrides_runpath=yes
19092 hardcode_into_libs=yes
19094 esac
19097 haiku*)
19098 version_type=linux
19099 need_lib_prefix=no
19100 need_version=no
19101 dynamic_linker="$host_os runtime_loader"
19102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19103 soname_spec='${libname}${release}${shared_ext}$major'
19104 shlibpath_var=LIBRARY_PATH
19105 shlibpath_overrides_runpath=yes
19106 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19107 hardcode_into_libs=yes
19110 hpux9* | hpux10* | hpux11*)
19111 # Give a soname corresponding to the major version so that dld.sl refuses to
19112 # link against other versions.
19113 version_type=sunos
19114 need_lib_prefix=no
19115 need_version=no
19116 case $host_cpu in
19117 ia64*)
19118 shrext_cmds='.so'
19119 hardcode_into_libs=yes
19120 dynamic_linker="$host_os dld.so"
19121 shlibpath_var=LD_LIBRARY_PATH
19122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19124 soname_spec='${libname}${release}${shared_ext}$major'
19125 if test "X$HPUX_IA64_MODE" = X32; then
19126 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19127 else
19128 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19132 hppa*64*)
19133 shrext_cmds='.sl'
19134 hardcode_into_libs=yes
19135 dynamic_linker="$host_os dld.sl"
19136 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19139 soname_spec='${libname}${release}${shared_ext}$major'
19140 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19144 shrext_cmds='.sl'
19145 dynamic_linker="$host_os dld.sl"
19146 shlibpath_var=SHLIB_PATH
19147 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149 soname_spec='${libname}${release}${shared_ext}$major'
19151 esac
19152 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19153 postinstall_cmds='chmod 555 $lib'
19154 # or fails outright, so override atomically:
19155 install_override_mode=555
19158 interix[3-9]*)
19159 version_type=linux
19160 need_lib_prefix=no
19161 need_version=no
19162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19163 soname_spec='${libname}${release}${shared_ext}$major'
19164 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19165 shlibpath_var=LD_LIBRARY_PATH
19166 shlibpath_overrides_runpath=no
19167 hardcode_into_libs=yes
19170 irix5* | irix6* | nonstopux*)
19171 case $host_os in
19172 nonstopux*) version_type=nonstopux ;;
19174 if test "$lt_cv_prog_gnu_ld" = yes; then
19175 version_type=linux
19176 else
19177 version_type=irix
19178 fi ;;
19179 esac
19180 need_lib_prefix=no
19181 need_version=no
19182 soname_spec='${libname}${release}${shared_ext}$major'
19183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19184 case $host_os in
19185 irix5* | nonstopux*)
19186 libsuff= shlibsuff=
19189 case $LD in # libtool.m4 will add one of these switches to LD
19190 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19191 libsuff= shlibsuff= libmagic=32-bit;;
19192 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19193 libsuff=32 shlibsuff=N32 libmagic=N32;;
19194 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19195 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19196 *) libsuff= shlibsuff= libmagic=never-match;;
19197 esac
19199 esac
19200 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19201 shlibpath_overrides_runpath=no
19202 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19203 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19204 hardcode_into_libs=yes
19207 # No shared lib support for Linux oldld, aout, or coff.
19208 linux*oldld* | linux*aout* | linux*coff*)
19209 dynamic_linker=no
19212 # This must be Linux ELF.
19214 # uclinux* changes (here and below) have been submitted to the libtool
19215 # project, but have not yet been accepted: they are GCC-local changes
19216 # for the time being. (See
19217 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19218 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19219 version_type=linux
19220 need_lib_prefix=no
19221 need_version=no
19222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19223 soname_spec='${libname}${release}${shared_ext}$major'
19224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19225 shlibpath_var=LD_LIBRARY_PATH
19226 shlibpath_overrides_runpath=no
19228 # Some binutils ld are patched to set DT_RUNPATH
19229 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19230 $as_echo_n "(cached) " >&6
19231 else
19232 lt_cv_shlibpath_overrides_runpath=no
19233 save_LDFLAGS=$LDFLAGS
19234 save_libdir=$libdir
19235 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19236 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19238 /* end confdefs.h. */
19241 main ()
19245 return 0;
19247 _ACEOF
19248 if ac_fn_c_try_link "$LINENO"; then :
19249 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19250 lt_cv_shlibpath_overrides_runpath=yes
19253 rm -f core conftest.err conftest.$ac_objext \
19254 conftest$ac_exeext conftest.$ac_ext
19255 LDFLAGS=$save_LDFLAGS
19256 libdir=$save_libdir
19260 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19262 # This implies no fast_install, which is unacceptable.
19263 # Some rework will be needed to allow for fast_install
19264 # before this can be enabled.
19265 hardcode_into_libs=yes
19267 # Append ld.so.conf contents to the search path
19268 if test -f /etc/ld.so.conf; then
19269 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' ' '`
19270 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19273 # We used to test for /lib/ld.so.1 and disable shared libraries on
19274 # powerpc, because MkLinux only supported shared libraries with the
19275 # GNU dynamic linker. Since this was broken with cross compilers,
19276 # most powerpc-linux boxes support dynamic linking these days and
19277 # people can always --disable-shared, the test was removed, and we
19278 # assume the GNU/Linux dynamic linker is in use.
19279 dynamic_linker='GNU/Linux ld.so'
19282 netbsd*)
19283 version_type=sunos
19284 need_lib_prefix=no
19285 need_version=no
19286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19289 dynamic_linker='NetBSD (a.out) ld.so'
19290 else
19291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19292 soname_spec='${libname}${release}${shared_ext}$major'
19293 dynamic_linker='NetBSD ld.elf_so'
19295 shlibpath_var=LD_LIBRARY_PATH
19296 shlibpath_overrides_runpath=yes
19297 hardcode_into_libs=yes
19300 newsos6)
19301 version_type=linux
19302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19303 shlibpath_var=LD_LIBRARY_PATH
19304 shlibpath_overrides_runpath=yes
19307 *nto* | *qnx*)
19308 version_type=qnx
19309 need_lib_prefix=no
19310 need_version=no
19311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19312 soname_spec='${libname}${release}${shared_ext}$major'
19313 shlibpath_var=LD_LIBRARY_PATH
19314 shlibpath_overrides_runpath=no
19315 hardcode_into_libs=yes
19316 dynamic_linker='ldqnx.so'
19319 openbsd*)
19320 version_type=sunos
19321 sys_lib_dlsearch_path_spec="/usr/lib"
19322 need_lib_prefix=no
19323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19324 case $host_os in
19325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19326 *) need_version=no ;;
19327 esac
19328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19330 shlibpath_var=LD_LIBRARY_PATH
19331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19332 case $host_os in
19333 openbsd2.[89] | openbsd2.[89].*)
19334 shlibpath_overrides_runpath=no
19337 shlibpath_overrides_runpath=yes
19339 esac
19340 else
19341 shlibpath_overrides_runpath=yes
19345 os2*)
19346 libname_spec='$name'
19347 shrext_cmds=".dll"
19348 need_lib_prefix=no
19349 library_names_spec='$libname${shared_ext} $libname.a'
19350 dynamic_linker='OS/2 ld.exe'
19351 shlibpath_var=LIBPATH
19354 osf3* | osf4* | osf5*)
19355 version_type=osf
19356 need_lib_prefix=no
19357 need_version=no
19358 soname_spec='${libname}${release}${shared_ext}$major'
19359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19360 shlibpath_var=LD_LIBRARY_PATH
19361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19365 rdos*)
19366 dynamic_linker=no
19369 solaris*)
19370 version_type=linux
19371 need_lib_prefix=no
19372 need_version=no
19373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19374 soname_spec='${libname}${release}${shared_ext}$major'
19375 shlibpath_var=LD_LIBRARY_PATH
19376 shlibpath_overrides_runpath=yes
19377 hardcode_into_libs=yes
19378 # ldd complains unless libraries are executable
19379 postinstall_cmds='chmod +x $lib'
19382 sunos4*)
19383 version_type=sunos
19384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19386 shlibpath_var=LD_LIBRARY_PATH
19387 shlibpath_overrides_runpath=yes
19388 if test "$with_gnu_ld" = yes; then
19389 need_lib_prefix=no
19391 need_version=yes
19394 sysv4 | sysv4.3*)
19395 version_type=linux
19396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19397 soname_spec='${libname}${release}${shared_ext}$major'
19398 shlibpath_var=LD_LIBRARY_PATH
19399 case $host_vendor in
19400 sni)
19401 shlibpath_overrides_runpath=no
19402 need_lib_prefix=no
19403 runpath_var=LD_RUN_PATH
19405 siemens)
19406 need_lib_prefix=no
19408 motorola)
19409 need_lib_prefix=no
19410 need_version=no
19411 shlibpath_overrides_runpath=no
19412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19414 esac
19417 sysv4*MP*)
19418 if test -d /usr/nec ;then
19419 version_type=linux
19420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19421 soname_spec='$libname${shared_ext}.$major'
19422 shlibpath_var=LD_LIBRARY_PATH
19426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19427 version_type=freebsd-elf
19428 need_lib_prefix=no
19429 need_version=no
19430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $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 if test "$with_gnu_ld" = yes; then
19436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19437 else
19438 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19439 case $host_os in
19440 sco3.2v5*)
19441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19443 esac
19445 sys_lib_dlsearch_path_spec='/usr/lib'
19448 tpf*)
19449 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19450 version_type=linux
19451 need_lib_prefix=no
19452 need_version=no
19453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19454 shlibpath_var=LD_LIBRARY_PATH
19455 shlibpath_overrides_runpath=no
19456 hardcode_into_libs=yes
19459 uts4*)
19460 version_type=linux
19461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19462 soname_spec='${libname}${release}${shared_ext}$major'
19463 shlibpath_var=LD_LIBRARY_PATH
19466 # Shared libraries for VwWorks, >= 7 only at this stage
19467 # and (fpic) still incompatible with "large" code models
19468 # in a few configurations. Only for RTP mode in any case,
19469 # and upon explicit request at configure time.
19470 vxworks7*)
19471 dynamic_linker=no
19472 case ${with_multisubdir}-${enable_shared} in
19473 *large*)
19475 *mrtp*-yes)
19476 version_type=linux
19477 need_lib_prefix=no
19478 need_version=no
19479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19480 soname_spec='${libname}${release}${shared_ext}$major'
19481 dynamic_linker="$host_os module_loader"
19483 esac
19486 dynamic_linker=no
19488 esac
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19490 $as_echo "$dynamic_linker" >&6; }
19491 test "$dynamic_linker" = no && can_build_shared=no
19493 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19494 if test "$GCC" = yes; then
19495 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19498 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19499 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19501 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19502 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19597 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19598 hardcode_action=
19599 if test -n "$hardcode_libdir_flag_spec" ||
19600 test -n "$runpath_var" ||
19601 test "X$hardcode_automatic" = "Xyes" ; then
19603 # We can hardcode non-existent directories.
19604 if test "$hardcode_direct" != no &&
19605 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19606 # have to relink, otherwise we might link with an installed library
19607 # when we should be linking with a yet-to-be-installed one
19608 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19609 test "$hardcode_minus_L" != no; then
19610 # Linking always hardcodes the temporary library directory.
19611 hardcode_action=relink
19612 else
19613 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19614 hardcode_action=immediate
19616 else
19617 # We cannot hardcode anything, or else we can only hardcode existing
19618 # directories.
19619 hardcode_action=unsupported
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19622 $as_echo "$hardcode_action" >&6; }
19624 if test "$hardcode_action" = relink ||
19625 test "$inherit_rpath" = yes; then
19626 # Fast installation is not supported
19627 enable_fast_install=no
19628 elif test "$shlibpath_overrides_runpath" = yes ||
19629 test "$enable_shared" = no; then
19630 # Fast installation is not necessary
19631 enable_fast_install=needless
19639 if test "x$enable_dlopen" != xyes; then
19640 enable_dlopen=unknown
19641 enable_dlopen_self=unknown
19642 enable_dlopen_self_static=unknown
19643 else
19644 lt_cv_dlopen=no
19645 lt_cv_dlopen_libs=
19647 case $host_os in
19648 beos*)
19649 lt_cv_dlopen="load_add_on"
19650 lt_cv_dlopen_libs=
19651 lt_cv_dlopen_self=yes
19654 mingw* | pw32* | cegcc*)
19655 lt_cv_dlopen="LoadLibrary"
19656 lt_cv_dlopen_libs=
19659 cygwin*)
19660 lt_cv_dlopen="dlopen"
19661 lt_cv_dlopen_libs=
19664 darwin*)
19665 # if libdl is installed we need to link against it
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19667 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19668 if ${ac_cv_lib_dl_dlopen+:} false; then :
19669 $as_echo_n "(cached) " >&6
19670 else
19671 ac_check_lib_save_LIBS=$LIBS
19672 LIBS="-ldl $LIBS"
19673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19674 /* end confdefs.h. */
19676 /* Override any GCC internal prototype to avoid an error.
19677 Use char because int might match the return type of a GCC
19678 builtin and then its argument prototype would still apply. */
19679 #ifdef __cplusplus
19680 extern "C"
19681 #endif
19682 char dlopen ();
19684 main ()
19686 return dlopen ();
19688 return 0;
19690 _ACEOF
19691 if ac_fn_c_try_link "$LINENO"; then :
19692 ac_cv_lib_dl_dlopen=yes
19693 else
19694 ac_cv_lib_dl_dlopen=no
19696 rm -f core conftest.err conftest.$ac_objext \
19697 conftest$ac_exeext conftest.$ac_ext
19698 LIBS=$ac_check_lib_save_LIBS
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19701 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19702 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19704 else
19706 lt_cv_dlopen="dyld"
19707 lt_cv_dlopen_libs=
19708 lt_cv_dlopen_self=yes
19715 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19716 if test "x$ac_cv_func_shl_load" = xyes; then :
19717 lt_cv_dlopen="shl_load"
19718 else
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19720 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19721 if ${ac_cv_lib_dld_shl_load+:} false; then :
19722 $as_echo_n "(cached) " >&6
19723 else
19724 ac_check_lib_save_LIBS=$LIBS
19725 LIBS="-ldld $LIBS"
19726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19727 /* end confdefs.h. */
19729 /* Override any GCC internal prototype to avoid an error.
19730 Use char because int might match the return type of a GCC
19731 builtin and then its argument prototype would still apply. */
19732 #ifdef __cplusplus
19733 extern "C"
19734 #endif
19735 char shl_load ();
19737 main ()
19739 return shl_load ();
19741 return 0;
19743 _ACEOF
19744 if ac_fn_c_try_link "$LINENO"; then :
19745 ac_cv_lib_dld_shl_load=yes
19746 else
19747 ac_cv_lib_dld_shl_load=no
19749 rm -f core conftest.err conftest.$ac_objext \
19750 conftest$ac_exeext conftest.$ac_ext
19751 LIBS=$ac_check_lib_save_LIBS
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19754 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19755 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19756 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19757 else
19758 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19759 if test "x$ac_cv_func_dlopen" = xyes; then :
19760 lt_cv_dlopen="dlopen"
19761 else
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19763 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19764 if ${ac_cv_lib_dl_dlopen+:} false; then :
19765 $as_echo_n "(cached) " >&6
19766 else
19767 ac_check_lib_save_LIBS=$LIBS
19768 LIBS="-ldl $LIBS"
19769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19770 /* end confdefs.h. */
19772 /* Override any GCC internal prototype to avoid an error.
19773 Use char because int might match the return type of a GCC
19774 builtin and then its argument prototype would still apply. */
19775 #ifdef __cplusplus
19776 extern "C"
19777 #endif
19778 char dlopen ();
19780 main ()
19782 return dlopen ();
19784 return 0;
19786 _ACEOF
19787 if ac_fn_c_try_link "$LINENO"; then :
19788 ac_cv_lib_dl_dlopen=yes
19789 else
19790 ac_cv_lib_dl_dlopen=no
19792 rm -f core conftest.err conftest.$ac_objext \
19793 conftest$ac_exeext conftest.$ac_ext
19794 LIBS=$ac_check_lib_save_LIBS
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19797 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19798 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19800 else
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19802 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19803 if ${ac_cv_lib_svld_dlopen+:} false; then :
19804 $as_echo_n "(cached) " >&6
19805 else
19806 ac_check_lib_save_LIBS=$LIBS
19807 LIBS="-lsvld $LIBS"
19808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809 /* end confdefs.h. */
19811 /* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19814 #ifdef __cplusplus
19815 extern "C"
19816 #endif
19817 char dlopen ();
19819 main ()
19821 return dlopen ();
19823 return 0;
19825 _ACEOF
19826 if ac_fn_c_try_link "$LINENO"; then :
19827 ac_cv_lib_svld_dlopen=yes
19828 else
19829 ac_cv_lib_svld_dlopen=no
19831 rm -f core conftest.err conftest.$ac_objext \
19832 conftest$ac_exeext conftest.$ac_ext
19833 LIBS=$ac_check_lib_save_LIBS
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19836 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19837 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19839 else
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19841 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19842 if ${ac_cv_lib_dld_dld_link+:} false; then :
19843 $as_echo_n "(cached) " >&6
19844 else
19845 ac_check_lib_save_LIBS=$LIBS
19846 LIBS="-ldld $LIBS"
19847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19848 /* end confdefs.h. */
19850 /* Override any GCC internal prototype to avoid an error.
19851 Use char because int might match the return type of a GCC
19852 builtin and then its argument prototype would still apply. */
19853 #ifdef __cplusplus
19854 extern "C"
19855 #endif
19856 char dld_link ();
19858 main ()
19860 return dld_link ();
19862 return 0;
19864 _ACEOF
19865 if ac_fn_c_try_link "$LINENO"; then :
19866 ac_cv_lib_dld_dld_link=yes
19867 else
19868 ac_cv_lib_dld_dld_link=no
19870 rm -f core conftest.err conftest.$ac_objext \
19871 conftest$ac_exeext conftest.$ac_ext
19872 LIBS=$ac_check_lib_save_LIBS
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19875 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19876 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19877 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19896 esac
19898 if test "x$lt_cv_dlopen" != xno; then
19899 enable_dlopen=yes
19900 else
19901 enable_dlopen=no
19904 case $lt_cv_dlopen in
19905 dlopen)
19906 save_CPPFLAGS="$CPPFLAGS"
19907 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19909 save_LDFLAGS="$LDFLAGS"
19910 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19912 save_LIBS="$LIBS"
19913 LIBS="$lt_cv_dlopen_libs $LIBS"
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19916 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19917 if ${lt_cv_dlopen_self+:} false; then :
19918 $as_echo_n "(cached) " >&6
19919 else
19920 if test "$cross_compiling" = yes; then :
19921 lt_cv_dlopen_self=cross
19922 else
19923 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19924 lt_status=$lt_dlunknown
19925 cat > conftest.$ac_ext <<_LT_EOF
19926 #line 19926 "configure"
19927 #include "confdefs.h"
19929 #if HAVE_DLFCN_H
19930 #include <dlfcn.h>
19931 #endif
19933 #include <stdio.h>
19935 #ifdef RTLD_GLOBAL
19936 # define LT_DLGLOBAL RTLD_GLOBAL
19937 #else
19938 # ifdef DL_GLOBAL
19939 # define LT_DLGLOBAL DL_GLOBAL
19940 # else
19941 # define LT_DLGLOBAL 0
19942 # endif
19943 #endif
19945 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19946 find out it does not work in some platform. */
19947 #ifndef LT_DLLAZY_OR_NOW
19948 # ifdef RTLD_LAZY
19949 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19950 # else
19951 # ifdef DL_LAZY
19952 # define LT_DLLAZY_OR_NOW DL_LAZY
19953 # else
19954 # ifdef RTLD_NOW
19955 # define LT_DLLAZY_OR_NOW RTLD_NOW
19956 # else
19957 # ifdef DL_NOW
19958 # define LT_DLLAZY_OR_NOW DL_NOW
19959 # else
19960 # define LT_DLLAZY_OR_NOW 0
19961 # endif
19962 # endif
19963 # endif
19964 # endif
19965 #endif
19967 /* When -fvisbility=hidden is used, assume the code has been annotated
19968 correspondingly for the symbols needed. */
19969 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19970 void fnord () __attribute__((visibility("default")));
19971 #endif
19973 void fnord () { int i=42; }
19974 int main ()
19976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19977 int status = $lt_dlunknown;
19979 if (self)
19981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19982 else
19984 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19985 else puts (dlerror ());
19987 /* dlclose (self); */
19989 else
19990 puts (dlerror ());
19992 return status;
19994 _LT_EOF
19995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19996 (eval $ac_link) 2>&5
19997 ac_status=$?
19998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19999 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20000 (./conftest; exit; ) >&5 2>/dev/null
20001 lt_status=$?
20002 case x$lt_status in
20003 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20004 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20005 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20006 esac
20007 else :
20008 # compilation failed
20009 lt_cv_dlopen_self=no
20012 rm -fr conftest*
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20017 $as_echo "$lt_cv_dlopen_self" >&6; }
20019 if test "x$lt_cv_dlopen_self" = xyes; then
20020 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20022 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20023 if ${lt_cv_dlopen_self_static+:} false; then :
20024 $as_echo_n "(cached) " >&6
20025 else
20026 if test "$cross_compiling" = yes; then :
20027 lt_cv_dlopen_self_static=cross
20028 else
20029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20030 lt_status=$lt_dlunknown
20031 cat > conftest.$ac_ext <<_LT_EOF
20032 #line 20032 "configure"
20033 #include "confdefs.h"
20035 #if HAVE_DLFCN_H
20036 #include <dlfcn.h>
20037 #endif
20039 #include <stdio.h>
20041 #ifdef RTLD_GLOBAL
20042 # define LT_DLGLOBAL RTLD_GLOBAL
20043 #else
20044 # ifdef DL_GLOBAL
20045 # define LT_DLGLOBAL DL_GLOBAL
20046 # else
20047 # define LT_DLGLOBAL 0
20048 # endif
20049 #endif
20051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20052 find out it does not work in some platform. */
20053 #ifndef LT_DLLAZY_OR_NOW
20054 # ifdef RTLD_LAZY
20055 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20056 # else
20057 # ifdef DL_LAZY
20058 # define LT_DLLAZY_OR_NOW DL_LAZY
20059 # else
20060 # ifdef RTLD_NOW
20061 # define LT_DLLAZY_OR_NOW RTLD_NOW
20062 # else
20063 # ifdef DL_NOW
20064 # define LT_DLLAZY_OR_NOW DL_NOW
20065 # else
20066 # define LT_DLLAZY_OR_NOW 0
20067 # endif
20068 # endif
20069 # endif
20070 # endif
20071 #endif
20073 /* When -fvisbility=hidden is used, assume the code has been annotated
20074 correspondingly for the symbols needed. */
20075 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20076 void fnord () __attribute__((visibility("default")));
20077 #endif
20079 void fnord () { int i=42; }
20080 int main ()
20082 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20083 int status = $lt_dlunknown;
20085 if (self)
20087 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20088 else
20090 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20091 else puts (dlerror ());
20093 /* dlclose (self); */
20095 else
20096 puts (dlerror ());
20098 return status;
20100 _LT_EOF
20101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20102 (eval $ac_link) 2>&5
20103 ac_status=$?
20104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20105 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20106 (./conftest; exit; ) >&5 2>/dev/null
20107 lt_status=$?
20108 case x$lt_status in
20109 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20110 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20111 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20112 esac
20113 else :
20114 # compilation failed
20115 lt_cv_dlopen_self_static=no
20118 rm -fr conftest*
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20123 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20126 CPPFLAGS="$save_CPPFLAGS"
20127 LDFLAGS="$save_LDFLAGS"
20128 LIBS="$save_LIBS"
20130 esac
20132 case $lt_cv_dlopen_self in
20133 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20134 *) enable_dlopen_self=unknown ;;
20135 esac
20137 case $lt_cv_dlopen_self_static in
20138 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20139 *) enable_dlopen_self_static=unknown ;;
20140 esac
20159 striplib=
20160 old_striplib=
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20162 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20163 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20164 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20165 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20167 $as_echo "yes" >&6; }
20168 else
20169 # FIXME - insert some real tests, host_os isn't really good enough
20170 case $host_os in
20171 darwin*)
20172 if test -n "$STRIP" ; then
20173 striplib="$STRIP -x"
20174 old_striplib="$STRIP -S"
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20176 $as_echo "yes" >&6; }
20177 else
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20179 $as_echo "no" >&6; }
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20184 $as_echo "no" >&6; }
20186 esac
20200 # Report which library types will actually be built
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20202 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20204 $as_echo "$can_build_shared" >&6; }
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20207 $as_echo_n "checking whether to build shared libraries... " >&6; }
20208 test "$can_build_shared" = "no" && enable_shared=no
20210 # On AIX, shared libraries and static libraries use the same namespace, and
20211 # are all built from PIC.
20212 case $host_os in
20213 aix3*)
20214 test "$enable_shared" = yes && enable_static=no
20215 if test -n "$RANLIB"; then
20216 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20217 postinstall_cmds='$RANLIB $lib'
20221 aix[4-9]*)
20222 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20223 test "$enable_shared" = yes && enable_static=no
20226 esac
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20228 $as_echo "$enable_shared" >&6; }
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20231 $as_echo_n "checking whether to build static libraries... " >&6; }
20232 # Make sure either enable_shared or enable_static is yes.
20233 test "$enable_shared" = yes || enable_static=yes
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20235 $as_echo "$enable_static" >&6; }
20241 ac_ext=cpp
20242 ac_cpp='$CXXCPP $CPPFLAGS'
20243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20247 CC="$lt_save_CC"
20249 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20250 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20251 (test "X$CXX" != "Xg++"))) ; then
20252 ac_ext=cpp
20253 ac_cpp='$CXXCPP $CPPFLAGS'
20254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20258 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20259 if test -z "$CXXCPP"; then
20260 if ${ac_cv_prog_CXXCPP+:} false; then :
20261 $as_echo_n "(cached) " >&6
20262 else
20263 # Double quotes because CXXCPP needs to be expanded
20264 for CXXCPP in "$CXX -E" "/lib/cpp"
20266 ac_preproc_ok=false
20267 for ac_cxx_preproc_warn_flag in '' yes
20269 # Use a header file that comes with gcc, so configuring glibc
20270 # with a fresh cross-compiler works.
20271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20272 # <limits.h> exists even on freestanding compilers.
20273 # On the NeXT, cc -E runs the code through the compiler's parser,
20274 # not just through cpp. "Syntax error" is here to catch this case.
20275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20276 /* end confdefs.h. */
20277 #ifdef __STDC__
20278 # include <limits.h>
20279 #else
20280 # include <assert.h>
20281 #endif
20282 Syntax error
20283 _ACEOF
20284 if ac_fn_cxx_try_cpp "$LINENO"; then :
20286 else
20287 # Broken: fails on valid input.
20288 continue
20290 rm -f conftest.err conftest.i conftest.$ac_ext
20292 # OK, works on sane cases. Now check whether nonexistent headers
20293 # can be detected and how.
20294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20296 #include <ac_nonexistent.h>
20297 _ACEOF
20298 if ac_fn_cxx_try_cpp "$LINENO"; then :
20299 # Broken: success on invalid input.
20300 continue
20301 else
20302 # Passes both tests.
20303 ac_preproc_ok=:
20304 break
20306 rm -f conftest.err conftest.i conftest.$ac_ext
20308 done
20309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20310 rm -f conftest.i conftest.err conftest.$ac_ext
20311 if $ac_preproc_ok; then :
20312 break
20315 done
20316 ac_cv_prog_CXXCPP=$CXXCPP
20319 CXXCPP=$ac_cv_prog_CXXCPP
20320 else
20321 ac_cv_prog_CXXCPP=$CXXCPP
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20324 $as_echo "$CXXCPP" >&6; }
20325 ac_preproc_ok=false
20326 for ac_cxx_preproc_warn_flag in '' yes
20328 # Use a header file that comes with gcc, so configuring glibc
20329 # with a fresh cross-compiler works.
20330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20331 # <limits.h> exists even on freestanding compilers.
20332 # On the NeXT, cc -E runs the code through the compiler's parser,
20333 # not just through cpp. "Syntax error" is here to catch this case.
20334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20335 /* end confdefs.h. */
20336 #ifdef __STDC__
20337 # include <limits.h>
20338 #else
20339 # include <assert.h>
20340 #endif
20341 Syntax error
20342 _ACEOF
20343 if ac_fn_cxx_try_cpp "$LINENO"; then :
20345 else
20346 # Broken: fails on valid input.
20347 continue
20349 rm -f conftest.err conftest.i conftest.$ac_ext
20351 # OK, works on sane cases. Now check whether nonexistent headers
20352 # can be detected and how.
20353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h. */
20355 #include <ac_nonexistent.h>
20356 _ACEOF
20357 if ac_fn_cxx_try_cpp "$LINENO"; then :
20358 # Broken: success on invalid input.
20359 continue
20360 else
20361 # Passes both tests.
20362 ac_preproc_ok=:
20363 break
20365 rm -f conftest.err conftest.i conftest.$ac_ext
20367 done
20368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20369 rm -f conftest.i conftest.err conftest.$ac_ext
20370 if $ac_preproc_ok; then :
20372 else
20373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20375 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20376 See \`config.log' for more details" "$LINENO" 5; }
20379 ac_ext=cpp
20380 ac_cpp='$CXXCPP $CPPFLAGS'
20381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20385 else
20386 _lt_caught_CXX_error=yes
20389 ac_ext=cpp
20390 ac_cpp='$CXXCPP $CPPFLAGS'
20391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20395 archive_cmds_need_lc_CXX=no
20396 allow_undefined_flag_CXX=
20397 always_export_symbols_CXX=no
20398 archive_expsym_cmds_CXX=
20399 compiler_needs_object_CXX=no
20400 export_dynamic_flag_spec_CXX=
20401 hardcode_direct_CXX=no
20402 hardcode_direct_absolute_CXX=no
20403 hardcode_libdir_flag_spec_CXX=
20404 hardcode_libdir_flag_spec_ld_CXX=
20405 hardcode_libdir_separator_CXX=
20406 hardcode_minus_L_CXX=no
20407 hardcode_shlibpath_var_CXX=unsupported
20408 hardcode_automatic_CXX=no
20409 inherit_rpath_CXX=no
20410 module_cmds_CXX=
20411 module_expsym_cmds_CXX=
20412 link_all_deplibs_CXX=unknown
20413 old_archive_cmds_CXX=$old_archive_cmds
20414 reload_flag_CXX=$reload_flag
20415 reload_cmds_CXX=$reload_cmds
20416 no_undefined_flag_CXX=
20417 whole_archive_flag_spec_CXX=
20418 enable_shared_with_static_runtimes_CXX=no
20420 # Source file extension for C++ test sources.
20421 ac_ext=cpp
20423 # Object file extension for compiled C++ test sources.
20424 objext=o
20425 objext_CXX=$objext
20427 # No sense in running all these tests if we already determined that
20428 # the CXX compiler isn't working. Some variables (like enable_shared)
20429 # are currently assumed to apply to all compilers on this platform,
20430 # and will be corrupted by setting them based on a non-working compiler.
20431 if test "$_lt_caught_CXX_error" != yes; then
20432 # Code to be used in simple compile tests
20433 lt_simple_compile_test_code="int some_variable = 0;"
20435 # Code to be used in simple link tests
20436 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20438 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20445 # If no C compiler was specified, use CC.
20446 LTCC=${LTCC-"$CC"}
20448 # If no C compiler flags were specified, use CFLAGS.
20449 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20451 # Allow CC to be a program name with arguments.
20452 compiler=$CC
20455 # save warnings/boilerplate of simple test code
20456 ac_outfile=conftest.$ac_objext
20457 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20458 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20459 _lt_compiler_boilerplate=`cat conftest.err`
20460 $RM conftest*
20462 ac_outfile=conftest.$ac_objext
20463 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20464 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20465 _lt_linker_boilerplate=`cat conftest.err`
20466 $RM -r conftest*
20469 # Allow CC to be a program name with arguments.
20470 lt_save_CC=$CC
20471 lt_save_LD=$LD
20472 lt_save_GCC=$GCC
20473 GCC=$GXX
20474 lt_save_with_gnu_ld=$with_gnu_ld
20475 lt_save_path_LD=$lt_cv_path_LD
20476 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20477 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20478 else
20479 $as_unset lt_cv_prog_gnu_ld
20481 if test -n "${lt_cv_path_LDCXX+set}"; then
20482 lt_cv_path_LD=$lt_cv_path_LDCXX
20483 else
20484 $as_unset lt_cv_path_LD
20486 test -z "${LDCXX+set}" || LD=$LDCXX
20487 CC=${CXX-"c++"}
20488 compiler=$CC
20489 compiler_CXX=$CC
20490 for cc_temp in $compiler""; do
20491 case $cc_temp in
20492 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20493 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20494 \-*) ;;
20495 *) break;;
20496 esac
20497 done
20498 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20501 if test -n "$compiler"; then
20502 # We don't want -fno-exception when compiling C++ code, so set the
20503 # no_builtin_flag separately
20504 if test "$GXX" = yes; then
20505 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20506 else
20507 lt_prog_compiler_no_builtin_flag_CXX=
20510 if test "$GXX" = yes; then
20511 # Set up default GNU C++ configuration
20515 # Check whether --with-gnu-ld was given.
20516 if test "${with_gnu_ld+set}" = set; then :
20517 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20518 else
20519 with_gnu_ld=no
20522 ac_prog=ld
20523 if test "$GCC" = yes; then
20524 # Check if gcc -print-prog-name=ld gives a path.
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20526 $as_echo_n "checking for ld used by $CC... " >&6; }
20527 case $host in
20528 *-*-mingw*)
20529 # gcc leaves a trailing carriage return which upsets mingw
20530 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20532 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20533 esac
20534 case $ac_prog in
20535 # Accept absolute paths.
20536 [\\/]* | ?:[\\/]*)
20537 re_direlt='/[^/][^/]*/\.\./'
20538 # Canonicalize the pathname of ld
20539 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20540 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20541 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20542 done
20543 test -z "$LD" && LD="$ac_prog"
20546 # If it fails, then pretend we aren't using GCC.
20547 ac_prog=ld
20550 # If it is relative, then search for the first ld in PATH.
20551 with_gnu_ld=unknown
20553 esac
20554 elif test "$with_gnu_ld" = yes; then
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20556 $as_echo_n "checking for GNU ld... " >&6; }
20557 else
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20559 $as_echo_n "checking for non-GNU ld... " >&6; }
20561 if ${lt_cv_path_LD+:} false; then :
20562 $as_echo_n "(cached) " >&6
20563 else
20564 if test -z "$LD"; then
20565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20566 for ac_dir in $PATH; do
20567 IFS="$lt_save_ifs"
20568 test -z "$ac_dir" && ac_dir=.
20569 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20570 lt_cv_path_LD="$ac_dir/$ac_prog"
20571 # Check to see if the program is GNU ld. I'd rather use --version,
20572 # but apparently some variants of GNU ld only accept -v.
20573 # Break only if it was the GNU/non-GNU ld that we prefer.
20574 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20575 *GNU* | *'with BFD'*)
20576 test "$with_gnu_ld" != no && break
20579 test "$with_gnu_ld" != yes && break
20581 esac
20583 done
20584 IFS="$lt_save_ifs"
20585 else
20586 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20590 LD="$lt_cv_path_LD"
20591 if test -n "$LD"; then
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20593 $as_echo "$LD" >&6; }
20594 else
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20596 $as_echo "no" >&6; }
20598 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20600 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20601 if ${lt_cv_prog_gnu_ld+:} false; then :
20602 $as_echo_n "(cached) " >&6
20603 else
20604 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20605 case `$LD -v 2>&1 </dev/null` in
20606 *GNU* | *'with BFD'*)
20607 lt_cv_prog_gnu_ld=yes
20610 lt_cv_prog_gnu_ld=no
20612 esac
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20615 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20616 with_gnu_ld=$lt_cv_prog_gnu_ld
20624 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20625 # archiving commands below assume that GNU ld is being used.
20626 if test "$with_gnu_ld" = yes; then
20627 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20628 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'
20630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20631 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20633 # If archive_cmds runs LD, not CC, wlarc should be empty
20634 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20635 # investigate it a little bit more. (MM)
20636 wlarc='${wl}'
20638 # ancient GNU ld didn't support --whole-archive et. al.
20639 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20640 $GREP 'no-whole-archive' > /dev/null; then
20641 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20642 else
20643 whole_archive_flag_spec_CXX=
20645 else
20646 with_gnu_ld=no
20647 wlarc=
20649 # A generic and very simple default shared library creation
20650 # command for GNU C++ for the case where it uses the native
20651 # linker, instead of GNU ld. If possible, this setting should
20652 # overridden to take advantage of the native linker features on
20653 # the platform it is being used on.
20654 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20657 # Commands to make compiler produce verbose output that lists
20658 # what "hidden" libraries, object files and flags are used when
20659 # linking a shared library.
20660 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20662 else
20663 GXX=no
20664 with_gnu_ld=no
20665 wlarc=
20668 # PORTME: fill in a description of your system's C++ link characteristics
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20670 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20671 ld_shlibs_CXX=yes
20672 case $host_os in
20673 aix3*)
20674 # FIXME: insert proper C++ library support
20675 ld_shlibs_CXX=no
20677 aix[4-9]*)
20678 if test "$host_cpu" = ia64; then
20679 # On IA64, the linker does run time linking by default, so we don't
20680 # have to do anything special.
20681 aix_use_runtimelinking=no
20682 exp_sym_flag='-Bexport'
20683 no_entry_flag=""
20684 else
20685 aix_use_runtimelinking=no
20687 # Test if we are trying to use run time linking or normal
20688 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20689 # need to do runtime linking.
20690 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20691 for ld_flag in $LDFLAGS; do
20692 case $ld_flag in
20693 *-brtl*)
20694 aix_use_runtimelinking=yes
20695 break
20697 esac
20698 done
20700 esac
20702 exp_sym_flag='-bexport'
20703 no_entry_flag='-bnoentry'
20706 # When large executables or shared objects are built, AIX ld can
20707 # have problems creating the table of contents. If linking a library
20708 # or program results in "error TOC overflow" add -mminimal-toc to
20709 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20710 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20712 archive_cmds_CXX=''
20713 hardcode_direct_CXX=yes
20714 hardcode_direct_absolute_CXX=yes
20715 hardcode_libdir_separator_CXX=':'
20716 link_all_deplibs_CXX=yes
20717 file_list_spec_CXX='${wl}-f,'
20719 if test "$GXX" = yes; then
20720 case $host_os in aix4.[012]|aix4.[012].*)
20721 # We only want to do this on AIX 4.2 and lower, the check
20722 # below for broken collect2 doesn't work under 4.3+
20723 collect2name=`${CC} -print-prog-name=collect2`
20724 if test -f "$collect2name" &&
20725 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20726 then
20727 # We have reworked collect2
20729 else
20730 # We have old collect2
20731 hardcode_direct_CXX=unsupported
20732 # It fails to find uninstalled libraries when the uninstalled
20733 # path is not listed in the libpath. Setting hardcode_minus_L
20734 # to unsupported forces relinking
20735 hardcode_minus_L_CXX=yes
20736 hardcode_libdir_flag_spec_CXX='-L$libdir'
20737 hardcode_libdir_separator_CXX=
20739 esac
20740 shared_flag='-shared'
20741 if test "$aix_use_runtimelinking" = yes; then
20742 shared_flag="$shared_flag "'${wl}-G'
20744 else
20745 # not using gcc
20746 if test "$host_cpu" = ia64; then
20747 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20748 # chokes on -Wl,-G. The following line is correct:
20749 shared_flag='-G'
20750 else
20751 if test "$aix_use_runtimelinking" = yes; then
20752 shared_flag='${wl}-G'
20753 else
20754 shared_flag='${wl}-bM:SRE'
20759 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20760 # It seems that -bexpall does not export symbols beginning with
20761 # underscore (_), so it is better to generate a list of symbols to
20762 # export.
20763 always_export_symbols_CXX=yes
20764 if test "$aix_use_runtimelinking" = yes; then
20765 # Warning - without using the other runtime loading flags (-brtl),
20766 # -berok will link without error, but may produce a broken library.
20767 allow_undefined_flag_CXX='-berok'
20768 # Determine the default libpath from the value encoded in an empty
20769 # executable.
20770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20771 /* end confdefs.h. */
20774 main ()
20778 return 0;
20780 _ACEOF
20781 if ac_fn_cxx_try_link "$LINENO"; then :
20783 lt_aix_libpath_sed='
20784 /Import File Strings/,/^$/ {
20785 /^0/ {
20786 s/^0 *\(.*\)$/\1/
20790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20791 # Check for a 64-bit object if we didn't find anything.
20792 if test -z "$aix_libpath"; then
20793 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20796 rm -f core conftest.err conftest.$ac_objext \
20797 conftest$ac_exeext conftest.$ac_ext
20798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20800 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20802 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"
20803 else
20804 if test "$host_cpu" = ia64; then
20805 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20806 allow_undefined_flag_CXX="-z nodefs"
20807 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"
20808 else
20809 # Determine the default libpath from the value encoded in an
20810 # empty executable.
20811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20812 /* end confdefs.h. */
20815 main ()
20819 return 0;
20821 _ACEOF
20822 if ac_fn_cxx_try_link "$LINENO"; then :
20824 lt_aix_libpath_sed='
20825 /Import File Strings/,/^$/ {
20826 /^0/ {
20827 s/^0 *\(.*\)$/\1/
20831 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20832 # Check for a 64-bit object if we didn't find anything.
20833 if test -z "$aix_libpath"; then
20834 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20837 rm -f core conftest.err conftest.$ac_objext \
20838 conftest$ac_exeext conftest.$ac_ext
20839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20841 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20842 # Warning - without using the other run time loading flags,
20843 # -berok will link without error, but may produce a broken library.
20844 no_undefined_flag_CXX=' ${wl}-bernotok'
20845 allow_undefined_flag_CXX=' ${wl}-berok'
20846 if test "$with_gnu_ld" = yes; then
20847 # We only use this code for GNU lds that support --whole-archive.
20848 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20849 else
20850 # Exported symbols can be pulled into shared objects from archives
20851 whole_archive_flag_spec_CXX='$convenience'
20853 archive_cmds_need_lc_CXX=yes
20854 # This is similar to how AIX traditionally builds its shared
20855 # libraries.
20856 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'
20861 beos*)
20862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20863 allow_undefined_flag_CXX=unsupported
20864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20865 # support --undefined. This deserves some investigation. FIXME
20866 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20867 else
20868 ld_shlibs_CXX=no
20872 chorus*)
20873 case $cc_basename in
20875 # FIXME: insert proper C++ library support
20876 ld_shlibs_CXX=no
20878 esac
20881 cygwin* | mingw* | pw32* | cegcc*)
20882 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20883 # as there is no search path for DLLs.
20884 hardcode_libdir_flag_spec_CXX='-L$libdir'
20885 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20886 allow_undefined_flag_CXX=unsupported
20887 always_export_symbols_CXX=no
20888 enable_shared_with_static_runtimes_CXX=yes
20890 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20891 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'
20892 # If the export-symbols file already is a .def file (1st line
20893 # is EXPORTS), use it as is; otherwise, prepend...
20894 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20895 cp $export_symbols $output_objdir/$soname.def;
20896 else
20897 echo EXPORTS > $output_objdir/$soname.def;
20898 cat $export_symbols >> $output_objdir/$soname.def;
20900 $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'
20901 else
20902 ld_shlibs_CXX=no
20905 darwin* | rhapsody*)
20908 archive_cmds_need_lc_CXX=no
20909 hardcode_direct_CXX=no
20910 hardcode_automatic_CXX=yes
20911 hardcode_shlibpath_var_CXX=unsupported
20912 if test "$lt_cv_ld_force_load" = "yes"; then
20913 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\"`'
20914 else
20915 whole_archive_flag_spec_CXX=''
20917 link_all_deplibs_CXX=yes
20918 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20919 case $cc_basename in
20920 ifort*) _lt_dar_can_shared=yes ;;
20921 *) _lt_dar_can_shared=$GCC ;;
20922 esac
20923 if test "$_lt_dar_can_shared" = "yes"; then
20924 output_verbose_link_cmd=func_echo_all
20925 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20926 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20927 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
20928 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}"
20929 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20930 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
20931 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}"
20934 else
20935 ld_shlibs_CXX=no
20940 dgux*)
20941 case $cc_basename in
20942 ec++*)
20943 # FIXME: insert proper C++ library support
20944 ld_shlibs_CXX=no
20946 ghcx*)
20947 # Green Hills C++ Compiler
20948 # FIXME: insert proper C++ library support
20949 ld_shlibs_CXX=no
20952 # FIXME: insert proper C++ library support
20953 ld_shlibs_CXX=no
20955 esac
20958 freebsd2.*)
20959 # C++ shared libraries reported to be fairly broken before
20960 # switch to ELF
20961 ld_shlibs_CXX=no
20964 freebsd-elf*)
20965 archive_cmds_need_lc_CXX=no
20968 freebsd* | dragonfly*)
20969 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20970 # conventions
20971 ld_shlibs_CXX=yes
20974 gnu*)
20977 haiku*)
20978 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20979 link_all_deplibs_CXX=yes
20982 hpux9*)
20983 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20984 hardcode_libdir_separator_CXX=:
20985 export_dynamic_flag_spec_CXX='${wl}-E'
20986 hardcode_direct_CXX=yes
20987 hardcode_minus_L_CXX=yes # Not in the search PATH,
20988 # but as the default
20989 # location of the library.
20991 case $cc_basename in
20992 CC*)
20993 # FIXME: insert proper C++ library support
20994 ld_shlibs_CXX=no
20996 aCC*)
20997 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'
20998 # Commands to make compiler produce verbose output that lists
20999 # what "hidden" libraries, object files and flags are used when
21000 # linking a shared library.
21002 # There doesn't appear to be a way to prevent this compiler from
21003 # explicitly linking system object files so we need to strip them
21004 # from the output so that they don't get included in the library
21005 # dependencies.
21006 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"'
21009 if test "$GXX" = yes; then
21010 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'
21011 else
21012 # FIXME: insert proper C++ library support
21013 ld_shlibs_CXX=no
21016 esac
21019 hpux10*|hpux11*)
21020 if test $with_gnu_ld = no; then
21021 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21022 hardcode_libdir_separator_CXX=:
21024 case $host_cpu in
21025 hppa*64*|ia64*)
21028 export_dynamic_flag_spec_CXX='${wl}-E'
21030 esac
21032 case $host_cpu in
21033 hppa*64*|ia64*)
21034 hardcode_direct_CXX=no
21035 hardcode_shlibpath_var_CXX=no
21038 hardcode_direct_CXX=yes
21039 hardcode_direct_absolute_CXX=yes
21040 hardcode_minus_L_CXX=yes # Not in the search PATH,
21041 # but as the default
21042 # location of the library.
21044 esac
21046 case $cc_basename in
21047 CC*)
21048 # FIXME: insert proper C++ library support
21049 ld_shlibs_CXX=no
21051 aCC*)
21052 case $host_cpu in
21053 hppa*64*)
21054 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21056 ia64*)
21057 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21060 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21062 esac
21063 # Commands to make compiler produce verbose output that lists
21064 # what "hidden" libraries, object files and flags are used when
21065 # linking a shared library.
21067 # There doesn't appear to be a way to prevent this compiler from
21068 # explicitly linking system object files so we need to strip them
21069 # from the output so that they don't get included in the library
21070 # dependencies.
21071 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"'
21074 if test "$GXX" = yes; then
21075 if test $with_gnu_ld = no; then
21076 case $host_cpu in
21077 hppa*64*)
21078 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21080 ia64*)
21081 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21084 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'
21086 esac
21088 else
21089 # FIXME: insert proper C++ library support
21090 ld_shlibs_CXX=no
21093 esac
21096 interix[3-9]*)
21097 hardcode_direct_CXX=no
21098 hardcode_shlibpath_var_CXX=no
21099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21100 export_dynamic_flag_spec_CXX='${wl}-E'
21101 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21102 # Instead, shared libraries are loaded at an image base (0x10000000 by
21103 # default) and relocated if they conflict, which is a slow very memory
21104 # consuming and fragmenting process. To avoid this, we pick a random,
21105 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21106 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21107 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'
21108 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'
21110 irix5* | irix6*)
21111 case $cc_basename in
21112 CC*)
21113 # SGI C++
21114 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'
21116 # Archives containing C++ object files must be created using
21117 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21118 # necessary to make sure instantiated templates are included
21119 # in the archive.
21120 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21123 if test "$GXX" = yes; then
21124 if test "$with_gnu_ld" = no; then
21125 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'
21126 else
21127 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'
21130 link_all_deplibs_CXX=yes
21132 esac
21133 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21134 hardcode_libdir_separator_CXX=:
21135 inherit_rpath_CXX=yes
21138 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21139 case $cc_basename in
21140 KCC*)
21141 # Kuck and Associates, Inc. (KAI) C++ Compiler
21143 # KCC will only create a shared library if the output file
21144 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21145 # to its proper name (with version) after linking.
21146 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'
21147 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'
21148 # Commands to make compiler produce verbose output that lists
21149 # what "hidden" libraries, object files and flags are used when
21150 # linking a shared library.
21152 # There doesn't appear to be a way to prevent this compiler from
21153 # explicitly linking system object files so we need to strip them
21154 # from the output so that they don't get included in the library
21155 # dependencies.
21156 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"'
21158 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21159 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21161 # Archives containing C++ object files must be created using
21162 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21163 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21165 icpc* | ecpc* )
21166 # Intel C++
21167 with_gnu_ld=yes
21168 # version 8.0 and above of icpc choke on multiply defined symbols
21169 # if we add $predep_objects and $postdep_objects, however 7.1 and
21170 # earlier do not add the objects themselves.
21171 case `$CC -V 2>&1` in
21172 *"Version 7."*)
21173 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21174 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'
21176 *) # Version 8.0 or newer
21177 tmp_idyn=
21178 case $host_cpu in
21179 ia64*) tmp_idyn=' -i_dynamic';;
21180 esac
21181 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21182 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'
21184 esac
21185 archive_cmds_need_lc_CXX=no
21186 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21187 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21188 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21190 pgCC* | pgcpp*)
21191 # Portland Group C++ compiler
21192 case `$CC -V` in
21193 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
21194 prelink_cmds_CXX='tpldir=Template.dir~
21195 rm -rf $tpldir~
21196 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21197 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21198 old_archive_cmds_CXX='tpldir=Template.dir~
21199 rm -rf $tpldir~
21200 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21201 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21202 $RANLIB $oldlib'
21203 archive_cmds_CXX='tpldir=Template.dir~
21204 rm -rf $tpldir~
21205 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21206 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21207 archive_expsym_cmds_CXX='tpldir=Template.dir~
21208 rm -rf $tpldir~
21209 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21210 $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'
21212 *) # Version 6 and above use weak symbols
21213 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21214 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'
21216 esac
21218 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21219 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21220 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'
21222 cxx*)
21223 # Compaq C++
21224 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21225 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'
21227 runpath_var=LD_RUN_PATH
21228 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21229 hardcode_libdir_separator_CXX=:
21231 # Commands to make compiler produce verbose output that lists
21232 # what "hidden" libraries, object files and flags are used when
21233 # linking a shared library.
21235 # There doesn't appear to be a way to prevent this compiler from
21236 # explicitly linking system object files so we need to strip them
21237 # from the output so that they don't get included in the library
21238 # dependencies.
21239 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'
21241 xl* | mpixl* | bgxl*)
21242 # IBM XL 8.0 on PPC, with GNU ld
21243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21244 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21245 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21246 if test "x$supports_anon_versioning" = xyes; then
21247 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21248 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21249 echo "local: *; };" >> $output_objdir/$libname.ver~
21250 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21254 case `$CC -V 2>&1 | sed 5q` in
21255 *Sun\ C*)
21256 # Sun C++ 5.9
21257 no_undefined_flag_CXX=' -zdefs'
21258 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21259 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'
21260 hardcode_libdir_flag_spec_CXX='-R$libdir'
21261 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'
21262 compiler_needs_object_CXX=yes
21264 # Not sure whether something based on
21265 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21266 # would be better.
21267 output_verbose_link_cmd='func_echo_all'
21269 # Archives containing C++ object files must be created using
21270 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21271 # necessary to make sure instantiated templates are included
21272 # in the archive.
21273 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21275 esac
21277 esac
21280 lynxos*)
21281 # FIXME: insert proper C++ library support
21282 ld_shlibs_CXX=no
21285 m88k*)
21286 # FIXME: insert proper C++ library support
21287 ld_shlibs_CXX=no
21290 mvs*)
21291 case $cc_basename in
21292 cxx*)
21293 # FIXME: insert proper C++ library support
21294 ld_shlibs_CXX=no
21297 # FIXME: insert proper C++ library support
21298 ld_shlibs_CXX=no
21300 esac
21303 netbsd*)
21304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21305 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21306 wlarc=
21307 hardcode_libdir_flag_spec_CXX='-R$libdir'
21308 hardcode_direct_CXX=yes
21309 hardcode_shlibpath_var_CXX=no
21311 # Workaround some broken pre-1.5 toolchains
21312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21315 *nto* | *qnx*)
21316 ld_shlibs_CXX=yes
21319 openbsd2*)
21320 # C++ shared libraries are fairly broken
21321 ld_shlibs_CXX=no
21324 openbsd*)
21325 if test -f /usr/libexec/ld.so; then
21326 hardcode_direct_CXX=yes
21327 hardcode_shlibpath_var_CXX=no
21328 hardcode_direct_absolute_CXX=yes
21329 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21330 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21332 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21333 export_dynamic_flag_spec_CXX='${wl}-E'
21334 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21336 output_verbose_link_cmd=func_echo_all
21337 else
21338 ld_shlibs_CXX=no
21342 osf3* | osf4* | osf5*)
21343 case $cc_basename in
21344 KCC*)
21345 # Kuck and Associates, Inc. (KAI) C++ Compiler
21347 # KCC will only create a shared library if the output file
21348 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21349 # to its proper name (with version) after linking.
21350 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'
21352 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21353 hardcode_libdir_separator_CXX=:
21355 # Archives containing C++ object files must be created using
21356 # the KAI C++ compiler.
21357 case $host in
21358 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21359 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21360 esac
21362 RCC*)
21363 # Rational C++ 2.4.1
21364 # FIXME: insert proper C++ library support
21365 ld_shlibs_CXX=no
21367 cxx*)
21368 case $host in
21369 osf3*)
21370 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21371 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'
21372 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21375 allow_undefined_flag_CXX=' -expect_unresolved \*'
21376 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'
21377 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21378 echo "-hidden">> $lib.exp~
21379 $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~
21380 $RM $lib.exp'
21381 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21383 esac
21385 hardcode_libdir_separator_CXX=:
21387 # Commands to make compiler produce verbose output that lists
21388 # what "hidden" libraries, object files and flags are used when
21389 # linking a shared library.
21391 # There doesn't appear to be a way to prevent this compiler from
21392 # explicitly linking system object files so we need to strip them
21393 # from the output so that they don't get included in the library
21394 # dependencies.
21395 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"'
21398 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21399 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21400 case $host in
21401 osf3*)
21402 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'
21405 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'
21407 esac
21409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21410 hardcode_libdir_separator_CXX=:
21412 # Commands to make compiler produce verbose output that lists
21413 # what "hidden" libraries, object files and flags are used when
21414 # linking a shared library.
21415 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21417 else
21418 # FIXME: insert proper C++ library support
21419 ld_shlibs_CXX=no
21422 esac
21425 psos*)
21426 # FIXME: insert proper C++ library support
21427 ld_shlibs_CXX=no
21430 sunos4*)
21431 case $cc_basename in
21432 CC*)
21433 # Sun C++ 4.x
21434 # FIXME: insert proper C++ library support
21435 ld_shlibs_CXX=no
21437 lcc*)
21438 # Lucid
21439 # FIXME: insert proper C++ library support
21440 ld_shlibs_CXX=no
21443 # FIXME: insert proper C++ library support
21444 ld_shlibs_CXX=no
21446 esac
21449 solaris*)
21450 case $cc_basename in
21451 CC*)
21452 # Sun C++ 4.2, 5.x and Centerline C++
21453 archive_cmds_need_lc_CXX=yes
21454 no_undefined_flag_CXX=' -zdefs'
21455 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21456 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21457 $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'
21459 hardcode_libdir_flag_spec_CXX='-R$libdir'
21460 hardcode_shlibpath_var_CXX=no
21461 case $host_os in
21462 solaris2.[0-5] | solaris2.[0-5].*) ;;
21464 # The compiler driver will combine and reorder linker options,
21465 # but understands `-z linker_flag'.
21466 # Supported since Solaris 2.6 (maybe 2.5.1?)
21467 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21469 esac
21470 link_all_deplibs_CXX=yes
21472 output_verbose_link_cmd='func_echo_all'
21474 # Archives containing C++ object files must be created using
21475 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21476 # necessary to make sure instantiated templates are included
21477 # in the archive.
21478 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21480 gcx*)
21481 # Green Hills C++ Compiler
21482 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21484 # The C++ compiler must be used to create the archive.
21485 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21488 # GNU C++ compiler with Solaris linker
21489 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21490 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21491 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21492 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21493 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21494 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21496 # Commands to make compiler produce verbose output that lists
21497 # what "hidden" libraries, object files and flags are used when
21498 # linking a shared library.
21499 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21500 else
21501 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21502 # platform.
21503 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21504 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21505 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21507 # Commands to make compiler produce verbose output that lists
21508 # what "hidden" libraries, object files and flags are used when
21509 # linking a shared library.
21510 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21513 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21514 case $host_os in
21515 solaris2.[0-5] | solaris2.[0-5].*) ;;
21517 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21519 esac
21522 esac
21525 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21526 no_undefined_flag_CXX='${wl}-z,text'
21527 archive_cmds_need_lc_CXX=no
21528 hardcode_shlibpath_var_CXX=no
21529 runpath_var='LD_RUN_PATH'
21531 case $cc_basename in
21532 CC*)
21533 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21534 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21537 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21538 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21540 esac
21543 sysv5* | sco3.2v5* | sco5v6*)
21544 # Note: We can NOT use -z defs as we might desire, because we do not
21545 # link with -lc, and that would cause any symbols used from libc to
21546 # always be unresolved, which means just about no library would
21547 # ever link correctly. If we're not using GNU ld we use -z text
21548 # though, which does catch some bad symbols but isn't as heavy-handed
21549 # as -z defs.
21550 no_undefined_flag_CXX='${wl}-z,text'
21551 allow_undefined_flag_CXX='${wl}-z,nodefs'
21552 archive_cmds_need_lc_CXX=no
21553 hardcode_shlibpath_var_CXX=no
21554 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21555 hardcode_libdir_separator_CXX=':'
21556 link_all_deplibs_CXX=yes
21557 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21558 runpath_var='LD_RUN_PATH'
21560 case $cc_basename in
21561 CC*)
21562 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21563 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21564 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21565 '"$old_archive_cmds_CXX"
21566 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21567 '"$reload_cmds_CXX"
21570 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21571 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21573 esac
21576 tandem*)
21577 case $cc_basename in
21578 NCC*)
21579 # NonStop-UX NCC 3.20
21580 # FIXME: insert proper C++ library support
21581 ld_shlibs_CXX=no
21584 # FIXME: insert proper C++ library support
21585 ld_shlibs_CXX=no
21587 esac
21590 vxworks*)
21591 # For VxWorks ports, we assume the use of a GNU linker with
21592 # standard elf conventions.
21593 ld_shlibs_CXX=yes
21597 # FIXME: insert proper C++ library support
21598 ld_shlibs_CXX=no
21600 esac
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21603 $as_echo "$ld_shlibs_CXX" >&6; }
21604 test "$ld_shlibs_CXX" = no && can_build_shared=no
21606 GCC_CXX="$GXX"
21607 LD_CXX="$LD"
21609 ## CAVEAT EMPTOR:
21610 ## There is no encapsulation within the following macros, do not change
21611 ## the running order or otherwise move them around unless you know exactly
21612 ## what you are doing...
21613 # Dependencies to place before and after the object being linked:
21614 predep_objects_CXX=
21615 postdep_objects_CXX=
21616 predeps_CXX=
21617 postdeps_CXX=
21618 compiler_lib_search_path_CXX=
21620 cat > conftest.$ac_ext <<_LT_EOF
21621 class Foo
21623 public:
21624 Foo (void) { a = 0; }
21625 private:
21626 int a;
21628 _LT_EOF
21630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21631 (eval $ac_compile) 2>&5
21632 ac_status=$?
21633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21634 test $ac_status = 0; }; then
21635 # Parse the compiler output and extract the necessary
21636 # objects, libraries and library flags.
21638 # Sentinel used to keep track of whether or not we are before
21639 # the conftest object file.
21640 pre_test_object_deps_done=no
21642 for p in `eval "$output_verbose_link_cmd"`; do
21643 case $p in
21645 -L* | -R* | -l*)
21646 # Some compilers place space between "-{L,R}" and the path.
21647 # Remove the space.
21648 if test $p = "-L" ||
21649 test $p = "-R"; then
21650 prev=$p
21651 continue
21652 else
21653 prev=
21656 if test "$pre_test_object_deps_done" = no; then
21657 case $p in
21658 -L* | -R*)
21659 # Internal compiler library paths should come after those
21660 # provided the user. The postdeps already come after the
21661 # user supplied libs so there is no need to process them.
21662 if test -z "$compiler_lib_search_path_CXX"; then
21663 compiler_lib_search_path_CXX="${prev}${p}"
21664 else
21665 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21668 # The "-l" case would never come before the object being
21669 # linked, so don't bother handling this case.
21670 esac
21671 else
21672 if test -z "$postdeps_CXX"; then
21673 postdeps_CXX="${prev}${p}"
21674 else
21675 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21680 *.$objext)
21681 # This assumes that the test object file only shows up
21682 # once in the compiler output.
21683 if test "$p" = "conftest.$objext"; then
21684 pre_test_object_deps_done=yes
21685 continue
21688 if test "$pre_test_object_deps_done" = no; then
21689 if test -z "$predep_objects_CXX"; then
21690 predep_objects_CXX="$p"
21691 else
21692 predep_objects_CXX="$predep_objects_CXX $p"
21694 else
21695 if test -z "$postdep_objects_CXX"; then
21696 postdep_objects_CXX="$p"
21697 else
21698 postdep_objects_CXX="$postdep_objects_CXX $p"
21703 *) ;; # Ignore the rest.
21705 esac
21706 done
21708 # Clean up.
21709 rm -f a.out a.exe
21710 else
21711 echo "libtool.m4: error: problem compiling CXX test program"
21714 $RM -f confest.$objext
21716 # PORTME: override above test on systems where it is broken
21717 case $host_os in
21718 interix[3-9]*)
21719 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21720 # hack all around it, let's just trust "g++" to DTRT.
21721 predep_objects_CXX=
21722 postdep_objects_CXX=
21723 postdeps_CXX=
21726 linux*)
21727 case `$CC -V 2>&1 | sed 5q` in
21728 *Sun\ C*)
21729 # Sun C++ 5.9
21731 # The more standards-conforming stlport4 library is
21732 # incompatible with the Cstd library. Avoid specifying
21733 # it if it's in CXXFLAGS. Ignore libCrun as
21734 # -library=stlport4 depends on it.
21735 case " $CXX $CXXFLAGS " in
21736 *" -library=stlport4 "*)
21737 solaris_use_stlport4=yes
21739 esac
21741 if test "$solaris_use_stlport4" != yes; then
21742 postdeps_CXX='-library=Cstd -library=Crun'
21745 esac
21748 solaris*)
21749 case $cc_basename in
21750 CC*)
21751 # The more standards-conforming stlport4 library is
21752 # incompatible with the Cstd library. Avoid specifying
21753 # it if it's in CXXFLAGS. Ignore libCrun as
21754 # -library=stlport4 depends on it.
21755 case " $CXX $CXXFLAGS " in
21756 *" -library=stlport4 "*)
21757 solaris_use_stlport4=yes
21759 esac
21761 # Adding this requires a known-good setup of shared libraries for
21762 # Sun compiler versions before 5.6, else PIC objects from an old
21763 # archive will be linked into the output, leading to subtle bugs.
21764 if test "$solaris_use_stlport4" != yes; then
21765 postdeps_CXX='-library=Cstd -library=Crun'
21768 esac
21770 esac
21773 case " $postdeps_CXX " in
21774 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21775 esac
21776 compiler_lib_search_dirs_CXX=
21777 if test -n "${compiler_lib_search_path_CXX}"; then
21778 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21811 lt_prog_compiler_wl_CXX=
21812 lt_prog_compiler_pic_CXX=
21813 lt_prog_compiler_static_CXX=
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21816 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21818 # C++ specific cases for pic, static, wl, etc.
21819 if test "$GXX" = yes; then
21820 lt_prog_compiler_wl_CXX='-Wl,'
21821 lt_prog_compiler_static_CXX='-static'
21823 case $host_os in
21824 aix*)
21825 # All AIX code is PIC.
21826 if test "$host_cpu" = ia64; then
21827 # AIX 5 now supports IA64 processor
21828 lt_prog_compiler_static_CXX='-Bstatic'
21830 lt_prog_compiler_pic_CXX='-fPIC'
21833 amigaos*)
21834 case $host_cpu in
21835 powerpc)
21836 # see comment about AmigaOS4 .so support
21837 lt_prog_compiler_pic_CXX='-fPIC'
21839 m68k)
21840 # FIXME: we need at least 68020 code to build shared libraries, but
21841 # adding the `-m68020' flag to GCC prevents building anything better,
21842 # like `-m68040'.
21843 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21845 esac
21848 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21849 # PIC is the default for these OSes.
21851 mingw* | cygwin* | os2* | pw32* | cegcc*)
21852 # This hack is so that the source file can tell whether it is being
21853 # built for inclusion in a dll (and should export symbols for example).
21854 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21855 # (--disable-auto-import) libraries
21856 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21858 darwin* | rhapsody*)
21859 # PIC is the default on this platform
21860 # Common symbols not allowed in MH_DYLIB files
21861 lt_prog_compiler_pic_CXX='-fno-common'
21863 *djgpp*)
21864 # DJGPP does not support shared libraries at all
21865 lt_prog_compiler_pic_CXX=
21867 haiku*)
21868 # PIC is the default for Haiku.
21869 # The "-static" flag exists, but is broken.
21870 lt_prog_compiler_static_CXX=
21872 interix[3-9]*)
21873 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21874 # Instead, we relocate shared libraries at runtime.
21876 sysv4*MP*)
21877 if test -d /usr/nec; then
21878 lt_prog_compiler_pic_CXX=-Kconform_pic
21881 hpux*)
21882 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21883 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21884 # sets the default TLS model and affects inlining.
21885 case $host_cpu in
21886 hppa*64*)
21889 lt_prog_compiler_pic_CXX='-fPIC'
21891 esac
21893 *qnx* | *nto*)
21894 # QNX uses GNU C++, but need to define -shared option too, otherwise
21895 # it will coredump.
21896 lt_prog_compiler_pic_CXX='-fPIC -shared'
21899 lt_prog_compiler_pic_CXX='-fPIC'
21901 esac
21902 else
21903 case $host_os in
21904 aix[4-9]*)
21905 # All AIX code is PIC.
21906 if test "$host_cpu" = ia64; then
21907 # AIX 5 now supports IA64 processor
21908 lt_prog_compiler_static_CXX='-Bstatic'
21909 else
21910 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21913 chorus*)
21914 case $cc_basename in
21915 cxch68*)
21916 # Green Hills C++ Compiler
21917 # _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"
21919 esac
21921 dgux*)
21922 case $cc_basename in
21923 ec++*)
21924 lt_prog_compiler_pic_CXX='-KPIC'
21926 ghcx*)
21927 # Green Hills C++ Compiler
21928 lt_prog_compiler_pic_CXX='-pic'
21932 esac
21934 freebsd* | dragonfly*)
21935 # FreeBSD uses GNU C++
21937 hpux9* | hpux10* | hpux11*)
21938 case $cc_basename in
21939 CC*)
21940 lt_prog_compiler_wl_CXX='-Wl,'
21941 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21942 if test "$host_cpu" != ia64; then
21943 lt_prog_compiler_pic_CXX='+Z'
21946 aCC*)
21947 lt_prog_compiler_wl_CXX='-Wl,'
21948 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21949 case $host_cpu in
21950 hppa*64*|ia64*)
21951 # +Z the default
21954 lt_prog_compiler_pic_CXX='+Z'
21956 esac
21960 esac
21962 interix*)
21963 # This is c89, which is MS Visual C++ (no shared libs)
21964 # Anyone wants to do a port?
21966 irix5* | irix6* | nonstopux*)
21967 case $cc_basename in
21968 CC*)
21969 lt_prog_compiler_wl_CXX='-Wl,'
21970 lt_prog_compiler_static_CXX='-non_shared'
21971 # CC pic flag -KPIC is the default.
21975 esac
21977 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21978 case $cc_basename in
21979 KCC*)
21980 # KAI C++ Compiler
21981 lt_prog_compiler_wl_CXX='--backend -Wl,'
21982 lt_prog_compiler_pic_CXX='-fPIC'
21984 ecpc* )
21985 # old Intel C++ for x86_64 which still supported -KPIC.
21986 lt_prog_compiler_wl_CXX='-Wl,'
21987 lt_prog_compiler_pic_CXX='-KPIC'
21988 lt_prog_compiler_static_CXX='-static'
21990 icpc* )
21991 # Intel C++, used to be incompatible with GCC.
21992 # ICC 10 doesn't accept -KPIC any more.
21993 lt_prog_compiler_wl_CXX='-Wl,'
21994 lt_prog_compiler_pic_CXX='-fPIC'
21995 lt_prog_compiler_static_CXX='-static'
21997 pgCC* | pgcpp*)
21998 # Portland Group C++ compiler
21999 lt_prog_compiler_wl_CXX='-Wl,'
22000 lt_prog_compiler_pic_CXX='-fpic'
22001 lt_prog_compiler_static_CXX='-Bstatic'
22003 cxx*)
22004 # Compaq C++
22005 # Make sure the PIC flag is empty. It appears that all Alpha
22006 # Linux and Compaq Tru64 Unix objects are PIC.
22007 lt_prog_compiler_pic_CXX=
22008 lt_prog_compiler_static_CXX='-non_shared'
22010 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
22011 # IBM XL 8.0, 9.0 on PPC and BlueGene
22012 lt_prog_compiler_wl_CXX='-Wl,'
22013 lt_prog_compiler_pic_CXX='-qpic'
22014 lt_prog_compiler_static_CXX='-qstaticlink'
22017 case `$CC -V 2>&1 | sed 5q` in
22018 *Sun\ C*)
22019 # Sun C++ 5.9
22020 lt_prog_compiler_pic_CXX='-KPIC'
22021 lt_prog_compiler_static_CXX='-Bstatic'
22022 lt_prog_compiler_wl_CXX='-Qoption ld '
22024 esac
22026 esac
22028 lynxos*)
22030 m88k*)
22032 mvs*)
22033 case $cc_basename in
22034 cxx*)
22035 lt_prog_compiler_pic_CXX='-W c,exportall'
22039 esac
22041 netbsd*)
22043 *qnx* | *nto*)
22044 # QNX uses GNU C++, but need to define -shared option too, otherwise
22045 # it will coredump.
22046 lt_prog_compiler_pic_CXX='-fPIC -shared'
22048 osf3* | osf4* | osf5*)
22049 case $cc_basename in
22050 KCC*)
22051 lt_prog_compiler_wl_CXX='--backend -Wl,'
22053 RCC*)
22054 # Rational C++ 2.4.1
22055 lt_prog_compiler_pic_CXX='-pic'
22057 cxx*)
22058 # Digital/Compaq C++
22059 lt_prog_compiler_wl_CXX='-Wl,'
22060 # Make sure the PIC flag is empty. It appears that all Alpha
22061 # Linux and Compaq Tru64 Unix objects are PIC.
22062 lt_prog_compiler_pic_CXX=
22063 lt_prog_compiler_static_CXX='-non_shared'
22067 esac
22069 psos*)
22071 solaris*)
22072 case $cc_basename in
22073 CC*)
22074 # Sun C++ 4.2, 5.x and Centerline C++
22075 lt_prog_compiler_pic_CXX='-KPIC'
22076 lt_prog_compiler_static_CXX='-Bstatic'
22077 lt_prog_compiler_wl_CXX='-Qoption ld '
22079 gcx*)
22080 # Green Hills C++ Compiler
22081 lt_prog_compiler_pic_CXX='-PIC'
22085 esac
22087 sunos4*)
22088 case $cc_basename in
22089 CC*)
22090 # Sun C++ 4.x
22091 lt_prog_compiler_pic_CXX='-pic'
22092 lt_prog_compiler_static_CXX='-Bstatic'
22094 lcc*)
22095 # Lucid
22096 lt_prog_compiler_pic_CXX='-pic'
22100 esac
22102 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22103 case $cc_basename in
22104 CC*)
22105 lt_prog_compiler_wl_CXX='-Wl,'
22106 lt_prog_compiler_pic_CXX='-KPIC'
22107 lt_prog_compiler_static_CXX='-Bstatic'
22109 esac
22111 tandem*)
22112 case $cc_basename in
22113 NCC*)
22114 # NonStop-UX NCC 3.20
22115 lt_prog_compiler_pic_CXX='-KPIC'
22119 esac
22121 vxworks*)
22124 lt_prog_compiler_can_build_shared_CXX=no
22126 esac
22129 case $host_os in
22130 # For platforms which do not support PIC, -DPIC is meaningless:
22131 *djgpp*)
22132 lt_prog_compiler_pic_CXX=
22135 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22137 esac
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22139 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22144 # Check to make sure the PIC flag actually works.
22146 if test -n "$lt_prog_compiler_pic_CXX"; then
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22148 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22149 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
22150 $as_echo_n "(cached) " >&6
22151 else
22152 lt_cv_prog_compiler_pic_works_CXX=no
22153 ac_outfile=conftest.$ac_objext
22154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22155 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22156 # Insert the option either (1) after the last *FLAGS variable, or
22157 # (2) before a word containing "conftest.", or (3) at the end.
22158 # Note that $ac_compile itself does not contain backslashes and begins
22159 # with a dollar sign (not a hyphen), so the echo should work correctly.
22160 # The option is referenced via a variable to avoid confusing sed.
22161 lt_compile=`echo "$ac_compile" | $SED \
22162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22164 -e 's:$: $lt_compiler_flag:'`
22165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22166 (eval "$lt_compile" 2>conftest.err)
22167 ac_status=$?
22168 cat conftest.err >&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 if (exit $ac_status) && test -s "$ac_outfile"; then
22171 # The compiler can only warn and ignore the option if not recognized
22172 # So say no if there are warnings other than the usual output.
22173 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22175 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22176 lt_cv_prog_compiler_pic_works_CXX=yes
22179 $RM conftest*
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22183 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22185 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
22186 case $lt_prog_compiler_pic_CXX in
22187 "" | " "*) ;;
22188 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22189 esac
22190 else
22191 lt_prog_compiler_pic_CXX=
22192 lt_prog_compiler_can_build_shared_CXX=no
22200 # Check to make sure the static flag actually works.
22202 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22204 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22205 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
22206 $as_echo_n "(cached) " >&6
22207 else
22208 lt_cv_prog_compiler_static_works_CXX=no
22209 save_LDFLAGS="$LDFLAGS"
22210 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22211 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22212 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22213 # The linker can only warn and ignore the option if not recognized
22214 # So say no if there are warnings
22215 if test -s conftest.err; then
22216 # Append any errors to the config.log.
22217 cat conftest.err 1>&5
22218 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22220 if diff conftest.exp conftest.er2 >/dev/null; then
22221 lt_cv_prog_compiler_static_works_CXX=yes
22223 else
22224 lt_cv_prog_compiler_static_works_CXX=yes
22227 $RM -r conftest*
22228 LDFLAGS="$save_LDFLAGS"
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22232 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22234 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22236 else
22237 lt_prog_compiler_static_CXX=
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22244 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22245 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22246 $as_echo_n "(cached) " >&6
22247 else
22248 lt_cv_prog_compiler_c_o_CXX=no
22249 $RM -r conftest 2>/dev/null
22250 mkdir conftest
22251 cd conftest
22252 mkdir out
22253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22255 lt_compiler_flag="-o out/conftest2.$ac_objext"
22256 # Insert the option either (1) after the last *FLAGS variable, or
22257 # (2) before a word containing "conftest.", or (3) at the end.
22258 # Note that $ac_compile itself does not contain backslashes and begins
22259 # with a dollar sign (not a hyphen), so the echo should work correctly.
22260 lt_compile=`echo "$ac_compile" | $SED \
22261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22263 -e 's:$: $lt_compiler_flag:'`
22264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22265 (eval "$lt_compile" 2>out/conftest.err)
22266 ac_status=$?
22267 cat out/conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22270 then
22271 # The compiler can only warn and ignore the option if not recognized
22272 # So say no if there are warnings
22273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22274 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22275 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22276 lt_cv_prog_compiler_c_o_CXX=yes
22279 chmod u+w . 2>&5
22280 $RM conftest*
22281 # SGI C++ compiler will create directory out/ii_files/ for
22282 # template instantiation
22283 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22284 $RM out/* && rmdir out
22285 cd ..
22286 $RM -r conftest
22287 $RM conftest*
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22291 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22296 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22297 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22298 $as_echo_n "(cached) " >&6
22299 else
22300 lt_cv_prog_compiler_c_o_CXX=no
22301 $RM -r conftest 2>/dev/null
22302 mkdir conftest
22303 cd conftest
22304 mkdir out
22305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22307 lt_compiler_flag="-o out/conftest2.$ac_objext"
22308 # Insert the option either (1) after the last *FLAGS variable, or
22309 # (2) before a word containing "conftest.", or (3) at the end.
22310 # Note that $ac_compile itself does not contain backslashes and begins
22311 # with a dollar sign (not a hyphen), so the echo should work correctly.
22312 lt_compile=`echo "$ac_compile" | $SED \
22313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22315 -e 's:$: $lt_compiler_flag:'`
22316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22317 (eval "$lt_compile" 2>out/conftest.err)
22318 ac_status=$?
22319 cat out/conftest.err >&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22322 then
22323 # The compiler can only warn and ignore the option if not recognized
22324 # So say no if there are warnings
22325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22328 lt_cv_prog_compiler_c_o_CXX=yes
22331 chmod u+w . 2>&5
22332 $RM conftest*
22333 # SGI C++ compiler will create directory out/ii_files/ for
22334 # template instantiation
22335 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22336 $RM out/* && rmdir out
22337 cd ..
22338 $RM -r conftest
22339 $RM conftest*
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22343 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22348 hard_links="nottested"
22349 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22350 # do not overwrite the value of need_locks provided by the user
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22352 $as_echo_n "checking if we can lock with hard links... " >&6; }
22353 hard_links=yes
22354 $RM conftest*
22355 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22356 touch conftest.a
22357 ln conftest.a conftest.b 2>&5 || hard_links=no
22358 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22360 $as_echo "$hard_links" >&6; }
22361 if test "$hard_links" = no; then
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22363 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22364 need_locks=warn
22366 else
22367 need_locks=no
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22373 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22375 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22376 case $host_os in
22377 aix[4-9]*)
22378 # If we're using GNU nm, then we don't want the "-C" option.
22379 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22380 # Also, AIX nm treats weak defined symbols like other global defined
22381 # symbols, whereas GNU nm marks them as "W".
22382 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22383 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'
22384 else
22385 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'
22388 pw32*)
22389 export_symbols_cmds_CXX="$ltdll_cmds"
22391 cygwin* | mingw* | cegcc*)
22392 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'
22395 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22397 esac
22398 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22401 $as_echo "$ld_shlibs_CXX" >&6; }
22402 test "$ld_shlibs_CXX" = no && can_build_shared=no
22404 with_gnu_ld_CXX=$with_gnu_ld
22412 # Do we need to explicitly link libc?
22414 case "x$archive_cmds_need_lc_CXX" in
22415 x|xyes)
22416 # Assume -lc should be added
22417 archive_cmds_need_lc_CXX=yes
22419 if test "$enable_shared" = yes && test "$GCC" = yes; then
22420 case $archive_cmds_CXX in
22421 *'~'*)
22422 # FIXME: we may have to deal with multi-command sequences.
22424 '$CC '*)
22425 # Test whether the compiler implicitly links with -lc since on some
22426 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22427 # to ld, don't add -lc before -lgcc.
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22429 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22430 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22431 $as_echo_n "(cached) " >&6
22432 else
22433 $RM conftest*
22434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22437 (eval $ac_compile) 2>&5
22438 ac_status=$?
22439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22440 test $ac_status = 0; } 2>conftest.err; then
22441 soname=conftest
22442 lib=conftest
22443 libobjs=conftest.$ac_objext
22444 deplibs=
22445 wl=$lt_prog_compiler_wl_CXX
22446 pic_flag=$lt_prog_compiler_pic_CXX
22447 compiler_flags=-v
22448 linker_flags=-v
22449 verstring=
22450 output_objdir=.
22451 libname=conftest
22452 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22453 allow_undefined_flag_CXX=
22454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22455 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22456 ac_status=$?
22457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22458 test $ac_status = 0; }
22459 then
22460 lt_cv_archive_cmds_need_lc_CXX=no
22461 else
22462 lt_cv_archive_cmds_need_lc_CXX=yes
22464 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22465 else
22466 cat conftest.err 1>&5
22468 $RM conftest*
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22472 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22473 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22475 esac
22478 esac
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22544 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22546 library_names_spec=
22547 libname_spec='lib$name'
22548 soname_spec=
22549 shrext_cmds=".so"
22550 postinstall_cmds=
22551 postuninstall_cmds=
22552 finish_cmds=
22553 finish_eval=
22554 shlibpath_var=
22555 shlibpath_overrides_runpath=unknown
22556 version_type=none
22557 dynamic_linker="$host_os ld.so"
22558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22559 need_lib_prefix=unknown
22560 hardcode_into_libs=no
22562 # when you set need_version to no, make sure it does not cause -set_version
22563 # flags to be left without arguments
22564 need_version=unknown
22566 case $host_os in
22567 aix3*)
22568 version_type=linux
22569 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22570 shlibpath_var=LIBPATH
22572 # AIX 3 has no versioning support, so we append a major version to the name.
22573 soname_spec='${libname}${release}${shared_ext}$major'
22576 aix[4-9]*)
22577 version_type=linux
22578 need_lib_prefix=no
22579 need_version=no
22580 hardcode_into_libs=yes
22581 if test "$host_cpu" = ia64; then
22582 # AIX 5 supports IA64
22583 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22584 shlibpath_var=LD_LIBRARY_PATH
22585 else
22586 # With GCC up to 2.95.x, collect2 would create an import file
22587 # for dependence libraries. The import file would start with
22588 # the line `#! .'. This would cause the generated library to
22589 # depend on `.', always an invalid library. This was fixed in
22590 # development snapshots of GCC prior to 3.0.
22591 case $host_os in
22592 aix4 | aix4.[01] | aix4.[01].*)
22593 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22594 echo ' yes '
22595 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22597 else
22598 can_build_shared=no
22601 esac
22602 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22603 # soname into executable. Probably we can add versioning support to
22604 # collect2, so additional links can be useful in future.
22605 if test "$aix_use_runtimelinking" = yes; then
22606 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22607 # instead of lib<name>.a to let people know that these are not
22608 # typical AIX shared libraries.
22609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22610 else
22611 # We preserve .a as extension for shared libraries through AIX4.2
22612 # and later when we are not doing run time linking.
22613 library_names_spec='${libname}${release}.a $libname.a'
22614 soname_spec='${libname}${release}${shared_ext}$major'
22616 shlibpath_var=LIBPATH
22620 amigaos*)
22621 case $host_cpu in
22622 powerpc)
22623 # Since July 2007 AmigaOS4 officially supports .so libraries.
22624 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22627 m68k)
22628 library_names_spec='$libname.ixlibrary $libname.a'
22629 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22630 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'
22632 esac
22635 beos*)
22636 library_names_spec='${libname}${shared_ext}'
22637 dynamic_linker="$host_os ld.so"
22638 shlibpath_var=LIBRARY_PATH
22641 bsdi[45]*)
22642 version_type=linux
22643 need_version=no
22644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22645 soname_spec='${libname}${release}${shared_ext}$major'
22646 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22647 shlibpath_var=LD_LIBRARY_PATH
22648 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22649 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22650 # the default ld.so.conf also contains /usr/contrib/lib and
22651 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22652 # libtool to hard-code these into programs
22655 cygwin* | mingw* | pw32* | cegcc*)
22656 version_type=windows
22657 shrext_cmds=".dll"
22658 need_version=no
22659 need_lib_prefix=no
22661 case $GCC,$host_os in
22662 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22663 library_names_spec='$libname.dll.a'
22664 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22665 postinstall_cmds='base_file=`basename \${file}`~
22666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22667 dldir=$destdir/`dirname \$dlpath`~
22668 test -d \$dldir || mkdir -p \$dldir~
22669 $install_prog $dir/$dlname \$dldir/$dlname~
22670 chmod a+x \$dldir/$dlname~
22671 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22672 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22675 dlpath=$dir/\$dldll~
22676 $RM \$dlpath'
22677 shlibpath_overrides_runpath=yes
22679 case $host_os in
22680 cygwin*)
22681 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22682 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22685 mingw* | cegcc*)
22686 # MinGW DLLs use traditional 'lib' prefix
22687 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22689 pw32*)
22690 # pw32 DLLs use 'pw' prefix rather than 'lib'
22691 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22693 esac
22697 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22699 esac
22700 dynamic_linker='Win32 ld.exe'
22701 # FIXME: first we should search . and the directory the executable is in
22702 shlibpath_var=PATH
22705 darwin* | rhapsody*)
22706 dynamic_linker="$host_os dyld"
22707 version_type=darwin
22708 need_lib_prefix=no
22709 need_version=no
22710 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22711 soname_spec='${libname}${release}${major}$shared_ext'
22712 shlibpath_overrides_runpath=yes
22713 shlibpath_var=DYLD_LIBRARY_PATH
22714 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22716 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22719 dgux*)
22720 version_type=linux
22721 need_lib_prefix=no
22722 need_version=no
22723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22724 soname_spec='${libname}${release}${shared_ext}$major'
22725 shlibpath_var=LD_LIBRARY_PATH
22728 freebsd* | dragonfly*)
22729 # DragonFly does not have aout. When/if they implement a new
22730 # versioning mechanism, adjust this.
22731 if test -x /usr/bin/objformat; then
22732 objformat=`/usr/bin/objformat`
22733 else
22734 case $host_os in
22735 freebsd[23].*) objformat=aout ;;
22736 *) objformat=elf ;;
22737 esac
22739 version_type=freebsd-$objformat
22740 case $version_type in
22741 freebsd-elf*)
22742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22743 need_version=no
22744 need_lib_prefix=no
22746 freebsd-*)
22747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22748 need_version=yes
22750 esac
22751 shlibpath_var=LD_LIBRARY_PATH
22752 case $host_os in
22753 freebsd2.*)
22754 shlibpath_overrides_runpath=yes
22756 freebsd3.[01]* | freebsdelf3.[01]*)
22757 shlibpath_overrides_runpath=yes
22758 hardcode_into_libs=yes
22760 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22761 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22762 shlibpath_overrides_runpath=no
22763 hardcode_into_libs=yes
22765 *) # from 4.6 on, and DragonFly
22766 shlibpath_overrides_runpath=yes
22767 hardcode_into_libs=yes
22769 esac
22772 haiku*)
22773 version_type=linux
22774 need_lib_prefix=no
22775 need_version=no
22776 dynamic_linker="$host_os runtime_loader"
22777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22778 soname_spec='${libname}${release}${shared_ext}$major'
22779 shlibpath_var=LIBRARY_PATH
22780 shlibpath_overrides_runpath=yes
22781 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22782 hardcode_into_libs=yes
22785 hpux9* | hpux10* | hpux11*)
22786 # Give a soname corresponding to the major version so that dld.sl refuses to
22787 # link against other versions.
22788 version_type=sunos
22789 need_lib_prefix=no
22790 need_version=no
22791 case $host_cpu in
22792 ia64*)
22793 shrext_cmds='.so'
22794 hardcode_into_libs=yes
22795 dynamic_linker="$host_os dld.so"
22796 shlibpath_var=LD_LIBRARY_PATH
22797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22799 soname_spec='${libname}${release}${shared_ext}$major'
22800 if test "X$HPUX_IA64_MODE" = X32; then
22801 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22802 else
22803 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22807 hppa*64*)
22808 shrext_cmds='.sl'
22809 hardcode_into_libs=yes
22810 dynamic_linker="$host_os dld.sl"
22811 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22814 soname_spec='${libname}${release}${shared_ext}$major'
22815 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22819 shrext_cmds='.sl'
22820 dynamic_linker="$host_os dld.sl"
22821 shlibpath_var=SHLIB_PATH
22822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22824 soname_spec='${libname}${release}${shared_ext}$major'
22826 esac
22827 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22828 postinstall_cmds='chmod 555 $lib'
22829 # or fails outright, so override atomically:
22830 install_override_mode=555
22833 interix[3-9]*)
22834 version_type=linux
22835 need_lib_prefix=no
22836 need_version=no
22837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22838 soname_spec='${libname}${release}${shared_ext}$major'
22839 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22840 shlibpath_var=LD_LIBRARY_PATH
22841 shlibpath_overrides_runpath=no
22842 hardcode_into_libs=yes
22845 irix5* | irix6* | nonstopux*)
22846 case $host_os in
22847 nonstopux*) version_type=nonstopux ;;
22849 if test "$lt_cv_prog_gnu_ld" = yes; then
22850 version_type=linux
22851 else
22852 version_type=irix
22853 fi ;;
22854 esac
22855 need_lib_prefix=no
22856 need_version=no
22857 soname_spec='${libname}${release}${shared_ext}$major'
22858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22859 case $host_os in
22860 irix5* | nonstopux*)
22861 libsuff= shlibsuff=
22864 case $LD in # libtool.m4 will add one of these switches to LD
22865 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22866 libsuff= shlibsuff= libmagic=32-bit;;
22867 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22868 libsuff=32 shlibsuff=N32 libmagic=N32;;
22869 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22870 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22871 *) libsuff= shlibsuff= libmagic=never-match;;
22872 esac
22874 esac
22875 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22876 shlibpath_overrides_runpath=no
22877 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22878 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22879 hardcode_into_libs=yes
22882 # No shared lib support for Linux oldld, aout, or coff.
22883 linux*oldld* | linux*aout* | linux*coff*)
22884 dynamic_linker=no
22887 # This must be Linux ELF.
22889 # uclinux* changes (here and below) have been submitted to the libtool
22890 # project, but have not yet been accepted: they are GCC-local changes
22891 # for the time being. (See
22892 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22893 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22894 version_type=linux
22895 need_lib_prefix=no
22896 need_version=no
22897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898 soname_spec='${libname}${release}${shared_ext}$major'
22899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22900 shlibpath_var=LD_LIBRARY_PATH
22901 shlibpath_overrides_runpath=no
22903 # Some binutils ld are patched to set DT_RUNPATH
22904 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22905 $as_echo_n "(cached) " >&6
22906 else
22907 lt_cv_shlibpath_overrides_runpath=no
22908 save_LDFLAGS=$LDFLAGS
22909 save_libdir=$libdir
22910 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22911 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22913 /* end confdefs.h. */
22916 main ()
22920 return 0;
22922 _ACEOF
22923 if ac_fn_cxx_try_link "$LINENO"; then :
22924 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22925 lt_cv_shlibpath_overrides_runpath=yes
22928 rm -f core conftest.err conftest.$ac_objext \
22929 conftest$ac_exeext conftest.$ac_ext
22930 LDFLAGS=$save_LDFLAGS
22931 libdir=$save_libdir
22935 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22937 # This implies no fast_install, which is unacceptable.
22938 # Some rework will be needed to allow for fast_install
22939 # before this can be enabled.
22940 hardcode_into_libs=yes
22942 # Append ld.so.conf contents to the search path
22943 if test -f /etc/ld.so.conf; then
22944 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' ' '`
22945 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22948 # We used to test for /lib/ld.so.1 and disable shared libraries on
22949 # powerpc, because MkLinux only supported shared libraries with the
22950 # GNU dynamic linker. Since this was broken with cross compilers,
22951 # most powerpc-linux boxes support dynamic linking these days and
22952 # people can always --disable-shared, the test was removed, and we
22953 # assume the GNU/Linux dynamic linker is in use.
22954 dynamic_linker='GNU/Linux ld.so'
22957 netbsd*)
22958 version_type=sunos
22959 need_lib_prefix=no
22960 need_version=no
22961 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22964 dynamic_linker='NetBSD (a.out) ld.so'
22965 else
22966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22967 soname_spec='${libname}${release}${shared_ext}$major'
22968 dynamic_linker='NetBSD ld.elf_so'
22970 shlibpath_var=LD_LIBRARY_PATH
22971 shlibpath_overrides_runpath=yes
22972 hardcode_into_libs=yes
22975 newsos6)
22976 version_type=linux
22977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22978 shlibpath_var=LD_LIBRARY_PATH
22979 shlibpath_overrides_runpath=yes
22982 *nto* | *qnx*)
22983 version_type=qnx
22984 need_lib_prefix=no
22985 need_version=no
22986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22987 soname_spec='${libname}${release}${shared_ext}$major'
22988 shlibpath_var=LD_LIBRARY_PATH
22989 shlibpath_overrides_runpath=no
22990 hardcode_into_libs=yes
22991 dynamic_linker='ldqnx.so'
22994 openbsd*)
22995 version_type=sunos
22996 sys_lib_dlsearch_path_spec="/usr/lib"
22997 need_lib_prefix=no
22998 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22999 case $host_os in
23000 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23001 *) need_version=no ;;
23002 esac
23003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23005 shlibpath_var=LD_LIBRARY_PATH
23006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23007 case $host_os in
23008 openbsd2.[89] | openbsd2.[89].*)
23009 shlibpath_overrides_runpath=no
23012 shlibpath_overrides_runpath=yes
23014 esac
23015 else
23016 shlibpath_overrides_runpath=yes
23020 os2*)
23021 libname_spec='$name'
23022 shrext_cmds=".dll"
23023 need_lib_prefix=no
23024 library_names_spec='$libname${shared_ext} $libname.a'
23025 dynamic_linker='OS/2 ld.exe'
23026 shlibpath_var=LIBPATH
23029 osf3* | osf4* | osf5*)
23030 version_type=osf
23031 need_lib_prefix=no
23032 need_version=no
23033 soname_spec='${libname}${release}${shared_ext}$major'
23034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23035 shlibpath_var=LD_LIBRARY_PATH
23036 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23037 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23040 rdos*)
23041 dynamic_linker=no
23044 solaris*)
23045 version_type=linux
23046 need_lib_prefix=no
23047 need_version=no
23048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23049 soname_spec='${libname}${release}${shared_ext}$major'
23050 shlibpath_var=LD_LIBRARY_PATH
23051 shlibpath_overrides_runpath=yes
23052 hardcode_into_libs=yes
23053 # ldd complains unless libraries are executable
23054 postinstall_cmds='chmod +x $lib'
23057 sunos4*)
23058 version_type=sunos
23059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23061 shlibpath_var=LD_LIBRARY_PATH
23062 shlibpath_overrides_runpath=yes
23063 if test "$with_gnu_ld" = yes; then
23064 need_lib_prefix=no
23066 need_version=yes
23069 sysv4 | sysv4.3*)
23070 version_type=linux
23071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23072 soname_spec='${libname}${release}${shared_ext}$major'
23073 shlibpath_var=LD_LIBRARY_PATH
23074 case $host_vendor in
23075 sni)
23076 shlibpath_overrides_runpath=no
23077 need_lib_prefix=no
23078 runpath_var=LD_RUN_PATH
23080 siemens)
23081 need_lib_prefix=no
23083 motorola)
23084 need_lib_prefix=no
23085 need_version=no
23086 shlibpath_overrides_runpath=no
23087 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23089 esac
23092 sysv4*MP*)
23093 if test -d /usr/nec ;then
23094 version_type=linux
23095 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23096 soname_spec='$libname${shared_ext}.$major'
23097 shlibpath_var=LD_LIBRARY_PATH
23101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23102 version_type=freebsd-elf
23103 need_lib_prefix=no
23104 need_version=no
23105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23106 soname_spec='${libname}${release}${shared_ext}$major'
23107 shlibpath_var=LD_LIBRARY_PATH
23108 shlibpath_overrides_runpath=yes
23109 hardcode_into_libs=yes
23110 if test "$with_gnu_ld" = yes; then
23111 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23112 else
23113 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23114 case $host_os in
23115 sco3.2v5*)
23116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23118 esac
23120 sys_lib_dlsearch_path_spec='/usr/lib'
23123 tpf*)
23124 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23125 version_type=linux
23126 need_lib_prefix=no
23127 need_version=no
23128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23129 shlibpath_var=LD_LIBRARY_PATH
23130 shlibpath_overrides_runpath=no
23131 hardcode_into_libs=yes
23134 uts4*)
23135 version_type=linux
23136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23137 soname_spec='${libname}${release}${shared_ext}$major'
23138 shlibpath_var=LD_LIBRARY_PATH
23141 # Shared libraries for VwWorks, >= 7 only at this stage
23142 # and (fpic) still incompatible with "large" code models
23143 # in a few configurations. Only for RTP mode in any case,
23144 # and upon explicit request at configure time.
23145 vxworks7*)
23146 dynamic_linker=no
23147 case ${with_multisubdir}-${enable_shared} in
23148 *large*)
23150 *mrtp*-yes)
23151 version_type=linux
23152 need_lib_prefix=no
23153 need_version=no
23154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23155 soname_spec='${libname}${release}${shared_ext}$major'
23156 dynamic_linker="$host_os module_loader"
23158 esac
23161 dynamic_linker=no
23163 esac
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23165 $as_echo "$dynamic_linker" >&6; }
23166 test "$dynamic_linker" = no && can_build_shared=no
23168 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23169 if test "$GCC" = yes; then
23170 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23173 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23174 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23176 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23177 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23218 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23219 hardcode_action_CXX=
23220 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23221 test -n "$runpath_var_CXX" ||
23222 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23224 # We can hardcode non-existent directories.
23225 if test "$hardcode_direct_CXX" != no &&
23226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23227 # have to relink, otherwise we might link with an installed library
23228 # when we should be linking with a yet-to-be-installed one
23229 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23230 test "$hardcode_minus_L_CXX" != no; then
23231 # Linking always hardcodes the temporary library directory.
23232 hardcode_action_CXX=relink
23233 else
23234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23235 hardcode_action_CXX=immediate
23237 else
23238 # We cannot hardcode anything, or else we can only hardcode existing
23239 # directories.
23240 hardcode_action_CXX=unsupported
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23243 $as_echo "$hardcode_action_CXX" >&6; }
23245 if test "$hardcode_action_CXX" = relink ||
23246 test "$inherit_rpath_CXX" = yes; then
23247 # Fast installation is not supported
23248 enable_fast_install=no
23249 elif test "$shlibpath_overrides_runpath" = yes ||
23250 test "$enable_shared" = no; then
23251 # Fast installation is not necessary
23252 enable_fast_install=needless
23261 fi # test -n "$compiler"
23263 CC=$lt_save_CC
23264 LDCXX=$LD
23265 LD=$lt_save_LD
23266 GCC=$lt_save_GCC
23267 with_gnu_ld=$lt_save_with_gnu_ld
23268 lt_cv_path_LDCXX=$lt_cv_path_LD
23269 lt_cv_path_LD=$lt_save_path_LD
23270 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23271 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23272 fi # test "$_lt_caught_CXX_error" != yes
23274 ac_ext=cpp
23275 ac_cpp='$CXXCPP $CPPFLAGS'
23276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23295 # Only expand once:
23301 # Identify the assembler which will work hand-in-glove with the newly
23302 # built GCC, so that we can examine its features. This is the assembler
23303 # which will be driven by the driver program.
23305 # If build != host, and we aren't building gas in-tree, we identify a
23306 # build->target assembler and hope that it will have the same features
23307 # as the host->target assembler we'll be using.
23308 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23310 if ${gcc_cv_as+:} false; then :
23312 else
23314 if test -x "$DEFAULT_ASSEMBLER"; then
23315 gcc_cv_as="$DEFAULT_ASSEMBLER"
23316 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23317 && test -f ../gas/Makefile \
23318 && test x$build = x$host; then
23319 gcc_cv_as=../gas/as-new$build_exeext
23320 elif test -x as$build_exeext; then
23321 # Build using assembler in the current directory.
23322 gcc_cv_as=./as$build_exeext
23323 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23324 gcc_cv_as="$AS_FOR_TARGET"
23325 else
23326 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23327 set dummy $AS_FOR_TARGET; ac_word=$2
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23329 $as_echo_n "checking for $ac_word... " >&6; }
23330 if ${ac_cv_path_gcc_cv_as+:} false; then :
23331 $as_echo_n "(cached) " >&6
23332 else
23333 case $gcc_cv_as in
23334 [\\/]* | ?:[\\/]*)
23335 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23339 for as_dir in $PATH
23341 IFS=$as_save_IFS
23342 test -z "$as_dir" && as_dir=.
23343 for ac_exec_ext in '' $ac_executable_extensions; do
23344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23345 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23347 break 2
23349 done
23350 done
23351 IFS=$as_save_IFS
23354 esac
23356 gcc_cv_as=$ac_cv_path_gcc_cv_as
23357 if test -n "$gcc_cv_as"; then
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23359 $as_echo "$gcc_cv_as" >&6; }
23360 else
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23362 $as_echo "no" >&6; }
23369 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23371 case "$ORIGINAL_AS_FOR_TARGET" in
23372 ./as | ./as$build_exeext) ;;
23373 *) ac_config_files="$ac_config_files as:exec-tool.in"
23375 esac
23377 default_ld=
23378 # Check whether --enable-ld was given.
23379 if test "${enable_ld+set}" = set; then :
23380 enableval=$enable_ld; case "${enableval}" in
23382 default_ld=ld.gold
23384 esac
23388 install_gold_as_default=no
23389 # Check whether --enable-gold was given.
23390 if test "${enable_gold+set}" = set; then :
23391 enableval=$enable_gold; case "${enableval}" in
23392 default)
23393 install_gold_as_default=yes
23395 yes)
23396 if test x${default_ld} != x; then
23397 install_gold_as_default=yes
23403 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23405 esac
23409 # Identify the linker which will work hand-in-glove with the newly
23410 # built GCC, so that we can examine its features. This is the linker
23411 # which will be driven by the driver program.
23413 # If build != host, and we aren't building gas in-tree, we identify a
23414 # build->target linker and hope that it will have the same features
23415 # as the host->target linker we'll be using.
23416 gcc_cv_gld_major_version=
23417 gcc_cv_gld_minor_version=
23418 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23419 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23420 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23422 if ${gcc_cv_ld+:} false; then :
23424 else
23426 if test -x "$DEFAULT_LINKER"; then
23427 gcc_cv_ld="$DEFAULT_LINKER"
23428 elif test $install_gold_as_default = yes \
23429 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23430 && test -f ../gold/Makefile \
23431 && test x$build = x$host; then
23432 gcc_cv_ld=../gold/ld-new$build_exeext
23433 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23434 && test -f ../ld/Makefile \
23435 && test x$build = x$host; then
23436 gcc_cv_ld=../ld/ld-new$build_exeext
23437 elif test -x collect-ld$build_exeext; then
23438 # Build using linker in the current directory.
23439 gcc_cv_ld=./collect-ld$build_exeext
23440 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23441 gcc_cv_ld="$LD_FOR_TARGET"
23442 else
23443 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23444 set dummy $LD_FOR_TARGET; ac_word=$2
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23446 $as_echo_n "checking for $ac_word... " >&6; }
23447 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23448 $as_echo_n "(cached) " >&6
23449 else
23450 case $gcc_cv_ld in
23451 [\\/]* | ?:[\\/]*)
23452 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23456 for as_dir in $PATH
23458 IFS=$as_save_IFS
23459 test -z "$as_dir" && as_dir=.
23460 for ac_exec_ext in '' $ac_executable_extensions; do
23461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23462 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23464 break 2
23466 done
23467 done
23468 IFS=$as_save_IFS
23471 esac
23473 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23474 if test -n "$gcc_cv_ld"; then
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23476 $as_echo "$gcc_cv_ld" >&6; }
23477 else
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23479 $as_echo "no" >&6; }
23486 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23487 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23488 # if the PLUGIN_LD is set ld-new, just have it as ld
23489 # as that is the installed named.
23490 if test x$PLUGIN_LD_SUFFIX = xld-new \
23491 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23492 PLUGIN_LD_SUFFIX=ld
23495 # Check whether --with-plugin-ld was given.
23496 if test "${with_plugin_ld+set}" = set; then :
23497 withval=$with_plugin_ld; if test x"$withval" != x; then
23498 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23499 PLUGIN_LD_SUFFIX="$withval"
23505 cat >>confdefs.h <<_ACEOF
23506 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23507 _ACEOF
23510 # Check to see if we are using gold instead of ld
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23512 $as_echo_n "checking whether we are using gold... " >&6; }
23513 ld_is_gold=no
23514 if test x$gcc_cv_ld != x; then
23515 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23516 | grep "GNU gold" > /dev/null; then
23517 ld_is_gold=yes
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23521 $as_echo "$ld_is_gold" >&6; }
23523 # Check to see if we are using mold instead of ld
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23525 $as_echo_n "checking whether we are using mold... " >&6; }
23526 ld_is_mold=no
23527 if test x$gcc_cv_ld != x; then
23528 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23529 | grep "mold" > /dev/null; then
23530 ld_is_mold=yes
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23534 $as_echo "$ld_is_mold" >&6; }
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23538 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23539 # Check to see if default ld is not gold, but gold is
23540 # available and has support for split stack. If gcc was configured
23541 # with gold then no checking is done.
23543 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23545 # For platforms other than powerpc64*, enable as appropriate.
23547 gold_non_default=no
23548 ld_gold=`which ${gcc_cv_ld}.gold`
23549 # Make sure this gold has minimal split stack support
23550 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23551 ld_vers=`$ld_gold --version | sed 1q`
23552 gold_vers=`echo $ld_vers | sed -n \
23553 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23554 case $target in
23555 # check that the gold version contains the complete split stack support
23556 # on powerpc64 big and little endian
23557 powerpc64*-*-*)
23558 case "$gold_vers" in
23559 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23561 *) gold_non_default=no
23563 esac
23565 esac
23567 if test $gold_non_default = yes; then
23569 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23574 $as_echo "$gold_non_default" >&6; }
23576 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23578 case "$ORIGINAL_LD_FOR_TARGET" in
23579 ./collect-ld | ./collect-ld$build_exeext) ;;
23580 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23582 esac
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23585 $as_echo_n "checking what linker to use... " >&6; }
23586 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23587 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23588 # Single tree build which includes ld. We want to prefer it
23589 # over whatever linker top-level may have detected, since
23590 # we'll use what we're building after installation anyway.
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23592 $as_echo "newly built ld" >&6; }
23593 in_tree_ld=yes
23594 in_tree_ld_is_elf=no
23595 if (grep 'EMUL = .*elf' ../ld/Makefile \
23596 || grep 'EMUL = .*linux' ../ld/Makefile \
23597 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23598 in_tree_ld_is_elf=yes
23599 elif test "$ld_is_gold" = yes; then
23600 in_tree_ld_is_elf=yes
23602 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
23604 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23605 if test x$gcc_cv_gld_version != x; then
23606 break
23608 done
23609 case $gcc_cv_gld_version in
23610 VERSION=[0-9]*) ;;
23611 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23612 esac
23613 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23614 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23615 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23616 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23617 else
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23619 $as_echo "$gcc_cv_ld" >&6; }
23620 in_tree_ld=no
23621 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23622 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23623 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23629 # Figure out what nm we will be using.
23630 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23631 if ${gcc_cv_nm+:} false; then :
23633 else
23635 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23636 && test -f ../binutils/Makefile \
23637 && test x$build = x$host; then
23638 gcc_cv_nm=../binutils/nm-new$build_exeext
23639 elif test -x nm$build_exeext; then
23640 gcc_cv_nm=./nm$build_exeext
23641 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23642 gcc_cv_nm="$NM_FOR_TARGET"
23643 else
23644 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23645 set dummy $NM_FOR_TARGET; ac_word=$2
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23647 $as_echo_n "checking for $ac_word... " >&6; }
23648 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23649 $as_echo_n "(cached) " >&6
23650 else
23651 case $gcc_cv_nm in
23652 [\\/]* | ?:[\\/]*)
23653 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23657 for as_dir in $PATH
23659 IFS=$as_save_IFS
23660 test -z "$as_dir" && as_dir=.
23661 for ac_exec_ext in '' $ac_executable_extensions; do
23662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23663 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23665 break 2
23667 done
23668 done
23669 IFS=$as_save_IFS
23672 esac
23674 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23675 if test -n "$gcc_cv_nm"; then
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23677 $as_echo "$gcc_cv_nm" >&6; }
23678 else
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23680 $as_echo "no" >&6; }
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23688 $as_echo_n "checking what nm to use... " >&6; }
23689 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23690 # Single tree build which includes binutils.
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23692 $as_echo "newly built nm" >&6; }
23693 in_tree_nm=yes
23694 else
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23696 $as_echo "$gcc_cv_nm" >&6; }
23697 in_tree_nm=no
23700 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23702 case "$ORIGINAL_NM_FOR_TARGET" in
23703 ./nm | ./nm$build_exeext) ;;
23704 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23706 esac
23709 # Figure out what objdump we will be using.
23710 if ${gcc_cv_objdump+:} false; then :
23712 else
23714 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23715 && test -f ../binutils/Makefile \
23716 && test x$build = x$host; then
23717 # Single tree build which includes binutils.
23718 gcc_cv_objdump=../binutils/objdump$build_exeext
23719 elif test -x objdump$build_exeext; then
23720 gcc_cv_objdump=./objdump$build_exeext
23721 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23722 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23723 else
23724 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23725 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23727 $as_echo_n "checking for $ac_word... " >&6; }
23728 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23729 $as_echo_n "(cached) " >&6
23730 else
23731 case $gcc_cv_objdump in
23732 [\\/]* | ?:[\\/]*)
23733 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23737 for as_dir in $PATH
23739 IFS=$as_save_IFS
23740 test -z "$as_dir" && as_dir=.
23741 for ac_exec_ext in '' $ac_executable_extensions; do
23742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23743 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23745 break 2
23747 done
23748 done
23749 IFS=$as_save_IFS
23752 esac
23754 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23755 if test -n "$gcc_cv_objdump"; then
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23757 $as_echo "$gcc_cv_objdump" >&6; }
23758 else
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23760 $as_echo "no" >&6; }
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23768 $as_echo_n "checking what objdump to use... " >&6; }
23769 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23770 # Single tree build which includes binutils.
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23772 $as_echo "newly built objdump" >&6; }
23773 elif test x$gcc_cv_objdump = x; then
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23775 $as_echo "not found" >&6; }
23776 else
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23778 $as_echo "$gcc_cv_objdump" >&6; }
23781 # Figure out what readelf we will be using.
23782 if ${gcc_cv_readelf+:} false; then :
23784 else
23786 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23787 && test -f ../binutils/Makefile \
23788 && test x$build = x$host; then
23789 # Single tree build which includes binutils.
23790 gcc_cv_readelf=../binutils/readelf$build_exeext
23791 elif test -x readelf$build_exeext; then
23792 gcc_cv_readelf=./readelf$build_exeext
23793 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23794 gcc_cv_readelf="$READELF_FOR_TARGET"
23795 else
23796 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23797 set dummy $READELF_FOR_TARGET; ac_word=$2
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23799 $as_echo_n "checking for $ac_word... " >&6; }
23800 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23801 $as_echo_n "(cached) " >&6
23802 else
23803 case $gcc_cv_readelf in
23804 [\\/]* | ?:[\\/]*)
23805 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23809 for as_dir in $PATH
23811 IFS=$as_save_IFS
23812 test -z "$as_dir" && as_dir=.
23813 for ac_exec_ext in '' $ac_executable_extensions; do
23814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23815 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23817 break 2
23819 done
23820 done
23821 IFS=$as_save_IFS
23824 esac
23826 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23827 if test -n "$gcc_cv_readelf"; then
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23829 $as_echo "$gcc_cv_readelf" >&6; }
23830 else
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23832 $as_echo "no" >&6; }
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23840 $as_echo_n "checking what readelf to use... " >&6; }
23841 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23842 # Single tree build which includes binutils.
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23844 $as_echo "newly built readelf" >&6; }
23845 elif test x$gcc_cv_readelf = x; then
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23847 $as_echo "not found" >&6; }
23848 else
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23850 $as_echo "$gcc_cv_readelf" >&6; }
23853 # Figure out what otool we will be using.
23854 if ${gcc_cv_otool+:} false; then :
23856 else
23858 if test -x otool$build_exeext; then
23859 gcc_cv_otool=./otool$build_exeext
23860 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23861 gcc_cv_otool="$OTOOL_FOR_TARGET"
23862 else
23863 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23864 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23866 $as_echo_n "checking for $ac_word... " >&6; }
23867 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23868 $as_echo_n "(cached) " >&6
23869 else
23870 case $gcc_cv_otool in
23871 [\\/]* | ?:[\\/]*)
23872 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23876 for as_dir in $PATH
23878 IFS=$as_save_IFS
23879 test -z "$as_dir" && as_dir=.
23880 for ac_exec_ext in '' $ac_executable_extensions; do
23881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23882 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23884 break 2
23886 done
23887 done
23888 IFS=$as_save_IFS
23891 esac
23893 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23894 if test -n "$gcc_cv_otool"; then
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23896 $as_echo "$gcc_cv_otool" >&6; }
23897 else
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23899 $as_echo "no" >&6; }
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23907 $as_echo_n "checking what otool to use... " >&6; }
23908 if test x$gcc_cv_otool = x; then
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23910 $as_echo "not found" >&6; }
23911 else
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23913 $as_echo "$gcc_cv_otool" >&6; }
23916 # Figure out the dsymutil we will use.
23917 if ${gcc_cv_dsymutil+:} false; then :
23919 else
23921 if test -x "$DEFAULT_DSYMUTIL"; then
23922 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23923 elif test -x dsymutil$build_exeext; then
23924 gcc_cv_dsymutil=./dsymutil$build_exeext
23925 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23926 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23927 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23928 gcc_cv_dsymutil=$DSYMUTIL
23929 else
23930 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23931 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23933 $as_echo_n "checking for $ac_word... " >&6; }
23934 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23935 $as_echo_n "(cached) " >&6
23936 else
23937 case $gcc_cv_dsymutil in
23938 [\\/]* | ?:[\\/]*)
23939 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23943 for as_dir in $PATH
23945 IFS=$as_save_IFS
23946 test -z "$as_dir" && as_dir=.
23947 for ac_exec_ext in '' $ac_executable_extensions; do
23948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23949 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23951 break 2
23953 done
23954 done
23955 IFS=$as_save_IFS
23958 esac
23960 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23961 if test -n "$gcc_cv_dsymutil"; then
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23963 $as_echo "$gcc_cv_dsymutil" >&6; }
23964 else
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23966 $as_echo "no" >&6; }
23973 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23975 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23976 ./dsymutil | ./dsymutil$build_exeext) ;;
23977 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23979 esac
23981 # Figure out what assembler alignment features are present.
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23983 $as_echo_n "checking assembler flags... " >&6; }
23984 if ${gcc_cv_as_flags+:} false; then :
23985 $as_echo_n "(cached) " >&6
23986 else
23987 case "$target" in
23988 i[34567]86-*-linux*)
23989 gcc_cv_as_flags=--32
23991 x86_64-*-linux-gnux32)
23992 gcc_cv_as_flags=--x32
23994 x86_64-*-linux*)
23995 gcc_cv_as_flags=--64
23997 powerpc*-*-darwin*)
23998 gcc_cv_as_flags="-arch ppc"
24001 gcc_cv_as_flags=" "
24003 esac
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
24006 $as_echo "$gcc_cv_as_flags" >&6; }
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
24009 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
24010 if ${gcc_cv_as_balign_and_p2align+:} false; then :
24011 $as_echo_n "(cached) " >&6
24012 else
24013 gcc_cv_as_balign_and_p2align=no
24014 if test x$gcc_cv_as != x; then
24015 $as_echo '.balign 4
24016 .p2align 2' > conftest.s
24017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24019 (eval $ac_try) 2>&5
24020 ac_status=$?
24021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24022 test $ac_status = 0; }; }
24023 then
24024 gcc_cv_as_balign_and_p2align=yes
24025 else
24026 echo "configure: failed program was" >&5
24027 cat conftest.s >&5
24029 rm -f conftest.o conftest.s
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
24033 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
24034 if test $gcc_cv_as_balign_and_p2align = yes; then
24036 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
24042 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
24043 if ${gcc_cv_as_max_skip_p2align+:} false; then :
24044 $as_echo_n "(cached) " >&6
24045 else
24046 gcc_cv_as_max_skip_p2align=no
24047 if test x$gcc_cv_as != x; then
24048 $as_echo '.p2align 4,,7' > conftest.s
24049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24051 (eval $ac_try) 2>&5
24052 ac_status=$?
24053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24054 test $ac_status = 0; }; }
24055 then
24056 gcc_cv_as_max_skip_p2align=yes
24057 else
24058 echo "configure: failed program was" >&5
24059 cat conftest.s >&5
24061 rm -f conftest.o conftest.s
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
24065 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
24066 if test $gcc_cv_as_max_skip_p2align = yes; then
24068 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
24074 $as_echo_n "checking assembler for .literal16... " >&6; }
24075 if ${gcc_cv_as_literal16+:} false; then :
24076 $as_echo_n "(cached) " >&6
24077 else
24078 gcc_cv_as_literal16=no
24079 if test x$gcc_cv_as != x; then
24080 $as_echo '.literal16' > conftest.s
24081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24083 (eval $ac_try) 2>&5
24084 ac_status=$?
24085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24086 test $ac_status = 0; }; }
24087 then
24088 gcc_cv_as_literal16=yes
24089 else
24090 echo "configure: failed program was" >&5
24091 cat conftest.s >&5
24093 rm -f conftest.o conftest.s
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
24097 $as_echo "$gcc_cv_as_literal16" >&6; }
24098 if test $gcc_cv_as_literal16 = yes; then
24100 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24106 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24107 if ${gcc_cv_as_subsection_m1+:} false; then :
24108 $as_echo_n "(cached) " >&6
24109 else
24110 gcc_cv_as_subsection_m1=no
24111 if test x$gcc_cv_as != x; then
24112 $as_echo 'conftest_label1: .word 0
24113 .subsection -1
24114 conftest_label2: .word 0
24115 .previous' > conftest.s
24116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24118 (eval $ac_try) 2>&5
24119 ac_status=$?
24120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24121 test $ac_status = 0; }; }
24122 then
24123 if test x$gcc_cv_nm != x; then
24124 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
24125 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
24126 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
24127 then :
24128 else gcc_cv_as_subsection_m1=yes
24130 rm -f conftest.nm1 conftest.nm2
24132 else
24133 echo "configure: failed program was" >&5
24134 cat conftest.s >&5
24136 rm -f conftest.o conftest.s
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24140 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24141 if test $gcc_cv_as_subsection_m1 = yes; then
24143 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24149 $as_echo_n "checking assembler for .weak... " >&6; }
24150 if ${gcc_cv_as_weak+:} false; then :
24151 $as_echo_n "(cached) " >&6
24152 else
24153 gcc_cv_as_weak=no
24154 if test x$gcc_cv_as != x; then
24155 $as_echo ' .weak foobar' > conftest.s
24156 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24158 (eval $ac_try) 2>&5
24159 ac_status=$?
24160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24161 test $ac_status = 0; }; }
24162 then
24163 gcc_cv_as_weak=yes
24164 else
24165 echo "configure: failed program was" >&5
24166 cat conftest.s >&5
24168 rm -f conftest.o conftest.s
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24172 $as_echo "$gcc_cv_as_weak" >&6; }
24173 if test $gcc_cv_as_weak = yes; then
24175 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24181 $as_echo_n "checking assembler for .weakref... " >&6; }
24182 if ${gcc_cv_as_weakref+:} false; then :
24183 $as_echo_n "(cached) " >&6
24184 else
24185 gcc_cv_as_weakref=no
24186 if test x$gcc_cv_as != x; then
24187 $as_echo ' .weakref foobar, barfnot' > conftest.s
24188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24190 (eval $ac_try) 2>&5
24191 ac_status=$?
24192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24193 test $ac_status = 0; }; }
24194 then
24195 gcc_cv_as_weakref=yes
24196 else
24197 echo "configure: failed program was" >&5
24198 cat conftest.s >&5
24200 rm -f conftest.o conftest.s
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24204 $as_echo "$gcc_cv_as_weakref" >&6; }
24205 if test $gcc_cv_as_weakref = yes; then
24207 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24213 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24214 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24215 $as_echo_n "(cached) " >&6
24216 else
24217 gcc_cv_as_nsubspa_comdat=no
24218 if test x$gcc_cv_as != x; then
24219 $as_echo ' .SPACE $TEXT$
24220 .NSUBSPA $CODE$,COMDAT' > conftest.s
24221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24223 (eval $ac_try) 2>&5
24224 ac_status=$?
24225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24226 test $ac_status = 0; }; }
24227 then
24228 gcc_cv_as_nsubspa_comdat=yes
24229 else
24230 echo "configure: failed program was" >&5
24231 cat conftest.s >&5
24233 rm -f conftest.o conftest.s
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24237 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24238 if test $gcc_cv_as_nsubspa_comdat = yes; then
24240 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24245 # .hidden needs to be supported in both the assembler and the linker,
24246 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24247 # This is irritatingly difficult to feature test for; we have to check the
24248 # date string after the version number. If we've got an in-tree
24249 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24250 # to be safe.
24251 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24252 case "${target}" in
24253 *-*-aix*)
24254 conftest_s=' .globl foobar,hidden'
24257 conftest_s=' .hidden foobar
24258 foobar:'
24260 esac
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24262 $as_echo_n "checking assembler for .hidden... " >&6; }
24263 if ${gcc_cv_as_hidden+:} false; then :
24264 $as_echo_n "(cached) " >&6
24265 else
24266 gcc_cv_as_hidden=no
24267 if test x$gcc_cv_as != x; then
24268 $as_echo "$conftest_s" > conftest.s
24269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24271 (eval $ac_try) 2>&5
24272 ac_status=$?
24273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24274 test $ac_status = 0; }; }
24275 then
24276 gcc_cv_as_hidden=yes
24277 else
24278 echo "configure: failed program was" >&5
24279 cat conftest.s >&5
24281 rm -f conftest.o conftest.s
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24285 $as_echo "$gcc_cv_as_hidden" >&6; }
24288 case "${target}" in
24289 *-*-darwin*)
24290 # Darwin as has some visibility support, though with a different syntax.
24291 gcc_cv_as_hidden=yes
24293 esac
24295 # gnu_indirect_function type is an extension proposed at
24296 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24297 # selection of function implementation
24298 # Check whether --enable-gnu-indirect-function was given.
24299 if test "${enable_gnu_indirect_function+set}" = set; then :
24300 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24301 yes | no) ;;
24302 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24303 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24304 esac
24305 else
24306 enable_gnu_indirect_function="$default_gnu_indirect_function"
24310 case "${target}" in
24311 riscv*-*-linux*)
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24313 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24314 cat > conftest.s <<EOF
24315 .text
24316 .type foo_resolver, @function
24317 foo_resolver:
24319 .size foo_resolver, .-foo_resolver
24321 .globl foo
24322 .type foo, %gnu_indirect_function
24323 .set foo, foo_resolver
24325 .globl bar
24326 .type bar, @function
24327 bar:
24328 call foo
24330 .size bar, .-bar
24332 if test x$gcc_cv_as != x \
24333 && test x$gcc_cv_ld != x \
24334 && test x$gcc_cv_readelf != x \
24335 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24336 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24337 && $gcc_cv_readelf --relocs --wide conftest \
24338 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24339 enable_gnu_indirect_function=yes
24341 rm -f conftest conftest.o conftest.s
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24343 $as_echo "$enable_gnu_indirect_function" >&6; }
24345 esac
24347 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24349 cat >>confdefs.h <<_ACEOF
24350 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24351 _ACEOF
24355 if test $in_tree_ld != yes ; then
24356 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24357 if echo "$ld_ver" | grep GNU > /dev/null; then
24358 if test x"$ld_is_gold" = xyes; then
24359 # GNU gold --version looks like this:
24361 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24363 # We extract the binutils version which is more familiar and specific
24364 # than the gold version.
24365 ld_vers=`echo $ld_ver | sed -n \
24366 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24367 else
24368 # GNU ld --version looks like this:
24370 # GNU ld (GNU Binutils) 2.21.51.20110225
24371 ld_vers=`echo $ld_ver | sed -n \
24372 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24374 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'`
24375 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24376 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24377 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24378 else
24379 case "${target}" in
24380 *-*-solaris2*)
24381 # Solaris 2 ld -V output looks like this for a regular version:
24383 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24385 # but test versions add stuff at the end:
24387 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24389 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24390 # numbers can be used in ld.so.1 feature checks even if a different
24391 # linker is configured.
24392 ld_ver=`$gcc_cv_ld -V 2>&1`
24393 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24394 ld_vers=`echo $ld_ver | sed -n \
24395 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24396 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24397 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24400 esac
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24405 $as_echo_n "checking linker for .hidden support... " >&6; }
24406 if ${gcc_cv_ld_hidden+:} false; then :
24407 $as_echo_n "(cached) " >&6
24408 else
24409 if test $in_tree_ld = yes ; then
24410 gcc_cv_ld_hidden=no
24411 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 \
24412 && test $in_tree_ld_is_elf = yes; then
24413 gcc_cv_ld_hidden=yes
24415 else
24416 gcc_cv_ld_hidden=yes
24417 if test x"$ld_is_gold" = xyes; then
24419 elif test x"$ld_is_mold" = xyes; then
24421 elif echo "$ld_ver" | grep GNU > /dev/null; then
24422 if test 0"$ld_date" -lt 20020404; then
24423 if test -n "$ld_date"; then
24424 # If there was date string, but was earlier than 2002-04-04, fail
24425 gcc_cv_ld_hidden=no
24426 elif test -z "$ld_vers"; then
24427 # If there was no date string nor ld version number, something is wrong
24428 gcc_cv_ld_hidden=no
24429 else
24430 test -z "$ld_vers_patch" && ld_vers_patch=0
24431 if test "$ld_vers_major" -lt 2; then
24432 gcc_cv_ld_hidden=no
24433 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24434 gcc_cv_ld_hidden="no"
24435 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24436 gcc_cv_ld_hidden=no
24440 else
24441 case "${target}" in
24442 *-*-aix[789]*)
24443 gcc_cv_ld_hidden=yes
24445 *-*-darwin*)
24446 # Darwin ld has some visibility support.
24447 gcc_cv_ld_hidden=yes
24449 hppa64*-*-hpux* | ia64*-*-hpux*)
24450 gcc_cv_ld_hidden=yes
24452 *-*-solaris2*)
24453 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24454 # .symbolic was only added in Solaris 9 12/02.
24455 gcc_cv_ld_hidden=yes
24458 gcc_cv_ld_hidden=no
24460 esac
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24465 $as_echo "$gcc_cv_ld_hidden" >&6; }
24466 libgcc_visibility=no
24469 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24470 libgcc_visibility=yes
24472 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24477 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24478 gcc_cv_ld_ro_rw_mix=unknown
24479 if test $in_tree_ld = yes ; then
24480 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 \
24481 && test $in_tree_ld_is_elf = yes; then
24482 gcc_cv_ld_ro_rw_mix=read-write
24484 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24485 echo '.section myfoosect, "a"' > conftest1.s
24486 echo '.section myfoosect, "aw"' > conftest2.s
24487 echo '.byte 1' >> conftest2.s
24488 echo '.section myfoosect, "a"' > conftest3.s
24489 echo '.byte 0' >> conftest3.s
24490 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24491 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24492 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
24493 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24494 conftest2.o conftest3.o > /dev/null 2>&1 \
24495 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
24496 conftest2.o conftest3.o > /dev/null 2>&1; then
24497 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24498 | sed -e '/myfoosect/!d' -e N`
24499 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24500 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24501 gcc_cv_ld_ro_rw_mix=read-only
24502 else
24503 gcc_cv_ld_ro_rw_mix=read-write
24508 rm -f conftest.* conftest[123].*
24510 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24512 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24516 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24518 # Check whether --enable-initfini-array was given.
24519 if test "${enable_initfini_array+set}" = set; then :
24520 enableval=$enable_initfini_array;
24521 else
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24524 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24525 if ${gcc_cv_initfini_array+:} false; then :
24526 $as_echo_n "(cached) " >&6
24527 else
24528 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24529 case "${target}" in
24530 ia64-*)
24531 if test "$cross_compiling" = yes; then :
24532 gcc_cv_initfini_array=no
24533 else
24534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24535 /* end confdefs.h. */
24537 #ifndef __ELF__
24538 #error Not an ELF OS
24539 #endif
24540 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24541 if it can be used. */
24542 static int x = -1;
24543 int main (void) { return x; }
24544 int foo (void) { x = 0; }
24545 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24547 _ACEOF
24548 if ac_fn_cxx_try_run "$LINENO"; then :
24549 gcc_cv_initfini_array=yes
24550 else
24551 gcc_cv_initfini_array=no
24553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24554 conftest.$ac_objext conftest.beam conftest.$ac_ext
24558 gcc_cv_initfini_array=no
24559 if test $in_tree_ld = yes ; then
24560 if test "$gcc_cv_gld_major_version" -eq 2 \
24561 -a "$gcc_cv_gld_minor_version" -ge 22 \
24562 -o "$gcc_cv_gld_major_version" -gt 2 \
24563 && test $in_tree_ld_is_elf = yes; then
24564 gcc_cv_initfini_array=yes
24566 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24567 case $target:$gas in
24568 *:yes)
24569 sh_flags='"a"'
24570 sh_type='%progbits'
24572 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24573 sh_flags='"a"'
24574 sh_type='@progbits'
24576 sparc*-*-solaris2*:no)
24577 sh_flags='#alloc'
24578 sh_type='#progbits'
24579 sh_quote='"'
24581 esac
24582 case "$target:$gnu_ld" in
24583 *:yes)
24584 cat > conftest.s <<EOF
24585 .section .dtors,$sh_flags,$sh_type
24586 .balign 4
24587 .byte 'A', 'A', 'A', 'A'
24588 .section .ctors,$sh_flags,$sh_type
24589 .balign 4
24590 .byte 'B', 'B', 'B', 'B'
24591 .section .fini_array.65530,$sh_flags,$sh_type
24592 .balign 4
24593 .byte 'C', 'C', 'C', 'C'
24594 .section .init_array.65530,$sh_flags,$sh_type
24595 .balign 4
24596 .byte 'D', 'D', 'D', 'D'
24597 .section .dtors.64528,$sh_flags,$sh_type
24598 .balign 4
24599 .byte 'E', 'E', 'E', 'E'
24600 .section .ctors.64528,$sh_flags,$sh_type
24601 .balign 4
24602 .byte 'F', 'F', 'F', 'F'
24603 .section .fini_array.01005,$sh_flags,$sh_type
24604 .balign 4
24605 .byte 'G', 'G', 'G', 'G'
24606 .section .init_array.01005,$sh_flags,$sh_type
24607 .balign 4
24608 .byte 'H', 'H', 'H', 'H'
24609 .text
24610 .globl _start
24611 _start:
24613 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24614 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24615 && $gcc_cv_objdump -s -j .init_array conftest \
24616 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24617 && $gcc_cv_objdump -s -j .fini_array conftest \
24618 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24619 gcc_cv_initfini_array=yes
24622 *-*-solaris2*:no)
24623 # When Solaris ld added constructor priority support, it was
24624 # decided to only handle .init_array.N/.fini_array.N since
24625 # there was no need for backwards compatibility with
24626 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24627 # sections with correct execution order resp. to
24628 # .init_array/.fini_array, while gld merges them into
24629 # .init_array/.fini_array.
24630 cat > conftest.s <<EOF
24631 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24632 .align 4
24633 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24634 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24635 .align 4
24636 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24637 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24638 .align 4
24639 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24640 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24641 .align 4
24642 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24643 .text
24644 .globl _start
24645 _start:
24647 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24648 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24649 && $gcc_cv_objdump -s -j .init_array conftest \
24650 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24651 && $gcc_cv_objdump -s -j .fini_array conftest \
24652 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24653 gcc_cv_initfini_array=yes
24656 esac
24657 rm -f conftest conftest.*
24659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24660 /* end confdefs.h. */
24662 #ifndef __ELF__
24663 # error Not an ELF OS
24664 #endif
24665 #include <stdlib.h>
24666 #if defined __GLIBC_PREREQ
24667 # if __GLIBC_PREREQ (2, 4)
24668 # else
24669 # error GLIBC 2.4 required
24670 # endif
24671 #else
24672 # if defined __sun__ && defined __svr4__
24673 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24674 # else
24675 # error The C library not known to support .init_array/.fini_array
24676 # endif
24677 #endif
24679 _ACEOF
24680 if ac_fn_cxx_try_cpp "$LINENO"; then :
24682 else
24683 gcc_cv_initfini_array=no
24685 rm -f conftest.err conftest.i conftest.$ac_ext;;
24686 esac
24687 else
24688 case "${target}" in
24689 aarch64*-linux-gnu*)
24690 # AArch64 postdates glibc support for .init_array/.fini_array,
24691 # so we don't need the preprocessor test above.
24692 gcc_cv_initfini_array=yes
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24697 $as_echo_n "checking cross compile... guessing... " >&6; }
24698 gcc_cv_initfini_array=no
24700 esac
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24704 $as_echo "$gcc_cv_initfini_array" >&6; }
24705 enable_initfini_array=$gcc_cv_initfini_array
24710 cat >>confdefs.h <<_ACEOF
24711 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24712 _ACEOF
24716 # Some assemblers (GNU as for LoongArch) generates relocations for
24717 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
24718 # probing leb128 support then.
24719 case $target in
24720 loongarch*-*-*)
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
24722 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
24723 if ${gcc_cv_as_mno_relax+:} false; then :
24724 $as_echo_n "(cached) " >&6
24725 else
24726 gcc_cv_as_mno_relax=no
24727 if test x$gcc_cv_as != x; then
24728 $as_echo '.text' > conftest.s
24729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
24730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24731 (eval $ac_try) 2>&5
24732 ac_status=$?
24733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24734 test $ac_status = 0; }; }
24735 then
24736 gcc_cv_as_mno_relax=yes
24737 else
24738 echo "configure: failed program was" >&5
24739 cat conftest.s >&5
24741 rm -f conftest.o conftest.s
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
24745 $as_echo "$gcc_cv_as_mno_relax" >&6; }
24746 if test $gcc_cv_as_mno_relax = yes; then
24747 check_leb128_asflags=-mno-relax
24752 check_leb128_asflags=
24754 esac
24756 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24757 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24758 # these directives, even when they appear to accept them.
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24760 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24761 if ${gcc_cv_as_leb128+:} false; then :
24762 $as_echo_n "(cached) " >&6
24763 else
24764 gcc_cv_as_leb128=no
24765 if test x$gcc_cv_as != x; then
24766 $as_echo ' .data
24767 .uleb128 L2 - L1
24769 .uleb128 1280
24770 .sleb128 -1010
24772 .uleb128 0x8000000000000000
24773 ' > conftest.s
24774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
24775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24776 (eval $ac_try) 2>&5
24777 ac_status=$?
24778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24779 test $ac_status = 0; }; }
24780 then
24782 if test "x$gcc_cv_objdump" != x; then
24783 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24784 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24785 gcc_cv_as_leb128=yes
24787 elif test "x$gcc_cv_otool" != x; then
24788 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24789 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24790 gcc_cv_as_leb128=yes
24792 else
24793 # play safe, assume the assembler is broken.
24797 else
24798 echo "configure: failed program was" >&5
24799 cat conftest.s >&5
24801 rm -f conftest.o conftest.s
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24805 $as_echo "$gcc_cv_as_leb128" >&6; }
24806 if test $gcc_cv_as_leb128 = yes; then
24808 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24811 if test $gcc_cv_as_leb128 != yes; then
24813 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24817 # Determine if an .eh_frame section is read-only.
24818 gcc_fn_eh_frame_ro () {
24819 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24820 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24821 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24824 # Check if we have assembler support for unwind directives.
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24826 $as_echo_n "checking assembler for cfi directives... " >&6; }
24827 if ${gcc_cv_as_cfi_directive+:} false; then :
24828 $as_echo_n "(cached) " >&6
24829 else
24830 gcc_cv_as_cfi_directive=no
24831 if test x$gcc_cv_as != x; then
24832 $as_echo ' .text
24833 .cfi_startproc
24834 .cfi_offset 0, 0
24835 .cfi_same_value 1
24836 .cfi_def_cfa 1, 2
24837 .cfi_escape 1, 2, 3, 4, 5
24838 .cfi_endproc' > conftest.s
24839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24841 (eval $ac_try) 2>&5
24842 ac_status=$?
24843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24844 test $ac_status = 0; }; }
24845 then
24846 case "$target" in
24847 *-*-solaris*)
24848 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24849 # read-only and read-write sections, we need to make sure that the
24850 # assembler used emits read-write .eh_frame sections.
24851 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24852 gcc_cv_as_cfi_directive=yes
24853 elif test "x$gcc_cv_objdump" = x; then
24854 # No objdump, err on the side of caution.
24855 gcc_cv_as_cfi_directive=no
24856 else
24857 if test x$gas = xyes; then
24858 as_32_opt="--32"
24859 as_64_opt="--64"
24860 else
24861 as_32_opt="-m32"
24862 as_64_opt="-m64"
24864 case "$target" in
24865 sparc*-*-solaris2.*)
24866 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24867 if gcc_fn_eh_frame_ro $as_32_opt \
24868 || gcc_fn_eh_frame_ro $as_64_opt; then
24869 gcc_cv_as_cfi_directive=no
24870 else
24871 gcc_cv_as_cfi_directive=yes
24874 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24875 # On Solaris/x86, make sure that GCC and assembler agree on using
24876 # read-only .eh_frame sections for 64-bit.
24877 if gcc_fn_eh_frame_ro $as_32_opt; then
24878 gcc_cv_as_cfi_directive=no
24879 elif gcc_fn_eh_frame_ro $as_64_opt; then
24880 gcc_cv_as_cfi_directive=yes
24881 else
24882 gcc_cv_as_cfi_directive=no
24885 esac
24888 *-*-*)
24889 gcc_cv_as_cfi_directive=yes
24891 esac
24892 else
24893 echo "configure: failed program was" >&5
24894 cat conftest.s >&5
24896 rm -f conftest.o conftest.s
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24900 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24903 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24905 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24906 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24907 $as_echo_n "(cached) " >&6
24908 else
24909 gcc_cv_as_cfi_advance_working=no
24910 if test x$gcc_cv_as != x; then
24911 $as_echo ' .text
24912 .cfi_startproc
24913 .cfi_adjust_cfa_offset 64
24914 .skip 75040, 0
24915 .cfi_adjust_cfa_offset 128
24916 .cfi_endproc' > conftest.s
24917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24919 (eval $ac_try) 2>&5
24920 ac_status=$?
24921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24922 test $ac_status = 0; }; }
24923 then
24925 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24926 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24927 gcc_cv_as_cfi_advance_working=yes
24930 else
24931 echo "configure: failed program was" >&5
24932 cat conftest.s >&5
24934 rm -f conftest.o conftest.s
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24938 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24941 else
24942 # no objdump, err on the side of caution
24943 gcc_cv_as_cfi_advance_working=no
24947 cat >>confdefs.h <<_ACEOF
24948 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24949 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24950 _ACEOF
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24955 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24956 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24957 $as_echo_n "(cached) " >&6
24958 else
24959 gcc_cv_as_cfi_personality_directive=no
24960 if test x$gcc_cv_as != x; then
24961 $as_echo ' .text
24962 .cfi_startproc
24963 .cfi_personality 0, symbol
24964 .cfi_endproc' > conftest.s
24965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24967 (eval $ac_try) 2>&5
24968 ac_status=$?
24969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24970 test $ac_status = 0; }; }
24971 then
24972 gcc_cv_as_cfi_personality_directive=yes
24973 else
24974 echo "configure: failed program was" >&5
24975 cat conftest.s >&5
24977 rm -f conftest.o conftest.s
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24981 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24985 cat >>confdefs.h <<_ACEOF
24986 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24987 _ACEOF
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24991 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24992 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24993 $as_echo_n "(cached) " >&6
24994 else
24995 gcc_cv_as_cfi_sections_directive=no
24996 if test x$gcc_cv_as != x; then
24997 $as_echo ' .text
24998 .cfi_sections .debug_frame, .eh_frame
24999 .cfi_startproc
25000 .cfi_endproc' > conftest.s
25001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25003 (eval $ac_try) 2>&5
25004 ac_status=$?
25005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25006 test $ac_status = 0; }; }
25007 then
25008 case $target_os in
25009 win32 | pe | cygwin* | mingw32*)
25010 # Need to check that we generated the correct relocation for the
25011 # .debug_frame section. This was fixed for binutils 2.21.
25012 gcc_cv_as_cfi_sections_directive=no
25013 if test "x$gcc_cv_objdump" != x; then
25014 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
25015 grep -i secrel > /dev/null; then
25016 gcc_cv_as_cfi_sections_directive=yes
25021 gcc_cv_as_cfi_sections_directive=yes
25023 esac
25024 else
25025 echo "configure: failed program was" >&5
25026 cat conftest.s >&5
25028 rm -f conftest.o conftest.s
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
25032 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
25037 cat >>confdefs.h <<_ACEOF
25038 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
25039 _ACEOF
25042 # GAS versions up to and including 2.11.0 may mis-optimize
25043 # .eh_frame data.
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
25045 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
25046 if ${gcc_cv_as_eh_frame+:} false; then :
25047 $as_echo_n "(cached) " >&6
25048 else
25049 gcc_cv_as_eh_frame=no
25050 if test x$gcc_cv_as != x; then
25051 $as_echo ' .text
25052 .LFB1:
25053 .4byte 0
25054 .L1:
25055 .4byte 0
25056 .LFE1:
25057 .section .eh_frame,"aw",@progbits
25058 __FRAME_BEGIN__:
25059 .4byte .LECIE1-.LSCIE1
25060 .LSCIE1:
25061 .4byte 0x0
25062 .byte 0x1
25063 .ascii "z\0"
25064 .byte 0x1
25065 .byte 0x78
25066 .byte 0x1a
25067 .byte 0x0
25068 .byte 0x4
25069 .4byte 1
25070 .p2align 1
25071 .LECIE1:
25072 .LSFDE1:
25073 .4byte .LEFDE1-.LASFDE1
25074 .LASFDE1:
25075 .4byte .LASFDE1-__FRAME_BEGIN__
25076 .4byte .LFB1
25077 .4byte .LFE1-.LFB1
25078 .byte 0x4
25079 .4byte .LFE1-.LFB1
25080 .byte 0x4
25081 .4byte .L1-.LFB1
25082 .LEFDE1:' > conftest.s
25083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25085 (eval $ac_try) 2>&5
25086 ac_status=$?
25087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25088 test $ac_status = 0; }; }
25089 then
25090 cat > conftest.lit <<EOF
25091 0000 10000000 00000000 017a0001 781a0004 .........z..x...
25092 0010 01000000 12000000 18000000 00000000 ................
25093 0020 08000000 04080000 0044 .........D
25095 cat > conftest.big <<EOF
25096 0000 00000010 00000000 017a0001 781a0004 .........z..x...
25097 0010 00000001 00000012 00000018 00000000 ................
25098 0020 00000008 04000000 0844 .........D
25100 # If the assembler didn't choke, and we can objdump,
25101 # and we got the correct data, then succeed.
25102 # The text in the here-document typically retains its unix-style line
25103 # endings, while the output of objdump will use host line endings.
25104 # Therefore, use diff -b for the comparisons.
25105 if test x$gcc_cv_objdump != x \
25106 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
25107 | tail -3 > conftest.got \
25108 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
25109 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
25110 then
25111 gcc_cv_as_eh_frame=yes
25112 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25114 (eval $ac_try) 2>&5
25115 ac_status=$?
25116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25117 test $ac_status = 0; }; }; then
25118 gcc_cv_as_eh_frame=buggy
25119 else
25120 # Uh oh, what do we do now?
25121 gcc_cv_as_eh_frame=no
25123 else
25124 echo "configure: failed program was" >&5
25125 cat conftest.s >&5
25127 rm -f conftest.o conftest.s
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
25131 $as_echo "$gcc_cv_as_eh_frame" >&6; }
25135 if test $gcc_cv_as_eh_frame = buggy; then
25137 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25141 # Test if the assembler supports the section flag 'e' or #exclude for
25142 # specifying an excluded section.
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25144 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25145 if ${gcc_cv_as_section_exclude_e+:} false; then :
25146 $as_echo_n "(cached) " >&6
25147 else
25148 gcc_cv_as_section_exclude_e=no
25149 if test x$gcc_cv_as != x; then
25150 $as_echo '.section foo1,"e"
25151 .byte 0,0,0,0' > conftest.s
25152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25154 (eval $ac_try) 2>&5
25155 ac_status=$?
25156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25157 test $ac_status = 0; }; }
25158 then
25159 gcc_cv_as_section_exclude_e=yes
25160 else
25161 echo "configure: failed program was" >&5
25162 cat conftest.s >&5
25164 rm -f conftest.o conftest.s
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25168 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25171 if test $gcc_cv_as_section_exclude_e = no; then
25172 case "${target}" in
25173 # Solaris as uses #exclude instead.
25174 *-*-solaris2*)
25175 case "${target}" in
25176 sparc*-*-solaris2*)
25177 conftest_s='.section "foo1", #exclude'
25179 i?86-*-solaris2* | x86_64-*-solaris2*)
25180 conftest_s='.section foo1, #exclude'
25182 esac
25184 esac
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25186 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25187 if ${gcc_cv_as_section_exclude_hash+:} false; then :
25188 $as_echo_n "(cached) " >&6
25189 else
25190 gcc_cv_as_section_exclude_hash=no
25191 if test x$gcc_cv_as != x; then
25192 $as_echo "$conftest_s
25193 .byte 0,0,0,0" > conftest.s
25194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25196 (eval $ac_try) 2>&5
25197 ac_status=$?
25198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25199 test $ac_status = 0; }; }
25200 then
25201 gcc_cv_as_section_exclude_hash=yes
25202 else
25203 echo "configure: failed program was" >&5
25204 cat conftest.s >&5
25206 rm -f conftest.o conftest.s
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25210 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25215 cat >>confdefs.h <<_ACEOF
25216 #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`
25217 _ACEOF
25220 # Test if the assembler supports the section flag 'R' for specifying
25221 # section with SHF_GNU_RETAIN.
25222 case "${target}" in
25223 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25224 # assembler supports the section flag 'R', it doesn't mean that
25225 # Solairs ld supports it.
25226 *-*-solaris2*)
25227 gcc_cv_as_shf_gnu_retain=no
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25231 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25232 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
25233 $as_echo_n "(cached) " >&6
25234 else
25235 gcc_cv_as_shf_gnu_retain=no
25236 if test x$gcc_cv_as != x; then
25237 $as_echo '.section .foo,"awR",%progbits
25238 .byte 0' > conftest.s
25239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25241 (eval $ac_try) 2>&5
25242 ac_status=$?
25243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25244 test $ac_status = 0; }; }
25245 then
25246 gcc_cv_as_shf_gnu_retain=yes
25247 else
25248 echo "configure: failed program was" >&5
25249 cat conftest.s >&5
25251 rm -f conftest.o conftest.s
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25255 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25259 esac
25261 cat >>confdefs.h <<_ACEOF
25262 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25263 _ACEOF
25266 # Test if the assembler supports the section flag 'o' for specifying
25267 # section with link-order.
25268 case "${target}" in
25269 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25270 # assembler supports the section flag 'o', it doesn't mean that
25271 # Solairs ld supports it.
25272 *-*-solaris2*)
25273 gcc_cv_as_section_link_order=no
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25277 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25278 if ${gcc_cv_as_section_link_order+:} false; then :
25279 $as_echo_n "(cached) " >&6
25280 else
25281 gcc_cv_as_section_link_order=no
25282 if test x$gcc_cv_as != x; then
25283 $as_echo '.section .foo,"a"
25284 .byte 0
25285 .section __patchable_function_entries,"awo",%progbits,.foo
25286 .byte 0' > conftest.s
25287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25289 (eval $ac_try) 2>&5
25290 ac_status=$?
25291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25292 test $ac_status = 0; }; }
25293 then
25294 gcc_cv_as_section_link_order=yes
25295 else
25296 echo "configure: failed program was" >&5
25297 cat conftest.s >&5
25299 rm -f conftest.o conftest.s
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25303 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25307 esac
25309 cat >>confdefs.h <<_ACEOF
25310 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25311 _ACEOF
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25315 $as_echo_n "checking assembler for section merging support... " >&6; }
25316 if ${gcc_cv_as_shf_merge+:} false; then :
25317 $as_echo_n "(cached) " >&6
25318 else
25319 gcc_cv_as_shf_merge=no
25320 if test x$gcc_cv_as != x; then
25321 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }
25328 then
25329 gcc_cv_as_shf_merge=yes
25330 else
25331 echo "configure: failed program was" >&5
25332 cat conftest.s >&5
25334 rm -f conftest.o conftest.s
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25338 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25341 if test $gcc_cv_as_shf_merge = no; then
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25343 $as_echo_n "checking assembler for section merging support... " >&6; }
25344 if ${gcc_cv_as_shf_merge+:} false; then :
25345 $as_echo_n "(cached) " >&6
25346 else
25347 gcc_cv_as_shf_merge=no
25348 if test x$gcc_cv_as != x; then
25349 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25356 then
25357 gcc_cv_as_shf_merge=yes
25358 else
25359 echo "configure: failed program was" >&5
25360 cat conftest.s >&5
25362 rm -f conftest.o conftest.s
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25366 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25371 cat >>confdefs.h <<_ACEOF
25372 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25373 _ACEOF
25376 gcc_cv_ld_aligned_shf_merge=yes
25377 case "$target" in
25378 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25379 # alignment > 1.
25380 sparc*-*-solaris2.11*)
25381 if test x"$gnu_ld" = xno \
25382 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25383 gcc_cv_ld_aligned_shf_merge=no
25386 esac
25388 cat >>confdefs.h <<_ACEOF
25389 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25390 _ACEOF
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25394 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25395 if ${gcc_cv_as_comdat_group+:} false; then :
25396 $as_echo_n "(cached) " >&6
25397 else
25398 gcc_cv_as_comdat_group=no
25399 if test x$gcc_cv_as != x; then
25400 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }
25407 then
25408 gcc_cv_as_comdat_group=yes
25409 else
25410 echo "configure: failed program was" >&5
25411 cat conftest.s >&5
25413 rm -f conftest.o conftest.s
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25417 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25420 if test $gcc_cv_as_comdat_group = yes; then
25421 gcc_cv_as_comdat_group_percent=no
25422 gcc_cv_as_comdat_group_group=no
25423 else
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25425 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25426 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25427 $as_echo_n "(cached) " >&6
25428 else
25429 gcc_cv_as_comdat_group_percent=no
25430 if test x$gcc_cv_as != x; then
25431 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25434 (eval $ac_try) 2>&5
25435 ac_status=$?
25436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25437 test $ac_status = 0; }; }
25438 then
25439 gcc_cv_as_comdat_group_percent=yes
25440 else
25441 echo "configure: failed program was" >&5
25442 cat conftest.s >&5
25444 rm -f conftest.o conftest.s
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25448 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25451 if test $gcc_cv_as_comdat_group_percent = yes; then
25452 gcc_cv_as_comdat_group_group=no
25453 else
25454 case "${target}" in
25455 # Sun as uses a completely different syntax.
25456 *-*-solaris2*)
25457 case "${target}" in
25458 sparc*-*-solaris2*)
25459 conftest_s='
25460 .group foo,".text%foo",#comdat
25461 .section ".text%foo", #alloc,#execinstr,#progbits
25462 .globl foo
25463 foo:
25466 i?86-*-solaris2* | x86_64-*-solaris2*)
25467 conftest_s='
25468 .group foo,.text%foo,#comdat
25469 .section .text%foo, "ax", @progbits
25470 .globl foo
25471 foo:
25474 esac
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25476 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25477 if ${gcc_cv_as_comdat_group_group+:} false; then :
25478 $as_echo_n "(cached) " >&6
25479 else
25480 gcc_cv_as_comdat_group_group=no
25481 if test x$gcc_cv_as != x; then
25482 $as_echo "$conftest_s" > conftest.s
25483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25485 (eval $ac_try) 2>&5
25486 ac_status=$?
25487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25488 test $ac_status = 0; }; }
25489 then
25490 gcc_cv_as_comdat_group_group=yes
25491 else
25492 echo "configure: failed program was" >&5
25493 cat conftest.s >&5
25495 rm -f conftest.o conftest.s
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25499 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25503 esac
25504 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25505 gcc_cv_as_comdat_group_group=no
25509 if test x"$ld_is_gold" = xyes; then
25510 comdat_group=yes
25511 elif test x"$ld_is_mold" = xyes; then
25512 comdat_group=yes
25513 elif test $in_tree_ld = yes ; then
25514 comdat_group=no
25515 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 \
25516 && test $in_tree_ld_is_elf = yes; then
25517 comdat_group=yes
25519 elif echo "$ld_ver" | grep GNU > /dev/null; then
25520 comdat_group=yes
25521 if test 0"$ld_date" -lt 20050308; then
25522 if test -n "$ld_date"; then
25523 # If there was date string, but was earlier than 2005-03-08, fail
25524 comdat_group=no
25525 elif test "$ld_vers_major" -lt 2; then
25526 comdat_group=no
25527 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25528 comdat_group=no
25531 else
25532 case "${target}" in
25533 *-*-solaris2.1[1-9]*)
25534 comdat_group=no
25535 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25536 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25537 # version 1.688.
25539 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25540 # least ld version 1.2267.
25541 if test "$ld_vers_major" -gt 1; then
25542 comdat_group=yes
25543 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25544 comdat_group=yes
25545 elif test "$ld_vers_minor" -ge 2267; then
25546 comdat_group=yes
25550 # Assume linkers other than GNU ld don't support COMDAT group.
25551 comdat_group=no
25553 esac
25555 # Allow overriding the automatic COMDAT group tests above.
25556 # Check whether --enable-comdat was given.
25557 if test "${enable_comdat+set}" = set; then :
25558 enableval=$enable_comdat; comdat_group="$enable_comdat"
25561 if test $comdat_group = no; then
25562 gcc_cv_as_comdat_group=no
25563 gcc_cv_as_comdat_group_percent=no
25564 gcc_cv_as_comdat_group_group=no
25567 cat >>confdefs.h <<_ACEOF
25568 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25569 || test $gcc_cv_as_comdat_group_percent = yes \
25570 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25571 _ACEOF
25574 # Restrict this test to Solaris/x86: other targets define this statically.
25575 case "${target}" in
25576 i?86-*-solaris2* | x86_64-*-solaris2*)
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25578 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25579 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25580 hidden_linkonce=yes
25581 else
25582 case "${target}" in
25583 # Full support for hidden thunks in linkonce sections only appeared in
25584 # Solaris 11/OpenSolaris.
25585 *-*-solaris2.1[1-9]*)
25586 hidden_linkonce=yes
25589 hidden_linkonce=no
25591 esac
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25594 $as_echo "$hidden_linkonce" >&6; }
25596 cat >>confdefs.h <<_ACEOF
25597 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25598 _ACEOF
25601 esac
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25604 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25605 if ${gcc_cv_as_is_stmt+:} false; then :
25606 $as_echo_n "(cached) " >&6
25607 else
25608 gcc_cv_as_is_stmt=no
25609 if test x$gcc_cv_as != x; then
25610 $as_echo ' .text
25611 .file 1 "conf.c"
25612 .loc 1 1 0 is_stmt 1' > conftest.s
25613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25615 (eval $ac_try) 2>&5
25616 ac_status=$?
25617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25618 test $ac_status = 0; }; }
25619 then
25620 gcc_cv_as_is_stmt=yes
25621 else
25622 echo "configure: failed program was" >&5
25623 cat conftest.s >&5
25625 rm -f conftest.o conftest.s
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25629 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25630 if test $gcc_cv_as_is_stmt = yes; then
25632 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25638 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25639 if ${gcc_cv_as_discriminator+:} false; then :
25640 $as_echo_n "(cached) " >&6
25641 else
25642 gcc_cv_as_discriminator=no
25643 if test x$gcc_cv_as != x; then
25644 $as_echo ' .text
25645 .file 1 "conf.c"
25646 .loc 1 1 0 discriminator 1' > conftest.s
25647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25649 (eval $ac_try) 2>&5
25650 ac_status=$?
25651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652 test $ac_status = 0; }; }
25653 then
25654 gcc_cv_as_discriminator=yes
25655 else
25656 echo "configure: failed program was" >&5
25657 cat conftest.s >&5
25659 rm -f conftest.o conftest.s
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25663 $as_echo "$gcc_cv_as_discriminator" >&6; }
25664 if test $gcc_cv_as_discriminator = yes; then
25666 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25671 # Catch the newlib flag of the same name so we can gate GCC features on it.
25672 # Check whether --enable-newlib-nano-formatted-io was given.
25673 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25674 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25675 yes|no)
25678 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25680 esac
25684 # Thread-local storage - the check is heavily parameterized.
25685 conftest_s=
25686 tls_as_opt=
25687 case "$target" in
25688 alpha*-*-*)
25689 conftest_s='
25690 .section ".tdata","awT",@progbits
25691 foo: .long 25
25692 .text
25693 ldq $27,__tls_get_addr($29) !literal!1
25694 lda $16,foo($29) !tlsgd!1
25695 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25696 ldq $27,__tls_get_addr($29) !literal!2
25697 lda $16,foo($29) !tlsldm!2
25698 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25699 ldq $1,foo($29) !gotdtprel
25700 ldah $2,foo($29) !dtprelhi
25701 lda $3,foo($2) !dtprello
25702 lda $4,foo($29) !dtprel
25703 ldq $1,foo($29) !gottprel
25704 ldah $2,foo($29) !tprelhi
25705 lda $3,foo($2) !tprello
25706 lda $4,foo($29) !tprel'
25707 tls_as_opt=--fatal-warnings
25709 arc*-*-*)
25710 conftest_s='
25711 add_s r0,r0, @foo@tpoff'
25713 cris-*-*|crisv32-*-*)
25714 conftest_s='
25715 .section ".tdata","awT",@progbits
25716 x: .long 25
25717 .text
25718 move.d x:IE,$r10
25719 nop'
25720 tls_as_opt=--fatal-warnings
25722 frv*-*-*)
25723 conftest_s='
25724 .section ".tdata","awT",@progbits
25725 x: .long 25
25726 .text
25727 call #gettlsoff(x)'
25729 hppa*-*-linux*)
25730 conftest_s='
25731 t1: .reg %r20
25732 t2: .reg %r21
25733 gp: .reg %r19
25734 .section ".tdata","awT",@progbits
25735 foo: .long 25
25736 .text
25737 .align 4
25738 addil LT%foo-$tls_gdidx$,gp
25739 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25740 b __tls_get_addr
25742 addil LT%foo-$tls_ldidx$,gp
25743 b __tls_get_addr
25744 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25745 addil LR%foo-$tls_dtpoff$,%ret0
25746 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25747 mfctl %cr27,%t1
25748 addil LT%foo-$tls_ieoff$,gp
25749 ldw RT%foo-$tls_ieoff$(%r1),%t2
25750 add %t1,%t2,%t3
25751 mfctl %cr27,%t1
25752 addil LR%foo-$tls_leoff$,%t1
25753 ldo RR%foo-$tls_leoff$(%r1),%t2'
25754 tls_as_opt=--fatal-warnings
25756 arm*-*-*)
25757 conftest_s='
25758 .section ".tdata","awT",%progbits
25759 foo: .long 25
25760 .text
25761 .word foo(gottpoff)
25762 .word foo(tpoff)
25763 .word foo(tlsgd)
25764 .word foo(tlsldm)
25765 .word foo(tlsldo)'
25767 i[34567]86-*-* | x86_64-*-*)
25768 case "$target" in
25769 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25770 on_solaris=yes
25773 on_solaris=no
25775 esac
25776 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25777 conftest_s='
25778 .section .tdata,"awt",@progbits'
25779 tls_section_flag=t
25781 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25783 else
25784 conftest_s='
25785 .section ".tdata","awT",@progbits'
25786 tls_section_flag=T
25787 tls_as_opt="--fatal-warnings"
25789 case "$target" in
25790 i[34567]86-*-*)
25791 if test x$on_solaris = xyes; then
25792 case $gas_flag in
25793 yes) tls_as_opt="$tls_as_opt --32" ;;
25794 esac
25796 conftest_s="$conftest_s
25797 foo: .long 25
25798 .text
25799 movl %gs:0, %eax
25800 leal foo@tlsgd(,%ebx,1), %eax
25801 leal foo@tlsldm(%ebx), %eax
25802 leal foo@dtpoff(%eax), %edx
25803 movl foo@gottpoff(%ebx), %eax
25804 subl foo@gottpoff(%ebx), %eax
25805 addl foo@gotntpoff(%ebx), %eax
25806 movl foo@indntpoff, %eax
25807 movl \$foo@tpoff, %eax
25808 subl \$foo@tpoff, %eax
25809 leal foo@ntpoff(%ecx), %eax"
25811 x86_64-*-*)
25812 if test x$on_solaris = xyes; then
25813 case $gas_flag in
25814 yes) tls_as_opt="$tls_as_opt --64" ;;
25815 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25816 esac
25818 conftest_s="$conftest_s
25819 foo: .long 25
25820 .text
25821 movq %fs:0, %rax
25822 leaq foo@tlsgd(%rip), %rdi
25823 leaq foo@tlsld(%rip), %rdi
25824 leaq foo@dtpoff(%rax), %rdx
25825 movq foo@gottpoff(%rip), %rax
25826 movq \$foo@tpoff, %rax"
25828 esac
25830 ia64-*-*)
25831 conftest_s='
25832 .section ".tdata","awT",@progbits
25833 foo: data8 25
25834 .text
25835 addl r16 = @ltoff(@dtpmod(foo#)), gp
25836 addl r17 = @ltoff(@dtprel(foo#)), gp
25837 addl r18 = @ltoff(@tprel(foo#)), gp
25838 addl r19 = @dtprel(foo#), gp
25839 adds r21 = @dtprel(foo#), r13
25840 movl r23 = @dtprel(foo#)
25841 addl r20 = @tprel(foo#), gp
25842 adds r22 = @tprel(foo#), r13
25843 movl r24 = @tprel(foo#)'
25844 tls_as_opt=--fatal-warnings
25846 loongarch*-*-*)
25847 conftest_s='
25848 .section .tdata,"awT",@progbits
25849 x: .word 2
25850 .text
25851 la.tls.gd $a0,x
25852 bl __tls_get_addr'
25853 tls_first_major=0
25854 tls_first_minor=0
25855 tls_as_opt='--fatal-warnings'
25857 microblaze*-*-*)
25858 conftest_s='
25859 .section .tdata,"awT",@progbits
25861 .word 2
25862 .text
25863 addik r5,r20,x@TLSGD
25864 addik r5,r20,x@TLSLDM'
25865 tls_as_opt='--fatal-warnings'
25867 mips*-*-*)
25868 conftest_s='
25869 .section .tdata,"awT",@progbits
25871 .word 2
25872 .text
25873 addiu $4, $28, %tlsgd(x)
25874 addiu $4, $28, %tlsldm(x)
25875 lui $4, %dtprel_hi(x)
25876 addiu $4, $4, %dtprel_lo(x)
25877 lw $4, %gottprel(x)($28)
25878 lui $4, %tprel_hi(x)
25879 addiu $4, $4, %tprel_lo(x)'
25880 tls_as_opt='-32 --fatal-warnings'
25882 m68k-*-*)
25883 conftest_s='
25884 .section .tdata,"awT",@progbits
25886 .word 2
25887 .text
25888 foo:
25889 move.l x@TLSGD(%a5),%a0
25890 move.l x@TLSLDM(%a5),%a0
25891 move.l x@TLSLDO(%a5),%a0
25892 move.l x@TLSIE(%a5),%a0
25893 move.l x@TLSLE(%a5),%a0'
25894 tls_as_opt='--fatal-warnings'
25896 nios2-*-*)
25897 conftest_s='
25898 .section ".tdata","awT",@progbits'
25899 tls_as_opt="--fatal-warnings"
25901 aarch64*-*-*)
25902 conftest_s='
25903 .section ".tdata","awT",%progbits
25904 foo: .long 25
25905 .text
25906 adrp x0, :tlsgd:x
25907 add x0, x0, #:tlsgd_lo12:x
25908 bl __tls_get_addr
25909 nop'
25910 tls_as_opt='--fatal-warnings'
25912 or1k*-*-*)
25913 conftest_s='
25914 .section ".tdata","awT",@progbits
25915 foo: .long 25
25916 .text
25917 l.movhi r3, tpoffha(foo)
25918 l.add r3, r3, r10
25919 l.lwz r4, tpofflo(foo)(r3)'
25920 tls_as_opt=--fatal-warnings
25922 powerpc-ibm-aix*)
25923 conftest_s='
25924 .extern __get_tpointer
25925 .toc
25926 LC..1:
25927 .tc a[TC],a[TL]@le
25928 .csect .text[PR]
25929 .tlstest:
25930 lwz 9,LC..1(2)
25931 bla __get_tpointer
25932 lwzx 3,9,3
25933 .globl a
25934 .csect a[TL],4
25936 .space 4'
25938 powerpc64*-*-*)
25939 conftest_s='
25940 .section ".tdata","awT",@progbits
25941 .align 3
25942 ld0: .space 8
25943 ld1: .space 8
25944 x1: .space 8
25945 x2: .space 8
25946 x3: .space 8
25947 .text
25948 addi 3,2,ld0@got@tlsgd
25949 bl .__tls_get_addr
25951 addi 3,2,ld1@toc
25952 bl .__tls_get_addr
25954 addi 3,2,x1@got@tlsld
25955 bl .__tls_get_addr
25957 addi 9,3,x1@dtprel
25958 bl .__tls_get_addr
25960 addis 9,3,x2@dtprel@ha
25961 addi 9,9,x2@dtprel@l
25962 bl .__tls_get_addr
25964 ld 9,x3@got@dtprel(2)
25965 add 9,9,3
25966 bl .__tls_get_addr
25967 nop'
25968 tls_as_opt="-a64 --fatal-warnings"
25970 powerpc*-*-*)
25971 conftest_s='
25972 .section ".tdata","awT",@progbits
25973 .align 2
25974 ld0: .space 4
25975 ld1: .space 4
25976 x1: .space 4
25977 x2: .space 4
25978 x3: .space 4
25979 .text
25980 addi 3,31,ld0@got@tlsgd
25981 bl __tls_get_addr
25982 addi 3,31,x1@got@tlsld
25983 bl __tls_get_addr
25984 addi 9,3,x1@dtprel
25985 addis 9,3,x2@dtprel@ha
25986 addi 9,9,x2@dtprel@l
25987 lwz 9,x3@got@tprel(31)
25988 add 9,9,x@tls
25989 addi 9,2,x1@tprel
25990 addis 9,2,x2@tprel@ha
25991 addi 9,9,x2@tprel@l'
25992 tls_as_opt="-a32 --fatal-warnings"
25994 riscv*-*-*)
25995 conftest_s='
25996 .section .tdata,"awT",@progbits
25997 x: .word 2
25998 .text
25999 la.tls.gd a0,x
26000 call __tls_get_addr'
26001 tls_as_opt='--fatal-warnings'
26003 s390-*-*)
26004 conftest_s='
26005 .section ".tdata","awT",@progbits
26006 foo: .long 25
26007 .text
26008 .long foo@TLSGD
26009 .long foo@TLSLDM
26010 .long foo@DTPOFF
26011 .long foo@NTPOFF
26012 .long foo@GOTNTPOFF
26013 .long foo@INDNTPOFF
26014 l %r1,foo@GOTNTPOFF(%r12)
26015 l %r1,0(%r1):tls_load:foo
26016 bas %r14,0(%r1,%r13):tls_gdcall:foo
26017 bas %r14,0(%r1,%r13):tls_ldcall:foo'
26018 tls_as_opt="-m31 --fatal-warnings"
26020 s390x-*-*)
26021 conftest_s='
26022 .section ".tdata","awT",@progbits
26023 foo: .long 25
26024 .text
26025 .quad foo@TLSGD
26026 .quad foo@TLSLDM
26027 .quad foo@DTPOFF
26028 .quad foo@NTPOFF
26029 .quad foo@GOTNTPOFF
26030 lg %r1,foo@GOTNTPOFF(%r12)
26031 larl %r1,foo@INDNTPOFF
26032 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
26033 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
26034 tls_as_opt="-m64 -Aesame --fatal-warnings"
26036 sh-*-* | sh[123456789lbe]*-*-*)
26037 conftest_s='
26038 .section ".tdata","awT",@progbits
26039 foo: .long 25
26040 .text
26041 .long foo@TLSGD
26042 .long foo@TLSLDM
26043 .long foo@DTPOFF
26044 .long foo@GOTTPOFF
26045 .long foo@TPOFF'
26046 tls_as_opt=--fatal-warnings
26048 sparc*-*-*)
26049 case "$target" in
26050 sparc*-sun-solaris2.*)
26051 on_solaris=yes
26054 on_solaris=no
26056 esac
26057 if test x$on_solaris = xyes && test x$gas_flag = xno; then
26058 conftest_s='
26059 .section ".tdata",#alloc,#write,#tls'
26060 else
26061 conftest_s='
26062 .section ".tdata","awT",@progbits'
26063 tls_as_opt="-32 --fatal-warnings"
26065 conftest_s="$conftest_s
26066 foo: .long 25
26067 .text
26068 sethi %tgd_hi22(foo), %o0
26069 add %o0, %tgd_lo10(foo), %o1
26070 add %l7, %o1, %o0, %tgd_add(foo)
26071 call __tls_get_addr, %tgd_call(foo)
26072 sethi %tldm_hi22(foo), %l1
26073 add %l1, %tldm_lo10(foo), %l2
26074 add %l7, %l2, %o0, %tldm_add(foo)
26075 call __tls_get_addr, %tldm_call(foo)
26076 sethi %tldo_hix22(foo), %l3
26077 xor %l3, %tldo_lox10(foo), %l4
26078 add %o0, %l4, %l5, %tldo_add(foo)
26079 sethi %tie_hi22(foo), %o3
26080 add %o3, %tie_lo10(foo), %o3
26081 ld [%l7 + %o3], %o2, %tie_ld(foo)
26082 add %g7, %o2, %o4, %tie_add(foo)
26083 sethi %tle_hix22(foo), %l1
26084 xor %l1, %tle_lox10(foo), %o5
26085 ld [%g7 + %o5], %o1"
26087 xtensa*-*-*)
26088 conftest_s='
26089 .section ".tdata","awT",@progbits
26090 foo: .long 25
26091 .text
26092 movi a8, foo@TLSFUNC
26093 movi a10, foo@TLSARG
26094 callx8.tls a8, foo@TLSCALL'
26096 esac
26097 set_have_as_tls=no
26098 if test "x$enable_tls" = xno ; then
26099 : # TLS explicitly disabled.
26100 elif test "x$enable_tls" = xyes ; then
26101 set_have_as_tls=yes # TLS explicitly enabled.
26102 elif test -z "$conftest_s"; then
26103 : # If we don't have a check, assume no support.
26104 else
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
26106 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
26107 if ${gcc_cv_as_tls+:} false; then :
26108 $as_echo_n "(cached) " >&6
26109 else
26110 gcc_cv_as_tls=no
26111 if test x$gcc_cv_as != x; then
26112 $as_echo "$conftest_s" > conftest.s
26113 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
26114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26115 (eval $ac_try) 2>&5
26116 ac_status=$?
26117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26118 test $ac_status = 0; }; }
26119 then
26120 gcc_cv_as_tls=yes
26121 else
26122 echo "configure: failed program was" >&5
26123 cat conftest.s >&5
26125 rm -f conftest.o conftest.s
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
26129 $as_echo "$gcc_cv_as_tls" >&6; }
26130 if test $gcc_cv_as_tls = yes; then
26131 set_have_as_tls=yes
26135 if test $set_have_as_tls = yes ; then
26137 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26141 # Target-specific assembler checks.
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26144 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26145 gcc_cv_ld_static_dynamic=no
26146 gcc_cv_ld_static_option='-Bstatic'
26147 gcc_cv_ld_dynamic_option='-Bdynamic'
26148 if test $in_tree_ld = yes ; then
26149 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
26150 gcc_cv_ld_static_dynamic=yes
26152 elif test x$gcc_cv_ld != x; then
26153 # Check if linker supports -Bstatic/-Bdynamic option
26154 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
26155 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
26156 gcc_cv_ld_static_dynamic=yes
26157 else
26158 case "$target" in
26159 # AIX ld uses -b flags
26160 *-*-aix4.[23]* | *-*-aix[5-9]*)
26161 gcc_cv_ld_static_dynamic=yes
26162 gcc_cv_ld_static_option="-bstatic"
26163 gcc_cv_ld_dynamic_option="-bdynamic"
26165 # HP-UX ld uses -a flags to select between shared and archive.
26166 *-*-hpux*)
26167 if test x"$gnu_ld" = xno; then
26168 gcc_cv_ld_static_dynamic=yes
26169 gcc_cv_ld_static_option="-aarchive_shared"
26170 gcc_cv_ld_dynamic_option="-adefault"
26173 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26174 *-*-solaris2*)
26175 gcc_cv_ld_static_dynamic=yes
26177 esac
26180 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
26182 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26185 cat >>confdefs.h <<_ACEOF
26186 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26187 _ACEOF
26190 cat >>confdefs.h <<_ACEOF
26191 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26192 _ACEOF
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26196 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26199 $as_echo_n "checking linker --version-script option... " >&6; }
26200 gcc_cv_ld_version_script=no
26201 ld_version_script_option=''
26202 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26203 gcc_cv_ld_version_script=yes
26204 ld_version_script_option='--version-script'
26205 elif test x$gcc_cv_ld != x; then
26206 case "$target" in
26207 # Solaris 2 ld always supports -M. It also supports a subset of
26208 # --version-script since Solaris 11.4, but requires
26209 # -z gnu-version-script-compat to activate.
26210 *-*-solaris2*)
26211 gcc_cv_ld_version_script=yes
26212 ld_version_script_option='-M'
26214 esac
26216 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26218 $as_echo "$gcc_cv_ld_version_script" >&6; }
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26222 $as_echo_n "checking linker soname option... " >&6; }
26223 gcc_cv_ld_soname=no
26224 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26225 gcc_cv_ld_soname=yes
26226 ld_soname_option='-soname'
26227 elif test x$gcc_cv_ld != x; then
26228 case "$target" in
26229 *-*-darwin*)
26230 gcc_cv_ld_soname=yes
26231 ld_soname_option='-install_name'
26233 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26234 # ld compatiblity since some Solaris 10 update.
26235 *-*-solaris2*)
26236 gcc_cv_ld_soname=yes
26237 ld_soname_option='-h'
26239 esac
26241 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26243 $as_echo "$gcc_cv_ld_soname" >&6; }
26246 if test x"$demangler_in_ld" = xyes; then
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26248 $as_echo_n "checking linker --demangle support... " >&6; }
26249 gcc_cv_ld_demangle=no
26250 if test $in_tree_ld = yes; then
26251 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 \
26252 gcc_cv_ld_demangle=yes
26254 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26255 # Check if the GNU linker supports --demangle option
26256 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26257 gcc_cv_ld_demangle=yes
26260 if test x"$gcc_cv_ld_demangle" = xyes; then
26262 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26266 $as_echo "$gcc_cv_ld_demangle" >&6; }
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26270 $as_echo_n "checking linker plugin support... " >&6; }
26271 gcc_cv_lto_plugin=0
26272 if test -f liblto_plugin.la; then
26273 save_ld_ver="$ld_ver"
26274 save_ld_vers_major="$ld_vers_major"
26275 save_ld_vers_minor="$ld_vers_minor"
26276 save_ld_is_gold="$ld_is_gold"
26278 ld_is_gold=no
26280 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26281 ld_ver="GNU ld"
26282 # FIXME: ld_is_gold?
26283 ld_vers_major="$gcc_cv_gld_major_version"
26284 ld_vers_minor="$gcc_cv_gld_minor_version"
26285 else
26286 # Determine plugin linker version.
26287 # FIXME: Partial duplicate from above, generalize.
26288 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26289 if echo "$ld_ver" | grep GNU > /dev/null; then
26290 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26291 ld_is_gold=yes
26292 ld_vers=`echo $ld_ver | sed -n \
26293 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26294 else
26295 ld_vers=`echo $ld_ver | sed -n \
26296 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26298 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26299 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26303 # Determine plugin support.
26304 if echo "$ld_ver" | grep GNU > /dev/null; then
26305 # Require GNU ld or gold 2.21+ for plugin support by default.
26306 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26307 gcc_cv_lto_plugin=2
26308 elif test "$ld_is_mold" = yes; then
26309 gcc_cv_lto_plugin=2
26310 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26311 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26312 gcc_cv_lto_plugin=1
26316 ld_ver="$save_ld_ver"
26317 ld_vers_major="$save_ld_vers_major"
26318 ld_vers_minor="$save_ld_vers_minor"
26319 ld_is_gold="$save_ld_is_gold"
26322 cat >>confdefs.h <<_ACEOF
26323 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26324 _ACEOF
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26327 $as_echo "$gcc_cv_lto_plugin" >&6; }
26329 # Target OS-specific assembler checks.
26331 case "$target_os" in
26332 darwin*)
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26334 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26335 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26336 $as_echo_n "(cached) " >&6
26337 else
26338 gcc_cv_as_mmacosx_version_min=no
26339 if test x$gcc_cv_as != x; then
26340 $as_echo '.text' > conftest.s
26341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26343 (eval $ac_try) 2>&5
26344 ac_status=$?
26345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26346 test $ac_status = 0; }; }
26347 then
26348 gcc_cv_as_mmacosx_version_min=yes
26349 else
26350 echo "configure: failed program was" >&5
26351 cat conftest.s >&5
26353 rm -f conftest.o conftest.s
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26357 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26358 if test $gcc_cv_as_mmacosx_version_min = yes; then
26360 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26365 esac
26367 # Target CPU-specific assembler checks.
26369 case "$target" in
26370 aarch64*-*-*)
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26372 $as_echo_n "checking assembler for -mabi option... " >&6; }
26373 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26374 $as_echo_n "(cached) " >&6
26375 else
26376 gcc_cv_as_aarch64_mabi=no
26377 if test x$gcc_cv_as != x; then
26378 $as_echo '.text' > conftest.s
26379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26381 (eval $ac_try) 2>&5
26382 ac_status=$?
26383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26384 test $ac_status = 0; }; }
26385 then
26386 gcc_cv_as_aarch64_mabi=yes
26387 else
26388 echo "configure: failed program was" >&5
26389 cat conftest.s >&5
26391 rm -f conftest.o conftest.s
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26395 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26398 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26400 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26402 else
26403 if test x$with_abi = xilp32; then
26404 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26405 Upgrade the Assembler." "$LINENO" 5
26407 if test x"$with_multilib_list" = xdefault; then
26408 TM_MULTILIB_CONFIG=lp64
26409 else
26410 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26411 for aarch64_multilib in ${aarch64_multilibs}; do
26412 case ${aarch64_multilib} in
26413 ilp32)
26414 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26415 Upgrade the Assembler." "$LINENO" 5
26419 esac
26420 done
26423 # Check if we have binutils support for relocations types needed by -fpic
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26425 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26426 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26427 $as_echo_n "(cached) " >&6
26428 else
26429 gcc_cv_as_aarch64_picreloc=no
26430 if test x$gcc_cv_as != x; then
26431 $as_echo '
26432 .text
26433 ldr x0, [x2, #:gotpage_lo15:globalsym]
26434 ' > conftest.s
26435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26437 (eval $ac_try) 2>&5
26438 ac_status=$?
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; }
26441 then
26442 gcc_cv_as_aarch64_picreloc=yes
26443 else
26444 echo "configure: failed program was" >&5
26445 cat conftest.s >&5
26447 rm -f conftest.o conftest.s
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26451 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26452 if test $gcc_cv_as_aarch64_picreloc = yes; then
26454 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26458 # Enable Branch Target Identification Mechanism and Return Address
26459 # Signing by default.
26460 # Check whether --enable-standard-branch-protection was given.
26461 if test "${enable_standard_branch_protection+set}" = set; then :
26462 enableval=$enable_standard_branch_protection;
26463 case $enableval in
26464 yes)
26465 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26470 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26471 Valid choices are 'yes' and 'no'." "$LINENO" 5
26473 esac
26477 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26478 # Check whether --enable-fix-cortex-a53-835769 was given.
26479 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26480 enableval=$enable_fix_cortex_a53_835769;
26481 case $enableval in
26482 yes)
26483 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26488 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26489 Valid choices are 'yes' and 'no'." "$LINENO" 5
26492 esac
26496 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26497 # Check whether --enable-fix-cortex-a53-843419 was given.
26498 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26499 enableval=$enable_fix_cortex_a53_843419;
26500 case $enableval in
26501 yes)
26502 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26507 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26508 Valid choices are 'yes' and 'no'." "$LINENO" 5
26511 esac
26517 # All TARGET_ABI_OSF targets.
26518 alpha*-*-linux* | alpha*-*-*bsd*)
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26520 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26521 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26522 $as_echo_n "(cached) " >&6
26523 else
26524 gcc_cv_as_alpha_explicit_relocs=no
26525 if test x$gcc_cv_as != x; then
26526 $as_echo ' .set nomacro
26527 .text
26528 extbl $3, $2, $3 !lituse_bytoff!1
26529 ldq $2, a($29) !literal!1
26530 ldq $4, b($29) !literal!2
26531 ldq_u $3, 0($2) !lituse_base!1
26532 ldq $27, f($29) !literal!5
26533 jsr $26, ($27), f !lituse_jsr!5
26534 ldah $29, 0($26) !gpdisp!3
26535 lda $0, c($29) !gprel
26536 ldah $1, d($29) !gprelhigh
26537 lda $1, d($1) !gprellow
26538 lda $29, 0($29) !gpdisp!3' > conftest.s
26539 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26541 (eval $ac_try) 2>&5
26542 ac_status=$?
26543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26544 test $ac_status = 0; }; }
26545 then
26546 gcc_cv_as_alpha_explicit_relocs=yes
26547 else
26548 echo "configure: failed program was" >&5
26549 cat conftest.s >&5
26551 rm -f conftest.o conftest.s
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26555 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26556 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26558 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26563 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26564 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26565 $as_echo_n "(cached) " >&6
26566 else
26567 gcc_cv_as_alpha_jsrdirect_relocs=no
26568 if test x$gcc_cv_as != x; then
26569 $as_echo ' .set nomacro
26570 .text
26571 ldq $27, a($29) !literal!1
26572 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26575 (eval $ac_try) 2>&5
26576 ac_status=$?
26577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26578 test $ac_status = 0; }; }
26579 then
26580 gcc_cv_as_alpha_jsrdirect_relocs=yes
26581 else
26582 echo "configure: failed program was" >&5
26583 cat conftest.s >&5
26585 rm -f conftest.o conftest.s
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26589 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26590 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26592 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26598 avr-*-*)
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26600 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26601 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26602 $as_echo_n "(cached) " >&6
26603 else
26604 gcc_cv_as_avr_mlink_relax=no
26605 if test x$gcc_cv_as != x; then
26606 $as_echo '.text' > conftest.s
26607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26609 (eval $ac_try) 2>&5
26610 ac_status=$?
26611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26612 test $ac_status = 0; }; }
26613 then
26614 gcc_cv_as_avr_mlink_relax=yes
26615 else
26616 echo "configure: failed program was" >&5
26617 cat conftest.s >&5
26619 rm -f conftest.o conftest.s
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26623 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26624 if test $gcc_cv_as_avr_mlink_relax = yes; then
26626 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26632 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26633 if ${gcc_cv_as_avr_mrmw+:} false; then :
26634 $as_echo_n "(cached) " >&6
26635 else
26636 gcc_cv_as_avr_mrmw=no
26637 if test x$gcc_cv_as != x; then
26638 $as_echo '.text' > conftest.s
26639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26641 (eval $ac_try) 2>&5
26642 ac_status=$?
26643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26644 test $ac_status = 0; }; }
26645 then
26646 gcc_cv_as_avr_mrmw=yes
26647 else
26648 echo "configure: failed program was" >&5
26649 cat conftest.s >&5
26651 rm -f conftest.o conftest.s
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26655 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26656 if test $gcc_cv_as_avr_mrmw = yes; then
26658 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26664 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26665 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26666 $as_echo_n "(cached) " >&6
26667 else
26668 gcc_cv_as_avr_mgccisr=no
26669 if test x$gcc_cv_as != x; then
26670 $as_echo '.text
26671 __gcc_isr 1
26672 __gcc_isr 2
26673 __gcc_isr 0,r24
26674 ' > conftest.s
26675 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26677 (eval $ac_try) 2>&5
26678 ac_status=$?
26679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26680 test $ac_status = 0; }; }
26681 then
26682 gcc_cv_as_avr_mgccisr=yes
26683 else
26684 echo "configure: failed program was" >&5
26685 cat conftest.s >&5
26687 rm -f conftest.o conftest.s
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26691 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26692 if test $gcc_cv_as_avr_mgccisr = yes; then
26694 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26699 # Check how default linker description file implements .rodata for
26700 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26701 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26703 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26704 cat > conftest.s <<EOF
26705 .section .rodata,"a",@progbits
26706 .global xxvaryy
26707 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26708 xxvaryy:
26709 .word 1
26711 rm -f conftest.nm
26712 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26714 (eval $ac_try) 2>&5
26715 ac_status=$?
26716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26717 test $ac_status = 0; }; }
26718 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26720 (eval $ac_try) 2>&5
26721 ac_status=$?
26722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26723 test $ac_status = 0; }; }
26724 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; }
26730 if test -s conftest.nm
26731 then
26732 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26734 $as_echo "yes" >&6; }
26736 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26738 else
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26740 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26741 echo "$as_me: nm output was" >&5
26742 cat conftest.nm >&5
26743 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26744 { $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
26745 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26747 else
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26749 $as_echo "test failed" >&6; }
26750 echo "$as_me: failed program was" >&5
26751 cat conftest.s >&5
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26753 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26755 rm -f conftest.s conftest.o conftest.elf conftest.nm
26758 cris-*-*)
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26760 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26761 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26762 $as_echo_n "(cached) " >&6
26763 else
26764 gcc_cv_as_cris_no_mul_bug=no
26765 if test x$gcc_cv_as != x; then
26766 $as_echo '.text' > conftest.s
26767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26769 (eval $ac_try) 2>&5
26770 ac_status=$?
26771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26772 test $ac_status = 0; }; }
26773 then
26774 gcc_cv_as_cris_no_mul_bug=yes
26775 else
26776 echo "configure: failed program was" >&5
26777 cat conftest.s >&5
26779 rm -f conftest.o conftest.s
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26783 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26784 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26786 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26792 sparc*-*-*)
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26794 $as_echo_n "checking assembler for -relax option... " >&6; }
26795 if ${gcc_cv_as_sparc_relax+:} false; then :
26796 $as_echo_n "(cached) " >&6
26797 else
26798 gcc_cv_as_sparc_relax=no
26799 if test x$gcc_cv_as != x; then
26800 $as_echo '.text' > conftest.s
26801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26803 (eval $ac_try) 2>&5
26804 ac_status=$?
26805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26806 test $ac_status = 0; }; }
26807 then
26808 gcc_cv_as_sparc_relax=yes
26809 else
26810 echo "configure: failed program was" >&5
26811 cat conftest.s >&5
26813 rm -f conftest.o conftest.s
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26817 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26818 if test $gcc_cv_as_sparc_relax = yes; then
26820 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26826 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26827 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26828 $as_echo_n "(cached) " >&6
26829 else
26830 gcc_cv_as_sparc_gotdata_op=no
26831 if test x$gcc_cv_as != x; then
26832 $as_echo '.text
26833 .align 4
26834 foo:
26836 bar:
26837 sethi %gdop_hix22(foo), %g1
26838 xor %g1, %gdop_lox10(foo), %g1
26839 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26842 (eval $ac_try) 2>&5
26843 ac_status=$?
26844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26845 test $ac_status = 0; }; }
26846 then
26847 if test x$gcc_cv_ld != x \
26848 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26849 if test x$gcc_cv_objdump != x; then
26850 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26851 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26852 gcc_cv_as_sparc_gotdata_op=no
26853 else
26854 gcc_cv_as_sparc_gotdata_op=yes
26858 rm -f conftest
26859 else
26860 echo "configure: failed program was" >&5
26861 cat conftest.s >&5
26863 rm -f conftest.o conftest.s
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26867 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26868 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26870 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26876 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26877 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26878 $as_echo_n "(cached) " >&6
26879 else
26880 gcc_cv_as_sparc_ua_pcrel=no
26881 if test x$gcc_cv_as != x; then
26882 $as_echo '.text
26883 foo:
26885 .data
26886 .align 4
26887 .byte 0
26888 .uaword %r_disp32(foo)' > conftest.s
26889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26894 test $ac_status = 0; }; }
26895 then
26896 if test x$gcc_cv_ld != x \
26897 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26898 gcc_cv_as_sparc_ua_pcrel=yes
26900 rm -f conftest
26901 else
26902 echo "configure: failed program was" >&5
26903 cat conftest.s >&5
26905 rm -f conftest.o conftest.s
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26909 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26910 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26912 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26916 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26917 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26918 $as_echo_n "(cached) " >&6
26919 else
26920 gcc_cv_as_sparc_ua_pcrel_hidden=no
26921 if test x$gcc_cv_as != x; then
26922 $as_echo '.data
26923 .align 4
26924 .byte 0x31
26925 .uaword %r_disp32(foo)
26926 .byte 0x32, 0x33, 0x34
26927 .global foo
26928 .hidden foo
26929 foo:
26930 .skip 4' > conftest.s
26931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26933 (eval $ac_try) 2>&5
26934 ac_status=$?
26935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26936 test $ac_status = 0; }; }
26937 then
26938 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26939 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26940 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26941 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26942 if $gcc_cv_objdump -R conftest 2> /dev/null \
26943 | grep 'DISP32' > /dev/null 2>&1; then
26945 else
26946 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26949 rm -f conftest
26950 else
26951 echo "configure: failed program was" >&5
26952 cat conftest.s >&5
26954 rm -f conftest.o conftest.s
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26958 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26959 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26961 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26967 # unaligned pcrel relocs
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26970 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26971 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26972 $as_echo_n "(cached) " >&6
26973 else
26974 gcc_cv_as_sparc_offsetable_lo10=no
26975 if test x$gcc_cv_as != x; then
26976 $as_echo '.text
26977 or %g1, %lo(ab) + 12, %g1
26978 or %g1, %lo(ab + 12), %g1' > conftest.s
26979 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26981 (eval $ac_try) 2>&5
26982 ac_status=$?
26983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26984 test $ac_status = 0; }; }
26985 then
26986 if test x$gcc_cv_objdump != x \
26987 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26988 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26989 gcc_cv_as_sparc_offsetable_lo10=yes
26991 else
26992 echo "configure: failed program was" >&5
26993 cat conftest.s >&5
26995 rm -f conftest.o conftest.s
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26999 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
27000 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
27002 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
27008 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
27009 if ${gcc_cv_as_sparc_fmaf+:} false; then :
27010 $as_echo_n "(cached) " >&6
27011 else
27012 gcc_cv_as_sparc_fmaf=no
27013 if test x$gcc_cv_as != x; then
27014 $as_echo '.text
27015 .register %g2, #scratch
27016 .register %g3, #scratch
27017 .align 4
27018 fmaddd %f0, %f2, %f4, %f6
27019 addxccc %g1, %g2, %g3
27020 fsrl32 %f2, %f4, %f8
27021 fnaddd %f10, %f12, %f14' > conftest.s
27022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
27023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27024 (eval $ac_try) 2>&5
27025 ac_status=$?
27026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27027 test $ac_status = 0; }; }
27028 then
27029 gcc_cv_as_sparc_fmaf=yes
27030 else
27031 echo "configure: failed program was" >&5
27032 cat conftest.s >&5
27034 rm -f conftest.o conftest.s
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
27038 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
27039 if test $gcc_cv_as_sparc_fmaf = yes; then
27041 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
27047 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
27048 if ${gcc_cv_as_sparc_sparc4+:} false; then :
27049 $as_echo_n "(cached) " >&6
27050 else
27051 gcc_cv_as_sparc_sparc4=no
27052 if test x$gcc_cv_as != x; then
27053 $as_echo '.text
27054 .register %g2, #scratch
27055 .register %g3, #scratch
27056 .align 4
27057 cxbe %g2, %g3, 1f
27058 1: cwbneg %g2, %g3, 1f
27059 1: sha1
27061 aes_kexpand0 %f4, %f6, %f8
27062 des_round %f38, %f40, %f42, %f44
27063 camellia_f %f54, %f56, %f58, %f60
27064 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
27065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
27066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27067 (eval $ac_try) 2>&5
27068 ac_status=$?
27069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27070 test $ac_status = 0; }; }
27071 then
27072 gcc_cv_as_sparc_sparc4=yes
27073 else
27074 echo "configure: failed program was" >&5
27075 cat conftest.s >&5
27077 rm -f conftest.o conftest.s
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
27081 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
27082 if test $gcc_cv_as_sparc_sparc4 = yes; then
27084 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
27090 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
27091 if ${gcc_cv_as_sparc_sparc5+:} false; then :
27092 $as_echo_n "(cached) " >&6
27093 else
27094 gcc_cv_as_sparc_sparc5=no
27095 if test x$gcc_cv_as != x; then
27096 $as_echo '.text
27097 .register %g2, #scratch
27098 .register %g3, #scratch
27099 .align 4
27100 subxc %g1, %g2, %g3
27101 fpadd8 %f0, %f2, %f4' > conftest.s
27102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
27103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27104 (eval $ac_try) 2>&5
27105 ac_status=$?
27106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27107 test $ac_status = 0; }; }
27108 then
27109 gcc_cv_as_sparc_sparc5=yes
27110 else
27111 echo "configure: failed program was" >&5
27112 cat conftest.s >&5
27114 rm -f conftest.o conftest.s
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
27118 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
27119 if test $gcc_cv_as_sparc_sparc5 = yes; then
27121 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
27127 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
27128 if ${gcc_cv_as_sparc_sparc6+:} false; then :
27129 $as_echo_n "(cached) " >&6
27130 else
27131 gcc_cv_as_sparc_sparc6=no
27132 if test x$gcc_cv_as != x; then
27133 $as_echo '.text
27134 .register %g2, #scratch
27135 .register %g3, #scratch
27136 .align 4
27137 rd %entropy, %g1
27138 fpsll64x %f0, %f2, %f4' > conftest.s
27139 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27141 (eval $ac_try) 2>&5
27142 ac_status=$?
27143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27144 test $ac_status = 0; }; }
27145 then
27146 gcc_cv_as_sparc_sparc6=yes
27147 else
27148 echo "configure: failed program was" >&5
27149 cat conftest.s >&5
27151 rm -f conftest.o conftest.s
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27155 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27156 if test $gcc_cv_as_sparc_sparc6 = yes; then
27158 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27164 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27165 if ${gcc_cv_as_sparc_leon+:} false; then :
27166 $as_echo_n "(cached) " >&6
27167 else
27168 gcc_cv_as_sparc_leon=no
27169 if test x$gcc_cv_as != x; then
27170 $as_echo '.text
27171 .register %g2, #scratch
27172 .register %g3, #scratch
27173 .align 4
27174 smac %g2, %g3, %g1
27175 umac %g2, %g3, %g1
27176 casa [%g2] 0xb, %g3, %g1' > conftest.s
27177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27179 (eval $ac_try) 2>&5
27180 ac_status=$?
27181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27182 test $ac_status = 0; }; }
27183 then
27184 gcc_cv_as_sparc_leon=yes
27185 else
27186 echo "configure: failed program was" >&5
27187 cat conftest.s >&5
27189 rm -f conftest.o conftest.s
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27193 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27194 if test $gcc_cv_as_sparc_leon = yes; then
27196 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27202 i[34567]86-*-* | x86_64-*-*)
27203 case $target_os in
27204 cygwin*)
27205 # Full C++ conformance when using a shared libstdc++-v3 requires some
27206 # support from the Cygwin DLL, which in more recent versions exports
27207 # wrappers to aid in interposing and redirecting operators new, delete,
27208 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27209 # are configuring for a version of Cygwin that exports the wrappers.
27210 if test x$host = x$target && test x$host_cpu = xi686; then
27211 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27212 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
27213 gcc_ac_cygwin_dll_wrappers=yes
27214 else
27215 gcc_ac_cygwin_dll_wrappers=no
27218 else
27219 # Can't check presence of libc functions during cross-compile, so
27220 # we just have to assume we're building for an up-to-date target.
27221 gcc_ac_cygwin_dll_wrappers=yes
27224 cat >>confdefs.h <<_ACEOF
27225 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27226 _ACEOF
27228 esac
27229 case $target_os in
27230 cygwin* | pe | mingw32*)
27231 # Recent binutils allows the three-operand form of ".comm" on PE. This
27232 # definition is used unconditionally to initialise the default state of
27233 # the target option variable that governs usage of the feature.
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27235 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27236 if ${gcc_cv_as_comm_has_align+:} false; then :
27237 $as_echo_n "(cached) " >&6
27238 else
27239 gcc_cv_as_comm_has_align=no
27240 if test x$gcc_cv_as != x; then
27241 $as_echo '.comm foo,1,32' > conftest.s
27242 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27244 (eval $ac_try) 2>&5
27245 ac_status=$?
27246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27247 test $ac_status = 0; }; }
27248 then
27249 gcc_cv_as_comm_has_align=yes
27250 else
27251 echo "configure: failed program was" >&5
27252 cat conftest.s >&5
27254 rm -f conftest.o conftest.s
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27258 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27262 cat >>confdefs.h <<_ACEOF
27263 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27264 _ACEOF
27266 # Used for DWARF 2 in PE
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27268 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27269 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27270 $as_echo_n "(cached) " >&6
27271 else
27272 gcc_cv_as_ix86_pe_secrel32=no
27273 if test x$gcc_cv_as != x; then
27274 $as_echo '.text
27275 foo: nop
27276 .data
27277 .secrel32 foo' > conftest.s
27278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27280 (eval $ac_try) 2>&5
27281 ac_status=$?
27282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27283 test $ac_status = 0; }; }
27284 then
27285 if test x$gcc_cv_ld != x \
27286 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27287 gcc_cv_as_ix86_pe_secrel32=yes
27289 rm -f conftest
27290 else
27291 echo "configure: failed program was" >&5
27292 cat conftest.s >&5
27294 rm -f conftest.o conftest.s
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27298 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27299 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27301 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27305 # Test if the assembler supports the extended form of the .section
27306 # directive that specifies section alignment. LTO support uses this,
27307 # but normally only after installation, so we warn but don't fail the
27308 # configure if LTO is enabled but the assembler does not support it.
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27310 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27311 if ${gcc_cv_as_section_has_align+:} false; then :
27312 $as_echo_n "(cached) " >&6
27313 else
27314 gcc_cv_as_section_has_align=no
27315 if test x$gcc_cv_as != x; then
27316 $as_echo '.section lto_test,"dr0"' > conftest.s
27317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27319 (eval $ac_try) 2>&5
27320 ac_status=$?
27321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27322 test $ac_status = 0; }; }
27323 then
27324 gcc_cv_as_section_has_align=yes
27325 else
27326 echo "configure: failed program was" >&5
27327 cat conftest.s >&5
27329 rm -f conftest.o conftest.s
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27333 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27336 if test x$gcc_cv_as_section_has_align != xyes; then
27337 case ",$enable_languages," in
27338 *,lto,*)
27339 { $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
27340 $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;}
27342 esac
27345 esac
27346 case $target_os in
27347 darwin2* | darwin19*)
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27349 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27350 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27351 $as_echo_n "(cached) " >&6
27352 else
27353 gcc_cv_as_mllvm_x86_pad_for_align=no
27354 if test x$gcc_cv_as != x; then
27355 $as_echo '.text' > conftest.s
27356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27358 (eval $ac_try) 2>&5
27359 ac_status=$?
27360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27361 test $ac_status = 0; }; }
27362 then
27363 gcc_cv_as_mllvm_x86_pad_for_align=yes
27364 else
27365 echo "configure: failed program was" >&5
27366 cat conftest.s >&5
27368 rm -f conftest.o conftest.s
27371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27372 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27373 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27375 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27380 esac
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27383 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27384 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27385 $as_echo_n "(cached) " >&6
27386 else
27387 gcc_cv_as_ix86_xbrace_comment=no
27388 if test x$gcc_cv_as != x; then
27389 $as_echo '.text' > conftest.s
27390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27392 (eval $ac_try) 2>&5
27393 ac_status=$?
27394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27395 test $ac_status = 0; }; }
27396 then
27397 gcc_cv_as_ix86_xbrace_comment=yes
27398 else
27399 echo "configure: failed program was" >&5
27400 cat conftest.s >&5
27402 rm -f conftest.o conftest.s
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27406 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27407 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27409 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27415 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27416 if ${gcc_cv_as_ix86_filds+:} false; then :
27417 $as_echo_n "(cached) " >&6
27418 else
27419 gcc_cv_as_ix86_filds=no
27420 if test x$gcc_cv_as != x; then
27421 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27422 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27424 (eval $ac_try) 2>&5
27425 ac_status=$?
27426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27427 test $ac_status = 0; }; }
27428 then
27429 gcc_cv_as_ix86_filds=yes
27430 else
27431 echo "configure: failed program was" >&5
27432 cat conftest.s >&5
27434 rm -f conftest.o conftest.s
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27438 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27439 if test $gcc_cv_as_ix86_filds = yes; then
27441 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27447 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27448 if ${gcc_cv_as_ix86_fildq+:} false; then :
27449 $as_echo_n "(cached) " >&6
27450 else
27451 gcc_cv_as_ix86_fildq=no
27452 if test x$gcc_cv_as != x; then
27453 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27456 (eval $ac_try) 2>&5
27457 ac_status=$?
27458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27459 test $ac_status = 0; }; }
27460 then
27461 gcc_cv_as_ix86_fildq=yes
27462 else
27463 echo "configure: failed program was" >&5
27464 cat conftest.s >&5
27466 rm -f conftest.o conftest.s
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27470 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27471 if test $gcc_cv_as_ix86_fildq = yes; then
27473 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27479 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27480 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27481 $as_echo_n "(cached) " >&6
27482 else
27483 gcc_cv_as_ix86_cmov_sun_syntax=no
27484 if test x$gcc_cv_as != x; then
27485 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27486 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27488 (eval $ac_try) 2>&5
27489 ac_status=$?
27490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27491 test $ac_status = 0; }; }
27492 then
27493 gcc_cv_as_ix86_cmov_sun_syntax=yes
27494 else
27495 echo "configure: failed program was" >&5
27496 cat conftest.s >&5
27498 rm -f conftest.o conftest.s
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27502 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27503 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27505 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27511 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27512 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27513 $as_echo_n "(cached) " >&6
27514 else
27515 gcc_cv_as_ix86_ffreep=no
27516 if test x$gcc_cv_as != x; then
27517 $as_echo 'ffreep %st(1)' > conftest.s
27518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27520 (eval $ac_try) 2>&5
27521 ac_status=$?
27522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27523 test $ac_status = 0; }; }
27524 then
27525 gcc_cv_as_ix86_ffreep=yes
27526 else
27527 echo "configure: failed program was" >&5
27528 cat conftest.s >&5
27530 rm -f conftest.o conftest.s
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27534 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27535 if test $gcc_cv_as_ix86_ffreep = yes; then
27537 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27543 $as_echo_n "checking assembler for .quad directive... " >&6; }
27544 if ${gcc_cv_as_ix86_quad+:} false; then :
27545 $as_echo_n "(cached) " >&6
27546 else
27547 gcc_cv_as_ix86_quad=no
27548 if test x$gcc_cv_as != x; then
27549 $as_echo '.quad 0' > conftest.s
27550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27552 (eval $ac_try) 2>&5
27553 ac_status=$?
27554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27555 test $ac_status = 0; }; }
27556 then
27557 gcc_cv_as_ix86_quad=yes
27558 else
27559 echo "configure: failed program was" >&5
27560 cat conftest.s >&5
27562 rm -f conftest.o conftest.s
27565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27566 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27567 if test $gcc_cv_as_ix86_quad = yes; then
27569 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27575 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27576 if ${gcc_cv_as_ix86_sahf+:} false; then :
27577 $as_echo_n "(cached) " >&6
27578 else
27579 gcc_cv_as_ix86_sahf=no
27580 if test x$gcc_cv_as != x; then
27581 $as_echo '.code64
27582 sahf' > conftest.s
27583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27585 (eval $ac_try) 2>&5
27586 ac_status=$?
27587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27588 test $ac_status = 0; }; }
27589 then
27590 gcc_cv_as_ix86_sahf=yes
27591 else
27592 echo "configure: failed program was" >&5
27593 cat conftest.s >&5
27595 rm -f conftest.o conftest.s
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27599 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27600 if test $gcc_cv_as_ix86_sahf = yes; then
27602 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27608 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27609 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27610 $as_echo_n "(cached) " >&6
27611 else
27612 gcc_cv_as_ix86_interunit_movq=no
27613 if test x$gcc_cv_as != x; then
27614 $as_echo '.code64
27615 movq %mm0, %rax
27616 movq %rax, %xmm0' > conftest.s
27617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27619 (eval $ac_try) 2>&5
27620 ac_status=$?
27621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27622 test $ac_status = 0; }; }
27623 then
27624 gcc_cv_as_ix86_interunit_movq=yes
27625 else
27626 echo "configure: failed program was" >&5
27627 cat conftest.s >&5
27629 rm -f conftest.o conftest.s
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27633 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27637 cat >>confdefs.h <<_ACEOF
27638 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27639 _ACEOF
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27643 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27644 if ${gcc_cv_as_ix86_hle+:} false; then :
27645 $as_echo_n "(cached) " >&6
27646 else
27647 gcc_cv_as_ix86_hle=no
27648 if test x$gcc_cv_as != x; then
27649 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27652 (eval $ac_try) 2>&5
27653 ac_status=$?
27654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27655 test $ac_status = 0; }; }
27656 then
27657 gcc_cv_as_ix86_hle=yes
27658 else
27659 echo "configure: failed program was" >&5
27660 cat conftest.s >&5
27662 rm -f conftest.o conftest.s
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27666 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27667 if test $gcc_cv_as_ix86_hle = yes; then
27669 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27675 $as_echo_n "checking assembler for swap suffix... " >&6; }
27676 if ${gcc_cv_as_ix86_swap+:} false; then :
27677 $as_echo_n "(cached) " >&6
27678 else
27679 gcc_cv_as_ix86_swap=no
27680 if test x$gcc_cv_as != x; then
27681 $as_echo 'movl.s %esp, %ebp' > conftest.s
27682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27684 (eval $ac_try) 2>&5
27685 ac_status=$?
27686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27687 test $ac_status = 0; }; }
27688 then
27689 gcc_cv_as_ix86_swap=yes
27690 else
27691 echo "configure: failed program was" >&5
27692 cat conftest.s >&5
27694 rm -f conftest.o conftest.s
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27698 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27699 if test $gcc_cv_as_ix86_swap = yes; then
27701 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27707 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27708 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27709 $as_echo_n "(cached) " >&6
27710 else
27711 gcc_cv_as_ix86_diff_sect_delta=no
27712 if test x$gcc_cv_as != x; then
27713 $as_echo '.section .rodata
27714 .L1:
27715 .long .L2-.L1
27716 .long .L3-.L1
27717 .text
27718 .L3: nop
27719 .L2: nop' > 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_diff_sect_delta=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_diff_sect_delta" >&5
27736 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27737 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27739 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27745 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27746 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27747 $as_echo_n "(cached) " >&6
27748 else
27749 gcc_cv_as_ix86_rep_lock_prefix=no
27750 if test x$gcc_cv_as != x; then
27751 $as_echo 'rep movsl
27752 rep ret
27753 rep nop
27754 rep bsf %ecx, %eax
27755 rep bsr %ecx, %eax
27756 lock addl %edi, (%eax,%esi)
27757 lock orl $0, (%esp)' > conftest.s
27758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27760 (eval $ac_try) 2>&5
27761 ac_status=$?
27762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27763 test $ac_status = 0; }; }
27764 then
27765 gcc_cv_as_ix86_rep_lock_prefix=yes
27766 else
27767 echo "configure: failed program was" >&5
27768 cat conftest.s >&5
27770 rm -f conftest.o conftest.s
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27774 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27775 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27777 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27783 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27784 if ${gcc_cv_as_ix86_ud2+:} false; then :
27785 $as_echo_n "(cached) " >&6
27786 else
27787 gcc_cv_as_ix86_ud2=no
27788 if test x$gcc_cv_as != x; then
27789 $as_echo 'ud2' > conftest.s
27790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27792 (eval $ac_try) 2>&5
27793 ac_status=$?
27794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27795 test $ac_status = 0; }; }
27796 then
27797 gcc_cv_as_ix86_ud2=yes
27798 else
27799 echo "configure: failed program was" >&5
27800 cat conftest.s >&5
27802 rm -f conftest.o conftest.s
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27806 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27807 if test $gcc_cv_as_ix86_ud2 = yes; then
27809 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27814 # Enforce 32-bit output with gas and gld.
27815 if test x$gas = xyes; then
27816 as_ix86_gas_32_opt="--32"
27818 if echo "$ld_ver" | grep GNU > /dev/null; then
27819 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27820 ld_ix86_gld_32_opt="-melf_i386_sol2"
27821 else
27822 ld_ix86_gld_32_opt="-melf_i386"
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27827 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27828 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27829 $as_echo_n "(cached) " >&6
27830 else
27831 gcc_cv_as_ix86_tlsgdplt=no
27832 if test x$gcc_cv_as != x; then
27833 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27836 (eval $ac_try) 2>&5
27837 ac_status=$?
27838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27839 test $ac_status = 0; }; }
27840 then
27841 if test x$gcc_cv_ld != x \
27842 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27843 gcc_cv_as_ix86_tlsgdplt=yes
27845 rm -f conftest
27846 else
27847 echo "configure: failed program was" >&5
27848 cat conftest.s >&5
27850 rm -f conftest.o conftest.s
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27854 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27855 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27857 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27862 conftest_s='
27863 .section .tdata,"aw'$tls_section_flag'",@progbits
27864 tls_ld:
27865 .section .text,"ax",@progbits
27866 call tls_ld@tlsldmplt'
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27869 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27870 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27871 $as_echo_n "(cached) " >&6
27872 else
27873 gcc_cv_as_ix86_tlsldmplt=no
27874 if test x$gcc_cv_as != x; then
27875 $as_echo "$conftest_s" > conftest.s
27876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27878 (eval $ac_try) 2>&5
27879 ac_status=$?
27880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27881 test $ac_status = 0; }; }
27882 then
27883 if test x$gcc_cv_ld != x \
27884 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27885 gcc_cv_as_ix86_tlsldmplt=yes
27887 rm -f conftest
27888 else
27889 echo "configure: failed program was" >&5
27890 cat conftest.s >&5
27892 rm -f conftest.o conftest.s
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27896 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27900 cat >>confdefs.h <<_ACEOF
27901 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27902 _ACEOF
27905 conftest_s='
27906 .section .text,"ax",@progbits
27907 .globl _start
27908 .type _start, @function
27909 _start:
27910 leal value@tlsldm(%ebx), %eax
27911 call ___tls_get_addr@plt
27913 .section .tdata,"aw'$tls_section_flag'",@progbits
27914 .type value, @object
27915 value:'
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27917 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27918 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27919 $as_echo_n "(cached) " >&6
27920 else
27921 gcc_cv_as_ix86_tlsldm=no
27922 if test x$gcc_cv_as != x; then
27923 $as_echo "$conftest_s" > conftest.s
27924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27926 (eval $ac_try) 2>&5
27927 ac_status=$?
27928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27929 test $ac_status = 0; }; }
27930 then
27931 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27932 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27933 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27934 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27935 gcc_cv_as_ix86_tlsldm=yes
27938 rm -f conftest
27939 else
27940 echo "configure: failed program was" >&5
27941 cat conftest.s >&5
27943 rm -f conftest.o conftest.s
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27947 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27951 cat >>confdefs.h <<_ACEOF
27952 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27953 _ACEOF
27956 conftest_s='
27957 .data
27958 bar:
27959 .byte 1
27960 .text
27961 .global _start
27962 _start:
27963 cmpl $0, bar@GOT
27964 jmp *_start@GOT'
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27966 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27967 if ${gcc_cv_as_ix86_got32x+:} false; then :
27968 $as_echo_n "(cached) " >&6
27969 else
27970 gcc_cv_as_ix86_got32x=no
27971 if test x$gcc_cv_as != x; then
27972 $as_echo "$conftest_s" > conftest.s
27973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27975 (eval $ac_try) 2>&5
27976 ac_status=$?
27977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27978 test $ac_status = 0; }; }
27979 then
27980 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27981 && test x$gcc_cv_readelf != x \
27982 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27983 | grep R_386_GOT32X > /dev/null 2>&1 \
27984 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27985 if $gcc_cv_objdump -dw conftest 2>&1 \
27986 | grep 0xffffff > /dev/null 2>&1; then
27987 gcc_cv_as_ix86_got32x=no
27988 else
27989 gcc_cv_as_ix86_got32x=yes
27992 rm -f conftest
27993 else
27994 echo "configure: failed program was" >&5
27995 cat conftest.s >&5
27997 rm -f conftest.o conftest.s
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
28001 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
28005 cat >>confdefs.h <<_ACEOF
28006 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
28007 _ACEOF
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
28011 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
28012 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
28013 $as_echo_n "(cached) " >&6
28014 else
28015 gcc_cv_as_ix86_gotoff_in_data=no
28016 if test x$gcc_cv_as != x; then
28017 $as_echo ' .text
28018 .L0:
28020 .data
28021 .long .L0@GOTOFF' > conftest.s
28022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28024 (eval $ac_try) 2>&5
28025 ac_status=$?
28026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28027 test $ac_status = 0; }; }
28028 then
28029 gcc_cv_as_ix86_gotoff_in_data=yes
28030 else
28031 echo "configure: failed program was" >&5
28032 cat conftest.s >&5
28034 rm -f conftest.o conftest.s
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
28038 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
28042 cat >>confdefs.h <<_ACEOF
28043 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
28044 _ACEOF
28047 conftest_s='
28048 .section .text,"ax",@progbits
28049 .globl _start
28050 .type _start, @function
28051 _start:
28052 leal ld@tlsldm(%ecx), %eax
28053 call *___tls_get_addr@GOT(%ecx)
28054 leal gd@tlsgd(%ecx), %eax
28055 call *___tls_get_addr@GOT(%ecx)
28057 .section .tdata,"aw'$tls_section_flag'",@progbits
28058 .type ld, @object
28060 .byte 0
28061 .globl gd
28062 .type gd, @object
28064 .byte 0'
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
28066 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
28067 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
28068 $as_echo_n "(cached) " >&6
28069 else
28070 gcc_cv_as_ix86_tls_get_addr_via_got=no
28071 if test x$gcc_cv_as != x; then
28072 $as_echo "$conftest_s" > conftest.s
28073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28075 (eval $ac_try) 2>&5
28076 ac_status=$?
28077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28078 test $ac_status = 0; }; }
28079 then
28080 if test x$gcc_cv_ld != x \
28081 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
28082 gcc_cv_as_ix86_tls_get_addr_via_got=yes
28084 rm -f conftest
28085 else
28086 echo "configure: failed program was" >&5
28087 cat conftest.s >&5
28089 rm -f conftest.o conftest.s
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
28093 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
28097 cat >>confdefs.h <<_ACEOF
28098 #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`
28099 _ACEOF
28103 ia64*-*-*)
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
28105 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
28106 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
28107 $as_echo_n "(cached) " >&6
28108 else
28109 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
28110 if test x$gcc_cv_as != x; then
28111 $as_echo ' .text
28112 addl r15 = @ltoffx(x#), gp
28114 ld8.mov r16 = [r15], x#
28115 ' > conftest.s
28116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28118 (eval $ac_try) 2>&5
28119 ac_status=$?
28120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28121 test $ac_status = 0; }; }
28122 then
28123 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
28124 else
28125 echo "configure: failed program was" >&5
28126 cat conftest.s >&5
28128 rm -f conftest.o conftest.s
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
28132 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
28133 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
28135 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28142 powerpc*-*-*)
28144 case $target in
28145 *-*-darwin*)
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28147 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28148 if ${gcc_cv_as_machine_directive+:} false; then :
28149 $as_echo_n "(cached) " >&6
28150 else
28151 gcc_cv_as_machine_directive=no
28152 if test x$gcc_cv_as != x; then
28153 $as_echo ' .machine ppc7400' > conftest.s
28154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28156 (eval $ac_try) 2>&5
28157 ac_status=$?
28158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28159 test $ac_status = 0; }; }
28160 then
28161 gcc_cv_as_machine_directive=yes
28162 else
28163 echo "configure: failed program was" >&5
28164 cat conftest.s >&5
28166 rm -f conftest.o conftest.s
28169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28170 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28173 if test x$gcc_cv_as_machine_directive != xyes; then
28174 echo "*** This target requires an assembler supporting \".machine\"" >&2
28175 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
28176 test x$build = x$target && exit 1
28179 esac
28181 case $target in
28182 *-*-aix*) conftest_s=' .machine "pwr5"
28183 .csect .text[PR]
28184 mfcr 3,128';;
28185 *-*-darwin*) conftest_s=' .text
28186 mfcr r3,128';;
28187 *) conftest_s=' .machine power4
28188 .text
28189 mfcr 3,128';;
28190 esac
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28193 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28194 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
28195 $as_echo_n "(cached) " >&6
28196 else
28197 gcc_cv_as_powerpc_mfcrf=no
28198 if test x$gcc_cv_as != x; then
28199 $as_echo "$conftest_s" > conftest.s
28200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28202 (eval $ac_try) 2>&5
28203 ac_status=$?
28204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28205 test $ac_status = 0; }; }
28206 then
28207 gcc_cv_as_powerpc_mfcrf=yes
28208 else
28209 echo "configure: failed program was" >&5
28210 cat conftest.s >&5
28212 rm -f conftest.o conftest.s
28215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28216 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28217 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28219 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28224 case $target in
28225 *-*-aix*) conftest_s=' .csect .text[PR]
28226 LCF..0:
28227 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28228 *-*-darwin*)
28229 conftest_s=' .text
28230 LCF0:
28231 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28232 *) conftest_s=' .text
28233 .LCF0:
28234 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28235 esac
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28238 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28239 if ${gcc_cv_as_powerpc_rel16+:} false; then :
28240 $as_echo_n "(cached) " >&6
28241 else
28242 gcc_cv_as_powerpc_rel16=no
28243 if test x$gcc_cv_as != x; then
28244 $as_echo "$conftest_s" > conftest.s
28245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28247 (eval $ac_try) 2>&5
28248 ac_status=$?
28249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28250 test $ac_status = 0; }; }
28251 then
28252 gcc_cv_as_powerpc_rel16=yes
28253 else
28254 echo "configure: failed program was" >&5
28255 cat conftest.s >&5
28257 rm -f conftest.o conftest.s
28260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28261 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28262 if test $gcc_cv_as_powerpc_rel16 = yes; then
28264 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28269 case $target in
28270 *-*-aix*) conftest_s=' .machine "pwr7"
28271 .csect .text[PR]
28272 lxvd2x 1,2,3';;
28273 *) conftest_s=' .machine power7
28274 .text
28275 lxvd2x 1,2,3';;
28276 esac
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28279 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28280 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28281 $as_echo_n "(cached) " >&6
28282 else
28283 gcc_cv_as_powerpc_vsx=no
28284 if test x$gcc_cv_as != x; then
28285 $as_echo "$conftest_s" > conftest.s
28286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_vsx=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_powerpc_vsx" >&5
28302 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28303 if test $gcc_cv_as_powerpc_vsx = yes; then
28305 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28311 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28312 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28313 $as_echo_n "(cached) " >&6
28314 else
28315 gcc_cv_as_powerpc_gnu_attribute=no
28316 if test x$gcc_cv_as != x; then
28317 $as_echo '.gnu_attribute 4,1' > conftest.s
28318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28320 (eval $ac_try) 2>&5
28321 ac_status=$?
28322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28323 test $ac_status = 0; }; }
28324 then
28325 gcc_cv_as_powerpc_gnu_attribute=yes
28326 else
28327 echo "configure: failed program was" >&5
28328 cat conftest.s >&5
28330 rm -f conftest.o conftest.s
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28334 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28335 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28337 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28343 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28344 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28345 $as_echo_n "(cached) " >&6
28346 else
28347 gcc_cv_as_powerpc_entry_markers=no
28348 if test x$gcc_cv_as != x; then
28349 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28352 (eval $ac_try) 2>&5
28353 ac_status=$?
28354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28355 test $ac_status = 0; }; }
28356 then
28357 gcc_cv_as_powerpc_entry_markers=yes
28358 else
28359 echo "configure: failed program was" >&5
28360 cat conftest.s >&5
28362 rm -f conftest.o conftest.s
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28366 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28367 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28369 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28375 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28376 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28377 $as_echo_n "(cached) " >&6
28378 else
28379 gcc_cv_as_powerpc_pltseq_markers=no
28380 if test x$gcc_cv_as != x; then
28381 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28384 (eval $ac_try) 2>&5
28385 ac_status=$?
28386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28387 test $ac_status = 0; }; }
28388 then
28389 gcc_cv_as_powerpc_pltseq_markers=yes
28390 else
28391 echo "configure: failed program was" >&5
28392 cat conftest.s >&5
28394 rm -f conftest.o conftest.s
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28398 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28399 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28401 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28406 case $target in
28407 *-*-aix*)
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28409 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28410 if ${gcc_cv_as_aix_ref+:} false; then :
28411 $as_echo_n "(cached) " >&6
28412 else
28413 gcc_cv_as_aix_ref=no
28414 if test x$gcc_cv_as != x; then
28415 $as_echo ' .csect stuff[rw]
28416 stuff:
28417 .long 1
28418 .extern sym
28419 .ref sym
28420 ' > conftest.s
28421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28423 (eval $ac_try) 2>&5
28424 ac_status=$?
28425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28426 test $ac_status = 0; }; }
28427 then
28428 gcc_cv_as_aix_ref=yes
28429 else
28430 echo "configure: failed program was" >&5
28431 cat conftest.s >&5
28433 rm -f conftest.o conftest.s
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28437 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28438 if test $gcc_cv_as_aix_ref = yes; then
28440 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28446 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28447 if ${gcc_cv_as_aix_dwloc+:} false; then :
28448 $as_echo_n "(cached) " >&6
28449 else
28450 gcc_cv_as_aix_dwloc=no
28451 if test x$gcc_cv_as != x; then
28452 $as_echo ' .dwsect 0xA0000
28453 Lframe..0:
28454 .vbyte 4,Lframe..0
28455 ' > conftest.s
28456 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_aix_dwloc=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_aix_dwloc" >&5
28472 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28473 if test $gcc_cv_as_aix_dwloc = yes; then
28475 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28480 esac
28483 mips*-*-*)
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28485 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28486 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28487 $as_echo_n "(cached) " >&6
28488 else
28489 gcc_cv_as_mips_explicit_relocs=no
28490 if test x$gcc_cv_as != x; then
28491 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28492 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28494 (eval $ac_try) 2>&5
28495 ac_status=$?
28496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28497 test $ac_status = 0; }; }
28498 then
28499 gcc_cv_as_mips_explicit_relocs=yes
28500 else
28501 echo "configure: failed program was" >&5
28502 cat conftest.s >&5
28504 rm -f conftest.o conftest.s
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28508 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28509 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28510 if test x$target_cpu_default = x
28511 then target_cpu_default=MASK_EXPLICIT_RELOCS
28512 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28518 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28519 if ${gcc_cv_as_mips_no_shared+:} false; then :
28520 $as_echo_n "(cached) " >&6
28521 else
28522 gcc_cv_as_mips_no_shared=no
28523 if test x$gcc_cv_as != x; then
28524 $as_echo 'nop' > conftest.s
28525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28527 (eval $ac_try) 2>&5
28528 ac_status=$?
28529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28530 test $ac_status = 0; }; }
28531 then
28532 gcc_cv_as_mips_no_shared=yes
28533 else
28534 echo "configure: failed program was" >&5
28535 cat conftest.s >&5
28537 rm -f conftest.o conftest.s
28540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28541 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28542 if test $gcc_cv_as_mips_no_shared = yes; then
28544 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28550 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28551 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28552 $as_echo_n "(cached) " >&6
28553 else
28554 gcc_cv_as_mips_gnu_attribute=no
28555 if test x$gcc_cv_as != x; then
28556 $as_echo '.gnu_attribute 4,1' > conftest.s
28557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28559 (eval $ac_try) 2>&5
28560 ac_status=$?
28561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28562 test $ac_status = 0; }; }
28563 then
28564 gcc_cv_as_mips_gnu_attribute=yes
28565 else
28566 echo "configure: failed program was" >&5
28567 cat conftest.s >&5
28569 rm -f conftest.o conftest.s
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28573 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28574 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28576 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28582 $as_echo_n "checking assembler for .module support... " >&6; }
28583 if ${gcc_cv_as_mips_dot_module+:} false; then :
28584 $as_echo_n "(cached) " >&6
28585 else
28586 gcc_cv_as_mips_dot_module=no
28587 if test x$gcc_cv_as != x; then
28588 $as_echo '.module mips2
28589 .module fp=xx' > conftest.s
28590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28592 (eval $ac_try) 2>&5
28593 ac_status=$?
28594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28595 test $ac_status = 0; }; }
28596 then
28597 gcc_cv_as_mips_dot_module=yes
28598 else
28599 echo "configure: failed program was" >&5
28600 cat conftest.s >&5
28602 rm -f conftest.o conftest.s
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28606 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28607 if test $gcc_cv_as_mips_dot_module = yes; then
28609 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28613 if test x$gcc_cv_as_mips_dot_module = xno \
28614 && test x$with_fp_32 != x; then
28615 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28619 $as_echo_n "checking assembler for .micromips support... " >&6; }
28620 if ${gcc_cv_as_micromips_support+:} false; then :
28621 $as_echo_n "(cached) " >&6
28622 else
28623 gcc_cv_as_micromips_support=no
28624 if test x$gcc_cv_as != x; then
28625 $as_echo '.set micromips' > conftest.s
28626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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_micromips_support=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_micromips_support" >&5
28642 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28643 if test $gcc_cv_as_micromips_support = yes; then
28645 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28651 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28652 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28653 $as_echo_n "(cached) " >&6
28654 else
28655 gcc_cv_as_mips_dtprelword=no
28656 if test x$gcc_cv_as != x; then
28657 $as_echo '.section .tdata,"awT",@progbits
28659 .word 2
28660 .text
28661 .dtprelword x+0x8000' > 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_dtprelword=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_dtprelword" >&5
28678 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28679 if test $gcc_cv_as_mips_dtprelword = yes; then
28681 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28687 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28688 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28689 $as_echo_n "(cached) " >&6
28690 else
28691 gcc_cv_as_mips_dspr1_mult=no
28692 if test x$gcc_cv_as != x; then
28693 $as_echo ' .set mips32r2
28694 .set nodspr2
28695 .set dsp
28696 madd $ac3,$4,$5
28697 maddu $ac3,$4,$5
28698 msub $ac3,$4,$5
28699 msubu $ac3,$4,$5
28700 mult $ac3,$4,$5
28701 multu $ac3,$4,$5' > conftest.s
28702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28704 (eval $ac_try) 2>&5
28705 ac_status=$?
28706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28707 test $ac_status = 0; }; }
28708 then
28709 gcc_cv_as_mips_dspr1_mult=yes
28710 else
28711 echo "configure: failed program was" >&5
28712 cat conftest.s >&5
28714 rm -f conftest.o conftest.s
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28718 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28719 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28721 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28727 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28728 gcc_cv_as_ld_jalr_reloc=no
28729 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28730 if test $in_tree_ld = yes ; then
28731 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 \
28732 && test $in_tree_ld_is_elf = yes; then
28733 gcc_cv_as_ld_jalr_reloc=yes
28735 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28736 echo ' .ent x' > conftest.s
28737 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28738 echo ' lw $25,%call16(y)($28)' >> conftest.s
28739 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28740 echo '1: jalr $25' >> conftest.s
28741 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28742 echo '1: jalr $25' >> conftest.s
28743 echo ' .end x' >> conftest.s
28744 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28745 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28746 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28747 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28748 gcc_cv_as_ld_jalr_reloc=yes
28751 rm -f conftest.*
28754 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28755 if test x$target_cpu_default = x; then
28756 target_cpu_default=MASK_RELAX_PIC_CALLS
28757 else
28758 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28762 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28765 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28766 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28767 $as_echo_n "(cached) " >&6
28768 else
28769 gcc_cv_ld_mips_personality_relaxation=no
28770 if test $in_tree_ld = yes ; then
28771 if test "$gcc_cv_gld_major_version" -eq 2 \
28772 -a "$gcc_cv_gld_minor_version" -ge 21 \
28773 -o "$gcc_cv_gld_major_version" -gt 2; then
28774 gcc_cv_ld_mips_personality_relaxation=yes
28776 elif test x$gcc_cv_as != x \
28777 -a x$gcc_cv_ld != x \
28778 -a x$gcc_cv_readelf != x ; then
28779 cat > conftest.s <<EOF
28780 .cfi_startproc
28781 .cfi_personality 0x80,indirect_ptr
28782 .ent test
28783 test:
28785 .end test
28786 .cfi_endproc
28788 .section .data,"aw",@progbits
28789 indirect_ptr:
28790 .dc.a personality
28792 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28793 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28794 if $gcc_cv_readelf -d conftest 2>&1 \
28795 | grep TEXTREL > /dev/null 2>&1; then
28797 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28798 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28800 else
28801 gcc_cv_ld_mips_personality_relaxation=yes
28805 rm -f conftest.s conftest.o conftest
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28808 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28809 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28811 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28816 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28817 if ${gcc_cv_as_mips_nan+:} false; then :
28818 $as_echo_n "(cached) " >&6
28819 else
28820 gcc_cv_as_mips_nan=no
28821 if test x$gcc_cv_as != x; then
28822 $as_echo '' > conftest.s
28823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28825 (eval $ac_try) 2>&5
28826 ac_status=$?
28827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28828 test $ac_status = 0; }; }
28829 then
28830 gcc_cv_as_mips_nan=yes
28831 else
28832 echo "configure: failed program was" >&5
28833 cat conftest.s >&5
28835 rm -f conftest.o conftest.s
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28839 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28840 if test $gcc_cv_as_mips_nan = yes; then
28842 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28846 if test x$gcc_cv_as_mips_nan = xno \
28847 && test x$with_nan != x; then
28848 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28851 msp430-*-*)
28852 # Earlier GAS versions generically support .gnu_attribute, but the
28853 # msp430 assembler will not do anything with it.
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28855 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28856 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28857 $as_echo_n "(cached) " >&6
28858 else
28859 gcc_cv_as_msp430_gnu_attribute=no
28860 if test x$gcc_cv_as != x; then
28861 $as_echo '.gnu_attribute 4,1' > conftest.s
28862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28864 (eval $ac_try) 2>&5
28865 ac_status=$?
28866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28867 test $ac_status = 0; }; }
28868 then
28869 gcc_cv_as_msp430_gnu_attribute=yes
28870 else
28871 echo "configure: failed program was" >&5
28872 cat conftest.s >&5
28874 rm -f conftest.o conftest.s
28877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28878 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28879 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28881 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28886 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28887 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28888 $as_echo_n "(cached) " >&6
28889 else
28890 gcc_cv_as_msp430_mspabi_attribute=no
28891 if test x$gcc_cv_as != x; then
28892 $as_echo '.mspabi_attribute 4,2' > conftest.s
28893 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28895 (eval $ac_try) 2>&5
28896 ac_status=$?
28897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28898 test $ac_status = 0; }; }
28899 then
28900 gcc_cv_as_msp430_mspabi_attribute=yes
28901 else
28902 echo "configure: failed program was" >&5
28903 cat conftest.s >&5
28905 rm -f conftest.o conftest.s
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28909 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28910 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28912 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28916 if test x$enable_newlib_nano_formatted_io = xyes; then
28918 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28922 nios2-*-*)
28923 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28924 # syntax that is documented in the ABI specification.
28925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28926 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28927 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28928 $as_echo_n "(cached) " >&6
28929 else
28930 gcc_cv_as_nios2_gotoff_relocation=no
28931 if test x$gcc_cv_as != x; then
28932 $as_echo ' .extern foo
28933 .data
28934 .long %gotoff(foo)' > conftest.s
28935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28937 (eval $ac_try) 2>&5
28938 ac_status=$?
28939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28940 test $ac_status = 0; }; }
28941 then
28942 gcc_cv_as_nios2_gotoff_relocation=yes
28943 else
28944 echo "configure: failed program was" >&5
28945 cat conftest.s >&5
28947 rm -f conftest.o conftest.s
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28951 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28952 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28954 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28959 riscv*-*-*)
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28961 $as_echo_n "checking assembler for .attribute support... " >&6; }
28962 if ${gcc_cv_as_riscv_attribute+:} false; then :
28963 $as_echo_n "(cached) " >&6
28964 else
28965 gcc_cv_as_riscv_attribute=no
28966 if test x$gcc_cv_as != x; then
28967 $as_echo '.attribute stack_align,4' > conftest.s
28968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28970 (eval $ac_try) 2>&5
28971 ac_status=$?
28972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28973 test $ac_status = 0; }; }
28974 then
28975 gcc_cv_as_riscv_attribute=yes
28976 else
28977 echo "configure: failed program was" >&5
28978 cat conftest.s >&5
28980 rm -f conftest.o conftest.s
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28984 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28985 if test $gcc_cv_as_riscv_attribute = yes; then
28987 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28992 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28993 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28994 $as_echo_n "(cached) " >&6
28995 else
28996 gcc_cv_as_riscv_isa_spec=no
28997 if test x$gcc_cv_as != x; then
28998 $as_echo '' > conftest.s
28999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
29000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29001 (eval $ac_try) 2>&5
29002 ac_status=$?
29003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29004 test $ac_status = 0; }; }
29005 then
29006 gcc_cv_as_riscv_isa_spec=yes
29007 else
29008 echo "configure: failed program was" >&5
29009 cat conftest.s >&5
29011 rm -f conftest.o conftest.s
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
29015 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
29016 if test $gcc_cv_as_riscv_isa_spec = yes; then
29018 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
29023 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
29024 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
29025 $as_echo_n "(cached) " >&6
29026 else
29027 gcc_cv_as_riscv_march_zifencei=no
29028 if test x$gcc_cv_as != x; then
29029 $as_echo '' > conftest.s
29030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
29031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29032 (eval $ac_try) 2>&5
29033 ac_status=$?
29034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29035 test $ac_status = 0; }; }
29036 then
29037 gcc_cv_as_riscv_march_zifencei=yes
29038 else
29039 echo "configure: failed program was" >&5
29040 cat conftest.s >&5
29042 rm -f conftest.o conftest.s
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
29046 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
29047 if test $gcc_cv_as_riscv_march_zifencei = yes; then
29049 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
29054 loongarch*-*-*)
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
29056 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
29057 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
29058 $as_echo_n "(cached) " >&6
29059 else
29060 gcc_cv_as_loongarch_dtprelword=no
29061 if test x$gcc_cv_as != x; then
29062 $as_echo '' > conftest.s
29063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -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 .section .tdata,"awT",@progbits
29072 .word 2
29073 .text
29074 .dtprelword x+0x8000
29075 else
29076 echo "configure: failed program was" >&5
29077 cat conftest.s >&5
29079 rm -f conftest.o conftest.s
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
29083 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
29085 if test $gcc_cv_as_loongarch_dtprelword != yes; then
29087 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
29091 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
29092 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
29093 $as_echo_n "(cached) " >&6
29094 else
29095 gcc_cv_as_loongarch_explicit_relocs=no
29096 if test x$gcc_cv_as != x; then
29097 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
29098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29100 (eval $ac_try) 2>&5
29101 ac_status=$?
29102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29103 test $ac_status = 0; }; }
29104 then
29105 gcc_cv_as_loongarch_explicit_relocs=yes
29106 else
29107 echo "configure: failed program was" >&5
29108 cat conftest.s >&5
29110 rm -f conftest.o conftest.s
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
29114 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
29115 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
29117 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
29122 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
29123 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
29124 $as_echo_n "(cached) " >&6
29125 else
29126 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
29127 if test x$gcc_cv_as != x; then
29128 $as_echo '.cfi_startproc
29129 .cfi_personality 0x9b,a
29130 .cfi_lsda 0x1b,b
29131 .cfi_endproc' > conftest.s
29132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29134 (eval $ac_try) 2>&5
29135 ac_status=$?
29136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29137 test $ac_status = 0; }; }
29138 then
29139 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
29140 else
29141 echo "configure: failed program was" >&5
29142 cat conftest.s >&5
29144 rm -f conftest.o conftest.s
29147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29148 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29149 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29151 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
29156 $as_echo_n "checking assembler for -mrelax option... " >&6; }
29157 if ${gcc_cv_as_loongarch_relax+:} false; then :
29158 $as_echo_n "(cached) " >&6
29159 else
29160 gcc_cv_as_loongarch_relax=no
29161 if test x$gcc_cv_as != x; then
29162 $as_echo '.text' > conftest.s
29163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
29164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29165 (eval $ac_try) 2>&5
29166 ac_status=$?
29167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29168 test $ac_status = 0; }; }
29169 then
29170 gcc_cv_as_loongarch_relax=yes
29171 else
29172 echo "configure: failed program was" >&5
29173 cat conftest.s >&5
29175 rm -f conftest.o conftest.s
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
29179 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
29180 if test $gcc_cv_as_loongarch_relax = yes; then
29182 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
29187 s390*-*-*)
29188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29189 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29190 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
29191 $as_echo_n "(cached) " >&6
29192 else
29193 gcc_cv_as_s390_gnu_attribute=no
29194 if test x$gcc_cv_as != x; then
29195 $as_echo '.gnu_attribute 8,1' > conftest.s
29196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29198 (eval $ac_try) 2>&5
29199 ac_status=$?
29200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29201 test $ac_status = 0; }; }
29202 then
29203 gcc_cv_as_s390_gnu_attribute=yes
29204 else
29205 echo "configure: failed program was" >&5
29206 cat conftest.s >&5
29208 rm -f conftest.o conftest.s
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29212 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29213 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29215 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29220 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29221 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
29222 $as_echo_n "(cached) " >&6
29223 else
29224 gcc_cv_as_s390_machine_machinemode=no
29225 if test x$gcc_cv_as != x; then
29226 $as_echo ' .machinemode push
29227 .machinemode pop
29228 .machine push
29229 .machine pop' > conftest.s
29230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29232 (eval $ac_try) 2>&5
29233 ac_status=$?
29234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29235 test $ac_status = 0; }; }
29236 then
29237 gcc_cv_as_s390_machine_machinemode=yes
29238 else
29239 echo "configure: failed program was" >&5
29240 cat conftest.s >&5
29242 rm -f conftest.o conftest.s
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29246 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29247 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29249 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29254 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29255 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
29256 $as_echo_n "(cached) " >&6
29257 else
29258 gcc_cv_as_s390_architecture_modifiers=no
29259 if test x$gcc_cv_as != x; then
29260 $as_echo ' .machine z13+vx ' > conftest.s
29261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29263 (eval $ac_try) 2>&5
29264 ac_status=$?
29265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29266 test $ac_status = 0; }; }
29267 then
29268 gcc_cv_as_s390_architecture_modifiers=yes
29269 else
29270 echo "configure: failed program was" >&5
29271 cat conftest.s >&5
29273 rm -f conftest.o conftest.s
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29277 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29278 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29280 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29285 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29286 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29287 $as_echo_n "(cached) " >&6
29288 else
29289 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29290 if test x$gcc_cv_as != x; then
29291 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29294 (eval $ac_try) 2>&5
29295 ac_status=$?
29296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29297 test $ac_status = 0; }; }
29298 then
29299 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29300 else
29301 echo "configure: failed program was" >&5
29302 cat conftest.s >&5
29304 rm -f conftest.o conftest.s
29307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29308 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29309 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29311 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29316 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29317 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29318 $as_echo_n "(cached) " >&6
29319 else
29320 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29321 if test x$gcc_cv_as != x; then
29322 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29325 (eval $ac_try) 2>&5
29326 ac_status=$?
29327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29328 test $ac_status = 0; }; }
29329 then
29330 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29331 else
29332 echo "configure: failed program was" >&5
29333 cat conftest.s >&5
29335 rm -f conftest.o conftest.s
29338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29339 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29340 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29342 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29348 esac
29350 # Mips, LoongArch and HP-UX need the GNU assembler.
29351 # Linux on IA64 might be able to use the Intel assembler.
29353 case "$target" in
29354 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29355 if test x$gas_flag = xyes \
29356 || test x"$host" != x"$build" \
29357 || test ! -x "$gcc_cv_as" \
29358 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29360 else
29361 echo "*** This configuration requires the GNU assembler" >&2
29362 exit 1
29365 esac
29367 # AMD GCN needs the LLVM assembler and linker.
29368 # Test that LLVM is at least 13.0.1.
29369 case "$target" in
29370 amdgcn-* | gcn-*)
29371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29372 $as_echo_n "checking llvm assembler version... " >&6; }
29373 gcc_cv_as_version="unknown"
29374 if test x$gcc_cv_as != x; then
29375 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29376 case "$gcc_cv_as_version" in
29377 13.0.[1-9]*) ;; # 13.0.1+
29378 13.[1-9]*) ;; # 13.1+
29379 1[4-9]*) ;; # 14..19
29380 [2-9][0-9]*) ;; # 20..99
29381 [1-9][0-9][0-9]*) ;; # 100+
29382 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29383 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29384 esac
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29387 $as_echo "$gcc_cv_as_version, ok" >&6; }
29389 esac
29391 case "$target" in
29392 arm*)
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29394 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29395 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29396 $as_echo_n "(cached) " >&6
29397 else
29398 gcc_cv_as_arm_option_extensions=no
29399 if test x$gcc_cv_as != x; then
29400 $as_echo '.text
29401 .thumb
29402 .syntax unified
29403 vmov.f32 s0, s1' > conftest.s
29404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29406 (eval $ac_try) 2>&5
29407 ac_status=$?
29408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29409 test $ac_status = 0; }; }
29410 then
29411 gcc_cv_as_arm_option_extensions=yes
29412 else
29413 echo "configure: failed program was" >&5
29414 cat conftest.s >&5
29416 rm -f conftest.o conftest.s
29419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29420 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29421 if test $gcc_cv_as_arm_option_extensions = yes; then
29423 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29427 esac
29429 # ??? Not all targets support dwarf2 debug_line, even within a version
29430 # of gas. Moreover, we need to emit a valid instruction to trigger any
29431 # info to the output file. So, as supported targets are added to gas 2.11,
29432 # add some instruction here to (also) show we expect this might work.
29433 # ??? Once 2.11 is released, probably need to add first known working
29434 # version to the per-target configury.
29435 case "$cpu_type" in
29436 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29437 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29438 | visium | xstormy16 | xtensa)
29439 insn="nop"
29441 ia64 | s390)
29442 insn="nop 0"
29444 mmix)
29445 insn="swym 0"
29447 esac
29448 if test x"$insn" != x; then
29449 conftest_s="\
29450 .file 1 \"conftest.s\"
29451 .loc 1 3 0
29452 $insn"
29453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29454 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29455 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29456 $as_echo_n "(cached) " >&6
29457 else
29458 gcc_cv_as_dwarf2_debug_line=no
29459 if test x$gcc_cv_as != x; then
29460 $as_echo "$conftest_s" > conftest.s
29461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29463 (eval $ac_try) 2>&5
29464 ac_status=$?
29465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29466 test $ac_status = 0; }; }
29467 then
29468 if test x$gcc_cv_objdump != x \
29469 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29470 | grep debug_line > /dev/null 2>&1; then
29471 gcc_cv_as_dwarf2_debug_line=yes
29472 elif test x$gcc_cv_otool != x \
29473 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29474 | grep debug_line > /dev/null 2>&1; then
29475 gcc_cv_as_dwarf2_debug_line=yes
29477 else
29478 echo "configure: failed program was" >&5
29479 cat conftest.s >&5
29481 rm -f conftest.o conftest.s
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29485 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29489 # The .debug_line file table must be in the exact order that
29490 # we specified the files, since these indices are also used
29491 # by DW_AT_decl_file. Approximate this test by testing if
29492 # the assembler bitches if the same index is assigned twice.
29493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29494 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29495 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29496 $as_echo_n "(cached) " >&6
29497 else
29498 gcc_cv_as_dwarf2_file_buggy=no
29499 if test x$gcc_cv_as != x; then
29500 $as_echo ' .file 1 "foo.s"
29501 .file 1 "bar.s"' > conftest.s
29502 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29504 (eval $ac_try) 2>&5
29505 ac_status=$?
29506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29507 test $ac_status = 0; }; }
29508 then
29509 gcc_cv_as_dwarf2_file_buggy=yes
29510 else
29511 echo "configure: failed program was" >&5
29512 cat conftest.s >&5
29514 rm -f conftest.o conftest.s
29517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29518 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29522 if test $gcc_cv_as_dwarf2_debug_line = yes \
29523 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29525 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29528 if test $gcc_cv_as_leb128 = yes; then
29529 conftest_s="\
29530 .file 1 \"conftest.s\"
29531 .loc 1 3 0 view .LVU1
29532 $insn
29533 .data
29534 .uleb128 .LVU1
29535 .uleb128 .LVU1
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29538 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29539 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29540 $as_echo_n "(cached) " >&6
29541 else
29542 gcc_cv_as_dwarf2_debug_view=no
29543 if test x$gcc_cv_as != x; then
29544 $as_echo "$conftest_s" > conftest.s
29545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29547 (eval $ac_try) 2>&5
29548 ac_status=$?
29549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29550 test $ac_status = 0; }; }
29551 then
29552 gcc_cv_as_dwarf2_debug_view=yes
29553 else
29554 echo "configure: failed program was" >&5
29555 cat conftest.s >&5
29557 rm -f conftest.o conftest.s
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29561 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29562 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29564 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29572 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29573 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29574 $as_echo_n "(cached) " >&6
29575 else
29576 gcc_cv_as_gdwarf2_flag=no
29577 if test x$gcc_cv_as != x; then
29578 $as_echo "$insn" > conftest.s
29579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29581 (eval $ac_try) 2>&5
29582 ac_status=$?
29583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29584 test $ac_status = 0; }; }
29585 then
29586 gcc_cv_as_gdwarf2_flag=yes
29587 else
29588 echo "configure: failed program was" >&5
29589 cat conftest.s >&5
29591 rm -f conftest.o conftest.s
29594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29595 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29596 if test $gcc_cv_as_gdwarf2_flag = yes; then
29598 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29604 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29605 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29606 $as_echo_n "(cached) " >&6
29607 else
29608 gcc_cv_as_gdwarf_5_flag=no
29609 if test x$gcc_cv_as != x; then
29610 $as_echo "$insn" > conftest.s
29611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29613 (eval $ac_try) 2>&5
29614 ac_status=$?
29615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29616 test $ac_status = 0; }; }
29617 then
29618 if test x$gcc_cv_objdump != x \
29619 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29620 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29621 gcc_cv_as_gdwarf_5_flag=yes;
29623 else
29624 echo "configure: failed program was" >&5
29625 cat conftest.s >&5
29627 rm -f conftest.o conftest.s
29630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29631 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29632 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29634 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29639 case $target_os in
29640 win32 | pe | cygwin* | mingw32*)
29641 section_flags=\"dr\"
29642 function_type=".def foo; .scl 2; .type 32; .endef"
29643 function_size="";;
29645 section_flags=\"\",%progbits
29646 function_type=".type foo, %function"
29647 function_size=".size foo, .-foo";;
29648 esac
29649 dwarf4_debug_info_size=0x46
29650 dwarf4_high_pc_form=7
29651 dwarf4_debug_aranges_size=0x2c
29652 dwarf4_line_sz=9
29653 for dwarf4_addr_size in 8 4; do
29654 conftest_s="\
29655 .file \"a.c\"
29656 .text
29657 .Ltext0:
29658 .p2align 4
29659 .globl foo
29660 $function_type
29661 foo:
29662 .LFB0:
29663 .LM1:
29664 $insn
29665 .LM2:
29666 .LFE0:
29667 $function_size
29668 .Letext0:
29669 .section .debug_info,$section_flags
29670 .Ldebug_info0:
29671 .4byte $dwarf4_debug_info_size
29672 .2byte 0x4
29673 .4byte .Ldebug_abbrev0
29674 .byte 0x$dwarf4_addr_size
29675 .byte 0x1
29676 .ascii \"GNU C17\\0\"
29677 .byte 0xc
29678 .ascii \"a.c\\0\"
29679 .ascii \"/\\0\"
29680 .${dwarf4_addr_size}byte .Ltext0
29681 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29682 .4byte .Ldebug_line0
29683 .byte 0x2
29684 .ascii \"foo\\0\"
29685 .byte 0x1
29686 .byte 0x2
29687 .byte 0x1
29688 .${dwarf4_addr_size}byte .LFB0
29689 .${dwarf4_addr_size}byte .LFE0-.LFB0
29690 .byte 0x1
29691 .byte 0x9c
29692 .byte 0
29693 .section .debug_abbrev,$section_flags
29694 .Ldebug_abbrev0:
29695 .byte 0x1
29696 .byte 0x11
29697 .byte 0x1
29698 .byte 0x25
29699 .byte 0x8
29700 .byte 0x13
29701 .byte 0xb
29702 .byte 0x3
29703 .byte 0x8
29704 .byte 0x1b
29705 .byte 0x8
29706 .byte 0x11
29707 .byte 0x1
29708 .byte 0x12
29709 .byte 0x$dwarf4_high_pc_form
29710 .byte 0x10
29711 .byte 0x17
29712 .byte 0
29713 .byte 0
29714 .byte 0x2
29715 .byte 0x2e
29716 .byte 0
29717 .byte 0x3f
29718 .byte 0x19
29719 .byte 0x3
29720 .byte 0x8
29721 .byte 0x3a
29722 .byte 0xb
29723 .byte 0x3b
29724 .byte 0xb
29725 .byte 0x39
29726 .byte 0xb
29727 .byte 0x11
29728 .byte 0x1
29729 .byte 0x12
29730 .byte 0x$dwarf4_high_pc_form
29731 .byte 0x40
29732 .byte 0x18
29733 .byte 0
29734 .byte 0
29735 .byte 0
29736 .section .debug_aranges,$section_flags
29737 .4byte $dwarf4_debug_aranges_size
29738 .2byte 0x2
29739 .4byte .Ldebug_info0
29740 .byte 0x8
29741 .byte 0
29742 .2byte 0
29743 .2byte 0
29744 .${dwarf4_addr_size}byte .Ltext0
29745 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29746 .${dwarf4_addr_size}byte 0
29747 .${dwarf4_addr_size}byte 0
29748 .section .debug_line,$section_flags
29749 .Ldebug_line0:
29750 .4byte .LELT0-.LSLT0
29751 .LSLT0:
29752 .2byte 0x4
29753 .4byte .LELTP0-.LASLTP0
29754 .LASLTP0:
29755 .byte 0x1
29756 .byte 0x1
29757 .byte 0x1
29758 .byte 0xf6
29759 .byte 0xf2
29760 .byte 0xd
29761 .byte 0
29762 .byte 0x1
29763 .byte 0x1
29764 .byte 0x1
29765 .byte 0x1
29766 .byte 0
29767 .byte 0
29768 .byte 0
29769 .byte 0x1
29770 .byte 0
29771 .byte 0
29772 .byte 0x1
29773 .byte 0
29774 .ascii \"a.c\\0\"
29775 .byte 0
29776 .byte 0
29777 .byte 0
29778 .byte 0
29779 .LELTP0:
29780 .byte 0
29781 .byte 0x$dwarf4_line_sz
29782 .byte 0x2
29783 .${dwarf4_addr_size}byte .LM1
29784 .byte 0x18
29785 .byte 0x5
29786 .byte 0x1
29787 .byte 0
29788 .byte 0x$dwarf4_line_sz
29789 .byte 0x2
29790 .${dwarf4_addr_size}byte .LM2
29791 .byte 0x1
29792 .byte 0x5
29793 .byte 0x1
29794 .byte 0
29795 .byte 0x$dwarf4_line_sz
29796 .byte 0x2
29797 .${dwarf4_addr_size}byte .Letext0
29798 .byte 0
29799 .byte 0x1
29800 .byte 0x1
29801 .LELT0:
29802 .section .debug_str,$section_flags
29803 .ident \"GCC\"
29805 dwarf4_success=no
29806 if test $dwarf4_addr_size = 4; then
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29808 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29809 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29810 $as_echo_n "(cached) " >&6
29811 else
29812 gcc_cv_as_debug_line_32_flag=no
29813 if test x$gcc_cv_as != x; then
29814 $as_echo "$conftest_s" > conftest.s
29815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29817 (eval $ac_try) 2>&5
29818 ac_status=$?
29819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29820 test $ac_status = 0; }; }
29821 then
29822 gcc_cv_as_debug_line_32_flag=yes
29823 else
29824 echo "configure: failed program was" >&5
29825 cat conftest.s >&5
29827 rm -f conftest.o conftest.s
29830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29831 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29832 if test $gcc_cv_as_debug_line_32_flag = yes; then
29833 dwarf4_success=yes
29836 else
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29838 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29839 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29840 $as_echo_n "(cached) " >&6
29841 else
29842 gcc_cv_as_debug_line_64_flag=no
29843 if test x$gcc_cv_as != x; then
29844 $as_echo "$conftest_s" > conftest.s
29845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29847 (eval $ac_try) 2>&5
29848 ac_status=$?
29849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29850 test $ac_status = 0; }; }
29851 then
29852 gcc_cv_as_debug_line_64_flag=yes
29853 else
29854 echo "configure: failed program was" >&5
29855 cat conftest.s >&5
29857 rm -f conftest.o conftest.s
29860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29861 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29862 if test $gcc_cv_as_debug_line_64_flag = yes; then
29863 dwarf4_success=yes
29867 if test $dwarf4_success = yes; then
29868 dwarf4_success=no
29869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29870 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29871 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29872 $as_echo_n "(cached) " >&6
29873 else
29874 gcc_cv_as_dwarf_4_debug_line_flag=no
29875 if test x$gcc_cv_as != x; then
29876 $as_echo "$conftest_s" > conftest.s
29877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29879 (eval $ac_try) 2>&5
29880 ac_status=$?
29881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29882 test $ac_status = 0; }; }
29883 then
29884 gcc_cv_as_dwarf_4_debug_line_flag=yes
29885 else
29886 echo "configure: failed program was" >&5
29887 cat conftest.s >&5
29889 rm -f conftest.o conftest.s
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29893 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29894 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29895 dwarf4_success=yes
29898 break
29900 dwarf4_debug_info_size=0x36
29901 dwarf4_high_pc_form=6
29902 dwarf4_debug_aranges_size=0x1c
29903 dwarf4_line_sz=5
29904 done
29906 if test $dwarf4_success = yes; then
29907 conftest_s="\
29908 .file \"foo.c\"
29909 .text
29910 bar:
29911 #APP
29912 # 82 \"xxx.h\" 1
29913 $insn
29914 # 0 \"\" 2
29915 #NO_APP
29916 $insn
29917 foo:
29918 .file 1 \"foo.c\"
29919 $insn
29920 .file 2 \"foo.h\"
29923 dwarf4_success=no
29924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29925 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29926 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29927 $as_echo_n "(cached) " >&6
29928 else
29929 gcc_cv_as_dwarf_4_app_flag=no
29930 if test x$gcc_cv_as != x; then
29931 $as_echo "$conftest_s" > conftest.s
29932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29934 (eval $ac_try) 2>&5
29935 ac_status=$?
29936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29937 test $ac_status = 0; }; }
29938 then
29939 gcc_cv_as_dwarf_4_app_flag=yes
29940 else
29941 echo "configure: failed program was" >&5
29942 cat conftest.s >&5
29944 rm -f conftest.o conftest.s
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29948 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29949 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29950 dwarf4_success=yes
29955 if test $dwarf4_success = yes; then
29956 conftest_s="\
29957 .text
29958 .globl foo
29959 $function_type
29960 foo:
29961 $insn
29962 $function_size
29963 .file 1 \"foo.c\"
29965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29966 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29967 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29968 $as_echo_n "(cached) " >&6
29969 else
29970 gcc_cv_as_working_gdwarf_n_flag=no
29971 if test x$gcc_cv_as != x; then
29972 $as_echo "$conftest_s" > conftest.s
29973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29975 (eval $ac_try) 2>&5
29976 ac_status=$?
29977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29978 test $ac_status = 0; }; }
29979 then
29980 if test x$gcc_cv_objdump != x \
29981 && $gcc_cv_objdump -W conftest.o 2>&1 \
29982 | grep conftest.s > /dev/null 2>&1; then
29983 gcc_cv_as_working_gdwarf_n_flag=no
29984 else
29985 gcc_cv_as_working_gdwarf_n_flag=yes
29987 else
29988 echo "configure: failed program was" >&5
29989 cat conftest.s >&5
29991 rm -f conftest.o conftest.s
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29995 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29998 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
30000 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
30005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
30006 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
30007 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
30008 $as_echo_n "(cached) " >&6
30009 else
30010 gcc_cv_as_debug_prefix_map_flag=no
30011 if test x$gcc_cv_as != x; then
30012 $as_echo "$insn" > conftest.s
30013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
30014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30015 (eval $ac_try) 2>&5
30016 ac_status=$?
30017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30018 test $ac_status = 0; }; }
30019 then
30020 gcc_cv_as_debug_prefix_map_flag=yes
30021 else
30022 echo "configure: failed program was" >&5
30023 cat conftest.s >&5
30025 rm -f conftest.o conftest.s
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
30029 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
30030 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
30032 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
30038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
30039 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
30040 if ${gcc_cv_as_compress_debug+:} false; then :
30041 $as_echo_n "(cached) " >&6
30042 else
30043 gcc_cv_as_compress_debug=no
30044 if test x$gcc_cv_as != x; then
30045 $as_echo '' > conftest.s
30046 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30048 (eval $ac_try) 2>&5
30049 ac_status=$?
30050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30051 test $ac_status = 0; }; }
30052 then
30053 # gas compiled without zlib cannot compress debug sections and warns
30054 # about it, but still exits successfully. So check for this, too.
30055 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
30056 then
30057 gcc_cv_as_compress_debug=0
30058 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
30059 then
30060 gcc_cv_as_compress_debug=1
30061 gcc_cv_as_compress_debug_option="--compress-debug-sections"
30062 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
30063 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
30064 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
30065 then
30066 gcc_cv_as_compress_debug=2
30068 else
30069 gcc_cv_as_compress_debug=0
30071 else
30072 echo "configure: failed program was" >&5
30073 cat conftest.s >&5
30075 rm -f conftest.o conftest.s
30078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
30079 $as_echo "$gcc_cv_as_compress_debug" >&6; }
30083 cat >>confdefs.h <<_ACEOF
30084 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
30085 _ACEOF
30088 cat >>confdefs.h <<_ACEOF
30089 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
30090 _ACEOF
30093 cat >>confdefs.h <<_ACEOF
30094 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
30095 _ACEOF
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
30099 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
30100 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
30101 $as_echo_n "(cached) " >&6
30102 else
30103 gcc_cv_as_lcomm_with_alignment=no
30104 if test x$gcc_cv_as != x; then
30105 $as_echo '.lcomm bar,4,16' > conftest.s
30106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30108 (eval $ac_try) 2>&5
30109 ac_status=$?
30110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30111 test $ac_status = 0; }; }
30112 then
30113 gcc_cv_as_lcomm_with_alignment=yes
30114 else
30115 echo "configure: failed program was" >&5
30116 cat conftest.s >&5
30118 rm -f conftest.o conftest.s
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
30122 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
30123 if test $gcc_cv_as_lcomm_with_alignment = yes; then
30125 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
30130 if test x$with_sysroot = x && test x$host = x$target \
30131 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
30132 && test "$prefix" != "NONE"; then
30134 cat >>confdefs.h <<_ACEOF
30135 #define PREFIX_INCLUDE_DIR "$prefix/include"
30136 _ACEOF
30140 # Determine the version of glibc, if any, used on the target.
30141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
30142 $as_echo_n "checking for target glibc version... " >&6; }
30144 # Check whether --with-glibc-version was given.
30145 if test "${with_glibc_version+set}" = set; then :
30146 withval=$with_glibc_version;
30147 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30148 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30149 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30150 else
30151 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
30153 else
30155 glibc_version_major=0
30156 glibc_version_minor=0
30157 if test -f $target_header_dir/features.h \
30158 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30159 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30160 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30161 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30166 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30168 cat >>confdefs.h <<_ACEOF
30169 #define TARGET_GLIBC_MAJOR $glibc_version_major
30170 _ACEOF
30173 cat >>confdefs.h <<_ACEOF
30174 #define TARGET_GLIBC_MINOR $glibc_version_minor
30175 _ACEOF
30178 # Check whether --enable-gnu-unique-object was given.
30179 if test "${enable_gnu_unique_object+set}" = set; then :
30180 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30181 yes | no) ;;
30182 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30183 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30184 esac
30185 else
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30187 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30188 if ${gcc_cv_as_gnu_unique_object+:} false; then :
30189 $as_echo_n "(cached) " >&6
30190 else
30191 gcc_cv_as_gnu_unique_object=no
30192 if test x$gcc_cv_as != x; then
30193 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30196 (eval $ac_try) 2>&5
30197 ac_status=$?
30198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30199 test $ac_status = 0; }; }
30200 then
30201 gcc_cv_as_gnu_unique_object=yes
30202 else
30203 echo "configure: failed program was" >&5
30204 cat conftest.s >&5
30206 rm -f conftest.o conftest.s
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30210 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30211 if test $gcc_cv_as_gnu_unique_object = yes; then
30212 # We need to unquote above to to use the definition from config.gcc.
30213 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30215 if test $glibc_version_major -gt 2 \
30216 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30217 enable_gnu_unique_object=yes
30224 if test x$enable_gnu_unique_object = xyes; then
30226 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30231 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30232 if ${gcc_cv_as_line_zero+:} false; then :
30233 $as_echo_n "(cached) " >&6
30234 else
30235 gcc_cv_as_line_zero=no
30236 if test "x$gcc_cv_as" != x; then
30237 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30238 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30240 (eval $ac_try) 2>&5
30241 ac_status=$?
30242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30243 test $ac_status = 0; }; } &&
30244 test "x`cat conftest.out`" = x
30245 then
30246 gcc_cv_as_line_zero=yes
30247 else
30248 echo "configure: failed program was" >&5
30249 cat conftest.s >&5
30250 echo "configure: error output was" >&5
30251 cat conftest.out >&5
30253 rm -f conftest.o conftest.s conftest.out
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30257 $as_echo "$gcc_cv_as_line_zero" >&6; }
30258 if test "x$gcc_cv_as_line_zero" = xyes; then
30260 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30265 $as_echo_n "checking support for thin archives... " >&6; }
30266 thin_archive_support=no
30267 echo 'int main (void) { return 0; }' > conftest.c
30268 if ($AR --version | sed 1q | grep "GNU ar" \
30269 && $CC $CFLAGS -c conftest.c \
30270 && $AR rcT conftest.a conftest.o \
30271 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
30272 thin_archive_support=yes
30274 rm -f conftest.c conftest.o conftest.a conftest
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30276 $as_echo "$thin_archive_support" >&6; }
30279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30280 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30281 gcc_cv_ld_eh_frame_hdr=no
30282 if test $in_tree_ld = yes ; then
30283 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 \
30284 && test $in_tree_ld_is_elf = yes; then
30285 gcc_cv_ld_eh_frame_hdr=yes
30287 elif test x$gcc_cv_ld != x; then
30288 if echo "$ld_ver" | grep GNU > /dev/null; then
30289 # Check if linker supports --eh-frame-hdr option
30290 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30291 gcc_cv_ld_eh_frame_hdr=yes
30293 else
30294 case "$target" in
30295 *-*-solaris2*)
30296 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30297 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30298 gcc_cv_ld_eh_frame_hdr=yes
30301 esac
30305 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30307 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30311 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30314 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30315 gcc_cv_ld_eh_frame_ciev3=no
30316 if test $in_tree_ld = yes ; then
30317 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 \
30318 && test $in_tree_ld_is_elf = yes; then
30319 gcc_cv_ld_eh_frame_ciev3=yes
30321 elif test x$gcc_cv_ld != x; then
30322 if echo "$ld_ver" | grep GNU > /dev/null; then
30323 gcc_cv_ld_eh_frame_ciev3=yes
30324 if test 0"$ld_date" -lt 20040513; then
30325 if test -n "$ld_date"; then
30326 # If there was date string, but was earlier than 2004-05-13, fail
30327 gcc_cv_ld_eh_frame_ciev3=no
30328 elif test "$ld_vers_major" -lt 2; then
30329 gcc_cv_ld_eh_frame_ciev3=no
30330 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30331 gcc_cv_ld_eh_frame_ciev3=no
30334 else
30335 case "$target" in
30336 *-*-solaris2*)
30337 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30338 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30339 gcc_cv_ld_eh_frame_ciev3=yes
30342 esac
30346 cat >>confdefs.h <<_ACEOF
30347 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30348 _ACEOF
30350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30351 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30354 $as_echo_n "checking linker position independent executable support... " >&6; }
30355 gcc_cv_ld_pie=no
30356 if test $in_tree_ld = yes ; then
30357 case "$target" in
30358 # Full PIE support on Solaris was only introduced in gld 2.26.
30359 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30360 *) gcc_gld_pie_min_version=15 ;;
30361 esac
30362 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 \
30363 && test $in_tree_ld_is_elf = yes; then
30364 gcc_cv_ld_pie=yes
30366 elif test x$gcc_cv_ld != x; then
30367 # Check if linker supports -pie option
30368 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30369 gcc_cv_ld_pie=yes
30370 case "$target" in
30371 *-*-solaris2*)
30372 if echo "$ld_ver" | grep GNU > /dev/null \
30373 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30374 gcc_cv_ld_pie=no
30377 esac
30378 else
30379 case "$target" in
30380 *-*-solaris2.1[1-9]*)
30381 # Solaris 11.3 added PIE support.
30382 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30383 gcc_cv_ld_pie=yes
30386 esac
30389 if test x"$gcc_cv_ld_pie" = xyes; then
30391 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30395 $as_echo "$gcc_cv_ld_pie" >&6; }
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30398 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30399 gcc_cv_ld_pie_copyreloc=no
30400 if test $gcc_cv_ld_pie = yes ; then
30401 if test $in_tree_ld = yes ; then
30402 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
30403 gcc_cv_ld_pie_copyreloc=yes
30405 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30406 # Check if linker supports -pie option with copy reloc
30407 case "$target" in
30408 i?86-*-linux* | x86_64-*-linux*)
30409 cat > conftest1.s <<EOF
30410 .globl a_glob
30411 .data
30412 .type a_glob, @object
30413 .size a_glob, 4
30414 a_glob:
30415 .long 2
30417 cat > conftest2.s <<EOF
30418 .text
30419 .globl main
30420 .type main, @function
30421 main:
30422 movl %eax, a_glob(%rip)
30423 .size main, .-main
30424 .globl ptr
30425 .section .data.rel,"aw",@progbits
30426 .type ptr, @object
30427 ptr:
30428 .quad a_glob
30430 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30431 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30432 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30433 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30434 gcc_cv_ld_pie_copyreloc=yes
30436 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30438 esac
30442 cat >>confdefs.h <<_ACEOF
30443 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30444 _ACEOF
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30447 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30450 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30451 gcc_cv_ld_eh_gc_sections=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 17 -o "$gcc_cv_gld_major_version" -gt 2 \
30454 && test $in_tree_ld_is_elf = yes; then
30455 gcc_cv_ld_eh_gc_sections=yes
30457 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30458 cat > conftest.s <<EOF
30459 .section .text
30460 .globl _start
30461 .type _start, @function
30462 _start:
30463 .long foo
30464 .size _start, .-_start
30465 .section .text.foo,"ax",@progbits
30466 .type foo, @function
30467 foo:
30468 .long 0
30469 .size foo, .-foo
30470 .section .gcc_except_table.foo,"a",@progbits
30471 .L0:
30472 .long 0
30473 .section .eh_frame,"a",@progbits
30474 .long .L0
30476 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30477 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30478 | grep "gc-sections option ignored" > /dev/null; then
30479 gcc_cv_ld_eh_gc_sections=no
30480 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30481 | grep gcc_except_table > /dev/null; then
30482 gcc_cv_ld_eh_gc_sections=yes
30483 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30484 if test x$gcc_cv_as_comdat_group != xyes; then
30485 gcc_cv_ld_eh_gc_sections=no
30486 cat > conftest.s <<EOF
30487 .section .text
30488 .globl _start
30489 .type _start, @function
30490 _start:
30491 .long foo
30492 .size _start, .-_start
30493 .section .gnu.linkonce.t.foo,"ax",@progbits
30494 .type foo, @function
30495 foo:
30496 .long 0
30497 .size foo, .-foo
30498 .section .gcc_except_table.foo,"a",@progbits
30499 .L0:
30500 .long 0
30501 .section .eh_frame,"a",@progbits
30502 .long .L0
30504 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30505 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30506 | grep "gc-sections option ignored" > /dev/null; then
30507 gcc_cv_ld_eh_gc_sections=no
30508 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30509 | grep gcc_except_table > /dev/null; then
30510 gcc_cv_ld_eh_gc_sections=yes
30516 rm -f conftest.s conftest.o conftest
30518 case "$target" in
30519 hppa*-*-linux*)
30520 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30521 gcc_cv_ld_eh_gc_sections=no
30523 esac
30524 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30526 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30530 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30533 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30534 gcc_cv_ld_eh_gc_sections_bug=no
30535 if test $in_tree_ld = yes ; then
30536 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 \
30537 && test $in_tree_ld_is_elf = yes; then
30538 gcc_cv_ld_eh_gc_sections_bug=yes
30540 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
30541 gcc_cv_ld_eh_gc_sections_bug=yes
30542 cat > conftest.s <<EOF
30543 .section .text
30544 .globl _start
30545 .type _start, @function
30546 _start:
30547 .long foo
30548 .size _start, .-_start
30549 .section .text.startup.foo,"ax",@progbits
30550 .type foo, @function
30551 foo:
30552 .long 0
30553 .size foo, .-foo
30554 .section .gcc_except_table.foo,"a",@progbits
30555 .L0:
30556 .long 0
30557 .section .eh_frame,"a",@progbits
30558 .long .L0
30560 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30561 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30562 | grep "gc-sections option ignored" > /dev/null; then
30564 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30565 | grep gcc_except_table > /dev/null; then
30566 gcc_cv_ld_eh_gc_sections_bug=no
30569 rm -f conftest.s conftest.o conftest
30571 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30573 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30577 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30580 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30581 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30582 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30583 gcc_cv_ld_compress_debug=1
30584 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30585 # Detect zstd debug section compression support
30586 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30587 gcc_cv_ld_compress_debug=2
30589 else
30590 case "${target}" in
30591 *-*-solaris2*)
30592 # Introduced in Solaris 11.2.
30593 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30594 gcc_cv_ld_compress_debug=1
30595 gcc_cv_ld_compress_debug_option="-z compress-sections"
30596 else
30597 gcc_cv_ld_compress_debug=0
30601 # Assume linkers other than GNU ld don't support compessed debug
30602 # sections.
30603 gcc_cv_ld_compress_debug=0
30605 esac
30608 cat >>confdefs.h <<_ACEOF
30609 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30610 _ACEOF
30613 cat >>confdefs.h <<_ACEOF
30614 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30615 _ACEOF
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30618 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30620 if test x"$ld64_flag" = x"yes"; then
30622 # Set defaults for possibly untestable items.
30623 gcc_cv_ld64_export_dynamic=0
30624 gcc_cv_ld64_platform_version=0
30625 gcc_cv_ld64_demangle=0
30627 if test "$build" = "$host"; then
30628 darwin_try_test=1
30629 else
30630 darwin_try_test=0
30633 # On Darwin, because of FAT library support, it is often possible to execute
30634 # exes from compatible archs even when the host differs from the build system.
30635 case "$build","$host" in
30636 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30637 darwin_try_test=1;;
30638 *) ;;
30639 esac
30641 # If the configurer specified a minimum ld64 version to be supported, then use
30642 # that to determine feature support.
30643 if test x"${gcc_cv_ld64_version}" != x; then
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30645 $as_echo_n "checking ld64 specified version... " >&6; }
30646 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30648 $as_echo "$gcc_cv_ld64_major" >&6; }
30649 if test "$gcc_cv_ld64_major" -ge 97; then
30650 gcc_cv_ld64_demangle=1
30652 if test "$gcc_cv_ld64_major" -ge 236; then
30653 gcc_cv_ld64_export_dynamic=1
30655 if test "$gcc_cv_ld64_major" -ge 512; then
30656 gcc_cv_ld64_platform_version=1
30658 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30659 # If the version was not specified, try to find it.
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30661 $as_echo_n "checking linker version... " >&6; }
30662 if test x"${gcc_cv_ld64_version}" = x; then
30663 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
30664 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30667 $as_echo "$gcc_cv_ld64_version" >&6; }
30669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
30670 $as_echo_n "checking linker for -demangle support... " >&6; }
30671 gcc_cv_ld64_demangle=1
30672 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30673 gcc_cv_ld64_demangle=0
30675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
30676 $as_echo "$gcc_cv_ld64_demangle" >&6; }
30678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30679 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30680 gcc_cv_ld64_export_dynamic=1
30681 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30682 gcc_cv_ld64_export_dynamic=0
30684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30685 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30688 $as_echo_n "checking linker for -platform_version support... " >&6; }
30689 gcc_cv_ld64_platform_version=1
30690 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30691 gcc_cv_ld64_platform_version=0
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30694 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30697 if test x"${gcc_cv_ld64_version}" != x; then
30699 cat >>confdefs.h <<_ACEOF
30700 #define LD64_VERSION "${gcc_cv_ld64_version}"
30701 _ACEOF
30706 cat >>confdefs.h <<_ACEOF
30707 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
30708 _ACEOF
30712 cat >>confdefs.h <<_ACEOF
30713 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30714 _ACEOF
30718 cat >>confdefs.h <<_ACEOF
30719 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30720 _ACEOF
30724 if test x"$dsymutil_flag" = x"yes"; then
30726 # If the user specified a dsymutil path, then we will already have the
30727 # version string, otherwise, pick it up.
30728 if test x"$gcc_cv_dsymutil" = x; then
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30730 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30731 dsymutil_vers="tool unspecified"
30732 elif test x"$dsymutil_vers" = x; then
30733 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30736 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30738 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30739 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30740 dsymutil_kind=DWARFUTILS
30741 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30742 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30743 dsymutil_kind=CLANG
30744 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30745 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30746 dsymutil_kind=LLVM
30747 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30748 else
30749 dsymutil_kind=UNKNOWN
30750 dsymutil_vers="0.0"
30752 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30753 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30754 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30755 if test x"${dsymutil_minor}" = x; then
30756 dsymutil_minor=0
30758 if test x"${dsymutil_tiny}" = x; then
30759 dsymutil_tiny=0
30762 cat >>confdefs.h <<_ACEOF
30763 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30764 _ACEOF
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30767 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30770 case $target_os in
30771 win32 | pe | cygwin* | mingw32*)
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30773 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30774 gcc_cv_ld_broken_pe_dwarf5=yes
30775 if test $in_tree_ld = yes ; then
30776 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30777 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30778 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30779 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30780 gcc_cv_ld_broken_pe_dwarf5=no
30782 else
30783 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30784 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30785 gcc_cv_ld_broken_pe_dwarf5=no
30788 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30790 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30794 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30797 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30798 gcc_cv_ld_disable_dynamicbase=no
30799 if test $in_tree_ld = yes; then
30800 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 \
30801 gcc_cv_ld_disable_dynamicbase=yes
30803 else
30804 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30805 gcc_cv_ld_disable_dynamicbase=yes
30808 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30810 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30814 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30816 esac
30818 # --------
30819 # UNSORTED
30820 # --------
30822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30823 $as_echo_n "checking linker --as-needed support... " >&6; }
30824 if ${gcc_cv_ld_as_needed+:} false; then :
30825 $as_echo_n "(cached) " >&6
30826 else
30827 gcc_cv_ld_as_needed=no
30828 gcc_cv_ld_as_needed_option='--as-needed'
30829 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30830 if test $in_tree_ld = yes ; then
30831 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 \
30832 && test $in_tree_ld_is_elf = yes; then
30833 gcc_cv_ld_as_needed=yes
30834 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30835 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30836 gcc_cv_ld_no_as_needed_option='--pop-state'
30839 elif test x$gcc_cv_ld != x; then
30840 # Check if linker supports --as-needed and --no-as-needed options
30841 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30842 gcc_cv_ld_as_needed=yes
30843 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30844 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30845 && echo "$ld_ver" | grep GNU > /dev/null \
30846 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30847 # Use these options only when both ld.bfd and ld.gold support
30848 # --push-state/--pop-state, which unfortunately wasn't added
30849 # at the same time.
30850 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30851 gcc_cv_ld_no_as_needed_option='--pop-state'
30854 case "$target:$gnu_ld" in
30855 *-*-solaris2*:no)
30856 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30857 # forms.
30858 gcc_cv_ld_as_needed=yes
30859 gcc_cv_ld_as_needed_option="-z ignore"
30860 gcc_cv_ld_no_as_needed_option="-z record"
30862 esac
30864 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30865 # dl_iterate_phdr, i.e. since Solaris 11.
30866 case "$target" in
30867 *-*-solaris2.1[1-9]*)
30868 case "$target" in
30869 i?86-*-* | x86_64-*-*)
30870 if echo "$ld_ver" | grep GNU > /dev/null; then
30871 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30872 gcc_cv_ld_as_needed=no
30875 esac
30877 *-*-solaris2*)
30878 gcc_cv_ld_as_needed=no
30880 esac
30883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30884 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30885 if test x"$gcc_cv_ld_as_needed" = xyes; then
30887 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30890 cat >>confdefs.h <<_ACEOF
30891 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30892 _ACEOF
30895 cat >>confdefs.h <<_ACEOF
30896 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30897 _ACEOF
30901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30902 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30903 saved_LDFLAGS="$LDFLAGS"
30904 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30905 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30907 /* end confdefs.h. */
30908 int main(void) {return 0;}
30909 _ACEOF
30910 if ac_fn_cxx_try_link "$LINENO"; then :
30911 gcc_cv_ld_clearcap=yes; break
30912 else
30913 gcc_cv_ld_clearcap=no
30915 rm -f core conftest.err conftest.$ac_objext \
30916 conftest$ac_exeext conftest.$ac_ext
30917 done
30918 LDFLAGS="$saved_LDFLAGS"
30919 if test "x$gcc_cv_ld_clearcap" = xyes; then
30921 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30923 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30927 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30929 case "$target" in
30930 powerpc*-*-*)
30931 case "$target" in
30932 *le-*-linux*)
30933 emul_name="-melf32lppc"
30936 emul_name="-melf32ppc"
30938 esac
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30940 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30941 if ${gcc_cv_ld_ppc_attr+:} false; then :
30942 $as_echo_n "(cached) " >&6
30943 else
30944 gcc_cv_ld_ppc_attr=no
30945 if test x"$ld_is_gold" = xyes; then
30946 gcc_cv_ld_ppc_attr=yes
30947 elif test $in_tree_ld = yes ; then
30948 if test "$gcc_cv_gld_major_version" -eq 2 \
30949 -a "$gcc_cv_gld_minor_version" -ge 28 \
30950 -o "$gcc_cv_gld_major_version" -gt 2; then
30951 gcc_cv_ld_ppc_attr=yes
30953 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30954 # check that merging the long double .gnu_attribute doesn't warn
30955 cat > conftest1.s <<EOF
30956 .gnu_attribute 4,1
30958 cat > conftest2.s <<EOF
30959 .gnu_attribute 4,9
30961 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30962 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30963 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30964 && test ! -s conftest.err; then
30965 gcc_cv_ld_ppc_attr=yes
30967 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30972 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30973 if test x$gcc_cv_ld_ppc_attr = xyes; then
30975 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30979 esac
30981 case "$target:$tm_file" in
30982 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30983 case "$target" in
30984 *le-*-linux*)
30985 emul_name="-melf64lppc"
30987 *-*-linux*)
30988 emul_name="-melf64ppc"
30990 *le-*-freebsd*)
30991 emul_name="-melf64lppc_fbsd"
30993 *-*-freebsd*)
30994 emul_name="-melf64ppc_fbsd"
30996 esac
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30998 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30999 if ${gcc_cv_ld_no_dot_syms+:} false; then :
31000 $as_echo_n "(cached) " >&6
31001 else
31002 gcc_cv_ld_no_dot_syms=no
31003 if test x"$ld_is_gold" = xyes; then
31004 gcc_cv_ld_no_dot_syms=yes
31005 elif test $in_tree_ld = yes ; then
31006 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
31007 gcc_cv_ld_no_dot_syms=yes
31009 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
31010 cat > conftest1.s <<EOF
31011 .text
31012 bl .foo
31014 cat > conftest2.s <<EOF
31015 .section ".opd","aw"
31016 .align 3
31017 .globl foo
31018 .type foo,@function
31019 foo:
31020 .quad .LEfoo,.TOC.@tocbase,0
31021 .text
31022 .LEfoo:
31024 .size foo,.-.LEfoo
31026 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
31027 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
31028 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
31029 gcc_cv_ld_no_dot_syms=yes
31031 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
31035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
31036 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
31037 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
31039 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
31043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31044 $as_echo_n "checking linker large toc support... " >&6; }
31045 if ${gcc_cv_ld_large_toc+:} false; then :
31046 $as_echo_n "(cached) " >&6
31047 else
31048 gcc_cv_ld_large_toc=no
31049 if test x"$ld_is_gold" = xyes; then
31050 gcc_cv_ld_large_toc=yes
31051 elif test $in_tree_ld = yes ; then
31052 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
31053 gcc_cv_ld_large_toc=yes
31055 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
31056 cat > conftest.s <<EOF
31057 .section ".tbss","awT",@nobits
31058 .align 3
31059 ie0: .space 8
31060 .global _start
31061 .text
31062 _start:
31063 addis 9,13,ie0@got@tprel@ha
31064 ld 9,ie0@got@tprel@l(9)
31066 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
31067 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
31068 gcc_cv_ld_large_toc=yes
31070 rm -f conftest conftest.o conftest.s
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31075 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31076 if test x"$gcc_cv_ld_large_toc" = xyes; then
31078 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
31083 $as_echo_n "checking linker toc pointer alignment... " >&6; }
31084 if ${gcc_cv_ld_toc_align+:} false; then :
31085 $as_echo_n "(cached) " >&6
31086 else
31087 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
31088 cat > conftest.s <<EOF
31089 .global _start
31090 .text
31091 _start:
31092 addis 9,2,x@got@ha
31093 .section .data.rel.ro,"aw",@progbits
31094 .p2align 16
31095 .space 32768
31096 x: .quad .TOC.
31098 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
31099 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
31100 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)) }'`
31102 rm -f conftest conftest.o conftest.s
31106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
31107 $as_echo "$gcc_cv_ld_toc_align" >&6; }
31108 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
31110 cat >>confdefs.h <<_ACEOF
31111 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
31112 _ACEOF
31116 esac
31118 case "$target" in
31119 *-*-aix*)
31120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31121 $as_echo_n "checking linker large toc support... " >&6; }
31122 if ${gcc_cv_ld_large_toc+:} false; then :
31123 $as_echo_n "(cached) " >&6
31124 else
31125 gcc_cv_ld_large_toc=no
31126 if test x$gcc_cv_as != x ; then
31127 cat > conftest.s <<EOF
31128 .toc
31129 LC..1:
31130 .tc a[TC],a[RW]
31131 .extern a[RW]
31132 .csect .text[PR]
31133 .largetoctest:
31134 addis 9,LC..1@u(2)
31135 ld 3,LC..1@l(9)
31137 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
31138 gcc_cv_ld_large_toc=yes
31140 rm -f conftest conftest.o conftest.s
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31145 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31146 if test x"$gcc_cv_ld_large_toc" = xyes; then
31148 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31152 esac
31154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
31155 $as_echo_n "checking linker --build-id support... " >&6; }
31156 if ${gcc_cv_ld_buildid+:} false; then :
31157 $as_echo_n "(cached) " >&6
31158 else
31159 gcc_cv_ld_buildid=no
31160 if test $in_tree_ld = yes ; then
31161 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31162 "$gcc_cv_gld_minor_version" -ge 18 -o \
31163 "$gcc_cv_gld_major_version" -gt 2 \
31164 && test $in_tree_ld_is_elf = yes; then
31165 gcc_cv_ld_buildid=yes
31167 elif test x$gcc_cv_ld != x; then
31168 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
31169 gcc_cv_ld_buildid=yes
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31174 $as_echo "$gcc_cv_ld_buildid" >&6; }
31175 if test x"$gcc_cv_ld_buildid" = xyes; then
31177 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31181 # Check whether --enable-linker-build-id was given.
31182 if test "${enable_linker_build_id+set}" = set; then :
31183 enableval=$enable_linker_build_id;
31184 else
31185 enable_linker_build_id=no
31189 if test x"$enable_linker_build_id" = xyes; then
31190 if test x"$gcc_cv_ld_buildid" = xyes; then
31192 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31194 else
31195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31196 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31200 # In binutils 2.21, GNU ld gained support for new emulations fully
31201 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31203 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31204 if ${gcc_cv_ld_sol2_emulation+:} false; then :
31205 $as_echo_n "(cached) " >&6
31206 else
31207 gcc_cv_ld_sol2_emulation=no
31208 if test $in_tree_ld = yes ; then
31209 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31210 "$gcc_cv_gld_minor_version" -ge 21 -o \
31211 "$gcc_cv_gld_major_version" -gt 2 \
31212 && test $in_tree_ld_is_elf = yes; then
31213 gcc_cv_ld_sol2_emulation=yes
31215 elif test x$gcc_cv_ld != x; then
31216 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
31217 grep _sol2 > /dev/null; then
31218 gcc_cv_ld_sol2_emulation=yes
31222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31223 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31224 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
31226 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31231 $as_echo_n "checking linker --sysroot support... " >&6; }
31232 if ${gcc_cv_ld_sysroot+:} false; then :
31233 $as_echo_n "(cached) " >&6
31234 else
31235 gcc_cv_ld_sysroot=no
31236 if test $in_tree_ld = yes ; then
31237 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
31238 gcc_cv_ld_sysroot=yes
31240 elif test x$gcc_cv_ld != x; then
31241 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
31242 gcc_cv_ld_sysroot=yes
31246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31247 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31248 if test x"$gcc_cv_ld_sysroot" = xyes; then
31250 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31254 case $target in
31255 *-*-solaris2*)
31256 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31258 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31259 if ${gcc_cv_solaris_crts+:} false; then :
31260 $as_echo_n "(cached) " >&6
31261 else
31262 gcc_cv_solaris_crts=no
31263 if test x$host != x$target; then
31264 if test "x$with_sysroot" = xyes; then
31265 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
31266 else
31267 target_sysroot="${with_sysroot}"
31270 target_libdir="$target_sysroot/usr/lib"
31271 # At the time they were added, gcrt1.o became a symlink for backwards
31272 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31273 case $target in
31274 i?86-*-solaris2* | x86_64-*-solaris2*)
31275 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
31277 sparc*-*-solaris2*)
31278 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
31280 esac
31282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31283 $as_echo "$gcc_cv_solaris_crts" >&6; }
31285 esac
31286 if test x$gcc_cv_solaris_crts = xyes; then
31288 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31292 # Check whether --enable-libssp was given.
31293 if test "${enable_libssp+set}" = set; then :
31294 enableval=$enable_libssp; case "${enableval}" in
31295 yes|no)
31298 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
31300 esac
31304 # Test for stack protector support in target C library.
31305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31306 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31307 if ${gcc_cv_libc_provides_ssp+:} false; then :
31308 $as_echo_n "(cached) " >&6
31309 else
31310 gcc_cv_libc_provides_ssp=no
31311 if test "x$enable_libssp" = "xno"; then
31312 gcc_cv_libc_provides_ssp=yes
31313 elif test "x$enable_libssp" = "xyes"; then
31314 gcc_cv_libc_provides_ssp=no
31315 else
31316 case "$target" in
31317 *-*-musl*)
31318 # All versions of musl provide stack protector
31319 gcc_cv_libc_provides_ssp=yes;;
31320 *-*-linux* | *-*-kfreebsd*-gnu)
31321 # glibc 2.4 and later provides __stack_chk_fail and
31322 # either __stack_chk_guard, or TLS access to stack guard canary.
31324 if test $glibc_version_major -gt 2 \
31325 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31326 gcc_cv_libc_provides_ssp=yes
31327 else
31329 if test -f $target_header_dir/features.h \
31330 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31331 $target_header_dir/features.h > /dev/null; then
31332 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31333 $target_header_dir/features.h > /dev/null && \
31334 test -f $target_header_dir/bits/uClibc_config.h && \
31335 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31336 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31337 gcc_cv_libc_provides_ssp=yes
31339 # all versions of Bionic support stack protector
31340 elif test -f $target_header_dir/sys/cdefs.h \
31341 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31342 $target_header_dir/sys/cdefs.h > /dev/null; then
31343 gcc_cv_libc_provides_ssp=yes
31347 *-*-gnu*)
31348 # Avoid complicated tests (see
31349 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31350 # simply assert that glibc does provide this, which is true for all
31351 # realistically usable GNU/Hurd configurations.
31352 # All supported versions of musl provide it as well
31353 gcc_cv_libc_provides_ssp=yes;;
31354 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31355 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31356 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31357 gcc_cv_libc_provides_ssp=yes
31358 else
31359 echo "no __stack_chk_fail on this target"
31363 *) gcc_cv_libc_provides_ssp=no ;;
31364 esac
31367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31368 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31370 if test x$gcc_cv_libc_provides_ssp = xyes; then
31372 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31376 # Check whether --enable-default-ssp was given.
31377 # Check whether --enable-default-ssp was given.
31378 if test "${enable_default_ssp+set}" = set; then :
31379 enableval=$enable_default_ssp;
31380 if test x$gcc_cv_libc_provides_ssp = xyes; then
31381 case "$target" in
31382 ia64*-*-*) enable_default_ssp=no ;;
31383 *) enable_default_ssp=$enableval ;;
31384 esac
31385 else
31386 enable_default_ssp=no
31388 else
31389 enable_default_ssp=no
31392 if test x$enable_default_ssp = xyes ; then
31394 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31399 # Test for <sys/sdt.h> on the target.
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31402 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31403 if ${gcc_cv_sys_sdt_h+:} false; then :
31404 $as_echo_n "(cached) " >&6
31405 else
31407 gcc_cv_sys_sdt_h=no
31408 if test -f $target_header_dir/sys/sdt.h; then
31409 gcc_cv_sys_sdt_h=yes
31413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31414 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31415 if test x$gcc_cv_sys_sdt_h = xyes; then :
31418 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31423 # Check if TFmode long double should be used by default or not.
31424 # Some glibc targets used DFmode long double, but with glibc 2.4
31425 # and later they can use TFmode.
31426 case "$target" in
31427 powerpc*-*-linux* | \
31428 sparc*-*-linux* | \
31429 s390*-*-linux* | \
31430 alpha*-*-linux*)
31432 # Check whether --with-long-double-128 was given.
31433 if test "${with_long_double_128+set}" = set; then :
31434 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31435 else
31437 case "$target" in
31438 s390*-*-linux-musl*)
31439 gcc_cv_target_ldbl128=yes
31441 powerpc*-*-linux-musl*)
31442 gcc_cv_target_ldbl128=no
31446 if test $glibc_version_major -gt 2 \
31447 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31448 gcc_cv_target_ldbl128=yes
31449 else
31451 gcc_cv_target_ldbl128=no
31452 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31453 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31454 && gcc_cv_target_ldbl128=yes
31459 esac
31464 esac
31465 if test x$gcc_cv_target_ldbl128 = xyes; then
31467 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31471 # Check if TFmode long double target should use the IBM extended double or IEEE
31472 # 128-bit floating point formats if long doubles are 128-bits long. The long
31473 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31474 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31475 # libgcc.
31477 # Check whether --with-long-double-format was given.
31478 if test "${with_long_double_format+set}" = set; then :
31479 withval=$with_long_double_format;
31480 case "$target:$with_long_double_format" in
31481 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31484 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31485 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31486 case "$with_cpu" in
31487 power7 | power8 | power9 | power1*)
31491 as_fn_error $? "Configuration option --with-long-double-format is only \
31492 supported if the default cpu is power7 or newer" "$LINENO" 5
31493 with_long_double_format=""
31495 esac
31497 powerpc64*-*-linux*:*)
31498 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31499 with_long_double_format=""
31502 as_fn_error $? "Configure option --with-long-double-format is only supported \
31503 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31504 with_long_double_format=""
31506 esac
31510 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31511 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31512 gcc_cv_libc_provides_hwcap_in_tcb=no
31513 case "$target" in
31514 powerpc*-*-linux*)
31516 if test $glibc_version_major -gt 2 \
31517 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31518 gcc_cv_libc_provides_hwcap_in_tcb=yes
31521 esac
31522 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31524 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31528 # Check if the target LIBC handles PT_GNU_STACK.
31529 gcc_cv_libc_gnustack=unknown
31530 case "$target" in
31531 mips*-*-linux-musl*)
31532 gcc_cv_libc_gnustack=yes
31534 mips*-*-linux*)
31536 if test $glibc_version_major -gt 2 \
31537 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31538 gcc_cv_libc_gnustack=yes
31541 esac
31542 if test x$gcc_cv_libc_gnustack = xyes; then
31544 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31549 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31550 gcc_cv_target_dl_iterate_phdr=unknown
31551 case "$target" in
31552 *-*-solaris2*)
31553 # <link.h> needs both a dl_iterate_phdr declaration and support for
31554 # compilation with largefile support.
31555 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31556 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31557 gcc_cv_target_dl_iterate_phdr=yes
31558 else
31559 gcc_cv_target_dl_iterate_phdr=no
31562 *-*-dragonfly* | *-*-freebsd*)
31563 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31564 gcc_cv_target_dl_iterate_phdr=yes
31565 else
31566 gcc_cv_target_dl_iterate_phdr=no
31569 *-linux-musl*)
31570 gcc_cv_target_dl_iterate_phdr=yes
31572 esac
31574 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31576 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31580 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31582 # We no longer support different GC mechanisms. Emit an error if
31583 # the user configures with --with-gc.
31585 # Check whether --with-gc was given.
31586 if test "${with_gc+set}" = set; then :
31587 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31591 # Libraries to use on the host. This will normally be set by the top
31592 # level Makefile. Here we simply capture the value for our Makefile.
31593 if test -z "${HOST_LIBS+set}"; then
31594 HOST_LIBS=
31598 # Use the system's zlib library.
31600 # Use the system's zlib library.
31601 zlibdir="-L\$(top_builddir)/../zlib"
31602 zlibinc="-I\$(top_srcdir)/../zlib"
31604 # Check whether --with-system-zlib was given.
31605 if test "${with_system_zlib+set}" = set; then :
31606 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31607 zlibdir=
31608 zlibinc=
31618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31619 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31620 # Check whether --enable-maintainer-mode was given.
31621 if test "${enable_maintainer_mode+set}" = set; then :
31622 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31623 else
31624 maintainer_mode=no
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31629 $as_echo "$maintainer_mode" >&6; }
31631 if test "$maintainer_mode" = "yes"; then
31632 MAINT=''
31633 else
31634 MAINT='#'
31637 if test -z "$CTAGS"; then
31638 CTAGS=ctags
31641 if test -z "$ETAGS"; then
31642 ETAGS=etags
31645 if test -z "$CSCOPE"; then
31646 CSCOPE=cscope
31651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31652 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31653 # Check whether --enable-link-mutex was given.
31654 if test "${enable_link_mutex+set}" = set; then :
31655 enableval=$enable_link_mutex; do_link_mutex=$enableval
31656 else
31657 do_link_mutex=no
31660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31661 $as_echo "$do_link_mutex" >&6; }
31663 if test "$do_link_mutex" = "yes"; then
31664 DO_LINK_MUTEX=true
31665 { $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
31666 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31667 else
31668 DO_LINK_MUTEX=false
31673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31674 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31675 # Check whether --enable-link-serialization was given.
31676 if test "${enable_link_serialization+set}" = set; then :
31677 enableval=$enable_link_serialization; do_link_serialization=$enableval
31678 else
31679 do_link_serialization=no
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31683 $as_echo "$do_link_serialization" >&6; }
31685 case "$do_link_serialization" in
31686 yes)
31687 DO_LINK_SERIALIZATION=1;;
31688 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31689 DO_LINK_SERIALIZATION=$do_link_serialization;;
31691 DO_LINK_SERIALIZATION=;;
31693 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31694 esac
31697 # --------------
31698 # Language hooks
31699 # --------------
31701 # Make empty files to contain the specs and options for each language.
31702 # Then add #include lines to for a compiler that has specs and/or options.
31704 subdirs=
31705 lang_opt_files=
31706 lang_specs_files=
31707 lang_tree_files=
31708 # These (without "all_") are set in each config-lang.in.
31709 # `language' must be a single word so is spelled singularly.
31710 all_languages=
31711 all_compilers=
31712 all_outputs='Makefile'
31713 # List of language configure and makefile fragments.
31714 all_lang_configurefrags=
31715 all_lang_makefrags=
31716 # Additional files for gengtype
31717 all_gtfiles="$target_gtfiles"
31719 # These are the languages that are set in --enable-languages,
31720 # and are available in the GCC tree.
31721 all_selected_languages=
31723 # Add the language fragments.
31724 # Languages are added via two mechanisms. Some information must be
31725 # recorded in makefile variables, these are defined in config-lang.in.
31726 # We accumulate them and plug them into the main Makefile.
31727 # The other mechanism is a set of hooks for each of the main targets
31728 # like `clean', `install', etc.
31730 language_hooks="Make-hooks"
31732 for lang in ${srcdir}/*/config-lang.in
31734 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31736 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31737 if test "x$lang_alias" = x
31738 then
31739 echo "$lang doesn't set \$language." 1>&2
31740 exit 1
31742 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31743 subdirs="$subdirs $subdir"
31745 # $gcc_subdir is where the gcc integration files are to be found
31746 # for a language, both for internal compiler purposes (compiler
31747 # sources implementing front-end to GCC tree converters), and for
31748 # build infrastructure purposes (Make-lang.in, etc.)
31750 # This will be <subdir> (relative to $srcdir) if a line like
31751 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31752 # is found in <langdir>/config-lang.in, and will remain <langdir>
31753 # otherwise.
31755 # Except for the language alias (fetched above), the regular
31756 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31757 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31758 # only this and the language alias.
31760 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31761 if [ "$gcc_subdir" = "" ]; then
31762 gcc_subdir="$subdir"
31765 case ",$enable_languages," in
31766 *,$lang_alias,*)
31767 all_selected_languages="$all_selected_languages $lang_alias"
31768 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31769 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31772 esac
31774 language=
31775 boot_language=
31776 compilers=
31777 outputs=
31778 gtfiles=
31779 subdir_requires=
31780 . ${srcdir}/$gcc_subdir/config-lang.in
31781 if test "x$language" = x
31782 then
31783 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31784 exit 1
31787 ok=:
31788 case ",$enable_languages," in
31789 *,$lang_alias,*) ;;
31791 for i in $subdir_requires; do
31792 test -f "${srcdir}/$i/config-lang.in" && continue
31793 ok=false
31794 break
31795 done
31797 esac
31798 $ok || continue
31800 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31801 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31802 # Put c/Make-lang.in fragment first to match serialization languages order.
31803 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31804 else
31805 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31807 if test -f $srcdir/$gcc_subdir/lang.opt; then
31808 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31809 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31811 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31812 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31814 all_languages="$all_languages $language"
31815 all_compilers="$all_compilers $compilers"
31816 all_outputs="$all_outputs $outputs"
31817 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31818 case ",$enable_languages," in
31819 *,lto,*)
31821 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31823 enable_lto=yes
31826 *) ;;
31827 esac
31828 done
31830 check_languages=
31831 for language in $all_selected_languages
31833 check_languages="$check_languages check-$language"
31834 done
31836 selftest_languages=
31837 for language in $all_selected_languages
31839 selftest_languages="$selftest_languages selftest-$language"
31840 done
31842 # We link each language in with a set of hooks, reached indirectly via
31843 # lang.${target}. Only do so for selected languages.
31845 rm -f Make-hooks
31846 touch Make-hooks
31847 target_list="all.cross start.encap rest.encap tags \
31848 install-common install-man install-info install-dvi install-pdf \
31849 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31850 mostlyclean clean distclean maintainer-clean install-plugin"
31852 for t in $target_list
31855 for lang in $all_selected_languages
31857 x="$x $lang.$t"
31858 done
31859 echo "lang.$t: $x" >> Make-hooks
31860 done
31862 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31863 echo "SERIAL_LIST =" >> Make-hooks
31864 echo else >> Make-hooks
31865 lang_cnt=0
31866 lang_list=
31867 prev=c
31868 serialization_languages=c
31869 for lang in $all_selected_languages
31871 test $lang = c && continue
31872 if test $lang = lto; then
31873 serialization_languages="$serialization_languages lto1 lto2"
31874 else
31875 serialization_languages="$serialization_languages $lang"
31877 done
31878 for lang in $serialization_languages
31880 test $lang = c && continue
31881 lang_cnt=`expr $lang_cnt + 1`
31882 lang_list=" $prev$lang_list"
31883 prev=${lang}
31884 done
31885 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31886 echo endif >> Make-hooks
31887 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31888 echo "INDEX.c = 0" >> Make-hooks
31889 lang_idx=1
31890 for lang in $serialization_languages
31892 test $lang = c && continue
31893 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31894 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31895 lang_cnt=`expr $lang_cnt - 1`
31896 lang_idx=`expr $lang_idx + 1`
31897 done
31899 # --------
31900 # Option include files
31901 # --------
31903 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31904 option_includes="option-includes.mk"
31907 # --------
31908 # UNSORTED
31909 # --------
31911 # Create .gdbinit.
31913 echo "dir ." > .gdbinit
31914 echo "dir ${srcdir}" >> .gdbinit
31915 if test x$gdb_needs_out_file_path = xyes
31916 then
31917 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31919 if test "x$subdirs" != x; then
31920 for s in $subdirs
31922 echo "dir ${srcdir}/$s" >> .gdbinit
31923 done
31925 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31926 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31928 # Put a breakpoint on __asan_report_error to help with debugging buffer
31929 # overflow.
31930 case "$CFLAGS" in
31931 *-fsanitize=address*)
31932 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31934 esac
31936 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31940 # Find a directory in which to install a shared libgcc.
31942 # Check whether --enable-version-specific-runtime-libs was given.
31943 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31944 enableval=$enable_version_specific_runtime_libs;
31948 # Substitute configuration variables
32021 # Echo link setup.
32022 if test x${build} = x${host} ; then
32023 if test x${host} = x${target} ; then
32024 echo "Links are now set up to build a native compiler for ${target}." 1>&2
32025 else
32026 echo "Links are now set up to build a cross-compiler" 1>&2
32027 echo " from ${host} to ${target}." 1>&2
32029 else
32030 if test x${host} = x${target} ; then
32031 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
32032 echo " for ${target}." 1>&2
32033 else
32034 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
32035 echo " from ${host} to ${target}." 1>&2
32044 if test "x${ISLLIBS}" != "x" ; then
32046 $as_echo "#define HAVE_isl 1" >>confdefs.h
32050 # Check for plugin support
32051 # Check whether --enable-plugin was given.
32052 if test "${enable_plugin+set}" = set; then :
32053 enableval=$enable_plugin; enable_plugin=$enableval
32054 else
32055 enable_plugin=yes; default_plugin=yes
32059 pluginlibs=
32060 plugin_check=yes
32062 case "${host}" in
32063 *-*-mingw*)
32064 # Since plugin support under MinGW is not as straightforward as on
32065 # other platforms (e.g., we have to link import library, etc), we
32066 # only enable it if explicitly requested.
32067 if test x"$default_plugin" = x"yes"; then
32068 enable_plugin=no
32069 elif test x"$enable_plugin" = x"yes"; then
32070 # Use make's target variable to derive import library name.
32071 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
32072 plugin_check=no
32075 *-*-darwin*)
32076 if test x$build = x$host; then
32077 export_sym_check="nm${exeext} -g"
32078 elif test x$host = x$target; then
32079 export_sym_check="$gcc_cv_nm -g"
32080 else
32081 export_sym_check=
32085 if test x$build = x$host; then
32086 export_sym_check="$ac_cv_prog_OBJDUMP -T"
32087 elif test x$host = x$target; then
32088 export_sym_check="$gcc_cv_objdump -T"
32089 else
32090 export_sym_check="$ac_cv_prog_OBJDUMP -T"
32093 esac
32095 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
32097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
32098 $as_echo_n "checking for exported symbols... " >&6; }
32099 if test "x$export_sym_check" != x; then
32100 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
32101 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
32102 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
32103 : # No need to use a flag
32104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32105 $as_echo "yes" >&6; }
32106 else
32107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32108 $as_echo "yes" >&6; }
32109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
32110 $as_echo_n "checking for -rdynamic... " >&6; }
32111 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
32112 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
32113 plugin_rdynamic=yes
32114 pluginlibs="-rdynamic"
32115 else
32116 plugin_rdynamic=no
32117 enable_plugin=no
32119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
32120 $as_echo "$plugin_rdynamic" >&6; }
32122 else
32123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
32124 $as_echo "unable to check" >&6; }
32127 # Check -ldl
32128 saved_LIBS="$LIBS"
32129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
32130 $as_echo_n "checking for library containing dlopen... " >&6; }
32131 if ${ac_cv_search_dlopen+:} false; then :
32132 $as_echo_n "(cached) " >&6
32133 else
32134 ac_func_search_save_LIBS=$LIBS
32135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32136 /* end confdefs.h. */
32138 /* Override any GCC internal prototype to avoid an error.
32139 Use char because int might match the return type of a GCC
32140 builtin and then its argument prototype would still apply. */
32141 #ifdef __cplusplus
32142 extern "C"
32143 #endif
32144 char dlopen ();
32146 main ()
32148 return dlopen ();
32150 return 0;
32152 _ACEOF
32153 for ac_lib in '' dl; do
32154 if test -z "$ac_lib"; then
32155 ac_res="none required"
32156 else
32157 ac_res=-l$ac_lib
32158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32160 if ac_fn_cxx_try_link "$LINENO"; then :
32161 ac_cv_search_dlopen=$ac_res
32163 rm -f core conftest.err conftest.$ac_objext \
32164 conftest$ac_exeext
32165 if ${ac_cv_search_dlopen+:} false; then :
32166 break
32168 done
32169 if ${ac_cv_search_dlopen+:} false; then :
32171 else
32172 ac_cv_search_dlopen=no
32174 rm conftest.$ac_ext
32175 LIBS=$ac_func_search_save_LIBS
32177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32178 $as_echo "$ac_cv_search_dlopen" >&6; }
32179 ac_res=$ac_cv_search_dlopen
32180 if test "$ac_res" != no; then :
32181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32185 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
32186 pluginlibs="$pluginlibs -ldl"
32188 LIBS="$saved_LIBS"
32190 # Check that we can build shared objects with -fPIC -shared
32191 saved_LDFLAGS="$LDFLAGS"
32192 saved_CFLAGS="$CFLAGS"
32193 saved_CXXFLAGS="$CXXFLAGS"
32194 case "${host}" in
32195 *-*-darwin*)
32196 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32197 CFLAGS="$CFLAGS -fPIC"
32198 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32199 CXXFLAGS="$CXXFLAGS -fPIC"
32200 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
32203 CFLAGS="$CFLAGS -fPIC"
32204 CXXFLAGS="$CXXFLAGS -fPIC"
32205 LDFLAGS="$LDFLAGS -fPIC -shared"
32207 esac
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32209 $as_echo_n "checking for -fPIC -shared... " >&6; }
32210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32211 /* end confdefs.h. */
32212 extern int X;
32214 main ()
32216 return X == 0;
32218 return 0;
32220 _ACEOF
32221 if ac_fn_cxx_try_link "$LINENO"; then :
32222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32223 $as_echo "yes" >&6; }; have_pic_shared=yes
32224 else
32225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32226 $as_echo "no" >&6; }; have_pic_shared=no
32228 rm -f core conftest.err conftest.$ac_objext \
32229 conftest$ac_exeext conftest.$ac_ext
32230 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
32231 pluginlibs=
32232 enable_plugin=no
32234 LDFLAGS="$saved_LDFLAGS"
32235 CFLAGS="$saved_CFLAGS"
32236 CXXFLAGS="$saved_CXXFLAGS"
32238 # If plugin support had been requested but not available, fail.
32239 if test x"$enable_plugin" = x"no" ; then
32240 if test x"$default_plugin" != x"yes"; then
32241 as_fn_error $? "
32242 Building GCC with plugin support requires a host that supports
32243 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32250 if test x"$enable_plugin" = x"yes"; then
32252 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32257 # Enable --enable-host-shared
32258 # Check whether --enable-host-shared was given.
32259 if test "${enable_host_shared+set}" = set; then :
32260 enableval=$enable_host_shared;
32265 # Enable --enable-host-pie
32266 # Check whether --enable-host-pie was given.
32267 if test "${enable_host_pie+set}" = set; then :
32268 enableval=$enable_host_pie;
32273 # Enable --enable-host-bind-now
32274 # Check whether --enable-host-bind-now was given.
32275 if test "${enable_host_bind_now+set}" = set; then :
32276 enableval=$enable_host_bind_now;
32281 # Check whether --enable-libquadmath-support was given.
32282 if test "${enable_libquadmath_support+set}" = set; then :
32283 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
32284 else
32285 ENABLE_LIBQUADMATH_SUPPORT=yes
32288 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32290 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32295 # Specify what hash style to use by default.
32297 # Check whether --with-linker-hash-style was given.
32298 if test "${with_linker_hash_style+set}" = set; then :
32299 withval=$with_linker_hash_style; case x"$withval" in
32300 xsysv)
32301 LINKER_HASH_STYLE=sysv
32303 xgnu)
32304 LINKER_HASH_STYLE=gnu
32306 xboth)
32307 LINKER_HASH_STYLE=both
32310 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32312 esac
32313 else
32314 LINKER_HASH_STYLE=''
32317 if test x"${LINKER_HASH_STYLE}" != x; then
32319 cat >>confdefs.h <<_ACEOF
32320 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32321 _ACEOF
32325 # Specify what should be the default of -fdiagnostics-color option.
32327 # Check whether --with-diagnostics-color was given.
32328 if test "${with_diagnostics_color+set}" = set; then :
32329 withval=$with_diagnostics_color; case x"$withval" in
32330 xnever)
32331 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32333 xauto)
32334 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32336 xauto-if-env)
32337 DIAGNOSTICS_COLOR_DEFAULT=-1
32339 xalways)
32340 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32343 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32345 esac
32346 else
32347 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32351 cat >>confdefs.h <<_ACEOF
32352 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32353 _ACEOF
32356 # Specify what should be the default of -fdiagnostics-urls option.
32358 # Check whether --with-diagnostics-urls was given.
32359 if test "${with_diagnostics_urls+set}" = set; then :
32360 withval=$with_diagnostics_urls; case x"$withval" in
32361 xnever)
32362 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32364 xauto)
32365 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32367 xauto-if-env)
32368 DIAGNOSTICS_URLS_DEFAULT=-1
32370 xalways)
32371 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32374 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32376 esac
32377 else
32378 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32382 cat >>confdefs.h <<_ACEOF
32383 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32384 _ACEOF
32387 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32388 # of jit/jit-playback.cc.
32389 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32390 echo "gcc_driver_version: ${gcc_driver_version}"
32391 cat > gcc-driver-name.h <<EOF
32392 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32395 # Check whether --enable-default-pie was given.
32396 # Check whether --enable-default-pie was given.
32397 if test "${enable_default_pie+set}" = set; then :
32398 enableval=$enable_default_pie; enable_default_pie=$enableval
32399 else
32400 enable_default_pie=no
32403 if test x$enable_default_pie = xyes ; then
32405 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32410 # Check if -fno-PIE works.
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32412 $as_echo_n "checking for -fno-PIE option... " >&6; }
32413 if ${gcc_cv_c_no_fpie+:} false; then :
32414 $as_echo_n "(cached) " >&6
32415 else
32416 saved_CXXFLAGS="$CXXFLAGS"
32417 CXXFLAGS="$CXXFLAGS -fno-PIE"
32418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32419 /* end confdefs.h. */
32420 int main(void) {return 0;}
32421 _ACEOF
32422 if ac_fn_cxx_try_compile "$LINENO"; then :
32423 gcc_cv_c_no_fpie=yes
32424 else
32425 gcc_cv_c_no_fpie=no
32427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32428 CXXFLAGS="$saved_CXXFLAGS"
32430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32431 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32433 # Check if -no-pie works.
32434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32435 $as_echo_n "checking for -no-pie option... " >&6; }
32436 if ${gcc_cv_no_pie+:} false; then :
32437 $as_echo_n "(cached) " >&6
32438 else
32439 saved_LDFLAGS="$LDFLAGS"
32440 LDFLAGS="$LDFLAGS -no-pie"
32441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32442 /* end confdefs.h. */
32443 int main(void) {return 0;}
32444 _ACEOF
32445 if ac_fn_cxx_try_link "$LINENO"; then :
32446 gcc_cv_no_pie=yes
32447 else
32448 gcc_cv_no_pie=no
32450 rm -f core conftest.err conftest.$ac_objext \
32451 conftest$ac_exeext conftest.$ac_ext
32452 LDFLAGS="$saved_LDFLAGS"
32454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32455 $as_echo "$gcc_cv_no_pie" >&6; }
32457 if test x$enable_host_shared = xyes; then
32458 PICFLAG=-fPIC
32459 elif test x$enable_host_pie = xyes; then
32460 PICFLAG=-fPIE
32461 elif test x$gcc_cv_c_no_fpie = xyes; then
32462 PICFLAG=-fno-PIE
32463 else
32464 PICFLAG=
32469 if test x$enable_host_pie = xyes; then
32470 LD_PICFLAG=-pie
32471 elif test x$gcc_cv_no_pie = xyes; then
32472 LD_PICFLAG=-no-pie
32473 else
32474 LD_PICFLAG=
32477 if test x$enable_host_bind_now = xyes; then
32478 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
32483 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32484 # Check whether --enable-cet was given.
32485 if test "${enable_cet+set}" = set; then :
32486 enableval=$enable_cet;
32487 case "$enableval" in
32488 yes|no|auto) ;;
32489 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32490 esac
32492 else
32493 enable_cet=auto
32497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32498 $as_echo_n "checking for CET support... " >&6; }
32500 case "$host" in
32501 i[34567]86-*-linux* | x86_64-*-linux*)
32502 may_have_cet=yes
32503 cet_save_CFLAGS="$CFLAGS"
32504 CFLAGS="$CFLAGS -fcf-protection"
32505 case "$enable_cet" in
32506 auto)
32507 # Check if target supports multi-byte NOPs
32508 # and if compiler and assembler support CET.
32509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32510 /* end confdefs.h. */
32513 main ()
32516 #if !defined(__SSE2__)
32517 #error target does not support multi-byte NOPs
32518 #else
32519 asm ("setssbsy");
32520 #endif
32523 return 0;
32525 _ACEOF
32526 if ac_fn_cxx_try_compile "$LINENO"; then :
32527 enable_cet=yes
32528 else
32529 enable_cet=no
32531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32533 yes)
32534 # Check if compiler and assembler support CET.
32535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32536 /* end confdefs.h. */
32539 main ()
32541 asm ("setssbsy");
32543 return 0;
32545 _ACEOF
32546 if ac_fn_cxx_try_compile "$LINENO"; then :
32547 support_cet=yes
32548 else
32549 support_cet=no
32551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32552 if test $support_cet = "no"; then
32553 if test x$enable_bootstrap != xno \
32554 && test -z "${with_build_subdir}" \
32555 && (test ! -f ../stage_current \
32556 || test `cat ../stage_current` != "stage1"); then
32557 # Require CET support only for the final GCC build.
32558 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32559 else
32560 # Don't enable CET without CET support for non-bootstrap
32561 # build, in stage1 nor for build support.
32562 enable_cet=no
32566 esac
32567 CFLAGS="$cet_save_CFLAGS"
32570 may_have_cet=no
32571 enable_cet=no
32573 esac
32575 cet_save_CFLAGS="$CFLAGS"
32576 CFLAGS="$CFLAGS -fcf-protection=none"
32577 cet_save_LDFLAGS="$LDFLAGS"
32578 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32579 if test x$may_have_cet = xyes; then
32580 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32582 /* end confdefs.h. */
32585 main ()
32587 return 0;
32589 return 0;
32591 _ACEOF
32592 if ac_fn_cxx_try_link "$LINENO"; then :
32593 may_have_cet=yes
32594 else
32595 may_have_cet=no
32597 rm -f core conftest.err conftest.$ac_objext \
32598 conftest$ac_exeext conftest.$ac_ext
32601 if test x$may_have_cet = xyes; then
32602 if test x$cross_compiling = xno; then
32603 if test "$cross_compiling" = yes; then :
32604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32606 as_fn_error $? "cannot run test program while cross compiling
32607 See \`config.log' for more details" "$LINENO" 5; }
32608 else
32609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32610 /* end confdefs.h. */
32613 main ()
32615 asm ("endbr32");
32616 return 0;
32619 _ACEOF
32620 if ac_fn_cxx_try_run "$LINENO"; then :
32621 have_multi_byte_nop=yes
32622 else
32623 have_multi_byte_nop=no
32625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32626 conftest.$ac_objext conftest.beam conftest.$ac_ext
32629 have_cet=no
32630 if test x$have_multi_byte_nop = xyes; then
32631 if test "$cross_compiling" = yes; then :
32632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32634 as_fn_error $? "cannot run test program while cross compiling
32635 See \`config.log' for more details" "$LINENO" 5; }
32636 else
32637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32638 /* end confdefs.h. */
32640 static void
32641 foo (void)
32645 static void
32646 __attribute__ ((noinline, noclone))
32647 xxx (void (*f) (void))
32649 f ();
32652 static void
32653 __attribute__ ((noinline, noclone))
32654 bar (void)
32656 xxx (foo);
32660 main ()
32662 bar ();
32663 return 0;
32666 _ACEOF
32667 if ac_fn_cxx_try_run "$LINENO"; then :
32668 have_cet=no
32669 else
32670 have_cet=yes
32672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32673 conftest.$ac_objext conftest.beam conftest.$ac_ext
32677 if test x$enable_cet = xno -a x$have_cet = xyes; then
32678 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32681 else
32682 # Enable CET in cross compiler if possible so that it will run on both
32683 # CET and non-CET hosts.
32684 have_cet=yes
32686 if test x$enable_cet = xyes; then
32687 CET_HOST_FLAGS="-fcf-protection"
32688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32689 $as_echo "yes" >&6; }
32690 else
32691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32692 $as_echo "no" >&6; }
32694 CFLAGS="$cet_save_CFLAGS"
32695 LDFLAGS="$cet_save_LDFLAGS"
32697 case x$enable_languages in
32698 *jit*)
32701 CET_HOST_FLAGS=
32703 esac
32706 # Check linker supports '-z bndplt'
32707 ld_bndplt_support=no
32708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32709 $as_echo_n "checking linker -z bndplt option... " >&6; }
32710 if test x"$ld_is_gold" = xno; then
32711 if test $in_tree_ld = yes ; then
32712 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
32713 ld_bndplt_support=yes
32715 elif test x$gcc_cv_ld != x; then
32716 # Check if linker supports -a bndplt option
32717 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32718 ld_bndplt_support=yes
32722 if test x"$ld_bndplt_support" = xyes; then
32724 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32728 $as_echo "$ld_bndplt_support" >&6; }
32730 # Check linker supports '--push-state'/'--pop-state'
32731 ld_pushpopstate_support=no
32732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32733 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32734 if test x"$ld_is_gold" = xno; then
32735 if test $in_tree_ld = yes ; then
32736 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
32737 ld_pushpopstate_support=yes
32739 elif test x$gcc_cv_ld != x; then
32740 # Check if linker supports --push-state/--pop-state options
32741 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32742 ld_pushpopstate_support=yes
32746 if test x"$ld_pushpopstate_support" = xyes; then
32748 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32752 $as_echo "$ld_pushpopstate_support" >&6; }
32754 # On s390, float_t has historically been statically defined as double for no
32755 # good reason. To comply with the C standard in the light of this definition,
32756 # gcc has evaluated float expressions in double precision when in
32757 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32758 # a smooth transition towards the new model used by most architectures, where
32759 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32760 # float_t from that, this behavior can be configured with
32761 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32762 # the old model. When omitted, native builds and cross compiles that have target
32763 # libc headers will detect whether libc clamps float_t to double and in that
32764 # case maintain the old model. Otherwise, they will default to the new model.
32765 # Check whether --enable-s390-excess-float-precision was given.
32766 if test "${enable_s390_excess_float_precision+set}" = set; then :
32767 enableval=$enable_s390_excess_float_precision;
32768 else
32769 enable_s390_excess_float_precision=auto
32773 case $target in
32774 s390*-linux*)
32775 if test x"$enable_s390_excess_float_precision" = xauto; then
32776 # Can we autodetect the behavior of the target libc?
32777 if test "$target" = "$host" -a "$host" = "$build"; then
32778 enable_s390_excess_float_precision=autodetect
32779 elif test "x$with_headers" != xno; then
32780 # cross build. are target headers available?
32781 # carefully coerce the build-system compiler to use target headers
32782 saved_CXXFLAGS="$CXXFLAGS"
32783 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32784 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32785 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32787 /* end confdefs.h. */
32789 #include <math.h>
32791 _ACEOF
32792 if ac_fn_cxx_try_compile "$LINENO"; then :
32793 enable_s390_excess_float_precision=autodetect
32795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32796 CXXFLAGS="$saved_CXXFLAGS"
32799 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32800 saved_CXXFLAGS="$CXXFLAGS"
32801 if ! test "$target" = "$host" -a "$host" = "$build"; then
32802 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32803 unset CROSS_TEST_CXXFLAGS
32805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32806 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32807 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32808 $as_echo_n "(cached) " >&6
32809 else
32811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32812 /* end confdefs.h. */
32814 #define __FLT_EVAL_METHOD__ 0
32815 #include <math.h>
32816 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32818 _ACEOF
32819 if ac_fn_cxx_try_compile "$LINENO"; then :
32820 gcc_cv_float_t_clamped_to_double=yes
32821 else
32822 gcc_cv_float_t_clamped_to_double=no
32824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32827 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32828 CXXFLAGS="$saved_CXXFLAGS"
32829 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32830 else
32831 # no way to detect behavior of target libc, default to new model
32832 enable_s390_excess_float_precision=no
32837 if test x"$enable_s390_excess_float_precision" = xyes; then
32839 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32843 esac
32845 # Configure the subdirectories
32846 # AC_CONFIG_SUBDIRS($subdirs)
32848 # Create the Makefile
32849 # and configure language subdirectories
32850 ac_config_files="$ac_config_files $all_outputs"
32853 ac_config_commands="$ac_config_commands default"
32855 cat >confcache <<\_ACEOF
32856 # This file is a shell script that caches the results of configure
32857 # tests run on this system so they can be shared between configure
32858 # scripts and configure runs, see configure's option --config-cache.
32859 # It is not useful on other systems. If it contains results you don't
32860 # want to keep, you may remove or edit it.
32862 # config.status only pays attention to the cache file if you give it
32863 # the --recheck option to rerun configure.
32865 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32867 # following values.
32869 _ACEOF
32871 # The following way of writing the cache mishandles newlines in values,
32872 # but we know of no workaround that is simple, portable, and efficient.
32873 # So, we kill variables containing newlines.
32874 # Ultrix sh set writes to stderr and can't be redirected directly,
32875 # and sets the high bit in the cache file unless we assign to the vars.
32877 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32878 eval ac_val=\$$ac_var
32879 case $ac_val in #(
32880 *${as_nl}*)
32881 case $ac_var in #(
32882 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32883 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32884 esac
32885 case $ac_var in #(
32886 _ | IFS | as_nl) ;; #(
32887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32888 *) { eval $ac_var=; unset $ac_var;} ;;
32889 esac ;;
32890 esac
32891 done
32893 (set) 2>&1 |
32894 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32895 *${as_nl}ac_space=\ *)
32896 # `set' does not quote correctly, so add quotes: double-quote
32897 # substitution turns \\\\ into \\, and sed turns \\ into \.
32898 sed -n \
32899 "s/'/'\\\\''/g;
32900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32901 ;; #(
32903 # `set' quotes correctly as required by POSIX, so do not add quotes.
32904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32906 esac |
32907 sort
32909 sed '
32910 /^ac_cv_env_/b end
32911 t clear
32912 :clear
32913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32914 t end
32915 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32916 :end' >>confcache
32917 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32918 if test -w "$cache_file"; then
32919 if test "x$cache_file" != "x/dev/null"; then
32920 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32921 $as_echo "$as_me: updating cache $cache_file" >&6;}
32922 if test ! -f "$cache_file" || test -h "$cache_file"; then
32923 cat confcache >"$cache_file"
32924 else
32925 case $cache_file in #(
32926 */* | ?:*)
32927 mv -f confcache "$cache_file"$$ &&
32928 mv -f "$cache_file"$$ "$cache_file" ;; #(
32930 mv -f confcache "$cache_file" ;;
32931 esac
32934 else
32935 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32936 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32939 rm -f confcache
32941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32942 # Let make expand exec_prefix.
32943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32945 DEFS=-DHAVE_CONFIG_H
32947 ac_libobjs=
32948 ac_ltlibobjs=
32950 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32951 # 1. Remove the extension, and $U if already installed.
32952 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32953 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32954 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32955 # will be set to the directory where LIBOBJS objects are built.
32956 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32957 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32958 done
32959 LIBOBJS=$ac_libobjs
32961 LTLIBOBJS=$ac_ltlibobjs
32966 : "${CONFIG_STATUS=./config.status}"
32967 ac_write_fail=0
32968 ac_clean_files_save=$ac_clean_files
32969 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32971 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32972 as_write_fail=0
32973 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32974 #! $SHELL
32975 # Generated by $as_me.
32976 # Run this file to recreate the current configuration.
32977 # Compiler output produced by configure, useful for debugging
32978 # configure, is in config.log if it exists.
32980 debug=false
32981 ac_cs_recheck=false
32982 ac_cs_silent=false
32984 SHELL=\${CONFIG_SHELL-$SHELL}
32985 export SHELL
32986 _ASEOF
32987 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32988 ## -------------------- ##
32989 ## M4sh Initialization. ##
32990 ## -------------------- ##
32992 # Be more Bourne compatible
32993 DUALCASE=1; export DUALCASE # for MKS sh
32994 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32995 emulate sh
32996 NULLCMD=:
32997 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32998 # is contrary to our usage. Disable this feature.
32999 alias -g '${1+"$@"}'='"$@"'
33000 setopt NO_GLOB_SUBST
33001 else
33002 case `(set -o) 2>/dev/null` in #(
33003 *posix*) :
33004 set -o posix ;; #(
33005 *) :
33007 esac
33011 as_nl='
33013 export as_nl
33014 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33015 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33016 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33017 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33018 # Prefer a ksh shell builtin over an external printf program on Solaris,
33019 # but without wasting forks for bash or zsh.
33020 if test -z "$BASH_VERSION$ZSH_VERSION" \
33021 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33022 as_echo='print -r --'
33023 as_echo_n='print -rn --'
33024 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33025 as_echo='printf %s\n'
33026 as_echo_n='printf %s'
33027 else
33028 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33029 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33030 as_echo_n='/usr/ucb/echo -n'
33031 else
33032 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33033 as_echo_n_body='eval
33034 arg=$1;
33035 case $arg in #(
33036 *"$as_nl"*)
33037 expr "X$arg" : "X\\(.*\\)$as_nl";
33038 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33039 esac;
33040 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33042 export as_echo_n_body
33043 as_echo_n='sh -c $as_echo_n_body as_echo'
33045 export as_echo_body
33046 as_echo='sh -c $as_echo_body as_echo'
33049 # The user is always right.
33050 if test "${PATH_SEPARATOR+set}" != set; then
33051 PATH_SEPARATOR=:
33052 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33053 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33054 PATH_SEPARATOR=';'
33059 # IFS
33060 # We need space, tab and new line, in precisely that order. Quoting is
33061 # there to prevent editors from complaining about space-tab.
33062 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33063 # splitting by setting IFS to empty value.)
33064 IFS=" "" $as_nl"
33066 # Find who we are. Look in the path if we contain no directory separator.
33067 as_myself=
33068 case $0 in #((
33069 *[\\/]* ) as_myself=$0 ;;
33070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33071 for as_dir in $PATH
33073 IFS=$as_save_IFS
33074 test -z "$as_dir" && as_dir=.
33075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33076 done
33077 IFS=$as_save_IFS
33080 esac
33081 # We did not find ourselves, most probably we were run as `sh COMMAND'
33082 # in which case we are not to be found in the path.
33083 if test "x$as_myself" = x; then
33084 as_myself=$0
33086 if test ! -f "$as_myself"; then
33087 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33088 exit 1
33091 # Unset variables that we do not need and which cause bugs (e.g. in
33092 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33093 # suppresses any "Segmentation fault" message there. '((' could
33094 # trigger a bug in pdksh 5.2.14.
33095 for as_var in BASH_ENV ENV MAIL MAILPATH
33096 do eval test x\${$as_var+set} = xset \
33097 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33098 done
33099 PS1='$ '
33100 PS2='> '
33101 PS4='+ '
33103 # NLS nuisances.
33104 LC_ALL=C
33105 export LC_ALL
33106 LANGUAGE=C
33107 export LANGUAGE
33109 # CDPATH.
33110 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33113 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33114 # ----------------------------------------
33115 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33116 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33117 # script with STATUS, using 1 if that was 0.
33118 as_fn_error ()
33120 as_status=$1; test $as_status -eq 0 && as_status=1
33121 if test "$4"; then
33122 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33123 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33125 $as_echo "$as_me: error: $2" >&2
33126 as_fn_exit $as_status
33127 } # as_fn_error
33130 # as_fn_set_status STATUS
33131 # -----------------------
33132 # Set $? to STATUS, without forking.
33133 as_fn_set_status ()
33135 return $1
33136 } # as_fn_set_status
33138 # as_fn_exit STATUS
33139 # -----------------
33140 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33141 as_fn_exit ()
33143 set +e
33144 as_fn_set_status $1
33145 exit $1
33146 } # as_fn_exit
33148 # as_fn_unset VAR
33149 # ---------------
33150 # Portably unset VAR.
33151 as_fn_unset ()
33153 { eval $1=; unset $1;}
33155 as_unset=as_fn_unset
33156 # as_fn_append VAR VALUE
33157 # ----------------------
33158 # Append the text in VALUE to the end of the definition contained in VAR. Take
33159 # advantage of any shell optimizations that allow amortized linear growth over
33160 # repeated appends, instead of the typical quadratic growth present in naive
33161 # implementations.
33162 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33163 eval 'as_fn_append ()
33165 eval $1+=\$2
33167 else
33168 as_fn_append ()
33170 eval $1=\$$1\$2
33172 fi # as_fn_append
33174 # as_fn_arith ARG...
33175 # ------------------
33176 # Perform arithmetic evaluation on the ARGs, and store the result in the
33177 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33178 # must be portable across $(()) and expr.
33179 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33180 eval 'as_fn_arith ()
33182 as_val=$(( $* ))
33184 else
33185 as_fn_arith ()
33187 as_val=`expr "$@" || test $? -eq 1`
33189 fi # as_fn_arith
33192 if expr a : '\(a\)' >/dev/null 2>&1 &&
33193 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33194 as_expr=expr
33195 else
33196 as_expr=false
33199 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33200 as_basename=basename
33201 else
33202 as_basename=false
33205 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33206 as_dirname=dirname
33207 else
33208 as_dirname=false
33211 as_me=`$as_basename -- "$0" ||
33212 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33213 X"$0" : 'X\(//\)$' \| \
33214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33215 $as_echo X/"$0" |
33216 sed '/^.*\/\([^/][^/]*\)\/*$/{
33217 s//\1/
33220 /^X\/\(\/\/\)$/{
33221 s//\1/
33224 /^X\/\(\/\).*/{
33225 s//\1/
33228 s/.*/./; q'`
33230 # Avoid depending upon Character Ranges.
33231 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33232 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33233 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33234 as_cr_digits='0123456789'
33235 as_cr_alnum=$as_cr_Letters$as_cr_digits
33237 ECHO_C= ECHO_N= ECHO_T=
33238 case `echo -n x` in #(((((
33239 -n*)
33240 case `echo 'xy\c'` in
33241 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33242 xy) ECHO_C='\c';;
33243 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33244 ECHO_T=' ';;
33245 esac;;
33247 ECHO_N='-n';;
33248 esac
33250 rm -f conf$$ conf$$.exe conf$$.file
33251 if test -d conf$$.dir; then
33252 rm -f conf$$.dir/conf$$.file
33253 else
33254 rm -f conf$$.dir
33255 mkdir conf$$.dir 2>/dev/null
33257 if (echo >conf$$.file) 2>/dev/null; then
33258 if ln -s conf$$.file conf$$ 2>/dev/null; then
33259 as_ln_s='ln -s'
33260 # ... but there are two gotchas:
33261 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33262 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33263 # In both cases, we have to default to `cp -pR'.
33264 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33265 as_ln_s='cp -pR'
33266 elif ln conf$$.file conf$$ 2>/dev/null; then
33267 as_ln_s=ln
33268 else
33269 as_ln_s='cp -pR'
33271 else
33272 as_ln_s='cp -pR'
33274 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33275 rmdir conf$$.dir 2>/dev/null
33278 # as_fn_mkdir_p
33279 # -------------
33280 # Create "$as_dir" as a directory, including parents if necessary.
33281 as_fn_mkdir_p ()
33284 case $as_dir in #(
33285 -*) as_dir=./$as_dir;;
33286 esac
33287 test -d "$as_dir" || eval $as_mkdir_p || {
33288 as_dirs=
33289 while :; do
33290 case $as_dir in #(
33291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33292 *) as_qdir=$as_dir;;
33293 esac
33294 as_dirs="'$as_qdir' $as_dirs"
33295 as_dir=`$as_dirname -- "$as_dir" ||
33296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33297 X"$as_dir" : 'X\(//\)[^/]' \| \
33298 X"$as_dir" : 'X\(//\)$' \| \
33299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33300 $as_echo X"$as_dir" |
33301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33302 s//\1/
33305 /^X\(\/\/\)[^/].*/{
33306 s//\1/
33309 /^X\(\/\/\)$/{
33310 s//\1/
33313 /^X\(\/\).*/{
33314 s//\1/
33317 s/.*/./; q'`
33318 test -d "$as_dir" && break
33319 done
33320 test -z "$as_dirs" || eval "mkdir $as_dirs"
33321 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33324 } # as_fn_mkdir_p
33325 if mkdir -p . 2>/dev/null; then
33326 as_mkdir_p='mkdir -p "$as_dir"'
33327 else
33328 test -d ./-p && rmdir ./-p
33329 as_mkdir_p=false
33333 # as_fn_executable_p FILE
33334 # -----------------------
33335 # Test if FILE is an executable regular file.
33336 as_fn_executable_p ()
33338 test -f "$1" && test -x "$1"
33339 } # as_fn_executable_p
33340 as_test_x='test -x'
33341 as_executable_p=as_fn_executable_p
33343 # Sed expression to map a string onto a valid CPP name.
33344 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33346 # Sed expression to map a string onto a valid variable name.
33347 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33350 exec 6>&1
33351 ## ----------------------------------- ##
33352 ## Main body of $CONFIG_STATUS script. ##
33353 ## ----------------------------------- ##
33354 _ASEOF
33355 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33358 # Save the log message, to keep $0 and so on meaningful, and to
33359 # report actual input values of CONFIG_FILES etc. instead of their
33360 # values after options handling.
33361 ac_log="
33362 This file was extended by $as_me, which was
33363 generated by GNU Autoconf 2.69. Invocation command line was
33365 CONFIG_FILES = $CONFIG_FILES
33366 CONFIG_HEADERS = $CONFIG_HEADERS
33367 CONFIG_LINKS = $CONFIG_LINKS
33368 CONFIG_COMMANDS = $CONFIG_COMMANDS
33369 $ $0 $@
33371 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33374 _ACEOF
33376 case $ac_config_files in *"
33377 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33378 esac
33380 case $ac_config_headers in *"
33381 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33382 esac
33385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33386 # Files that config.status was made for.
33387 config_files="$ac_config_files"
33388 config_headers="$ac_config_headers"
33389 config_links="$ac_config_links"
33390 config_commands="$ac_config_commands"
33392 _ACEOF
33394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33395 ac_cs_usage="\
33396 \`$as_me' instantiates files and other configuration actions
33397 from templates according to the current configuration. Unless the files
33398 and actions are specified as TAGs, all are instantiated by default.
33400 Usage: $0 [OPTION]... [TAG]...
33402 -h, --help print this help, then exit
33403 -V, --version print version number and configuration settings, then exit
33404 --config print configuration, then exit
33405 -q, --quiet, --silent
33406 do not print progress messages
33407 -d, --debug don't remove temporary files
33408 --recheck update $as_me by reconfiguring in the same conditions
33409 --file=FILE[:TEMPLATE]
33410 instantiate the configuration file FILE
33411 --header=FILE[:TEMPLATE]
33412 instantiate the configuration header FILE
33414 Configuration files:
33415 $config_files
33417 Configuration headers:
33418 $config_headers
33420 Configuration links:
33421 $config_links
33423 Configuration commands:
33424 $config_commands
33426 Report bugs to the package provider."
33428 _ACEOF
33429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33430 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33431 ac_cs_version="\\
33432 config.status
33433 configured by $0, generated by GNU Autoconf 2.69,
33434 with options \\"\$ac_cs_config\\"
33436 Copyright (C) 2012 Free Software Foundation, Inc.
33437 This config.status script is free software; the Free Software Foundation
33438 gives unlimited permission to copy, distribute and modify it."
33440 ac_pwd='$ac_pwd'
33441 srcdir='$srcdir'
33442 AWK='$AWK'
33443 test -n "\$AWK" || AWK=awk
33444 _ACEOF
33446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33447 # The default lists apply if the user does not specify any file.
33448 ac_need_defaults=:
33449 while test $# != 0
33451 case $1 in
33452 --*=?*)
33453 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33454 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33455 ac_shift=:
33457 --*=)
33458 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33459 ac_optarg=
33460 ac_shift=:
33463 ac_option=$1
33464 ac_optarg=$2
33465 ac_shift=shift
33467 esac
33469 case $ac_option in
33470 # Handling of the options.
33471 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33472 ac_cs_recheck=: ;;
33473 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33474 $as_echo "$ac_cs_version"; exit ;;
33475 --config | --confi | --conf | --con | --co | --c )
33476 $as_echo "$ac_cs_config"; exit ;;
33477 --debug | --debu | --deb | --de | --d | -d )
33478 debug=: ;;
33479 --file | --fil | --fi | --f )
33480 $ac_shift
33481 case $ac_optarg in
33482 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33483 '') as_fn_error $? "missing file argument" ;;
33484 esac
33485 as_fn_append CONFIG_FILES " '$ac_optarg'"
33486 ac_need_defaults=false;;
33487 --header | --heade | --head | --hea )
33488 $ac_shift
33489 case $ac_optarg in
33490 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33491 esac
33492 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33493 ac_need_defaults=false;;
33494 --he | --h)
33495 # Conflict between --help and --header
33496 as_fn_error $? "ambiguous option: \`$1'
33497 Try \`$0 --help' for more information.";;
33498 --help | --hel | -h )
33499 $as_echo "$ac_cs_usage"; exit ;;
33500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33501 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33502 ac_cs_silent=: ;;
33504 # This is an error.
33505 -*) as_fn_error $? "unrecognized option: \`$1'
33506 Try \`$0 --help' for more information." ;;
33508 *) as_fn_append ac_config_targets " $1"
33509 ac_need_defaults=false ;;
33511 esac
33512 shift
33513 done
33515 ac_configure_extra_args=
33517 if $ac_cs_silent; then
33518 exec 6>/dev/null
33519 ac_configure_extra_args="$ac_configure_extra_args --silent"
33522 _ACEOF
33523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33524 if \$ac_cs_recheck; then
33525 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33526 shift
33527 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33528 CONFIG_SHELL='$SHELL'
33529 export CONFIG_SHELL
33530 exec "\$@"
33533 _ACEOF
33534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33535 exec 5>>config.log
33537 echo
33538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33539 ## Running $as_me. ##
33540 _ASBOX
33541 $as_echo "$ac_log"
33542 } >&5
33544 _ACEOF
33545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33547 # INIT-COMMANDS
33549 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33550 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33551 subdirs='$subdirs'
33553 _ACEOF
33555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33557 # Handling of arguments.
33558 for ac_config_target in $ac_config_targets
33560 case $ac_config_target in
33561 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33562 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33563 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33564 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33565 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33566 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33567 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33568 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33569 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33570 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33572 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33573 esac
33574 done
33577 # If the user did not use the arguments to specify the items to instantiate,
33578 # then the envvar interface is used. Set only those that are not.
33579 # We use the long form for the default assignment because of an extremely
33580 # bizarre bug on SunOS 4.1.3.
33581 if $ac_need_defaults; then
33582 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33583 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33584 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33585 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33588 # Have a temporary directory for convenience. Make it in the build tree
33589 # simply because there is no reason against having it here, and in addition,
33590 # creating and moving files from /tmp can sometimes cause problems.
33591 # Hook for its removal unless debugging.
33592 # Note that there is a small window in which the directory will not be cleaned:
33593 # after its creation but before its name has been assigned to `$tmp'.
33594 $debug ||
33596 tmp= ac_tmp=
33597 trap 'exit_status=$?
33598 : "${ac_tmp:=$tmp}"
33599 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33601 trap 'as_fn_exit 1' 1 2 13 15
33603 # Create a (secure) tmp directory for tmp files.
33606 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33607 test -d "$tmp"
33608 } ||
33610 tmp=./conf$$-$RANDOM
33611 (umask 077 && mkdir "$tmp")
33612 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33613 ac_tmp=$tmp
33615 # Set up the scripts for CONFIG_FILES section.
33616 # No need to generate them if there are no CONFIG_FILES.
33617 # This happens for instance with `./config.status config.h'.
33618 if test -n "$CONFIG_FILES"; then
33620 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33621 ac_cs_awk_getline=:
33622 ac_cs_awk_pipe_init=
33623 ac_cs_awk_read_file='
33624 while ((getline aline < (F[key])) > 0)
33625 print(aline)
33626 close(F[key])'
33627 ac_cs_awk_pipe_fini=
33628 else
33629 ac_cs_awk_getline=false
33630 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33631 ac_cs_awk_read_file='
33632 print "|#_!!_#|"
33633 print "cat " F[key] " &&"
33634 '$ac_cs_awk_pipe_init
33635 # The final `:' finishes the AND list.
33636 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33638 ac_cr=`echo X | tr X '\015'`
33639 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33640 # But we know of no other shell where ac_cr would be empty at this
33641 # point, so we can use a bashism as a fallback.
33642 if test "x$ac_cr" = x; then
33643 eval ac_cr=\$\'\\r\'
33645 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33646 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33647 ac_cs_awk_cr='\\r'
33648 else
33649 ac_cs_awk_cr=$ac_cr
33652 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33653 _ACEOF
33655 # Create commands to substitute file output variables.
33657 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33658 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33659 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33660 echo "_ACAWK" &&
33661 echo "_ACEOF"
33662 } >conf$$files.sh &&
33663 . ./conf$$files.sh ||
33664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33665 rm -f conf$$files.sh
33668 echo "cat >conf$$subs.awk <<_ACEOF" &&
33669 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33670 echo "_ACEOF"
33671 } >conf$$subs.sh ||
33672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33673 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33674 ac_delim='%!_!# '
33675 for ac_last_try in false false false false false :; do
33676 . ./conf$$subs.sh ||
33677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33679 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33680 if test $ac_delim_n = $ac_delim_num; then
33681 break
33682 elif $ac_last_try; then
33683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33684 else
33685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33687 done
33688 rm -f conf$$subs.sh
33690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33691 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33692 _ACEOF
33693 sed -n '
33695 s/^/S["/; s/!.*/"]=/
33698 s/^[^!]*!//
33699 :repl
33700 t repl
33701 s/'"$ac_delim"'$//
33702 t delim
33705 s/\(.\{148\}\)..*/\1/
33706 t more1
33707 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33710 b repl
33711 :more1
33712 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33715 s/.\{148\}//
33716 t nl
33717 :delim
33719 s/\(.\{148\}\)..*/\1/
33720 t more2
33721 s/["\\]/\\&/g; s/^/"/; s/$/"/
33724 :more2
33725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33728 s/.\{148\}//
33729 t delim
33730 ' <conf$$subs.awk | sed '
33731 /^[^""]/{
33733 s/\n//
33735 ' >>$CONFIG_STATUS || ac_write_fail=1
33736 rm -f conf$$subs.awk
33737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33738 _ACAWK
33739 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33740 for (key in S) S_is_set[key] = 1
33741 FS = "\a"
33742 \$ac_cs_awk_pipe_init
33745 line = $ 0
33746 nfields = split(line, field, "@")
33747 substed = 0
33748 len = length(field[1])
33749 for (i = 2; i < nfields; i++) {
33750 key = field[i]
33751 keylen = length(key)
33752 if (S_is_set[key]) {
33753 value = S[key]
33754 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33755 len += length(value) + length(field[++i])
33756 substed = 1
33757 } else
33758 len += 1 + keylen
33760 if (nfields == 3 && !substed) {
33761 key = field[2]
33762 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33763 \$ac_cs_awk_read_file
33764 next
33767 print line
33769 \$ac_cs_awk_pipe_fini
33770 _ACAWK
33771 _ACEOF
33772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33773 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33774 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33775 else
33777 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33778 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33779 _ACEOF
33781 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33782 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33783 # trailing colons and then remove the whole line if VPATH becomes empty
33784 # (actually we leave an empty line to preserve line numbers).
33785 if test "x$srcdir" = x.; then
33786 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33788 s///
33789 s/^/:/
33790 s/[ ]*$/:/
33791 s/:\$(srcdir):/:/g
33792 s/:\${srcdir}:/:/g
33793 s/:@srcdir@:/:/g
33794 s/^:*//
33795 s/:*$//
33797 s/\(=[ ]*\).*/\1/
33799 s/\n//
33800 s/^[^=]*=[ ]*$//
33804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33805 fi # test -n "$CONFIG_FILES"
33807 # Set up the scripts for CONFIG_HEADERS section.
33808 # No need to generate them if there are no CONFIG_HEADERS.
33809 # This happens for instance with `./config.status Makefile'.
33810 if test -n "$CONFIG_HEADERS"; then
33811 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33812 BEGIN {
33813 _ACEOF
33815 # Transform confdefs.h into an awk script `defines.awk', embedded as
33816 # here-document in config.status, that substitutes the proper values into
33817 # config.h.in to produce config.h.
33819 # Create a delimiter string that does not exist in confdefs.h, to ease
33820 # handling of long lines.
33821 ac_delim='%!_!# '
33822 for ac_last_try in false false :; do
33823 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33824 if test -z "$ac_tt"; then
33825 break
33826 elif $ac_last_try; then
33827 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33828 else
33829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33831 done
33833 # For the awk script, D is an array of macro values keyed by name,
33834 # likewise P contains macro parameters if any. Preserve backslash
33835 # newline sequences.
33837 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33838 sed -n '
33839 s/.\{148\}/&'"$ac_delim"'/g
33840 t rset
33841 :rset
33842 s/^[ ]*#[ ]*define[ ][ ]*/ /
33843 t def
33845 :def
33846 s/\\$//
33847 t bsnl
33848 s/["\\]/\\&/g
33849 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33850 D["\1"]=" \3"/p
33851 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33853 :bsnl
33854 s/["\\]/\\&/g
33855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33856 D["\1"]=" \3\\\\\\n"\\/p
33857 t cont
33858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33859 t cont
33861 :cont
33863 s/.\{148\}/&'"$ac_delim"'/g
33864 t clear
33865 :clear
33866 s/\\$//
33867 t bsnlc
33868 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33870 :bsnlc
33871 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33872 b cont
33873 ' <confdefs.h | sed '
33874 s/'"$ac_delim"'/"\\\
33875 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33878 for (key in D) D_is_set[key] = 1
33879 FS = "\a"
33881 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33882 line = \$ 0
33883 split(line, arg, " ")
33884 if (arg[1] == "#") {
33885 defundef = arg[2]
33886 mac1 = arg[3]
33887 } else {
33888 defundef = substr(arg[1], 2)
33889 mac1 = arg[2]
33891 split(mac1, mac2, "(") #)
33892 macro = mac2[1]
33893 prefix = substr(line, 1, index(line, defundef) - 1)
33894 if (D_is_set[macro]) {
33895 # Preserve the white space surrounding the "#".
33896 print prefix "define", macro P[macro] D[macro]
33897 next
33898 } else {
33899 # Replace #undef with comments. This is necessary, for example,
33900 # in the case of _POSIX_SOURCE, which is predefined and required
33901 # on some systems where configure will not decide to define it.
33902 if (defundef == "undef") {
33903 print "/*", prefix defundef, macro, "*/"
33904 next
33908 { print }
33909 _ACAWK
33910 _ACEOF
33911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33912 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33913 fi # test -n "$CONFIG_HEADERS"
33916 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33917 shift
33918 for ac_tag
33920 case $ac_tag in
33921 :[FHLC]) ac_mode=$ac_tag; continue;;
33922 esac
33923 case $ac_mode$ac_tag in
33924 :[FHL]*:*);;
33925 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33926 :[FH]-) ac_tag=-:-;;
33927 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33928 esac
33929 ac_save_IFS=$IFS
33930 IFS=:
33931 set x $ac_tag
33932 IFS=$ac_save_IFS
33933 shift
33934 ac_file=$1
33935 shift
33937 case $ac_mode in
33938 :L) ac_source=$1;;
33939 :[FH])
33940 ac_file_inputs=
33941 for ac_f
33943 case $ac_f in
33944 -) ac_f="$ac_tmp/stdin";;
33945 *) # Look for the file first in the build tree, then in the source tree
33946 # (if the path is not absolute). The absolute path cannot be DOS-style,
33947 # because $ac_f cannot contain `:'.
33948 test -f "$ac_f" ||
33949 case $ac_f in
33950 [\\/$]*) false;;
33951 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33952 esac ||
33953 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33954 esac
33955 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33956 as_fn_append ac_file_inputs " '$ac_f'"
33957 done
33959 # Let's still pretend it is `configure' which instantiates (i.e., don't
33960 # use $as_me), people would be surprised to read:
33961 # /* config.h. Generated by config.status. */
33962 configure_input='Generated from '`
33963 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33964 `' by configure.'
33965 if test x"$ac_file" != x-; then
33966 configure_input="$ac_file. $configure_input"
33967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33968 $as_echo "$as_me: creating $ac_file" >&6;}
33970 # Neutralize special characters interpreted by sed in replacement strings.
33971 case $configure_input in #(
33972 *\&* | *\|* | *\\* )
33973 ac_sed_conf_input=`$as_echo "$configure_input" |
33974 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33975 *) ac_sed_conf_input=$configure_input;;
33976 esac
33978 case $ac_tag in
33979 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33981 esac
33983 esac
33985 ac_dir=`$as_dirname -- "$ac_file" ||
33986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33987 X"$ac_file" : 'X\(//\)[^/]' \| \
33988 X"$ac_file" : 'X\(//\)$' \| \
33989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33990 $as_echo X"$ac_file" |
33991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33992 s//\1/
33995 /^X\(\/\/\)[^/].*/{
33996 s//\1/
33999 /^X\(\/\/\)$/{
34000 s//\1/
34003 /^X\(\/\).*/{
34004 s//\1/
34007 s/.*/./; q'`
34008 as_dir="$ac_dir"; as_fn_mkdir_p
34009 ac_builddir=.
34011 case "$ac_dir" in
34012 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34015 # A ".." for each directory in $ac_dir_suffix.
34016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34017 case $ac_top_builddir_sub in
34018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34020 esac ;;
34021 esac
34022 ac_abs_top_builddir=$ac_pwd
34023 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34024 # for backward compatibility:
34025 ac_top_builddir=$ac_top_build_prefix
34027 case $srcdir in
34028 .) # We are building in place.
34029 ac_srcdir=.
34030 ac_top_srcdir=$ac_top_builddir_sub
34031 ac_abs_top_srcdir=$ac_pwd ;;
34032 [\\/]* | ?:[\\/]* ) # Absolute name.
34033 ac_srcdir=$srcdir$ac_dir_suffix;
34034 ac_top_srcdir=$srcdir
34035 ac_abs_top_srcdir=$srcdir ;;
34036 *) # Relative name.
34037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34038 ac_top_srcdir=$ac_top_build_prefix$srcdir
34039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34040 esac
34041 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34044 case $ac_mode in
34047 # CONFIG_FILE
34050 _ACEOF
34052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34053 # If the template does not know about datarootdir, expand it.
34054 # FIXME: This hack should be removed a few years after 2.60.
34055 ac_datarootdir_hack=; ac_datarootdir_seen=
34056 ac_sed_dataroot='
34057 /datarootdir/ {
34061 /@datadir@/p
34062 /@docdir@/p
34063 /@infodir@/p
34064 /@localedir@/p
34065 /@mandir@/p'
34066 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34067 *datarootdir*) ac_datarootdir_seen=yes;;
34068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34070 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34071 _ACEOF
34072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34073 ac_datarootdir_hack='
34074 s&@datadir@&$datadir&g
34075 s&@docdir@&$docdir&g
34076 s&@infodir@&$infodir&g
34077 s&@localedir@&$localedir&g
34078 s&@mandir@&$mandir&g
34079 s&\\\${datarootdir}&$datarootdir&g' ;;
34080 esac
34081 _ACEOF
34083 # Neutralize VPATH when `$srcdir' = `.'.
34084 # Shell code in configure.ac might set extrasub.
34085 # FIXME: do we really want to maintain this feature?
34086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34087 ac_sed_extra="$ac_vpsub
34088 $extrasub
34089 _ACEOF
34090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34093 s|@configure_input@|$ac_sed_conf_input|;t t
34094 s&@top_builddir@&$ac_top_builddir_sub&;t t
34095 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34096 s&@srcdir@&$ac_srcdir&;t t
34097 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34098 s&@top_srcdir@&$ac_top_srcdir&;t t
34099 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34100 s&@builddir@&$ac_builddir&;t t
34101 s&@abs_builddir@&$ac_abs_builddir&;t t
34102 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34103 $ac_datarootdir_hack
34105 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
34106 if $ac_cs_awk_getline; then
34107 $AWK -f "$ac_tmp/subs.awk"
34108 else
34109 $AWK -f "$ac_tmp/subs.awk" | $SHELL
34110 fi \
34111 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34113 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34114 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34115 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34116 "$ac_tmp/out"`; test -z "$ac_out"; } &&
34117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34118 which seems to be undefined. Please make sure it is defined" >&5
34119 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34120 which seems to be undefined. Please make sure it is defined" >&2;}
34122 rm -f "$ac_tmp/stdin"
34123 case $ac_file in
34124 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34125 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34126 esac \
34127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34131 # CONFIG_HEADER
34133 if test x"$ac_file" != x-; then
34135 $as_echo "/* $configure_input */" \
34136 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34137 } >"$ac_tmp/config.h" \
34138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34139 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34140 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34141 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34142 else
34143 rm -f "$ac_file"
34144 mv "$ac_tmp/config.h" "$ac_file" \
34145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34147 else
34148 $as_echo "/* $configure_input */" \
34149 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34150 || as_fn_error $? "could not create -" "$LINENO" 5
34155 # CONFIG_LINK
34158 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
34160 else
34161 # Prefer the file from the source tree if names are identical.
34162 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
34163 ac_source=$srcdir/$ac_source
34166 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
34167 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34169 if test ! -r "$ac_source"; then
34170 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
34172 rm -f "$ac_file"
34174 # Try a relative symlink, then a hard link, then a copy.
34175 case $ac_source in
34176 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34177 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34178 esac
34179 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34180 ln "$ac_source" "$ac_file" 2>/dev/null ||
34181 cp -p "$ac_source" "$ac_file" ||
34182 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
34185 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34186 $as_echo "$as_me: executing $ac_file commands" >&6;}
34188 esac
34191 case $ac_file$ac_mode in
34192 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34193 "gccdepdir":C)
34194 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34195 for lang in $subdirs c-family common analyzer text-art rtl-ssa
34197 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34198 done ;;
34199 "as":F) chmod +x as ;;
34200 "collect-ld":F) chmod +x collect-ld ;;
34201 "nm":F) chmod +x nm ;;
34202 "dsymutil":F) chmod +x dsymutil ;;
34203 "default":C)
34204 case ${CONFIG_HEADERS} in
34205 *auto-host.h:config.in*)
34206 echo > cstamp-h ;;
34207 esac
34208 # Make sure all the subdirs exist.
34209 for d in $subdirs doc build common c-family
34211 test -d $d || mkdir $d
34212 done
34215 esac
34216 done # for ac_tag
34219 as_fn_exit 0
34220 _ACEOF
34221 ac_clean_files=$ac_clean_files_save
34223 test $ac_write_fail = 0 ||
34224 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34227 # configure is writing to config.log, and then calls config.status.
34228 # config.status does its own redirection, appending to config.log.
34229 # Unfortunately, on DOS this fails, as config.log is still kept open
34230 # by configure, so config.status won't be able to write to it; its
34231 # output is simply discarded. So we exec the FD to /dev/null,
34232 # effectively closing config.log, so it can be properly (re)opened and
34233 # appended to by config.status. When coming back to configure, we
34234 # need to make the FD available again.
34235 if test "$no_create" != yes; then
34236 ac_cs_success=:
34237 ac_config_status_args=
34238 test "$silent" = yes &&
34239 ac_config_status_args="$ac_config_status_args --quiet"
34240 exec 5>/dev/null
34241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34242 exec 5>>config.log
34243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34244 # would make configure fail if this is the last instruction.
34245 $ac_cs_success || as_fn_exit 1
34247 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34249 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}